@sp-api-sdk/finances-api-v0 1.9.5 → 1.9.6

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.
@@ -18,7 +18,7 @@ import { ListFinancialEventsResponse } from '../models';
18
18
  * DefaultApi - axios parameter creator
19
19
  * @export
20
20
  */
21
- export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration | undefined) => {
21
+ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration) => {
22
22
  /**
23
23
  * Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
24
24
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -28,7 +28,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
28
28
  * @param {*} [options] Override http request option.
29
29
  * @throws {RequiredError}
30
30
  */
31
- listFinancialEventGroups: (maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
31
+ listFinancialEventGroups: (maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
32
32
  /**
33
33
  * Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
34
34
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -38,7 +38,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
38
38
  * @param {*} [options] Override http request option.
39
39
  * @throws {RequiredError}
40
40
  */
41
- listFinancialEvents: (maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
41
+ listFinancialEvents: (maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
42
42
  /**
43
43
  * Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
44
44
  * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
@@ -47,7 +47,7 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
47
47
  * @param {*} [options] Override http request option.
48
48
  * @throws {RequiredError}
49
49
  */
50
- listFinancialEventsByGroupId: (eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
50
+ listFinancialEventsByGroupId: (eventGroupId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
51
51
  /**
52
52
  * Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
53
53
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -56,13 +56,13 @@ export declare const DefaultApiAxiosParamCreator: (configuration?: Configuration
56
56
  * @param {*} [options] Override http request option.
57
57
  * @throws {RequiredError}
58
58
  */
59
- listFinancialEventsByOrderId: (orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig) => Promise<RequestArgs>;
59
+ listFinancialEventsByOrderId: (orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig) => Promise<RequestArgs>;
60
60
  };
61
61
  /**
62
62
  * DefaultApi - functional programming interface
63
63
  * @export
64
64
  */
65
- export declare const DefaultApiFp: (configuration?: Configuration | undefined) => {
65
+ export declare const DefaultApiFp: (configuration?: Configuration) => {
66
66
  /**
67
67
  * Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
68
68
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -72,7 +72,7 @@ export declare const DefaultApiFp: (configuration?: Configuration | undefined) =
72
72
  * @param {*} [options] Override http request option.
73
73
  * @throws {RequiredError}
74
74
  */
75
- listFinancialEventGroups(maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventGroupsResponse>>;
75
+ listFinancialEventGroups(maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventGroupsResponse>>;
76
76
  /**
77
77
  * Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
78
78
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -82,7 +82,7 @@ export declare const DefaultApiFp: (configuration?: Configuration | undefined) =
82
82
  * @param {*} [options] Override http request option.
83
83
  * @throws {RequiredError}
84
84
  */
85
- listFinancialEvents(maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
85
+ listFinancialEvents(maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
86
86
  /**
87
87
  * Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
88
88
  * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
@@ -91,7 +91,7 @@ export declare const DefaultApiFp: (configuration?: Configuration | undefined) =
91
91
  * @param {*} [options] Override http request option.
92
92
  * @throws {RequiredError}
93
93
  */
94
- listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
94
+ listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
95
95
  /**
96
96
  * Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
97
97
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -100,13 +100,13 @@ export declare const DefaultApiFp: (configuration?: Configuration | undefined) =
100
100
  * @param {*} [options] Override http request option.
101
101
  * @throws {RequiredError}
102
102
  */
103
- listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: AxiosRequestConfig<any> | undefined): Promise<(axios?: AxiosInstance | undefined, basePath?: string | undefined) => AxiosPromise<ListFinancialEventsResponse>>;
103
+ listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: AxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<ListFinancialEventsResponse>>;
104
104
  };
105
105
  /**
106
106
  * DefaultApi - factory interface
107
107
  * @export
108
108
  */
109
- export declare const DefaultApiFactory: (configuration?: Configuration | undefined, basePath?: string | undefined, axios?: AxiosInstance | undefined) => {
109
+ export declare const DefaultApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
110
110
  /**
111
111
  * Returns financial event groups for a given date range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
112
112
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -116,7 +116,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration | undefin
116
116
  * @param {*} [options] Override http request option.
117
117
  * @throws {RequiredError}
118
118
  */
119
- listFinancialEventGroups(maxResultsPerPage?: number | undefined, financialEventGroupStartedBefore?: string | undefined, financialEventGroupStartedAfter?: string | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventGroupsResponse>;
119
+ listFinancialEventGroups(maxResultsPerPage?: number, financialEventGroupStartedBefore?: string, financialEventGroupStartedAfter?: string, nextToken?: string, options?: any): AxiosPromise<ListFinancialEventGroupsResponse>;
120
120
  /**
121
121
  * Returns financial events for the specified data range. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
122
122
  * @param {number} [maxResultsPerPage] The maximum number of results to return per page.
@@ -126,7 +126,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration | undefin
126
126
  * @param {*} [options] Override http request option.
127
127
  * @throws {RequiredError}
128
128
  */
129
- listFinancialEvents(maxResultsPerPage?: number | undefined, postedAfter?: string | undefined, postedBefore?: string | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
129
+ listFinancialEvents(maxResultsPerPage?: number, postedAfter?: string, postedBefore?: string, nextToken?: string, options?: any): AxiosPromise<ListFinancialEventsResponse>;
130
130
  /**
131
131
  * Returns all financial events for the specified financial event group. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
132
132
  * @param {string} eventGroupId The identifier of the financial event group to which the events belong.
@@ -135,7 +135,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration | undefin
135
135
  * @param {*} [options] Override http request option.
136
136
  * @throws {RequiredError}
137
137
  */
138
- listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
138
+ listFinancialEventsByGroupId(eventGroupId: string, maxResultsPerPage?: number, nextToken?: string, options?: any): AxiosPromise<ListFinancialEventsResponse>;
139
139
  /**
140
140
  * Returns all financial events for the specified order. **Usage Plan:** | Rate (requests per second) | Burst | | ---- | ---- | | 0.5 | 30 | For more information, see \"Usage Plans and Rate Limits\" in the Selling Partner API documentation.
141
141
  * @param {string} orderId An Amazon-defined order identifier, in 3-7-7 format.
@@ -144,7 +144,7 @@ export declare const DefaultApiFactory: (configuration?: Configuration | undefin
144
144
  * @param {*} [options] Override http request option.
145
145
  * @throws {RequiredError}
146
146
  */
147
- listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number | undefined, nextToken?: string | undefined, options?: any): AxiosPromise<ListFinancialEventsResponse>;
147
+ listFinancialEventsByOrderId(orderId: string, maxResultsPerPage?: number, nextToken?: string, options?: any): AxiosPromise<ListFinancialEventsResponse>;
148
148
  };
149
149
  /**
150
150
  * Request parameters for listFinancialEventGroups operation in DefaultApi.
@@ -27,22 +27,22 @@ export declare const assertParamExists: (functionName: string, paramName: string
27
27
  *
28
28
  * @export
29
29
  */
30
- export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration | undefined) => Promise<void>;
30
+ export declare const setApiKeyToObject: (object: any, keyParamName: string, configuration?: Configuration) => Promise<void>;
31
31
  /**
32
32
  *
33
33
  * @export
34
34
  */
35
- export declare const setBasicAuthToObject: (object: any, configuration?: Configuration | undefined) => void;
35
+ export declare const setBasicAuthToObject: (object: any, configuration?: Configuration) => void;
36
36
  /**
37
37
  *
38
38
  * @export
39
39
  */
40
- export declare const setBearerAuthToObject: (object: any, configuration?: Configuration | undefined) => Promise<void>;
40
+ export declare const setBearerAuthToObject: (object: any, configuration?: Configuration) => Promise<void>;
41
41
  /**
42
42
  *
43
43
  * @export
44
44
  */
45
- export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration | undefined) => Promise<void>;
45
+ export declare const setOAuthToObject: (object: any, name: string, scopes: string[], configuration?: Configuration) => Promise<void>;
46
46
  /**
47
47
  *
48
48
  * @export
@@ -52,7 +52,7 @@ export declare const setSearchParams: (url: URL, ...objects: any[]) => void;
52
52
  *
53
53
  * @export
54
54
  */
55
- export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration | undefined) => any;
55
+ export declare const serializeDataIfNeeded: (value: any, requestOptions: any, configuration?: Configuration) => any;
56
56
  /**
57
57
  *
58
58
  * @export
@@ -62,4 +62,4 @@ export declare const toPathString: (url: URL) => string;
62
62
  *
63
63
  * @export
64
64
  */
65
- export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration | undefined) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
65
+ export declare const createRequestFunction: (axiosArgs: RequestArgs, globalAxios: AxiosInstance, BASE_PATH: string, configuration?: Configuration) => <T = unknown, R = AxiosResponse<T, any>>(axios?: AxiosInstance, basePath?: string) => Promise<R>;
package/package.json CHANGED
@@ -2,7 +2,7 @@
2
2
  "name": "@sp-api-sdk/finances-api-v0",
3
3
  "author": "Vincent Mesquita <vincent.mesquita@bizon.solutions>",
4
4
  "description": "The Selling Partner API for Finances helps you obtain financial information relevant to a seller's business. You can obtain financial events for a given order, financial event group, or date range without having to wait until a statement period closes. You can also obtain financial event groups for a given date range.",
5
- "version": "1.9.5",
5
+ "version": "1.9.6",
6
6
  "main": "dist/cjs/index.js",
7
7
  "module": "dist/es/index.js",
8
8
  "types": "dist/types/index.d.ts",
@@ -27,8 +27,8 @@
27
27
  "test": "jest"
28
28
  },
29
29
  "dependencies": {
30
- "@sp-api-sdk/auth": "^1.9.17",
31
- "@sp-api-sdk/common": "^1.9.3",
30
+ "@sp-api-sdk/auth": "^1.9.18",
31
+ "@sp-api-sdk/common": "^1.9.4",
32
32
  "axios": "^0.27.2"
33
33
  },
34
34
  "repository": {
@@ -50,5 +50,5 @@
50
50
  "sp sdk",
51
51
  "finances api"
52
52
  ],
53
- "gitHead": "d4f265d3c6a4e05e45025a46effa023a56a54e9c"
53
+ "gitHead": "18efdada205f63f94bd5c11e163e758adbb93257"
54
54
  }