@sp-api-sdk/finances-api-2024-06-19 3.3.4 → 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
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
#
|
|
1
|
+
# `@sp-api-sdk/finances-api-2024-06-19`
|
|
2
2
|
|
|
3
3
|
[](https://www.npmjs.com/package/@sp-api-sdk/finances-api-2024-06-19)
|
|
4
4
|
[](https://github.com/xojs/xo)
|
|
@@ -25,10 +25,10 @@ npm install @sp-api-sdk/finances-api-2024-06-19
|
|
|
25
25
|
import {SellingPartnerApiAuth} from '@sp-api-sdk/auth'
|
|
26
26
|
import {FinancesApiClient} from '@sp-api-sdk/finances-api-2024-06-19'
|
|
27
27
|
|
|
28
|
+
// `clientId` and `clientSecret` default to the `LWA_CLIENT_ID` and
|
|
29
|
+
// `LWA_CLIENT_SECRET` environment variables.
|
|
28
30
|
const auth = new SellingPartnerApiAuth({
|
|
29
|
-
|
|
30
|
-
clientSecret: process.env.LWA_CLIENT_SECRET,
|
|
31
|
-
refreshToken: 'Atzr|…',
|
|
31
|
+
refreshToken: await getRefreshTokenForSeller(sellerId),
|
|
32
32
|
})
|
|
33
33
|
|
|
34
34
|
const client = new FinancesApiClient({
|
package/dist/index.cjs
ADDED
|
@@ -0,0 +1,349 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __create = Object.create;
|
|
3
|
+
var __defProp = Object.defineProperty;
|
|
4
|
+
var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
|
|
5
|
+
var __getOwnPropNames = Object.getOwnPropertyNames;
|
|
6
|
+
var __getProtoOf = Object.getPrototypeOf;
|
|
7
|
+
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
8
|
+
var __export = (target, all) => {
|
|
9
|
+
for (var name in all)
|
|
10
|
+
__defProp(target, name, { get: all[name], enumerable: true });
|
|
11
|
+
};
|
|
12
|
+
var __copyProps = (to, from, except, desc) => {
|
|
13
|
+
if (from && typeof from === "object" || typeof from === "function") {
|
|
14
|
+
for (let key of __getOwnPropNames(from))
|
|
15
|
+
if (!__hasOwnProp.call(to, key) && key !== except)
|
|
16
|
+
__defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
|
|
17
|
+
}
|
|
18
|
+
return to;
|
|
19
|
+
};
|
|
20
|
+
var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
|
|
21
|
+
// If the importer is in node compatibility mode or this is not an ESM
|
|
22
|
+
// file that has been converted to a CommonJS file using a Babel-
|
|
23
|
+
// compatible transform (i.e. "__esModule" has not been set), then set
|
|
24
|
+
// "default" to the CommonJS "module.exports" for node compatibility.
|
|
25
|
+
isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
|
|
26
|
+
mod
|
|
27
|
+
));
|
|
28
|
+
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
29
|
+
|
|
30
|
+
// src/index.ts
|
|
31
|
+
var index_exports = {};
|
|
32
|
+
__export(index_exports, {
|
|
33
|
+
BusinessContextStoreNameEnum: () => BusinessContextStoreNameEnum,
|
|
34
|
+
FinancesApi: () => FinancesApi,
|
|
35
|
+
FinancesApiAxiosParamCreator: () => FinancesApiAxiosParamCreator,
|
|
36
|
+
FinancesApiClient: () => FinancesApiClient,
|
|
37
|
+
FinancesApiFactory: () => FinancesApiFactory,
|
|
38
|
+
FinancesApiFp: () => FinancesApiFp,
|
|
39
|
+
ItemRelatedIdentifierItemRelatedIdentifierNameEnum: () => ItemRelatedIdentifierItemRelatedIdentifierNameEnum,
|
|
40
|
+
RelatedIdentifierRelatedIdentifierNameEnum: () => RelatedIdentifierRelatedIdentifierNameEnum,
|
|
41
|
+
clientRateLimits: () => clientRateLimits
|
|
42
|
+
});
|
|
43
|
+
module.exports = __toCommonJS(index_exports);
|
|
44
|
+
|
|
45
|
+
// src/client.ts
|
|
46
|
+
var import_common2 = require("@sp-api-sdk/common");
|
|
47
|
+
|
|
48
|
+
// src/api-model/api/finances-api.ts
|
|
49
|
+
var import_axios2 = __toESM(require("axios"), 1);
|
|
50
|
+
|
|
51
|
+
// src/api-model/base.ts
|
|
52
|
+
var import_axios = __toESM(require("axios"), 1);
|
|
53
|
+
var BASE_PATH = "https://sellingpartnerapi-na.amazon.com".replace(/\/+$/, "");
|
|
54
|
+
var BaseAPI = class {
|
|
55
|
+
constructor(configuration, basePath = BASE_PATH, axios = import_axios.default) {
|
|
56
|
+
this.basePath = basePath;
|
|
57
|
+
this.axios = axios;
|
|
58
|
+
if (configuration) {
|
|
59
|
+
this.configuration = configuration;
|
|
60
|
+
this.basePath = configuration.basePath ?? basePath;
|
|
61
|
+
}
|
|
62
|
+
}
|
|
63
|
+
basePath;
|
|
64
|
+
axios;
|
|
65
|
+
configuration;
|
|
66
|
+
};
|
|
67
|
+
var operationServerMap = {};
|
|
68
|
+
|
|
69
|
+
// src/api-model/common.ts
|
|
70
|
+
var DUMMY_BASE_URL = "https://example.com";
|
|
71
|
+
function setFlattenedQueryParams(urlSearchParams, parameter, key = "") {
|
|
72
|
+
if (parameter == null) return;
|
|
73
|
+
if (typeof parameter === "object") {
|
|
74
|
+
if (Array.isArray(parameter) || parameter instanceof Set) {
|
|
75
|
+
parameter.forEach((item) => setFlattenedQueryParams(urlSearchParams, item, key));
|
|
76
|
+
} else {
|
|
77
|
+
Object.keys(parameter).forEach(
|
|
78
|
+
(currentKey) => setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== "" ? "." : ""}${currentKey}`)
|
|
79
|
+
);
|
|
80
|
+
}
|
|
81
|
+
} else {
|
|
82
|
+
if (urlSearchParams.has(key)) {
|
|
83
|
+
urlSearchParams.append(key, parameter);
|
|
84
|
+
} else {
|
|
85
|
+
urlSearchParams.set(key, parameter);
|
|
86
|
+
}
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
var setSearchParams = function(url, ...objects) {
|
|
90
|
+
const searchParams = new URLSearchParams(url.search);
|
|
91
|
+
setFlattenedQueryParams(searchParams, objects);
|
|
92
|
+
url.search = searchParams.toString();
|
|
93
|
+
};
|
|
94
|
+
var toPathString = function(url) {
|
|
95
|
+
return url.pathname + url.search + url.hash;
|
|
96
|
+
};
|
|
97
|
+
var createRequestFunction = function(axiosArgs, globalAxios3, BASE_PATH2, configuration) {
|
|
98
|
+
return (axios = globalAxios3, basePath = BASE_PATH2) => {
|
|
99
|
+
const axiosRequestArgs = { ...axiosArgs.options, url: (axios.defaults.baseURL ? "" : configuration?.basePath ?? basePath) + axiosArgs.url };
|
|
100
|
+
return axios.request(axiosRequestArgs);
|
|
101
|
+
};
|
|
102
|
+
};
|
|
103
|
+
|
|
104
|
+
// src/api-model/api/finances-api.ts
|
|
105
|
+
var FinancesApiAxiosParamCreator = function(configuration) {
|
|
106
|
+
return {
|
|
107
|
+
/**
|
|
108
|
+
* Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
|
|
109
|
+
* @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.
|
|
110
|
+
* @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.
|
|
111
|
+
* @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. 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).
|
|
112
|
+
* @param {string} [transactionStatus] 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.
|
|
113
|
+
* @param {string} [relatedIdentifierName] The name of the `relatedIdentifier`. **Possible values:** * `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction. * `ORDER_ID`: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.
|
|
114
|
+
* @param {string} [relatedIdentifierValue] The value of the `relatedIdentifier`.
|
|
115
|
+
* @param {string} [nextToken] 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.
|
|
116
|
+
* @param {*} [options] Override http request option.
|
|
117
|
+
* @throws {RequiredError}
|
|
118
|
+
*/
|
|
119
|
+
listTransactions: async (postedAfter, postedBefore, marketplaceId, transactionStatus, relatedIdentifierName, relatedIdentifierValue, nextToken, options = {}) => {
|
|
120
|
+
const localVarPath = `/finances/2024-06-19/transactions`;
|
|
121
|
+
const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);
|
|
122
|
+
let baseOptions;
|
|
123
|
+
if (configuration) {
|
|
124
|
+
baseOptions = configuration.baseOptions;
|
|
125
|
+
}
|
|
126
|
+
const localVarRequestOptions = { method: "GET", ...baseOptions, ...options };
|
|
127
|
+
const localVarHeaderParameter = {};
|
|
128
|
+
const localVarQueryParameter = {};
|
|
129
|
+
if (postedAfter !== void 0) {
|
|
130
|
+
localVarQueryParameter["postedAfter"] = postedAfter instanceof Date ? postedAfter.toISOString() : postedAfter;
|
|
131
|
+
}
|
|
132
|
+
if (postedBefore !== void 0) {
|
|
133
|
+
localVarQueryParameter["postedBefore"] = postedBefore instanceof Date ? postedBefore.toISOString() : postedBefore;
|
|
134
|
+
}
|
|
135
|
+
if (marketplaceId !== void 0) {
|
|
136
|
+
localVarQueryParameter["marketplaceId"] = marketplaceId;
|
|
137
|
+
}
|
|
138
|
+
if (transactionStatus !== void 0) {
|
|
139
|
+
localVarQueryParameter["transactionStatus"] = transactionStatus;
|
|
140
|
+
}
|
|
141
|
+
if (relatedIdentifierName !== void 0) {
|
|
142
|
+
localVarQueryParameter["relatedIdentifierName"] = relatedIdentifierName;
|
|
143
|
+
}
|
|
144
|
+
if (relatedIdentifierValue !== void 0) {
|
|
145
|
+
localVarQueryParameter["relatedIdentifierValue"] = relatedIdentifierValue;
|
|
146
|
+
}
|
|
147
|
+
if (nextToken !== void 0) {
|
|
148
|
+
localVarQueryParameter["nextToken"] = nextToken;
|
|
149
|
+
}
|
|
150
|
+
localVarHeaderParameter["Accept"] = "application/json";
|
|
151
|
+
setSearchParams(localVarUrlObj, localVarQueryParameter);
|
|
152
|
+
let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};
|
|
153
|
+
localVarRequestOptions.headers = { ...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers };
|
|
154
|
+
return {
|
|
155
|
+
url: toPathString(localVarUrlObj),
|
|
156
|
+
options: localVarRequestOptions
|
|
157
|
+
};
|
|
158
|
+
}
|
|
159
|
+
};
|
|
160
|
+
};
|
|
161
|
+
var FinancesApiFp = function(configuration) {
|
|
162
|
+
const localVarAxiosParamCreator = FinancesApiAxiosParamCreator(configuration);
|
|
163
|
+
return {
|
|
164
|
+
/**
|
|
165
|
+
* Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
|
|
166
|
+
* @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.
|
|
167
|
+
* @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.
|
|
168
|
+
* @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. 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).
|
|
169
|
+
* @param {string} [transactionStatus] 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.
|
|
170
|
+
* @param {string} [relatedIdentifierName] The name of the `relatedIdentifier`. **Possible values:** * `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction. * `ORDER_ID`: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.
|
|
171
|
+
* @param {string} [relatedIdentifierValue] The value of the `relatedIdentifier`.
|
|
172
|
+
* @param {string} [nextToken] 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.
|
|
173
|
+
* @param {*} [options] Override http request option.
|
|
174
|
+
* @throws {RequiredError}
|
|
175
|
+
*/
|
|
176
|
+
async listTransactions(postedAfter, postedBefore, marketplaceId, transactionStatus, relatedIdentifierName, relatedIdentifierValue, nextToken, options) {
|
|
177
|
+
const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(postedAfter, postedBefore, marketplaceId, transactionStatus, relatedIdentifierName, relatedIdentifierValue, nextToken, options);
|
|
178
|
+
const localVarOperationServerIndex = configuration?.serverIndex ?? 0;
|
|
179
|
+
const localVarOperationServerBasePath = operationServerMap["FinancesApi.listTransactions"]?.[localVarOperationServerIndex]?.url;
|
|
180
|
+
return (axios, basePath) => createRequestFunction(localVarAxiosArgs, import_axios2.default, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);
|
|
181
|
+
}
|
|
182
|
+
};
|
|
183
|
+
};
|
|
184
|
+
var FinancesApiFactory = function(configuration, basePath, axios) {
|
|
185
|
+
const localVarFp = FinancesApiFp(configuration);
|
|
186
|
+
return {
|
|
187
|
+
/**
|
|
188
|
+
* Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
|
|
189
|
+
* @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
|
|
190
|
+
* @param {*} [options] Override http request option.
|
|
191
|
+
* @throws {RequiredError}
|
|
192
|
+
*/
|
|
193
|
+
listTransactions(requestParameters = {}, options) {
|
|
194
|
+
return localVarFp.listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.transactionStatus, requestParameters.relatedIdentifierName, requestParameters.relatedIdentifierValue, requestParameters.nextToken, options).then((request) => request(axios, basePath));
|
|
195
|
+
}
|
|
196
|
+
};
|
|
197
|
+
};
|
|
198
|
+
var FinancesApi = class extends BaseAPI {
|
|
199
|
+
/**
|
|
200
|
+
* Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).
|
|
201
|
+
* @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.
|
|
202
|
+
* @param {*} [options] Override http request option.
|
|
203
|
+
* @throws {RequiredError}
|
|
204
|
+
*/
|
|
205
|
+
listTransactions(requestParameters = {}, options) {
|
|
206
|
+
return FinancesApiFp(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.transactionStatus, requestParameters.relatedIdentifierName, requestParameters.relatedIdentifierValue, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));
|
|
207
|
+
}
|
|
208
|
+
};
|
|
209
|
+
|
|
210
|
+
// src/api-model/configuration.ts
|
|
211
|
+
var Configuration = class {
|
|
212
|
+
/**
|
|
213
|
+
* parameter for apiKey security
|
|
214
|
+
* @param name security name
|
|
215
|
+
*/
|
|
216
|
+
apiKey;
|
|
217
|
+
/**
|
|
218
|
+
* parameter for basic security
|
|
219
|
+
*/
|
|
220
|
+
username;
|
|
221
|
+
/**
|
|
222
|
+
* parameter for basic security
|
|
223
|
+
*/
|
|
224
|
+
password;
|
|
225
|
+
/**
|
|
226
|
+
* parameter for oauth2 security
|
|
227
|
+
* @param name security name
|
|
228
|
+
* @param scopes oauth2 scope
|
|
229
|
+
*/
|
|
230
|
+
accessToken;
|
|
231
|
+
/**
|
|
232
|
+
* parameter for aws4 signature security
|
|
233
|
+
* @param {Object} AWS4Signature - AWS4 Signature security
|
|
234
|
+
* @param {string} options.region - aws region
|
|
235
|
+
* @param {string} options.service - name of the service.
|
|
236
|
+
* @param {string} credentials.accessKeyId - aws access key id
|
|
237
|
+
* @param {string} credentials.secretAccessKey - aws access key
|
|
238
|
+
* @param {string} credentials.sessionToken - aws session token
|
|
239
|
+
* @memberof Configuration
|
|
240
|
+
*/
|
|
241
|
+
awsv4;
|
|
242
|
+
/**
|
|
243
|
+
* override base path
|
|
244
|
+
*/
|
|
245
|
+
basePath;
|
|
246
|
+
/**
|
|
247
|
+
* override server index
|
|
248
|
+
*/
|
|
249
|
+
serverIndex;
|
|
250
|
+
/**
|
|
251
|
+
* base options for axios calls
|
|
252
|
+
*/
|
|
253
|
+
baseOptions;
|
|
254
|
+
/**
|
|
255
|
+
* The FormData constructor that will be used to create multipart form data
|
|
256
|
+
* requests. You can inject this here so that execution environments that
|
|
257
|
+
* do not support the FormData class can still run the generated client.
|
|
258
|
+
*
|
|
259
|
+
* @type {new () => FormData}
|
|
260
|
+
*/
|
|
261
|
+
formDataCtor;
|
|
262
|
+
constructor(param = {}) {
|
|
263
|
+
this.apiKey = param.apiKey;
|
|
264
|
+
this.username = param.username;
|
|
265
|
+
this.password = param.password;
|
|
266
|
+
this.accessToken = param.accessToken;
|
|
267
|
+
this.awsv4 = param.awsv4;
|
|
268
|
+
this.basePath = param.basePath;
|
|
269
|
+
this.serverIndex = param.serverIndex;
|
|
270
|
+
this.baseOptions = {
|
|
271
|
+
...param.baseOptions,
|
|
272
|
+
headers: {
|
|
273
|
+
...param.baseOptions?.headers
|
|
274
|
+
}
|
|
275
|
+
};
|
|
276
|
+
this.formDataCtor = param.formDataCtor;
|
|
277
|
+
}
|
|
278
|
+
/**
|
|
279
|
+
* Check if the given MIME is a JSON MIME.
|
|
280
|
+
* JSON MIME examples:
|
|
281
|
+
* application/json
|
|
282
|
+
* application/json; charset=UTF8
|
|
283
|
+
* APPLICATION/JSON
|
|
284
|
+
* application/vnd.company+json
|
|
285
|
+
* @param mime - MIME (Multipurpose Internet Mail Extensions)
|
|
286
|
+
* @return True if the given MIME is JSON, false otherwise.
|
|
287
|
+
*/
|
|
288
|
+
isJsonMime(mime) {
|
|
289
|
+
const jsonMime = /^(application\/json|[^;/ \t]+\/[^;/ \t]+[+]json)[ \t]*(;.*)?$/i;
|
|
290
|
+
return mime !== null && jsonMime.test(mime);
|
|
291
|
+
}
|
|
292
|
+
};
|
|
293
|
+
|
|
294
|
+
// src/api-model/models/business-context.ts
|
|
295
|
+
var BusinessContextStoreNameEnum = {
|
|
296
|
+
AmazonHaul: "AMAZON_HAUL"
|
|
297
|
+
};
|
|
298
|
+
|
|
299
|
+
// src/api-model/models/item-related-identifier.ts
|
|
300
|
+
var ItemRelatedIdentifierItemRelatedIdentifierNameEnum = {
|
|
301
|
+
OrderAdjustmentItemId: "ORDER_ADJUSTMENT_ITEM_ID",
|
|
302
|
+
CouponId: "COUPON_ID",
|
|
303
|
+
RemovalShipmentItemId: "REMOVAL_SHIPMENT_ITEM_ID",
|
|
304
|
+
TransactionId: "TRANSACTION_ID"
|
|
305
|
+
};
|
|
306
|
+
|
|
307
|
+
// src/api-model/models/related-identifier.ts
|
|
308
|
+
var RelatedIdentifierRelatedIdentifierNameEnum = {
|
|
309
|
+
OrderId: "ORDER_ID",
|
|
310
|
+
ShipmentId: "SHIPMENT_ID",
|
|
311
|
+
FinancialEventGroupId: "FINANCIAL_EVENT_GROUP_ID",
|
|
312
|
+
RefundId: "REFUND_ID",
|
|
313
|
+
InvoiceId: "INVOICE_ID",
|
|
314
|
+
DisbursementId: "DISBURSEMENT_ID",
|
|
315
|
+
TransferId: "TRANSFER_ID",
|
|
316
|
+
DeferredTransactionId: "DEFERRED_TRANSACTION_ID",
|
|
317
|
+
ReleaseTransactionId: "RELEASE_TRANSACTION_ID",
|
|
318
|
+
SettlementId: "SETTLEMENT_ID"
|
|
319
|
+
};
|
|
320
|
+
|
|
321
|
+
// src/client.ts
|
|
322
|
+
var clientRateLimits = [
|
|
323
|
+
{
|
|
324
|
+
method: "get",
|
|
325
|
+
// eslint-disable-next-line prefer-regex-literals
|
|
326
|
+
urlRegex: new RegExp("^/finances/2024-06-19/transactions$"),
|
|
327
|
+
rate: 0.5,
|
|
328
|
+
burst: 10
|
|
329
|
+
}
|
|
330
|
+
];
|
|
331
|
+
var FinancesApiClient = class extends FinancesApi {
|
|
332
|
+
constructor(configuration) {
|
|
333
|
+
const { axios, endpoint } = (0, import_common2.createAxiosInstance)(configuration, clientRateLimits);
|
|
334
|
+
super(new Configuration(), endpoint, axios);
|
|
335
|
+
}
|
|
336
|
+
};
|
|
337
|
+
// Annotate the CommonJS export names for ESM import in node:
|
|
338
|
+
0 && (module.exports = {
|
|
339
|
+
BusinessContextStoreNameEnum,
|
|
340
|
+
FinancesApi,
|
|
341
|
+
FinancesApiAxiosParamCreator,
|
|
342
|
+
FinancesApiClient,
|
|
343
|
+
FinancesApiFactory,
|
|
344
|
+
FinancesApiFp,
|
|
345
|
+
ItemRelatedIdentifierItemRelatedIdentifierNameEnum,
|
|
346
|
+
RelatedIdentifierRelatedIdentifierNameEnum,
|
|
347
|
+
clientRateLimits
|
|
348
|
+
});
|
|
349
|
+
//# sourceMappingURL=index.cjs.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"sources":["../src/index.ts","../src/client.ts","../src/api-model/api/finances-api.ts","../src/api-model/base.ts","../src/api-model/common.ts","../src/api-model/configuration.ts","../src/api-model/models/business-context.ts","../src/api-model/models/item-related-identifier.ts","../src/api-model/models/related-identifier.ts"],"sourcesContent":["export * from './client.js'\nexport * from './api-model/api.js'\nexport * from './api-model/models/index.js'\n","import {type ClientConfiguration, createAxiosInstance, type RateLimit} from '@sp-api-sdk/common'\n\nimport {Configuration, FinancesApi} from './api-model/index.js'\n\nexport const clientRateLimits: RateLimit[] = [\n {\n method: 'get',\n // eslint-disable-next-line prefer-regex-literals\n urlRegex: new RegExp('^/finances/2024-06-19/transactions$'),\n rate: 0.5,\n burst: 10,\n },\n]\n\nexport class FinancesApiClient extends FinancesApi {\n constructor(configuration: ClientConfiguration) {\n const {axios, endpoint} = createAxiosInstance(configuration, clientRateLimits)\n\n super(new Configuration(), endpoint, axios)\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from '../configuration.js';\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport { DUMMY_BASE_URL, assertParamExists, setApiKeyToObject, setBasicAuthToObject, setBearerAuthToObject, setOAuthToObject, setSearchParams, serializeDataIfNeeded, toPathString, createRequestFunction, replaceWithSerializableTypeIfNeeded } from '../common.js';\n// @ts-ignore\nimport { BASE_PATH, COLLECTION_FORMATS, type RequestArgs, BaseAPI, RequiredError, operationServerMap } from '../base.js';\n// @ts-ignore\nimport type { ErrorList } from '../models/index.js';\n// @ts-ignore\nimport type { ListTransactionsResponse } from '../models/index.js';\n/**\n * FinancesApi - axios parameter creator\n */\nexport const FinancesApiAxiosParamCreator = function (configuration?: Configuration) {\n return {\n /**\n * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).\n * @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.\n * @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.\n * @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. 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).\n * @param {string} [transactionStatus] 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.\n * @param {string} [relatedIdentifierName] The name of the `relatedIdentifier`. **Possible values:** * `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction. * `ORDER_ID`: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.\n * @param {string} [relatedIdentifierValue] The value of the `relatedIdentifier`.\n * @param {string} [nextToken] 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.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listTransactions: async (postedAfter?: string, postedBefore?: string, marketplaceId?: string, transactionStatus?: string, relatedIdentifierName?: string, relatedIdentifierValue?: string, nextToken?: string, options: RawAxiosRequestConfig = {}): Promise<RequestArgs> => {\n const localVarPath = `/finances/2024-06-19/transactions`;\n // use dummy base URL string because the URL constructor only accepts absolute URLs.\n const localVarUrlObj = new URL(localVarPath, DUMMY_BASE_URL);\n let baseOptions;\n if (configuration) {\n baseOptions = configuration.baseOptions;\n }\n\n const localVarRequestOptions = { method: 'GET', ...baseOptions, ...options};\n const localVarHeaderParameter = {} as any;\n const localVarQueryParameter = {} as any;\n\n if (postedAfter !== undefined) {\n localVarQueryParameter['postedAfter'] = (postedAfter as any instanceof Date) ?\n (postedAfter as any).toISOString() :\n postedAfter;\n }\n\n if (postedBefore !== undefined) {\n localVarQueryParameter['postedBefore'] = (postedBefore as any instanceof Date) ?\n (postedBefore as any).toISOString() :\n postedBefore;\n }\n\n if (marketplaceId !== undefined) {\n localVarQueryParameter['marketplaceId'] = marketplaceId;\n }\n\n if (transactionStatus !== undefined) {\n localVarQueryParameter['transactionStatus'] = transactionStatus;\n }\n\n if (relatedIdentifierName !== undefined) {\n localVarQueryParameter['relatedIdentifierName'] = relatedIdentifierName;\n }\n\n if (relatedIdentifierValue !== undefined) {\n localVarQueryParameter['relatedIdentifierValue'] = relatedIdentifierValue;\n }\n\n if (nextToken !== undefined) {\n localVarQueryParameter['nextToken'] = nextToken;\n }\n\n localVarHeaderParameter['Accept'] = 'application/json';\n\n setSearchParams(localVarUrlObj, localVarQueryParameter);\n let headersFromBaseOptions = baseOptions && baseOptions.headers ? baseOptions.headers : {};\n localVarRequestOptions.headers = {...localVarHeaderParameter, ...headersFromBaseOptions, ...options.headers};\n\n return {\n url: toPathString(localVarUrlObj),\n options: localVarRequestOptions,\n };\n },\n }\n};\n\n/**\n * FinancesApi - functional programming interface\n */\nexport const FinancesApiFp = function(configuration?: Configuration) {\n const localVarAxiosParamCreator = FinancesApiAxiosParamCreator(configuration)\n return {\n /**\n * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).\n * @param {string} [postedAfter] The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.\n * @param {string} [postedBefore] The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.\n * @param {string} [marketplaceId] The identifier of the marketplace from which you want to retrieve transactions. 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).\n * @param {string} [transactionStatus] 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.\n * @param {string} [relatedIdentifierName] The name of the `relatedIdentifier`. **Possible values:** * `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction. * `ORDER_ID`: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.\n * @param {string} [relatedIdentifierValue] The value of the `relatedIdentifier`.\n * @param {string} [nextToken] 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.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n async listTransactions(postedAfter?: string, postedBefore?: string, marketplaceId?: string, transactionStatus?: string, relatedIdentifierName?: string, relatedIdentifierValue?: string, nextToken?: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListTransactionsResponse>> {\n const localVarAxiosArgs = await localVarAxiosParamCreator.listTransactions(postedAfter, postedBefore, marketplaceId, transactionStatus, relatedIdentifierName, relatedIdentifierValue, nextToken, options);\n const localVarOperationServerIndex = configuration?.serverIndex ?? 0;\n const localVarOperationServerBasePath = operationServerMap['FinancesApi.listTransactions']?.[localVarOperationServerIndex]?.url;\n return (axios, basePath) => createRequestFunction(localVarAxiosArgs, globalAxios, BASE_PATH, configuration)(axios, localVarOperationServerBasePath || basePath);\n },\n }\n};\n\n/**\n * FinancesApi - factory interface\n */\nexport const FinancesApiFactory = function (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) {\n const localVarFp = FinancesApiFp(configuration)\n return {\n /**\n * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).\n * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n listTransactions(requestParameters: FinancesApiListTransactionsRequest = {}, options?: RawAxiosRequestConfig): AxiosPromise<ListTransactionsResponse> {\n return localVarFp.listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.transactionStatus, requestParameters.relatedIdentifierName, requestParameters.relatedIdentifierValue, requestParameters.nextToken, options).then((request) => request(axios, basePath));\n },\n };\n};\n\n/**\n * Request parameters for listTransactions operation in FinancesApi.\n */\nexport interface FinancesApiListTransactionsRequest {\n /**\n * The response includes financial events posted on or after this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be more than two minutes before the time of the request. This field is required if you do not specify a related identifier.\n */\n readonly postedAfter?: string\n\n /**\n * The response includes financial events posted before (but not on) this date. This date must be in [ISO 8601](https://developer-docs.amazon.com/sp-api/docs/iso-8601) date-time format. The date-time must be later than `PostedAfter` and more than two minutes before the request was submitted. If `PostedAfter` and `PostedBefore` are more than 180 days apart, the response is empty. **Default:** Two minutes before the time of the request.\n */\n readonly postedBefore?: string\n\n /**\n * The identifier of the marketplace from which you want to retrieve transactions. 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).\n */\n readonly marketplaceId?: string\n\n /**\n * 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.\n */\n readonly transactionStatus?: string\n\n /**\n * The name of the `relatedIdentifier`. **Possible values:** * `FINANCIAL_EVENT_GROUP_ID`: the financial event group ID associated with the transaction. * `ORDER_ID`: the order ID associated with the transaction. **Note:** FINANCIAL_EVENT_GROUP_ID and ORDER_ID are the only `relatedIdentifier` with filtering capabilities at the moment. While other `relatedIdentifier` values will be included in the response when available, they cannot be used for filtering purposes.\n */\n readonly relatedIdentifierName?: string\n\n /**\n * The value of the `relatedIdentifier`.\n */\n readonly relatedIdentifierValue?: string\n\n /**\n * 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.\n */\n readonly nextToken?: string\n}\n\n/**\n * FinancesApi - object-oriented interface\n */\nexport class FinancesApi extends BaseAPI {\n /**\n * Returns transactions for the given parameters. Financial events might not include orders from the last 48 hours. **Usage plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 10 | The `x-amzn-RateLimit-Limit` response header returns the usage plan rate limits that were applied to the requested operation, when available. The preceding table contains the default rate and burst values for this operation. Selling partners whose business demands require higher throughput may have higher rate and burst values than those shown here. For more information, refer to [Usage Plans and Rate Limits](https://developer-docs.amazon.com/sp-api/docs/usage-plans-and-rate-limits).\n * @param {FinancesApiListTransactionsRequest} requestParameters Request parameters.\n * @param {*} [options] Override http request option.\n * @throws {RequiredError}\n */\n public listTransactions(requestParameters: FinancesApiListTransactionsRequest = {}, options?: RawAxiosRequestConfig) {\n return FinancesApiFp(this.configuration).listTransactions(requestParameters.postedAfter, requestParameters.postedBefore, requestParameters.marketplaceId, requestParameters.transactionStatus, requestParameters.relatedIdentifierName, requestParameters.relatedIdentifierValue, requestParameters.nextToken, options).then((request) => request(this.axios, this.basePath));\n }\n}\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\nimport type { Configuration } from './configuration.js';\n// Some imports not used depending on template conditions\n// @ts-ignore\nimport type { AxiosPromise, AxiosInstance, RawAxiosRequestConfig } from 'axios';\nimport globalAxios from 'axios';\n\nexport const BASE_PATH = \"https://sellingpartnerapi-na.amazon.com\".replace(/\\/+$/, \"\");\n\nexport const COLLECTION_FORMATS = {\n csv: \",\",\n ssv: \" \",\n tsv: \"\\t\",\n pipes: \"|\",\n};\n\nexport interface RequestArgs {\n url: string;\n options: RawAxiosRequestConfig;\n}\n\nexport class BaseAPI {\n protected configuration: Configuration | undefined;\n\n constructor(configuration?: Configuration, protected basePath: string = BASE_PATH, protected axios: AxiosInstance = globalAxios) {\n if (configuration) {\n this.configuration = configuration;\n this.basePath = configuration.basePath ?? basePath;\n }\n }\n};\n\nexport class RequiredError extends Error {\n constructor(public field: string, msg?: string) {\n super(msg);\n this.name = \"RequiredError\"\n }\n}\n\ninterface ServerMap {\n [key: string]: {\n url: string,\n description: string,\n }[];\n}\n\nexport const operationServerMap: ServerMap = {\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\nimport type { Configuration } from \"./configuration.js\";\nimport type { RequestArgs } from \"./base.js\";\nimport type { AxiosInstance, AxiosResponse } from 'axios';\nimport { RequiredError } from \"./base.js\";\n\nexport const DUMMY_BASE_URL = 'https://example.com'\n\n/**\n *\n * @throws {RequiredError}\n */\nexport const assertParamExists = function (functionName: string, paramName: string, paramValue: unknown) {\n if (paramValue === null || paramValue === undefined) {\n throw new RequiredError(paramName, `Required parameter ${paramName} was null or undefined when calling ${functionName}.`);\n }\n}\n\nexport const setApiKeyToObject = async function (object: any, keyParamName: string, configuration?: Configuration) {\n if (configuration && configuration.apiKey) {\n const localVarApiKeyValue = typeof configuration.apiKey === 'function'\n ? await configuration.apiKey(keyParamName)\n : await configuration.apiKey;\n object[keyParamName] = localVarApiKeyValue;\n }\n}\n\nexport const setBasicAuthToObject = function (object: any, configuration?: Configuration) {\n if (configuration && (configuration.username || configuration.password)) {\n object[\"auth\"] = { username: configuration.username, password: configuration.password };\n }\n}\n\nexport const setBearerAuthToObject = async function (object: any, configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const accessToken = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken()\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + accessToken;\n }\n}\n\nexport const setOAuthToObject = async function (object: any, name: string, scopes: string[], configuration?: Configuration) {\n if (configuration && configuration.accessToken) {\n const localVarAccessTokenValue = typeof configuration.accessToken === 'function'\n ? await configuration.accessToken(name, scopes)\n : await configuration.accessToken;\n object[\"Authorization\"] = \"Bearer \" + localVarAccessTokenValue;\n }\n}\n\n\nfunction setFlattenedQueryParams(urlSearchParams: URLSearchParams, parameter: any, key: string = \"\"): void {\n if (parameter == null) return;\n if (typeof parameter === \"object\") {\n if (Array.isArray(parameter) || parameter instanceof Set) {\n (parameter as any[]).forEach(item => setFlattenedQueryParams(urlSearchParams, item, key));\n }\n else {\n Object.keys(parameter).forEach(currentKey =>\n setFlattenedQueryParams(urlSearchParams, parameter[currentKey], `${key}${key !== '' ? '.' : ''}${currentKey}`)\n );\n }\n }\n else {\n if (urlSearchParams.has(key)) {\n urlSearchParams.append(key, parameter);\n }\n else {\n urlSearchParams.set(key, parameter);\n }\n }\n}\n\nexport const setSearchParams = function (url: URL, ...objects: any[]) {\n const searchParams = new URLSearchParams(url.search);\n setFlattenedQueryParams(searchParams, objects);\n url.search = searchParams.toString();\n}\n\n/**\n * JSON serialization helper function which replaces instances of unserializable types with serializable ones.\n * This function will run for every key-value pair encountered by JSON.stringify while traversing an object.\n * Converting a set to a string will return an empty object, so an intermediate conversion to an array is required.\n */\n// @ts-ignore\nexport const replaceWithSerializableTypeIfNeeded = function(key: string, value: any) {\n if (value instanceof Set) {\n return Array.from(value);\n } else {\n return value;\n }\n}\n\nexport const serializeDataIfNeeded = function (value: any, requestOptions: any, configuration?: Configuration) {\n const nonString = typeof value !== 'string';\n const needsSerialization = nonString && configuration && configuration.isJsonMime\n ? configuration.isJsonMime(requestOptions.headers['Content-Type'])\n : nonString;\n return needsSerialization\n ? JSON.stringify(value !== undefined ? value : {}, replaceWithSerializableTypeIfNeeded)\n : (value || \"\");\n}\n\nexport const toPathString = function (url: URL) {\n return url.pathname + url.search + url.hash\n}\n\nexport const createRequestFunction = function (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) {\n return <T = unknown, R = AxiosResponse<T>>(axios: AxiosInstance = globalAxios, basePath: string = BASE_PATH) => {\n const axiosRequestArgs = {...axiosArgs.options, url: (axios.defaults.baseURL ? '' : configuration?.basePath ?? basePath) + axiosArgs.url};\n return axios.request<T, R>(axiosRequestArgs);\n };\n}\n","/* tslint:disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\ninterface AWSv4Configuration {\n options?: {\n region?: string\n service?: string\n }\n credentials?: {\n accessKeyId?: string\n secretAccessKey?: string,\n sessionToken?: string\n }\n}\n\nexport interface ConfigurationParameters {\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n username?: string;\n password?: string;\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n awsv4?: AWSv4Configuration;\n basePath?: string;\n serverIndex?: number;\n baseOptions?: any;\n formDataCtor?: new () => any;\n}\n\nexport class Configuration {\n /**\n * parameter for apiKey security\n * @param name security name\n */\n apiKey?: string | Promise<string> | ((name: string) => string) | ((name: string) => Promise<string>);\n /**\n * parameter for basic security\n */\n username?: string;\n /**\n * parameter for basic security\n */\n password?: string;\n /**\n * parameter for oauth2 security\n * @param name security name\n * @param scopes oauth2 scope\n */\n accessToken?: string | Promise<string> | ((name?: string, scopes?: string[]) => string) | ((name?: string, scopes?: string[]) => Promise<string>);\n /**\n * parameter for aws4 signature security\n * @param {Object} AWS4Signature - AWS4 Signature security\n * @param {string} options.region - aws region\n * @param {string} options.service - name of the service.\n * @param {string} credentials.accessKeyId - aws access key id\n * @param {string} credentials.secretAccessKey - aws access key\n * @param {string} credentials.sessionToken - aws session token\n * @memberof Configuration\n */\n awsv4?: AWSv4Configuration;\n /**\n * override base path\n */\n basePath?: string;\n /**\n * override server index\n */\n serverIndex?: number;\n /**\n * base options for axios calls\n */\n baseOptions?: any;\n /**\n * The FormData constructor that will be used to create multipart form data\n * requests. You can inject this here so that execution environments that\n * do not support the FormData class can still run the generated client.\n *\n * @type {new () => FormData}\n */\n formDataCtor?: new () => any;\n\n constructor(param: ConfigurationParameters = {}) {\n this.apiKey = param.apiKey;\n this.username = param.username;\n this.password = param.password;\n this.accessToken = param.accessToken;\n this.awsv4 = param.awsv4;\n this.basePath = param.basePath;\n this.serverIndex = param.serverIndex;\n this.baseOptions = {\n ...param.baseOptions,\n headers: {\n ...param.baseOptions?.headers,\n },\n };\n this.formDataCtor = param.formDataCtor;\n }\n\n /**\n * Check if the given MIME is a JSON MIME.\n * JSON MIME examples:\n * application/json\n * application/json; charset=UTF8\n * APPLICATION/JSON\n * application/vnd.company+json\n * @param mime - MIME (Multipurpose Internet Mail Extensions)\n * @return True if the given MIME is JSON, false otherwise.\n */\n public isJsonMime(mime: string): boolean {\n const jsonMime: RegExp = /^(application\\/json|[^;/ \\t]+\\/[^;/ \\t]+[+]json)[ \\t]*(;.*)?$/i;\n return mime !== null && jsonMime.test(mime);\n }\n}\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Information about the line of business associated with a transaction.\n */\nexport interface BusinessContext {\n /**\n * The store name associated with the transaction.\n */\n 'storeName'?: BusinessContextStoreNameEnum;\n}\n\nexport const BusinessContextStoreNameEnum = {\n AmazonHaul: 'AMAZON_HAUL',\n} as const;\n\nexport type BusinessContextStoreNameEnum = typeof BusinessContextStoreNameEnum[keyof typeof BusinessContextStoreNameEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Related business identifiers of the item.\n */\nexport interface ItemRelatedIdentifier {\n /**\n * Enumerated set of related item identifier names for the item.\n */\n 'itemRelatedIdentifierName'?: ItemRelatedIdentifierItemRelatedIdentifierNameEnum;\n /**\n * Corresponding value to `ItemRelatedIdentifierName`.\n */\n 'itemRelatedIdentifierValue'?: string;\n}\n\nexport const ItemRelatedIdentifierItemRelatedIdentifierNameEnum = {\n OrderAdjustmentItemId: 'ORDER_ADJUSTMENT_ITEM_ID',\n CouponId: 'COUPON_ID',\n RemovalShipmentItemId: 'REMOVAL_SHIPMENT_ITEM_ID',\n TransactionId: 'TRANSACTION_ID',\n} as const;\n\nexport type ItemRelatedIdentifierItemRelatedIdentifierNameEnum = typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum[keyof typeof ItemRelatedIdentifierItemRelatedIdentifierNameEnum];\n\n\n","/* tslint:disable */\n/* eslint-disable */\n/**\n * The Selling Partner API for Finances\n * 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.\n *\n * The version of the OpenAPI document: 2024-06-19\n * \n *\n * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).\n * https://openapi-generator.tech\n * Do not edit the class manually.\n */\n\n\n\n/**\n * Related business identifier of the transaction.\n */\nexport interface RelatedIdentifier {\n /**\n * An enumerated set of related business identifier names.\n */\n 'relatedIdentifierName'?: RelatedIdentifierRelatedIdentifierNameEnum;\n /**\n * Corresponding value of `RelatedIdentifierName`.\n */\n 'relatedIdentifierValue'?: string;\n}\n\nexport const RelatedIdentifierRelatedIdentifierNameEnum = {\n OrderId: 'ORDER_ID',\n ShipmentId: 'SHIPMENT_ID',\n FinancialEventGroupId: 'FINANCIAL_EVENT_GROUP_ID',\n RefundId: 'REFUND_ID',\n InvoiceId: 'INVOICE_ID',\n DisbursementId: 'DISBURSEMENT_ID',\n TransferId: 'TRANSFER_ID',\n DeferredTransactionId: 'DEFERRED_TRANSACTION_ID',\n ReleaseTransactionId: 'RELEASE_TRANSACTION_ID',\n SettlementId: 'SETTLEMENT_ID',\n} as const;\n\nexport type RelatedIdentifierRelatedIdentifierNameEnum = typeof RelatedIdentifierRelatedIdentifierNameEnum[keyof typeof RelatedIdentifierRelatedIdentifierNameEnum];\n\n\n"],"mappings":";;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AA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