rebilly-js-sdk 62.146.0 → 62.147.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 CHANGED
@@ -1,6 +1,6 @@
1
- ## [62.146.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v62.145.4...rebilly-js-sdk-v62.146.0) (2026-07-16)
1
+ ## [62.147.0](https://github.com/Rebilly/rebilly/compare/rebilly-js-sdk-v62.146.0...rebilly-js-sdk-v62.147.0) (2026-07-17)
2
2
 
3
3
 
4
4
  ### Features
5
5
 
6
- * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23725](https://github.com/Rebilly/rebilly/issues/23725)) ([21eab27](https://github.com/Rebilly/rebilly/commit/21eab277d79cbc412d7e04f5f6a66bd8507743ab))
6
+ * **api-metadata, rebilly-js-sdk:** Update resources based on latest api definitions ([#23726](https://github.com/Rebilly/rebilly/issues/23726)) ([bb68948](https://github.com/Rebilly/rebilly/commit/bb68948682298f022ed4c50e1c5fa193488d7da8))
@@ -1772,6 +1772,8 @@ declare namespace rebilly {
1772
1772
  type PatchPayoutRequestBatchRequest = operations['PatchPayoutRequestBatch']['requestBody']['content']['application/json']
1773
1773
  type PatchPayoutRequestBatchResponse = operations['PatchPayoutRequestBatch']['responses']['200']['content']['application/json']
1774
1774
  type PatchPayoutRequestBatchResponsePromise = Promise<{fields: PatchPayoutRequestBatchResponse}>
1775
+ type DeletePayoutRequestBatchResponse = operations['DeletePayoutRequestBatch']['responses']['204']
1776
+ type DeletePayoutRequestBatchResponsePromise = Promise<{fields: DeletePayoutRequestBatchResponse}>
1775
1777
 
1776
1778
  type PostPayoutRequestBatchAutoAllocateResponse = operations['PostPayoutRequestBatchAutoAllocate']['responses']['200']['content']['application/json']
1777
1779
  type PostPayoutRequestBatchAutoAllocateResponsePromise = Promise<{fields: PostPayoutRequestBatchAutoAllocateResponse}>
@@ -1784,6 +1786,19 @@ declare namespace rebilly {
1784
1786
  type PostPayoutRequestBatchBlockResponse = operations['PostPayoutRequestBatchBlock']['responses']['200']['content']['application/json']
1785
1787
  type PostPayoutRequestBatchBlockResponsePromise = Promise<{fields: PostPayoutRequestBatchBlockResponse}>
1786
1788
 
1789
+ type PostPayoutRequestsToBatchRequest = operations['PostPayoutRequestsToBatch']['requestBody']['content']['application/json']
1790
+ type CreatePayoutRequestsToBatchRequest = { id?: string, data: PostPayoutRequestsToBatchRequest, expand?: string }
1791
+ type PostPayoutRequestsToBatchResponse = operations['PostPayoutRequestsToBatch']['responses']['200']['content']['application/json']
1792
+ type PostPayoutRequestsToBatchResponsePromise = Promise<{fields: PostPayoutRequestsToBatchResponse}>
1793
+
1794
+ type PostRemovePayoutRequestsFromBatchRequest = operations['PostRemovePayoutRequestsFromBatch']['requestBody']['content']['application/json']
1795
+ type CreateRemovePayoutRequestsFromBatchRequest = { id?: string, data: PostRemovePayoutRequestsFromBatchRequest, expand?: string }
1796
+ type PostRemovePayoutRequestsFromBatchResponse = operations['PostRemovePayoutRequestsFromBatch']['responses']['200']['content']['application/json']
1797
+ type PostRemovePayoutRequestsFromBatchResponsePromise = Promise<{fields: PostRemovePayoutRequestsFromBatchResponse}>
1798
+
1799
+ type PostPayoutRequestBatchUnblockResponse = operations['PostPayoutRequestBatchUnblock']['responses']['200']['content']['application/json']
1800
+ type PostPayoutRequestBatchUnblockResponsePromise = Promise<{fields: PostPayoutRequestBatchUnblockResponse}>
1801
+
1787
1802
  type GetPayoutRequestBatchPreviewRequest = operations['GetPayoutRequestBatchPreview']['parameters']
1788
1803
 
1789
1804
  type GetPayoutRequestBatchPreviewResponse = operations['GetPayoutRequestBatchPreview']['responses']['200']['content']['application/json']
@@ -5544,6 +5559,12 @@ export interface corePaths {
5544
5559
  "/payout-request-batches/{id}": {
5545
5560
  /** Retrieves a payout request batch with a specified ID. */
5546
5561
  get: operations["GetPayoutRequestBatch"];
5562
+ /**
5563
+ * Deletes a payout request batch with a specified ID and clears the `batchId` field from every payout request in the batch.
5564
+ * This operation preserves every payout request, status, and blocked state.
5565
+ * This operation is atomic. It clears all `batchId` fields or leaves them all unchanged.
5566
+ */
5567
+ delete: operations["DeletePayoutRequestBatch"];
5547
5568
  /**
5548
5569
  * Partially updates a payout request batch with a specified ID.
5549
5570
  * Use this operation to update the description and allocation order.
@@ -5599,6 +5620,69 @@ export interface corePaths {
5599
5620
  };
5600
5621
  };
5601
5622
  };
5623
+ "/payout-request-batches/{id}/payout-requests": {
5624
+ /**
5625
+ * Adds payout requests to a batch with a specified ID.
5626
+ * Accepts payout requests in any status, with or without allocations.
5627
+ * A batch contains a maximum of 1000 payout requests.
5628
+ *
5629
+ * Provide exactly one of the following fields:
5630
+ * - `payoutRequestIds` to add specific payout requests.
5631
+ * - `filter` to add payout requests that match the filter when the operation runs.
5632
+ *
5633
+ * If any explicitly specified payout request is already associated with a batch,
5634
+ * the operation returns a `409 Conflict` response.
5635
+ * Filter results exclude payout requests that are already associated with a batch.
5636
+ * If more payout requests match the filter than the batch can contain,
5637
+ * the operation adds only the oldest matching requests up to the batch limit,
5638
+ * sorted by creation time.
5639
+ * If adding explicitly specified payout requests would increase the batch to more than 1000 requests,
5640
+ * the operation returns a `409 Conflict` response.
5641
+ * If the batch has reached its payout request limit,
5642
+ * the operation returns a `409 Conflict` response for either selection method.
5643
+ * This operation is atomic. If a conflict occurs, the operation adds no payout requests to the batch.
5644
+ */
5645
+ post: operations["PostPayoutRequestsToBatch"];
5646
+ parameters: {
5647
+ path: {
5648
+ /** ID of the resource. */
5649
+ id: coreComponents["parameters"]["resourceId"];
5650
+ };
5651
+ };
5652
+ };
5653
+ "/payout-request-batches/{id}/payout-requests/remove": {
5654
+ /**
5655
+ * Removes specified payout requests from a batch with a specified ID by clearing `batchId` on each request.
5656
+ * This operation preserves each payout request, status, and blocked state.
5657
+ * Removes requests regardless of status or allocations.
5658
+ *
5659
+ * This operation is atomic.
5660
+ * If any payout request is not associated with the specified batch,
5661
+ * the operation clears no associations with the batch.
5662
+ */
5663
+ post: operations["PostRemovePayoutRequestsFromBatch"];
5664
+ parameters: {
5665
+ path: {
5666
+ /** ID of the resource. */
5667
+ id: coreComponents["parameters"]["resourceId"];
5668
+ };
5669
+ };
5670
+ };
5671
+ "/payout-request-batches/{id}/unblock": {
5672
+ /**
5673
+ * Unblocks every blocked payout request in a batch with a specified ID.
5674
+ * Leaves payout requests without a block unchanged.
5675
+ * Processes all requests in the batch, up to the 1000-request batch limit, without changing batch membership.
5676
+ * This operation is atomic.
5677
+ */
5678
+ post: operations["PostPayoutRequestBatchUnblock"];
5679
+ parameters: {
5680
+ path: {
5681
+ /** ID of the resource. */
5682
+ id: coreComponents["parameters"]["resourceId"];
5683
+ };
5684
+ };
5685
+ };
5602
5686
  "/payout-request-batches/preview": {
5603
5687
  /**
5604
5688
  * Retrieves aggregate information for the payout requests that match a specified filter.
@@ -22656,10 +22740,6 @@ export interface coreComponents {
22656
22740
  userId?: string;
22657
22741
  /** Total number of payout requests in the batch. */
22658
22742
  totalCount?: number;
22659
- /** Number of payout requests successfully processed. */
22660
- successCount?: number;
22661
- /** Number of payout requests that failed to process. */
22662
- failureCount?: number;
22663
22743
  /** Number of unique customers in the batch. */
22664
22744
  customerCount?: number;
22665
22745
  /** Total payout amount grouped by currency in the batch. */
@@ -42276,6 +42356,27 @@ export interface operations {
42276
42356
  429: coreComponents["responses"]["TooManyRequests"];
42277
42357
  };
42278
42358
  };
42359
+ /**
42360
+ * Deletes a payout request batch with a specified ID and clears the `batchId` field from every payout request in the batch.
42361
+ * This operation preserves every payout request, status, and blocked state.
42362
+ * This operation is atomic. It clears all `batchId` fields or leaves them all unchanged.
42363
+ */
42364
+ DeletePayoutRequestBatch: {
42365
+ parameters: {
42366
+ path: {
42367
+ /** ID of the resource. */
42368
+ id: coreComponents["parameters"]["resourceId"];
42369
+ };
42370
+ };
42371
+ responses: {
42372
+ /** Payout request batch deleted. */
42373
+ 204: never;
42374
+ 401: coreComponents["responses"]["Unauthorized"];
42375
+ 403: coreComponents["responses"]["Forbidden"];
42376
+ 404: coreComponents["responses"]["NotFound"];
42377
+ 429: coreComponents["responses"]["TooManyRequests"];
42378
+ };
42379
+ };
42279
42380
  /**
42280
42381
  * Partially updates a payout request batch with a specified ID.
42281
42382
  * Use this operation to update the description and allocation order.
@@ -42397,6 +42498,160 @@ export interface operations {
42397
42498
  };
42398
42499
  };
42399
42500
  };
42501
+ /**
42502
+ * Adds payout requests to a batch with a specified ID.
42503
+ * Accepts payout requests in any status, with or without allocations.
42504
+ * A batch contains a maximum of 1000 payout requests.
42505
+ *
42506
+ * Provide exactly one of the following fields:
42507
+ * - `payoutRequestIds` to add specific payout requests.
42508
+ * - `filter` to add payout requests that match the filter when the operation runs.
42509
+ *
42510
+ * If any explicitly specified payout request is already associated with a batch,
42511
+ * the operation returns a `409 Conflict` response.
42512
+ * Filter results exclude payout requests that are already associated with a batch.
42513
+ * If more payout requests match the filter than the batch can contain,
42514
+ * the operation adds only the oldest matching requests up to the batch limit,
42515
+ * sorted by creation time.
42516
+ * If adding explicitly specified payout requests would increase the batch to more than 1000 requests,
42517
+ * the operation returns a `409 Conflict` response.
42518
+ * If the batch has reached its payout request limit,
42519
+ * the operation returns a `409 Conflict` response for either selection method.
42520
+ * This operation is atomic. If a conflict occurs, the operation adds no payout requests to the batch.
42521
+ */
42522
+ PostPayoutRequestsToBatch: {
42523
+ parameters: {
42524
+ path: {
42525
+ /** ID of the resource. */
42526
+ id: coreComponents["parameters"]["resourceId"];
42527
+ };
42528
+ };
42529
+ responses: {
42530
+ /** Payout requests added to the batch. */
42531
+ 200: {
42532
+ headers: {};
42533
+ content: {
42534
+ "application/json": coreComponents["schemas"]["PayoutRequestBatch"];
42535
+ };
42536
+ };
42537
+ /** Invalid filter provided or no payout requests match the filter. */
42538
+ 400: {
42539
+ content: {
42540
+ "application/json": coreComponents["schemas"]["Problem"];
42541
+ };
42542
+ };
42543
+ 401: coreComponents["responses"]["Unauthorized"];
42544
+ 403: coreComponents["responses"]["Forbidden"];
42545
+ 404: coreComponents["responses"]["NotFound"];
42546
+ /** Batch limit reached or would be exceeded, or one or more explicitly specified payout requests are already associated with a batch. */
42547
+ 409: {
42548
+ content: {
42549
+ "application/json": coreComponents["schemas"]["Conflict"];
42550
+ };
42551
+ };
42552
+ 422: coreComponents["responses"]["ValidationError"];
42553
+ 429: coreComponents["responses"]["TooManyRequests"];
42554
+ };
42555
+ /** Selection of payout requests to add to the batch. */
42556
+ requestBody: {
42557
+ content: {
42558
+ "application/json":
42559
+ | {
42560
+ /** IDs of the payout requests to add to the batch. */
42561
+ payoutRequestIds: string[];
42562
+ }
42563
+ | {
42564
+ /**
42565
+ * Filter string that selects payout requests to add to the batch.
42566
+ * This field uses the same format as filter parameters for collections.
42567
+ * Use semicolons to separate multiple filter conditions.
42568
+ *
42569
+ * Available fields for filtering: `id`, `status`, `websiteId`, `customerId`, `currency`, `amount`, `createdTime`, `updatedTime`.
42570
+ *
42571
+ * This operation ignores a `batchId` filter.
42572
+ * Filter results always exclude payout requests that are already associated with a batch.
42573
+ * If the filter matches more payout requests than the batch can contain,
42574
+ * the operation adds only the oldest matching requests up to the batch limit,
42575
+ * sorted by creation time.
42576
+ */
42577
+ filter: string;
42578
+ };
42579
+ };
42580
+ };
42581
+ };
42582
+ /**
42583
+ * Removes specified payout requests from a batch with a specified ID by clearing `batchId` on each request.
42584
+ * This operation preserves each payout request, status, and blocked state.
42585
+ * Removes requests regardless of status or allocations.
42586
+ *
42587
+ * This operation is atomic.
42588
+ * If any payout request is not associated with the specified batch,
42589
+ * the operation clears no associations with the batch.
42590
+ */
42591
+ PostRemovePayoutRequestsFromBatch: {
42592
+ parameters: {
42593
+ path: {
42594
+ /** ID of the resource. */
42595
+ id: coreComponents["parameters"]["resourceId"];
42596
+ };
42597
+ };
42598
+ responses: {
42599
+ /** Payout requests removed from the batch. */
42600
+ 200: {
42601
+ headers: {};
42602
+ content: {
42603
+ "application/json": coreComponents["schemas"]["PayoutRequestBatch"];
42604
+ };
42605
+ };
42606
+ 401: coreComponents["responses"]["Unauthorized"];
42607
+ 403: coreComponents["responses"]["Forbidden"];
42608
+ 404: coreComponents["responses"]["NotFound"];
42609
+ /** One or more payout requests are not associated with the specified batch. */
42610
+ 409: {
42611
+ content: {
42612
+ "application/json": coreComponents["schemas"]["Conflict"];
42613
+ };
42614
+ };
42615
+ 422: coreComponents["responses"]["ValidationError"];
42616
+ 429: coreComponents["responses"]["TooManyRequests"];
42617
+ };
42618
+ /** Payout requests to remove from the batch. */
42619
+ requestBody: {
42620
+ content: {
42621
+ "application/json": {
42622
+ /** IDs of the payout requests to remove from the batch. */
42623
+ payoutRequestIds: string[];
42624
+ };
42625
+ };
42626
+ };
42627
+ };
42628
+ /**
42629
+ * Unblocks every blocked payout request in a batch with a specified ID.
42630
+ * Leaves payout requests without a block unchanged.
42631
+ * Processes all requests in the batch, up to the 1000-request batch limit, without changing batch membership.
42632
+ * This operation is atomic.
42633
+ */
42634
+ PostPayoutRequestBatchUnblock: {
42635
+ parameters: {
42636
+ path: {
42637
+ /** ID of the resource. */
42638
+ id: coreComponents["parameters"]["resourceId"];
42639
+ };
42640
+ };
42641
+ responses: {
42642
+ /** Payout requests in the batch unblocked. */
42643
+ 200: {
42644
+ headers: {};
42645
+ content: {
42646
+ "application/json": coreComponents["schemas"]["PayoutRequestBatch"];
42647
+ };
42648
+ };
42649
+ 401: coreComponents["responses"]["Unauthorized"];
42650
+ 403: coreComponents["responses"]["Forbidden"];
42651
+ 404: coreComponents["responses"]["NotFound"];
42652
+ 429: coreComponents["responses"]["TooManyRequests"];
42653
+ };
42654
+ };
42400
42655
  /**
42401
42656
  * Retrieves aggregate information for the payout requests that match a specified filter.
42402
42657
  *
@@ -61205,10 +61460,6 @@ export interface storefrontComponents {
61205
61460
  userId?: string;
61206
61461
  /** Total number of payout requests in the batch. */
61207
61462
  totalCount?: number;
61208
- /** Number of payout requests successfully processed. */
61209
- successCount?: number;
61210
- /** Number of payout requests that failed to process. */
61211
- failureCount?: number;
61212
61463
  /** Number of unique customers in the batch. */
61213
61464
  customerCount?: number;
61214
61465
  /** Total payout amount grouped by currency in the batch. */
@@ -87207,10 +87458,6 @@ export interface reportsComponents {
87207
87458
  userId?: string;
87208
87459
  /** Total number of payout requests in the batch. */
87209
87460
  totalCount?: number;
87210
- /** Number of payout requests successfully processed. */
87211
- successCount?: number;
87212
- /** Number of payout requests that failed to process. */
87213
- failureCount?: number;
87214
87461
  /** Number of unique customers in the batch. */
87215
87462
  customerCount?: number;
87216
87463
  /** Total payout amount grouped by currency in the batch. */
@@ -97461,6 +97708,8 @@ declare module "rebilly-js-sdk" {
97461
97708
  export type PatchPayoutRequestBatchRequest = rebilly.PatchPayoutRequestBatchRequest;
97462
97709
  export type PatchPayoutRequestBatchResponse = rebilly.PatchPayoutRequestBatchResponse;
97463
97710
  export type PatchPayoutRequestBatchResponsePromise = rebilly.PatchPayoutRequestBatchResponsePromise;
97711
+ export type DeletePayoutRequestBatchResponse = rebilly.DeletePayoutRequestBatchResponse;
97712
+ export type DeletePayoutRequestBatchResponsePromise = rebilly.DeletePayoutRequestBatchResponsePromise;
97464
97713
  export type PostPayoutRequestBatchAutoAllocateResponse = rebilly.PostPayoutRequestBatchAutoAllocateResponse;
97465
97714
  export type PostPayoutRequestBatchAutoAllocateResponsePromise = rebilly.PostPayoutRequestBatchAutoAllocateResponsePromise;
97466
97715
  export type PostPayoutRequestBatchApproveResponse = rebilly.PostPayoutRequestBatchApproveResponse;
@@ -97469,6 +97718,16 @@ declare module "rebilly-js-sdk" {
97469
97718
  export type CreatePayoutRequestBatchBlockRequest = rebilly.CreatePayoutRequestBatchBlockRequest;
97470
97719
  export type PostPayoutRequestBatchBlockResponse = rebilly.PostPayoutRequestBatchBlockResponse;
97471
97720
  export type PostPayoutRequestBatchBlockResponsePromise = rebilly.PostPayoutRequestBatchBlockResponsePromise;
97721
+ export type PostPayoutRequestsToBatchRequest = rebilly.PostPayoutRequestsToBatchRequest;
97722
+ export type CreatePayoutRequestsToBatchRequest = rebilly.CreatePayoutRequestsToBatchRequest;
97723
+ export type PostPayoutRequestsToBatchResponse = rebilly.PostPayoutRequestsToBatchResponse;
97724
+ export type PostPayoutRequestsToBatchResponsePromise = rebilly.PostPayoutRequestsToBatchResponsePromise;
97725
+ export type PostRemovePayoutRequestsFromBatchRequest = rebilly.PostRemovePayoutRequestsFromBatchRequest;
97726
+ export type CreateRemovePayoutRequestsFromBatchRequest = rebilly.CreateRemovePayoutRequestsFromBatchRequest;
97727
+ export type PostRemovePayoutRequestsFromBatchResponse = rebilly.PostRemovePayoutRequestsFromBatchResponse;
97728
+ export type PostRemovePayoutRequestsFromBatchResponsePromise = rebilly.PostRemovePayoutRequestsFromBatchResponsePromise;
97729
+ export type PostPayoutRequestBatchUnblockResponse = rebilly.PostPayoutRequestBatchUnblockResponse;
97730
+ export type PostPayoutRequestBatchUnblockResponsePromise = rebilly.PostPayoutRequestBatchUnblockResponsePromise;
97472
97731
  export type GetPayoutRequestBatchPreviewRequest = rebilly.GetPayoutRequestBatchPreviewRequest;
97473
97732
  export type GetPayoutRequestBatchPreviewResponse = rebilly.GetPayoutRequestBatchPreviewResponse;
97474
97733
  export type GetPayoutRequestBatchPreviewResponsePromise = rebilly.GetPayoutRequestBatchPreviewResponsePromise;
@@ -99505,6 +99764,9 @@ declare module "resources/payout-request-batches-resource" {
99505
99764
  get({ id }: {
99506
99765
  id: any;
99507
99766
  }): rebilly.GetPayoutRequestBatchResponsePromise;
99767
+ delete({ id }: {
99768
+ id: any;
99769
+ }): any;
99508
99770
  patch({ id, data }: {
99509
99771
  id: any;
99510
99772
  data: any;
@@ -99519,6 +99781,17 @@ declare module "resources/payout-request-batches-resource" {
99519
99781
  id: any;
99520
99782
  data: any;
99521
99783
  }): any;
99784
+ addPayoutRequests({ id, data }: {
99785
+ id: any;
99786
+ data: any;
99787
+ }): any;
99788
+ removePayoutRequests({ id, data }: {
99789
+ id: any;
99790
+ data: any;
99791
+ }): any;
99792
+ unblock({ id }: {
99793
+ id: any;
99794
+ }): any;
99522
99795
  preview({ filter }: {
99523
99796
  filter?: any;
99524
99797
  }): rebilly.GetPayoutRequestBatchPreviewResponsePromise;
@@ -101293,6 +101566,9 @@ declare module "resources/api-instance" {
101293
101566
  get({ id }: {
101294
101567
  id: any;
101295
101568
  }): rebilly.GetPayoutRequestBatchResponsePromise;
101569
+ delete({ id }: {
101570
+ id: any;
101571
+ }): any;
101296
101572
  patch({ id, data }: {
101297
101573
  id: any;
101298
101574
  data: any;
@@ -101307,6 +101583,17 @@ declare module "resources/api-instance" {
101307
101583
  id: any;
101308
101584
  data: any;
101309
101585
  }): any;
101586
+ addPayoutRequests({ id, data }: {
101587
+ id: any;
101588
+ data: any;
101589
+ }): any;
101590
+ removePayoutRequests({ id, data }: {
101591
+ id: any;
101592
+ data: any;
101593
+ }): any;
101594
+ unblock({ id }: {
101595
+ id: any;
101596
+ }): any;
101310
101597
  preview({ filter }: {
101311
101598
  filter?: any;
101312
101599
  }): rebilly.GetPayoutRequestBatchPreviewResponsePromise;