Skip to content

Commit 71530ff

Browse files
committed
fix(finances-api-2024-06-19): patch broken model
1 parent 22512f1 commit 71530ff

File tree

6 files changed

+80
-14
lines changed

6 files changed

+80
-14
lines changed

clients/finances-api-2024-06-19/src/api-model/models/breakdown.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,10 @@ export interface Breakdown {
3636
*/
3737
'breakdownAmount'?: Currency;
3838
/**
39-
*
40-
* @type {Breakdown}
39+
* A list of breakdowns that provide details on how the total amount is calculated for the transaction.
40+
* @type {Array<Breakdown>}
4141
* @memberof Breakdown
4242
*/
43-
'breakdowns'?: Breakdown;
43+
'breakdowns'?: Array<Breakdown>;
4444
}
4545

clients/finances-api-2024-06-19/src/api-model/models/index.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@ export * from './error-list';
88
export * from './item';
99
export * from './item-related-identifier';
1010
export * from './list-transactions-response';
11+
export * from './list-transactions-response-payload';
1112
export * from './marketplace-details';
1213
export * from './model-error';
1314
export * from './payments-context';
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
/* tslint:disable */
2+
/* eslint-disable */
3+
/**
4+
* The Selling Partner API for Finances
5+
* 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.
6+
*
7+
* The version of the OpenAPI document: 2024-06-19
8+
*
9+
*
10+
* NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11+
* https://openapi-generator.tech
12+
* Do not edit the class manually.
13+
*/
14+
15+
16+
// May contain unused imports in some cases
17+
// @ts-ignore
18+
import type { Transaction } from './transaction';
19+
20+
/**
21+
* The payload wrapping the response for the `listTransactions` operation.
22+
* @export
23+
* @interface ListTransactionsResponsePayload
24+
*/
25+
export interface ListTransactionsResponsePayload {
26+
/**
27+
* 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.
28+
* @type {string}
29+
* @memberof ListTransactionsResponsePayload
30+
*/
31+
'nextToken'?: string;
32+
/**
33+
* A list of transactions within the specified time period.
34+
* @type {Array<Transaction>}
35+
* @memberof ListTransactionsResponsePayload
36+
*/
37+
'transactions'?: Array<Transaction>;
38+
}
39+

clients/finances-api-2024-06-19/src/api-model/models/list-transactions-response.ts

Lines changed: 5 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -15,25 +15,19 @@
1515

1616
// May contain unused imports in some cases
1717
// @ts-ignore
18-
import type { Transaction } from './transaction';
18+
import type { ListTransactionsResponsePayload } from './list-transactions-response-payload';
1919

2020
/**
21-
* The response schema for the `listTransactions` operation.
21+
* The response schema for the `listTransactions` operation, wrapped inside a payload object.
2222
* @export
2323
* @interface ListTransactionsResponse
2424
*/
2525
export interface ListTransactionsResponse {
2626
/**
27-
* 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.
28-
* @type {string}
27+
*
28+
* @type {ListTransactionsResponsePayload}
2929
* @memberof ListTransactionsResponse
3030
*/
31-
'nextToken'?: string;
32-
/**
33-
* A list of transactions within the specified time period.
34-
* @type {Array<Transaction>}
35-
* @memberof ListTransactionsResponse
36-
*/
37-
'transactions'?: Array<Transaction>;
31+
'payload'?: ListTransactionsResponsePayload;
3832
}
3933

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
[
2+
{
3+
"op": "replace",
4+
"path": "/definitions/ListTransactionsResponse",
5+
"value": {
6+
"type": "object",
7+
"properties": {
8+
"payload": {
9+
"type": "object",
10+
"properties": {
11+
"nextToken": {
12+
"type": "string",
13+
"description": "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."
14+
},
15+
"transactions": {
16+
"$ref": "#/definitions/Transactions"
17+
}
18+
},
19+
"description": "The payload wrapping the response for the `listTransactions` operation."
20+
}
21+
},
22+
"description": "The response schema for the `listTransactions` operation, wrapped inside a payload object."
23+
}
24+
}
25+
]
Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
[
2+
{
3+
"op": "replace",
4+
"path": "/definitions/Breakdown/properties/breakdowns/$ref",
5+
"value": "#/definitions/Breakdowns"
6+
}
7+
]

0 commit comments

Comments
 (0)