mollie-api-typescript 0.1.0 → 0.1.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 (54) hide show
  1. package/bin/mcp-server.js +42 -40
  2. package/bin/mcp-server.js.map +9 -9
  3. package/dist/commonjs/lib/config.d.ts +3 -3
  4. package/dist/commonjs/lib/config.js +3 -3
  5. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  6. package/dist/commonjs/mcp-server/server.js +1 -1
  7. package/dist/commonjs/models/operations/createpaymentlink.d.ts +11 -0
  8. package/dist/commonjs/models/operations/createpaymentlink.d.ts.map +1 -1
  9. package/dist/commonjs/models/operations/createpaymentlink.js +2 -0
  10. package/dist/commonjs/models/operations/createpaymentlink.js.map +1 -1
  11. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +6 -6
  12. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  13. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +6 -8
  14. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  15. package/dist/commonjs/models/operations/getwebhookevent.d.ts +17 -17
  16. package/dist/commonjs/models/operations/getwebhookevent.d.ts.map +1 -1
  17. package/dist/commonjs/models/operations/getwebhookevent.js +20 -20
  18. package/dist/commonjs/models/operations/getwebhookevent.js.map +1 -1
  19. package/dist/commonjs/models/operations/listpaymentlinks.d.ts +21 -21
  20. package/dist/commonjs/models/operations/listpaymentlinks.d.ts.map +1 -1
  21. package/dist/commonjs/models/operations/listpaymentlinks.js +24 -24
  22. package/dist/commonjs/models/operations/listpaymentlinks.js.map +1 -1
  23. package/dist/esm/lib/config.d.ts +3 -3
  24. package/dist/esm/lib/config.js +3 -3
  25. package/dist/esm/mcp-server/mcp-server.js +1 -1
  26. package/dist/esm/mcp-server/server.js +1 -1
  27. package/dist/esm/models/operations/createpaymentlink.d.ts +11 -0
  28. package/dist/esm/models/operations/createpaymentlink.d.ts.map +1 -1
  29. package/dist/esm/models/operations/createpaymentlink.js +2 -0
  30. package/dist/esm/models/operations/createpaymentlink.js.map +1 -1
  31. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +6 -6
  32. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  33. package/dist/esm/models/operations/getpaymentlinkpayments.js +6 -8
  34. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  35. package/dist/esm/models/operations/getwebhookevent.d.ts +17 -17
  36. package/dist/esm/models/operations/getwebhookevent.d.ts.map +1 -1
  37. package/dist/esm/models/operations/getwebhookevent.js +17 -17
  38. package/dist/esm/models/operations/getwebhookevent.js.map +1 -1
  39. package/dist/esm/models/operations/listpaymentlinks.d.ts +21 -21
  40. package/dist/esm/models/operations/listpaymentlinks.d.ts.map +1 -1
  41. package/dist/esm/models/operations/listpaymentlinks.js +21 -21
  42. package/dist/esm/models/operations/listpaymentlinks.js.map +1 -1
  43. package/docs/sdks/paymentlinks/README.md +2 -0
  44. package/examples/package-lock.json +1 -1
  45. package/examples/paymentsCreate.example.ts +1 -1
  46. package/jsr.json +1 -1
  47. package/package.json +1 -1
  48. package/src/lib/config.ts +3 -3
  49. package/src/mcp-server/mcp-server.ts +1 -1
  50. package/src/mcp-server/server.ts +1 -1
  51. package/src/models/operations/createpaymentlink.ts +13 -0
  52. package/src/models/operations/getpaymentlinkpayments.ts +12 -14
  53. package/src/models/operations/getwebhookevent.ts +34 -29
  54. package/src/models/operations/listpaymentlinks.ts +39 -38
@@ -1921,12 +1921,12 @@ export type GetPaymentLinkPaymentsResponse = {
1921
1921
  * The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
1922
1922
  * limit is 50 items.
1923
1923
  */
1924
- count?: number | undefined;
1925
- embedded?: GetPaymentLinkPaymentsEmbedded | undefined;
1924
+ count: number;
1925
+ embedded: GetPaymentLinkPaymentsEmbedded;
1926
1926
  /**
1927
1927
  * Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
1928
1928
  */
1929
- links?: GetPaymentLinkPaymentsLinks | undefined;
1929
+ links: GetPaymentLinkPaymentsLinks;
1930
1930
  };
1931
1931
 
1932
1932
  /** @internal */
