@sp-api-sdk/finances-api-2024-06-19 1.1.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/LICENSE +21 -0
- package/README.md +97 -0
- package/dist/cjs/index.js +19 -0
- package/dist/cjs/src/api-model/api/default-api.js +143 -0
- package/dist/cjs/src/api-model/api.js +30 -0
- package/dist/cjs/src/api-model/base.js +71 -0
- package/dist/cjs/src/api-model/common.js +145 -0
- package/dist/cjs/src/api-model/configuration.js +99 -0
- package/dist/cjs/src/api-model/index.js +32 -0
- package/dist/cjs/src/api-model/models/amazon-pay-context.js +15 -0
- package/dist/cjs/src/api-model/models/breakdown.js +15 -0
- package/dist/cjs/src/api-model/models/context-all-of.js +15 -0
- package/dist/cjs/src/api-model/models/context.js +15 -0
- package/dist/cjs/src/api-model/models/currency.js +15 -0
- package/dist/cjs/src/api-model/models/deferred-context.js +15 -0
- package/dist/cjs/src/api-model/models/error-list.js +15 -0
- package/dist/cjs/src/api-model/models/index.js +34 -0
- package/dist/cjs/src/api-model/models/item-related-identifier.js +22 -0
- package/dist/cjs/src/api-model/models/item.js +15 -0
- package/dist/cjs/src/api-model/models/list-transactions-response.js +15 -0
- package/dist/cjs/src/api-model/models/marketplace-details.js +15 -0
- package/dist/cjs/src/api-model/models/model-error.js +15 -0
- package/dist/cjs/src/api-model/models/payments-context.js +15 -0
- package/dist/cjs/src/api-model/models/product-context.js +15 -0
- package/dist/cjs/src/api-model/models/related-identifier.js +26 -0
- package/dist/cjs/src/api-model/models/selling-partner-metadata.js +15 -0
- package/dist/cjs/src/api-model/models/time-range-context.js +15 -0
- package/dist/cjs/src/api-model/models/transaction.js +15 -0
- package/dist/cjs/src/client.js +21 -0
- package/dist/es/index.js +3 -0
- package/dist/es/src/api-model/api/default-api.js +133 -0
- package/dist/es/src/api-model/api.js +14 -0
- package/dist/es/src/api-model/base.js +63 -0
- package/dist/es/src/api-model/common.js +133 -0
- package/dist/es/src/api-model/configuration.js +95 -0
- package/dist/es/src/api-model/index.js +16 -0
- package/dist/es/src/api-model/models/amazon-pay-context.js +14 -0
- package/dist/es/src/api-model/models/breakdown.js +14 -0
- package/dist/es/src/api-model/models/context-all-of.js +14 -0
- package/dist/es/src/api-model/models/context.js +14 -0
- package/dist/es/src/api-model/models/currency.js +14 -0
- package/dist/es/src/api-model/models/deferred-context.js +14 -0
- package/dist/es/src/api-model/models/error-list.js +14 -0
- package/dist/es/src/api-model/models/index.js +18 -0
- package/dist/es/src/api-model/models/item-related-identifier.js +19 -0
- package/dist/es/src/api-model/models/item.js +14 -0
- package/dist/es/src/api-model/models/list-transactions-response.js +14 -0
- package/dist/es/src/api-model/models/marketplace-details.js +14 -0
- package/dist/es/src/api-model/models/model-error.js +14 -0
- package/dist/es/src/api-model/models/payments-context.js +14 -0
- package/dist/es/src/api-model/models/product-context.js +14 -0
- package/dist/es/src/api-model/models/related-identifier.js +23 -0
- package/dist/es/src/api-model/models/selling-partner-metadata.js +14 -0
- package/dist/es/src/api-model/models/time-range-context.js +14 -0
- package/dist/es/src/api-model/models/transaction.js +14 -0
- package/dist/es/src/client.js +17 -0
- package/dist/types/index.d.ts +3 -0
- package/dist/types/src/api-model/api/default-api.d.ts +108 -0
- package/dist/types/src/api-model/api.d.ts +12 -0
- package/dist/types/src/api-model/base.d.ts +66 -0
- package/dist/types/src/api-model/common.d.ts +65 -0
- package/dist/types/src/api-model/configuration.d.ts +91 -0
- package/dist/types/src/api-model/index.d.ts +14 -0
- package/dist/types/src/api-model/models/amazon-pay-context.d.ts +36 -0
- package/dist/types/src/api-model/models/breakdown.d.ts +37 -0
- package/dist/types/src/api-model/models/context-all-of.d.ts +24 -0
- package/dist/types/src/api-model/models/context.d.ts +23 -0
- package/dist/types/src/api-model/models/currency.d.ts +30 -0
- package/dist/types/src/api-model/models/deferred-context.d.ts +36 -0
- package/dist/types/src/api-model/models/error-list.d.ts +24 -0
- package/dist/types/src/api-model/models/index.d.ts +18 -0
- package/dist/types/src/api-model/models/item-related-identifier.d.ts +37 -0
- package/dist/types/src/api-model/models/item.d.ts +52 -0
- package/dist/types/src/api-model/models/list-transactions-response.d.ts +31 -0
- package/dist/types/src/api-model/models/marketplace-details.d.ts +30 -0
- package/dist/types/src/api-model/models/model-error.d.ts +36 -0
- package/dist/types/src/api-model/models/payments-context.d.ts +42 -0
- package/dist/types/src/api-model/models/product-context.d.ts +42 -0
- package/dist/types/src/api-model/models/related-identifier.d.ts +41 -0
- package/dist/types/src/api-model/models/selling-partner-metadata.d.ts +36 -0
- package/dist/types/src/api-model/models/time-range-context.d.ts +30 -0
- package/dist/types/src/api-model/models/transaction.d.ts +97 -0
- package/dist/types/src/client.d.ts +6 -0
- package/package.json +44 -0
|
@@ -0,0 +1,52 @@
|
|
|
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
|
+
* @export
|
|
19
|
+
* @interface Item
|
|
20
|
+
*/
|
|
21
|
+
export interface Item {
|
|
22
|
+
/**
|
|
23
|
+
* A description of the items in a transaction.
|
|
24
|
+
* @type {string}
|
|
25
|
+
* @memberof Item
|
|
26
|
+
*/
|
|
27
|
+
'description'?: string;
|
|
28
|
+
/**
|
|
29
|
+
* Related business identifiers of the item in the transaction.
|
|
30
|
+
* @type {Array<ItemRelatedIdentifier>}
|
|
31
|
+
* @memberof Item
|
|
32
|
+
*/
|
|
33
|
+
'relatedIdentifiers'?: Array<ItemRelatedIdentifier>;
|
|
34
|
+
/**
|
|
35
|
+
*
|
|
36
|
+
* @type {Currency}
|
|
37
|
+
* @memberof Item
|
|
38
|
+
*/
|
|
39
|
+
'totalAmount'?: Currency;
|
|
40
|
+
/**
|
|
41
|
+
* A list of breakdowns that provide details on how the total amount is calculated for the transaction.
|
|
42
|
+
* @type {Array<Breakdown>}
|
|
43
|
+
* @memberof Item
|
|
44
|
+
*/
|
|
45
|
+
'breakdowns'?: Array<Breakdown>;
|
|
46
|
+
/**
|
|
47
|
+
* A list of additional information about the item.
|
|
48
|
+
* @type {Array<Context>}
|
|
49
|
+
* @memberof Item
|
|
50
|
+
*/
|
|
51
|
+
'contexts'?: Array<Context>;
|
|
52
|
+
}
|
|
@@ -0,0 +1,31 @@
|
|
|
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 response schema for the `listTransactions` operation.
|
|
15
|
+
* @export
|
|
16
|
+
* @interface ListTransactionsResponse
|
|
17
|
+
*/
|
|
18
|
+
export interface ListTransactionsResponse {
|
|
19
|
+
/**
|
|
20
|
+
* 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.
|
|
21
|
+
* @type {string}
|
|
22
|
+
* @memberof ListTransactionsResponse
|
|
23
|
+
*/
|
|
24
|
+
'nextToken'?: string;
|
|
25
|
+
/**
|
|
26
|
+
* A list of transactions within the specified time period.
|
|
27
|
+
* @type {Array<Transaction>}
|
|
28
|
+
* @memberof ListTransactionsResponse
|
|
29
|
+
*/
|
|
30
|
+
'transactions'?: Array<Transaction>;
|
|
31
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface MarketplaceDetails
|
|
16
|
+
*/
|
|
17
|
+
export interface MarketplaceDetails {
|
|
18
|
+
/**
|
|
19
|
+
* The identifier of the marketplace where the transaction occured.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof MarketplaceDetails
|
|
22
|
+
*/
|
|
23
|
+
'marketplaceId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The name of the marketplace where the transaction occurred. For example: `Amazon.com`,`Amazon.in`
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof MarketplaceDetails
|
|
28
|
+
*/
|
|
29
|
+
'marketplaceName'?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface ModelError
|
|
16
|
+
*/
|
|
17
|
+
export interface ModelError {
|
|
18
|
+
/**
|
|
19
|
+
* An error code that identifies the type of error that occurred.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ModelError
|
|
22
|
+
*/
|
|
23
|
+
'code': string;
|
|
24
|
+
/**
|
|
25
|
+
* A message that describes the error condition.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ModelError
|
|
28
|
+
*/
|
|
29
|
+
'message': string;
|
|
30
|
+
/**
|
|
31
|
+
* Additional details that can help the caller understand or fix the issue.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof ModelError
|
|
34
|
+
*/
|
|
35
|
+
'details'?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface PaymentsContext
|
|
16
|
+
*/
|
|
17
|
+
export interface PaymentsContext {
|
|
18
|
+
/**
|
|
19
|
+
* The type of payment.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof PaymentsContext
|
|
22
|
+
*/
|
|
23
|
+
'paymentType'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The method of payment.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof PaymentsContext
|
|
28
|
+
*/
|
|
29
|
+
'paymentMethod'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The reference number of the payment.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof PaymentsContext
|
|
34
|
+
*/
|
|
35
|
+
'paymentReference'?: string;
|
|
36
|
+
/**
|
|
37
|
+
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof PaymentsContext
|
|
40
|
+
*/
|
|
41
|
+
'paymentDate'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,42 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface ProductContext
|
|
16
|
+
*/
|
|
17
|
+
export interface ProductContext {
|
|
18
|
+
/**
|
|
19
|
+
* The Amazon Standard Identification Number (ASIN) of the item.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof ProductContext
|
|
22
|
+
*/
|
|
23
|
+
'asin'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The Stock Keeping Unit (SKU) of the item.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof ProductContext
|
|
28
|
+
*/
|
|
29
|
+
'sku'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The quantity of the item shipped.
|
|
32
|
+
* @type {number}
|
|
33
|
+
* @memberof ProductContext
|
|
34
|
+
*/
|
|
35
|
+
'quantityShipped'?: number;
|
|
36
|
+
/**
|
|
37
|
+
* The fulfillment network of the item.
|
|
38
|
+
* @type {string}
|
|
39
|
+
* @memberof ProductContext
|
|
40
|
+
*/
|
|
41
|
+
'fulfillmentNetwork'?: string;
|
|
42
|
+
}
|
|
@@ -0,0 +1,41 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface RelatedIdentifier
|
|
16
|
+
*/
|
|
17
|
+
export interface RelatedIdentifier {
|
|
18
|
+
/**
|
|
19
|
+
* An enumerated set of related business identifier names.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof RelatedIdentifier
|
|
22
|
+
*/
|
|
23
|
+
'relatedIdentifierName'?: RelatedIdentifierRelatedIdentifierNameEnum;
|
|
24
|
+
/**
|
|
25
|
+
* Corresponding value of `RelatedIdentifierName`.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof RelatedIdentifier
|
|
28
|
+
*/
|
|
29
|
+
'relatedIdentifierValue'?: string;
|
|
30
|
+
}
|
|
31
|
+
export declare const RelatedIdentifierRelatedIdentifierNameEnum: {
|
|
32
|
+
readonly OrderId: "ORDER_ID";
|
|
33
|
+
readonly ShipmentId: "SHIPMENT_ID";
|
|
34
|
+
readonly EventGroupId: "EVENT_GROUP_ID";
|
|
35
|
+
readonly RefundId: "REFUND_ID";
|
|
36
|
+
readonly InvoiceId: "INVOICE_ID";
|
|
37
|
+
readonly DisbursementId: "DISBURSEMENT_ID";
|
|
38
|
+
readonly TransferId: "TRANSFER_ID";
|
|
39
|
+
readonly DeferredTransactionId: "DEFERRED_TRANSACTION_ID";
|
|
40
|
+
};
|
|
41
|
+
export type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];
|
|
@@ -0,0 +1,36 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface SellingPartnerMetadata
|
|
16
|
+
*/
|
|
17
|
+
export interface SellingPartnerMetadata {
|
|
18
|
+
/**
|
|
19
|
+
* A unique seller identifier.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof SellingPartnerMetadata
|
|
22
|
+
*/
|
|
23
|
+
'sellingPartnerId'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* The type of account in the transaction.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof SellingPartnerMetadata
|
|
28
|
+
*/
|
|
29
|
+
'accountType'?: string;
|
|
30
|
+
/**
|
|
31
|
+
* The identifier of the marketplace where the transaction occurred.
|
|
32
|
+
* @type {string}
|
|
33
|
+
* @memberof SellingPartnerMetadata
|
|
34
|
+
*/
|
|
35
|
+
'marketplaceId'?: string;
|
|
36
|
+
}
|
|
@@ -0,0 +1,30 @@
|
|
|
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
|
+
* @export
|
|
15
|
+
* @interface TimeRangeContext
|
|
16
|
+
*/
|
|
17
|
+
export interface TimeRangeContext {
|
|
18
|
+
/**
|
|
19
|
+
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
20
|
+
* @type {string}
|
|
21
|
+
* @memberof TimeRangeContext
|
|
22
|
+
*/
|
|
23
|
+
'startTime'?: string;
|
|
24
|
+
/**
|
|
25
|
+
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
26
|
+
* @type {string}
|
|
27
|
+
* @memberof TimeRangeContext
|
|
28
|
+
*/
|
|
29
|
+
'endTime'?: string;
|
|
30
|
+
}
|
|
@@ -0,0 +1,97 @@
|
|
|
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
|
+
* @export
|
|
22
|
+
* @interface Transaction
|
|
23
|
+
*/
|
|
24
|
+
export interface Transaction {
|
|
25
|
+
/**
|
|
26
|
+
*
|
|
27
|
+
* @type {SellingPartnerMetadata}
|
|
28
|
+
* @memberof Transaction
|
|
29
|
+
*/
|
|
30
|
+
'sellingPartnerMetadata'?: SellingPartnerMetadata;
|
|
31
|
+
/**
|
|
32
|
+
* Related business identifiers of the transaction.
|
|
33
|
+
* @type {Array<RelatedIdentifier>}
|
|
34
|
+
* @memberof Transaction
|
|
35
|
+
*/
|
|
36
|
+
'relatedIdentifiers'?: Array<RelatedIdentifier>;
|
|
37
|
+
/**
|
|
38
|
+
* The type of transaction. **Possible value:** `Shipment`
|
|
39
|
+
* @type {string}
|
|
40
|
+
* @memberof Transaction
|
|
41
|
+
*/
|
|
42
|
+
'transactionType'?: string;
|
|
43
|
+
/**
|
|
44
|
+
* The unique identifier of the transaction.
|
|
45
|
+
* @type {string}
|
|
46
|
+
* @memberof Transaction
|
|
47
|
+
*/
|
|
48
|
+
'transactionId'?: string;
|
|
49
|
+
/**
|
|
50
|
+
* The status of the transaction. **Possible values:** * `Deferred` * `Released`
|
|
51
|
+
* @type {string}
|
|
52
|
+
* @memberof Transaction
|
|
53
|
+
*/
|
|
54
|
+
'transactionStatus'?: string;
|
|
55
|
+
/**
|
|
56
|
+
* Describes the reasons for the transaction. **Example:** \'Order Payment\', \'Refund Order\'
|
|
57
|
+
* @type {string}
|
|
58
|
+
* @memberof Transaction
|
|
59
|
+
*/
|
|
60
|
+
'description'?: string;
|
|
61
|
+
/**
|
|
62
|
+
* A date in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format.
|
|
63
|
+
* @type {string}
|
|
64
|
+
* @memberof Transaction
|
|
65
|
+
*/
|
|
66
|
+
'postedDate'?: string;
|
|
67
|
+
/**
|
|
68
|
+
*
|
|
69
|
+
* @type {Currency}
|
|
70
|
+
* @memberof Transaction
|
|
71
|
+
*/
|
|
72
|
+
'totalAmount'?: Currency;
|
|
73
|
+
/**
|
|
74
|
+
*
|
|
75
|
+
* @type {MarketplaceDetails}
|
|
76
|
+
* @memberof Transaction
|
|
77
|
+
*/
|
|
78
|
+
'marketplaceDetails'?: MarketplaceDetails;
|
|
79
|
+
/**
|
|
80
|
+
* A list of items in the transaction.
|
|
81
|
+
* @type {Array<Item>}
|
|
82
|
+
* @memberof Transaction
|
|
83
|
+
*/
|
|
84
|
+
'items'?: Array<Item>;
|
|
85
|
+
/**
|
|
86
|
+
* A list of additional information about the item.
|
|
87
|
+
* @type {Array<Context>}
|
|
88
|
+
* @memberof Transaction
|
|
89
|
+
*/
|
|
90
|
+
'contexts'?: Array<Context>;
|
|
91
|
+
/**
|
|
92
|
+
* A list of breakdowns that provide details on how the total amount is calculated for the transaction.
|
|
93
|
+
* @type {Array<Breakdown>}
|
|
94
|
+
* @memberof Transaction
|
|
95
|
+
*/
|
|
96
|
+
'breakdowns'?: Array<Breakdown>;
|
|
97
|
+
}
|
|
@@ -0,0 +1,6 @@
|
|
|
1
|
+
import { type ClientConfiguration, type RateLimit } from '@sp-api-sdk/common';
|
|
2
|
+
import { DefaultApi } from './api-model';
|
|
3
|
+
export declare const clientRateLimits: RateLimit[];
|
|
4
|
+
export declare class FinancesApiClient extends DefaultApi {
|
|
5
|
+
constructor(configuration: ClientConfiguration);
|
|
6
|
+
}
|
package/package.json
ADDED
|
@@ -0,0 +1,44 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "@sp-api-sdk/finances-api-2024-06-19",
|
|
3
|
+
"author": "Bertrand Marron <bertrand@bizon.solutions>",
|
|
4
|
+
"description": "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.",
|
|
5
|
+
"version": "1.1.0",
|
|
6
|
+
"main": "dist/cjs/index.js",
|
|
7
|
+
"module": "dist/es/index.js",
|
|
8
|
+
"types": "dist/types/index.d.ts",
|
|
9
|
+
"license": "MIT",
|
|
10
|
+
"publishConfig": {
|
|
11
|
+
"access": "public"
|
|
12
|
+
},
|
|
13
|
+
"directories": {
|
|
14
|
+
"lib": "dist"
|
|
15
|
+
},
|
|
16
|
+
"files": [
|
|
17
|
+
"dist/**/*.js",
|
|
18
|
+
"dist/**/*.d.ts"
|
|
19
|
+
],
|
|
20
|
+
"dependencies": {
|
|
21
|
+
"@sp-api-sdk/common": "2.0.14",
|
|
22
|
+
"axios": "^1.7.7"
|
|
23
|
+
},
|
|
24
|
+
"repository": {
|
|
25
|
+
"type": "git",
|
|
26
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk.git",
|
|
27
|
+
"directory": "clients/finances-api-2024-06-19"
|
|
28
|
+
},
|
|
29
|
+
"bugs": {
|
|
30
|
+
"url": "https://github.com/bizon/selling-partner-api-sdk/issues"
|
|
31
|
+
},
|
|
32
|
+
"homepage": "https://github.com/bizon/selling-partner-api-sdk/tree/master/clients/finances-api-2024-06-19",
|
|
33
|
+
"keywords": [
|
|
34
|
+
"amazon",
|
|
35
|
+
"bizon",
|
|
36
|
+
"marketplace web services",
|
|
37
|
+
"mws",
|
|
38
|
+
"selling partner api",
|
|
39
|
+
"sp api",
|
|
40
|
+
"sp sdk",
|
|
41
|
+
"finances api"
|
|
42
|
+
],
|
|
43
|
+
"gitHead": "92609cb0381b1cd32bb0e0f75e1dc4d5acaabe11"
|
|
44
|
+
}
|