mollie-api-typescript 0.0.5 → 0.0.6
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 +676 -1258
- package/bin/mcp-server.js.map +28 -28
- package/dist/commonjs/funcs/delayedRoutingList.js +4 -0
- package/dist/commonjs/funcs/delayedRoutingList.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 +2 -2
- package/dist/commonjs/lib/config.js +2 -2
- 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 +7 -7
- package/dist/commonjs/models/operations/getrefund.d.ts.map +1 -1
- package/dist/commonjs/models/operations/getrefund.js +8 -8
- 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 +7 -7
- package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listrefunds.js +8 -10
- package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/commonjs/models/operations/listsettlementrefunds.js +8 -8
- 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/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 +2 -2
- package/dist/esm/lib/config.js +2 -2
- 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 +7 -7
- package/dist/esm/models/operations/getrefund.d.ts.map +1 -1
- package/dist/esm/models/operations/getrefund.js +8 -8
- 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 +7 -7
- package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listrefunds.js +8 -10
- package/dist/esm/models/operations/listrefunds.js.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.d.ts +7 -7
- package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
- package/dist/esm/models/operations/listsettlementrefunds.js +8 -8
- 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/subscriptions/README.md +5 -4
- package/examples/package-lock.json +1 -1
- package/jsr.json +1 -1
- package/package.json +1 -1
- package/src/funcs/delayedRoutingList.ts +6 -1
- package/src/funcs/subscriptionsAll.ts +17 -8
- package/src/lib/config.ts +2 -2
- 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 +15 -15
- 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 +15 -17
- package/src/models/operations/listsettlementrefunds.ts +15 -15
- 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",
|
|
@@ -294,11 +294,11 @@ export type ListRefundsRefundLinks = {
|
|
|
294
294
|
/**
|
|
295
295
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
296
296
|
*/
|
|
297
|
-
self
|
|
297
|
+
self: ListRefundsRefundSelf;
|
|
298
298
|
/**
|
|
299
299
|
* The API resource URL of the [payment](get-payment) that this refund belongs to.
|
|
300
300
|
*/
|
|
301
|
-
payment
|
|
301
|
+
payment: ListRefundsPayment;
|
|
302
302
|
/**
|
|
303
303
|
* The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
|
|
304
304
|
*
|
|
@@ -309,7 +309,7 @@ export type ListRefundsRefundLinks = {
|
|
|
309
309
|
/**
|
|
310
310
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
311
311
|
*/
|
|
312
|
-
documentation
|
|
312
|
+
documentation: ListRefundsRefundDocumentation;
|
|
313
313
|
};
|
|
314
314
|
|
|
315
315
|
export type ListRefundsRefund = {
|
|
@@ -1582,20 +1582,19 @@ export const ListRefundsRefundLinks$inboundSchema: z.ZodType<
|
|
|
1582
1582
|
z.ZodTypeDef,
|
|
1583
1583
|
unknown
|
|
1584
1584
|
> = z.object({
|
|
1585
|
-
self: z.lazy(() => ListRefundsRefundSelf$inboundSchema)
|
|
1586
|
-
payment: z.lazy(() => ListRefundsPayment$inboundSchema)
|
|
1585
|
+
self: z.lazy(() => ListRefundsRefundSelf$inboundSchema),
|
|
1586
|
+
payment: z.lazy(() => ListRefundsPayment$inboundSchema),
|
|
1587
1587
|
settlement: z.nullable(z.lazy(() => ListRefundsSettlement$inboundSchema))
|
|
1588
1588
|
.optional(),
|
|
1589
|
-
documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema)
|
|
1590
|
-
.optional(),
|
|
1589
|
+
documentation: z.lazy(() => ListRefundsRefundDocumentation$inboundSchema),
|
|
1591
1590
|
});
|
|
1592
1591
|
|
|
1593
1592
|
/** @internal */
|
|
1594
1593
|
export type ListRefundsRefundLinks$Outbound = {
|
|
1595
|
-
self
|
|
1596
|
-
payment
|
|
1594
|
+
self: ListRefundsRefundSelf$Outbound;
|
|
1595
|
+
payment: ListRefundsPayment$Outbound;
|
|
1597
1596
|
settlement?: ListRefundsSettlement$Outbound | null | undefined;
|
|
1598
|
-
documentation
|
|
1597
|
+
documentation: ListRefundsRefundDocumentation$Outbound;
|
|
1599
1598
|
};
|
|
1600
1599
|
|
|
1601
1600
|
/** @internal */
|
|
@@ -1604,12 +1603,11 @@ export const ListRefundsRefundLinks$outboundSchema: z.ZodType<
|
|
|
1604
1603
|
z.ZodTypeDef,
|
|
1605
1604
|
ListRefundsRefundLinks
|
|
1606
1605
|
> = z.object({
|
|
1607
|
-
self: z.lazy(() => ListRefundsRefundSelf$outboundSchema)
|
|
1608
|
-
payment: z.lazy(() => ListRefundsPayment$outboundSchema)
|
|
1606
|
+
self: z.lazy(() => ListRefundsRefundSelf$outboundSchema),
|
|
1607
|
+
payment: z.lazy(() => ListRefundsPayment$outboundSchema),
|
|
1609
1608
|
settlement: z.nullable(z.lazy(() => ListRefundsSettlement$outboundSchema))
|
|
1610
1609
|
.optional(),
|
|
1611
|
-
documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema)
|
|
1612
|
-
.optional(),
|
|
1610
|
+
documentation: z.lazy(() => ListRefundsRefundDocumentation$outboundSchema),
|
|
1613
1611
|
});
|
|
1614
1612
|
|
|
1615
1613
|
/**
|
|
@@ -1649,7 +1647,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1649
1647
|
z.ZodTypeDef,
|
|
1650
1648
|
unknown
|
|
1651
1649
|
> = z.object({
|
|
1652
|
-
resource: z.string().
|
|
1650
|
+
resource: z.string().optional(),
|
|
1653
1651
|
id: z.string().optional(),
|
|
1654
1652
|
mode: ListRefundsMode$inboundSchema.optional(),
|
|
1655
1653
|
description: z.string().optional(),
|
|
@@ -1682,7 +1680,7 @@ export const ListRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1682
1680
|
|
|
1683
1681
|
/** @internal */
|
|
1684
1682
|
export type ListRefundsRefund$Outbound = {
|
|
1685
|
-
resource
|
|
1683
|
+
resource?: string | undefined;
|
|
1686
1684
|
id?: string | undefined;
|
|
1687
1685
|
mode?: string | undefined;
|
|
1688
1686
|
description?: string | undefined;
|
|
@@ -1712,7 +1710,7 @@ export const ListRefundsRefund$outboundSchema: z.ZodType<
|
|
|
1712
1710
|
z.ZodTypeDef,
|
|
1713
1711
|
ListRefundsRefund
|
|
1714
1712
|
> = z.object({
|
|
1715
|
-
resource: z.string().
|
|
1713
|
+
resource: z.string().optional(),
|
|
1716
1714
|
id: z.string().optional(),
|
|
1717
1715
|
mode: ListRefundsMode$outboundSchema.optional(),
|
|
1718
1716
|
description: z.string().optional(),
|
|
@@ -302,11 +302,11 @@ export type ListSettlementRefundsRefundLinks = {
|
|
|
302
302
|
/**
|
|
303
303
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
304
304
|
*/
|
|
305
|
-
self
|
|
305
|
+
self: ListSettlementRefundsRefundSelf;
|
|
306
306
|
/**
|
|
307
307
|
* The API resource URL of the [payment](get-payment) that this refund belongs to.
|
|
308
308
|
*/
|
|
309
|
-
payment
|
|
309
|
+
payment: ListSettlementRefundsPayment;
|
|
310
310
|
/**
|
|
311
311
|
* The API resource URL of the [settlement](get-settlement) this refund has been settled with. Not present if not
|
|
312
312
|
*
|
|
@@ -317,7 +317,7 @@ export type ListSettlementRefundsRefundLinks = {
|
|
|
317
317
|
/**
|
|
318
318
|
* In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
|
|
319
319
|
*/
|
|
320
|
-
documentation
|
|
320
|
+
documentation: ListSettlementRefundsRefundDocumentation;
|
|
321
321
|
};
|
|
322
322
|
|
|
323
323
|
export type ListSettlementRefundsRefund = {
|
|
@@ -1678,22 +1678,22 @@ export const ListSettlementRefundsRefundLinks$inboundSchema: z.ZodType<
|
|
|
1678
1678
|
z.ZodTypeDef,
|
|
1679
1679
|
unknown
|
|
1680
1680
|
> = z.object({
|
|
1681
|
-
self: z.lazy(() => ListSettlementRefundsRefundSelf$inboundSchema)
|
|
1682
|
-
payment: z.lazy(() => ListSettlementRefundsPayment$inboundSchema)
|
|
1681
|
+
self: z.lazy(() => ListSettlementRefundsRefundSelf$inboundSchema),
|
|
1682
|
+
payment: z.lazy(() => ListSettlementRefundsPayment$inboundSchema),
|
|
1683
1683
|
settlement: z.nullable(
|
|
1684
1684
|
z.lazy(() => ListSettlementRefundsSettlement$inboundSchema),
|
|
1685
1685
|
).optional(),
|
|
1686
1686
|
documentation: z.lazy(() =>
|
|
1687
1687
|
ListSettlementRefundsRefundDocumentation$inboundSchema
|
|
1688
|
-
)
|
|
1688
|
+
),
|
|
1689
1689
|
});
|
|
1690
1690
|
|
|
1691
1691
|
/** @internal */
|
|
1692
1692
|
export type ListSettlementRefundsRefundLinks$Outbound = {
|
|
1693
|
-
self
|
|
1694
|
-
payment
|
|
1693
|
+
self: ListSettlementRefundsRefundSelf$Outbound;
|
|
1694
|
+
payment: ListSettlementRefundsPayment$Outbound;
|
|
1695
1695
|
settlement?: ListSettlementRefundsSettlement$Outbound | null | undefined;
|
|
1696
|
-
documentation
|
|
1696
|
+
documentation: ListSettlementRefundsRefundDocumentation$Outbound;
|
|
1697
1697
|
};
|
|
1698
1698
|
|
|
1699
1699
|
/** @internal */
|
|
@@ -1702,14 +1702,14 @@ export const ListSettlementRefundsRefundLinks$outboundSchema: z.ZodType<
|
|
|
1702
1702
|
z.ZodTypeDef,
|
|
1703
1703
|
ListSettlementRefundsRefundLinks
|
|
1704
1704
|
> = z.object({
|
|
1705
|
-
self: z.lazy(() => ListSettlementRefundsRefundSelf$outboundSchema)
|
|
1706
|
-
payment: z.lazy(() => ListSettlementRefundsPayment$outboundSchema)
|
|
1705
|
+
self: z.lazy(() => ListSettlementRefundsRefundSelf$outboundSchema),
|
|
1706
|
+
payment: z.lazy(() => ListSettlementRefundsPayment$outboundSchema),
|
|
1707
1707
|
settlement: z.nullable(
|
|
1708
1708
|
z.lazy(() => ListSettlementRefundsSettlement$outboundSchema),
|
|
1709
1709
|
).optional(),
|
|
1710
1710
|
documentation: z.lazy(() =>
|
|
1711
1711
|
ListSettlementRefundsRefundDocumentation$outboundSchema
|
|
1712
|
-
)
|
|
1712
|
+
),
|
|
1713
1713
|
});
|
|
1714
1714
|
|
|
1715
1715
|
/**
|
|
@@ -1751,7 +1751,7 @@ export const ListSettlementRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1751
1751
|
z.ZodTypeDef,
|
|
1752
1752
|
unknown
|
|
1753
1753
|
> = z.object({
|
|
1754
|
-
resource: z.string().
|
|
1754
|
+
resource: z.string().optional(),
|
|
1755
1755
|
id: z.string().optional(),
|
|
1756
1756
|
mode: ListSettlementRefundsMode$inboundSchema.optional(),
|
|
1757
1757
|
description: z.string().optional(),
|
|
@@ -1786,7 +1786,7 @@ export const ListSettlementRefundsRefund$inboundSchema: z.ZodType<
|
|
|
1786
1786
|
|
|
1787
1787
|
/** @internal */
|
|
1788
1788
|
export type ListSettlementRefundsRefund$Outbound = {
|
|
1789
|
-
resource
|
|
1789
|
+
resource?: string | undefined;
|
|
1790
1790
|
id?: string | undefined;
|
|
1791
1791
|
mode?: string | undefined;
|
|
1792
1792
|
description?: string | undefined;
|
|
@@ -1821,7 +1821,7 @@ export const ListSettlementRefundsRefund$outboundSchema: z.ZodType<
|
|
|
1821
1821
|
z.ZodTypeDef,
|
|
1822
1822
|
ListSettlementRefundsRefund
|
|
1823
1823
|
> = z.object({
|
|
1824
|
-
resource: z.string().
|
|
1824
|
+
resource: z.string().optional(),
|
|
1825
1825
|
id: z.string().optional(),
|
|
1826
1826
|
mode: ListSettlementRefundsMode$outboundSchema.optional(),
|
|
1827
1827
|
description: z.string().optional(),
|