mollie-api-typescript 0.0.5 → 0.0.7
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/README.md +3 -2
- package/bin/mcp-server.js +710 -1292
- package/bin/mcp-server.js.map +31 -31
- package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
- package/dist/commonjs/funcs/delayedRoutingList.js.map +1 -1
- package/dist/commonjs/funcs/refundsGet.js +1 -1
- package/dist/commonjs/funcs/refundsGet.js.map +1 -1
- package/dist/commonjs/funcs/refundsList.js +1 -1
- package/dist/commonjs/funcs/refundsList.js.map +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js +1 -1
- package/dist/commonjs/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/commonjs/funcs/subscriptionsAll.js +2 -5
- package/dist/commonjs/funcs/subscriptionsAll.js.map +1 -1
- package/dist/commonjs/lib/config.d.ts +3 -3
- package/dist/commonjs/lib/config.js +3 -3
- package/dist/commonjs/mcp-server/mcp-server.js +1 -1
- package/dist/commonjs/mcp-server/server.js +1 -1
- package/dist/commonjs/models/errors/listallsubscriptions.d.ts +95 -14
- package/dist/commonjs/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/errors/listallsubscriptions.js +80 -14
- package/dist/commonjs/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/cancelsubscription.js +40 -48
- package/dist/commonjs/models/operations/cancelsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createcustomer.js +22 -24
- package/dist/commonjs/models/operations/createcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/createmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/createmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createmandate.js +26 -28
- package/dist/commonjs/models/operations/createmandate.js.map +1 -1
- package/dist/commonjs/models/operations/createrefund.d.ts +7 -7
- package/dist/commonjs/models/operations/createrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createrefund.js +8 -10
- package/dist/commonjs/models/operations/createrefund.js.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.d.ts +44 -44
- package/dist/commonjs/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/createsubscription.js +44 -53
- package/dist/commonjs/models/operations/createsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.d.ts +28 -28
- package/dist/commonjs/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getcustomer.js +28 -30
- package/dist/commonjs/models/operations/getcustomer.js.map +1 -1
- package/dist/commonjs/models/operations/getmandate.d.ts +26 -26
- package/dist/commonjs/models/operations/getmandate.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getmandate.js +26 -27
- package/dist/commonjs/models/operations/getmandate.js.map +1 -1
- package/dist/commonjs/models/operations/getrefund.d.ts +28 -19
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +25 -22
- package/dist/commonjs/models/operations/getrefund.js.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getsubscription.js +40 -48
- package/dist/commonjs/models/operations/getsubscription.js.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.d.ts +9 -15
- package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallrefunds.js +8 -10
- package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listallsubscriptions.js +345 -1612
- package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.d.ts +22 -22
- package/dist/commonjs/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listcustomers.js +22 -22
- package/dist/commonjs/models/operations/listcustomers.js.map +1 -1
- package/dist/commonjs/models/operations/listmandates.d.ts +26 -26
- package/dist/commonjs/models/operations/listmandates.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listmandates.js +26 -26
- package/dist/commonjs/models/operations/listmandates.js.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.d.ts +28 -19
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +25 -24
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +28 -19
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +25 -22
- package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/commonjs/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsubscriptions.js +90 -96
- package/dist/commonjs/models/operations/listsubscriptions.js.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentcreateroute.js +2 -0
- package/dist/commonjs/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/commonjs/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/commonjs/models/operations/paymentlistroutes.js +2 -0
- package/dist/commonjs/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.d.ts +22 -22
- package/dist/commonjs/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatecustomer.js +22 -24
- package/dist/commonjs/models/operations/updatecustomer.js.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.d.ts +40 -40
- package/dist/commonjs/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/commonjs/models/operations/updatesubscription.js +40 -50
- package/dist/commonjs/models/operations/updatesubscription.js.map +1 -1
- package/dist/esm/funcs/delayedRoutingList.js +5 -1
- package/dist/esm/funcs/delayedRoutingList.js.map +1 -1
- package/dist/esm/funcs/refundsGet.js +1 -1
- package/dist/esm/funcs/refundsGet.js.map +1 -1
- package/dist/esm/funcs/refundsList.js +1 -1
- package/dist/esm/funcs/refundsList.js.map +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js +1 -1
- package/dist/esm/funcs/settlementsListRefunds.js.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts +1 -1
- package/dist/esm/funcs/subscriptionsAll.d.ts.map +1 -1
- package/dist/esm/funcs/subscriptionsAll.js +2 -5
- package/dist/esm/funcs/subscriptionsAll.js.map +1 -1
- package/dist/esm/lib/config.d.ts +3 -3
- package/dist/esm/lib/config.js +3 -3
- package/dist/esm/mcp-server/mcp-server.js +1 -1
- package/dist/esm/mcp-server/server.js +1 -1
- package/dist/esm/models/errors/listallsubscriptions.d.ts +95 -14
- package/dist/esm/models/errors/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/errors/listallsubscriptions.js +77 -12
- package/dist/esm/models/errors/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.d.ts +40 -40
- package/dist/esm/models/operations/cancelsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/cancelsubscription.js +40 -48
- package/dist/esm/models/operations/cancelsubscription.js.map +1 -1
- package/dist/esm/models/operations/createcustomer.d.ts +22 -22
- package/dist/esm/models/operations/createcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/createcustomer.js +22 -24
- package/dist/esm/models/operations/createcustomer.js.map +1 -1
- package/dist/esm/models/operations/createmandate.d.ts +26 -26
- package/dist/esm/models/operations/createmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/createmandate.js +26 -28
- package/dist/esm/models/operations/createmandate.js.map +1 -1
- package/dist/esm/models/operations/createrefund.d.ts +7 -7
- package/dist/esm/models/operations/createrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/createrefund.js +8 -10
- package/dist/esm/models/operations/createrefund.js.map +1 -1
- package/dist/esm/models/operations/createsubscription.d.ts +44 -44
- package/dist/esm/models/operations/createsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/createsubscription.js +44 -53
- package/dist/esm/models/operations/createsubscription.js.map +1 -1
- package/dist/esm/models/operations/getcustomer.d.ts +28 -28
- package/dist/esm/models/operations/getcustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/getcustomer.js +28 -30
- package/dist/esm/models/operations/getcustomer.js.map +1 -1
- package/dist/esm/models/operations/getmandate.d.ts +26 -26
- package/dist/esm/models/operations/getmandate.d.ts.map +1 -1
- package/dist/esm/models/operations/getmandate.js +26 -27
- package/dist/esm/models/operations/getmandate.js.map +1 -1
- package/dist/esm/models/operations/getrefund.d.ts +28 -19
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +24 -21
- package/dist/esm/models/operations/getrefund.js.map +1 -1
- package/dist/esm/models/operations/getsubscription.d.ts +40 -40
- package/dist/esm/models/operations/getsubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/getsubscription.js +40 -48
- package/dist/esm/models/operations/getsubscription.js.map +1 -1
- package/dist/esm/models/operations/listallrefunds.d.ts +9 -15
- package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listallrefunds.js +8 -10
- package/dist/esm/models/operations/listallrefunds.js.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.d.ts +532 -2849
- package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listallsubscriptions.js +325 -1533
- package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/listcustomers.d.ts +22 -22
- package/dist/esm/models/operations/listcustomers.d.ts.map +1 -1
- package/dist/esm/models/operations/listcustomers.js +22 -22
- package/dist/esm/models/operations/listcustomers.js.map +1 -1
- package/dist/esm/models/operations/listmandates.d.ts +26 -26
- package/dist/esm/models/operations/listmandates.d.ts.map +1 -1
- package/dist/esm/models/operations/listmandates.js +26 -26
- package/dist/esm/models/operations/listmandates.js.map +1 -1
- package/dist/esm/models/operations/listrefunds.d.ts +28 -19
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +24 -23
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +28 -19
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +24 -21
- package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.d.ts +81 -81
- package/dist/esm/models/operations/listsubscriptions.d.ts.map +1 -1
- package/dist/esm/models/operations/listsubscriptions.js +83 -89
- package/dist/esm/models/operations/listsubscriptions.js.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.d.ts +11 -0
- package/dist/esm/models/operations/paymentcreateroute.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentcreateroute.js +2 -0
- package/dist/esm/models/operations/paymentcreateroute.js.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.d.ts +11 -0
- package/dist/esm/models/operations/paymentlistroutes.d.ts.map +1 -1
- package/dist/esm/models/operations/paymentlistroutes.js +2 -0
- package/dist/esm/models/operations/paymentlistroutes.js.map +1 -1
- package/dist/esm/models/operations/updatecustomer.d.ts +22 -22
- package/dist/esm/models/operations/updatecustomer.d.ts.map +1 -1
- package/dist/esm/models/operations/updatecustomer.js +22 -24
- package/dist/esm/models/operations/updatecustomer.js.map +1 -1
- package/dist/esm/models/operations/updatesubscription.d.ts +40 -40
- package/dist/esm/models/operations/updatesubscription.d.ts.map +1 -1
- package/dist/esm/models/operations/updatesubscription.js +40 -50
- package/dist/esm/models/operations/updatesubscription.js.map +1 -1
- package/docs/sdks/delayedrouting/README.md +4 -0
- package/docs/sdks/refunds/README.md +4 -4
- package/docs/sdks/settlements/README.md +2 -2
- package/docs/sdks/subscriptions/README.md +5 -4
- package/examples/package-lock.json +2 -2
- package/jsr.json +1 -1
- package/package.json +2 -2
- package/src/funcs/delayedRoutingList.ts +6 -1
- package/src/funcs/refundsGet.ts +1 -1
- package/src/funcs/refundsList.ts +1 -1
- package/src/funcs/settlementsListRefunds.ts +1 -1
- package/src/funcs/subscriptionsAll.ts +17 -8
- package/src/lib/config.ts +3 -3
- package/src/mcp-server/mcp-server.ts +1 -1
- package/src/mcp-server/server.ts +1 -1
- package/src/models/errors/listallsubscriptions.ts +173 -23
- package/src/models/operations/cancelsubscription.ts +80 -98
- package/src/models/operations/createcustomer.ts +45 -53
- package/src/models/operations/createmandate.ts +52 -54
- package/src/models/operations/createrefund.ts +15 -17
- package/src/models/operations/createsubscription.ts +89 -104
- package/src/models/operations/getcustomer.ts +56 -63
- package/src/models/operations/getmandate.ts +52 -53
- package/src/models/operations/getrefund.ts +44 -35
- package/src/models/operations/getsubscription.ts +80 -98
- package/src/models/operations/listallrefunds.ts +17 -25
- package/src/models/operations/listallsubscriptions.ts +894 -4395
- package/src/models/operations/listcustomers.ts +44 -49
- package/src/models/operations/listmandates.ts +52 -52
- package/src/models/operations/listrefunds.ts +44 -37
- package/src/models/operations/listsettlementrefunds.ts +45 -36
- package/src/models/operations/listsubscriptions.ts +181 -176
- package/src/models/operations/paymentcreateroute.ts +13 -0
- package/src/models/operations/paymentlistroutes.ts +13 -0
- package/src/models/operations/updatecustomer.ts +45 -53
- package/src/models/operations/updatesubscription.ts +81 -97
|
@@ -251,11 +251,11 @@ export type CustomerLinks = {
|
|
|
251
251
|
/**
|
|
252
252
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
253
253
|
*/
|
|
254
|
-
self
|
|
254
|
+
self: CustomerSelf;
|
|
255
255
|
/**
|
|
256
256
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
257
257
|
*/
|
|
258
|
-
dashboard
|
|
258
|
+
dashboard: ListCustomersDashboard;
|
|
259
259
|
/**
|
|
260
260
|
* The API resource URL of the [payments](list-payments) linked to this customer. Omitted if no such payments
|
|
261
261
|
*
|
|
@@ -280,7 +280,7 @@ export type CustomerLinks = {
|
|
|
280
280
|
/**
|
|
281
281
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
282
282
|
*/
|
|
283
|
-
documentation
|
|
283
|
+
documentation: CustomerDocumentation;
|
|
284
284
|
};
|
|
285
285
|
|
|
286
286
|
export type ListCustomersCustomer = {
|
|
@@ -291,41 +291,41 @@ export type ListCustomersCustomer = {
|
|
|
291
291
|
/**
|
|
292
292
|
* The identifier uniquely referring to this customer. Example: `cst_vsKJpSsabw`.
|
|
293
293
|
*/
|
|
294
|
-
id
|
|
294
|
+
id: string;
|
|
295
295
|
/**
|
|
296
296
|
* Whether this entity was created in live mode or in test mode.
|
|
297
297
|
*/
|
|
298
|
-
mode
|
|
298
|
+
mode: ListCustomersMode;
|
|
299
299
|
/**
|
|
300
300
|
* The full name of the customer.
|
|
301
301
|
*/
|
|
302
|
-
name
|
|
302
|
+
name: string | null;
|
|
303
303
|
/**
|
|
304
304
|
* The email address of the customer.
|
|
305
305
|
*/
|
|
306
|
-
email
|
|
306
|
+
email: string | null;
|
|
307
307
|
/**
|
|
308
308
|
* Preconfigure the language to be used in the hosted payment pages shown to the customer. Should only be provided if
|
|
309
309
|
*
|
|
310
310
|
* @remarks
|
|
311
311
|
* absolutely necessary. If not provided, the browser language will be used which is typically highly accurate.
|
|
312
312
|
*/
|
|
313
|
-
locale
|
|
313
|
+
locale: ListCustomersLocale | null;
|
|
314
314
|
/**
|
|
315
315
|
* Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
|
|
316
316
|
*
|
|
317
317
|
* @remarks
|
|
318
318
|
* you fetch the entity with our API, we will also include the metadata. You can use up to approximately 1kB.
|
|
319
319
|
*/
|
|
320
|
-
metadata
|
|
320
|
+
metadata: ListCustomersMetadata | string | Array<string> | null;
|
|
321
321
|
/**
|
|
322
322
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
323
323
|
*/
|
|
324
|
-
createdAt
|
|
324
|
+
createdAt: string;
|
|
325
325
|
/**
|
|
326
326
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
327
327
|
*/
|
|
328
|
-
links
|
|
328
|
+
links: CustomerLinks;
|
|
329
329
|
};
|
|
330
330
|
|
|
331
331
|
export type ListCustomersEmbedded = {
|
|
@@ -1250,8 +1250,8 @@ export const CustomerLinks$inboundSchema: z.ZodType<
|
|
|
1250
1250
|
z.ZodTypeDef,
|
|
1251
1251
|
unknown
|
|
1252
1252
|
> = z.object({
|
|
1253
|
-
self: z.lazy(() => CustomerSelf$inboundSchema)
|
|
1254
|
-
dashboard: z.lazy(() => ListCustomersDashboard$inboundSchema)
|
|
1253
|
+
self: z.lazy(() => CustomerSelf$inboundSchema),
|
|
1254
|
+
dashboard: z.lazy(() => ListCustomersDashboard$inboundSchema),
|
|
1255
1255
|
payments: z.nullable(z.lazy(() => ListCustomersPayments$inboundSchema))
|
|
1256
1256
|
.optional(),
|
|
1257
1257
|
mandates: z.nullable(z.lazy(() => ListCustomersMandates$inboundSchema))
|
|
@@ -1259,17 +1259,17 @@ export const CustomerLinks$inboundSchema: z.ZodType<
|
|
|
1259
1259
|
subscriptions: z.nullable(
|
|
1260
1260
|
z.lazy(() => ListCustomersSubscriptions$inboundSchema),
|
|
1261
1261
|
).optional(),
|
|
1262
|
-
documentation: z.lazy(() => CustomerDocumentation$inboundSchema)
|
|
1262
|
+
documentation: z.lazy(() => CustomerDocumentation$inboundSchema),
|
|
1263
1263
|
});
|
|
1264
1264
|
|
|
1265
1265
|
/** @internal */
|
|
1266
1266
|
export type CustomerLinks$Outbound = {
|
|
1267
|
-
self
|
|
1268
|
-
dashboard
|
|
1267
|
+
self: CustomerSelf$Outbound;
|
|
1268
|
+
dashboard: ListCustomersDashboard$Outbound;
|
|
1269
1269
|
payments?: ListCustomersPayments$Outbound | null | undefined;
|
|
1270
1270
|
mandates?: ListCustomersMandates$Outbound | null | undefined;
|
|
1271
1271
|
subscriptions?: ListCustomersSubscriptions$Outbound | null | undefined;
|
|
1272
|
-
documentation
|
|
1272
|
+
documentation: CustomerDocumentation$Outbound;
|
|
1273
1273
|
};
|
|
1274
1274
|
|
|
1275
1275
|
/** @internal */
|
|
@@ -1278,8 +1278,8 @@ export const CustomerLinks$outboundSchema: z.ZodType<
|
|
|
1278
1278
|
z.ZodTypeDef,
|
|
1279
1279
|
CustomerLinks
|
|
1280
1280
|
> = z.object({
|
|
1281
|
-
self: z.lazy(() => CustomerSelf$outboundSchema)
|
|
1282
|
-
dashboard: z.lazy(() => ListCustomersDashboard$outboundSchema)
|
|
1281
|
+
self: z.lazy(() => CustomerSelf$outboundSchema),
|
|
1282
|
+
dashboard: z.lazy(() => ListCustomersDashboard$outboundSchema),
|
|
1283
1283
|
payments: z.nullable(z.lazy(() => ListCustomersPayments$outboundSchema))
|
|
1284
1284
|
.optional(),
|
|
1285
1285
|
mandates: z.nullable(z.lazy(() => ListCustomersMandates$outboundSchema))
|
|
@@ -1287,7 +1287,7 @@ export const CustomerLinks$outboundSchema: z.ZodType<
|
|
|
1287
1287
|
subscriptions: z.nullable(
|
|
1288
1288
|
z.lazy(() => ListCustomersSubscriptions$outboundSchema),
|
|
1289
1289
|
).optional(),
|
|
1290
|
-
documentation: z.lazy(() => CustomerDocumentation$outboundSchema)
|
|
1290
|
+
documentation: z.lazy(() => CustomerDocumentation$outboundSchema),
|
|
1291
1291
|
});
|
|
1292
1292
|
|
|
1293
1293
|
/**
|
|
@@ -1324,20 +1324,20 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
|
|
|
1324
1324
|
unknown
|
|
1325
1325
|
> = z.object({
|
|
1326
1326
|
resource: z.string().default("customer"),
|
|
1327
|
-
id: z.string()
|
|
1328
|
-
mode: ListCustomersMode$inboundSchema
|
|
1329
|
-
name: z.nullable(z.string())
|
|
1330
|
-
email: z.nullable(z.string())
|
|
1331
|
-
locale: z.nullable(ListCustomersLocale$inboundSchema)
|
|
1327
|
+
id: z.string(),
|
|
1328
|
+
mode: ListCustomersMode$inboundSchema,
|
|
1329
|
+
name: z.nullable(z.string()),
|
|
1330
|
+
email: z.nullable(z.string()),
|
|
1331
|
+
locale: z.nullable(ListCustomersLocale$inboundSchema),
|
|
1332
1332
|
metadata: z.nullable(
|
|
1333
1333
|
z.union([
|
|
1334
1334
|
z.lazy(() => ListCustomersMetadata$inboundSchema),
|
|
1335
1335
|
z.string(),
|
|
1336
1336
|
z.array(z.string()),
|
|
1337
1337
|
]),
|
|
1338
|
-
)
|
|
1339
|
-
createdAt: z.string()
|
|
1340
|
-
_links: z.lazy(() => CustomerLinks$inboundSchema)
|
|
1338
|
+
),
|
|
1339
|
+
createdAt: z.string(),
|
|
1340
|
+
_links: z.lazy(() => CustomerLinks$inboundSchema),
|
|
1341
1341
|
}).transform((v) => {
|
|
1342
1342
|
return remap$(v, {
|
|
1343
1343
|
"_links": "links",
|
|
@@ -1347,19 +1347,14 @@ export const ListCustomersCustomer$inboundSchema: z.ZodType<
|
|
|
1347
1347
|
/** @internal */
|
|
1348
1348
|
export type ListCustomersCustomer$Outbound = {
|
|
1349
1349
|
resource: string;
|
|
1350
|
-
id
|
|
1351
|
-
mode
|
|
1352
|
-
name
|
|
1353
|
-
email
|
|
1354
|
-
locale
|
|
1355
|
-
metadata
|
|
1356
|
-
|
|
1357
|
-
|
|
1358
|
-
| Array<string>
|
|
1359
|
-
| null
|
|
1360
|
-
| undefined;
|
|
1361
|
-
createdAt?: string | undefined;
|
|
1362
|
-
_links?: CustomerLinks$Outbound | undefined;
|
|
1350
|
+
id: string;
|
|
1351
|
+
mode: string;
|
|
1352
|
+
name: string | null;
|
|
1353
|
+
email: string | null;
|
|
1354
|
+
locale: string | null;
|
|
1355
|
+
metadata: ListCustomersMetadata$Outbound | string | Array<string> | null;
|
|
1356
|
+
createdAt: string;
|
|
1357
|
+
_links: CustomerLinks$Outbound;
|
|
1363
1358
|
};
|
|
1364
1359
|
|
|
1365
1360
|
/** @internal */
|
|
@@ -1369,20 +1364,20 @@ export const ListCustomersCustomer$outboundSchema: z.ZodType<
|
|
|
1369
1364
|
ListCustomersCustomer
|
|
1370
1365
|
> = z.object({
|
|
1371
1366
|
resource: z.string().default("customer"),
|
|
1372
|
-
id: z.string()
|
|
1373
|
-
mode: ListCustomersMode$outboundSchema
|
|
1374
|
-
name: z.nullable(z.string())
|
|
1375
|
-
email: z.nullable(z.string())
|
|
1376
|
-
locale: z.nullable(ListCustomersLocale$outboundSchema)
|
|
1367
|
+
id: z.string(),
|
|
1368
|
+
mode: ListCustomersMode$outboundSchema,
|
|
1369
|
+
name: z.nullable(z.string()),
|
|
1370
|
+
email: z.nullable(z.string()),
|
|
1371
|
+
locale: z.nullable(ListCustomersLocale$outboundSchema),
|
|
1377
1372
|
metadata: z.nullable(
|
|
1378
1373
|
z.union([
|
|
1379
1374
|
z.lazy(() => ListCustomersMetadata$outboundSchema),
|
|
1380
1375
|
z.string(),
|
|
1381
1376
|
z.array(z.string()),
|
|
1382
1377
|
]),
|
|
1383
|
-
)
|
|
1384
|
-
createdAt: z.string()
|
|
1385
|
-
links: z.lazy(() => CustomerLinks$outboundSchema)
|
|
1378
|
+
),
|
|
1379
|
+
createdAt: z.string(),
|
|
1380
|
+
links: z.lazy(() => CustomerLinks$outboundSchema),
|
|
1386
1381
|
}).transform((v) => {
|
|
1387
1382
|
return remap$(v, {
|
|
1388
1383
|
links: "_links",
|
|
@@ -253,15 +253,15 @@ export type MandateLinks = {
|
|
|
253
253
|
/**
|
|
254
254
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
255
255
|
*/
|
|
256
|
-
self
|
|
256
|
+
self: MandateSelf;
|
|
257
257
|
/**
|
|
258
258
|
* The API resource URL of the [customer](get-customer) that this mandate belongs to.
|
|
259
259
|
*/
|
|
260
|
-
customer
|
|
260
|
+
customer: ListMandatesCustomer;
|
|
261
261
|
/**
|
|
262
262
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
263
263
|
*/
|
|
264
|
-
documentation
|
|
264
|
+
documentation: MandateDocumentation;
|
|
265
265
|
};
|
|
266
266
|
|
|
267
267
|
export type ListMandatesMandate = {
|
|
@@ -272,11 +272,11 @@ export type ListMandatesMandate = {
|
|
|
272
272
|
/**
|
|
273
273
|
* The identifier uniquely referring to this mandate. Example: `mdt_pWUnw6pkBN`.
|
|
274
274
|
*/
|
|
275
|
-
id
|
|
275
|
+
id: string;
|
|
276
276
|
/**
|
|
277
277
|
* Whether this entity was created in live mode or in test mode.
|
|
278
278
|
*/
|
|
279
|
-
mode
|
|
279
|
+
mode: ListMandatesMode;
|
|
280
280
|
/**
|
|
281
281
|
* Payment method of the mandate.
|
|
282
282
|
*
|
|
@@ -284,38 +284,38 @@ export type ListMandatesMandate = {
|
|
|
284
284
|
*
|
|
285
285
|
* SEPA Direct Debit and PayPal mandates can be created directly.
|
|
286
286
|
*/
|
|
287
|
-
method
|
|
288
|
-
details
|
|
287
|
+
method: ListMandatesMethod;
|
|
288
|
+
details: ListMandatesDetails;
|
|
289
289
|
/**
|
|
290
290
|
* The date when the mandate was signed in `YYYY-MM-DD` format.
|
|
291
291
|
*/
|
|
292
|
-
signatureDate
|
|
292
|
+
signatureDate: string | null;
|
|
293
293
|
/**
|
|
294
294
|
* A custom mandate reference. For SEPA Direct Debit, it is vital to provide a unique reference. Some banks will
|
|
295
295
|
*
|
|
296
296
|
* @remarks
|
|
297
297
|
* decline Direct Debit payments if the mandate reference is not unique.
|
|
298
298
|
*/
|
|
299
|
-
mandateReference
|
|
299
|
+
mandateReference: string | null;
|
|
300
300
|
/**
|
|
301
301
|
* The status of the mandate. A status can be `pending` for mandates when the first payment is not yet finalized, or
|
|
302
302
|
*
|
|
303
303
|
* @remarks
|
|
304
304
|
* when we did not received the IBAN yet from the first payment.
|
|
305
305
|
*/
|
|
306
|
-
status
|
|
306
|
+
status: ListMandatesStatus;
|
|
307
307
|
/**
|
|
308
308
|
* The identifier referring to the [customer](get-customer) this mandate was linked to.
|
|
309
309
|
*/
|
|
310
|
-
customerId
|
|
310
|
+
customerId: string;
|
|
311
311
|
/**
|
|
312
312
|
* The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
|
|
313
313
|
*/
|
|
314
|
-
createdAt
|
|
314
|
+
createdAt: string;
|
|
315
315
|
/**
|
|
316
316
|
* An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
|
|
317
317
|
*/
|
|
318
|
-
links
|
|
318
|
+
links: MandateLinks;
|
|
319
319
|
};
|
|
320
320
|
|
|
321
321
|
export type ListMandatesEmbedded = {
|
|
@@ -1079,16 +1079,16 @@ export const MandateLinks$inboundSchema: z.ZodType<
|
|
|
1079
1079
|
z.ZodTypeDef,
|
|
1080
1080
|
unknown
|
|
1081
1081
|
> = z.object({
|
|
1082
|
-
self: z.lazy(() => MandateSelf$inboundSchema)
|
|
1083
|
-
customer: z.lazy(() => ListMandatesCustomer$inboundSchema)
|
|
1084
|
-
documentation: z.lazy(() => MandateDocumentation$inboundSchema)
|
|
1082
|
+
self: z.lazy(() => MandateSelf$inboundSchema),
|
|
1083
|
+
customer: z.lazy(() => ListMandatesCustomer$inboundSchema),
|
|
1084
|
+
documentation: z.lazy(() => MandateDocumentation$inboundSchema),
|
|
1085
1085
|
});
|
|
1086
1086
|
|
|
1087
1087
|
/** @internal */
|
|
1088
1088
|
export type MandateLinks$Outbound = {
|
|
1089
|
-
self
|
|
1090
|
-
customer
|
|
1091
|
-
documentation
|
|
1089
|
+
self: MandateSelf$Outbound;
|
|
1090
|
+
customer: ListMandatesCustomer$Outbound;
|
|
1091
|
+
documentation: MandateDocumentation$Outbound;
|
|
1092
1092
|
};
|
|
1093
1093
|
|
|
1094
1094
|
/** @internal */
|
|
@@ -1097,9 +1097,9 @@ export const MandateLinks$outboundSchema: z.ZodType<
|
|
|
1097
1097
|
z.ZodTypeDef,
|
|
1098
1098
|
MandateLinks
|
|
1099
1099
|
> = z.object({
|
|
1100
|
-
self: z.lazy(() => MandateSelf$outboundSchema)
|
|
1101
|
-
customer: z.lazy(() => ListMandatesCustomer$outboundSchema)
|
|
1102
|
-
documentation: z.lazy(() => MandateDocumentation$outboundSchema)
|
|
1100
|
+
self: z.lazy(() => MandateSelf$outboundSchema),
|
|
1101
|
+
customer: z.lazy(() => ListMandatesCustomer$outboundSchema),
|
|
1102
|
+
documentation: z.lazy(() => MandateDocumentation$outboundSchema),
|
|
1103
1103
|
});
|
|
1104
1104
|
|
|
1105
1105
|
/**
|
|
@@ -1136,16 +1136,16 @@ export const ListMandatesMandate$inboundSchema: z.ZodType<
|
|
|
1136
1136
|
unknown
|
|
1137
1137
|
> = z.object({
|
|
1138
1138
|
resource: z.string().default("mandate"),
|
|
1139
|
-
id: z.string()
|
|
1140
|
-
mode: ListMandatesMode$inboundSchema
|
|
1141
|
-
method: ListMandatesMethod$inboundSchema
|
|
1142
|
-
details: z.lazy(() => ListMandatesDetails$inboundSchema)
|
|
1143
|
-
signatureDate: z.nullable(z.string())
|
|
1144
|
-
mandateReference: z.nullable(z.string())
|
|
1145
|
-
status: ListMandatesStatus$inboundSchema
|
|
1146
|
-
customerId: z.string()
|
|
1147
|
-
createdAt: z.string()
|
|
1148
|
-
_links: z.lazy(() => MandateLinks$inboundSchema)
|
|
1139
|
+
id: z.string(),
|
|
1140
|
+
mode: ListMandatesMode$inboundSchema,
|
|
1141
|
+
method: ListMandatesMethod$inboundSchema,
|
|
1142
|
+
details: z.lazy(() => ListMandatesDetails$inboundSchema),
|
|
1143
|
+
signatureDate: z.nullable(z.string()),
|
|
1144
|
+
mandateReference: z.nullable(z.string()),
|
|
1145
|
+
status: ListMandatesStatus$inboundSchema,
|
|
1146
|
+
customerId: z.string(),
|
|
1147
|
+
createdAt: z.string(),
|
|
1148
|
+
_links: z.lazy(() => MandateLinks$inboundSchema),
|
|
1149
1149
|
}).transform((v) => {
|
|
1150
1150
|
return remap$(v, {
|
|
1151
1151
|
"_links": "links",
|
|
@@ -1155,16 +1155,16 @@ export const ListMandatesMandate$inboundSchema: z.ZodType<
|
|
|
1155
1155
|
/** @internal */
|
|
1156
1156
|
export type ListMandatesMandate$Outbound = {
|
|
1157
1157
|
resource: string;
|
|
1158
|
-
id
|
|
1159
|
-
mode
|
|
1160
|
-
method
|
|
1161
|
-
details
|
|
1162
|
-
signatureDate
|
|
1163
|
-
mandateReference
|
|
1164
|
-
status
|
|
1165
|
-
customerId
|
|
1166
|
-
createdAt
|
|
1167
|
-
_links
|
|
1158
|
+
id: string;
|
|
1159
|
+
mode: string;
|
|
1160
|
+
method: string;
|
|
1161
|
+
details: ListMandatesDetails$Outbound;
|
|
1162
|
+
signatureDate: string | null;
|
|
1163
|
+
mandateReference: string | null;
|
|
1164
|
+
status: string;
|
|
1165
|
+
customerId: string;
|
|
1166
|
+
createdAt: string;
|
|
1167
|
+
_links: MandateLinks$Outbound;
|
|
1168
1168
|
};
|
|
1169
1169
|
|
|
1170
1170
|
/** @internal */
|
|
@@ -1174,16 +1174,16 @@ export const ListMandatesMandate$outboundSchema: z.ZodType<
|
|
|
1174
1174
|
ListMandatesMandate
|
|
1175
1175
|
> = z.object({
|
|
1176
1176
|
resource: z.string().default("mandate"),
|
|
1177
|
-
id: z.string()
|
|
1178
|
-
mode: ListMandatesMode$outboundSchema
|
|
1179
|
-
method: ListMandatesMethod$outboundSchema
|
|
1180
|
-
details: z.lazy(() => ListMandatesDetails$outboundSchema)
|
|
1181
|
-
signatureDate: z.nullable(z.string())
|
|
1182
|
-
mandateReference: z.nullable(z.string())
|
|
1183
|
-
status: ListMandatesStatus$outboundSchema
|
|
1184
|
-
customerId: z.string()
|
|
1185
|
-
createdAt: z.string()
|
|
1186
|
-
links: z.lazy(() => MandateLinks$outboundSchema)
|
|
1177
|
+
id: z.string(),
|
|
1178
|
+
mode: ListMandatesMode$outboundSchema,
|
|
1179
|
+
method: ListMandatesMethod$outboundSchema,
|
|
1180
|
+
details: z.lazy(() => ListMandatesDetails$outboundSchema),
|
|
1181
|
+
signatureDate: z.nullable(z.string()),
|
|
1182
|
+
mandateReference: z.nullable(z.string()),
|
|
1183
|
+
status: ListMandatesStatus$outboundSchema,
|
|
1184
|
+
customerId: z.string(),
|
|
1185
|
+
createdAt: z.string(),
|
|
1186
|
+
links: z.lazy(() => MandateLinks$outboundSchema),
|
|
1187
1187
|
}).transform((v) => {
|
|
1188
1188
|
return remap$(v, {
|
|
1189
1189
|
links: "_links",
|
|
@@ -10,15 +10,21 @@ import { Result as SafeParseResult } from "../../types/fp.js";
|
|
|
10
10
|
import { SDKValidationError } from "../errors/sdkvalidationerror.js";
|
|
11
11
|
|
|
12
12
|
/**
|
|
13
|
-
* This endpoint allows
|
|
13
|
+
* This endpoint allows embedding related API items by appending the following values via the `embed` query string
|
|
14
|
+
*
|
|
15
|
+
* @remarks
|
|
16
|
+
* parameter.
|
|
14
17
|
*/
|
|
15
|
-
export const
|
|
18
|
+
export const ListRefundsEmbed = {
|
|
16
19
|
Payment: "payment",
|
|
17
20
|
} as const;
|
|
18
21
|
/**
|
|
19
|
-
* This endpoint allows
|
|
22
|
+
* This endpoint allows embedding related API items by appending the following values via the `embed` query string
|
|
23
|
+
*
|
|
24
|
+
* @remarks
|
|
25
|
+
* parameter.
|
|
20
26
|
*/
|
|
21
|
-
export type
|
|
27
|
+
export type ListRefundsEmbed = ClosedEnum<typeof ListRefundsEmbed>;
|
|
22
28
|
|
|
23
29
|
export type ListRefundsRequest = {
|
|
24
30
|
/**
|
|
@@ -37,9 +43,12 @@ export type ListRefundsRequest = {
|
|
|
37
43
|
*/
|
|
38
44
|
limit?: number | null | undefined;
|
|
39
45
|
/**
|
|
40
|
-
* This endpoint allows
|
|
46
|
+
* This endpoint allows embedding related API items by appending the following values via the `embed` query string
|
|
47
|
+
*
|
|
48
|
+
* @remarks
|
|
49
|
+
* parameter.
|
|
41
50
|
*/
|
|
42
|
-
|
|
51
|
+
embed?: ListRefundsEmbed | undefined;
|
|
43
52
|
/**
|
|
44
53
|
* Most API credentials are specifically created for either live mode or test mode. In those cases the `testmode` query
|
|
45
54
|
*
|
|
@@ -294,11 +303,11 @@ export type ListRefundsRefundLinks = {
|
|
|
294
303
|
/**
|
|
295
304
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
296
305
|
*/
|
|
297
|
-
self
|
|
306
|
+
self: ListRefundsRefundSelf;
|
|
298
307
|
/**
|
|
299
308
|
* The API resource URL of the [payment](get-payment) that this refund belongs to.
|
|
300
309
|
*/
|
|
301
|
-
payment
|
|
310
|
+
payment: ListRefundsPayment;
|
|
302
311
|
/**
|
|
303
312
|
* The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
|
|
304
313
|
*
|
|
@@ -309,7 +318,7 @@ export type ListRefundsRefundLinks = {
|
|
|
309
318
|
/**
|
|
310
319
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
311
320
|
*/
|
|
312
|
-
documentation
|
|
321
|
+
documentation: ListRefundsRefundDocumentation;
|
|
313
322
|
};
|
|
314
323
|
|
|
315
324
|
export type ListRefundsRefund = {
|
|
@@ -513,24 +522,24 @@ export type ListRefundsResponse = {
|
|
|
513
522
|
};
|
|
514
523
|
|
|
515
524
|
/** @internal */
|
|
516
|
-
export const
|
|
517
|
-
typeof
|
|
518
|
-
> = z.nativeEnum(
|
|
525
|
+
export const ListRefundsEmbed$inboundSchema: z.ZodNativeEnum<
|
|
526
|
+
typeof ListRefundsEmbed
|
|
527
|
+
> = z.nativeEnum(ListRefundsEmbed);
|
|
519
528
|
|
|
520
529
|
/** @internal */
|
|
521
|
-
export const
|
|
522
|
-
typeof
|
|
523
|
-
> =
|
|
530
|
+
export const ListRefundsEmbed$outboundSchema: z.ZodNativeEnum<
|
|
531
|
+
typeof ListRefundsEmbed
|
|
532
|
+
> = ListRefundsEmbed$inboundSchema;
|
|
524
533
|
|
|
525
534
|
/**
|
|
526
535
|
* @internal
|
|
527
536
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
528
537
|
*/
|
|
529
|
-
export namespace
|
|
530
|
-
/** @deprecated use `
|
|
531
|
-
export const inboundSchema =
|
|
532
|
-
/** @deprecated use `
|
|
533
|
-
export const outboundSchema =
|
|
538
|
+
export namespace ListRefundsEmbed$ {
|
|
539
|
+
/** @deprecated use `ListRefundsEmbed$inboundSchema` instead. */
|
|
540
|
+
export const inboundSchema = ListRefundsEmbed$inboundSchema;
|
|
541
|
+
/** @deprecated use `ListRefundsEmbed$outboundSchema` instead. */
|
|
542
|
+
export const outboundSchema = ListRefundsEmbed$outboundSchema;
|
|
534
543
|
}
|
|
535
544
|
|
|
536
545
|
/** @internal */
|
|
@@ -542,7 +551,7 @@ export const ListRefundsRequest$inboundSchema: z.ZodType<
|
|
|
542
551
|
paymentId: z.string(),
|
|
543
552
|
from: z.string().optional(),
|
|
544
553
|
limit: z.nullable(z.number().int().default(50)),
|
|
545
|
-
|
|
554
|
+
embed: ListRefundsEmbed$inboundSchema.optional(),
|
|
546
555
|
testmode: z.nullable(z.boolean()).optional(),
|
|
547
556
|
});
|
|
548
557
|
|
|
@@ -551,7 +560,7 @@ export type ListRefundsRequest$Outbound = {
|
|
|
551
560
|
paymentId: string;
|
|
552
561
|
from?: string | undefined;
|
|
553
562
|
limit: number | null;
|
|
554
|
-
|
|
563
|
+
embed?: string | undefined;
|
|
555
564
|
testmode?: boolean | null | undefined;
|
|
556
565
|
};
|
|
557
566
|
|
|
@@ -564,7 +573,7 @@ export const ListRefundsRequest$outboundSchema: z.ZodType<
|
|
|
564
573
|
paymentId: z.string(),
|
|
565
574
|
from: z.string().optional(),
|
|
566
575
|
limit: z.nullable(z.number().int().default(50)),
|
|
567
|
-
|
|
576
|
+
embed: ListRefundsEmbed$outboundSchema.optional(),
|
|
568
577
|
testmode: z.nullable(z.boolean()).optional(),
|
|
569
578
|
});
|
|
570
579
|
|
|
@@ -1582,20 +1591,19 @@ export const ListRefundsRefundLinks$inboundSchema: z.ZodType<
|
|
|
1582
1591
|
z.ZodTypeDef,
|
|
1583
1592
|
unknown
|
|
1584
1593
|
> = z.object({
|
|
1585
|
-
self: z.lazy(() => ListRefundsRefundSelf$inboundSchema)
|
|
1586
|
-
payment: z.lazy(() => ListRefundsPayment$inboundSchema)
|
|
1594
|
+
self: z.lazy(() => ListRefundsRefundSelf$inboundSchema),
|
|
1595
|
+
payment: z.lazy(() => ListRefundsPayment$inboundSchema),
|
|
1587
1596
|
settlement: z.nullable(z.lazy(() => ListRefundsSettlement$inboundSchema))
|
|
1588
1597
|
.optional(),
|
|
1589
|
-
documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema)
|
|
1590
|
-
.optional(),
|
|
1598
|
+
documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema),
|
|
1591
1599
|
});
|
|
1592
1600
|
|
|
1593
1601
|
/** @internal */
|
|
1594
1602
|
export type ListRefundsRefundLinks$Outbound = {
|
|
1595
|
-
self
|
|
1596
|
-
payment
|
|
1603
|
+
self: ListRefundsRefundSelf$Outbound;
|
|
1604
|
+
payment: ListRefundsPayment$Outbound;
|
|
1597
1605
|
settlement?: ListRefundsSettlement$Outbound | null | undefined;
|
|
1598
|
-
documentation
|
|
1606
|
+
documentation: ListRefundsRefundDocumentation$Outbound;
|
|
1599
1607
|
};
|
|
1600
1608
|
|
|
1601
1609
|
/** @internal */
|
|
@@ -1604,12 +1612,11 @@ export const ListRefundsRefundLinks$outboundSchema: z.ZodType<
|
|
|
1604
1612
|
z.ZodTypeDef,
|
|
1605
1613
|
ListRefundsRefundLinks
|
|
1606
1614
|
> = z.object({
|
|
1607
|
-
self: z.lazy(() => ListRefundsRefundSelf$outboundSchema)
|
|
1608
|
-
payment: z.lazy(() => ListRefundsPayment$outboundSchema)
|
|
1615
|
+
self: z.lazy(() => ListRefundsRefundSelf$outboundSchema),
|
|
1616
|
+
payment: z.lazy(() => ListRefundsPayment$outboundSchema),
|
|
1609
1617
|
settlement: z.nullable(z.lazy(() => ListRefundsSettlement$outboundSchema))
|
|
1610
1618
|
.optional(),
|
|
1611
|
-
documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema)
|
|
1612
|
-
.optional(),
|
|
1619
|
+
documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema),
|
|
1613
1620
|
});
|
|
1614
1621
|
|
|
1615
1622
|
/**
|
|
@@ -1649,7 +1656,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1649
1656
|
z.ZodTypeDef,
|
|
1650
1657
|
unknown
|
|
1651
1658
|
> = z.object({
|
|
1652
|
-
resource: z.string().
|
|
1659
|
+
resource: z.string().optional(),
|
|
1653
1660
|
id: z.string().optional(),
|
|
1654
1661
|
mode: ListRefundsMode$inboundSchema.optional(),
|
|
1655
1662
|
description: z.string().optional(),
|
|
@@ -1682,7 +1689,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1682
1689
|
|
|
1683
1690
|
/** @internal */
|
|
1684
1691
|
export type ListRefundsRefund$Outbound = {
|
|
1685
|
-
resource
|
|
1692
|
+
resource?: string | undefined;
|
|
1686
1693
|
id?: string | undefined;
|
|
1687
1694
|
mode?: string | undefined;
|
|
1688
1695
|
description?: string | undefined;
|
|
@@ -1712,7 +1719,7 @@ export const ListRefundsRefund$outboundSchema: z.ZodType<
|
|
|
1712
1719
|
z.ZodTypeDef,
|
|
1713
1720
|
ListRefundsRefund
|
|
1714
1721
|
> = z.object({
|
|
1715
|
-
resource: z.string().
|
|
1722
|
+
resource: z.string().optional(),
|
|
1716
1723
|
id: z.string().optional(),
|
|
1717
1724
|
mode: ListRefundsMode$outboundSchema.optional(),
|
|
1718
1725
|
description: z.string().optional(),
|