mollie-api-typescript 1.6.10 → 1.7.1

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.
Files changed (195) hide show
  1. package/README.md +11 -0
  2. package/dist/commonjs/funcs/payoutsCancel.d.ts +22 -0
  3. package/dist/commonjs/funcs/payoutsCancel.d.ts.map +1 -0
  4. package/dist/commonjs/funcs/payoutsCancel.js +147 -0
  5. package/dist/commonjs/funcs/payoutsCancel.js.map +1 -0
  6. package/dist/commonjs/funcs/payoutsCreate.d.ts +54 -0
  7. package/dist/commonjs/funcs/payoutsCreate.d.ts.map +1 -0
  8. package/dist/commonjs/funcs/payoutsCreate.js +174 -0
  9. package/dist/commonjs/funcs/payoutsCreate.js.map +1 -0
  10. package/dist/commonjs/funcs/payoutsGet.d.ts +19 -0
  11. package/dist/commonjs/funcs/payoutsGet.d.ts.map +1 -0
  12. package/dist/commonjs/funcs/payoutsGet.js +144 -0
  13. package/dist/commonjs/funcs/payoutsGet.js.map +1 -0
  14. package/dist/commonjs/funcs/payoutsList.d.ts +29 -0
  15. package/dist/commonjs/funcs/payoutsList.d.ts.map +1 -0
  16. package/dist/commonjs/funcs/payoutsList.js +182 -0
  17. package/dist/commonjs/funcs/payoutsList.js.map +1 -0
  18. package/dist/commonjs/hooks/mollie-auth-utils.js +1 -1
  19. package/dist/commonjs/hooks/mollie-auth-utils.js.map +1 -1
  20. package/dist/commonjs/lib/config.d.ts +2 -2
  21. package/dist/commonjs/lib/config.js +2 -2
  22. package/dist/commonjs/lib/config.js.map +1 -1
  23. package/dist/commonjs/models/entitypayoutresponse.d.ts +102 -0
  24. package/dist/commonjs/models/entitypayoutresponse.d.ts.map +1 -0
  25. package/dist/commonjs/models/entitypayoutresponse.js +82 -0
  26. package/dist/commonjs/models/entitypayoutresponse.js.map +1 -0
  27. package/dist/commonjs/models/entitywebhookevent.d.ts +8 -2
  28. package/dist/commonjs/models/entitywebhookevent.d.ts.map +1 -1
  29. package/dist/commonjs/models/entitywebhookevent.js +8 -0
  30. package/dist/commonjs/models/entitywebhookevent.js.map +1 -1
  31. package/dist/commonjs/models/index.d.ts +6 -0
  32. package/dist/commonjs/models/index.d.ts.map +1 -1
  33. package/dist/commonjs/models/index.js +6 -0
  34. package/dist/commonjs/models/index.js.map +1 -1
  35. package/dist/commonjs/models/listentitypayout.d.ts +98 -0
  36. package/dist/commonjs/models/listentitypayout.d.ts.map +1 -0
  37. package/dist/commonjs/models/listentitypayout.js +81 -0
  38. package/dist/commonjs/models/listentitypayout.js.map +1 -0
  39. package/dist/commonjs/models/operations/cancelpayout.d.ts +43 -0
  40. package/dist/commonjs/models/operations/cancelpayout.d.ts.map +1 -0
  41. package/dist/commonjs/models/operations/cancelpayout.js +57 -0
  42. package/dist/commonjs/models/operations/cancelpayout.js.map +1 -0
  43. package/dist/commonjs/models/operations/createpayout.d.ts +41 -0
  44. package/dist/commonjs/models/operations/createpayout.d.ts.map +1 -0
  45. package/dist/commonjs/models/operations/createpayout.js +59 -0
  46. package/dist/commonjs/models/operations/createpayout.js.map +1 -0
  47. package/dist/commonjs/models/operations/getpayout.d.ts +43 -0
  48. package/dist/commonjs/models/operations/getpayout.d.ts.map +1 -0
  49. package/dist/commonjs/models/operations/getpayout.js +57 -0
  50. package/dist/commonjs/models/operations/getpayout.js.map +1 -0
  51. package/dist/commonjs/models/operations/index.d.ts +4 -0
  52. package/dist/commonjs/models/operations/index.d.ts.map +1 -1
  53. package/dist/commonjs/models/operations/index.js +4 -0
  54. package/dist/commonjs/models/operations/index.js.map +1 -1
  55. package/dist/commonjs/models/operations/listpayouts.d.ts +114 -0
  56. package/dist/commonjs/models/operations/listpayouts.d.ts.map +1 -0
  57. package/dist/commonjs/models/operations/listpayouts.js +97 -0
  58. package/dist/commonjs/models/operations/listpayouts.js.map +1 -0
  59. package/dist/commonjs/models/payoutrequest.d.ts +45 -0
  60. package/dist/commonjs/models/payoutrequest.d.ts.map +1 -0
  61. package/dist/commonjs/models/payoutrequest.js +54 -0
  62. package/dist/commonjs/models/payoutrequest.js.map +1 -0
  63. package/dist/commonjs/models/payoutstatus.d.ts +20 -0
  64. package/dist/commonjs/models/payoutstatus.d.ts.map +1 -0
  65. package/dist/commonjs/models/payoutstatus.js +55 -0
  66. package/dist/commonjs/models/payoutstatus.js.map +1 -0
  67. package/dist/commonjs/models/payoutstatusreason.d.ts +21 -0
  68. package/dist/commonjs/models/payoutstatusreason.d.ts.map +1 -0
  69. package/dist/commonjs/models/payoutstatusreason.js +53 -0
  70. package/dist/commonjs/models/payoutstatusreason.js.map +1 -0
  71. package/dist/commonjs/models/payoutstatusreasoncode.d.ts +28 -0
  72. package/dist/commonjs/models/payoutstatusreasoncode.d.ts.map +1 -0
  73. package/dist/commonjs/models/payoutstatusreasoncode.js +63 -0
  74. package/dist/commonjs/models/payoutstatusreasoncode.js.map +1 -0
  75. package/dist/commonjs/models/webhookeventtypes.d.ts +5 -0
  76. package/dist/commonjs/models/webhookeventtypes.d.ts.map +1 -1
  77. package/dist/commonjs/models/webhookeventtypes.js +5 -0
  78. package/dist/commonjs/models/webhookeventtypes.js.map +1 -1
  79. package/dist/commonjs/sdk/payouts.d.ts +81 -0
  80. package/dist/commonjs/sdk/payouts.d.ts.map +1 -0
  81. package/dist/commonjs/sdk/payouts.js +98 -0
  82. package/dist/commonjs/sdk/payouts.js.map +1 -0
  83. package/dist/commonjs/sdk/sdk.d.ts +3 -0
  84. package/dist/commonjs/sdk/sdk.d.ts.map +1 -1
  85. package/dist/commonjs/sdk/sdk.js +4 -0
  86. package/dist/commonjs/sdk/sdk.js.map +1 -1
  87. package/dist/esm/funcs/payoutsCancel.d.ts +22 -0
  88. package/dist/esm/funcs/payoutsCancel.d.ts.map +1 -0
  89. package/dist/esm/funcs/payoutsCancel.js +111 -0
  90. package/dist/esm/funcs/payoutsCancel.js.map +1 -0
  91. package/dist/esm/funcs/payoutsCreate.d.ts +54 -0
  92. package/dist/esm/funcs/payoutsCreate.d.ts.map +1 -0
  93. package/dist/esm/funcs/payoutsCreate.js +138 -0
  94. package/dist/esm/funcs/payoutsCreate.js.map +1 -0
  95. package/dist/esm/funcs/payoutsGet.d.ts +19 -0
  96. package/dist/esm/funcs/payoutsGet.d.ts.map +1 -0
  97. package/dist/esm/funcs/payoutsGet.js +108 -0
  98. package/dist/esm/funcs/payoutsGet.js.map +1 -0
  99. package/dist/esm/funcs/payoutsList.d.ts +29 -0
  100. package/dist/esm/funcs/payoutsList.d.ts.map +1 -0
  101. package/dist/esm/funcs/payoutsList.js +146 -0
  102. package/dist/esm/funcs/payoutsList.js.map +1 -0
  103. package/dist/esm/hooks/mollie-auth-utils.js +1 -1
  104. package/dist/esm/hooks/mollie-auth-utils.js.map +1 -1
  105. package/dist/esm/lib/config.d.ts +2 -2
  106. package/dist/esm/lib/config.js +2 -2
  107. package/dist/esm/lib/config.js.map +1 -1
  108. package/dist/esm/models/entitypayoutresponse.d.ts +102 -0
  109. package/dist/esm/models/entitypayoutresponse.d.ts.map +1 -0
  110. package/dist/esm/models/entitypayoutresponse.js +44 -0
  111. package/dist/esm/models/entitypayoutresponse.js.map +1 -0
  112. package/dist/esm/models/entitywebhookevent.d.ts +8 -2
  113. package/dist/esm/models/entitywebhookevent.d.ts.map +1 -1
  114. package/dist/esm/models/entitywebhookevent.js +8 -0
  115. package/dist/esm/models/entitywebhookevent.js.map +1 -1
  116. package/dist/esm/models/index.d.ts +6 -0
  117. package/dist/esm/models/index.d.ts.map +1 -1
  118. package/dist/esm/models/index.js +6 -0
  119. package/dist/esm/models/index.js.map +1 -1
  120. package/dist/esm/models/listentitypayout.d.ts +98 -0
  121. package/dist/esm/models/listentitypayout.d.ts.map +1 -0
  122. package/dist/esm/models/listentitypayout.js +43 -0
  123. package/dist/esm/models/listentitypayout.js.map +1 -0
  124. package/dist/esm/models/operations/cancelpayout.d.ts +43 -0
  125. package/dist/esm/models/operations/cancelpayout.d.ts.map +1 -0
  126. package/dist/esm/models/operations/cancelpayout.js +20 -0
  127. package/dist/esm/models/operations/cancelpayout.js.map +1 -0
  128. package/dist/esm/models/operations/createpayout.d.ts +41 -0
  129. package/dist/esm/models/operations/createpayout.d.ts.map +1 -0
  130. package/dist/esm/models/operations/createpayout.js +22 -0
  131. package/dist/esm/models/operations/createpayout.js.map +1 -0
  132. package/dist/esm/models/operations/getpayout.d.ts +43 -0
  133. package/dist/esm/models/operations/getpayout.d.ts.map +1 -0
  134. package/dist/esm/models/operations/getpayout.js +20 -0
  135. package/dist/esm/models/operations/getpayout.js.map +1 -0
  136. package/dist/esm/models/operations/index.d.ts +4 -0
  137. package/dist/esm/models/operations/index.d.ts.map +1 -1
  138. package/dist/esm/models/operations/index.js +4 -0
  139. package/dist/esm/models/operations/index.js.map +1 -1
  140. package/dist/esm/models/operations/listpayouts.d.ts +114 -0
  141. package/dist/esm/models/operations/listpayouts.d.ts.map +1 -0
  142. package/dist/esm/models/operations/listpayouts.js +57 -0
  143. package/dist/esm/models/operations/listpayouts.js.map +1 -0
  144. package/dist/esm/models/payoutrequest.d.ts +45 -0
  145. package/dist/esm/models/payoutrequest.d.ts.map +1 -0
  146. package/dist/esm/models/payoutrequest.js +17 -0
  147. package/dist/esm/models/payoutrequest.js.map +1 -0
  148. package/dist/esm/models/payoutstatus.d.ts +20 -0
  149. package/dist/esm/models/payoutstatus.d.ts.map +1 -0
  150. package/dist/esm/models/payoutstatus.js +19 -0
  151. package/dist/esm/models/payoutstatus.js.map +1 -0
  152. package/dist/esm/models/payoutstatusreason.d.ts +21 -0
  153. package/dist/esm/models/payoutstatusreason.d.ts.map +1 -0
  154. package/dist/esm/models/payoutstatusreason.js +16 -0
  155. package/dist/esm/models/payoutstatusreason.js.map +1 -0
  156. package/dist/esm/models/payoutstatusreasoncode.d.ts +28 -0
  157. package/dist/esm/models/payoutstatusreasoncode.d.ts.map +1 -0
  158. package/dist/esm/models/payoutstatusreasoncode.js +27 -0
  159. package/dist/esm/models/payoutstatusreasoncode.js.map +1 -0
  160. package/dist/esm/models/webhookeventtypes.d.ts +5 -0
  161. package/dist/esm/models/webhookeventtypes.d.ts.map +1 -1
  162. package/dist/esm/models/webhookeventtypes.js +5 -0
  163. package/dist/esm/models/webhookeventtypes.js.map +1 -1
  164. package/dist/esm/sdk/payouts.d.ts +81 -0
  165. package/dist/esm/sdk/payouts.d.ts.map +1 -0
  166. package/dist/esm/sdk/payouts.js +94 -0
  167. package/dist/esm/sdk/payouts.js.map +1 -0
  168. package/dist/esm/sdk/sdk.d.ts +3 -0
  169. package/dist/esm/sdk/sdk.d.ts.map +1 -1
  170. package/dist/esm/sdk/sdk.js +4 -0
  171. package/dist/esm/sdk/sdk.js.map +1 -1
  172. package/jsr.json +1 -1
  173. package/package.json +1 -1
  174. package/src/funcs/payoutsCancel.ts +204 -0
  175. package/src/funcs/payoutsCreate.ts +231 -0
  176. package/src/funcs/payoutsGet.ts +201 -0
  177. package/src/funcs/payoutsList.ts +278 -0
  178. package/src/hooks/mollie-auth-utils.ts +3 -3
  179. package/src/lib/config.ts +2 -2
  180. package/src/models/entitypayoutresponse.ts +165 -0
  181. package/src/models/entitywebhookevent.ts +13 -0
  182. package/src/models/index.ts +6 -0
  183. package/src/models/listentitypayout.ts +160 -0
  184. package/src/models/operations/cancelpayout.ts +71 -0
  185. package/src/models/operations/createpayout.ts +70 -0
  186. package/src/models/operations/getpayout.ts +71 -0
  187. package/src/models/operations/index.ts +4 -0
  188. package/src/models/operations/listpayouts.ts +208 -0
  189. package/src/models/payoutrequest.ts +68 -0
  190. package/src/models/payoutstatus.ts +31 -0
  191. package/src/models/payoutstatusreason.ts +47 -0
  192. package/src/models/payoutstatusreasoncode.ts +39 -0
  193. package/src/models/webhookeventtypes.ts +5 -0
  194. package/src/sdk/payouts.ts +128 -0
  195. package/src/sdk/sdk.ts +6 -0
