mollie-api-typescript 0.9.4 → 0.9.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.
Files changed (171) hide show
  1. package/_speakeasy/.github/action-inputs-config.json +53 -0
  2. package/_speakeasy/.github/action-security-config.json +88 -0
  3. package/bin/mcp-server.js +26812 -8535
  4. package/bin/mcp-server.js.map +201 -35
  5. package/dist/commonjs/lib/config.d.ts +3 -3
  6. package/dist/commonjs/lib/config.js +3 -3
  7. package/dist/commonjs/mcp-server/mcp-server.js +1 -1
  8. package/dist/commonjs/mcp-server/prompts.d.ts +3 -3
  9. package/dist/commonjs/mcp-server/prompts.d.ts.map +1 -1
  10. package/dist/commonjs/mcp-server/prompts.js.map +1 -1
  11. package/dist/commonjs/mcp-server/resources.d.ts +3 -3
  12. package/dist/commonjs/mcp-server/resources.d.ts.map +1 -1
  13. package/dist/commonjs/mcp-server/resources.js.map +1 -1
  14. package/dist/commonjs/mcp-server/server.js +1 -1
  15. package/dist/commonjs/mcp-server/tools.d.ts +3 -3
  16. package/dist/commonjs/mcp-server/tools.d.ts.map +1 -1
  17. package/dist/commonjs/mcp-server/tools.js.map +1 -1
  18. package/dist/commonjs/models/index.d.ts +1 -1
  19. package/dist/commonjs/models/index.d.ts.map +1 -1
  20. package/dist/commonjs/models/index.js +1 -1
  21. package/dist/commonjs/models/index.js.map +1 -1
  22. package/dist/commonjs/models/listentitymethodall.d.ts +0 -5
  23. package/dist/commonjs/models/listentitymethodall.d.ts.map +1 -1
  24. package/dist/commonjs/models/listentitymethodall.js +0 -2
  25. package/dist/commonjs/models/listentitymethodall.js.map +1 -1
  26. package/dist/commonjs/models/{listentityrefundresponse.d.ts → listentityrefund.d.ts} +52 -52
  27. package/dist/commonjs/models/listentityrefund.d.ts.map +1 -0
  28. package/dist/commonjs/models/listentityrefund.js +202 -0
  29. package/dist/commonjs/models/listentityrefund.js.map +1 -0
  30. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts +2 -2
  31. package/dist/commonjs/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  32. package/dist/commonjs/models/operations/getpaymentlinkpayments.js +2 -2
  33. package/dist/commonjs/models/operations/getpaymentlinkpayments.js.map +1 -1
  34. package/dist/commonjs/models/operations/listallchargebacks.d.ts +2 -2
  35. package/dist/commonjs/models/operations/listallchargebacks.d.ts.map +1 -1
  36. package/dist/commonjs/models/operations/listallchargebacks.js +2 -2
  37. package/dist/commonjs/models/operations/listallchargebacks.js.map +1 -1
  38. package/dist/commonjs/models/operations/listallrefunds.d.ts +2 -2
  39. package/dist/commonjs/models/operations/listallrefunds.d.ts.map +1 -1
  40. package/dist/commonjs/models/operations/listallrefunds.js +2 -2
  41. package/dist/commonjs/models/operations/listallrefunds.js.map +1 -1
  42. package/dist/commonjs/models/operations/listallsubscriptions.d.ts +2 -2
  43. package/dist/commonjs/models/operations/listallsubscriptions.d.ts.map +1 -1
  44. package/dist/commonjs/models/operations/listallsubscriptions.js +4 -2
  45. package/dist/commonjs/models/operations/listallsubscriptions.js.map +1 -1
  46. package/dist/commonjs/models/operations/listcaptures.d.ts +2 -2
  47. package/dist/commonjs/models/operations/listcaptures.d.ts.map +1 -1
  48. package/dist/commonjs/models/operations/listcaptures.js +2 -2
  49. package/dist/commonjs/models/operations/listcaptures.js.map +1 -1
  50. package/dist/commonjs/models/operations/listchargebacks.d.ts +2 -2
  51. package/dist/commonjs/models/operations/listchargebacks.d.ts.map +1 -1
  52. package/dist/commonjs/models/operations/listchargebacks.js +2 -2
  53. package/dist/commonjs/models/operations/listchargebacks.js.map +1 -1
  54. package/dist/commonjs/models/operations/listcustomerpayments.d.ts +2 -2
  55. package/dist/commonjs/models/operations/listcustomerpayments.d.ts.map +1 -1
  56. package/dist/commonjs/models/operations/listcustomerpayments.js +2 -2
  57. package/dist/commonjs/models/operations/listcustomerpayments.js.map +1 -1
  58. package/dist/commonjs/models/operations/listpayments.d.ts +2 -2
  59. package/dist/commonjs/models/operations/listpayments.d.ts.map +1 -1
  60. package/dist/commonjs/models/operations/listpayments.js +2 -2
  61. package/dist/commonjs/models/operations/listpayments.js.map +1 -1
  62. package/dist/commonjs/models/operations/listrefunds.d.ts +2 -2
  63. package/dist/commonjs/models/operations/listrefunds.d.ts.map +1 -1
  64. package/dist/commonjs/models/operations/listrefunds.js +2 -2
  65. package/dist/commonjs/models/operations/listrefunds.js.map +1 -1
  66. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts +2 -2
  67. package/dist/commonjs/models/operations/listsettlementrefunds.d.ts.map +1 -1
  68. package/dist/commonjs/models/operations/listsettlementrefunds.js +2 -2
  69. package/dist/commonjs/models/operations/listsettlementrefunds.js.map +1 -1
  70. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts +2 -2
  71. package/dist/commonjs/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  72. package/dist/commonjs/models/operations/listsubscriptionpayments.js +2 -2
  73. package/dist/commonjs/models/operations/listsubscriptionpayments.js.map +1 -1
  74. package/dist/esm/lib/config.d.ts +3 -3
  75. package/dist/esm/lib/config.js +3 -3
  76. package/dist/esm/mcp-server/mcp-server.js +1 -1
  77. package/dist/esm/mcp-server/prompts.d.ts +3 -3
  78. package/dist/esm/mcp-server/prompts.d.ts.map +1 -1
  79. package/dist/esm/mcp-server/prompts.js.map +1 -1
  80. package/dist/esm/mcp-server/resources.d.ts +3 -3
  81. package/dist/esm/mcp-server/resources.d.ts.map +1 -1
  82. package/dist/esm/mcp-server/resources.js.map +1 -1
  83. package/dist/esm/mcp-server/server.js +1 -1
  84. package/dist/esm/mcp-server/tools.d.ts +3 -3
  85. package/dist/esm/mcp-server/tools.d.ts.map +1 -1
  86. package/dist/esm/mcp-server/tools.js.map +1 -1
  87. package/dist/esm/models/index.d.ts +1 -1
  88. package/dist/esm/models/index.d.ts.map +1 -1
  89. package/dist/esm/models/index.js +1 -1
  90. package/dist/esm/models/index.js.map +1 -1
  91. package/dist/esm/models/listentitymethodall.d.ts +0 -5
  92. package/dist/esm/models/listentitymethodall.d.ts.map +1 -1
  93. package/dist/esm/models/listentitymethodall.js +0 -2
  94. package/dist/esm/models/listentitymethodall.js.map +1 -1
  95. package/dist/esm/models/{listentityrefundresponse.d.ts → listentityrefund.d.ts} +52 -52
  96. package/dist/esm/models/listentityrefund.d.ts.map +1 -0
  97. package/dist/esm/models/listentityrefund.js +154 -0
  98. package/dist/esm/models/listentityrefund.js.map +1 -0
  99. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts +2 -2
  100. package/dist/esm/models/operations/getpaymentlinkpayments.d.ts.map +1 -1
  101. package/dist/esm/models/operations/getpaymentlinkpayments.js +2 -2
  102. package/dist/esm/models/operations/getpaymentlinkpayments.js.map +1 -1
  103. package/dist/esm/models/operations/listallchargebacks.d.ts +2 -2
  104. package/dist/esm/models/operations/listallchargebacks.d.ts.map +1 -1
  105. package/dist/esm/models/operations/listallchargebacks.js +2 -2
  106. package/dist/esm/models/operations/listallchargebacks.js.map +1 -1
  107. package/dist/esm/models/operations/listallrefunds.d.ts +2 -2
  108. package/dist/esm/models/operations/listallrefunds.d.ts.map +1 -1
  109. package/dist/esm/models/operations/listallrefunds.js +2 -2
  110. package/dist/esm/models/operations/listallrefunds.js.map +1 -1
  111. package/dist/esm/models/operations/listallsubscriptions.d.ts +2 -2
  112. package/dist/esm/models/operations/listallsubscriptions.d.ts.map +1 -1
  113. package/dist/esm/models/operations/listallsubscriptions.js +4 -2
  114. package/dist/esm/models/operations/listallsubscriptions.js.map +1 -1
  115. package/dist/esm/models/operations/listcaptures.d.ts +2 -2
  116. package/dist/esm/models/operations/listcaptures.d.ts.map +1 -1
  117. package/dist/esm/models/operations/listcaptures.js +2 -2
  118. package/dist/esm/models/operations/listcaptures.js.map +1 -1
  119. package/dist/esm/models/operations/listchargebacks.d.ts +2 -2
  120. package/dist/esm/models/operations/listchargebacks.d.ts.map +1 -1
  121. package/dist/esm/models/operations/listchargebacks.js +2 -2
  122. package/dist/esm/models/operations/listchargebacks.js.map +1 -1
  123. package/dist/esm/models/operations/listcustomerpayments.d.ts +2 -2
  124. package/dist/esm/models/operations/listcustomerpayments.d.ts.map +1 -1
  125. package/dist/esm/models/operations/listcustomerpayments.js +2 -2
  126. package/dist/esm/models/operations/listcustomerpayments.js.map +1 -1
  127. package/dist/esm/models/operations/listpayments.d.ts +2 -2
  128. package/dist/esm/models/operations/listpayments.d.ts.map +1 -1
  129. package/dist/esm/models/operations/listpayments.js +2 -2
  130. package/dist/esm/models/operations/listpayments.js.map +1 -1
  131. package/dist/esm/models/operations/listrefunds.d.ts +2 -2
  132. package/dist/esm/models/operations/listrefunds.d.ts.map +1 -1
  133. package/dist/esm/models/operations/listrefunds.js +2 -2
  134. package/dist/esm/models/operations/listrefunds.js.map +1 -1
  135. package/dist/esm/models/operations/listsettlementrefunds.d.ts +2 -2
  136. package/dist/esm/models/operations/listsettlementrefunds.d.ts.map +1 -1
  137. package/dist/esm/models/operations/listsettlementrefunds.js +2 -2
  138. package/dist/esm/models/operations/listsettlementrefunds.js.map +1 -1
  139. package/dist/esm/models/operations/listsubscriptionpayments.d.ts +2 -2
  140. package/dist/esm/models/operations/listsubscriptionpayments.d.ts.map +1 -1
  141. package/dist/esm/models/operations/listsubscriptionpayments.js +2 -2
  142. package/dist/esm/models/operations/listsubscriptionpayments.js.map +1 -1
  143. package/examples/package-lock.json +2 -2
  144. package/jsr.json +1 -1
  145. package/package.json +2 -2
  146. package/src/lib/config.ts +3 -3
  147. package/src/mcp-server/mcp-server.ts +1 -1
  148. package/src/mcp-server/prompts.ts +7 -3
  149. package/src/mcp-server/resources.ts +7 -3
  150. package/src/mcp-server/server.ts +1 -1
  151. package/src/mcp-server/tools.ts +7 -3
  152. package/src/models/index.ts +1 -1
  153. package/src/models/listentitymethodall.ts +0 -7
  154. package/src/models/{listentityrefundresponse.ts → listentityrefund.ts} +123 -164
  155. package/src/models/operations/getpaymentlinkpayments.ts +4 -4
  156. package/src/models/operations/listallchargebacks.ts +4 -4
  157. package/src/models/operations/listallrefunds.ts +4 -4
  158. package/src/models/operations/listallsubscriptions.ts +6 -4
  159. package/src/models/operations/listcaptures.ts +4 -4
  160. package/src/models/operations/listchargebacks.ts +4 -4
  161. package/src/models/operations/listcustomerpayments.ts +4 -4
  162. package/src/models/operations/listpayments.ts +4 -4
  163. package/src/models/operations/listrefunds.ts +4 -4
  164. package/src/models/operations/listsettlementrefunds.ts +4 -4
  165. package/src/models/operations/listsubscriptionpayments.ts +4 -4
  166. package/dist/commonjs/models/listentityrefundresponse.d.ts.map +0 -1
  167. package/dist/commonjs/models/listentityrefundresponse.js +0 -203
  168. package/dist/commonjs/models/listentityrefundresponse.js.map +0 -1
  169. package/dist/esm/models/listentityrefundresponse.d.ts.map +0 -1
  170. package/dist/esm/models/listentityrefundresponse.js +0 -155
  171. package/dist/esm/models/listentityrefundresponse.js.map +0 -1
