@sp-api-sdk/finances-api-v0 4.0.1 → 4.0.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/cjs/api-model/api/finances-api.js +0 -10
- package/dist/cjs/api-model/base.js +0 -19
- package/dist/cjs/api-model/common.js +0 -37
- package/dist/cjs/api-model/configuration.js +0 -17
- package/dist/es/api-model/api/finances-api.js +0 -10
- package/dist/es/api-model/base.js +0 -19
- package/dist/es/api-model/common.js +0 -37
- package/dist/es/api-model/configuration.js +0 -17
- package/dist/types/api-model/api/finances-api.d.ts +0 -50
- package/dist/types/api-model/base.d.ts +0 -24
- package/dist/types/api-model/common.d.ts +0 -37
- package/dist/types/api-model/configuration.d.ts +0 -17
- package/dist/types/api-model/models/adhoc-disbursement-event.d.ts +0 -13
- package/dist/types/api-model/models/adjustment-event.d.ts +0 -15
- package/dist/types/api-model/models/adjustment-item.d.ts +0 -24
- package/dist/types/api-model/models/affordability-expense-event.d.ts +0 -35
- package/dist/types/api-model/models/capacity-reservation-billing-event.d.ts +0 -13
- package/dist/types/api-model/models/charge-component.d.ts +0 -9
- package/dist/types/api-model/models/charge-instrument.d.ts +0 -11
- package/dist/types/api-model/models/charge-refund-event.d.ts +0 -10
- package/dist/types/api-model/models/charge-refund-transaction.d.ts +0 -9
- package/dist/types/api-model/models/coupon-payment-event.d.ts +0 -27
- package/dist/types/api-model/models/currency.d.ts +0 -6
- package/dist/types/api-model/models/debt-recovery-event.d.ts +0 -18
- package/dist/types/api-model/models/debt-recovery-item.d.ts +0 -16
- package/dist/types/api-model/models/direct-payment.d.ts +0 -9
- package/dist/types/api-model/models/failed-adhoc-disbursement-event.d.ts +0 -19
- package/dist/types/api-model/models/fbaliquidation-event.d.ts +0 -16
- package/dist/types/api-model/models/fee-component.d.ts +0 -9
- package/dist/types/api-model/models/financial-event-group.d.ts +0 -33
- package/dist/types/api-model/models/financial-events.d.ts +0 -68
- package/dist/types/api-model/models/imaging-services-fee-event.d.ts +0 -10
- package/dist/types/api-model/models/list-financial-event-groups-payload.d.ts +0 -6
- package/dist/types/api-model/models/list-financial-event-groups-response.d.ts +0 -9
- package/dist/types/api-model/models/list-financial-events-payload.d.ts +0 -9
- package/dist/types/api-model/models/list-financial-events-response.d.ts +0 -9
- package/dist/types/api-model/models/loan-servicing-event.d.ts +0 -9
- package/dist/types/api-model/models/model-error.d.ts +0 -8
- package/dist/types/api-model/models/network-commingling-transaction-event.d.ts +0 -24
- package/dist/types/api-model/models/pay-with-amazon-event.d.ts +0 -25
- package/dist/types/api-model/models/product-ads-payment-event.d.ts +0 -23
- package/dist/types/api-model/models/promotion.d.ts +0 -11
- package/dist/types/api-model/models/removal-shipment-adjustment-event.d.ts +0 -14
- package/dist/types/api-model/models/removal-shipment-event.d.ts +0 -14
- package/dist/types/api-model/models/removal-shipment-item-adjustment.d.ts +0 -25
- package/dist/types/api-model/models/removal-shipment-item.d.ts +0 -30
- package/dist/types/api-model/models/rental-transaction-event.d.ts +0 -28
- package/dist/types/api-model/models/retrocharge-event.d.ts +0 -22
- package/dist/types/api-model/models/safetreimbursement-event.d.ts +0 -15
- package/dist/types/api-model/models/safetreimbursement-item.d.ts +0 -8
- package/dist/types/api-model/models/seller-deal-payment-event.d.ts +0 -27
- package/dist/types/api-model/models/seller-review-enrollment-payment-event.d.ts +0 -23
- package/dist/types/api-model/models/service-fee-event.d.ts +0 -18
- package/dist/types/api-model/models/shipment-event.d.ts +0 -30
- package/dist/types/api-model/models/shipment-item.d.ts +0 -34
- package/dist/types/api-model/models/solution-provider-credit-event.d.ts +0 -25
- package/dist/types/api-model/models/tax-withheld-component.d.ts +0 -6
- package/dist/types/api-model/models/tax-withholding-event.d.ts +0 -19
- package/dist/types/api-model/models/tax-withholding-period.d.ts +0 -6
- package/dist/types/api-model/models/tdsreimbursement-event.d.ts +0 -11
- package/dist/types/api-model/models/trial-shipment-event.d.ts +0 -12
- package/dist/types/api-model/models/value-added-service-charge-event.d.ts +0 -13
- package/package.json +25 -4
|
@@ -12,56 +12,29 @@
|
|
|
12
12
|
import type { Currency } from './currency';
|
|
13
13
|
/**
|
|
14
14
|
* An event linked to the payment of a fee related to the specified deal.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SellerDealPaymentEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface SellerDealPaymentEvent {
|
|
19
17
|
/**
|
|
20
18
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SellerDealPaymentEvent
|
|
23
19
|
*/
|
|
24
20
|
'postedDate'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The unique identifier of the deal.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof SellerDealPaymentEvent
|
|
29
23
|
*/
|
|
30
24
|
'dealId'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* The internal description of the deal.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof SellerDealPaymentEvent
|
|
35
27
|
*/
|
|
36
28
|
'dealDescription'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* The type of event: SellerDealComplete.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof SellerDealPaymentEvent
|
|
41
31
|
*/
|
|
42
32
|
'eventType'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* The type of fee: RunLightningDealFee.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof SellerDealPaymentEvent
|
|
47
35
|
*/
|
|
48
36
|
'feeType'?: string;
|
|
49
|
-
/**
|
|
50
|
-
*
|
|
51
|
-
* @type {Currency}
|
|
52
|
-
* @memberof SellerDealPaymentEvent
|
|
53
|
-
*/
|
|
54
37
|
'feeAmount'?: Currency;
|
|
55
|
-
/**
|
|
56
|
-
*
|
|
57
|
-
* @type {Currency}
|
|
58
|
-
* @memberof SellerDealPaymentEvent
|
|
59
|
-
*/
|
|
60
38
|
'taxAmount'?: Currency;
|
|
61
|
-
/**
|
|
62
|
-
*
|
|
63
|
-
* @type {Currency}
|
|
64
|
-
* @memberof SellerDealPaymentEvent
|
|
65
|
-
*/
|
|
66
39
|
'totalAmount'?: Currency;
|
|
67
40
|
}
|
|
@@ -14,44 +14,21 @@ import type { Currency } from './currency';
|
|
|
14
14
|
import type { FeeComponent } from './fee-component';
|
|
15
15
|
/**
|
|
16
16
|
* A fee payment event for the Early Reviewer Program.
|
|
17
|
-
* @export
|
|
18
|
-
* @interface SellerReviewEnrollmentPaymentEvent
|
|
19
17
|
*/
|
|
20
18
|
export interface SellerReviewEnrollmentPaymentEvent {
|
|
21
19
|
/**
|
|
22
20
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
23
|
-
* @type {string}
|
|
24
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
25
21
|
*/
|
|
26
22
|
'PostedDate'?: string;
|
|
27
23
|
/**
|
|
28
24
|
* An enrollment identifier.
|
|
29
|
-
* @type {string}
|
|
30
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
31
25
|
*/
|
|
32
26
|
'EnrollmentId'?: string;
|
|
33
27
|
/**
|
|
34
28
|
* The Amazon Standard Identification Number (ASIN) of the item that was enrolled in the Early Reviewer Program.
|
|
35
|
-
* @type {string}
|
|
36
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
37
29
|
*/
|
|
38
30
|
'ParentASIN'?: string;
|
|
39
|
-
/**
|
|
40
|
-
*
|
|
41
|
-
* @type {FeeComponent}
|
|
42
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
43
|
-
*/
|
|
44
31
|
'FeeComponent'?: FeeComponent;
|
|
45
|
-
/**
|
|
46
|
-
*
|
|
47
|
-
* @type {ChargeComponent}
|
|
48
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
49
|
-
*/
|
|
50
32
|
'ChargeComponent'?: ChargeComponent;
|
|
51
|
-
/**
|
|
52
|
-
*
|
|
53
|
-
* @type {Currency}
|
|
54
|
-
* @memberof SellerReviewEnrollmentPaymentEvent
|
|
55
|
-
*/
|
|
56
33
|
'TotalAmount'?: Currency;
|
|
57
34
|
}
|
|
@@ -12,56 +12,38 @@
|
|
|
12
12
|
import type { FeeComponent } from './fee-component';
|
|
13
13
|
/**
|
|
14
14
|
* A service fee on the seller\'s account.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ServiceFeeEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface ServiceFeeEvent {
|
|
19
17
|
/**
|
|
20
18
|
* An Amazon-defined identifier for an order.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ServiceFeeEvent
|
|
23
19
|
*/
|
|
24
20
|
'AmazonOrderId'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* A short description of the service fee reason.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ServiceFeeEvent
|
|
29
23
|
*/
|
|
30
24
|
'FeeReason'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* A list of fee component information.
|
|
33
|
-
* @type {Array<FeeComponent>}
|
|
34
|
-
* @memberof ServiceFeeEvent
|
|
35
27
|
*/
|
|
36
28
|
'FeeList'?: Array<FeeComponent>;
|
|
37
29
|
/**
|
|
38
30
|
* 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.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof ServiceFeeEvent
|
|
41
31
|
*/
|
|
42
32
|
'SellerSKU'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* A unique identifier assigned by Amazon to products stored in and fulfilled from an Amazon fulfillment center.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof ServiceFeeEvent
|
|
47
35
|
*/
|
|
48
36
|
'FnSKU'?: string;
|
|
49
37
|
/**
|
|
50
38
|
* A short description of the service fee event.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof ServiceFeeEvent
|
|
53
39
|
*/
|
|
54
40
|
'FeeDescription'?: string;
|
|
55
41
|
/**
|
|
56
42
|
* The Amazon Standard Identification Number (ASIN) of the item.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof ServiceFeeEvent
|
|
59
43
|
*/
|
|
60
44
|
'ASIN'?: string;
|
|
61
45
|
/**
|
|
62
46
|
* The name of the store where the event occurred.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof ServiceFeeEvent
|
|
65
47
|
*/
|
|
66
48
|
'StoreName'?: string;
|
|
67
49
|
}
|
|
@@ -15,92 +15,62 @@ import type { FeeComponent } from './fee-component';
|
|
|
15
15
|
import type { ShipmentItem } from './shipment-item';
|
|
16
16
|
/**
|
|
17
17
|
* A shipment, refund, guarantee claim, or chargeback.
|
|
18
|
-
* @export
|
|
19
|
-
* @interface ShipmentEvent
|
|
20
18
|
*/
|
|
21
19
|
export interface ShipmentEvent {
|
|
22
20
|
/**
|
|
23
21
|
* An Amazon-defined identifier for an order.
|
|
24
|
-
* @type {string}
|
|
25
|
-
* @memberof ShipmentEvent
|
|
26
22
|
*/
|
|
27
23
|
'AmazonOrderId'?: string;
|
|
28
24
|
/**
|
|
29
25
|
* A seller-defined identifier for an order.
|
|
30
|
-
* @type {string}
|
|
31
|
-
* @memberof ShipmentEvent
|
|
32
26
|
*/
|
|
33
27
|
'SellerOrderId'?: string;
|
|
34
28
|
/**
|
|
35
29
|
* The name of the marketplace where the event occurred.
|
|
36
|
-
* @type {string}
|
|
37
|
-
* @memberof ShipmentEvent
|
|
38
30
|
*/
|
|
39
31
|
'MarketplaceName'?: string;
|
|
40
32
|
/**
|
|
41
33
|
* The name of the store where the event occurred.
|
|
42
|
-
* @type {string}
|
|
43
|
-
* @memberof ShipmentEvent
|
|
44
34
|
*/
|
|
45
35
|
'StoreName'?: string;
|
|
46
36
|
/**
|
|
47
37
|
* A list of charge information on the seller\'s account.
|
|
48
|
-
* @type {Array<ChargeComponent>}
|
|
49
|
-
* @memberof ShipmentEvent
|
|
50
38
|
*/
|
|
51
39
|
'OrderChargeList'?: Array<ChargeComponent>;
|
|
52
40
|
/**
|
|
53
41
|
* A list of charge information on the seller\'s account.
|
|
54
|
-
* @type {Array<ChargeComponent>}
|
|
55
|
-
* @memberof ShipmentEvent
|
|
56
42
|
*/
|
|
57
43
|
'OrderChargeAdjustmentList'?: Array<ChargeComponent>;
|
|
58
44
|
/**
|
|
59
45
|
* A list of fee component information.
|
|
60
|
-
* @type {Array<FeeComponent>}
|
|
61
|
-
* @memberof ShipmentEvent
|
|
62
46
|
*/
|
|
63
47
|
'ShipmentFeeList'?: Array<FeeComponent>;
|
|
64
48
|
/**
|
|
65
49
|
* A list of fee component information.
|
|
66
|
-
* @type {Array<FeeComponent>}
|
|
67
|
-
* @memberof ShipmentEvent
|
|
68
50
|
*/
|
|
69
51
|
'ShipmentFeeAdjustmentList'?: Array<FeeComponent>;
|
|
70
52
|
/**
|
|
71
53
|
* A list of fee component information.
|
|
72
|
-
* @type {Array<FeeComponent>}
|
|
73
|
-
* @memberof ShipmentEvent
|
|
74
54
|
*/
|
|
75
55
|
'OrderFeeList'?: Array<FeeComponent>;
|
|
76
56
|
/**
|
|
77
57
|
* A list of fee component information.
|
|
78
|
-
* @type {Array<FeeComponent>}
|
|
79
|
-
* @memberof ShipmentEvent
|
|
80
58
|
*/
|
|
81
59
|
'OrderFeeAdjustmentList'?: Array<FeeComponent>;
|
|
82
60
|
/**
|
|
83
61
|
* A list of direct payment information.
|
|
84
|
-
* @type {Array<DirectPayment>}
|
|
85
|
-
* @memberof ShipmentEvent
|
|
86
62
|
*/
|
|
87
63
|
'DirectPaymentList'?: Array<DirectPayment>;
|
|
88
64
|
/**
|
|
89
65
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
90
|
-
* @type {string}
|
|
91
|
-
* @memberof ShipmentEvent
|
|
92
66
|
*/
|
|
93
67
|
'PostedDate'?: string;
|
|
94
68
|
/**
|
|
95
69
|
* A list of shipment items.
|
|
96
|
-
* @type {Array<ShipmentItem>}
|
|
97
|
-
* @memberof ShipmentEvent
|
|
98
70
|
*/
|
|
99
71
|
'ShipmentItemList'?: Array<ShipmentItem>;
|
|
100
72
|
/**
|
|
101
73
|
* A list of shipment items.
|
|
102
|
-
* @type {Array<ShipmentItem>}
|
|
103
|
-
* @memberof ShipmentEvent
|
|
104
74
|
*/
|
|
105
75
|
'ShipmentItemAdjustmentList'?: Array<ShipmentItem>;
|
|
106
76
|
}
|
|
@@ -16,86 +16,52 @@ import type { Promotion } from './promotion';
|
|
|
16
16
|
import type { TaxWithheldComponent } from './tax-withheld-component';
|
|
17
17
|
/**
|
|
18
18
|
* An item of a shipment, refund, guarantee claim, or chargeback.
|
|
19
|
-
* @export
|
|
20
|
-
* @interface ShipmentItem
|
|
21
19
|
*/
|
|
22
20
|
export interface ShipmentItem {
|
|
23
21
|
/**
|
|
24
22
|
* 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.
|
|
25
|
-
* @type {string}
|
|
26
|
-
* @memberof ShipmentItem
|
|
27
23
|
*/
|
|
28
24
|
'SellerSKU'?: string;
|
|
29
25
|
/**
|
|
30
26
|
* An Amazon-defined order item identifier.
|
|
31
|
-
* @type {string}
|
|
32
|
-
* @memberof ShipmentItem
|
|
33
27
|
*/
|
|
34
28
|
'OrderItemId'?: string;
|
|
35
29
|
/**
|
|
36
30
|
* An Amazon-defined order adjustment identifier defined for refunds, guarantee claims, and chargeback events.
|
|
37
|
-
* @type {string}
|
|
38
|
-
* @memberof ShipmentItem
|
|
39
31
|
*/
|
|
40
32
|
'OrderAdjustmentItemId'?: string;
|
|
41
33
|
/**
|
|
42
34
|
* The number of items shipped.
|
|
43
|
-
* @type {number}
|
|
44
|
-
* @memberof ShipmentItem
|
|
45
35
|
*/
|
|
46
36
|
'QuantityShipped'?: number;
|
|
47
37
|
/**
|
|
48
38
|
* A list of charge information on the seller\'s account.
|
|
49
|
-
* @type {Array<ChargeComponent>}
|
|
50
|
-
* @memberof ShipmentItem
|
|
51
39
|
*/
|
|
52
40
|
'ItemChargeList'?: Array<ChargeComponent>;
|
|
53
41
|
/**
|
|
54
42
|
* A list of charge information on the seller\'s account.
|
|
55
|
-
* @type {Array<ChargeComponent>}
|
|
56
|
-
* @memberof ShipmentItem
|
|
57
43
|
*/
|
|
58
44
|
'ItemChargeAdjustmentList'?: Array<ChargeComponent>;
|
|
59
45
|
/**
|
|
60
46
|
* A list of fee component information.
|
|
61
|
-
* @type {Array<FeeComponent>}
|
|
62
|
-
* @memberof ShipmentItem
|
|
63
47
|
*/
|
|
64
48
|
'ItemFeeList'?: Array<FeeComponent>;
|
|
65
49
|
/**
|
|
66
50
|
* A list of fee component information.
|
|
67
|
-
* @type {Array<FeeComponent>}
|
|
68
|
-
* @memberof ShipmentItem
|
|
69
51
|
*/
|
|
70
52
|
'ItemFeeAdjustmentList'?: Array<FeeComponent>;
|
|
71
53
|
/**
|
|
72
54
|
* A list of information about taxes withheld.
|
|
73
|
-
* @type {Array<TaxWithheldComponent>}
|
|
74
|
-
* @memberof ShipmentItem
|
|
75
55
|
*/
|
|
76
56
|
'ItemTaxWithheldList'?: Array<TaxWithheldComponent>;
|
|
77
57
|
/**
|
|
78
58
|
* A list of promotions.
|
|
79
|
-
* @type {Array<Promotion>}
|
|
80
|
-
* @memberof ShipmentItem
|
|
81
59
|
*/
|
|
82
60
|
'PromotionList'?: Array<Promotion>;
|
|
83
61
|
/**
|
|
84
62
|
* A list of promotions.
|
|
85
|
-
* @type {Array<Promotion>}
|
|
86
|
-
* @memberof ShipmentItem
|
|
87
63
|
*/
|
|
88
64
|
'PromotionAdjustmentList'?: Array<Promotion>;
|
|
89
|
-
/**
|
|
90
|
-
*
|
|
91
|
-
* @type {Currency}
|
|
92
|
-
* @memberof ShipmentItem
|
|
93
|
-
*/
|
|
94
65
|
'CostOfPointsGranted'?: Currency;
|
|
95
|
-
/**
|
|
96
|
-
*
|
|
97
|
-
* @type {Currency}
|
|
98
|
-
* @memberof ShipmentItem
|
|
99
|
-
*/
|
|
100
66
|
'CostOfPointsReturned'?: Currency;
|
|
101
67
|
}
|
|
@@ -12,68 +12,43 @@
|
|
|
12
12
|
import type { Currency } from './currency';
|
|
13
13
|
/**
|
|
14
14
|
* A credit given to a solution provider.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface SolutionProviderCreditEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface SolutionProviderCreditEvent {
|
|
19
17
|
/**
|
|
20
18
|
* The transaction type.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof SolutionProviderCreditEvent
|
|
23
19
|
*/
|
|
24
20
|
'ProviderTransactionType'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* A seller-defined identifier for an order.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof SolutionProviderCreditEvent
|
|
29
23
|
*/
|
|
30
24
|
'SellerOrderId'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* The identifier of the marketplace where the order was placed.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof SolutionProviderCreditEvent
|
|
35
27
|
*/
|
|
36
28
|
'MarketplaceId'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* The two-letter country code of the country associated with the marketplace where the order was placed.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof SolutionProviderCreditEvent
|
|
41
31
|
*/
|
|
42
32
|
'MarketplaceCountryCode'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* The Amazon-defined identifier of the seller.
|
|
45
|
-
* @type {string}
|
|
46
|
-
* @memberof SolutionProviderCreditEvent
|
|
47
35
|
*/
|
|
48
36
|
'SellerId'?: string;
|
|
49
37
|
/**
|
|
50
38
|
* The store name where the payment event occurred.
|
|
51
|
-
* @type {string}
|
|
52
|
-
* @memberof SolutionProviderCreditEvent
|
|
53
39
|
*/
|
|
54
40
|
'SellerStoreName'?: string;
|
|
55
41
|
/**
|
|
56
42
|
* The Amazon-defined identifier of the solution provider.
|
|
57
|
-
* @type {string}
|
|
58
|
-
* @memberof SolutionProviderCreditEvent
|
|
59
43
|
*/
|
|
60
44
|
'ProviderId'?: string;
|
|
61
45
|
/**
|
|
62
46
|
* The store name where the payment event occurred.
|
|
63
|
-
* @type {string}
|
|
64
|
-
* @memberof SolutionProviderCreditEvent
|
|
65
47
|
*/
|
|
66
48
|
'ProviderStoreName'?: string;
|
|
67
|
-
/**
|
|
68
|
-
*
|
|
69
|
-
* @type {Currency}
|
|
70
|
-
* @memberof SolutionProviderCreditEvent
|
|
71
|
-
*/
|
|
72
49
|
'TransactionAmount'?: Currency;
|
|
73
50
|
/**
|
|
74
51
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
75
|
-
* @type {string}
|
|
76
|
-
* @memberof SolutionProviderCreditEvent
|
|
77
52
|
*/
|
|
78
53
|
'TransactionCreationDate'?: string;
|
|
79
54
|
}
|
|
@@ -12,20 +12,14 @@
|
|
|
12
12
|
import type { ChargeComponent } from './charge-component';
|
|
13
13
|
/**
|
|
14
14
|
* Information about the taxes withheld.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TaxWithheldComponent
|
|
17
15
|
*/
|
|
18
16
|
export interface TaxWithheldComponent {
|
|
19
17
|
/**
|
|
20
18
|
* 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.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof TaxWithheldComponent
|
|
23
19
|
*/
|
|
24
20
|
'TaxCollectionModel'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* A list of charge information on the seller\'s account.
|
|
27
|
-
* @type {Array<ChargeComponent>}
|
|
28
|
-
* @memberof TaxWithheldComponent
|
|
29
23
|
*/
|
|
30
24
|
'TaxesWithheld'?: Array<ChargeComponent>;
|
|
31
25
|
}
|
|
@@ -13,32 +13,13 @@ import type { Currency } from './currency';
|
|
|
13
13
|
import type { TaxWithholdingPeriod } from './tax-withholding-period';
|
|
14
14
|
/**
|
|
15
15
|
* A TaxWithholding event on seller\'s account.
|
|
16
|
-
* @export
|
|
17
|
-
* @interface TaxWithholdingEvent
|
|
18
16
|
*/
|
|
19
17
|
export interface TaxWithholdingEvent {
|
|
20
18
|
/**
|
|
21
19
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
22
|
-
* @type {string}
|
|
23
|
-
* @memberof TaxWithholdingEvent
|
|
24
20
|
*/
|
|
25
21
|
'PostedDate'?: string;
|
|
26
|
-
/**
|
|
27
|
-
*
|
|
28
|
-
* @type {Currency}
|
|
29
|
-
* @memberof TaxWithholdingEvent
|
|
30
|
-
*/
|
|
31
22
|
'BaseAmount'?: Currency;
|
|
32
|
-
/**
|
|
33
|
-
*
|
|
34
|
-
* @type {Currency}
|
|
35
|
-
* @memberof TaxWithholdingEvent
|
|
36
|
-
*/
|
|
37
23
|
'WithheldAmount'?: Currency;
|
|
38
|
-
/**
|
|
39
|
-
*
|
|
40
|
-
* @type {TaxWithholdingPeriod}
|
|
41
|
-
* @memberof TaxWithholdingEvent
|
|
42
|
-
*/
|
|
43
24
|
'TaxWithholdingPeriod'?: TaxWithholdingPeriod;
|
|
44
25
|
}
|
|
@@ -11,20 +11,14 @@
|
|
|
11
11
|
*/
|
|
12
12
|
/**
|
|
13
13
|
* Period which taxwithholding on seller\'s account is calculated.
|
|
14
|
-
* @export
|
|
15
|
-
* @interface TaxWithholdingPeriod
|
|
16
14
|
*/
|
|
17
15
|
export interface TaxWithholdingPeriod {
|
|
18
16
|
/**
|
|
19
17
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
20
|
-
* @type {string}
|
|
21
|
-
* @memberof TaxWithholdingPeriod
|
|
22
18
|
*/
|
|
23
19
|
'StartDate'?: string;
|
|
24
20
|
/**
|
|
25
21
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
26
|
-
* @type {string}
|
|
27
|
-
* @memberof TaxWithholdingPeriod
|
|
28
22
|
*/
|
|
29
23
|
'EndDate'?: string;
|
|
30
24
|
}
|
|
@@ -12,26 +12,15 @@
|
|
|
12
12
|
import type { Currency } from './currency';
|
|
13
13
|
/**
|
|
14
14
|
* An event related to a Tax-Deducted-at-Source (TDS) reimbursement.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TDSReimbursementEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface TDSReimbursementEvent {
|
|
19
17
|
/**
|
|
20
18
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof TDSReimbursementEvent
|
|
23
19
|
*/
|
|
24
20
|
'PostedDate'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The Tax-Deducted-at-Source (TDS) identifier.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof TDSReimbursementEvent
|
|
29
23
|
*/
|
|
30
24
|
'TDSOrderId'?: string;
|
|
31
|
-
/**
|
|
32
|
-
*
|
|
33
|
-
* @type {Currency}
|
|
34
|
-
* @memberof TDSReimbursementEvent
|
|
35
|
-
*/
|
|
36
25
|
'ReimbursedAmount'?: Currency;
|
|
37
26
|
}
|
|
@@ -12,38 +12,26 @@
|
|
|
12
12
|
import type { FeeComponent } from './fee-component';
|
|
13
13
|
/**
|
|
14
14
|
* An event related to a trial shipment.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface TrialShipmentEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface TrialShipmentEvent {
|
|
19
17
|
/**
|
|
20
18
|
* An Amazon-defined identifier for an order.
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof TrialShipmentEvent
|
|
23
19
|
*/
|
|
24
20
|
'AmazonOrderId'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* The identifier of the financial event group.
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof TrialShipmentEvent
|
|
29
23
|
*/
|
|
30
24
|
'FinancialEventGroupId'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof TrialShipmentEvent
|
|
35
27
|
*/
|
|
36
28
|
'PostedDate'?: string;
|
|
37
29
|
/**
|
|
38
30
|
* 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.
|
|
39
|
-
* @type {string}
|
|
40
|
-
* @memberof TrialShipmentEvent
|
|
41
31
|
*/
|
|
42
32
|
'SKU'?: string;
|
|
43
33
|
/**
|
|
44
34
|
* A list of fee component information.
|
|
45
|
-
* @type {Array<FeeComponent>}
|
|
46
|
-
* @memberof TrialShipmentEvent
|
|
47
35
|
*/
|
|
48
36
|
'FeeList'?: Array<FeeComponent>;
|
|
49
37
|
}
|
|
@@ -12,32 +12,19 @@
|
|
|
12
12
|
import type { Currency } from './currency';
|
|
13
13
|
/**
|
|
14
14
|
* An event related to a value added service charge.
|
|
15
|
-
* @export
|
|
16
|
-
* @interface ValueAddedServiceChargeEvent
|
|
17
15
|
*/
|
|
18
16
|
export interface ValueAddedServiceChargeEvent {
|
|
19
17
|
/**
|
|
20
18
|
* Indicates the type of transaction. Example: \'Other Support Service fees\'
|
|
21
|
-
* @type {string}
|
|
22
|
-
* @memberof ValueAddedServiceChargeEvent
|
|
23
19
|
*/
|
|
24
20
|
'TransactionType'?: string;
|
|
25
21
|
/**
|
|
26
22
|
* Fields with a schema type of date are in ISO 8601 date time format (for example GroupBeginDate).
|
|
27
|
-
* @type {string}
|
|
28
|
-
* @memberof ValueAddedServiceChargeEvent
|
|
29
23
|
*/
|
|
30
24
|
'PostedDate'?: string;
|
|
31
25
|
/**
|
|
32
26
|
* A short description of the service charge event.
|
|
33
|
-
* @type {string}
|
|
34
|
-
* @memberof ValueAddedServiceChargeEvent
|
|
35
27
|
*/
|
|
36
28
|
'Description'?: string;
|
|
37
|
-
/**
|
|
38
|
-
*
|
|
39
|
-
* @type {Currency}
|
|
40
|
-
* @memberof ValueAddedServiceChargeEvent
|
|
41
|
-
*/
|
|
42
29
|
'TransactionAmount'?: Currency;
|
|
43
30
|
}
|
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@sp-api-sdk/finances-api-v0",
|
|
3
3
|
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
4
|
"description": "The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.",
|
|
5
|
-
"version": "4.0.
|
|
5
|
+
"version": "4.0.3",
|
|
6
6
|
"main": "dist/cjs/index.js",
|
|
7
7
|
"module": "dist/es/index.js",
|
|
8
8
|
"types": "dist/types/index.d.ts",
|
|
@@ -18,8 +18,8 @@
|
|
|
18
18
|
"dist/**/*.d.ts"
|
|
19
19
|
],
|
|
20
20
|
"dependencies": {
|
|
21
|
-
"@sp-api-sdk/common": "2.1.
|
|
22
|
-
"axios": "^1.
|
|
21
|
+
"@sp-api-sdk/common": "2.1.17",
|
|
22
|
+
"axios": "^1.11.0"
|
|
23
23
|
},
|
|
24
24
|
"repository": {
|
|
25
25
|
"type": "git",
|
|
@@ -40,5 +40,26 @@
|
|
|
40
40
|
"sp sdk",
|
|
41
41
|
"finances api"
|
|
42
42
|
],
|
|
43
|
-
"
|
|
43
|
+
"xo": {
|
|
44
|
+
"extends": [
|
|
45
|
+
"xo-bizon"
|
|
46
|
+
],
|
|
47
|
+
"settings": {
|
|
48
|
+
"import/internal-regex": "^@sp-api-sdk/"
|
|
49
|
+
},
|
|
50
|
+
"semicolon": false,
|
|
51
|
+
"space": 2,
|
|
52
|
+
"prettier": true,
|
|
53
|
+
"ignores": [
|
|
54
|
+
"src/api-model/**"
|
|
55
|
+
],
|
|
56
|
+
"rules": {
|
|
57
|
+
"unicorn/prevent-abbreviations": "off"
|
|
58
|
+
}
|
|
59
|
+
},
|
|
60
|
+
"prettier": {
|
|
61
|
+
"printWidth": 100,
|
|
62
|
+
"jsxSingleQuote": true
|
|
63
|
+
},
|
|
64
|
+
"gitHead": "961457650a65779f38e5d35547ca8cb2fb749943"
|
|
44
65
|
}
|