package/README.md CHANGED
@@ -357,6 +357,13 @@ let client = new Client({
357
357
  * [cancel](docs/sdks/payments/README.md#cancel) - Cancel payment
358
358
  * [releaseAuthorization](docs/sdks/payments/README.md#releaseauthorization) - Release payment authorization
359
359
 
360
+ ### [Payouts](docs/sdks/payouts/README.md)
361
+
362
+ * [create](docs/sdks/payouts/README.md#create) - Create payout
363
+ * [list](docs/sdks/payouts/README.md#list) - List payouts
364
+ * [get](docs/sdks/payouts/README.md#get) - Get payout
365
+ * [cancel](docs/sdks/payouts/README.md#cancel) - Cancel payout
366
+
360
367
  ### [Permissions](docs/sdks/permissions/README.md)
361
368
 
362
369
  * [list](docs/sdks/permissions/README.md#list) - List permissions
@@ -529,6 +536,10 @@ To read more about standalone functions, check [FUNCTIONS.md](./FUNCTIONS.md).
529
536
  - [`paymentsList`](docs/sdks/payments/README.md#list) - List payments
530
537
  - [`paymentsReleaseAuthorization`](docs/sdks/payments/README.md#releaseauthorization) - Release payment authorization
531
538
  - [`paymentsUpdate`](docs/sdks/payments/README.md#update) - Update payment
539
+ - [`payoutsCancel`](docs/sdks/payouts/README.md#cancel) - Cancel payout
540
+ - [`payoutsCreate`](docs/sdks/payouts/README.md#create) - Create payout
541
+ - [`payoutsGet`](docs/sdks/payouts/README.md#get) - Get payout
542
+ - [`payoutsList`](docs/sdks/payouts/README.md#list) - List payouts
532
543
  - [`permissionsGet`](docs/sdks/permissions/README.md#get) - Get permission
533
544
  - [`permissionsList`](docs/sdks/permissions/README.md#list) - List permissions
534
545
  - [`profilesCreate`](docs/sdks/profiles/README.md#create) - Create profile
@@ -0,0 +1,22 @@
1
+ import { ClientCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ClientError } from "../models/errors/clienterror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Cancel payout
14
+ *
15
+ * @remarks
16
+ * Cancel a payout. A payout can only be canceled while it has the status `requested`. Once the payout moves
17
+ * to `initiated`, it is too late to cancel.
18
+ *
19
+ * The canceled payout object is returned with the status set to `canceled`.
20
+ */
21
+ export declare function payoutsCancel(client: ClientCore, request: operations.CancelPayoutRequest, options?: RequestOptions): APIPromise<Result<models.EntityPayoutResponse, errors.ErrorResponse | ClientError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
22
+ //# sourceMappingURL=payoutsCancel.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payoutsCancel.d.ts","sourceRoot":"","sources":["../../../src/funcs/payoutsCancel.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;GAQG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,oBAAoB,EACzB,MAAM,CAAC,aAAa,GACpB,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,147 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ * @generated-id: fe8b455a464c
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || (function () {
23
+ var ownKeys = function(o) {
24
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25
+ var ar = [];
26
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ })();
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.payoutsCancel = payoutsCancel;
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const http_js_1 = require("../lib/http.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const operations = __importStar(require("../models/operations/index.js"));
51
+ const async_js_1 = require("../types/async.js");
52
+ /**
53
+ * Cancel payout
54
+ *
55
+ * @remarks
56
+ * Cancel a payout. A payout can only be canceled while it has the status `requested`. Once the payout moves
57
+ * to `initiated`, it is too late to cancel.
58
+ *
59
+ * The canceled payout object is returned with the status set to `canceled`.
60
+ */
61
+ function payoutsCancel(client, request, options) {
62
+ return new async_js_1.APIPromise($do(client, request, options));
63
+ }
64
+ async function $do(client, request, options) {
65
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CancelPayoutRequest$outboundSchema.parse(value), "Input validation failed");
66
+ if (!parsed.ok) {
67
+ return [parsed, { status: "invalid" }];
68
+ }
69
+ const payload = parsed.value;
70
+ const body = null;
71
+ const pathParams = {
72
+ payoutId: (0, encodings_js_1.encodeSimple)("payoutId", payload.payoutId, {
73
+ explode: false,
74
+ charEncoding: "percent",
75
+ }),
76
+ };
77
+ const path = (0, url_js_1.pathToFunc)("/v2/payouts/{payoutId}")(pathParams);
78
+ const query = (0, encodings_js_1.encodeFormQuery)({
79
+ "testmode": payload.testmode ?? client._options.testmode,
80
+ });
81
+ const headers = new Headers((0, primitives_js_1.compactMap)({
82
+ Accept: "application/hal+json",
83
+ "idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
84
+ }));
85
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
86
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
87
+ const context = {
88
+ options: client._options,
89
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
90
+ operationID: "cancel-payout",
91
+ oAuth2Scopes: null,
92
+ resolvedSecurity: requestSecurity,
93
+ securitySource: client._options.security,
94
+ retryConfig: options?.retries
95
+ || client._options.retryConfig
96
+ || {
97
+ strategy: "backoff",
98
+ backoff: {
99
+ initialInterval: 500,
100
+ maxInterval: 5000,
101
+ exponent: 2,
102
+ maxElapsedTime: 7500,
103
+ },
104
+ retryConnectionErrors: true,
105
+ }
106
+ || { strategy: "none" },
107
+ retryCodes: options?.retryCodes || ["5xx"],
108
+ };
109
+ const requestRes = client._createRequest(context, {
110
+ security: requestSecurity,
111
+ method: "DELETE",
112
+ baseURL: options?.serverURL,
113
+ path: path,
114
+ headers: headers,
115
+ query: query,
116
+ body: body,
117
+ userAgent: client._options.userAgent,
118
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
119
+ }, options);
120
+ if (!requestRes.ok) {
121
+ return [requestRes, { status: "invalid" }];
122
+ }
123
+ const req = requestRes.value;
124
+ const doResult = await client._do(req, {
125
+ context,
126
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
127
+ retryConfig: context.retryConfig,
128
+ retryCodes: context.retryCodes,
129
+ });
130
+ if (!doResult.ok) {
131
+ return [doResult, { status: "request-error", request: req }];
132
+ }
133
+ const response = doResult.value;
134
+ const responseFields = {
135
+ HttpMeta: { Response: response, Request: req },
136
+ };
137
+ const [result] = await M.match(M.json(200, models.EntityPayoutResponse$inboundSchema, {
138
+ ctype: "application/hal+json",
139
+ }), M.jsonErr([404, 409], errors.ErrorResponse$inboundSchema, {
140
+ ctype: "application/hal+json",
141
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
142
+ if (!result.ok) {
143
+ return [result, { status: "complete", request: req, response }];
144
+ }
145
+ return [result, { status: "complete", request: req, response }];
146
+ }
147
+ //# sourceMappingURL=payoutsCancel.js.map
@@ -0,0 +1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CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,EAAE;QACrD,KAAK,EAAE,sBAAsB;KAC9B,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,CAAC,GAAG,EAAE,GAAG,CAAC,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACxD,KAAK,EAAE,sBAAsB;KAC9B,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,54 @@
1
+ import { ClientCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ClientError } from "../models/errors/clienterror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Create payout
14
+ *
15
+ * @remarks
16
+ * Request a payout from one of your balances to the balance's configured bank account.
17
+ *
18
+ * The payout will be executed on the next scheduled business day. If no `amount` is specified, the full available
19
+ * balance minus any configured balance reserve is paid out.
20
+ *
21
+ * Once the payout is created with status `requested`, you can cancel it via the
22
+ * [Cancel payout](cancel-payout) endpoint, up until the payout moves to `initiated`.
23
+ *
24
+ * Creating a payout via the API automatically sets the balance's `transferFrequency` to `never`,
25
+ * pausing any previously configured automatic settlement schedule. To resume automatic settlements,
26
+ * update the transfer frequency via the dashboard.
27
+ *
28
+ * ### Webhooks
29
+ *
30
+ * Subscribe to the following webhook events to track payout status changes. See the
31
+ * [Webhook Subscriptions API](list-webhooks) for details on subscribing.
32
+ *
33
+ * | Event | Description |
34
+ * |---|---|
35
+ * | `payout.initiated` | The payout is being executed and funds are reserved. |
36
+ * | `payout.processing-at-bank` | The payout has been submitted to the bank. |
37
+ * | `payout.completed` | The payout has been sent to the destination bank account. |
38
+ * | `payout.canceled` | The payout was canceled via the API before being submitted to the bank. |
39
+ * | `payout.failed` | The payout failed after creation, including bank rejections and post-submission cancellations. |
40
+ *
41
+ * ### Payout failure reasons
42
+ *
43
+ * A payout request may fail immediately if one of the following conditions applies:
44
+ *
45
+ * - A payout is already scheduled for the next business day for this balance.
46
+ * - The balance has insufficient funds.
47
+ * - The balance is not active.
48
+ * - Payouts are blocked for this organization.
49
+ * - The balance has queued refunds.
50
+ * - One of the organization's balances is below the negative balance threshold.
51
+ * - The payout destination (bank account) is invalid or not configured.
52
+ */
53
+ export declare function payoutsCreate(client: ClientCore, request: operations.CreatePayoutRequest, options?: RequestOptions): APIPromise<Result<models.EntityPayoutResponse, errors.ErrorResponse | ClientError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
54
+ //# sourceMappingURL=payoutsCreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payoutsCreate.d.ts","sourceRoot":"","sources":["../../../src/funcs/payoutsCreate.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,wBAAgB,aAAa,CAC3B,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,CAAC,mBAAmB,EACvC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,oBAAoB,EACzB,MAAM,CAAC,aAAa,GACpB,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,174 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ * @generated-id: f0af27f99157
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || (function () {
23
+ var ownKeys = function(o) {
24
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25
+ var ar = [];
26
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ })();
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.payoutsCreate = payoutsCreate;
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const http_js_1 = require("../lib/http.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const operations = __importStar(require("../models/operations/index.js"));
51
+ const async_js_1 = require("../types/async.js");
52
+ /**
53
+ * Create payout
54
+ *
55
+ * @remarks
56
+ * Request a payout from one of your balances to the balance's configured bank account.
57
+ *
58
+ * The payout will be executed on the next scheduled business day. If no `amount` is specified, the full available
59
+ * balance minus any configured balance reserve is paid out.
60
+ *
61
+ * Once the payout is created with status `requested`, you can cancel it via the
62
+ * [Cancel payout](cancel-payout) endpoint, up until the payout moves to `initiated`.
63
+ *
64
+ * Creating a payout via the API automatically sets the balance's `transferFrequency` to `never`,
65
+ * pausing any previously configured automatic settlement schedule. To resume automatic settlements,
66
+ * update the transfer frequency via the dashboard.
67
+ *
68
+ * ### Webhooks
69
+ *
70
+ * Subscribe to the following webhook events to track payout status changes. See the
71
+ * [Webhook Subscriptions API](list-webhooks) for details on subscribing.
72
+ *
73
+ * | Event | Description |
74
+ * |---|---|
75
+ * | `payout.initiated` | The payout is being executed and funds are reserved. |
76
+ * | `payout.processing-at-bank` | The payout has been submitted to the bank. |
77
+ * | `payout.completed` | The payout has been sent to the destination bank account. |
78
+ * | `payout.canceled` | The payout was canceled via the API before being submitted to the bank. |
79
+ * | `payout.failed` | The payout failed after creation, including bank rejections and post-submission cancellations. |
80
+ *
81
+ * ### Payout failure reasons
82
+ *
83
+ * A payout request may fail immediately if one of the following conditions applies:
84
+ *
85
+ * - A payout is already scheduled for the next business day for this balance.
86
+ * - The balance has insufficient funds.
87
+ * - The balance is not active.
88
+ * - Payouts are blocked for this organization.
89
+ * - The balance has queued refunds.
90
+ * - One of the organization's balances is below the negative balance threshold.
91
+ * - The payout destination (bank account) is invalid or not configured.
92
+ */
93
+ function payoutsCreate(client, request, options) {
94
+ return new async_js_1.APIPromise($do(client, request, options));
95
+ }
96
+ async function $do(client, request, options) {
97
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.CreatePayoutRequest$outboundSchema.parse(value), "Input validation failed");
98
+ if (!parsed.ok) {
99
+ return [parsed, { status: "invalid" }];
100
+ }
101
+ const payload = parsed.value;
102
+ const body = (0, encodings_js_1.encodeJSON)("body", payload["payout-request"], { explode: true });
103
+ const path = (0, url_js_1.pathToFunc)("/v2/payouts")();
104
+ const query = (0, encodings_js_1.encodeFormQuery)({
105
+ "testmode": payload.testmode ?? client._options.testmode,
106
+ });
107
+ const headers = new Headers((0, primitives_js_1.compactMap)({
108
+ "Content-Type": "application/json",
109
+ Accept: "application/hal+json",
110
+ "idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
111
+ }));
112
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
113
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
114
+ const context = {
115
+ options: client._options,
116
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
117
+ operationID: "create-payout",
118
+ oAuth2Scopes: null,
119
+ resolvedSecurity: requestSecurity,
120
+ securitySource: client._options.security,
121
+ retryConfig: options?.retries
122
+ || client._options.retryConfig
123
+ || {
124
+ strategy: "backoff",
125
+ backoff: {
126
+ initialInterval: 500,
127
+ maxInterval: 5000,
128
+ exponent: 2,
129
+ maxElapsedTime: 7500,
130
+ },
131
+ retryConnectionErrors: true,
132
+ }
133
+ || { strategy: "none" },
134
+ retryCodes: options?.retryCodes || ["5xx"],
135
+ };
136
+ const requestRes = client._createRequest(context, {
137
+ security: requestSecurity,
138
+ method: "POST",
139
+ baseURL: options?.serverURL,
140
+ path: path,
141
+ headers: headers,
142
+ query: query,
143
+ body: body,
144
+ userAgent: client._options.userAgent,
145
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
146
+ }, options);
147
+ if (!requestRes.ok) {
148
+ return [requestRes, { status: "invalid" }];
149
+ }
150
+ const req = requestRes.value;
151
+ const doResult = await client._do(req, {
152
+ context,
153
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
154
+ retryConfig: context.retryConfig,
155
+ retryCodes: context.retryCodes,
156
+ });
157
+ if (!doResult.ok) {
158
+ return [doResult, { status: "request-error", request: req }];
159
+ }
160
+ const response = doResult.value;
161
+ const responseFields = {
162
+ HttpMeta: { Response: response, Request: req },
163
+ };
164
+ const [result] = await M.match(M.json(201, models.EntityPayoutResponse$inboundSchema, {
165
+ ctype: "application/hal+json",
166
+ }), M.jsonErr(422, errors.ErrorResponse$inboundSchema, {
167
+ ctype: "application/hal+json",
168
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
169
+ if (!result.ok) {
170
+ return [result, { status: "complete", request: req, response }];
171
+ }
172
+ return [result, { status: "complete", request: req, response }];
173
+ }
174
+ //# sourceMappingURL=payoutsCreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payoutsCreate.js","sourceRoot":"","sources":["../../../src/funcs/payoutsCreate.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,sCAuBC;AAxFD,sDAAgF;AAChF,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA2C;AAS3C,kEAAoD;AAGpD,2DAA6C;AAC7C,0EAA4D;AAC5D,gDAAwD;AAGxD;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;GAwCG;AACH,SAAgB,aAAa,CAC3B,MAAkB,EAClB,OAAuC,EACvC,OAAwB;IAexB,OAAO,IAAI,qBAAU,CAAC,GAAG,CACvB,MAAM,EACN,OAAO,EACP,OAAO,CACR,CAAC,CAAC;AACL,CAAC;AAED,KAAK,UAAU,GAAG,CAChB,MAAkB,EAClB,OAAuC,EACvC,OAAwB;IAkBxB,MAAM,MAAM,GAAG,IAAA,sBAAS,EACtB,OAAO,EACP,CAAC,KAAK,EAAE,EAAE,CAAC,UAAU,CAAC,kCAAkC,CAAC,KAAK,CAAC,KAAK,CAAC,EACrE,yBAAyB,CAC1B,CAAC;IACF,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,SAAS,EAAE,CAAC,CAAC;IACzC,CAAC;IACD,MAAM,OAAO,GAAG,MAAM,CAAC,KAAK,CAAC;IAC7B,MAAM,IAAI,GAAG,IAAA,yBAAU,EAAC,MAAM,EAAE,OAAO,CAAC,gBAAgB,CAAC,EAAE,EAAE,OAAO,EAAE,IAAI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AE,EAAE,QAAQ,EAAE,QAAQ,EAAE,OAAO,EAAE,GAAG,EAAE;KAC/C,CAAC;IAEF,MAAM,CAAC,MAAM,CAAC,GAAG,MAAM,CAAC,CAAC,KAAK,CAY5B,CAAC,CAAC,IAAI,CAAC,GAAG,EAAE,MAAM,CAAC,kCAAkC,EAAE;QACrD,KAAK,EAAE,sBAAsB;KAC9B,CAAC,EACF,CAAC,CAAC,OAAO,CAAC,GAAG,EAAE,MAAM,CAAC,2BAA2B,EAAE;QACjD,KAAK,EAAE,sBAAsB;KAC9B,CAAC,EACF,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,EACb,CAAC,CAAC,IAAI,CAAC,KAAK,CAAC,CACd,CAAC,QAAQ,EAAE,GAAG,EAAE,EAAE,WAAW,EAAE,cAAc,EAAE,CAAC,CAAC;IAClD,IAAI,CAAC,MAAM,CAAC,EAAE,EAAE,CAAC;QACf,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;IAClE,CAAC;IAED,OAAO,CAAC,MAAM,EAAE,EAAE,MAAM,EAAE,UAAU,EAAE,OAAO,EAAE,GAAG,EAAE,QAAQ,EAAE,CAAC,CAAC;AAClE,CAAC"}
@@ -0,0 +1,19 @@
1
+ import { ClientCore } from "../core.js";
2
+ import { RequestOptions } from "../lib/sdks.js";
3
+ import { ClientError } from "../models/errors/clienterror.js";
4
+ import { ConnectionError, InvalidRequestError, RequestAbortedError, RequestTimeoutError, UnexpectedClientError } from "../models/errors/httpclienterrors.js";
5
+ import * as errors from "../models/errors/index.js";
6
+ import { ResponseValidationError } from "../models/errors/responsevalidationerror.js";
7
+ import { SDKValidationError } from "../models/errors/sdkvalidationerror.js";
8
+ import * as models from "../models/index.js";
9
+ import * as operations from "../models/operations/index.js";
10
+ import { APIPromise } from "../types/async.js";
11
+ import { Result } from "../types/fp.js";
12
+ /**
13
+ * Get payout
14
+ *
15
+ * @remarks
16
+ * Retrieve a single payout by its ID.
17
+ */
18
+ export declare function payoutsGet(client: ClientCore, request: operations.GetPayoutRequest, options?: RequestOptions): APIPromise<Result<models.EntityPayoutResponse, errors.ErrorResponse | ClientError | ResponseValidationError | ConnectionError | RequestAbortedError | RequestTimeoutError | InvalidRequestError | UnexpectedClientError | SDKValidationError>>;
19
+ //# sourceMappingURL=payoutsGet.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payoutsGet.d.ts","sourceRoot":"","sources":["../../../src/funcs/payoutsGet.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,UAAU,EAAE,MAAM,YAAY,CAAC;AAMxC,OAAO,EAAE,cAAc,EAAE,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAE,WAAW,EAAE,MAAM,iCAAiC,CAAC;AAC9D,OAAO,EACL,eAAe,EACf,mBAAmB,EACnB,mBAAmB,EACnB,mBAAmB,EACnB,qBAAqB,EACtB,MAAM,sCAAsC,CAAC;AAC9C,OAAO,KAAK,MAAM,MAAM,2BAA2B,CAAC;AACpD,OAAO,EAAE,uBAAuB,EAAE,MAAM,6CAA6C,CAAC;AACtF,OAAO,EAAE,kBAAkB,EAAE,MAAM,wCAAwC,CAAC;AAC5E,OAAO,KAAK,MAAM,MAAM,oBAAoB,CAAC;AAC7C,OAAO,KAAK,UAAU,MAAM,+BAA+B,CAAC;AAC5D,OAAO,EAAW,UAAU,EAAE,MAAM,mBAAmB,CAAC;AACxD,OAAO,EAAE,MAAM,EAAE,MAAM,gBAAgB,CAAC;AAExC;;;;;GAKG;AACH,wBAAgB,UAAU,CACxB,MAAM,EAAE,UAAU,EAClB,OAAO,EAAE,UAAU,CAAC,gBAAgB,EACpC,OAAO,CAAC,EAAE,cAAc,GACvB,UAAU,CACX,MAAM,CACJ,MAAM,CAAC,oBAAoB,EACzB,MAAM,CAAC,aAAa,GACpB,WAAW,GACX,uBAAuB,GACvB,eAAe,GACf,mBAAmB,GACnB,mBAAmB,GACnB,mBAAmB,GACnB,qBAAqB,GACrB,kBAAkB,CACrB,CACF,CAMA"}
@@ -0,0 +1,144 @@
1
+ "use strict";
2
+ /*
3
+ * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
+ * @generated-id: dc969f7d14e9
5
+ */
6
+ var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
7
+ if (k2 === undefined) k2 = k;
8
+ var desc = Object.getOwnPropertyDescriptor(m, k);
9
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
10
+ desc = { enumerable: true, get: function() { return m[k]; } };
11
+ }
12
+ Object.defineProperty(o, k2, desc);
13
+ }) : (function(o, m, k, k2) {
14
+ if (k2 === undefined) k2 = k;
15
+ o[k2] = m[k];
16
+ }));
17
+ var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
18
+ Object.defineProperty(o, "default", { enumerable: true, value: v });
19
+ }) : function(o, v) {
20
+ o["default"] = v;
21
+ });
22
+ var __importStar = (this && this.__importStar) || (function () {
23
+ var ownKeys = function(o) {
24
+ ownKeys = Object.getOwnPropertyNames || function (o) {
25
+ var ar = [];
26
+ for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
27
+ return ar;
28
+ };
29
+ return ownKeys(o);
30
+ };
31
+ return function (mod) {
32
+ if (mod && mod.__esModule) return mod;
33
+ var result = {};
34
+ if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
35
+ __setModuleDefault(result, mod);
36
+ return result;
37
+ };
38
+ })();
39
+ Object.defineProperty(exports, "__esModule", { value: true });
40
+ exports.payoutsGet = payoutsGet;
41
+ const encodings_js_1 = require("../lib/encodings.js");
42
+ const http_js_1 = require("../lib/http.js");
43
+ const M = __importStar(require("../lib/matchers.js"));
44
+ const primitives_js_1 = require("../lib/primitives.js");
45
+ const schemas_js_1 = require("../lib/schemas.js");
46
+ const security_js_1 = require("../lib/security.js");
47
+ const url_js_1 = require("../lib/url.js");
48
+ const errors = __importStar(require("../models/errors/index.js"));
49
+ const models = __importStar(require("../models/index.js"));
50
+ const operations = __importStar(require("../models/operations/index.js"));
51
+ const async_js_1 = require("../types/async.js");
52
+ /**
53
+ * Get payout
54
+ *
55
+ * @remarks
56
+ * Retrieve a single payout by its ID.
57
+ */
58
+ function payoutsGet(client, request, options) {
59
+ return new async_js_1.APIPromise($do(client, request, options));
60
+ }
61
+ async function $do(client, request, options) {
62
+ const parsed = (0, schemas_js_1.safeParse)(request, (value) => operations.GetPayoutRequest$outboundSchema.parse(value), "Input validation failed");
63
+ if (!parsed.ok) {
64
+ return [parsed, { status: "invalid" }];
65
+ }
66
+ const payload = parsed.value;
67
+ const body = null;
68
+ const pathParams = {
69
+ payoutId: (0, encodings_js_1.encodeSimple)("payoutId", payload.payoutId, {
70
+ explode: false,
71
+ charEncoding: "percent",
72
+ }),
73
+ };
74
+ const path = (0, url_js_1.pathToFunc)("/v2/payouts/{payoutId}")(pathParams);
75
+ const query = (0, encodings_js_1.encodeFormQuery)({
76
+ "testmode": payload.testmode ?? client._options.testmode,
77
+ });
78
+ const headers = new Headers((0, primitives_js_1.compactMap)({
79
+ Accept: "application/hal+json",
80
+ "idempotency-key": (0, encodings_js_1.encodeSimple)("idempotency-key", payload["idempotency-key"], { explode: false, charEncoding: "none" }),
81
+ }));
82
+ const securityInput = await (0, security_js_1.extractSecurity)(client._options.security);
83
+ const requestSecurity = (0, security_js_1.resolveGlobalSecurity)(securityInput);
84
+ const context = {
85
+ options: client._options,
86
+ baseURL: options?.serverURL ?? client._baseURL ?? "",
87
+ operationID: "get-payout",
88
+ oAuth2Scopes: null,
89
+ resolvedSecurity: requestSecurity,
90
+ securitySource: client._options.security,
91
+ retryConfig: options?.retries
92
+ || client._options.retryConfig
93
+ || {
94
+ strategy: "backoff",
95
+ backoff: {
96
+ initialInterval: 500,
97
+ maxInterval: 5000,
98
+ exponent: 2,
99
+ maxElapsedTime: 7500,
100
+ },
101
+ retryConnectionErrors: true,
102
+ }
103
+ || { strategy: "none" },
104
+ retryCodes: options?.retryCodes || ["5xx"],
105
+ };
106
+ const requestRes = client._createRequest(context, {
107
+ security: requestSecurity,
108
+ method: "GET",
109
+ baseURL: options?.serverURL,
110
+ path: path,
111
+ headers: headers,
112
+ query: query,
113
+ body: body,
114
+ userAgent: client._options.userAgent,
115
+ timeoutMs: options?.timeoutMs || client._options.timeoutMs || -1,
116
+ }, options);
117
+ if (!requestRes.ok) {
118
+ return [requestRes, { status: "invalid" }];
119
+ }
120
+ const req = requestRes.value;
121
+ const doResult = await client._do(req, {
122
+ context,
123
+ isErrorStatusCode: (statusCode) => (0, http_js_1.matchStatusCode)({ status: statusCode }, ["4XX", "5XX"]),
124
+ retryConfig: context.retryConfig,
125
+ retryCodes: context.retryCodes,
126
+ });
127
+ if (!doResult.ok) {
128
+ return [doResult, { status: "request-error", request: req }];
129
+ }
130
+ const response = doResult.value;
131
+ const responseFields = {
132
+ HttpMeta: { Response: response, Request: req },
133
+ };
134
+ const [result] = await M.match(M.json(200, models.EntityPayoutResponse$inboundSchema, {
135
+ ctype: "application/hal+json",
136
+ }), M.jsonErr(404, errors.ErrorResponse$inboundSchema, {
137
+ ctype: "application/hal+json",
138
+ }), M.fail("4XX"), M.fail("5XX"))(response, req, { extraFields: responseFields });
139
+ if (!result.ok) {
140
+ return [result, { status: "complete", request: req, response }];
141
+ }
142
+ return [result, { status: "complete", request: req, response }];
143
+ }
144
+ //# sourceMappingURL=payoutsGet.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"payoutsGet.js","sourceRoot":"","sources":["../../../src/funcs/payoutsGet.ts"],"names":[],"mappings":";AAAA;;;GAGG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAiCH,gCAuBC;AArDD,sDAAoE;AACpE,4CAAiD;AACjD,sDAAwC;AACxC,wDAAkD;AAClD,kDAA8C;AAE9C,oDAA4E;AAC5E,0CAA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