@@ -57,7 +57,7 @@ import {
57
57
  * To retrieve accurate settlement amounts we recommend using the
58
58
  * [List balance transactions endpoint](list-balance-transactions) instead.
59
59
  */
60
- export type ListEntityRefundResponseSettlementAmount = {
60
+ export type ListEntityRefundSettlementAmount = {
61
61
  /**
62
62
  * A three-character ISO 4217 currency code.
63
63
  */
@@ -68,7 +68,7 @@ export type ListEntityRefundResponseSettlementAmount = {
68
68
  value: string;
69
69
  };
70
70
 
71
- export const ListEntityRefundResponseStatus = {
71
+ export const ListEntityRefundStatus = {
72
72
  Queued: "queued",
73
73
  Pending: "pending",
74
74
  Processing: "processing",
@@ -76,11 +76,9 @@ export const ListEntityRefundResponseStatus = {
76
76
  Failed: "failed",
77
77
  Canceled: "canceled",
78
78
  } as const;
79
- export type ListEntityRefundResponseStatus = OpenEnum<
80
- typeof ListEntityRefundResponseStatus
81
- >;
79
+ export type ListEntityRefundStatus = OpenEnum<typeof ListEntityRefundStatus>;
82
80
 
83
- export type ListEntityRefundResponseExternalReference = {
81
+ export type ListEntityRefundExternalReference = {
84
82
  /**
85
83
  * Specifies the reference type
86
84
  */
@@ -94,11 +92,11 @@ export type ListEntityRefundResponseExternalReference = {
94
92
  /**
95
93
  * Where the funds will be pulled back from.
96
94
  */
97
- export type ListEntityRefundResponseSource = {
95
+ export type ListEntityRefundSource = {
98
96
  organizationId?: string | undefined;
99
97
  };
100
98
 
101
- export type ListEntityRefundResponseRoutingReversal = {
99
+ export type ListEntityRefundRoutingReversal = {
102
100
  /**
103
101
  * In v2 endpoints, monetary amounts are represented as objects with a `currency` and `value` field.
104
102
  */
@@ -106,13 +104,13 @@ export type ListEntityRefundResponseRoutingReversal = {
106
104
  /**
107
105
  * Where the funds will be pulled back from.
108
106
  */
109
- source?: ListEntityRefundResponseSource | undefined;
107
+ source?: ListEntityRefundSource | undefined;
110
108
  };
111
109
 
112
110
  /**
113
111
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
114
112
  */
115
- export type ListEntityRefundResponseLinks = {
113
+ export type ListEntityRefundLinks = {
116
114
  /**
117
115
  * In v2 endpoints, URLs are commonly represented as objects with an `href` and `type` field.
118
116
  */
@@ -127,7 +125,7 @@ export type ListEntityRefundResponseLinks = {
127
125
  settlement?: UrlNullable | null | undefined;
128
126
  };
129
127
 
130
- export type ListEntityRefundResponse = {
128
+ export type ListEntityRefund = {
131
129
  /**
132
130
  * Indicates the response contains a refund object. Will always contain the string `refund` for this endpoint.
133
131
  */
@@ -168,10 +166,7 @@ export type ListEntityRefundResponse = {
168
166
  * To retrieve accurate settlement amounts we recommend using the
169
167
  * [List balance transactions endpoint](list-balance-transactions) instead.
170
168
  */
171
- settlementAmount?:
172
- | ListEntityRefundResponseSettlementAmount
173
- | null
174
- | undefined;
169
+ settlementAmount?: ListEntityRefundSettlementAmount | null | undefined;
175
170
  /**
176
171
  * Provide any data you like, for example a string or a JSON object. We will save the data alongside the entity. Whenever
177
172
  *
@@ -190,12 +185,12 @@ export type ListEntityRefundResponse = {
190
185
  * The identifier referring to the settlement this refund was settled with. This field is omitted if the refund is not settled (yet).
191
186
  */
192
187
  settlementId?: string | null | undefined;
193
- status: ListEntityRefundResponseStatus;
188
+ status: ListEntityRefundStatus;
194
189
  /**
195
190
  * The entity's date and time of creation, in [ISO 8601](https://en.wikipedia.org/wiki/ISO_8601) format.
196
191
  */
197
192
  createdAt: string;
198
- externalReference?: ListEntityRefundResponseExternalReference | undefined;
193
+ externalReference?: ListEntityRefundExternalReference | undefined;
199
194
  /**
200
195
  * *This feature is only available to marketplace operators.*
201
196
  *
@@ -208,19 +203,16 @@ export type ListEntityRefundResponse = {
208
203
  *
209
204
  * If you simply want to fully reverse the routed funds, you can also use the `reverseRouting` parameter instead.
210
205
  */
211
- routingReversals?:
212
- | Array<ListEntityRefundResponseRoutingReversal>
213
- | null
214
- | undefined;
206
+ routingReversals?: Array<ListEntityRefundRoutingReversal> | null | undefined;
215
207
  /**
216
208
  * An object with several relevant URLs. Every URL object will contain an `href` and a `type` field.
217
209
  */
218
- links: ListEntityRefundResponseLinks;
210
+ links: ListEntityRefundLinks;
219
211
  };
220
212
 
221
213
  /** @internal */
222
- export const ListEntityRefundResponseSettlementAmount$inboundSchema: z.ZodType<
223
- ListEntityRefundResponseSettlementAmount,
214
+ export const ListEntityRefundSettlementAmount$inboundSchema: z.ZodType<
215
+ ListEntityRefundSettlementAmount,
224
216
  z.ZodTypeDef,
225
217
  unknown
226
218
  > = z.object({
@@ -228,63 +220,56 @@ export const ListEntityRefundResponseSettlementAmount$inboundSchema: z.ZodType<
228
220
  value: z.string(),
229
221
  });
230
222
  /** @internal */
231
- export type ListEntityRefundResponseSettlementAmount$Outbound = {
223
+ export type ListEntityRefundSettlementAmount$Outbound = {
232
224
  currency: string;
233
225
  value: string;
234
226
  };
235
227
 
236
228
  /** @internal */
237
- export const ListEntityRefundResponseSettlementAmount$outboundSchema: z.ZodType<
238
- ListEntityRefundResponseSettlementAmount$Outbound,
229
+ export const ListEntityRefundSettlementAmount$outboundSchema: z.ZodType<
230
+ ListEntityRefundSettlementAmount$Outbound,
239
231
  z.ZodTypeDef,
240
- ListEntityRefundResponseSettlementAmount
232
+ ListEntityRefundSettlementAmount
241
233
  > = z.object({
242
234
  currency: z.string(),
243
235
  value: z.string(),
244
236
  });
245
237
 
246
- export function listEntityRefundResponseSettlementAmountToJSON(
247
- listEntityRefundResponseSettlementAmount:
248
- ListEntityRefundResponseSettlementAmount,
238
+ export function listEntityRefundSettlementAmountToJSON(
239
+ listEntityRefundSettlementAmount: ListEntityRefundSettlementAmount,
249
240
  ): string {
250
241
  return JSON.stringify(
251
- ListEntityRefundResponseSettlementAmount$outboundSchema.parse(
252
- listEntityRefundResponseSettlementAmount,
242
+ ListEntityRefundSettlementAmount$outboundSchema.parse(
243
+ listEntityRefundSettlementAmount,
253
244
  ),
254
245
  );
255
246
  }
256
- export function listEntityRefundResponseSettlementAmountFromJSON(
247
+ export function listEntityRefundSettlementAmountFromJSON(
257
248
  jsonString: string,
258
- ): SafeParseResult<
259
- ListEntityRefundResponseSettlementAmount,
260
- SDKValidationError
261
- > {
249
+ ): SafeParseResult<ListEntityRefundSettlementAmount, SDKValidationError> {
262
250
  return safeParse(
263
251
  jsonString,
264
- (x) =>
265
- ListEntityRefundResponseSettlementAmount$inboundSchema.parse(
266
- JSON.parse(x),
267
- ),
268
- `Failed to parse 'ListEntityRefundResponseSettlementAmount' from JSON`,
252
+ (x) => ListEntityRefundSettlementAmount$inboundSchema.parse(JSON.parse(x)),
253
+ `Failed to parse 'ListEntityRefundSettlementAmount' from JSON`,
269
254
  );
270
255
  }
271
256
 
272
257
  /** @internal */
273
- export const ListEntityRefundResponseStatus$inboundSchema: z.ZodType<
274
- ListEntityRefundResponseStatus,
258
+ export const ListEntityRefundStatus$inboundSchema: z.ZodType<
259
+ ListEntityRefundStatus,
275
260
  z.ZodTypeDef,
276
261
  unknown
277
- > = openEnums.inboundSchema(ListEntityRefundResponseStatus);
262
+ > = openEnums.inboundSchema(ListEntityRefundStatus);
278
263
  /** @internal */
279
- export const ListEntityRefundResponseStatus$outboundSchema: z.ZodType<
264
+ export const ListEntityRefundStatus$outboundSchema: z.ZodType<
280
265
  string,
281
266
  z.ZodTypeDef,
282
- ListEntityRefundResponseStatus
283
- > = openEnums.outboundSchema(ListEntityRefundResponseStatus);
267
+ ListEntityRefundStatus
268
+ > = openEnums.outboundSchema(ListEntityRefundStatus);
284
269
 
285
270
  /** @internal */
286
- export const ListEntityRefundResponseExternalReference$inboundSchema: z.ZodType<
287
- ListEntityRefundResponseExternalReference,
271
+ export const ListEntityRefundExternalReference$inboundSchema: z.ZodType<
272
+ ListEntityRefundExternalReference,
288
273
  z.ZodTypeDef,
289
274
  unknown
290
275
  > = z.object({
@@ -292,144 +277,126 @@ export const ListEntityRefundResponseExternalReference$inboundSchema: z.ZodType<
292
277
  id: z.string().optional(),
293
278
  });
294
279
  /** @internal */
295
- export type ListEntityRefundResponseExternalReference$Outbound = {
280
+ export type ListEntityRefundExternalReference$Outbound = {
296
281
  type?: string | undefined;
297
282
  id?: string | undefined;
298
283
  };
299
284
 
300
285
  /** @internal */
301
- export const ListEntityRefundResponseExternalReference$outboundSchema:
302
- z.ZodType<
303
- ListEntityRefundResponseExternalReference$Outbound,
304
- z.ZodTypeDef,
305
- ListEntityRefundResponseExternalReference
306
- > = z.object({
307
- type: RefundExternalReferenceTypeResponse$outboundSchema.optional(),
308
- id: z.string().optional(),
309
- });
286
+ export const ListEntityRefundExternalReference$outboundSchema: z.ZodType<
287
+ ListEntityRefundExternalReference$Outbound,
288
+ z.ZodTypeDef,
289
+ ListEntityRefundExternalReference
290
+ > = z.object({
291
+ type: RefundExternalReferenceTypeResponse$outboundSchema.optional(),
292
+ id: z.string().optional(),
293
+ });
310
294
 
311
- export function listEntityRefundResponseExternalReferenceToJSON(
312
- listEntityRefundResponseExternalReference:
313
- ListEntityRefundResponseExternalReference,
295
+ export function listEntityRefundExternalReferenceToJSON(
296
+ listEntityRefundExternalReference: ListEntityRefundExternalReference,
314
297
  ): string {
315
298
  return JSON.stringify(
316
- ListEntityRefundResponseExternalReference$outboundSchema.parse(
317
- listEntityRefundResponseExternalReference,
299
+ ListEntityRefundExternalReference$outboundSchema.parse(
300
+ listEntityRefundExternalReference,
318
301
  ),
319
302
  );
320
303
  }
321
- export function listEntityRefundResponseExternalReferenceFromJSON(
304
+ export function listEntityRefundExternalReferenceFromJSON(
322
305
  jsonString: string,
323
- ): SafeParseResult<
324
- ListEntityRefundResponseExternalReference,
325
- SDKValidationError
326
- > {
306
+ ): SafeParseResult<ListEntityRefundExternalReference, SDKValidationError> {
327
307
  return safeParse(
328
308
  jsonString,
329
- (x) =>
330
- ListEntityRefundResponseExternalReference$inboundSchema.parse(
331
- JSON.parse(x),
332
- ),
333
- `Failed to parse 'ListEntityRefundResponseExternalReference' from JSON`,
309
+ (x) => ListEntityRefundExternalReference$inboundSchema.parse(JSON.parse(x)),
310
+ `Failed to parse 'ListEntityRefundExternalReference' from JSON`,
334
311
  );
335
312
  }
336
313
 
337
314
  /** @internal */
338
- export const ListEntityRefundResponseSource$inboundSchema: z.ZodType<
339
- ListEntityRefundResponseSource,
315
+ export const ListEntityRefundSource$inboundSchema: z.ZodType<
316
+ ListEntityRefundSource,
340
317
  z.ZodTypeDef,
341
318
  unknown
342
319
  > = z.object({
343
320
  organizationId: z.string().optional(),
344
321
  });
345
322
  /** @internal */
346
- export type ListEntityRefundResponseSource$Outbound = {
323
+ export type ListEntityRefundSource$Outbound = {
347
324
  organizationId?: string | undefined;
348
325
  };
349
326
 
350
327
  /** @internal */
351
- export const ListEntityRefundResponseSource$outboundSchema: z.ZodType<
352
- ListEntityRefundResponseSource$Outbound,
328
+ export const ListEntityRefundSource$outboundSchema: z.ZodType<
329
+ ListEntityRefundSource$Outbound,
353
330
  z.ZodTypeDef,
354
- ListEntityRefundResponseSource
331
+ ListEntityRefundSource
355
332
  > = z.object({
356
333
  organizationId: z.string().optional(),
357
334
  });
358
335
 
359
- export function listEntityRefundResponseSourceToJSON(
360
- listEntityRefundResponseSource: ListEntityRefundResponseSource,
336
+ export function listEntityRefundSourceToJSON(
337
+ listEntityRefundSource: ListEntityRefundSource,
361
338
  ): string {
362
339
  return JSON.stringify(
363
- ListEntityRefundResponseSource$outboundSchema.parse(
364
- listEntityRefundResponseSource,
365
- ),
340
+ ListEntityRefundSource$outboundSchema.parse(listEntityRefundSource),
366
341
  );
367
342
  }
368
- export function listEntityRefundResponseSourceFromJSON(
343
+ export function listEntityRefundSourceFromJSON(
369
344
  jsonString: string,
370
- ): SafeParseResult<ListEntityRefundResponseSource, SDKValidationError> {
345
+ ): SafeParseResult<ListEntityRefundSource, SDKValidationError> {
371
346
  return safeParse(
372
347
  jsonString,
373
- (x) => ListEntityRefundResponseSource$inboundSchema.parse(JSON.parse(x)),
374
- `Failed to parse 'ListEntityRefundResponseSource' from JSON`,
348
+ (x) => ListEntityRefundSource$inboundSchema.parse(JSON.parse(x)),
349
+ `Failed to parse 'ListEntityRefundSource' from JSON`,
375
350
  );
376
351
  }
377
352
 
378
353
  /** @internal */
379
- export const ListEntityRefundResponseRoutingReversal$inboundSchema: z.ZodType<
380
- ListEntityRefundResponseRoutingReversal,
354
+ export const ListEntityRefundRoutingReversal$inboundSchema: z.ZodType<
355
+ ListEntityRefundRoutingReversal,
381
356
  z.ZodTypeDef,
382
357
  unknown
383
358
  > = z.object({
384
359
  amount: Amount$inboundSchema.optional(),
385
- source: z.lazy(() => ListEntityRefundResponseSource$inboundSchema).optional(),
360
+ source: z.lazy(() => ListEntityRefundSource$inboundSchema).optional(),
386
361
  });
387
362
  /** @internal */
388
- export type ListEntityRefundResponseRoutingReversal$Outbound = {
363
+ export type ListEntityRefundRoutingReversal$Outbound = {
389
364
  amount?: Amount$Outbound | undefined;
390
- source?: ListEntityRefundResponseSource$Outbound | undefined;
365
+ source?: ListEntityRefundSource$Outbound | undefined;
391
366
  };
392
367
 
393
368
  /** @internal */
394
- export const ListEntityRefundResponseRoutingReversal$outboundSchema: z.ZodType<
395
- ListEntityRefundResponseRoutingReversal$Outbound,
369
+ export const ListEntityRefundRoutingReversal$outboundSchema: z.ZodType<
370
+ ListEntityRefundRoutingReversal$Outbound,
396
371
  z.ZodTypeDef,
397
- ListEntityRefundResponseRoutingReversal
372
+ ListEntityRefundRoutingReversal
398
373
  > = z.object({
399
374
  amount: Amount$outboundSchema.optional(),
400
- source: z.lazy(() => ListEntityRefundResponseSource$outboundSchema)
401
- .optional(),
375
+ source: z.lazy(() => ListEntityRefundSource$outboundSchema).optional(),
402
376
  });
403
377
 
404
- export function listEntityRefundResponseRoutingReversalToJSON(
405
- listEntityRefundResponseRoutingReversal:
406
- ListEntityRefundResponseRoutingReversal,
378
+ export function listEntityRefundRoutingReversalToJSON(
379
+ listEntityRefundRoutingReversal: ListEntityRefundRoutingReversal,
407
380
  ): string {
408
381
  return JSON.stringify(
409
- ListEntityRefundResponseRoutingReversal$outboundSchema.parse(
410
- listEntityRefundResponseRoutingReversal,
382
+ ListEntityRefundRoutingReversal$outboundSchema.parse(
383
+ listEntityRefundRoutingReversal,
411
384
  ),
412
385
  );
413
386
  }
414
- export function listEntityRefundResponseRoutingReversalFromJSON(
387
+ export function listEntityRefundRoutingReversalFromJSON(
415
388
  jsonString: string,
416
- ): SafeParseResult<
417
- ListEntityRefundResponseRoutingReversal,
418
- SDKValidationError
419
- > {
389
+ ): SafeParseResult<ListEntityRefundRoutingReversal, SDKValidationError> {
420
390
  return safeParse(
421
391
  jsonString,
422
- (x) =>
423
- ListEntityRefundResponseRoutingReversal$inboundSchema.parse(
424
- JSON.parse(x),
425
- ),
426
- `Failed to parse 'ListEntityRefundResponseRoutingReversal' from JSON`,
392
+ (x) => ListEntityRefundRoutingReversal$inboundSchema.parse(JSON.parse(x)),
393
+ `Failed to parse 'ListEntityRefundRoutingReversal' from JSON`,
427
394
  );
428
395
  }
429
396
 
430
397
  /** @internal */
431
- export const ListEntityRefundResponseLinks$inboundSchema: z.ZodType<
432
- ListEntityRefundResponseLinks,
398
+ export const ListEntityRefundLinks$inboundSchema: z.ZodType<
399
+ ListEntityRefundLinks,
433
400
  z.ZodTypeDef,
434
401
  unknown
435
402
  > = z.object({
@@ -438,45 +405,43 @@ export const ListEntityRefundResponseLinks$inboundSchema: z.ZodType<
438
405
  settlement: z.nullable(UrlNullable$inboundSchema).optional(),
439
406
  });
440
407
  /** @internal */
441
- export type ListEntityRefundResponseLinks$Outbound = {
408
+ export type ListEntityRefundLinks$Outbound = {
442
409
  self: Url$Outbound;
443
410
  payment: Url$Outbound;
444
411
  settlement?: UrlNullable$Outbound | null | undefined;
445
412
  };
446
413
 
447
414
  /** @internal */
448
- export const ListEntityRefundResponseLinks$outboundSchema: z.ZodType<
449
- ListEntityRefundResponseLinks$Outbound,
415
+ export const ListEntityRefundLinks$outboundSchema: z.ZodType<
416
+ ListEntityRefundLinks$Outbound,
450
417
  z.ZodTypeDef,
451
- ListEntityRefundResponseLinks
418
+ ListEntityRefundLinks
452
419
  > = z.object({
453
420
  self: Url$outboundSchema,
454
421
  payment: Url$outboundSchema,
455
422
  settlement: z.nullable(UrlNullable$outboundSchema).optional(),
456
423
  });
457
424
 
458
- export function listEntityRefundResponseLinksToJSON(
459
- listEntityRefundResponseLinks: ListEntityRefundResponseLinks,
425
+ export function listEntityRefundLinksToJSON(
426
+ listEntityRefundLinks: ListEntityRefundLinks,
460
427
  ): string {
461
428
  return JSON.stringify(
462
- ListEntityRefundResponseLinks$outboundSchema.parse(
463
- listEntityRefundResponseLinks,
464
- ),
429
+ ListEntityRefundLinks$outboundSchema.parse(listEntityRefundLinks),
465
430
  );
466
431
  }
467
- export function listEntityRefundResponseLinksFromJSON(
432
+ export function listEntityRefundLinksFromJSON(
468
433
  jsonString: string,
469
- ): SafeParseResult<ListEntityRefundResponseLinks, SDKValidationError> {
434
+ ): SafeParseResult<ListEntityRefundLinks, SDKValidationError> {
470
435
  return safeParse(
471
436
  jsonString,
472
- (x) => ListEntityRefundResponseLinks$inboundSchema.parse(JSON.parse(x)),
473
- `Failed to parse 'ListEntityRefundResponseLinks' from JSON`,
437
+ (x) => ListEntityRefundLinks$inboundSchema.parse(JSON.parse(x)),
438
+ `Failed to parse 'ListEntityRefundLinks' from JSON`,
474
439
  );
475
440
  }
476
441
 
477
442
  /** @internal */
478
- export const ListEntityRefundResponse$inboundSchema: z.ZodType<
479
- ListEntityRefundResponse,
443
+ export const ListEntityRefund$inboundSchema: z.ZodType<
444
+ ListEntityRefund,
480
445
  z.ZodTypeDef,
481
446
  unknown
482
447
  > = z.object({
@@ -486,36 +451,34 @@ export const ListEntityRefundResponse$inboundSchema: z.ZodType<
486
451
  description: z.string(),
487
452
  amount: Amount$inboundSchema,
488
453
  settlementAmount: z.nullable(
489
- z.lazy(() => ListEntityRefundResponseSettlementAmount$inboundSchema),
454
+ z.lazy(() => ListEntityRefundSettlementAmount$inboundSchema),
490
455
  ).optional(),
491
456
  metadata: z.nullable(Metadata$inboundSchema),
492
457
  paymentId: z.string().optional(),
493
458
  settlementId: z.nullable(z.string()).optional(),
494
- status: ListEntityRefundResponseStatus$inboundSchema,
459
+ status: ListEntityRefundStatus$inboundSchema,
495
460
  createdAt: z.string(),
496
461
  externalReference: z.lazy(() =>
497
- ListEntityRefundResponseExternalReference$inboundSchema
462
+ ListEntityRefundExternalReference$inboundSchema
498
463
  ).optional(),
499
464
  routingReversals: z.nullable(
500
- z.array(
501
- z.lazy(() => ListEntityRefundResponseRoutingReversal$inboundSchema),
502
- ),
465
+ z.array(z.lazy(() => ListEntityRefundRoutingReversal$inboundSchema)),
503
466
  ).optional(),
504
- _links: z.lazy(() => ListEntityRefundResponseLinks$inboundSchema),
467
+ _links: z.lazy(() => ListEntityRefundLinks$inboundSchema),
505
468
  }).transform((v) => {
506
469
  return remap$(v, {
507
470
  "_links": "links",
508
471
  });
509
472
  });
510
473
  /** @internal */
511
- export type ListEntityRefundResponse$Outbound = {
474
+ export type ListEntityRefund$Outbound = {
512
475
  resource: string;
513
476
  id: string;
514
477
  mode: string;
515
478
  description: string;
516
479
  amount: Amount$Outbound;
517
480
  settlementAmount?:
518
- | ListEntityRefundResponseSettlementAmount$Outbound
481
+ | ListEntityRefundSettlementAmount$Outbound
519
482
  | null
520
483
  | undefined;
521
484
  metadata: Metadata$Outbound | null;
@@ -523,21 +486,19 @@ export type ListEntityRefundResponse$Outbound = {
523
486
  settlementId?: string | null | undefined;
524
487
  status: string;
525
488
  createdAt: string;
526
- externalReference?:
527
- | ListEntityRefundResponseExternalReference$Outbound
528
- | undefined;
489
+ externalReference?: ListEntityRefundExternalReference$Outbound | undefined;
529
490
  routingReversals?:
530
- | Array<ListEntityRefundResponseRoutingReversal$Outbound>
491
+ | Array<ListEntityRefundRoutingReversal$Outbound>
531
492
  | null
532
493
  | undefined;
533
- _links: ListEntityRefundResponseLinks$Outbound;
494
+ _links: ListEntityRefundLinks$Outbound;
534
495
  };
535
496
 
536
497
  /** @internal */
537
- export const ListEntityRefundResponse$outboundSchema: z.ZodType<
538
- ListEntityRefundResponse$Outbound,
498
+ export const ListEntityRefund$outboundSchema: z.ZodType<
499
+ ListEntityRefund$Outbound,
539
500
  z.ZodTypeDef,
540
- ListEntityRefundResponse
501
+ ListEntityRefund
541
502
  > = z.object({
542
503
  resource: z.string(),
543
504
  id: z.string(),
@@ -545,41 +506,39 @@ export const ListEntityRefundResponse$outboundSchema: z.ZodType<
545
506
  description: z.string(),
546
507
  amount: Amount$outboundSchema,
547
508
  settlementAmount: z.nullable(
548
- z.lazy(() => ListEntityRefundResponseSettlementAmount$outboundSchema),
509
+ z.lazy(() => ListEntityRefundSettlementAmount$outboundSchema),
549
510
  ).optional(),
550
511
  metadata: z.nullable(Metadata$outboundSchema),
551
512
  paymentId: z.string().optional(),
552
513
  settlementId: z.nullable(z.string()).optional(),
553
- status: ListEntityRefundResponseStatus$outboundSchema,
514
+ status: ListEntityRefundStatus$outboundSchema,
554
515
  createdAt: z.string(),
555
516
  externalReference: z.lazy(() =>
556
- ListEntityRefundResponseExternalReference$outboundSchema
517
+ ListEntityRefundExternalReference$outboundSchema
557
518
  ).optional(),
558
519
  routingReversals: z.nullable(
559
- z.array(
560
- z.lazy(() => ListEntityRefundResponseRoutingReversal$outboundSchema),
561
- ),
520
+ z.array(z.lazy(() => ListEntityRefundRoutingReversal$outboundSchema)),
562
521
  ).optional(),
563
- links: z.lazy(() => ListEntityRefundResponseLinks$outboundSchema),
522
+ links: z.lazy(() => ListEntityRefundLinks$outboundSchema),
564
523
  }).transform((v) => {
565
524
  return remap$(v, {
566
525
  links: "_links",
567
526
  });
568
527
  });
569
528
 
570
- export function listEntityRefundResponseToJSON(
571
- listEntityRefundResponse: ListEntityRefundResponse,
529
+ export function listEntityRefundToJSON(
530
+ listEntityRefund: ListEntityRefund,
572
531
  ): string {
573
532
  return JSON.stringify(
574
- ListEntityRefundResponse$outboundSchema.parse(listEntityRefundResponse),
533
+ ListEntityRefund$outboundSchema.parse(listEntityRefund),
575
534
  );
576
535
  }
577
- export function listEntityRefundResponseFromJSON(
536
+ export function listEntityRefundFromJSON(
578
537
  jsonString: string,
579
- ): SafeParseResult<ListEntityRefundResponse, SDKValidationError> {
538
+ ): SafeParseResult<ListEntityRefund, SDKValidationError> {
580
539
  return safeParse(
581
540
  jsonString,
582
- (x) => ListEntityRefundResponse$inboundSchema.parse(JSON.parse(x)),
583
- `Failed to parse 'ListEntityRefundResponse' from JSON`,
541
+ (x) => ListEntityRefund$inboundSchema.parse(JSON.parse(x)),
542
+ `Failed to parse 'ListEntityRefund' from JSON`,
584
543
  );
585
544
  }
@@ -65,7 +65,7 @@ export type GetPaymentLinkPaymentsEmbedded = {
65
65
  /**
66
66
  * An array of payment objects.
67
67
  */
68
- payments?: Array<models.PaymentResponse> | undefined;
68
+ payments?: Array<models.ListPaymentResponse> | undefined;
69
69
  };
70
70
 
71
71
  /**
@@ -200,11 +200,11 @@ export const GetPaymentLinkPaymentsEmbedded$inboundSchema: z.ZodType<
200
200
  z.ZodTypeDef,
201
201
  unknown
202
202
  > = z.object({
203
- payments: z.array(models.PaymentResponse$inboundSchema).optional(),
203
+ payments: z.array(models.ListPaymentResponse$inboundSchema).optional(),
204
204
  });
205
205
  /** @internal */
206
206
  export type GetPaymentLinkPaymentsEmbedded$Outbound = {
207
- payments?: Array<models.PaymentResponse$Outbound> | undefined;
207
+ payments?: Array<models.ListPaymentResponse$Outbound> | undefined;
208
208
  };
209
209
 
210
210
  /** @internal */
@@ -213,7 +213,7 @@ export const GetPaymentLinkPaymentsEmbedded$outboundSchema: z.ZodType<
213
213
  z.ZodTypeDef,
214
214
  GetPaymentLinkPaymentsEmbedded
215
215
  > = z.object({
216
- payments: z.array(models.PaymentResponse$outboundSchema).optional(),
216
+ payments: z.array(models.ListPaymentResponse$outboundSchema).optional(),
217
217
  });
218
218
 
219
219
  export function getPaymentLinkPaymentsEmbeddedToJSON(
@@ -91,7 +91,7 @@ export type ListAllChargebacksEmbedded = {
91
91
  /**
92
92
  * A list of chargeback objects.
93
93
  */
94
- chargebacks: Array<models.EntityChargeback>;
94
+ chargebacks: Array<models.ListEntityChargeback>;
95
95
  };
96
96
 
97
97
  /**
@@ -228,11 +228,11 @@ export const ListAllChargebacksEmbedded$inboundSchema: z.ZodType<
228
228
  z.ZodTypeDef,
229
229
  unknown
230
230
  > = z.object({
231
- chargebacks: z.array(models.EntityChargeback$inboundSchema),
231
+ chargebacks: z.array(models.ListEntityChargeback$inboundSchema),
232
232
  });
233
233
  /** @internal */
234
234
  export type ListAllChargebacksEmbedded$Outbound = {
235
- chargebacks: Array<models.EntityChargeback$Outbound>;
235
+ chargebacks: Array<models.ListEntityChargeback$Outbound>;
236
236
  };
237
237
 
238
238
  /** @internal */
@@ -241,7 +241,7 @@ export const ListAllChargebacksEmbedded$outboundSchema: z.ZodType<
241
241
  z.ZodTypeDef,
242
242
  ListAllChargebacksEmbedded
243
243
  > = z.object({
244
- chargebacks: z.array(models.EntityChargeback$outboundSchema),
244
+ chargebacks: z.array(models.ListEntityChargeback$outboundSchema),
245
245
  });
246
246
 
247
247
  export function listAllChargebacksEmbeddedToJSON(
@@ -88,7 +88,7 @@ export type ListAllRefundsEmbedded = {
88
88
  /**
89
89
  * An array of refund objects.
90
90
  */
91
- refunds: Array<models.EntityRefundResponse>;
91
+ refunds: Array<models.ListEntityRefund>;
92
92
  };
93
93
 
94
94
  /**
@@ -225,11 +225,11 @@ export const ListAllRefundsEmbedded$inboundSchema: z.ZodType<
225
225
  z.ZodTypeDef,
226
226
  unknown
227
227
  > = z.object({
228
- refunds: z.array(models.EntityRefundResponse$inboundSchema),
228
+ refunds: z.array(models.ListEntityRefund$inboundSchema),
229
229
  });
230
230
  /** @internal */
231
231
  export type ListAllRefundsEmbedded$Outbound = {
232
- refunds: Array<models.EntityRefundResponse$Outbound>;
232
+ refunds: Array<models.ListEntityRefund$Outbound>;
233
233
  };
234
234
 
235
235
  /** @internal */
@@ -238,7 +238,7 @@ export const ListAllRefundsEmbedded$outboundSchema: z.ZodType<
238
238
  z.ZodTypeDef,
239
239
  ListAllRefundsEmbedded
240
240
  > = z.object({
241
- refunds: z.array(models.EntityRefundResponse$outboundSchema),
241
+ refunds: z.array(models.ListEntityRefund$outboundSchema),
242
242
  });
243
243
 
244
244
  export function listAllRefundsEmbeddedToJSON(