-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathOrderService.pas
executable file
·1653 lines (1457 loc) · 75.3 KB
/
OrderService.pas
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
// ************************************************************************ //
// The types declared in this file were generated from data read from the
// WSDL File described below:
// WSDL : https://api.n11.com/ws/OrderService.wsdl
// >Import : https://api.n11.com/ws/OrderService.wsdl>0
// Encoding : UTF-8
// Version : 1.0
// (26.01.2020 18:33:20 - - $Rev: 96726 $)
// ************************************************************************ //
unit OrderService;
interface
uses Soap.InvokeRegistry, Soap.SOAPHTTPClient, System.Types, Soap.XSBuiltIns;
const
IS_OPTN = $0001;
IS_UNBD = $0002;
IS_NLBL = $0004;
IS_UNQL = $0008;
IS_REF = $0080;
type
// ************************************************************************ //
// The following types, referred to in the WSDL document are not being represented
// in this file. They are either aliases[@] of other types represented or were referred
// to but never[!] declared in the document. The types from the latter category
// typically map to predefined/known XML or Embarcadero types; however, they could also
// indicate incorrect WSDL documents that failed to declare or import a schema type.
// ************************************************************************ //
// !:decimal - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:int - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:string - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:long - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:integer - "http://www.w3.org/2001/XMLSchema"[Gbl]
// !:boolean - "http://www.w3.org/2001/XMLSchema"[Gbl]
OrderDetailRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
MakeOrderItemShipmentResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderItemRejectResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
ComplementaryItemDetailResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderDetailResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
DetailedOrderListRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderListRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderItemAcceptResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
DetailedOrderListResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
RequestPagingData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
AddressModel = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
Authentication = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
ResultInfo = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
BuyerWithTaxFields = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderItemDataRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
ShipmentCompanyRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
ShipmentCompanyData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
PagingData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
BillingTemplate = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
ServiceOrderItemData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
ItemWithComplementaryData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
DetailedOrderData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
BuyerAddressData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderDetailData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
SkuAttribute = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderSearchData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderItemShipmentInfo = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
MakeShipmentInfoRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderItemShipmentRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
MakeOrderItemShipmentRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
CustomTextOptionsData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderListResponse = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderItemRejectRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderDataRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderItemAcceptRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
ComplementaryItemDetailRequest = class; { "http://www.n11.com/ws/schemas"[Lit][GblElm] }
OrderItemData = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderSearchPeriod = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderDataListRequest = class; { "http://www.n11.com/ws/schemas"[GblCplx] }
DetailedOrderItemDataList = array of OrderItemData; { "http://www.n11.com/ws/schemas"[GblCplx] }
DetailedOrderDataList = array of DetailedOrderData; { "http://www.n11.com/ws/schemas"[GblCplx] }
ItemWithComplementaryList = array of ItemWithComplementaryData; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderDetailRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderDetailRequest = class(TRemotable)
private
Fauth: Authentication;
ForderRequest: OrderDataRequest;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property orderRequest: OrderDataRequest Index (IS_UNQL) read ForderRequest write ForderRequest;
end;
// ************************************************************************ //
// XML : MakeOrderItemShipmentResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
MakeOrderItemShipmentResponse = class(TRemotable)
private
Fresult: ResultInfo;
ForderItemList: DetailedOrderItemDataList;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property orderItemList: DetailedOrderItemDataList Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : OrderItemRejectResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderItemRejectResponse = class(TRemotable)
private
Fresult: ResultInfo;
ForderItemList: DetailedOrderItemDataList;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property orderItemList: DetailedOrderItemDataList Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : ComplementaryItemDetailResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
ComplementaryItemDetailResponse = class(TRemotable)
private
Fresult: ResultInfo;
FitemWithCompInfoList: ItemWithComplementaryList;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property itemWithCompInfoList: ItemWithComplementaryList Index (IS_UNQL) read FitemWithCompInfoList write FitemWithCompInfoList;
end;
// ************************************************************************ //
// XML : OrderDetailResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderDetailResponse = class(TRemotable)
private
Fresult: ResultInfo;
ForderDetail: OrderDetailData;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property orderDetail: OrderDetailData Index (IS_UNQL) read ForderDetail write ForderDetail;
end;
// ************************************************************************ //
// XML : DetailedOrderListRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
DetailedOrderListRequest = class(TRemotable)
private
Fauth: Authentication;
FsearchData: OrderDataListRequest;
FpagingData: PagingData;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property searchData: OrderDataListRequest Index (IS_NLBL or IS_UNQL) read FsearchData write FsearchData;
property pagingData: PagingData Index (IS_NLBL or IS_UNQL) read FpagingData write FpagingData;
end;
// ************************************************************************ //
// XML : OrderListRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderListRequest = class(TRemotable)
private
Fauth: Authentication;
FsearchData: OrderDataListRequest;
FpagingData: RequestPagingData;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property searchData: OrderDataListRequest Index (IS_UNQL) read FsearchData write FsearchData;
property pagingData: RequestPagingData Index (IS_NLBL or IS_UNQL) read FpagingData write FpagingData;
end;
// ************************************************************************ //
// XML : OrderItemAcceptResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderItemAcceptResponse = class(TRemotable)
private
Fresult: ResultInfo;
ForderItemList: DetailedOrderItemDataList;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property orderItemList: DetailedOrderItemDataList Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : DetailedOrderListResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
DetailedOrderListResponse = class(TRemotable)
private
Fresult: ResultInfo;
ForderList: DetailedOrderDataList;
ForderList_Specified: boolean;
FpagingData: PagingData;
procedure SetorderList(Index: Integer; const ADetailedOrderDataList: DetailedOrderDataList);
function orderList_Specified(Index: Integer): boolean;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property orderList: DetailedOrderDataList Index (IS_OPTN or IS_UNQL) read ForderList write SetorderList stored orderList_Specified;
property pagingData: PagingData Index (IS_UNQL) read FpagingData write FpagingData;
end;
// ************************************************************************ //
// XML : RequestPagingData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
RequestPagingData = class(TRemotable)
private
FcurrentPage: Integer;
FpageSize: Integer;
published
property currentPage: Integer Index (IS_NLBL or IS_UNQL) read FcurrentPage write FcurrentPage;
property pageSize: Integer Index (IS_NLBL or IS_UNQL) read FpageSize write FpageSize;
end;
// ************************************************************************ //
// XML : AddressModel, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
AddressModel = class(TRemotable)
private
Faddress: string;
FfullName: string;
Fcity: string;
Fdistrict: string;
Fneighborhood: string;
FpostalCode: string;
Fgsm: string;
FtcId: string;
FtaxId: string;
FtaxHouse: string;
published
property address: string Index (IS_UNQL) read Faddress write Faddress;
property fullName: string Index (IS_UNQL) read FfullName write FfullName;
property city: string Index (IS_UNQL) read Fcity write Fcity;
property district: string Index (IS_UNQL) read Fdistrict write Fdistrict;
property neighborhood: string Index (IS_UNQL) read Fneighborhood write Fneighborhood;
property postalCode: string Index (IS_UNQL) read FpostalCode write FpostalCode;
property gsm: string Index (IS_UNQL) read Fgsm write Fgsm;
property tcId: string Index (IS_UNQL) read FtcId write FtcId;
property taxId: string Index (IS_UNQL) read FtaxId write FtaxId;
property taxHouse: string Index (IS_UNQL) read FtaxHouse write FtaxHouse;
end;
// ************************************************************************ //
// XML : Authentication, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
Authentication = class(TRemotable)
private
FappKey: string;
FappSecret: string;
published
property appKey: string Index (IS_UNQL) read FappKey write FappKey;
property appSecret: string Index (IS_UNQL) read FappSecret write FappSecret;
end;
Array_Of_string = array of string; { "http://www.w3.org/2001/XMLSchema"[GblUbnd] }
// ************************************************************************ //
// XML : ResultInfo, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
ResultInfo = class(TRemotable)
private
Fstatus: string;
Fstatus_Specified: boolean;
FerrorCode: string;
FerrorCode_Specified: boolean;
FerrorMessage: string;
FerrorMessage_Specified: boolean;
FerrorCategory: string;
FerrorCategory_Specified: boolean;
procedure Setstatus(Index: Integer; const Astring: string);
function status_Specified(Index: Integer): boolean;
procedure SeterrorCode(Index: Integer; const Astring: string);
function errorCode_Specified(Index: Integer): boolean;
procedure SeterrorMessage(Index: Integer; const Astring: string);
function errorMessage_Specified(Index: Integer): boolean;
procedure SeterrorCategory(Index: Integer; const Astring: string);
function errorCategory_Specified(Index: Integer): boolean;
published
property status: string Index (IS_OPTN or IS_NLBL or IS_UNQL) read Fstatus write Setstatus stored status_Specified;
property errorCode: string Index (IS_OPTN or IS_NLBL or IS_UNQL) read FerrorCode write SeterrorCode stored errorCode_Specified;
property errorMessage: string Index (IS_OPTN or IS_NLBL or IS_UNQL) read FerrorMessage write SeterrorMessage stored errorMessage_Specified;
property errorCategory: string Index (IS_OPTN or IS_NLBL or IS_UNQL) read FerrorCategory write SeterrorCategory stored errorCategory_Specified;
end;
// ************************************************************************ //
// XML : BuyerWithTaxFields, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
BuyerWithTaxFields = class(TRemotable)
private
Fid: Int64;
FfullName: string;
FtaxId: string;
FtaxOffice: string;
Femail: string;
FtcId: string;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property fullName: string Index (IS_UNQL) read FfullName write FfullName;
property taxId: string Index (IS_NLBL or IS_UNQL) read FtaxId write FtaxId;
property taxOffice: string Index (IS_NLBL or IS_UNQL) read FtaxOffice write FtaxOffice;
property email: string Index (IS_NLBL or IS_UNQL) read Femail write Femail;
property tcId: string Index (IS_UNQL) read FtcId write FtcId;
end;
ProductOrderItemList = array of Int64; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderItemDataRequest, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderItemDataRequest = class(TRemotable)
private
Fid: Int64;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
end;
// ************************************************************************ //
// XML : ShipmentCompanyRequest, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
ShipmentCompanyRequest = class(TRemotable)
private
Fid: Int64;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
end;
// ************************************************************************ //
// XML : ShipmentCompanyData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
ShipmentCompanyData = class(TRemotable)
private
Fid: Int64;
Fname_: string;
FshortName: string;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property name_: string Index (IS_UNQL) read Fname_ write Fname_;
property shortName: string Index (IS_UNQL) read FshortName write FshortName;
end;
// ************************************************************************ //
// XML : PagingData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
PagingData = class(TRemotable)
private
FcurrentPage: Integer;
FpageSize: Integer;
FtotalCount: Int64;
FpageCount: Integer;
published
property currentPage: Integer Index (IS_NLBL or IS_UNQL) read FcurrentPage write FcurrentPage;
property pageSize: Integer Index (IS_NLBL or IS_UNQL) read FpageSize write FpageSize;
property totalCount: Int64 Index (IS_NLBL or IS_UNQL) read FtotalCount write FtotalCount;
property pageCount: Integer Index (IS_NLBL or IS_UNQL) read FpageCount write FpageCount;
end;
// ************************************************************************ //
// XML : BillingTemplate, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
BillingTemplate = class(TRemotable)
private
ForiginalPrice: TXSDecimal;
FtotalSellerDiscount: TXSDecimal;
FtotalServiceItemOriginalPrice: TXSDecimal;
FinstallmentChargeWithVat: TXSDecimal;
FsellerInvoiceAmount: TXSDecimal;
FtotalMallDiscountPrice: TXSDecimal;
FdueAmount: TXSDecimal;
public
destructor Destroy; override;
published
property originalPrice: TXSDecimal Index (IS_UNQL) read ForiginalPrice write ForiginalPrice;
property totalSellerDiscount: TXSDecimal Index (IS_UNQL) read FtotalSellerDiscount write FtotalSellerDiscount;
property totalServiceItemOriginalPrice: TXSDecimal Index (IS_UNQL) read FtotalServiceItemOriginalPrice write FtotalServiceItemOriginalPrice;
property installmentChargeWithVat: TXSDecimal Index (IS_UNQL) read FinstallmentChargeWithVat write FinstallmentChargeWithVat;
property sellerInvoiceAmount: TXSDecimal Index (IS_UNQL) read FsellerInvoiceAmount write FsellerInvoiceAmount;
property totalMallDiscountPrice: TXSDecimal Index (IS_UNQL) read FtotalMallDiscountPrice write FtotalMallDiscountPrice;
property dueAmount: TXSDecimal Index (IS_UNQL) read FdueAmount write FdueAmount;
end;
// ************************************************************************ //
// XML : OrderData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderData = class(TRemotable)
private
Fid: Int64;
FcreateDate: string;
FtotalDiscountAmount: TXSDecimal;
FpaymentType: Int64;
ForderNumber: string;
FtotalAmount: TXSDecimal;
Fstatus: Int64;
FcitizenshipId: string;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property createDate: string Index (IS_UNQL) read FcreateDate write FcreateDate;
property totalDiscountAmount: TXSDecimal Index (IS_UNQL) read FtotalDiscountAmount write FtotalDiscountAmount;
property paymentType: Int64 Index (IS_NLBL or IS_UNQL) read FpaymentType write FpaymentType;
property orderNumber: string Index (IS_UNQL) read ForderNumber write ForderNumber;
property totalAmount: TXSDecimal Index (IS_UNQL) read FtotalAmount write FtotalAmount;
property status: Int64 Index (IS_NLBL or IS_UNQL) read Fstatus write Fstatus;
property citizenshipId: string Index (IS_UNQL) read FcitizenshipId write FcitizenshipId;
end;
// ************************************************************************ //
// XML : ServiceOrderItemData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
ServiceOrderItemData = class(TRemotable)
private
ForderItemType: Integer;
FinstallmentChargeWithVAT: TXSDecimal;
Fprice: TXSDecimal;
FtotalDiscountPrice: TXSDecimal;
Fquantity: Int64;
FsellerInvoiceAmount: TXSDecimal;
ForderItemList: ProductOrderItemList;
public
destructor Destroy; override;
published
property orderItemType: Integer Index (IS_UNQL) read ForderItemType write ForderItemType;
property installmentChargeWithVAT: TXSDecimal Index (IS_UNQL) read FinstallmentChargeWithVAT write FinstallmentChargeWithVAT;
property price: TXSDecimal Index (IS_UNQL) read Fprice write Fprice;
property totalDiscountPrice: TXSDecimal Index (IS_UNQL) read FtotalDiscountPrice write FtotalDiscountPrice;
property quantity: Int64 Index (IS_UNQL) read Fquantity write Fquantity;
property sellerInvoiceAmount: TXSDecimal Index (IS_UNQL) read FsellerInvoiceAmount write FsellerInvoiceAmount;
property orderItemList: ProductOrderItemList Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : ItemWithComplementaryData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
ItemWithComplementaryData = class(TRemotable)
private
FsellerCode: string;
FproductTitle: string;
Fcategory: string;
Fprice: TXSDecimal;
FpaidDate: string;
FacceptedDate: string;
Fstatus: Int64;
FcertificateNo: Array_Of_string;
FcompItemId: Int64;
FcompAcceptedDate: string;
FbuyerAddress: BuyerAddressData;
public
destructor Destroy; override;
published
property sellerCode: string Index (IS_UNQL) read FsellerCode write FsellerCode;
property productTitle: string Index (IS_UNQL) read FproductTitle write FproductTitle;
property category: string Index (IS_UNQL) read Fcategory write Fcategory;
property price: TXSDecimal Index (IS_UNQL) read Fprice write Fprice;
property paidDate: string Index (IS_UNQL) read FpaidDate write FpaidDate;
property acceptedDate: string Index (IS_UNQL) read FacceptedDate write FacceptedDate;
property status: Int64 Index (IS_UNQL) read Fstatus write Fstatus;
property certificateNo: Array_Of_string Index (IS_UNBD or IS_UNQL) read FcertificateNo write FcertificateNo;
property compItemId: Int64 Index (IS_UNQL) read FcompItemId write FcompItemId;
property compAcceptedDate: string Index (IS_UNQL) read FcompAcceptedDate write FcompAcceptedDate;
property buyerAddress: BuyerAddressData Index (IS_UNQL) read FbuyerAddress write FbuyerAddress;
end;
// ************************************************************************ //
// XML : DetailedOrderData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
DetailedOrderData = class(TRemotable)
private
Fid: Int64;
FinvoiceType: string;
Fstatus: Int64;
ForderNumber: string;
FtotalAmount: TXSDecimal;
FpaymentType: Int64;
FcitizenshipId: string;
ForderItemList: DetailedOrderItemDataList;
FcreateDate: string;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property invoiceType: string Index (IS_UNQL) read FinvoiceType write FinvoiceType;
property status: Int64 Index (IS_UNQL) read Fstatus write Fstatus;
property orderNumber: string Index (IS_UNQL) read ForderNumber write ForderNumber;
property totalAmount: TXSDecimal Index (IS_UNQL) read FtotalAmount write FtotalAmount;
property paymentType: Int64 Index (IS_UNQL) read FpaymentType write FpaymentType;
property citizenshipId: string Index (IS_UNQL) read FcitizenshipId write FcitizenshipId;
property orderItemList: DetailedOrderItemDataList Index (IS_UNQL) read ForderItemList write ForderItemList;
property createDate: string Index (IS_UNQL) read FcreateDate write FcreateDate;
end;
// ************************************************************************ //
// XML : BuyerAddressData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
BuyerAddressData = class(TRemotable)
private
FfullName: string;
Faddress: string;
FphoneNumber: Int64;
FtcNo: string;
FcompanyName: string;
FtaxNo: string;
FtaxOffice: string;
published
property fullName: string Index (IS_UNQL) read FfullName write FfullName;
property address: string Index (IS_UNQL) read Faddress write Faddress;
property phoneNumber: Int64 Index (IS_UNQL) read FphoneNumber write FphoneNumber;
property tcNo: string Index (IS_UNQL) read FtcNo write FtcNo;
property companyName: string Index (IS_UNQL) read FcompanyName write FcompanyName;
property taxNo: string Index (IS_UNQL) read FtaxNo write FtaxNo;
property taxOffice: string Index (IS_UNQL) read FtaxOffice write FtaxOffice;
end;
ServiceOrderItemDataList = array of ServiceOrderItemData; { "http://www.n11.com/ws/schemas"[GblCplx] }
OrderItemDataList = array of OrderSearchData; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderDetailData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderDetailData = class(TRemotable)
private
Fid: Int64;
ForderNumber: string;
Fbuyer: BuyerWithTaxFields;
FcitizenshipId: string;
FinvoiceType: string;
FitemList: OrderItemDataList;
FserviceItemList: ServiceOrderItemDataList;
Fstatus: Int64;
FpaymentType: Int64;
FbillingTemplate: BillingTemplate;
FshippingAddress: AddressModel;
FbillingAddress: AddressModel;
FcreateDate: string;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property orderNumber: string Index (IS_UNQL) read ForderNumber write ForderNumber;
property buyer: BuyerWithTaxFields Index (IS_UNQL) read Fbuyer write Fbuyer;
property citizenshipId: string Index (IS_UNQL) read FcitizenshipId write FcitizenshipId;
property invoiceType: string Index (IS_UNQL) read FinvoiceType write FinvoiceType;
property itemList: OrderItemDataList Index (IS_UNQL) read FitemList write FitemList;
property serviceItemList: ServiceOrderItemDataList Index (IS_UNQL) read FserviceItemList write FserviceItemList;
property status: Int64 Index (IS_UNQL) read Fstatus write Fstatus;
property paymentType: Int64 Index (IS_UNQL) read FpaymentType write FpaymentType;
property billingTemplate: BillingTemplate Index (IS_UNQL) read FbillingTemplate write FbillingTemplate;
property shippingAddress: AddressModel Index (IS_UNQL) read FshippingAddress write FshippingAddress;
property billingAddress: AddressModel Index (IS_UNQL) read FbillingAddress write FbillingAddress;
property createDate: string Index (IS_UNQL) read FcreateDate write FcreateDate;
end;
// ************************************************************************ //
// XML : SkuAttribute, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
SkuAttribute = class(TRemotable)
private
Fname_: string;
Fvalue: string;
published
property name_: string Index (IS_UNQL) read Fname_ write Fname_;
property value: string Index (IS_UNQL) read Fvalue write Fvalue;
end;
CustomTextOptionsDataList = array of CustomTextOptionsData; { "http://www.n11.com/ws/schemas"[GblCplx] }
SkuAttributeList = array of SkuAttribute; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderSearchData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderSearchData = class(TRemotable)
private
Fid: Int64;
FproductId: Int64;
FdeliveryFeeType: Int64;
FproductSellerCode: string;
Fstatus: string;
FrejectReason: string;
FapprovedDate: string;
FdueAmount: TXSDecimal;
FinstallmentChargeWithVAT: TXSDecimal;
Fprice: TXSDecimal;
FtotalMallDiscountPrice: TXSDecimal;
Fquantity: Int64;
FsellerCouponDiscount: TXSDecimal;
FsellerStockCode: string;
Fversion: Int64;
Fattributes: SkuAttributeList;
FsellerDiscount: TXSDecimal;
FmallDiscount: TXSDecimal;
Fcommission: TXSDecimal;
FsellerInvoiceAmount: TXSDecimal;
FproductName: string;
FshipmentInfo: OrderItemShipmentInfo;
FshippingDate: string;
FcustomTextOptionValues: CustomTextOptionsDataList;
FshipmenCompanyCampaignNumber: string;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property productId: Int64 Index (IS_UNQL) read FproductId write FproductId;
property deliveryFeeType: Int64 Index (IS_UNQL) read FdeliveryFeeType write FdeliveryFeeType;
property productSellerCode: string Index (IS_UNQL) read FproductSellerCode write FproductSellerCode;
property status: string Index (IS_UNQL) read Fstatus write Fstatus;
property rejectReason: string Index (IS_UNQL) read FrejectReason write FrejectReason;
property approvedDate: string Index (IS_UNQL) read FapprovedDate write FapprovedDate;
property dueAmount: TXSDecimal Index (IS_UNQL) read FdueAmount write FdueAmount;
property installmentChargeWithVAT: TXSDecimal Index (IS_UNQL) read FinstallmentChargeWithVAT write FinstallmentChargeWithVAT;
property price: TXSDecimal Index (IS_UNQL) read Fprice write Fprice;
property totalMallDiscountPrice: TXSDecimal Index (IS_UNQL) read FtotalMallDiscountPrice write FtotalMallDiscountPrice;
property quantity: Int64 Index (IS_UNQL) read Fquantity write Fquantity;
property sellerCouponDiscount: TXSDecimal Index (IS_UNQL) read FsellerCouponDiscount write FsellerCouponDiscount;
property sellerStockCode: string Index (IS_UNQL) read FsellerStockCode write FsellerStockCode;
property version: Int64 Index (IS_UNQL) read Fversion write Fversion;
property attributes: SkuAttributeList Index (IS_UNQL) read Fattributes write Fattributes;
property sellerDiscount: TXSDecimal Index (IS_UNQL) read FsellerDiscount write FsellerDiscount;
property mallDiscount: TXSDecimal Index (IS_UNQL) read FmallDiscount write FmallDiscount;
property commission: TXSDecimal Index (IS_UNQL) read Fcommission write Fcommission;
property sellerInvoiceAmount: TXSDecimal Index (IS_UNQL) read FsellerInvoiceAmount write FsellerInvoiceAmount;
property productName: string Index (IS_UNQL) read FproductName write FproductName;
property shipmentInfo: OrderItemShipmentInfo Index (IS_UNQL) read FshipmentInfo write FshipmentInfo;
property shippingDate: string Index (IS_UNQL) read FshippingDate write FshippingDate;
property customTextOptionValues: CustomTextOptionsDataList Index (IS_UNQL) read FcustomTextOptionValues write FcustomTextOptionValues;
property shipmenCompanyCampaignNumber: string Index (IS_UNQL) read FshipmenCompanyCampaignNumber write FshipmenCompanyCampaignNumber;
end;
// ************************************************************************ //
// XML : OrderItemShipmentInfo, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderItemShipmentInfo = class(TRemotable)
private
FshipmentCompany: ShipmentCompanyData;
FtrackingNumber: string;
FtrackingNumberStatus: string;
FshipmentCode: Int64;
FcampaignNumber: string;
FshipmentMethod: string;
FcampaignNumberStatus: Int64;
public
destructor Destroy; override;
published
property shipmentCompany: ShipmentCompanyData Index (IS_NLBL or IS_UNQL) read FshipmentCompany write FshipmentCompany;
property trackingNumber: string Index (IS_UNQL) read FtrackingNumber write FtrackingNumber;
property trackingNumberStatus: string Index (IS_UNQL) read FtrackingNumberStatus write FtrackingNumberStatus;
property shipmentCode: Int64 Index (IS_UNQL) read FshipmentCode write FshipmentCode;
property campaignNumber: string Index (IS_UNQL) read FcampaignNumber write FcampaignNumber;
property shipmentMethod: string Index (IS_UNQL) read FshipmentMethod write FshipmentMethod;
property campaignNumberStatus: Int64 Index (IS_UNQL) read FcampaignNumberStatus write FcampaignNumberStatus;
end;
// ************************************************************************ //
// XML : MakeShipmentInfoRequest, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
MakeShipmentInfoRequest = class(TRemotable)
private
FshipmentCompany: ShipmentCompanyRequest;
FcampaignNumber: string;
FtrackingNumber: string;
FshipmentMethod: Int64;
public
destructor Destroy; override;
published
property shipmentCompany: ShipmentCompanyRequest Index (IS_UNQL) read FshipmentCompany write FshipmentCompany;
property campaignNumber: string Index (IS_UNQL) read FcampaignNumber write FcampaignNumber;
property trackingNumber: string Index (IS_UNQL) read FtrackingNumber write FtrackingNumber;
property shipmentMethod: Int64 Index (IS_UNQL) read FshipmentMethod write FshipmentMethod;
end;
// ************************************************************************ //
// XML : OrderItemShipmentRequest, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderItemShipmentRequest = class(TRemotable)
private
Fid: Int64;
FshipmentInfo: MakeShipmentInfoRequest;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property shipmentInfo: MakeShipmentInfoRequest Index (IS_UNQL) read FshipmentInfo write FshipmentInfo;
end;
OrderItemListShipmentRequest = array of OrderItemShipmentRequest; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : MakeOrderItemShipmentRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
MakeOrderItemShipmentRequest = class(TRemotable)
private
Fauth: Authentication;
ForderItemList: OrderItemListShipmentRequest;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property orderItemList: OrderItemListShipmentRequest Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : CustomTextOptionsData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
CustomTextOptionsData = class(TRemotable)
private
Foption: string;
Ftext: string;
published
property option: string Index (IS_UNQL) read Foption write Foption;
property text: string Index (IS_UNQL) read Ftext write Ftext;
end;
OrderDataList = array of OrderData; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderListResponse, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderListResponse = class(TRemotable)
private
Fresult: ResultInfo;
FpagingData: PagingData;
ForderList: OrderDataList;
ForderList_Specified: boolean;
procedure SetorderList(Index: Integer; const AOrderDataList: OrderDataList);
function orderList_Specified(Index: Integer): boolean;
public
constructor Create; override;
destructor Destroy; override;
published
property result: ResultInfo Index (IS_UNQL) read Fresult write Fresult;
property pagingData: PagingData Index (IS_UNQL) read FpagingData write FpagingData;
property orderList: OrderDataList Index (IS_OPTN or IS_UNQL) read ForderList write SetorderList stored orderList_Specified;
end;
OrderItemDataRequestForRejection = array of OrderItemDataRequest; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderItemRejectRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderItemRejectRequest = class(TRemotable)
private
Fauth: Authentication;
ForderItemList: OrderItemDataRequestForRejection;
FrejectReason: string;
FrejectReasonType: string;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property orderItemList: OrderItemDataRequestForRejection Index (IS_UNQL) read ForderItemList write ForderItemList;
property rejectReason: string Index (IS_UNQL) read FrejectReason write FrejectReason;
property rejectReasonType: string Index (IS_NLBL or IS_UNQL) read FrejectReasonType write FrejectReasonType;
end;
// ************************************************************************ //
// XML : OrderDataRequest, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderDataRequest = class(TRemotable)
private
Fid: Int64;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
end;
OrderItemDataListRequest = array of OrderItemDataRequest; { "http://www.n11.com/ws/schemas"[GblCplx] }
// ************************************************************************ //
// XML : OrderItemAcceptRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
OrderItemAcceptRequest = class(TRemotable)
private
Fauth: Authentication;
ForderItemList: OrderItemDataListRequest;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property orderItemList: OrderItemDataListRequest Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : ComplementaryItemDetailRequest, global, <element>
// Namespace : http://www.n11.com/ws/schemas
// Serializtn: [xoLiteralParam]
// Info : Wrapper
// ************************************************************************ //
ComplementaryItemDetailRequest = class(TRemotable)
private
Fauth: Authentication;
ForderItemList: OrderItemDataListRequest;
public
constructor Create; override;
destructor Destroy; override;
published
property auth: Authentication Index (IS_UNQL) read Fauth write Fauth;
property orderItemList: OrderItemDataListRequest Index (IS_UNQL) read ForderItemList write ForderItemList;
end;
// ************************************************************************ //
// XML : OrderItemData, global, <complexType>
// Namespace : http://www.n11.com/ws/schemas
// ************************************************************************ //
OrderItemData = class(TRemotable)
private
Fid: Int64;
FproductSellerCode: string;
Fprice: TXSDecimal;
FsellerDiscount: TXSDecimal;
FmallDiscount: TXSDecimal;
Fcommission: TXSDecimal;
Fstatus: Int64;
Fquantity: Int64;
FproductName: string;
FdeliveryFeeType: Int64;
FdueAmount: TXSDecimal;
FshipmentInfo: OrderItemShipmentInfo;
Fattributes: SkuAttributeList;
FcustomTextOptionValues: CustomTextOptionsDataList;
FupdatedDate: string;
FcargoCompanyWarning: string;
public
destructor Destroy; override;
published
property id: Int64 Index (IS_UNQL) read Fid write Fid;
property productSellerCode: string Index (IS_UNQL) read FproductSellerCode write FproductSellerCode;
property price: TXSDecimal Index (IS_UNQL) read Fprice write Fprice;
property sellerDiscount: TXSDecimal Index (IS_UNQL) read FsellerDiscount write FsellerDiscount;
property mallDiscount: TXSDecimal Index (IS_UNQL) read FmallDiscount write FmallDiscount;
property commission: TXSDecimal Index (IS_UNQL) read Fcommission write Fcommission;
property status: Int64 Index (IS_UNQL) read Fstatus write Fstatus;
property quantity: Int64 Index (IS_UNQL) read Fquantity write Fquantity;
property productName: string Index (IS_UNQL) read FproductName write FproductName;
property deliveryFeeType: Int64 Index (IS_UNQL) read FdeliveryFeeType write FdeliveryFeeType;
property dueAmount: TXSDecimal Index (IS_UNQL) read FdueAmount write FdueAmount;
property shipmentInfo: OrderItemShipmentInfo Index (IS_UNQL) read FshipmentInfo write FshipmentInfo;
property attributes: SkuAttributeList Index (IS_UNQL) read Fattributes write Fattributes;
property customTextOptionValues: CustomTextOptionsDataList Index (IS_UNQL) read FcustomTextOptionValues write FcustomTextOptionValues;
property updatedDate: string Index (IS_UNQL) read FupdatedDate write FupdatedDate;
property cargoCompanyWarning: string Index (IS_UNQL) read FcargoCompanyWarning write FcargoCompanyWarning;
end;