rebilly-js-sdk 62.208.3 → 62.210.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/CHANGELOG.md +1 -1
- package/dist/rebilly-js-sdk.d.cts +201 -233
- package/dist/rebilly-js-sdk.d.mts +201 -233
- package/dist/rebilly-js-sdk.d.ts +201 -233
- package/dist/rebilly-js-sdk.es.mjs +1 -7
- package/dist/rebilly-js-sdk.umd.js +1 -1
- package/package.json +1 -1
- package/src/resources/payout-request-batches-resource.js +0 -12
package/CHANGELOG.md
CHANGED
|
@@ -1756,16 +1756,6 @@ declare namespace rebilly {
|
|
|
1756
1756
|
type DeletePayoutRequestBatchResponse = operations['DeletePayoutRequestBatch']['responses']['204']
|
|
1757
1757
|
type DeletePayoutRequestBatchResponsePromise = Promise<{fields: DeletePayoutRequestBatchResponse}>
|
|
1758
1758
|
|
|
1759
|
-
type PostPayoutRequestsToBatchRequest = operations['PostPayoutRequestsToBatch']['requestBody']['content']['application/json']
|
|
1760
|
-
type CreatePayoutRequestsToBatchRequest = { id?: string, data: PostPayoutRequestsToBatchRequest, expand?: string }
|
|
1761
|
-
type PostPayoutRequestsToBatchResponse = operations['PostPayoutRequestsToBatch']['responses']['200']['content']['application/json']
|
|
1762
|
-
type PostPayoutRequestsToBatchResponsePromise = Promise<{fields: PostPayoutRequestsToBatchResponse}>
|
|
1763
|
-
|
|
1764
|
-
type PostRemovePayoutRequestsFromBatchRequest = operations['PostRemovePayoutRequestsFromBatch']['requestBody']['content']['application/json']
|
|
1765
|
-
type CreateRemovePayoutRequestsFromBatchRequest = { id?: string, data: PostRemovePayoutRequestsFromBatchRequest, expand?: string }
|
|
1766
|
-
type PostRemovePayoutRequestsFromBatchResponse = operations['PostRemovePayoutRequestsFromBatch']['responses']['200']['content']['application/json']
|
|
1767
|
-
type PostRemovePayoutRequestsFromBatchResponsePromise = Promise<{fields: PostRemovePayoutRequestsFromBatchResponse}>
|
|
1768
|
-
|
|
1769
1759
|
type PostPermissionsEmulationRequest = operations['PostPermissionsEmulation']['requestBody']['content']['application/json']
|
|
1770
1760
|
type CreatePermissionsEmulationRequest = { id?: string, data: PostPermissionsEmulationRequest, expand?: string }
|
|
1771
1761
|
type PostPermissionsEmulationResponse = operations['PostPermissionsEmulation']['responses']['201']['content']['application/json']
|
|
@@ -5529,8 +5519,8 @@ export interface corePaths {
|
|
|
5529
5519
|
};
|
|
5530
5520
|
"/payout-request-batch-operations": {
|
|
5531
5521
|
/**
|
|
5532
|
-
* Creates a payout request batch operation
|
|
5533
|
-
* A payout request batch
|
|
5522
|
+
* Creates a payout request batch operation that applies one action to a payout request batch.
|
|
5523
|
+
* A payout request batch is a group of payout requests that you manage together.
|
|
5534
5524
|
*
|
|
5535
5525
|
* The `type` field specifies the action:
|
|
5536
5526
|
* - `approve`: Approves payout requests in the `ready` status.
|
|
@@ -5538,8 +5528,14 @@ export interface corePaths {
|
|
|
5538
5528
|
* - `unblock`: Removes the block from blocked payout requests.
|
|
5539
5529
|
* - `auto-allocate`: Creates allocations automatically for payout requests that can be allocated.
|
|
5540
5530
|
* - `process`: Queues pending allocations of the payout requests in the batch for processing.
|
|
5531
|
+
* - `add`: Adds the specified payout requests, or the payout requests that match a filter, to the batch.
|
|
5532
|
+
* - `remove`: Removes the specified payout requests from the batch.
|
|
5541
5533
|
*
|
|
5542
|
-
*
|
|
5534
|
+
* A batch contains a maximum of 1000 payout requests.
|
|
5535
|
+
* For `add` and `remove`, the operation is atomic.
|
|
5536
|
+
* If the operation cannot add or remove a specified payout request,
|
|
5537
|
+
* the operation returns a `409` response and changes no batch membership.
|
|
5538
|
+
* For the other types, each payout request is checked independently.
|
|
5543
5539
|
* Payout requests that do not qualify for the action are skipped.
|
|
5544
5540
|
* For `process`, allocations that do not qualify are skipped, and allocations that qualify are queued together.
|
|
5545
5541
|
* If queueing fails, no allocation is queued and the operation returns an error.
|
|
@@ -5601,54 +5597,6 @@ export interface corePaths {
|
|
|
5601
5597
|
};
|
|
5602
5598
|
};
|
|
5603
5599
|
};
|
|
5604
|
-
"/payout-request-batches/{id}/payout-requests": {
|
|
5605
|
-
/**
|
|
5606
|
-
* Adds payout requests to a batch with a specified ID.
|
|
5607
|
-
* Accepts payout requests in any status, with or without allocations.
|
|
5608
|
-
* A batch contains a maximum of 1000 payout requests.
|
|
5609
|
-
*
|
|
5610
|
-
* Provide exactly one of the following fields:
|
|
5611
|
-
* - `payoutRequestIds` to add specific payout requests.
|
|
5612
|
-
* - `filter` to add payout requests that match the filter when the operation runs.
|
|
5613
|
-
*
|
|
5614
|
-
* If any explicitly specified payout request is already associated with a batch,
|
|
5615
|
-
* the operation returns a `409 Conflict` response.
|
|
5616
|
-
* Filter results exclude payout requests that are already associated with a batch.
|
|
5617
|
-
* If more payout requests match the filter than the batch can contain,
|
|
5618
|
-
* the operation adds only the oldest matching requests up to the batch limit,
|
|
5619
|
-
* sorted by creation time.
|
|
5620
|
-
* If adding explicitly specified payout requests would increase the batch to more than 1000 requests,
|
|
5621
|
-
* the operation returns a `409 Conflict` response.
|
|
5622
|
-
* If the batch has reached its payout request limit,
|
|
5623
|
-
* the operation returns a `409 Conflict` response for either selection method.
|
|
5624
|
-
* This operation is atomic. If a conflict occurs, the operation adds no payout requests to the batch.
|
|
5625
|
-
*/
|
|
5626
|
-
post: operations["PostPayoutRequestsToBatch"];
|
|
5627
|
-
parameters: {
|
|
5628
|
-
path: {
|
|
5629
|
-
/** ID of the resource. */
|
|
5630
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
5631
|
-
};
|
|
5632
|
-
};
|
|
5633
|
-
};
|
|
5634
|
-
"/payout-request-batches/{id}/payout-requests/remove": {
|
|
5635
|
-
/**
|
|
5636
|
-
* Removes specified payout requests from a batch with a specified ID by clearing `batchId` on each request.
|
|
5637
|
-
* This operation preserves each payout request, status, and blocked state.
|
|
5638
|
-
* Removes requests regardless of status or allocations.
|
|
5639
|
-
*
|
|
5640
|
-
* This operation is atomic.
|
|
5641
|
-
* If any payout request is not associated with the specified batch,
|
|
5642
|
-
* the operation clears no associations with the batch.
|
|
5643
|
-
*/
|
|
5644
|
-
post: operations["PostRemovePayoutRequestsFromBatch"];
|
|
5645
|
-
parameters: {
|
|
5646
|
-
path: {
|
|
5647
|
-
/** ID of the resource. */
|
|
5648
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
5649
|
-
};
|
|
5650
|
-
};
|
|
5651
|
-
};
|
|
5652
5600
|
"/permissions-emulation": {
|
|
5653
5601
|
/**
|
|
5654
5602
|
* Starts permissions emulation.
|
|
@@ -7722,7 +7670,8 @@ export interface coreComponents {
|
|
|
7722
7670
|
| "email-message"
|
|
7723
7671
|
| "dispute"
|
|
7724
7672
|
| "coupon"
|
|
7725
|
-
| "external"
|
|
7673
|
+
| "external"
|
|
7674
|
+
| "payout-request-batch";
|
|
7726
7675
|
resourceId?: coreComponents["schemas"]["ResourceId"];
|
|
7727
7676
|
placeholder?: string;
|
|
7728
7677
|
externalUrl?: string;
|
|
@@ -22965,7 +22914,9 @@ export interface coreComponents {
|
|
|
22965
22914
|
| "payout-request-canceled"
|
|
22966
22915
|
| "payout-request-reversed"
|
|
22967
22916
|
| "payout-request-blocked"
|
|
22968
|
-
| "payout-request-unblocked"
|
|
22917
|
+
| "payout-request-unblocked"
|
|
22918
|
+
| "payout-request-added-to-batch"
|
|
22919
|
+
| "payout-request-removed-from-batch";
|
|
22969
22920
|
/** Date and time when the timeline event occurred. */
|
|
22970
22921
|
occurredTime: coreComponents["schemas"]["ServerTimestamp"];
|
|
22971
22922
|
/** Who or what triggered this event. */
|
|
@@ -23027,20 +22978,68 @@ export interface coreComponents {
|
|
|
23027
22978
|
*/
|
|
23028
22979
|
batchId: string;
|
|
23029
22980
|
};
|
|
22981
|
+
AddPayoutRequestBatchOperation: (
|
|
22982
|
+
| { [key: string]: any }
|
|
22983
|
+
| { [key: string]: any }
|
|
22984
|
+
) & {
|
|
22985
|
+
/** Type of operation that adds payout requests to the batch. */
|
|
22986
|
+
type: "add";
|
|
22987
|
+
/**
|
|
22988
|
+
* ID of the payout request batch.
|
|
22989
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
22990
|
+
*/
|
|
22991
|
+
batchId: string;
|
|
22992
|
+
/** IDs of the payout requests to add to the batch. */
|
|
22993
|
+
payoutRequestIds?: string[];
|
|
22994
|
+
/**
|
|
22995
|
+
* Filter string that selects payout requests to add to the batch.
|
|
22996
|
+
* This field uses the same format as filter parameters for collections.
|
|
22997
|
+
* Use semicolons to separate multiple filter conditions.
|
|
22998
|
+
*
|
|
22999
|
+
* Available fields for filtering: `id`, `status`, `websiteId`, `customerId`, `currency`, `amount`, `createdTime`, `updatedTime`.
|
|
23000
|
+
*
|
|
23001
|
+
* The operation ignores a `batchId` filter.
|
|
23002
|
+
* Filter results always exclude payout requests that are already associated with a batch.
|
|
23003
|
+
* If the filter matches more payout requests than the remaining batch capacity,
|
|
23004
|
+
* the operation adds only the oldest matching requests up to the batch limit,
|
|
23005
|
+
* sorted by creation time.
|
|
23006
|
+
*/
|
|
23007
|
+
filter?: string;
|
|
23008
|
+
};
|
|
23009
|
+
RemovePayoutRequestBatchOperation: {
|
|
23010
|
+
/** Type of operation that removes payout requests from the batch. */
|
|
23011
|
+
type: "remove";
|
|
23012
|
+
/**
|
|
23013
|
+
* ID of the payout request batch.
|
|
23014
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
23015
|
+
*/
|
|
23016
|
+
batchId: string;
|
|
23017
|
+
/** IDs of the payout requests to remove from the batch. */
|
|
23018
|
+
payoutRequestIds: string[];
|
|
23019
|
+
};
|
|
23030
23020
|
/** Action to apply to a payout request batch. */
|
|
23031
23021
|
PayoutRequestBatchOperationRequest:
|
|
23032
23022
|
| coreComponents["schemas"]["ApprovePayoutRequestBatchOperation"]
|
|
23033
23023
|
| coreComponents["schemas"]["BlockPayoutRequestBatchOperation"]
|
|
23034
23024
|
| coreComponents["schemas"]["UnblockPayoutRequestBatchOperation"]
|
|
23035
23025
|
| coreComponents["schemas"]["AutoAllocatePayoutRequestBatchOperation"]
|
|
23036
|
-
| coreComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
23026
|
+
| coreComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
23027
|
+
| coreComponents["schemas"]["AddPayoutRequestBatchOperation"]
|
|
23028
|
+
| coreComponents["schemas"]["RemovePayoutRequestBatchOperation"];
|
|
23037
23029
|
/**
|
|
23038
|
-
* Action applied to
|
|
23039
|
-
* A payout request batch
|
|
23030
|
+
* Action applied to a payout request batch.
|
|
23031
|
+
* A payout request batch is a group of payout requests that you manage together.
|
|
23040
23032
|
*/
|
|
23041
23033
|
PayoutRequestBatchOperation: {
|
|
23042
23034
|
/** Type of action applied to the batch. */
|
|
23043
|
-
type:
|
|
23035
|
+
type:
|
|
23036
|
+
| "approve"
|
|
23037
|
+
| "block"
|
|
23038
|
+
| "unblock"
|
|
23039
|
+
| "auto-allocate"
|
|
23040
|
+
| "process"
|
|
23041
|
+
| "add"
|
|
23042
|
+
| "remove";
|
|
23044
23043
|
/** ID of the payout request batch. */
|
|
23045
23044
|
batchId: string;
|
|
23046
23045
|
/**
|
|
@@ -43323,8 +43322,8 @@ export interface operations {
|
|
|
43323
43322
|
};
|
|
43324
43323
|
};
|
|
43325
43324
|
/**
|
|
43326
|
-
* Creates a payout request batch operation
|
|
43327
|
-
* A payout request batch
|
|
43325
|
+
* Creates a payout request batch operation that applies one action to a payout request batch.
|
|
43326
|
+
* A payout request batch is a group of payout requests that you manage together.
|
|
43328
43327
|
*
|
|
43329
43328
|
* The `type` field specifies the action:
|
|
43330
43329
|
* - `approve`: Approves payout requests in the `ready` status.
|
|
@@ -43332,8 +43331,14 @@ export interface operations {
|
|
|
43332
43331
|
* - `unblock`: Removes the block from blocked payout requests.
|
|
43333
43332
|
* - `auto-allocate`: Creates allocations automatically for payout requests that can be allocated.
|
|
43334
43333
|
* - `process`: Queues pending allocations of the payout requests in the batch for processing.
|
|
43334
|
+
* - `add`: Adds the specified payout requests, or the payout requests that match a filter, to the batch.
|
|
43335
|
+
* - `remove`: Removes the specified payout requests from the batch.
|
|
43335
43336
|
*
|
|
43336
|
-
*
|
|
43337
|
+
* A batch contains a maximum of 1000 payout requests.
|
|
43338
|
+
* For `add` and `remove`, the operation is atomic.
|
|
43339
|
+
* If the operation cannot add or remove a specified payout request,
|
|
43340
|
+
* the operation returns a `409` response and changes no batch membership.
|
|
43341
|
+
* For the other types, each payout request is checked independently.
|
|
43337
43342
|
* Payout requests that do not qualify for the action are skipped.
|
|
43338
43343
|
* For `process`, allocations that do not qualify are skipped, and allocations that qualify are queued together.
|
|
43339
43344
|
* If queueing fails, no allocation is queued and the operation returns an error.
|
|
@@ -43349,8 +43354,20 @@ export interface operations {
|
|
|
43349
43354
|
"application/json": coreComponents["schemas"]["PayoutRequestBatchOperation"];
|
|
43350
43355
|
};
|
|
43351
43356
|
};
|
|
43357
|
+
/** Invalid filter provided or no payout requests match the filter. */
|
|
43358
|
+
400: {
|
|
43359
|
+
content: {
|
|
43360
|
+
"application/json": coreComponents["schemas"]["Problem"];
|
|
43361
|
+
};
|
|
43362
|
+
};
|
|
43352
43363
|
401: coreComponents["responses"]["Unauthorized"];
|
|
43353
43364
|
403: coreComponents["responses"]["Forbidden"];
|
|
43365
|
+
/** Batch limit reached or would be exceeded by the request, a specified payout request is already associated with another batch, or a specified payout request is not associated with this batch. */
|
|
43366
|
+
409: {
|
|
43367
|
+
content: {
|
|
43368
|
+
"application/json": coreComponents["schemas"]["Conflict"];
|
|
43369
|
+
};
|
|
43370
|
+
};
|
|
43354
43371
|
422: coreComponents["responses"]["ValidationError"];
|
|
43355
43372
|
429: coreComponents["responses"]["TooManyRequests"];
|
|
43356
43373
|
};
|
|
@@ -43607,133 +43624,6 @@ export interface operations {
|
|
|
43607
43624
|
};
|
|
43608
43625
|
requestBody: coreComponents["requestBodies"]["PatchPayoutRequestBatch"];
|
|
43609
43626
|
};
|
|
43610
|
-
/**
|
|
43611
|
-
* Adds payout requests to a batch with a specified ID.
|
|
43612
|
-
* Accepts payout requests in any status, with or without allocations.
|
|
43613
|
-
* A batch contains a maximum of 1000 payout requests.
|
|
43614
|
-
*
|
|
43615
|
-
* Provide exactly one of the following fields:
|
|
43616
|
-
* - `payoutRequestIds` to add specific payout requests.
|
|
43617
|
-
* - `filter` to add payout requests that match the filter when the operation runs.
|
|
43618
|
-
*
|
|
43619
|
-
* If any explicitly specified payout request is already associated with a batch,
|
|
43620
|
-
* the operation returns a `409 Conflict` response.
|
|
43621
|
-
* Filter results exclude payout requests that are already associated with a batch.
|
|
43622
|
-
* If more payout requests match the filter than the batch can contain,
|
|
43623
|
-
* the operation adds only the oldest matching requests up to the batch limit,
|
|
43624
|
-
* sorted by creation time.
|
|
43625
|
-
* If adding explicitly specified payout requests would increase the batch to more than 1000 requests,
|
|
43626
|
-
* the operation returns a `409 Conflict` response.
|
|
43627
|
-
* If the batch has reached its payout request limit,
|
|
43628
|
-
* the operation returns a `409 Conflict` response for either selection method.
|
|
43629
|
-
* This operation is atomic. If a conflict occurs, the operation adds no payout requests to the batch.
|
|
43630
|
-
*/
|
|
43631
|
-
PostPayoutRequestsToBatch: {
|
|
43632
|
-
parameters: {
|
|
43633
|
-
path: {
|
|
43634
|
-
/** ID of the resource. */
|
|
43635
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
43636
|
-
};
|
|
43637
|
-
};
|
|
43638
|
-
responses: {
|
|
43639
|
-
/** Payout requests added to the batch. */
|
|
43640
|
-
200: {
|
|
43641
|
-
headers: {};
|
|
43642
|
-
content: {
|
|
43643
|
-
"application/json": coreComponents["schemas"]["PayoutRequestBatch"];
|
|
43644
|
-
};
|
|
43645
|
-
};
|
|
43646
|
-
/** Invalid filter provided or no payout requests match the filter. */
|
|
43647
|
-
400: {
|
|
43648
|
-
content: {
|
|
43649
|
-
"application/json": coreComponents["schemas"]["Problem"];
|
|
43650
|
-
};
|
|
43651
|
-
};
|
|
43652
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
43653
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
43654
|
-
404: coreComponents["responses"]["NotFound"];
|
|
43655
|
-
/** Batch limit reached or would be exceeded, or one or more explicitly specified payout requests are already associated with a batch. */
|
|
43656
|
-
409: {
|
|
43657
|
-
content: {
|
|
43658
|
-
"application/json": coreComponents["schemas"]["Conflict"];
|
|
43659
|
-
};
|
|
43660
|
-
};
|
|
43661
|
-
422: coreComponents["responses"]["ValidationError"];
|
|
43662
|
-
429: coreComponents["responses"]["TooManyRequests"];
|
|
43663
|
-
};
|
|
43664
|
-
/** Selection of payout requests to add to the batch. */
|
|
43665
|
-
requestBody: {
|
|
43666
|
-
content: {
|
|
43667
|
-
"application/json":
|
|
43668
|
-
| {
|
|
43669
|
-
/** IDs of the payout requests to add to the batch. */
|
|
43670
|
-
payoutRequestIds: string[];
|
|
43671
|
-
}
|
|
43672
|
-
| {
|
|
43673
|
-
/**
|
|
43674
|
-
* Filter string that selects payout requests to add to the batch.
|
|
43675
|
-
* This field uses the same format as filter parameters for collections.
|
|
43676
|
-
* Use semicolons to separate multiple filter conditions.
|
|
43677
|
-
*
|
|
43678
|
-
* Available fields for filtering: `id`, `status`, `websiteId`, `customerId`, `currency`, `amount`, `createdTime`, `updatedTime`.
|
|
43679
|
-
*
|
|
43680
|
-
* This operation ignores a `batchId` filter.
|
|
43681
|
-
* Filter results always exclude payout requests that are already associated with a batch.
|
|
43682
|
-
* If the filter matches more payout requests than the batch can contain,
|
|
43683
|
-
* the operation adds only the oldest matching requests up to the batch limit,
|
|
43684
|
-
* sorted by creation time.
|
|
43685
|
-
*/
|
|
43686
|
-
filter: string;
|
|
43687
|
-
};
|
|
43688
|
-
};
|
|
43689
|
-
};
|
|
43690
|
-
};
|
|
43691
|
-
/**
|
|
43692
|
-
* Removes specified payout requests from a batch with a specified ID by clearing `batchId` on each request.
|
|
43693
|
-
* This operation preserves each payout request, status, and blocked state.
|
|
43694
|
-
* Removes requests regardless of status or allocations.
|
|
43695
|
-
*
|
|
43696
|
-
* This operation is atomic.
|
|
43697
|
-
* If any payout request is not associated with the specified batch,
|
|
43698
|
-
* the operation clears no associations with the batch.
|
|
43699
|
-
*/
|
|
43700
|
-
PostRemovePayoutRequestsFromBatch: {
|
|
43701
|
-
parameters: {
|
|
43702
|
-
path: {
|
|
43703
|
-
/** ID of the resource. */
|
|
43704
|
-
id: coreComponents["parameters"]["resourceId"];
|
|
43705
|
-
};
|
|
43706
|
-
};
|
|
43707
|
-
responses: {
|
|
43708
|
-
/** Payout requests removed from the batch. */
|
|
43709
|
-
200: {
|
|
43710
|
-
headers: {};
|
|
43711
|
-
content: {
|
|
43712
|
-
"application/json": coreComponents["schemas"]["PayoutRequestBatch"];
|
|
43713
|
-
};
|
|
43714
|
-
};
|
|
43715
|
-
401: coreComponents["responses"]["Unauthorized"];
|
|
43716
|
-
403: coreComponents["responses"]["Forbidden"];
|
|
43717
|
-
404: coreComponents["responses"]["NotFound"];
|
|
43718
|
-
/** One or more payout requests are not associated with the specified batch. */
|
|
43719
|
-
409: {
|
|
43720
|
-
content: {
|
|
43721
|
-
"application/json": coreComponents["schemas"]["Conflict"];
|
|
43722
|
-
};
|
|
43723
|
-
};
|
|
43724
|
-
422: coreComponents["responses"]["ValidationError"];
|
|
43725
|
-
429: coreComponents["responses"]["TooManyRequests"];
|
|
43726
|
-
};
|
|
43727
|
-
/** Payout requests to remove from the batch. */
|
|
43728
|
-
requestBody: {
|
|
43729
|
-
content: {
|
|
43730
|
-
"application/json": {
|
|
43731
|
-
/** IDs of the payout requests to remove from the batch. */
|
|
43732
|
-
payoutRequestIds: string[];
|
|
43733
|
-
};
|
|
43734
|
-
};
|
|
43735
|
-
};
|
|
43736
|
-
};
|
|
43737
43627
|
/**
|
|
43738
43628
|
* Starts permissions emulation.
|
|
43739
43629
|
*
|
|
@@ -47524,7 +47414,8 @@ export interface storefrontComponents {
|
|
|
47524
47414
|
| "email-message"
|
|
47525
47415
|
| "dispute"
|
|
47526
47416
|
| "coupon"
|
|
47527
|
-
| "external"
|
|
47417
|
+
| "external"
|
|
47418
|
+
| "payout-request-batch";
|
|
47528
47419
|
resourceId?: storefrontComponents["schemas"]["ResourceId"];
|
|
47529
47420
|
placeholder?: string;
|
|
47530
47421
|
externalUrl?: string;
|
|
@@ -62767,7 +62658,9 @@ export interface storefrontComponents {
|
|
|
62767
62658
|
| "payout-request-canceled"
|
|
62768
62659
|
| "payout-request-reversed"
|
|
62769
62660
|
| "payout-request-blocked"
|
|
62770
|
-
| "payout-request-unblocked"
|
|
62661
|
+
| "payout-request-unblocked"
|
|
62662
|
+
| "payout-request-added-to-batch"
|
|
62663
|
+
| "payout-request-removed-from-batch";
|
|
62771
62664
|
/** Date and time when the timeline event occurred. */
|
|
62772
62665
|
occurredTime: storefrontComponents["schemas"]["ServerTimestamp"];
|
|
62773
62666
|
/** Who or what triggered this event. */
|
|
@@ -62829,20 +62722,68 @@ export interface storefrontComponents {
|
|
|
62829
62722
|
*/
|
|
62830
62723
|
batchId: string;
|
|
62831
62724
|
};
|
|
62725
|
+
AddPayoutRequestBatchOperation: (
|
|
62726
|
+
| { [key: string]: any }
|
|
62727
|
+
| { [key: string]: any }
|
|
62728
|
+
) & {
|
|
62729
|
+
/** Type of operation that adds payout requests to the batch. */
|
|
62730
|
+
type: "add";
|
|
62731
|
+
/**
|
|
62732
|
+
* ID of the payout request batch.
|
|
62733
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
62734
|
+
*/
|
|
62735
|
+
batchId: string;
|
|
62736
|
+
/** IDs of the payout requests to add to the batch. */
|
|
62737
|
+
payoutRequestIds?: string[];
|
|
62738
|
+
/**
|
|
62739
|
+
* Filter string that selects payout requests to add to the batch.
|
|
62740
|
+
* This field uses the same format as filter parameters for collections.
|
|
62741
|
+
* Use semicolons to separate multiple filter conditions.
|
|
62742
|
+
*
|
|
62743
|
+
* Available fields for filtering: `id`, `status`, `websiteId`, `customerId`, `currency`, `amount`, `createdTime`, `updatedTime`.
|
|
62744
|
+
*
|
|
62745
|
+
* The operation ignores a `batchId` filter.
|
|
62746
|
+
* Filter results always exclude payout requests that are already associated with a batch.
|
|
62747
|
+
* If the filter matches more payout requests than the remaining batch capacity,
|
|
62748
|
+
* the operation adds only the oldest matching requests up to the batch limit,
|
|
62749
|
+
* sorted by creation time.
|
|
62750
|
+
*/
|
|
62751
|
+
filter?: string;
|
|
62752
|
+
};
|
|
62753
|
+
RemovePayoutRequestBatchOperation: {
|
|
62754
|
+
/** Type of operation that removes payout requests from the batch. */
|
|
62755
|
+
type: "remove";
|
|
62756
|
+
/**
|
|
62757
|
+
* ID of the payout request batch.
|
|
62758
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
62759
|
+
*/
|
|
62760
|
+
batchId: string;
|
|
62761
|
+
/** IDs of the payout requests to remove from the batch. */
|
|
62762
|
+
payoutRequestIds: string[];
|
|
62763
|
+
};
|
|
62832
62764
|
/** Action to apply to a payout request batch. */
|
|
62833
62765
|
PayoutRequestBatchOperationRequest:
|
|
62834
62766
|
| storefrontComponents["schemas"]["ApprovePayoutRequestBatchOperation"]
|
|
62835
62767
|
| storefrontComponents["schemas"]["BlockPayoutRequestBatchOperation"]
|
|
62836
62768
|
| storefrontComponents["schemas"]["UnblockPayoutRequestBatchOperation"]
|
|
62837
62769
|
| storefrontComponents["schemas"]["AutoAllocatePayoutRequestBatchOperation"]
|
|
62838
|
-
| storefrontComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
62770
|
+
| storefrontComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
62771
|
+
| storefrontComponents["schemas"]["AddPayoutRequestBatchOperation"]
|
|
62772
|
+
| storefrontComponents["schemas"]["RemovePayoutRequestBatchOperation"];
|
|
62839
62773
|
/**
|
|
62840
|
-
* Action applied to
|
|
62841
|
-
* A payout request batch
|
|
62774
|
+
* Action applied to a payout request batch.
|
|
62775
|
+
* A payout request batch is a group of payout requests that you manage together.
|
|
62842
62776
|
*/
|
|
62843
62777
|
PayoutRequestBatchOperation: {
|
|
62844
62778
|
/** Type of action applied to the batch. */
|
|
62845
|
-
type:
|
|
62779
|
+
type:
|
|
62780
|
+
| "approve"
|
|
62781
|
+
| "block"
|
|
62782
|
+
| "unblock"
|
|
62783
|
+
| "auto-allocate"
|
|
62784
|
+
| "process"
|
|
62785
|
+
| "add"
|
|
62786
|
+
| "remove";
|
|
62846
62787
|
/** ID of the payout request batch. */
|
|
62847
62788
|
batchId: string;
|
|
62848
62789
|
/**
|
|
@@ -74611,7 +74552,8 @@ export interface reportsComponents {
|
|
|
74611
74552
|
| "email-message"
|
|
74612
74553
|
| "dispute"
|
|
74613
74554
|
| "coupon"
|
|
74614
|
-
| "external"
|
|
74555
|
+
| "external"
|
|
74556
|
+
| "payout-request-batch";
|
|
74615
74557
|
resourceId?: reportsComponents["schemas"]["ResourceId"];
|
|
74616
74558
|
placeholder?: string;
|
|
74617
74559
|
externalUrl?: string;
|
|
@@ -89854,7 +89796,9 @@ export interface reportsComponents {
|
|
|
89854
89796
|
| "payout-request-canceled"
|
|
89855
89797
|
| "payout-request-reversed"
|
|
89856
89798
|
| "payout-request-blocked"
|
|
89857
|
-
| "payout-request-unblocked"
|
|
89799
|
+
| "payout-request-unblocked"
|
|
89800
|
+
| "payout-request-added-to-batch"
|
|
89801
|
+
| "payout-request-removed-from-batch";
|
|
89858
89802
|
/** Date and time when the timeline event occurred. */
|
|
89859
89803
|
occurredTime: reportsComponents["schemas"]["ServerTimestamp"];
|
|
89860
89804
|
/** Who or what triggered this event. */
|
|
@@ -89916,20 +89860,68 @@ export interface reportsComponents {
|
|
|
89916
89860
|
*/
|
|
89917
89861
|
batchId: string;
|
|
89918
89862
|
};
|
|
89863
|
+
AddPayoutRequestBatchOperation: (
|
|
89864
|
+
| { [key: string]: any }
|
|
89865
|
+
| { [key: string]: any }
|
|
89866
|
+
) & {
|
|
89867
|
+
/** Type of operation that adds payout requests to the batch. */
|
|
89868
|
+
type: "add";
|
|
89869
|
+
/**
|
|
89870
|
+
* ID of the payout request batch.
|
|
89871
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
89872
|
+
*/
|
|
89873
|
+
batchId: string;
|
|
89874
|
+
/** IDs of the payout requests to add to the batch. */
|
|
89875
|
+
payoutRequestIds?: string[];
|
|
89876
|
+
/**
|
|
89877
|
+
* Filter string that selects payout requests to add to the batch.
|
|
89878
|
+
* This field uses the same format as filter parameters for collections.
|
|
89879
|
+
* Use semicolons to separate multiple filter conditions.
|
|
89880
|
+
*
|
|
89881
|
+
* Available fields for filtering: `id`, `status`, `websiteId`, `customerId`, `currency`, `amount`, `createdTime`, `updatedTime`.
|
|
89882
|
+
*
|
|
89883
|
+
* The operation ignores a `batchId` filter.
|
|
89884
|
+
* Filter results always exclude payout requests that are already associated with a batch.
|
|
89885
|
+
* If the filter matches more payout requests than the remaining batch capacity,
|
|
89886
|
+
* the operation adds only the oldest matching requests up to the batch limit,
|
|
89887
|
+
* sorted by creation time.
|
|
89888
|
+
*/
|
|
89889
|
+
filter?: string;
|
|
89890
|
+
};
|
|
89891
|
+
RemovePayoutRequestBatchOperation: {
|
|
89892
|
+
/** Type of operation that removes payout requests from the batch. */
|
|
89893
|
+
type: "remove";
|
|
89894
|
+
/**
|
|
89895
|
+
* ID of the payout request batch.
|
|
89896
|
+
* A payout request batch groups payout requests so one action applies to every request in the group.
|
|
89897
|
+
*/
|
|
89898
|
+
batchId: string;
|
|
89899
|
+
/** IDs of the payout requests to remove from the batch. */
|
|
89900
|
+
payoutRequestIds: string[];
|
|
89901
|
+
};
|
|
89919
89902
|
/** Action to apply to a payout request batch. */
|
|
89920
89903
|
PayoutRequestBatchOperationRequest:
|
|
89921
89904
|
| reportsComponents["schemas"]["ApprovePayoutRequestBatchOperation"]
|
|
89922
89905
|
| reportsComponents["schemas"]["BlockPayoutRequestBatchOperation"]
|
|
89923
89906
|
| reportsComponents["schemas"]["UnblockPayoutRequestBatchOperation"]
|
|
89924
89907
|
| reportsComponents["schemas"]["AutoAllocatePayoutRequestBatchOperation"]
|
|
89925
|
-
| reportsComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
89908
|
+
| reportsComponents["schemas"]["ProcessPayoutRequestBatchOperation"]
|
|
89909
|
+
| reportsComponents["schemas"]["AddPayoutRequestBatchOperation"]
|
|
89910
|
+
| reportsComponents["schemas"]["RemovePayoutRequestBatchOperation"];
|
|
89926
89911
|
/**
|
|
89927
|
-
* Action applied to
|
|
89928
|
-
* A payout request batch
|
|
89912
|
+
* Action applied to a payout request batch.
|
|
89913
|
+
* A payout request batch is a group of payout requests that you manage together.
|
|
89929
89914
|
*/
|
|
89930
89915
|
PayoutRequestBatchOperation: {
|
|
89931
89916
|
/** Type of action applied to the batch. */
|
|
89932
|
-
type:
|
|
89917
|
+
type:
|
|
89918
|
+
| "approve"
|
|
89919
|
+
| "block"
|
|
89920
|
+
| "unblock"
|
|
89921
|
+
| "auto-allocate"
|
|
89922
|
+
| "process"
|
|
89923
|
+
| "add"
|
|
89924
|
+
| "remove";
|
|
89933
89925
|
/** ID of the payout request batch. */
|
|
89934
89926
|
batchId: string;
|
|
89935
89927
|
/**
|
|
@@ -100929,14 +100921,6 @@ declare module "rebilly-js-sdk" {
|
|
|
100929
100921
|
export type PatchPayoutRequestBatchResponsePromise = rebilly.PatchPayoutRequestBatchResponsePromise;
|
|
100930
100922
|
export type DeletePayoutRequestBatchResponse = rebilly.DeletePayoutRequestBatchResponse;
|
|
100931
100923
|
export type DeletePayoutRequestBatchResponsePromise = rebilly.DeletePayoutRequestBatchResponsePromise;
|
|
100932
|
-
export type PostPayoutRequestsToBatchRequest = rebilly.PostPayoutRequestsToBatchRequest;
|
|
100933
|
-
export type CreatePayoutRequestsToBatchRequest = rebilly.CreatePayoutRequestsToBatchRequest;
|
|
100934
|
-
export type PostPayoutRequestsToBatchResponse = rebilly.PostPayoutRequestsToBatchResponse;
|
|
100935
|
-
export type PostPayoutRequestsToBatchResponsePromise = rebilly.PostPayoutRequestsToBatchResponsePromise;
|
|
100936
|
-
export type PostRemovePayoutRequestsFromBatchRequest = rebilly.PostRemovePayoutRequestsFromBatchRequest;
|
|
100937
|
-
export type CreateRemovePayoutRequestsFromBatchRequest = rebilly.CreateRemovePayoutRequestsFromBatchRequest;
|
|
100938
|
-
export type PostRemovePayoutRequestsFromBatchResponse = rebilly.PostRemovePayoutRequestsFromBatchResponse;
|
|
100939
|
-
export type PostRemovePayoutRequestsFromBatchResponsePromise = rebilly.PostRemovePayoutRequestsFromBatchResponsePromise;
|
|
100940
100924
|
export type PostPermissionsEmulationRequest = rebilly.PostPermissionsEmulationRequest;
|
|
100941
100925
|
export type CreatePermissionsEmulationRequest = rebilly.CreatePermissionsEmulationRequest;
|
|
100942
100926
|
export type PostPermissionsEmulationResponse = rebilly.PostPermissionsEmulationResponse;
|
|
@@ -102959,14 +102943,6 @@ declare module "resources/payout-request-batches-resource" {
|
|
|
102959
102943
|
id: any;
|
|
102960
102944
|
data: any;
|
|
102961
102945
|
}): any;
|
|
102962
|
-
addPayoutRequests({ id, data }: {
|
|
102963
|
-
id: any;
|
|
102964
|
-
data: any;
|
|
102965
|
-
}): any;
|
|
102966
|
-
removePayoutRequests({ id, data }: {
|
|
102967
|
-
id: any;
|
|
102968
|
-
data: any;
|
|
102969
|
-
}): any;
|
|
102970
102946
|
};
|
|
102971
102947
|
}
|
|
102972
102948
|
declare module "resources/payout-request-splits-resource" {
|
|
@@ -104737,14 +104713,6 @@ declare module "resources/api-instance" {
|
|
|
104737
104713
|
id: any;
|
|
104738
104714
|
data: any;
|
|
104739
104715
|
}): any;
|
|
104740
|
-
addPayoutRequests({ id, data }: {
|
|
104741
|
-
id: any;
|
|
104742
|
-
data: any;
|
|
104743
|
-
}): any;
|
|
104744
|
-
removePayoutRequests({ id, data }: {
|
|
104745
|
-
id: any;
|
|
104746
|
-
data: any;
|
|
104747
|
-
}): any;
|
|
104748
104716
|
};
|
|
104749
104717
|
payoutRequestSplits: {
|
|
104750
104718
|
create({ data }: {
|