@@ -5809,10 +5809,9 @@ export const GetPaymentLinkPaymentsResponse$inboundSchema: z.ZodType<
5809
5809
  z.ZodTypeDef,
5810
5810
  unknown
5811
5811
  > = z.object({
5812
- count: z.number().int().optional(),
5813
- _embedded: z.lazy(() => GetPaymentLinkPaymentsEmbedded$inboundSchema)
5814
- .optional(),
5815
- _links: z.lazy(() => GetPaymentLinkPaymentsLinks$inboundSchema).optional(),
5812
+ count: z.number().int(),
5813
+ _embedded: z.lazy(() => GetPaymentLinkPaymentsEmbedded$inboundSchema),
5814
+ _links: z.lazy(() => GetPaymentLinkPaymentsLinks$inboundSchema),
5816
5815
  }).transform((v) => {
5817
5816
  return remap$(v, {
5818
5817
  "_embedded": "embedded",
@@ -5822,9 +5821,9 @@ export const GetPaymentLinkPaymentsResponse$inboundSchema: z.ZodType<
5822
5821
 
5823
5822
  /** @internal */
5824
5823
  export type GetPaymentLinkPaymentsResponse$Outbound = {
5825
- count?: number | undefined;
5826
- _embedded?: GetPaymentLinkPaymentsEmbedded$Outbound | undefined;
5827
- _links?: GetPaymentLinkPaymentsLinks$Outbound | undefined;
5824
+ count: number;
5825
+ _embedded: GetPaymentLinkPaymentsEmbedded$Outbound;
5826
+ _links: GetPaymentLinkPaymentsLinks$Outbound;
5828
5827
  };
5829
5828
 
5830
5829
  /** @internal */
@@ -5833,10 +5832,9 @@ export const GetPaymentLinkPaymentsResponse$outboundSchema: z.ZodType<
5833
5832
  z.ZodTypeDef,
5834
5833
  GetPaymentLinkPaymentsResponse
5835
5834
  > = z.object({
5836
- count: z.number().int().optional(),
5837
- embedded: z.lazy(() => GetPaymentLinkPaymentsEmbedded$outboundSchema)
5838
- .optional(),
5839
- links: z.lazy(() => GetPaymentLinkPaymentsLinks$outboundSchema).optional(),
5835
+ count: z.number().int(),
5836
+ embedded: z.lazy(() => GetPaymentLinkPaymentsEmbedded$outboundSchema),
5837
+ links: z.lazy(() => GetPaymentLinkPaymentsLinks$outboundSchema),
5840
5838
  }).transform((v) => {
5841
5839
  return remap$(v, {
5842
5840
  embedded: "_embedded",
@@ -896,7 +896,7 @@ export type EntityLinks1 = {
896
896
  paymentLink: GetWebhookEventLinksPaymentLink;
897
897
  };
898
898
 
899
- export type GetWebhookEventPaymentLink = {
899
+ export type GetWebhookEventPaymentLinkOutput = {
900
900
  /**
901
901
  * Indicates the response contains a payment link object. Will always contain the string `payment-link` for this
902
902
  *
@@ -1073,13 +1073,16 @@ export type GetWebhookEventPaymentLink = {
1073
1073
  links: EntityLinks1;
1074
1074
  };
1075
1075
 
1076
- export type Entity = GetWebhookEventPaymentLink | GetWebhookEventProfile;
1076
+ export type Entity = GetWebhookEventPaymentLinkOutput | GetWebhookEventProfile;
1077
1077
 
1078
1078
  /**
1079
1079
  * Full payload of the event.
1080
1080
  */
1081
1081
  export type GetWebhookEventEmbedded = {
1082
- entity?: GetWebhookEventPaymentLink | GetWebhookEventProfile | undefined;
1082
+ entity?:
1083
+ | GetWebhookEventPaymentLinkOutput
1084
+ | GetWebhookEventProfile
1085
+ | undefined;
1083
1086
  };
1084
1087
 
1085
1088
  /**
@@ -3092,8 +3095,8 @@ export function entityLinks1FromJSON(
3092
3095
  }
3093
3096
 
3094
3097
  /** @internal */
3095
- export const GetWebhookEventPaymentLink$inboundSchema: z.ZodType<
3096
- GetWebhookEventPaymentLink,
3098
+ export const GetWebhookEventPaymentLinkOutput$inboundSchema: z.ZodType<
3099
+ GetWebhookEventPaymentLinkOutput,
3097
3100
  z.ZodTypeDef,
3098
3101
  unknown
3099
3102
  > = z.object({
@@ -3133,7 +3136,7 @@ export const GetWebhookEventPaymentLink$inboundSchema: z.ZodType<
3133
3136
  });
3134
3137
 
3135
3138
  /** @internal */
3136
- export type GetWebhookEventPaymentLink$Outbound = {
3139
+ export type GetWebhookEventPaymentLinkOutput$Outbound = {
3137
3140
  resource: string;
3138
3141
  id: string;
3139
3142
  mode: string;
@@ -3159,10 +3162,10 @@ export type GetWebhookEventPaymentLink$Outbound = {
3159
3162
  };
3160
3163
 
3161
3164
  /** @internal */
3162
- export const GetWebhookEventPaymentLink$outboundSchema: z.ZodType<
3163
- GetWebhookEventPaymentLink$Outbound,
3165
+ export const GetWebhookEventPaymentLinkOutput$outboundSchema: z.ZodType<
3166
+ GetWebhookEventPaymentLinkOutput$Outbound,
3164
3167
  z.ZodTypeDef,
3165
- GetWebhookEventPaymentLink
3168
+ GetWebhookEventPaymentLinkOutput
3166
3169
  > = z.object({
3167
3170
  resource: z.string(),
3168
3171
  id: z.string(),
@@ -3203,43 +3206,45 @@ export const GetWebhookEventPaymentLink$outboundSchema: z.ZodType<
3203
3206
  * @internal
3204
3207
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
3205
3208
  */
3206
- export namespace GetWebhookEventPaymentLink$ {
3207
- /** @deprecated use `GetWebhookEventPaymentLink$inboundSchema` instead. */
3208
- export const inboundSchema = GetWebhookEventPaymentLink$inboundSchema;
3209
- /** @deprecated use `GetWebhookEventPaymentLink$outboundSchema` instead. */
3210
- export const outboundSchema = GetWebhookEventPaymentLink$outboundSchema;
3211
- /** @deprecated use `GetWebhookEventPaymentLink$Outbound` instead. */
3212
- export type Outbound = GetWebhookEventPaymentLink$Outbound;
3209
+ export namespace GetWebhookEventPaymentLinkOutput$ {
3210
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$inboundSchema` instead. */
3211
+ export const inboundSchema = GetWebhookEventPaymentLinkOutput$inboundSchema;
3212
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$outboundSchema` instead. */
3213
+ export const outboundSchema = GetWebhookEventPaymentLinkOutput$outboundSchema;
3214
+ /** @deprecated use `GetWebhookEventPaymentLinkOutput$Outbound` instead. */
3215
+ export type Outbound = GetWebhookEventPaymentLinkOutput$Outbound;
3213
3216
  }
3214
3217
 
3215
- export function getWebhookEventPaymentLinkToJSON(
3216
- getWebhookEventPaymentLink: GetWebhookEventPaymentLink,
3218
+ export function getWebhookEventPaymentLinkOutputToJSON(
3219
+ getWebhookEventPaymentLinkOutput: GetWebhookEventPaymentLinkOutput,
3217
3220
  ): string {
3218
3221
  return JSON.stringify(
3219
- GetWebhookEventPaymentLink$outboundSchema.parse(getWebhookEventPaymentLink),
3222
+ GetWebhookEventPaymentLinkOutput$outboundSchema.parse(
3223
+ getWebhookEventPaymentLinkOutput,
3224
+ ),
3220
3225
  );
3221
3226
  }
3222
3227
 
3223
- export function getWebhookEventPaymentLinkFromJSON(
3228
+ export function getWebhookEventPaymentLinkOutputFromJSON(
3224
3229
  jsonString: string,
3225
- ): SafeParseResult<GetWebhookEventPaymentLink, SDKValidationError> {
3230
+ ): SafeParseResult<GetWebhookEventPaymentLinkOutput, SDKValidationError> {
3226
3231
  return safeParse(
3227
3232
  jsonString,
3228
- (x) => GetWebhookEventPaymentLink$inboundSchema.parse(JSON.parse(x)),
3229
- `Failed to parse 'GetWebhookEventPaymentLink' from JSON`,
3233
+ (x) => GetWebhookEventPaymentLinkOutput$inboundSchema.parse(JSON.parse(x)),
3234
+ `Failed to parse 'GetWebhookEventPaymentLinkOutput' from JSON`,
3230
3235
  );
3231
3236
  }
3232
3237
 
3233
3238
  /** @internal */
3234
3239
  export const Entity$inboundSchema: z.ZodType<Entity, z.ZodTypeDef, unknown> = z
3235
3240
  .union([
3236
- z.lazy(() => GetWebhookEventPaymentLink$inboundSchema),
3241
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
3237
3242
  z.lazy(() => GetWebhookEventProfile$inboundSchema),
3238
3243
  ]);
3239
3244
 
3240
3245
  /** @internal */
3241
3246
  export type Entity$Outbound =
3242
- | GetWebhookEventPaymentLink$Outbound
3247
+ | GetWebhookEventPaymentLinkOutput$Outbound
3243
3248
  | GetWebhookEventProfile$Outbound;
3244
3249
 
3245
3250
  /** @internal */
@@ -3248,7 +3253,7 @@ export const Entity$outboundSchema: z.ZodType<
3248
3253
  z.ZodTypeDef,
3249
3254
  Entity
3250
3255
  > = z.union([
3251
- z.lazy(() => GetWebhookEventPaymentLink$outboundSchema),
3256
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
3252
3257
  z.lazy(() => GetWebhookEventProfile$outboundSchema),
3253
3258
  ]);
3254
3259
 
@@ -3286,7 +3291,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
3286
3291
  unknown
3287
3292
  > = z.object({
3288
3293
  entity: z.union([
3289
- z.lazy(() => GetWebhookEventPaymentLink$inboundSchema),
3294
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$inboundSchema),
3290
3295
  z.lazy(() => GetWebhookEventProfile$inboundSchema),
3291
3296
  ]).optional(),
3292
3297
  });
@@ -3294,7 +3299,7 @@ export const GetWebhookEventEmbedded$inboundSchema: z.ZodType<
3294
3299
  /** @internal */
3295
3300
  export type GetWebhookEventEmbedded$Outbound = {
3296
3301
  entity?:
3297
- | GetWebhookEventPaymentLink$Outbound
3302
+ | GetWebhookEventPaymentLinkOutput$Outbound
3298
3303
  | GetWebhookEventProfile$Outbound
3299
3304
  | undefined;
3300
3305
  };
@@ -3306,7 +3311,7 @@ export const GetWebhookEventEmbedded$outboundSchema: z.ZodType<
3306
3311
  GetWebhookEventEmbedded
3307
3312
  > = z.object({
3308
3313
  entity: z.union([
3309
- z.lazy(() => GetWebhookEventPaymentLink$outboundSchema),
3314
+ z.lazy(() => GetWebhookEventPaymentLinkOutput$outboundSchema),
3310
3315
  z.lazy(() => GetWebhookEventProfile$outboundSchema),
3311
3316
  ]).optional(),
3312
3317
  });
@@ -607,7 +607,7 @@ export type PaymentLinkLinks = {
607
607
  paymentLink: ListPaymentLinksLinksPaymentLink;
608
608
  };
609
609
 
610
- export type ListPaymentLinksPaymentLink = {
610
+ export type ListPaymentLinksPaymentLinkOutput = {
611
611
  /**
612
612
  * Indicates the response contains a payment link object. Will always contain the string `payment-link` for this
613
613
  *
@@ -788,7 +788,7 @@ export type ListPaymentLinksEmbedded = {
788
788
  /**
789
789
  * An array of payment link objects.
790
790
  */
791
- paymentLinks?: Array<ListPaymentLinksPaymentLink> | undefined;
791
+ paymentLinks?: Array<ListPaymentLinksPaymentLinkOutput> | undefined;
792
792
  };
793
793
 
794
794
  /**
@@ -882,12 +882,12 @@ export type ListPaymentLinksResponse = {
882
882
  * The maximum number of items per result set is controlled by the `limit` property provided in the request. The default
883
883
  * limit is 50 items.
884
884
  */
885
- count?: number | undefined;
886
- embedded?: ListPaymentLinksEmbedded | undefined;
885
+ count: number;
886
+ embedded: ListPaymentLinksEmbedded;
887
887
  /**
888
888
  * Links to help navigate through the lists of items. Every URL object will contain an `href` and a `type` field.
889
889
  */
890
- links?: ListPaymentLinksLinks | undefined;
890
+ links: ListPaymentLinksLinks;
891
891
  };
892
892
 
893
893
  /** @internal */
@@ -2073,8 +2073,8 @@ export function paymentLinkLinksFromJSON(
2073
2073
  }
2074
2074
 
2075
2075
  /** @internal */
2076
- export const ListPaymentLinksPaymentLink$inboundSchema: z.ZodType<
2077
- ListPaymentLinksPaymentLink,
2076
+ export const ListPaymentLinksPaymentLinkOutput$inboundSchema: z.ZodType<
2077
+ ListPaymentLinksPaymentLinkOutput,
2078
2078
  z.ZodTypeDef,
2079
2079
  unknown
2080
2080
  > = z.object({
@@ -2114,7 +2114,7 @@ export const ListPaymentLinksPaymentLink$inboundSchema: z.ZodType<
2114
2114
  });
2115
2115
 
2116
2116
  /** @internal */
2117
- export type ListPaymentLinksPaymentLink$Outbound = {
2117
+ export type ListPaymentLinksPaymentLinkOutput$Outbound = {
2118
2118
  resource: string;
2119
2119
  id: string;
2120
2120
  mode: string;
@@ -2140,10 +2140,10 @@ export type ListPaymentLinksPaymentLink$Outbound = {
2140
2140
  };
2141
2141
 
2142
2142
  /** @internal */
2143
- export const ListPaymentLinksPaymentLink$outboundSchema: z.ZodType<
2144
- ListPaymentLinksPaymentLink$Outbound,
2143
+ export const ListPaymentLinksPaymentLinkOutput$outboundSchema: z.ZodType<
2144
+ ListPaymentLinksPaymentLinkOutput$Outbound,
2145
2145
  z.ZodTypeDef,
2146
- ListPaymentLinksPaymentLink
2146
+ ListPaymentLinksPaymentLinkOutput
2147
2147
  > = z.object({
2148
2148
  resource: z.string(),
2149
2149
  id: z.string(),
@@ -2184,32 +2184,33 @@ export const ListPaymentLinksPaymentLink$outboundSchema: z.ZodType<
2184
2184
  * @internal
2185
2185
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
2186
2186
  */
2187
- export namespace ListPaymentLinksPaymentLink$ {
2188
- /** @deprecated use `ListPaymentLinksPaymentLink$inboundSchema` instead. */
2189
- export const inboundSchema = ListPaymentLinksPaymentLink$inboundSchema;
2190
- /** @deprecated use `ListPaymentLinksPaymentLink$outboundSchema` instead. */
2191
- export const outboundSchema = ListPaymentLinksPaymentLink$outboundSchema;
2192
- /** @deprecated use `ListPaymentLinksPaymentLink$Outbound` instead. */
2193
- export type Outbound = ListPaymentLinksPaymentLink$Outbound;
2187
+ export namespace ListPaymentLinksPaymentLinkOutput$ {
2188
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$inboundSchema` instead. */
2189
+ export const inboundSchema = ListPaymentLinksPaymentLinkOutput$inboundSchema;
2190
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$outboundSchema` instead. */
2191
+ export const outboundSchema =
2192
+ ListPaymentLinksPaymentLinkOutput$outboundSchema;
2193
+ /** @deprecated use `ListPaymentLinksPaymentLinkOutput$Outbound` instead. */
2194
+ export type Outbound = ListPaymentLinksPaymentLinkOutput$Outbound;
2194
2195
  }
2195
2196
 
2196
- export function listPaymentLinksPaymentLinkToJSON(
2197
- listPaymentLinksPaymentLink: ListPaymentLinksPaymentLink,
2197
+ export function listPaymentLinksPaymentLinkOutputToJSON(
2198
+ listPaymentLinksPaymentLinkOutput: ListPaymentLinksPaymentLinkOutput,
2198
2199
  ): string {
2199
2200
  return JSON.stringify(
2200
- ListPaymentLinksPaymentLink$outboundSchema.parse(
2201
- listPaymentLinksPaymentLink,
2201
+ ListPaymentLinksPaymentLinkOutput$outboundSchema.parse(
2202
+ listPaymentLinksPaymentLinkOutput,
2202
2203
  ),
2203
2204
  );
2204
2205
  }
2205
2206
 
2206
- export function listPaymentLinksPaymentLinkFromJSON(
2207
+ export function listPaymentLinksPaymentLinkOutputFromJSON(
2207
2208
  jsonString: string,
2208
- ): SafeParseResult<ListPaymentLinksPaymentLink, SDKValidationError> {
2209
+ ): SafeParseResult<ListPaymentLinksPaymentLinkOutput, SDKValidationError> {
2209
2210
  return safeParse(
2210
2211
  jsonString,
2211
- (x) => ListPaymentLinksPaymentLink$inboundSchema.parse(JSON.parse(x)),
2212
- `Failed to parse 'ListPaymentLinksPaymentLink' from JSON`,
2212
+ (x) => ListPaymentLinksPaymentLinkOutput$inboundSchema.parse(JSON.parse(x)),
2213
+ `Failed to parse 'ListPaymentLinksPaymentLinkOutput' from JSON`,
2213
2214
  );
2214
2215
  }
2215
2216
 
@@ -2220,7 +2221,7 @@ export const ListPaymentLinksEmbedded$inboundSchema: z.ZodType<
2220
2221
  unknown
2221
2222
  > = z.object({
2222
2223
  payment_links: z.array(
2223
- z.lazy(() => ListPaymentLinksPaymentLink$inboundSchema),
2224
+ z.lazy(() => ListPaymentLinksPaymentLinkOutput$inboundSchema),
2224
2225
  ).optional(),
2225
2226
  }).transform((v) => {
2226
2227
  return remap$(v, {
@@ -2230,7 +2231,7 @@ export const ListPaymentLinksEmbedded$inboundSchema: z.ZodType<
2230
2231
 
2231
2232
  /** @internal */
2232
2233
  export type ListPaymentLinksEmbedded$Outbound = {
2233
- payment_links?: Array<ListPaymentLinksPaymentLink$Outbound> | undefined;
2234
+ payment_links?: Array<ListPaymentLinksPaymentLinkOutput$Outbound> | undefined;
2234
2235
  };
2235
2236
 
2236
2237
  /** @internal */
@@ -2240,7 +2241,7 @@ export const ListPaymentLinksEmbedded$outboundSchema: z.ZodType<
2240
2241
  ListPaymentLinksEmbedded
2241
2242
  > = z.object({
2242
2243
  paymentLinks: z.array(
2243
- z.lazy(() => ListPaymentLinksPaymentLink$outboundSchema),
2244
+ z.lazy(() => ListPaymentLinksPaymentLinkOutput$outboundSchema),
2244
2245
  ).optional(),
2245
2246
  }).transform((v) => {
2246
2247
  return remap$(v, {
@@ -2583,9 +2584,9 @@ export const ListPaymentLinksResponse$inboundSchema: z.ZodType<
2583
2584
  z.ZodTypeDef,
2584
2585
  unknown
2585
2586
  > = z.object({
2586
- count: z.number().int().optional(),
2587
- _embedded: z.lazy(() => ListPaymentLinksEmbedded$inboundSchema).optional(),
2588
- _links: z.lazy(() => ListPaymentLinksLinks$inboundSchema).optional(),
2587
+ count: z.number().int(),
2588
+ _embedded: z.lazy(() => ListPaymentLinksEmbedded$inboundSchema),
2589
+ _links: z.lazy(() => ListPaymentLinksLinks$inboundSchema),
2589
2590
  }).transform((v) => {
2590
2591
  return remap$(v, {
2591
2592
  "_embedded": "embedded",
@@ -2595,9 +2596,9 @@ export const ListPaymentLinksResponse$inboundSchema: z.ZodType<
2595
2596
 
2596
2597
  /** @internal */
2597
2598
  export type ListPaymentLinksResponse$Outbound = {
2598
- count?: number | undefined;
2599
- _embedded?: ListPaymentLinksEmbedded$Outbound | undefined;
2600
- _links?: ListPaymentLinksLinks$Outbound | undefined;
2599
+ count: number;
2600
+ _embedded: ListPaymentLinksEmbedded$Outbound;
2601
+ _links: ListPaymentLinksLinks$Outbound;
2601
2602
  };
2602
2603
 
2603
2604
  /** @internal */
@@ -2606,9 +2607,9 @@ export const ListPaymentLinksResponse$outboundSchema: z.ZodType<
2606
2607
  z.ZodTypeDef,
2607
2608
  ListPaymentLinksResponse
2608
2609
  > = z.object({
2609
- count: z.number().int().optional(),
2610
- embedded: z.lazy(() => ListPaymentLinksEmbedded$outboundSchema).optional(),
2611
- links: z.lazy(() => ListPaymentLinksLinks$outboundSchema).optional(),
2610
+ count: z.number().int(),
2611
+ embedded: z.lazy(() => ListPaymentLinksEmbedded$outboundSchema),
2612
+ links: z.lazy(() => ListPaymentLinksLinks$outboundSchema),
2612
2613
  }).transform((v) => {
2613
2614
  return remap$(v, {
2614
2615
  embedded: "_embedded",