forked from amzapi/selling-partner-api-sdk
-
Notifications
You must be signed in to change notification settings - Fork 0
/
types.gen.go
1291 lines (989 loc) · 49.3 KB
/
types.gen.go
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
// Package finances provides primitives to interact the openapi HTTP API.
//
// Code generated by go-sdk-codegen DO NOT EDIT.
package finances
import (
"time"
)
// AdjustmentEvent defines model for AdjustmentEvent.
type AdjustmentEvent struct {
// A currency type and amount.
AdjustmentAmount *Currency `json:"AdjustmentAmount,omitempty"`
// A list of information about items in an adjustment to the seller's account.
AdjustmentItemList *AdjustmentItemList `json:"AdjustmentItemList,omitempty"`
// The type of adjustment.
//
// Possible values:
//
// * FBAInventoryReimbursement - An FBA inventory reimbursement to a seller's account. This occurs if a seller's inventory is damaged.
//
// * ReserveEvent - A reserve event that is generated at the time of a settlement period closing. This occurs when some money from a seller's account is held back.
//
// * PostageBilling - The amount paid by a seller for shipping labels.
//
// * PostageRefund - The reimbursement of shipping labels purchased for orders that were canceled or refunded.
//
// * LostOrDamagedReimbursement - An Amazon Easy Ship reimbursement to a seller's account for a package that we lost or damaged.
//
// * CanceledButPickedUpReimbursement - An Amazon Easy Ship reimbursement to a seller's account. This occurs when a package is picked up and the order is subsequently canceled. This value is used only in the India marketplace.
//
// * ReimbursementClawback - An Amazon Easy Ship reimbursement clawback from a seller's account. This occurs when a prior reimbursement is reversed. This value is used only in the India marketplace.
//
// * SellerRewards - An award credited to a seller's account for their participation in an offer in the Seller Rewards program. Applies only to the India marketplace.
AdjustmentType *string `json:"AdjustmentType,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
}
// AdjustmentEventList defines model for AdjustmentEventList.
type AdjustmentEventList []AdjustmentEvent
// AdjustmentItem defines model for AdjustmentItem.
type AdjustmentItem struct {
// The Amazon Standard Identification Number (ASIN) of the item.
ASIN *string `json:"ASIN,omitempty"`
// A unique identifier assigned to products stored in and fulfilled from a fulfillment center.
FnSKU *string `json:"FnSKU,omitempty"`
// A currency type and amount.
PerUnitAmount *Currency `json:"PerUnitAmount,omitempty"`
// A short description of the item.
ProductDescription *string `json:"ProductDescription,omitempty"`
// Represents the number of units in the seller's inventory when the AdustmentType is FBAInventoryReimbursement.
Quantity *string `json:"Quantity,omitempty"`
// The seller SKU of the item. The seller SKU is qualified by the seller's seller ID, which is included with every call to the Selling Partner API.
SellerSKU *string `json:"SellerSKU,omitempty"`
// A currency type and amount.
TotalAmount *Currency `json:"TotalAmount,omitempty"`
}
// AdjustmentItemList defines model for AdjustmentItemList.
type AdjustmentItemList []AdjustmentItem
// AffordabilityExpenseEvent defines model for AffordabilityExpenseEvent.
type AffordabilityExpenseEvent struct {
// An Amazon-defined identifier for an order.
AmazonOrderId *string `json:"AmazonOrderId,omitempty"`
// A currency type and amount.
BaseExpense *Currency `json:"BaseExpense,omitempty"`
// An encrypted, Amazon-defined marketplace identifier.
MarketplaceId *string `json:"MarketplaceId,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// A currency type and amount.
TaxTypeCGST Currency `json:"TaxTypeCGST"`
// A currency type and amount.
TaxTypeIGST Currency `json:"TaxTypeIGST"`
// A currency type and amount.
TaxTypeSGST Currency `json:"TaxTypeSGST"`
// A currency type and amount.
TotalExpense *Currency `json:"TotalExpense,omitempty"`
// Indicates the type of transaction.
//
// Possible values:
//
// * Charge - For an affordability promotion expense.
//
// * Refund - For an affordability promotion expense reversal.
TransactionType *string `json:"TransactionType,omitempty"`
}
// AffordabilityExpenseEventList defines model for AffordabilityExpenseEventList.
type AffordabilityExpenseEventList []AffordabilityExpenseEvent
// BigDecimal defines model for BigDecimal.
type BigDecimal float32
// ChargeComponent defines model for ChargeComponent.
type ChargeComponent struct {
// A currency type and amount.
ChargeAmount *Currency `json:"ChargeAmount,omitempty"`
// The type of charge.
ChargeType *string `json:"ChargeType,omitempty"`
}
// ChargeComponentList defines model for ChargeComponentList.
type ChargeComponentList []ChargeComponent
// ChargeInstrument defines model for ChargeInstrument.
type ChargeInstrument struct {
// A currency type and amount.
Amount *Currency `json:"Amount,omitempty"`
// A short description of the charge instrument.
Description *string `json:"Description,omitempty"`
// The account tail (trailing digits) of the charge instrument.
Tail *string `json:"Tail,omitempty"`
}
// ChargeInstrumentList defines model for ChargeInstrumentList.
type ChargeInstrumentList []ChargeInstrument
// CouponPaymentEvent defines model for CouponPaymentEvent.
type CouponPaymentEvent struct {
// A charge on the seller's account.
//
// Possible values:
//
// * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered.
//
// * Tax - The tax collected by the seller on the Principal.
//
// * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal.
//
// * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge.
//
// * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge.
//
// * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges.
//
// * Discount - The promotional discount for an order item.
//
// * TaxDiscount - The tax amount deducted for promotional rebates.
//
// * CODItemCharge - The COD charge for an order item.
//
// * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge.
//
// * CODOrderCharge - The COD charge for an order.
//
// * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge.
//
// * CODShippingCharge - Shipping charges for a COD order.
//
// * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge.
//
// * ShippingCharge - The shipping charge.
//
// * ShippingTax - The tax collected by the seller on a ShippingCharge.
//
// * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience.
//
// * Giftwrap - The gift wrap charge.
//
// * GiftwrapTax - The tax collected by the seller on a Giftwrap charge.
//
// * RestockingFee - The charge applied to the buyer when returning a product in certain categories.
//
// * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault.
//
// * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction.
//
// * GenericDeduction - A generic bad debt deduction.
//
// * FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item.
//
// * PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces.
//
// * ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program.
//
// * SAFE-TReimbursement - The SAFE-T claim amount for the item.
//
// * TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST).
//
// * TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST).
//
// * TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST).
//
// * TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST).
ChargeComponent *ChargeComponent `json:"ChargeComponent,omitempty"`
// The number of coupon clips or redemptions.
ClipOrRedemptionCount *int64 `json:"ClipOrRedemptionCount,omitempty"`
// A coupon identifier.
CouponId *string `json:"CouponId,omitempty"`
// A fee associated with the event.
FeeComponent *FeeComponent `json:"FeeComponent,omitempty"`
// A payment event identifier.
PaymentEventId *string `json:"PaymentEventId,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// The description provided by the seller when they created the coupon.
SellerCouponDescription *string `json:"SellerCouponDescription,omitempty"`
// A currency type and amount.
TotalAmount *Currency `json:"TotalAmount,omitempty"`
}
// CouponPaymentEventList defines model for CouponPaymentEventList.
type CouponPaymentEventList []CouponPaymentEvent
// Currency defines model for Currency.
type Currency struct {
CurrencyAmount *BigDecimal `json:"CurrencyAmount,omitempty"`
// The three-digit currency code in ISO 4217 format.
CurrencyCode *string `json:"CurrencyCode,omitempty"`
}
// Date defines model for Date.
type Date time.Time
// DebtRecoveryEvent defines model for DebtRecoveryEvent.
type DebtRecoveryEvent struct {
// A list of payment instruments.
ChargeInstrumentList *ChargeInstrumentList `json:"ChargeInstrumentList,omitempty"`
// A list of debt recovery item information.
DebtRecoveryItemList *DebtRecoveryItemList `json:"DebtRecoveryItemList,omitempty"`
// The debt recovery type.
//
// Possible values:
//
// * DebtPayment
//
// * DebtPaymentFailure
//
// *DebtAdjustment
DebtRecoveryType *string `json:"DebtRecoveryType,omitempty"`
// A currency type and amount.
OverPaymentCredit *Currency `json:"OverPaymentCredit,omitempty"`
// A currency type and amount.
RecoveryAmount *Currency `json:"RecoveryAmount,omitempty"`
}
// DebtRecoveryEventList defines model for DebtRecoveryEventList.
type DebtRecoveryEventList []DebtRecoveryEvent
// DebtRecoveryItem defines model for DebtRecoveryItem.
type DebtRecoveryItem struct {
GroupBeginDate *Date `json:"GroupBeginDate,omitempty"`
GroupEndDate *Date `json:"GroupEndDate,omitempty"`
// A currency type and amount.
OriginalAmount *Currency `json:"OriginalAmount,omitempty"`
// A currency type and amount.
RecoveryAmount *Currency `json:"RecoveryAmount,omitempty"`
}
// DebtRecoveryItemList defines model for DebtRecoveryItemList.
type DebtRecoveryItemList []DebtRecoveryItem
// DirectPayment defines model for DirectPayment.
type DirectPayment struct {
// A currency type and amount.
DirectPaymentAmount *Currency `json:"DirectPaymentAmount,omitempty"`
// The type of payment.
//
// Possible values:
//
// * StoredValueCardRevenue - The amount that is deducted from the seller's account because the seller received money through a stored value card.
//
// * StoredValueCardRefund - The amount that Amazon returns to the seller if the order that is bought using a stored value card is refunded.
//
// * PrivateLabelCreditCardRevenue - The amount that is deducted from the seller's account because the seller received money through a private label credit card offered by Amazon.
//
// * PrivateLabelCreditCardRefund - The amount that Amazon returns to the seller if the order that is bought using a private label credit card offered by Amazon is refunded.
//
// * CollectOnDeliveryRevenue - The COD amount that the seller collected directly from the buyer.
//
// * CollectOnDeliveryRefund - The amount that Amazon refunds to the buyer if an order paid for by COD is refunded.
DirectPaymentType *string `json:"DirectPaymentType,omitempty"`
}
// DirectPaymentList defines model for DirectPaymentList.
type DirectPaymentList []DirectPayment
// Error defines model for Error.
type Error struct {
// An error code that identifies the type of error that occurred.
Code string `json:"code"`
// Additional details that can help the caller understand or fix the issue.
Details *string `json:"details,omitempty"`
// A message that describes the error condition in a human-readable form.
Message string `json:"message"`
}
// ErrorList defines model for ErrorList.
type ErrorList []Error
// FBALiquidationEvent defines model for FBALiquidationEvent.
type FBALiquidationEvent struct {
// A currency type and amount.
LiquidationFeeAmount *Currency `json:"LiquidationFeeAmount,omitempty"`
// A currency type and amount.
LiquidationProceedsAmount *Currency `json:"LiquidationProceedsAmount,omitempty"`
// The identifier for the original removal order.
OriginalRemovalOrderId *string `json:"OriginalRemovalOrderId,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
}
// FBALiquidationEventList defines model for FBALiquidationEventList.
type FBALiquidationEventList []FBALiquidationEvent
// FeeComponent defines model for FeeComponent.
type FeeComponent struct {
// A currency type and amount.
FeeAmount *Currency `json:"FeeAmount,omitempty"`
// The type of fee. For more information about Selling on Amazon fees, see [Selling on Amazon Fee Schedule](https://sellercentral.amazon.com/gp/help/200336920) on Seller Central. For more information about Fulfillment by Amazon fees, see [FBA features, services and fees](https://sellercentral.amazon.com/gp/help/201074400) on Seller Central.
FeeType *string `json:"FeeType,omitempty"`
}
// FeeComponentList defines model for FeeComponentList.
type FeeComponentList []FeeComponent
// FinancialEventGroup defines model for FinancialEventGroup.
type FinancialEventGroup struct {
// The account tail of the payment instrument.
AccountTail *string `json:"AccountTail,omitempty"`
// A currency type and amount.
BeginningBalance *Currency `json:"BeginningBalance,omitempty"`
// A currency type and amount.
ConvertedTotal *Currency `json:"ConvertedTotal,omitempty"`
FinancialEventGroupEnd *Date `json:"FinancialEventGroupEnd,omitempty"`
// A unique identifier for the financial event group.
FinancialEventGroupId *string `json:"FinancialEventGroupId,omitempty"`
FinancialEventGroupStart *Date `json:"FinancialEventGroupStart,omitempty"`
FundTransferDate *Date `json:"FundTransferDate,omitempty"`
// The status of the fund transfer.
FundTransferStatus *string `json:"FundTransferStatus,omitempty"`
// A currency type and amount.
OriginalTotal *Currency `json:"OriginalTotal,omitempty"`
// The processing status of the financial event group indicates whether the balance of the financial event group is settled.
//
// Possible values:
//
// * Open
//
// * Closed
ProcessingStatus *string `json:"ProcessingStatus,omitempty"`
// The trace identifier used by sellers to look up transactions externally.
TraceId *string `json:"TraceId,omitempty"`
}
// FinancialEventGroupList defines model for FinancialEventGroupList.
type FinancialEventGroupList []FinancialEventGroup
// FinancialEvents defines model for FinancialEvents.
type FinancialEvents struct {
// A list of adjustment event information for the seller's account.
AdjustmentEventList *AdjustmentEventList `json:"AdjustmentEventList,omitempty"`
// A list of expense information related to an affordability promotion.
AffordabilityExpenseEventList *AffordabilityExpenseEventList `json:"AffordabilityExpenseEventList,omitempty"`
// A list of expense information related to an affordability promotion.
AffordabilityExpenseReversalEventList *AffordabilityExpenseEventList `json:"AffordabilityExpenseReversalEventList,omitempty"`
// A list of shipment event information.
ChargebackEventList *ShipmentEventList `json:"ChargebackEventList,omitempty"`
// A list of coupon payment event information.
CouponPaymentEventList *CouponPaymentEventList `json:"CouponPaymentEventList,omitempty"`
// A list of debt recovery event information.
DebtRecoveryEventList *DebtRecoveryEventList `json:"DebtRecoveryEventList,omitempty"`
// A list of FBA inventory liquidation payment events.
FBALiquidationEventList *FBALiquidationEventList `json:"FBALiquidationEventList,omitempty"`
// A list of shipment event information.
GuaranteeClaimEventList *ShipmentEventList `json:"GuaranteeClaimEventList,omitempty"`
// A list of fee events related to Amazon Imaging services.
ImagingServicesFeeEventList *ImagingServicesFeeEventList `json:"ImagingServicesFeeEventList,omitempty"`
// A list of loan servicing events.
LoanServicingEventList *LoanServicingEventList `json:"LoanServicingEventList,omitempty"`
// A list of network commingling transaction events.
NetworkComminglingTransactionEventList *NetworkComminglingTransactionEventList `json:"NetworkComminglingTransactionEventList,omitempty"`
// A list of events related to the seller's Pay with Amazon account.
PayWithAmazonEventList *PayWithAmazonEventList `json:"PayWithAmazonEventList,omitempty"`
// A list of sponsored products payment events.
ProductAdsPaymentEventList *ProductAdsPaymentEventList `json:"ProductAdsPaymentEventList,omitempty"`
// A list of shipment event information.
RefundEventList *ShipmentEventList `json:"RefundEventList,omitempty"`
// A list of rental transaction event information.
RentalTransactionEventList *RentalTransactionEventList `json:"RentalTransactionEventList,omitempty"`
// A list of information about Retrocharge or RetrochargeReversal events.
RetrochargeEventList *RetrochargeEventList `json:"RetrochargeEventList,omitempty"`
// A list of SAFETReimbursementEvents.
SAFETReimbursementEventList *SAFETReimbursementEventList `json:"SAFETReimbursementEventList,omitempty"`
// A list of payment events for deal-related fees.
SellerDealPaymentEventList *SellerDealPaymentEventList `json:"SellerDealPaymentEventList,omitempty"`
// A list of information about fee events for the Early Reviewer Program.
SellerReviewEnrollmentPaymentEventList *SellerReviewEnrollmentPaymentEventList `json:"SellerReviewEnrollmentPaymentEventList,omitempty"`
// A list of information about service fee events.
ServiceFeeEventList *ServiceFeeEventList `json:"ServiceFeeEventList,omitempty"`
// A list of information about solution provider credits.
ServiceProviderCreditEventList *SolutionProviderCreditEventList `json:"ServiceProviderCreditEventList,omitempty"`
// A list of shipment event information.
ShipmentEventList *ShipmentEventList `json:"ShipmentEventList,omitempty"`
}
// ImagingServicesFeeEvent defines model for ImagingServicesFeeEvent.
type ImagingServicesFeeEvent struct {
// The Amazon Standard Identification Number (ASIN) of the item for which the imaging service was requested.
ASIN *string `json:"ASIN,omitempty"`
// A list of fee component information.
FeeList *FeeComponentList `json:"FeeList,omitempty"`
// The identifier for the imaging services request.
ImagingRequestBillingItemID *string `json:"ImagingRequestBillingItemID,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
}
// ImagingServicesFeeEventList defines model for ImagingServicesFeeEventList.
type ImagingServicesFeeEventList []ImagingServicesFeeEvent
// ListFinancialEventGroupsPayload defines model for ListFinancialEventGroupsPayload.
type ListFinancialEventGroupsPayload struct {
// A list of financial event group information.
FinancialEventGroupList *FinancialEventGroupList `json:"FinancialEventGroupList,omitempty"`
// When present and not empty, pass this string token in the next request to return the next response page.
NextToken *string `json:"NextToken,omitempty"`
}
// ListFinancialEventGroupsResponse defines model for ListFinancialEventGroupsResponse.
type ListFinancialEventGroupsResponse struct {
// A list of error responses returned when a request is unsuccessful.
Errors *ErrorList `json:"errors,omitempty"`
// The payload for the listFinancialEventGroups operation.
Payload *ListFinancialEventGroupsPayload `json:"payload,omitempty"`
}
// ListFinancialEventsPayload defines model for ListFinancialEventsPayload.
type ListFinancialEventsPayload struct {
// Contains all information related to a financial event.
FinancialEvents *FinancialEvents `json:"FinancialEvents,omitempty"`
// When present and not empty, pass this string token in the next request to return the next response page.
NextToken *string `json:"NextToken,omitempty"`
}
// ListFinancialEventsResponse defines model for ListFinancialEventsResponse.
type ListFinancialEventsResponse struct {
// A list of error responses returned when a request is unsuccessful.
Errors *ErrorList `json:"errors,omitempty"`
// The payload for the listFinancialEvents operation.
Payload *ListFinancialEventsPayload `json:"payload,omitempty"`
}
// LoanServicingEvent defines model for LoanServicingEvent.
type LoanServicingEvent struct {
// A currency type and amount.
LoanAmount *Currency `json:"LoanAmount,omitempty"`
// The type of event.
//
// Possible values:
//
// * LoanAdvance
//
// * LoanPayment
//
// * LoanRefund
SourceBusinessEventType *string `json:"SourceBusinessEventType,omitempty"`
}
// LoanServicingEventList defines model for LoanServicingEventList.
type LoanServicingEventList []LoanServicingEvent
// NetworkComminglingTransactionEvent defines model for NetworkComminglingTransactionEvent.
type NetworkComminglingTransactionEvent struct {
// The Amazon Standard Identification Number (ASIN) of the swapped item.
ASIN *string `json:"ASIN,omitempty"`
// The marketplace in which the event took place.
MarketplaceId *string `json:"MarketplaceId,omitempty"`
// The identifier for the network item swap.
NetCoTransactionID *string `json:"NetCoTransactionID,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// The reason for the network item swap.
SwapReason *string `json:"SwapReason,omitempty"`
// A currency type and amount.
TaxAmount *Currency `json:"TaxAmount,omitempty"`
// A currency type and amount.
TaxExclusiveAmount *Currency `json:"TaxExclusiveAmount,omitempty"`
// The type of network item swap.
//
// Possible values:
//
// * NetCo - A Fulfillment by Amazon inventory pooling transaction. Available only in the India marketplace.
//
// * ComminglingVAT - A commingling VAT transaction. Available only in the UK, Spain, France, Germany, and Italy marketplaces.
TransactionType *string `json:"TransactionType,omitempty"`
}
// NetworkComminglingTransactionEventList defines model for NetworkComminglingTransactionEventList.
type NetworkComminglingTransactionEventList []NetworkComminglingTransactionEvent
// PayWithAmazonEvent defines model for PayWithAmazonEvent.
type PayWithAmazonEvent struct {
// A short description of this payment event.
AmountDescription *string `json:"AmountDescription,omitempty"`
// The type of business object.
BusinessObjectType *string `json:"BusinessObjectType,omitempty"`
// A charge on the seller's account.
//
// Possible values:
//
// * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered.
//
// * Tax - The tax collected by the seller on the Principal.
//
// * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal.
//
// * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge.
//
// * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge.
//
// * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges.
//
// * Discount - The promotional discount for an order item.
//
// * TaxDiscount - The tax amount deducted for promotional rebates.
//
// * CODItemCharge - The COD charge for an order item.
//
// * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge.
//
// * CODOrderCharge - The COD charge for an order.
//
// * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge.
//
// * CODShippingCharge - Shipping charges for a COD order.
//
// * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge.
//
// * ShippingCharge - The shipping charge.
//
// * ShippingTax - The tax collected by the seller on a ShippingCharge.
//
// * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience.
//
// * Giftwrap - The gift wrap charge.
//
// * GiftwrapTax - The tax collected by the seller on a Giftwrap charge.
//
// * RestockingFee - The charge applied to the buyer when returning a product in certain categories.
//
// * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault.
//
// * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction.
//
// * GenericDeduction - A generic bad debt deduction.
//
// * FreeReplacementReturnShipping - The compensation for return shipping when a buyer receives the wrong item, requests a free replacement, and returns the incorrect item.
//
// * PaymentMethodFee - The fee collected for certain payment methods in certain marketplaces.
//
// * ExportCharge - The export duty that is charged when an item is shipped to an international destination as part of the Amazon Global program.
//
// * SAFE-TReimbursement - The SAFE-T claim amount for the item.
//
// * TCS-CGST - Tax Collected at Source (TCS) for Central Goods and Services Tax (CGST).
//
// * TCS-SGST - Tax Collected at Source for State Goods and Services Tax (SGST).
//
// * TCS-IGST - Tax Collected at Source for Integrated Goods and Services Tax (IGST).
//
// * TCS-UTGST - Tax Collected at Source for Union Territories Goods and Services Tax (UTGST).
Charge *ChargeComponent `json:"Charge,omitempty"`
// A list of fee component information.
FeeList *FeeComponentList `json:"FeeList,omitempty"`
// The fulfillment channel.
//
// Possible values:
//
// * AFN - Amazon Fulfillment Network (Fulfillment by Amazon)
//
// * MFN - Merchant Fulfillment Network (self-fulfilled)
FulfillmentChannel *string `json:"FulfillmentChannel,omitempty"`
// The type of payment.
//
// Possible values:
//
// * Sales
PaymentAmountType *string `json:"PaymentAmountType,omitempty"`
// The sales channel for the transaction.
SalesChannel *string `json:"SalesChannel,omitempty"`
// An order identifier that is specified by the seller.
SellerOrderId *string `json:"SellerOrderId,omitempty"`
// The store name where the event occurred.
StoreName *string `json:"StoreName,omitempty"`
TransactionPostedDate *Date `json:"TransactionPostedDate,omitempty"`
}
// PayWithAmazonEventList defines model for PayWithAmazonEventList.
type PayWithAmazonEventList []PayWithAmazonEvent
// ProductAdsPaymentEvent defines model for ProductAdsPaymentEvent.
type ProductAdsPaymentEvent struct {
// A currency type and amount.
BaseValue *Currency `json:"baseValue,omitempty"`
// Identifier for the invoice that the transaction appears in.
InvoiceId *string `json:"invoiceId,omitempty"`
PostedDate *Date `json:"postedDate,omitempty"`
// A currency type and amount.
TaxValue *Currency `json:"taxValue,omitempty"`
// Indicates if the transaction is for a charge or a refund.
//
// Possible values:
//
// * charge - Charge
//
// * refund - Refund
TransactionType *string `json:"transactionType,omitempty"`
// A currency type and amount.
TransactionValue *Currency `json:"transactionValue,omitempty"`
}
// ProductAdsPaymentEventList defines model for ProductAdsPaymentEventList.
type ProductAdsPaymentEventList []ProductAdsPaymentEvent
// Promotion defines model for Promotion.
type Promotion struct {
// A currency type and amount.
PromotionAmount *Currency `json:"PromotionAmount,omitempty"`
// The seller-specified identifier for the promotion.
PromotionId *string `json:"PromotionId,omitempty"`
// The type of promotion.
PromotionType *string `json:"PromotionType,omitempty"`
}
// PromotionList defines model for PromotionList.
type PromotionList []Promotion
// RemovalShipmentEvent defines model for RemovalShipmentEvent.
type RemovalShipmentEvent struct {
// The identifier for the removal shipment order.
OrderId *string `json:"OrderId,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// A list of information about removal shipment items.
RemovalShipmentItemList *RemovalShipmentItemList `json:"RemovalShipmentItemList,omitempty"`
// The type of removal order.
//
// Possible values:
//
// * WHOLESALE_LIQUIDATION
TransactionType *string `json:"TransactionType,omitempty"`
}
// RemovalShipmentEventList defines model for RemovalShipmentEventList.
type RemovalShipmentEventList []RemovalShipmentEvent
// RemovalShipmentItem defines model for RemovalShipmentItem.
type RemovalShipmentItem struct {
// A currency type and amount.
FeeAmount *Currency `json:"FeeAmount,omitempty"`
// The Amazon fulfillment network SKU for the item.
FulfillmentNetworkSKU *string `json:"FulfillmentNetworkSKU,omitempty"`
// The quantity of the item.
Quantity *int32 `json:"Quantity,omitempty"`
// An identifier for an item in a removal shipment.
RemovalShipmentItemId *string `json:"RemovalShipmentItemId,omitempty"`
// A currency type and amount.
Revenue *Currency `json:"Revenue,omitempty"`
// A currency type and amount.
TaxAmount *Currency `json:"TaxAmount,omitempty"`
// The tax collection model applied to the item.
//
// Possible values:
//
// * MarketplaceFacilitator - Tax is withheld and remitted to the taxing authority by Amazon on behalf of the seller.
//
// * Standard - Tax is paid to the seller and not remitted to the taxing authority by Amazon.
TaxCollectionModel *string `json:"TaxCollectionModel,omitempty"`
// A currency type and amount.
TaxWithheld *Currency `json:"TaxWithheld,omitempty"`
}
// RemovalShipmentItemList defines model for RemovalShipmentItemList.
type RemovalShipmentItemList []RemovalShipmentItem
// RentalTransactionEvent defines model for RentalTransactionEvent.
type RentalTransactionEvent struct {
// An Amazon-defined identifier for an order.
AmazonOrderId *string `json:"AmazonOrderId,omitempty"`
// The number of days that the buyer extended an already rented item. This value is only returned for RentalCustomerPayment-Extension and RentalCustomerRefund-Extension events.
ExtensionLength *int32 `json:"ExtensionLength,omitempty"`
// The name of the marketplace.
MarketplaceName *string `json:"MarketplaceName,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// A list of charge information on the seller's account.
RentalChargeList *ChargeComponentList `json:"RentalChargeList,omitempty"`
// The type of rental event.
//
// Possible values:
//
// * RentalCustomerPayment-Buyout - Transaction type that represents when the customer wants to buy out a rented item.
//
// * RentalCustomerPayment-Extension - Transaction type that represents when the customer wants to extend the rental period.
//
// * RentalCustomerRefund-Buyout - Transaction type that represents when the customer requests a refund for the buyout of the rented item.
//
// * RentalCustomerRefund-Extension - Transaction type that represents when the customer requests a refund over the extension on the rented item.
//
// * RentalHandlingFee - Transaction type that represents the fee that Amazon charges sellers who rent through Amazon.
//
// * RentalChargeFailureReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a failed charge.
//
// * RentalLostItemReimbursement - Transaction type that represents when Amazon sends money to the seller to compensate for a lost item.
RentalEventType *string `json:"RentalEventType,omitempty"`
// A list of fee component information.
RentalFeeList *FeeComponentList `json:"RentalFeeList,omitempty"`
// A currency type and amount.
RentalInitialValue *Currency `json:"RentalInitialValue,omitempty"`
// A currency type and amount.
RentalReimbursement *Currency `json:"RentalReimbursement,omitempty"`
// A list of information about taxes withheld.
RentalTaxWithheldList *TaxWithheldComponentList `json:"RentalTaxWithheldList,omitempty"`
}
// RentalTransactionEventList defines model for RentalTransactionEventList.
type RentalTransactionEventList []RentalTransactionEvent
// RetrochargeEvent defines model for RetrochargeEvent.
type RetrochargeEvent struct {
// An Amazon-defined identifier for an order.
AmazonOrderId *string `json:"AmazonOrderId,omitempty"`
// A currency type and amount.
BaseTax *Currency `json:"BaseTax,omitempty"`
// The name of the marketplace where the retrocharge event occurred.
MarketplaceName *string `json:"MarketplaceName,omitempty"`
PostedDate *Date `json:"PostedDate,omitempty"`
// The type of event.
//
// Possible values:
//
// * Retrocharge
//
// * RetrochargeReversal
RetrochargeEventType *string `json:"RetrochargeEventType,omitempty"`
// A list of information about taxes withheld.
RetrochargeTaxWithheldList *TaxWithheldComponentList `json:"RetrochargeTaxWithheldList,omitempty"`
// A currency type and amount.
ShippingTax *Currency `json:"ShippingTax,omitempty"`
}
// RetrochargeEventList defines model for RetrochargeEventList.
type RetrochargeEventList []RetrochargeEvent
// SAFETReimbursementEvent defines model for SAFETReimbursementEvent.
type SAFETReimbursementEvent struct {
PostedDate *Date `json:"PostedDate,omitempty"`
// Indicates why the seller was reimbursed.
ReasonCode *string `json:"ReasonCode,omitempty"`
// A currency type and amount.
ReimbursedAmount *Currency `json:"ReimbursedAmount,omitempty"`
// A SAFE-T claim identifier.
SAFETClaimId *string `json:"SAFETClaimId,omitempty"`
// A list of SAFETReimbursementItems.
SAFETReimbursementItemList *SAFETReimbursementItemList `json:"SAFETReimbursementItemList,omitempty"`
}
// SAFETReimbursementEventList defines model for SAFETReimbursementEventList.
type SAFETReimbursementEventList []SAFETReimbursementEvent
// SAFETReimbursementItem defines model for SAFETReimbursementItem.
type SAFETReimbursementItem struct {
// A list of charge information on the seller's account.
ItemChargeList *ChargeComponentList `json:"itemChargeList,omitempty"`
// The description of the item as shown on the product detail page on the retail website.
ProductDescription *string `json:"productDescription,omitempty"`
// The number of units of the item being reimbursed.
Quantity *string `json:"quantity,omitempty"`
}
// SAFETReimbursementItemList defines model for SAFETReimbursementItemList.
type SAFETReimbursementItemList []SAFETReimbursementItem
// SellerDealPaymentEvent defines model for SellerDealPaymentEvent.
type SellerDealPaymentEvent struct {
// The internal description of the deal.
DealDescription *string `json:"dealDescription,omitempty"`
// The unique identifier of the deal.
DealId *string `json:"dealId,omitempty"`
// The type of event: SellerDealComplete.
EventType *string `json:"eventType,omitempty"`
// A currency type and amount.
FeeAmount *Currency `json:"feeAmount,omitempty"`
// The type of fee: RunLightningDealFee.
FeeType *string `json:"feeType,omitempty"`
PostedDate *Date `json:"postedDate,omitempty"`
// A currency type and amount.
TaxAmount *Currency `json:"taxAmount,omitempty"`
// A currency type and amount.
TotalAmount *Currency `json:"totalAmount,omitempty"`
}
// SellerDealPaymentEventList defines model for SellerDealPaymentEventList.
type SellerDealPaymentEventList []SellerDealPaymentEvent
// SellerReviewEnrollmentPaymentEvent defines model for SellerReviewEnrollmentPaymentEvent.
type SellerReviewEnrollmentPaymentEvent struct {
// A charge on the seller's account.
//
// Possible values:
//
// * Principal - The selling price of the order item, equal to the selling price of the item multiplied by the quantity ordered.
//
// * Tax - The tax collected by the seller on the Principal.
//
// * MarketplaceFacilitatorTax-Principal - The tax withheld on the Principal.
//
// * MarketplaceFacilitatorTax-Shipping - The tax withheld on the ShippingCharge.
//
// * MarketplaceFacilitatorTax-Giftwrap - The tax withheld on the Giftwrap charge.
//
// * MarketplaceFacilitatorTax-Other - The tax withheld on other miscellaneous charges.
//
// * Discount - The promotional discount for an order item.
//
// * TaxDiscount - The tax amount deducted for promotional rebates.
//
// * CODItemCharge - The COD charge for an order item.
//
// * CODItemTaxCharge - The tax collected by the seller on a CODItemCharge.
//
// * CODOrderCharge - The COD charge for an order.
//
// * CODOrderTaxCharge - The tax collected by the seller on a CODOrderCharge.
//
// * CODShippingCharge - Shipping charges for a COD order.
//
// * CODShippingTaxCharge - The tax collected by the seller on a CODShippingCharge.
//
// * ShippingCharge - The shipping charge.
//
// * ShippingTax - The tax collected by the seller on a ShippingCharge.
//
// * Goodwill - The amount given to a buyer as a gesture of goodwill or to compensate for pain and suffering in the buying experience.
//
// * Giftwrap - The gift wrap charge.
//
// * GiftwrapTax - The tax collected by the seller on a Giftwrap charge.
//
// * RestockingFee - The charge applied to the buyer when returning a product in certain categories.
//
// * ReturnShipping - The amount given to the buyer to compensate for shipping the item back in the event we are at fault.
//
// * PointsFee - The value of Amazon Points deducted from the refund if the buyer does not have enough Amazon Points to cover the deduction.
//
// * GenericDeduction - A generic bad debt deduction.
//