@sp-api-sdk/finances-api-2024-06-19 3.3.3 → 4.0.0
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/README.md +4 -4
- package/dist/index.cjs +349 -0
- package/dist/index.cjs.map +1 -0
- package/dist/index.d.cts +791 -0
- package/dist/index.d.ts +791 -0
- package/dist/index.js +304 -0
- package/dist/index.js.map +1 -0
- package/package.json +23 -12
- package/dist/cjs/api-model/api/finances-api.js +0 -150
- package/dist/cjs/api-model/api.js +0 -30
- package/dist/cjs/api-model/base.js +0 -52
- package/dist/cjs/api-model/common.js +0 -123
- package/dist/cjs/api-model/configuration.js +0 -98
- package/dist/cjs/api-model/index.js +0 -32
- package/dist/cjs/api-model/models/amazon-pay-context.js +0 -15
- package/dist/cjs/api-model/models/breakdown.js +0 -15
- package/dist/cjs/api-model/models/business-context.js +0 -19
- package/dist/cjs/api-model/models/context-all-of.js +0 -15
- package/dist/cjs/api-model/models/context.js +0 -15
- package/dist/cjs/api-model/models/currency.js +0 -15
- package/dist/cjs/api-model/models/deferred-context.js +0 -15
- package/dist/cjs/api-model/models/error-list.js +0 -15
- package/dist/cjs/api-model/models/index.js +0 -36
- package/dist/cjs/api-model/models/item-related-identifier.js +0 -22
- package/dist/cjs/api-model/models/item.js +0 -15
- package/dist/cjs/api-model/models/list-transactions-response.js +0 -15
- package/dist/cjs/api-model/models/marketplace-details.js +0 -15
- package/dist/cjs/api-model/models/model-error.js +0 -15
- package/dist/cjs/api-model/models/payments-context.js +0 -15
- package/dist/cjs/api-model/models/product-context.js +0 -15
- package/dist/cjs/api-model/models/related-identifier.js +0 -28
- package/dist/cjs/api-model/models/selling-partner-metadata.js +0 -15
- package/dist/cjs/api-model/models/time-range-context.js +0 -15
- package/dist/cjs/api-model/models/transaction.js +0 -15
- package/dist/cjs/api-model/models/transactions-payload.js +0 -15
- package/dist/cjs/client.js +0 -21
- package/dist/cjs/index.js +0 -19
- package/dist/es/api-model/api/finances-api.js +0 -140
- package/dist/es/api-model/api.js +0 -14
- package/dist/es/api-model/base.js +0 -44
- package/dist/es/api-model/common.js +0 -110
- package/dist/es/api-model/configuration.js +0 -94
- package/dist/es/api-model/index.js +0 -16
- package/dist/es/api-model/models/amazon-pay-context.js +0 -14
- package/dist/es/api-model/models/breakdown.js +0 -14
- package/dist/es/api-model/models/business-context.js +0 -16
- package/dist/es/api-model/models/context-all-of.js +0 -14
- package/dist/es/api-model/models/context.js +0 -14
- package/dist/es/api-model/models/currency.js +0 -14
- package/dist/es/api-model/models/deferred-context.js +0 -14
- package/dist/es/api-model/models/error-list.js +0 -14
- package/dist/es/api-model/models/index.js +0 -20
- package/dist/es/api-model/models/item-related-identifier.js +0 -19
- package/dist/es/api-model/models/item.js +0 -14
- package/dist/es/api-model/models/list-transactions-response.js +0 -14
- package/dist/es/api-model/models/marketplace-details.js +0 -14
- package/dist/es/api-model/models/model-error.js +0 -14
- package/dist/es/api-model/models/payments-context.js +0 -14
- package/dist/es/api-model/models/product-context.js +0 -14
- package/dist/es/api-model/models/related-identifier.js +0 -25
- package/dist/es/api-model/models/selling-partner-metadata.js +0 -14
- package/dist/es/api-model/models/time-range-context.js +0 -14
- package/dist/es/api-model/models/transaction.js +0 -14
- package/dist/es/api-model/models/transactions-payload.js +0 -14
- package/dist/es/client.js +0 -17
- package/dist/es/index.js +0 -3
- package/dist/types/api-model/api/finances-api.d.ts +0 -109
- package/dist/types/api-model/api.d.ts +0 -12
- package/dist/types/api-model/base.d.ts +0 -42
- package/dist/types/api-model/common.d.ts +0 -34
- package/dist/types/api-model/configuration.d.ts +0 -98
- package/dist/types/api-model/index.d.ts +0 -14
- package/dist/types/api-model/models/amazon-pay-context.d.ts +0 -28
- package/dist/types/api-model/models/breakdown.d.ts +0 -26
- package/dist/types/api-model/models/business-context.d.ts +0 -24
- package/dist/types/api-model/models/context-all-of.d.ts +0 -14
- package/dist/types/api-model/models/context.d.ts +0 -23
- package/dist/types/api-model/models/currency.d.ts +0 -24
- package/dist/types/api-model/models/deferred-context.d.ts +0 -24
- package/dist/types/api-model/models/error-list.d.ts +0 -20
- package/dist/types/api-model/models/index.d.ts +0 -20
- package/dist/types/api-model/models/item-related-identifier.d.ts +0 -31
- package/dist/types/api-model/models/item.d.ts +0 -37
- package/dist/types/api-model/models/list-transactions-response.d.ts +0 -18
- package/dist/types/api-model/models/marketplace-details.d.ts +0 -24
- package/dist/types/api-model/models/model-error.d.ts +0 -28
- package/dist/types/api-model/models/payments-context.d.ts +0 -32
- package/dist/types/api-model/models/product-context.d.ts +0 -32
- package/dist/types/api-model/models/related-identifier.d.ts +0 -37
- package/dist/types/api-model/models/selling-partner-metadata.d.ts +0 -28
- package/dist/types/api-model/models/time-range-context.d.ts +0 -24
- package/dist/types/api-model/models/transaction.d.ts +0 -62
- package/dist/types/api-model/models/transactions-payload.d.ts +0 -25
- package/dist/types/client.d.ts +0 -6
- package/dist/types/index.d.ts +0 -3
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Information about the line of business associated with a transaction.
|
|
14
|
-
*/
|
|
15
|
-
export interface BusinessContext {
|
|
16
|
-
/**
|
|
17
|
-
* The store name associated with the transaction.
|
|
18
|
-
*/
|
|
19
|
-
'storeName'?: BusinessContextStoreNameEnum;
|
|
20
|
-
}
|
|
21
|
-
export declare const BusinessContextStoreNameEnum: {
|
|
22
|
-
readonly AmazonHaul: "AMAZON_HAUL";
|
|
23
|
-
};
|
|
24
|
-
export type BusinessContextStoreNameEnum = typeof BusinessContextStoreNameEnum[keyof typeof BusinessContextStoreNameEnum];
|
|
@@ -1,14 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
export interface ContextAllOf {
|
|
13
|
-
'contextType': string;
|
|
14
|
-
}
|
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { AmazonPayContext } from './amazon-pay-context';
|
|
13
|
-
import type { BusinessContext } from './business-context';
|
|
14
|
-
import type { ContextAllOf } from './context-all-of';
|
|
15
|
-
import type { DeferredContext } from './deferred-context';
|
|
16
|
-
import type { PaymentsContext } from './payments-context';
|
|
17
|
-
import type { ProductContext } from './product-context';
|
|
18
|
-
import type { TimeRangeContext } from './time-range-context';
|
|
19
|
-
/**
|
|
20
|
-
* @type Context
|
|
21
|
-
* Additional Information about the item.
|
|
22
|
-
*/
|
|
23
|
-
export type Context = AmazonPayContext & BusinessContext & ContextAllOf & DeferredContext & PaymentsContext & ProductContext & TimeRangeContext;
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A currency type and amount.
|
|
14
|
-
*/
|
|
15
|
-
export interface Currency {
|
|
16
|
-
/**
|
|
17
|
-
* The three-digit currency code in ISO 4217 format.
|
|
18
|
-
*/
|
|
19
|
-
'currencyCode'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A signed decimal number.
|
|
22
|
-
*/
|
|
23
|
-
'currencyAmount'?: number;
|
|
24
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Additional information related to deferred transactions.
|
|
14
|
-
*/
|
|
15
|
-
export interface DeferredContext {
|
|
16
|
-
/**
|
|
17
|
-
* The deferral policy applied to the transaction. **Examples:** `B2B` (invoiced orders), `DD7` (delivery date policy)
|
|
18
|
-
*/
|
|
19
|
-
'deferralReason'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
22
|
-
*/
|
|
23
|
-
'maturityDate'?: string;
|
|
24
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* A list of error responses returned when a request is unsuccessful.
|
|
14
|
-
*/
|
|
15
|
-
export interface ErrorList {
|
|
16
|
-
/**
|
|
17
|
-
* The error responses that are returned when the request is unsuccessful.
|
|
18
|
-
*/
|
|
19
|
-
'errors': Array<Error>;
|
|
20
|
-
}
|
|
@@ -1,20 +0,0 @@
|
|
|
1
|
-
export * from './amazon-pay-context';
|
|
2
|
-
export * from './breakdown';
|
|
3
|
-
export * from './business-context';
|
|
4
|
-
export * from './context';
|
|
5
|
-
export * from './context-all-of';
|
|
6
|
-
export * from './currency';
|
|
7
|
-
export * from './deferred-context';
|
|
8
|
-
export * from './error-list';
|
|
9
|
-
export * from './item';
|
|
10
|
-
export * from './item-related-identifier';
|
|
11
|
-
export * from './list-transactions-response';
|
|
12
|
-
export * from './marketplace-details';
|
|
13
|
-
export * from './model-error';
|
|
14
|
-
export * from './payments-context';
|
|
15
|
-
export * from './product-context';
|
|
16
|
-
export * from './related-identifier';
|
|
17
|
-
export * from './selling-partner-metadata';
|
|
18
|
-
export * from './time-range-context';
|
|
19
|
-
export * from './transaction';
|
|
20
|
-
export * from './transactions-payload';
|
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Related business identifiers of the item.
|
|
14
|
-
*/
|
|
15
|
-
export interface ItemRelatedIdentifier {
|
|
16
|
-
/**
|
|
17
|
-
* Enumerated set of related item identifier names for the item.
|
|
18
|
-
*/
|
|
19
|
-
'itemRelatedIdentifierName'?: ItemRelatedIdentifierItemRelatedIdentifierNameEnum;
|
|
20
|
-
/**
|
|
21
|
-
* Corresponding value to `ItemRelatedIdentifierName`.
|
|
22
|
-
*/
|
|
23
|
-
'itemRelatedIdentifierValue'?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const ItemRelatedIdentifierItemRelatedIdentifierNameEnum: {
|
|
26
|
-
readonly OrderAdjustmentItemId: "ORDER_ADJUSTMENT_ITEM_ID";
|
|
27
|
-
readonly CouponId: "COUPON_ID";
|
|
28
|
-
readonly RemovalShipmentItemId: "REMOVAL_SHIPMENT_ITEM_ID";
|
|
29
|
-
readonly TransactionId: "TRANSACTION_ID";
|
|
30
|
-
};
|
|
31
|
-
export type ItemRelatedIdentifierItemRelatedIdentifierNameEnum = typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum[keyof typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum];
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Breakdown } from './breakdown';
|
|
13
|
-
import type { Context } from './context';
|
|
14
|
-
import type { Currency } from './currency';
|
|
15
|
-
import type { ItemRelatedIdentifier } from './item-related-identifier';
|
|
16
|
-
/**
|
|
17
|
-
* Additional information about the items in a transaction.
|
|
18
|
-
*/
|
|
19
|
-
export interface Item {
|
|
20
|
-
/**
|
|
21
|
-
* A description of the items in a transaction.
|
|
22
|
-
*/
|
|
23
|
-
'description'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* Related business identifiers of the item in the transaction.
|
|
26
|
-
*/
|
|
27
|
-
'relatedIdentifiers'?: Array<ItemRelatedIdentifier>;
|
|
28
|
-
'totalAmount'?: Currency;
|
|
29
|
-
/**
|
|
30
|
-
* A list of breakdowns that detail how the total amount is calculated for the transaction.
|
|
31
|
-
*/
|
|
32
|
-
'breakdowns'?: Array<Breakdown>;
|
|
33
|
-
/**
|
|
34
|
-
* A list of additional information about the item.
|
|
35
|
-
*/
|
|
36
|
-
'contexts'?: Array<Context>;
|
|
37
|
-
}
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { TransactionsPayload } from './transactions-payload';
|
|
13
|
-
/**
|
|
14
|
-
* The response schema for the `listTransactions` operation.
|
|
15
|
-
*/
|
|
16
|
-
export interface ListTransactionsResponse {
|
|
17
|
-
'payload'?: TransactionsPayload;
|
|
18
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Information about the marketplace where the transaction occurred.
|
|
14
|
-
*/
|
|
15
|
-
export interface MarketplaceDetails {
|
|
16
|
-
/**
|
|
17
|
-
* The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
18
|
-
*/
|
|
19
|
-
'marketplaceId'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The name of the marketplace where the transaction occurred. For example: `Amazon.com`,`Amazon.in`
|
|
22
|
-
*/
|
|
23
|
-
'marketplaceName'?: string;
|
|
24
|
-
}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* An error response returned when the request is unsuccessful.
|
|
14
|
-
*/
|
|
15
|
-
export interface ModelError {
|
|
16
|
-
/**
|
|
17
|
-
* An error code that identifies the type of error that occurred.
|
|
18
|
-
*/
|
|
19
|
-
'code': string;
|
|
20
|
-
/**
|
|
21
|
-
* A message that describes the error condition.
|
|
22
|
-
*/
|
|
23
|
-
'message': string;
|
|
24
|
-
/**
|
|
25
|
-
* Additional details that can help the caller understand or fix the issue.
|
|
26
|
-
*/
|
|
27
|
-
'details'?: string;
|
|
28
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Additional information related to payments-related transactions.
|
|
14
|
-
*/
|
|
15
|
-
export interface PaymentsContext {
|
|
16
|
-
/**
|
|
17
|
-
* The type of payment.
|
|
18
|
-
*/
|
|
19
|
-
'paymentType'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The method of payment.
|
|
22
|
-
*/
|
|
23
|
-
'paymentMethod'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The reference number of the payment.
|
|
26
|
-
*/
|
|
27
|
-
'paymentReference'?: string;
|
|
28
|
-
/**
|
|
29
|
-
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
30
|
-
*/
|
|
31
|
-
'paymentDate'?: string;
|
|
32
|
-
}
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Additional information related to the product.
|
|
14
|
-
*/
|
|
15
|
-
export interface ProductContext {
|
|
16
|
-
/**
|
|
17
|
-
* The Amazon Standard Identification Number (ASIN) of the item.
|
|
18
|
-
*/
|
|
19
|
-
'asin'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The Stock Keeping Unit (SKU) of the item.
|
|
22
|
-
*/
|
|
23
|
-
'sku'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The quantity of the item shipped.
|
|
26
|
-
*/
|
|
27
|
-
'quantityShipped'?: number;
|
|
28
|
-
/**
|
|
29
|
-
* The fulfillment network of the item.
|
|
30
|
-
*/
|
|
31
|
-
'fulfillmentNetwork'?: string;
|
|
32
|
-
}
|
|
@@ -1,37 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Related business identifier of the transaction.
|
|
14
|
-
*/
|
|
15
|
-
export interface RelatedIdentifier {
|
|
16
|
-
/**
|
|
17
|
-
* An enumerated set of related business identifier names.
|
|
18
|
-
*/
|
|
19
|
-
'relatedIdentifierName'?: RelatedIdentifierRelatedIdentifierNameEnum;
|
|
20
|
-
/**
|
|
21
|
-
* Corresponding value of `RelatedIdentifierName`.
|
|
22
|
-
*/
|
|
23
|
-
'relatedIdentifierValue'?: string;
|
|
24
|
-
}
|
|
25
|
-
export declare const RelatedIdentifierRelatedIdentifierNameEnum: {
|
|
26
|
-
readonly OrderId: "ORDER_ID";
|
|
27
|
-
readonly ShipmentId: "SHIPMENT_ID";
|
|
28
|
-
readonly FinancialEventGroupId: "FINANCIAL_EVENT_GROUP_ID";
|
|
29
|
-
readonly RefundId: "REFUND_ID";
|
|
30
|
-
readonly InvoiceId: "INVOICE_ID";
|
|
31
|
-
readonly DisbursementId: "DISBURSEMENT_ID";
|
|
32
|
-
readonly TransferId: "TRANSFER_ID";
|
|
33
|
-
readonly DeferredTransactionId: "DEFERRED_TRANSACTION_ID";
|
|
34
|
-
readonly ReleaseTransactionId: "RELEASE_TRANSACTION_ID";
|
|
35
|
-
readonly SettlementId: "SETTLEMENT_ID";
|
|
36
|
-
};
|
|
37
|
-
export type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Metadata that describes the seller.
|
|
14
|
-
*/
|
|
15
|
-
export interface SellingPartnerMetadata {
|
|
16
|
-
/**
|
|
17
|
-
* A unique seller identifier.
|
|
18
|
-
*/
|
|
19
|
-
'sellingPartnerId'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* The type of account in the transaction.
|
|
22
|
-
*/
|
|
23
|
-
'accountType'?: string;
|
|
24
|
-
/**
|
|
25
|
-
* The identifier of the marketplace where the transaction occurred. The marketplace ID is the globally unique identifier of a marketplace. To find the ID for your marketplace, refer to [Marketplace IDs](https://developer-docs.amazon.com/sp-api/docs/marketplace-ids).
|
|
26
|
-
*/
|
|
27
|
-
'marketplaceId'?: string;
|
|
28
|
-
}
|
|
@@ -1,24 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
/**
|
|
13
|
-
* Additional information that is related to the time range of the transaction.
|
|
14
|
-
*/
|
|
15
|
-
export interface TimeRangeContext {
|
|
16
|
-
/**
|
|
17
|
-
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
18
|
-
*/
|
|
19
|
-
'startTime'?: string;
|
|
20
|
-
/**
|
|
21
|
-
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
22
|
-
*/
|
|
23
|
-
'endTime'?: string;
|
|
24
|
-
}
|
|
@@ -1,62 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Breakdown } from './breakdown';
|
|
13
|
-
import type { Context } from './context';
|
|
14
|
-
import type { Currency } from './currency';
|
|
15
|
-
import type { Item } from './item';
|
|
16
|
-
import type { MarketplaceDetails } from './marketplace-details';
|
|
17
|
-
import type { RelatedIdentifier } from './related-identifier';
|
|
18
|
-
import type { SellingPartnerMetadata } from './selling-partner-metadata';
|
|
19
|
-
/**
|
|
20
|
-
* All the information related to a transaction.
|
|
21
|
-
*/
|
|
22
|
-
export interface Transaction {
|
|
23
|
-
'sellingPartnerMetadata'?: SellingPartnerMetadata;
|
|
24
|
-
/**
|
|
25
|
-
* Related business identifiers of the transaction.
|
|
26
|
-
*/
|
|
27
|
-
'relatedIdentifiers'?: Array<RelatedIdentifier>;
|
|
28
|
-
/**
|
|
29
|
-
* The type of transaction. **Possible value:** `Shipment`
|
|
30
|
-
*/
|
|
31
|
-
'transactionType'?: string;
|
|
32
|
-
/**
|
|
33
|
-
* The unique identifier of the transaction.
|
|
34
|
-
*/
|
|
35
|
-
'transactionId'?: string;
|
|
36
|
-
/**
|
|
37
|
-
* The status of the transaction. **Possible values:** * `DEFERRED`: the transaction is currently deferred. * `RELEASED`: the transaction is currently released. * `DEFERRED_RELEASED`: the transaction was deferred in the past, but is now released. The status of a deferred transaction is updated to `DEFERRED_RELEASED` when the transaction is released.
|
|
38
|
-
*/
|
|
39
|
-
'transactionStatus'?: string;
|
|
40
|
-
/**
|
|
41
|
-
* Describes the reasons for the transaction. **Example:** \'Order Payment\', \'Refund Order\'
|
|
42
|
-
*/
|
|
43
|
-
'description'?: string;
|
|
44
|
-
/**
|
|
45
|
-
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
46
|
-
*/
|
|
47
|
-
'postedDate'?: string;
|
|
48
|
-
'totalAmount'?: Currency;
|
|
49
|
-
'marketplaceDetails'?: MarketplaceDetails;
|
|
50
|
-
/**
|
|
51
|
-
* A list of items in the transaction.
|
|
52
|
-
*/
|
|
53
|
-
'items'?: Array<Item>;
|
|
54
|
-
/**
|
|
55
|
-
* A list of additional information about the item.
|
|
56
|
-
*/
|
|
57
|
-
'contexts'?: Array<Context>;
|
|
58
|
-
/**
|
|
59
|
-
* A list of breakdowns that detail how the total amount is calculated for the transaction.
|
|
60
|
-
*/
|
|
61
|
-
'breakdowns'?: Array<Breakdown>;
|
|
62
|
-
}
|
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* The Selling Partner API for Finances
|
|
3
|
-
* The Selling Partner API for Finances provides financial information relevant to a seller\'s business. You can obtain financial events for a given order or date range without having to wait until a statement period closes.
|
|
4
|
-
*
|
|
5
|
-
* The version of the OpenAPI document: 2024-06-19
|
|
6
|
-
*
|
|
7
|
-
*
|
|
8
|
-
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
|
|
9
|
-
* https://openapi-generator.tech
|
|
10
|
-
* Do not edit the class manually.
|
|
11
|
-
*/
|
|
12
|
-
import type { Transaction } from './transaction';
|
|
13
|
-
/**
|
|
14
|
-
* The payload for the `listTransactions` operation.
|
|
15
|
-
*/
|
|
16
|
-
export interface TransactionsPayload {
|
|
17
|
-
/**
|
|
18
|
-
* The response includes `nextToken` when the number of results exceeds the specified `pageSize` value. To get the next page of results, call the operation with this token and include the same arguments as the call that produced the token. To get a complete list, call this operation until `nextToken` is null. Note that this operation can return empty pages.
|
|
19
|
-
*/
|
|
20
|
-
'nextToken'?: string;
|
|
21
|
-
/**
|
|
22
|
-
* A list of transactions within the specified time period.
|
|
23
|
-
*/
|
|
24
|
-
'transactions'?: Array<Transaction>;
|
|
25
|
-
}
|
package/dist/types/client.d.ts
DELETED
|
@@ -1,6 +0,0 @@
|
|
|
1
|
-
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
-
import { FinancesApi } from './api-model';
|
|
3
|
-
export declare const clientRateLimits: RateLimit[];
|
|
4
|
-
export declare class FinancesApiClient extends FinancesApi {
|
|
5
|
-
constructor(configuration: ClientConfiguration);
|
|
6
|
-
}
|
package/dist/types/index.d.ts
DELETED