@gr4vy/sdk 1.6.9 → 1.7.0

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 (251) hide show
  1. package/examples/package-lock.json +1 -1
  2. package/funcs/transactionsCreate.d.ts +1 -1
  3. package/funcs/transactionsCreate.d.ts.map +1 -1
  4. package/funcs/transactionsCreate.js +1 -1
  5. package/funcs/transactionsCreate.js.map +1 -1
  6. package/funcs/transactionsGet.d.ts +1 -1
  7. package/funcs/transactionsGet.d.ts.map +1 -1
  8. package/funcs/transactionsGet.js +1 -1
  9. package/funcs/transactionsGet.js.map +1 -1
  10. package/funcs/transactionsSync.d.ts +1 -1
  11. package/funcs/transactionsSync.d.ts.map +1 -1
  12. package/funcs/transactionsSync.js +1 -1
  13. package/funcs/transactionsSync.js.map +1 -1
  14. package/funcs/transactionsUpdate.d.ts +1 -1
  15. package/funcs/transactionsUpdate.d.ts.map +1 -1
  16. package/funcs/transactionsUpdate.js +1 -1
  17. package/funcs/transactionsUpdate.js.map +1 -1
  18. package/jsr.json +1 -1
  19. package/lib/config.d.ts +3 -3
  20. package/lib/config.js +3 -3
  21. package/lib/encodings.d.ts.map +1 -1
  22. package/lib/encodings.js +3 -1
  23. package/lib/encodings.js.map +1 -1
  24. package/models/components/auditlogentries.d.ts +2 -2
  25. package/models/components/auditlogentries.d.ts.map +1 -1
  26. package/models/components/auditlogentries.js +2 -2
  27. package/models/components/auditlogentries.js.map +1 -1
  28. package/models/components/{auditlogentryoutput.d.ts → auditlogentry.d.ts} +4 -4
  29. package/models/components/auditlogentry.d.ts.map +1 -0
  30. package/models/components/{auditlogentryoutput.js → auditlogentry.js} +6 -6
  31. package/models/components/auditlogentry.js.map +1 -0
  32. package/models/components/{billingdetailsinput.d.ts → billingdetails.d.ts} +10 -5
  33. package/models/components/billingdetails.d.ts.map +1 -0
  34. package/models/components/{billingdetailsoutput.js → billingdetails.js} +27 -6
  35. package/models/components/billingdetails.js.map +1 -0
  36. package/models/components/buyer.d.ts +2 -2
  37. package/models/components/buyer.d.ts.map +1 -1
  38. package/models/components/buyer.js +2 -2
  39. package/models/components/buyer.js.map +1 -1
  40. package/models/components/buyercreate.d.ts +3 -3
  41. package/models/components/buyercreate.d.ts.map +1 -1
  42. package/models/components/buyercreate.js +2 -2
  43. package/models/components/buyercreate.js.map +1 -1
  44. package/models/components/buyerupdate.d.ts +3 -3
  45. package/models/components/buyerupdate.d.ts.map +1 -1
  46. package/models/components/buyerupdate.js +2 -2
  47. package/models/components/buyerupdate.js.map +1 -1
  48. package/models/components/checkoutsession.d.ts +4 -4
  49. package/models/components/checkoutsession.d.ts.map +1 -1
  50. package/models/components/checkoutsession.js +4 -4
  51. package/models/components/checkoutsession.js.map +1 -1
  52. package/models/components/checkoutsessioncreate.d.ts +3 -3
  53. package/models/components/checkoutsessioncreate.d.ts.map +1 -1
  54. package/models/components/checkoutsessioncreate.js +2 -2
  55. package/models/components/checkoutsessioncreate.js.map +1 -1
  56. package/models/components/{checkoutsessionpaymentmethodoutput.d.ts → checkoutsessionpaymentmethod.d.ts} +4 -4
  57. package/models/components/checkoutsessionpaymentmethod.d.ts.map +1 -0
  58. package/models/components/{checkoutsessionpaymentmethodoutput.js → checkoutsessionpaymentmethod.js} +6 -6
  59. package/models/components/checkoutsessionpaymentmethod.js.map +1 -0
  60. package/models/components/cybersourceoptions.d.ts +5 -0
  61. package/models/components/cybersourceoptions.d.ts.map +1 -1
  62. package/models/components/cybersourceoptions.js +1 -0
  63. package/models/components/cybersourceoptions.js.map +1 -1
  64. package/models/components/{guestbuyerinput.d.ts → guestbuyer.d.ts} +13 -8
  65. package/models/components/guestbuyer.d.ts.map +1 -0
  66. package/models/components/{guestbuyeroutput.js → guestbuyer.js} +28 -8
  67. package/models/components/guestbuyer.js.map +1 -0
  68. package/models/components/index.d.ts +15 -16
  69. package/models/components/index.d.ts.map +1 -1
  70. package/models/components/index.js +15 -16
  71. package/models/components/index.js.map +1 -1
  72. package/models/components/paymentlink.d.ts +2 -2
  73. package/models/components/paymentlink.d.ts.map +1 -1
  74. package/models/components/paymentlink.js +2 -2
  75. package/models/components/paymentlink.js.map +1 -1
  76. package/models/components/paymentlinkcreate.d.ts +3 -3
  77. package/models/components/paymentlinkcreate.d.ts.map +1 -1
  78. package/models/components/paymentlinkcreate.js +2 -2
  79. package/models/components/paymentlinkcreate.js.map +1 -1
  80. package/models/components/paymentmethodsummaries.d.ts +2 -2
  81. package/models/components/paymentmethodsummaries.d.ts.map +1 -1
  82. package/models/components/paymentmethodsummaries.js +2 -2
  83. package/models/components/paymentmethodsummaries.js.map +1 -1
  84. package/models/components/{paymentmethodsummaryoutput.d.ts → paymentmethodsummary.d.ts} +4 -4
  85. package/models/components/paymentmethodsummary.d.ts.map +1 -0
  86. package/models/components/{paymentmethodsummaryoutput.js → paymentmethodsummary.js} +6 -6
  87. package/models/components/paymentmethodsummary.js.map +1 -0
  88. package/models/components/{paymentoptionoutput.d.ts → paymentoption.d.ts} +4 -4
  89. package/models/components/paymentoption.d.ts.map +1 -0
  90. package/models/components/{paymentoptionoutput.js → paymentoption.js} +6 -6
  91. package/models/components/paymentoption.js.map +1 -0
  92. package/models/components/paymentoptions.d.ts +2 -2
  93. package/models/components/paymentoptions.d.ts.map +1 -1
  94. package/models/components/paymentoptions.js +2 -2
  95. package/models/components/paymentoptions.js.map +1 -1
  96. package/models/components/payoutcreate.d.ts +3 -3
  97. package/models/components/payoutcreate.d.ts.map +1 -1
  98. package/models/components/payoutcreate.js +2 -2
  99. package/models/components/payoutcreate.js.map +1 -1
  100. package/models/components/payoutsummary.d.ts +4 -4
  101. package/models/components/payoutsummary.d.ts.map +1 -1
  102. package/models/components/payoutsummary.js +4 -4
  103. package/models/components/payoutsummary.js.map +1 -1
  104. package/models/components/reportcreate.d.ts.map +1 -1
  105. package/models/components/reportcreate.js +8 -24
  106. package/models/components/reportcreate.js.map +1 -1
  107. package/models/components/{transactionoutput.d.ts → transaction.d.ts} +10 -10
  108. package/models/components/transaction.d.ts.map +1 -0
  109. package/models/components/{transactionoutput.js → transaction.js} +12 -13
  110. package/models/components/transaction.js.map +1 -0
  111. package/models/components/{transactionbuyeroutput.d.ts → transactionbuyer.d.ts} +6 -6
  112. package/models/components/transactionbuyer.d.ts.map +1 -0
  113. package/models/components/{transactionbuyeroutput.js → transactionbuyer.js} +8 -8
  114. package/models/components/transactionbuyer.js.map +1 -0
  115. package/models/components/transactioncancel.d.ts +2 -2
  116. package/models/components/transactioncancel.d.ts.map +1 -1
  117. package/models/components/transactioncancel.js +2 -2
  118. package/models/components/transactioncancel.js.map +1 -1
  119. package/models/components/{transactioncaptureoutput.d.ts → transactioncapture.d.ts} +6 -6
  120. package/models/components/transactioncapture.d.ts.map +1 -0
  121. package/models/components/{transactioncaptureoutput.js → transactioncapture.js} +8 -8
  122. package/models/components/transactioncapture.js.map +1 -0
  123. package/models/components/transactioncreate.d.ts +3 -3
  124. package/models/components/transactioncreate.d.ts.map +1 -1
  125. package/models/components/transactioncreate.js +2 -2
  126. package/models/components/transactioncreate.js.map +1 -1
  127. package/models/components/{transactioneventoutput.d.ts → transactionevent.d.ts} +6 -7
  128. package/models/components/transactionevent.d.ts.map +1 -0
  129. package/models/components/{transactioneventoutput.js → transactionevent.js} +8 -7
  130. package/models/components/transactionevent.js.map +1 -0
  131. package/models/components/transactioneventcontext.d.ts +14 -0
  132. package/models/components/transactioneventcontext.d.ts.map +1 -0
  133. package/models/components/transactioneventcontext.js +57 -0
  134. package/models/components/transactioneventcontext.js.map +1 -0
  135. package/models/components/transactionevents.d.ts +2 -2
  136. package/models/components/transactionevents.d.ts.map +1 -1
  137. package/models/components/transactionevents.js +2 -2
  138. package/models/components/transactionevents.js.map +1 -1
  139. package/models/components/{transactionpaymentmethodoutput.d.ts → transactionpaymentmethod.d.ts} +4 -4
  140. package/models/components/transactionpaymentmethod.d.ts.map +1 -0
  141. package/models/components/{transactionpaymentmethodoutput.js → transactionpaymentmethod.js} +6 -6
  142. package/models/components/transactionpaymentmethod.js.map +1 -0
  143. package/models/components/transactionsummaries.d.ts +2 -2
  144. package/models/components/transactionsummaries.d.ts.map +1 -1
  145. package/models/components/transactionsummaries.js +2 -2
  146. package/models/components/transactionsummaries.js.map +1 -1
  147. package/models/components/{transactionsummaryoutput.d.ts → transactionsummary.d.ts} +8 -8
  148. package/models/components/transactionsummary.d.ts.map +1 -0
  149. package/models/components/{transactionsummaryoutput.js → transactionsummary.js} +10 -11
  150. package/models/components/transactionsummary.js.map +1 -0
  151. package/models/components/{transactionthreedsecuresummaryoutput.d.ts → transactionthreedsecuresummary.d.ts} +4 -4
  152. package/models/components/transactionthreedsecuresummary.d.ts.map +1 -0
  153. package/models/components/{transactionthreedsecuresummaryoutput.js → transactionthreedsecuresummary.js} +6 -6
  154. package/models/components/transactionthreedsecuresummary.js.map +1 -0
  155. package/models/components/{transactionvoidoutput.d.ts → transactionvoid.d.ts} +6 -6
  156. package/models/components/transactionvoid.d.ts.map +1 -0
  157. package/models/components/{transactionvoidoutput.js → transactionvoid.js} +8 -8
  158. package/models/components/transactionvoid.js.map +1 -0
  159. package/models/operations/capturetransaction.d.ts +27 -1
  160. package/models/operations/capturetransaction.d.ts.map +1 -1
  161. package/models/operations/capturetransaction.js +13 -2
  162. package/models/operations/capturetransaction.js.map +1 -1
  163. package/models/operations/voidtransaction.d.ts +27 -1
  164. package/models/operations/voidtransaction.d.ts.map +1 -1
  165. package/models/operations/voidtransaction.js +13 -2
  166. package/models/operations/voidtransaction.js.map +1 -1
  167. package/package.json +1 -1
  168. package/sdk/transactions.d.ts +4 -4
  169. package/sdk/transactions.d.ts.map +1 -1
  170. package/src/funcs/transactionsCreate.ts +4 -4
  171. package/src/funcs/transactionsGet.ts +4 -4
  172. package/src/funcs/transactionsSync.ts +4 -4
  173. package/src/funcs/transactionsUpdate.ts +4 -4
  174. package/src/lib/config.ts +3 -3
  175. package/src/lib/encodings.ts +4 -3
  176. package/src/models/components/auditlogentries.ts +3 -6
  177. package/src/models/components/{auditlogentryoutput.ts → auditlogentry.ts} +7 -7
  178. package/src/models/components/{billingdetailsinput.ts → billingdetails.ts} +46 -11
  179. package/src/models/components/buyer.ts +5 -5
  180. package/src/models/components/buyercreate.ts +7 -7
  181. package/src/models/components/buyerupdate.ts +7 -7
  182. package/src/models/components/checkoutsession.ts +8 -11
  183. package/src/models/components/checkoutsessioncreate.ts +7 -7
  184. package/src/models/components/{checkoutsessionpaymentmethodoutput.ts → checkoutsessionpaymentmethod.ts} +7 -8
  185. package/src/models/components/cybersourceoptions.ts +6 -0
  186. package/src/models/components/guestbuyer.ts +107 -0
  187. package/src/models/components/index.ts +15 -16
  188. package/src/models/components/paymentlink.ts +5 -5
  189. package/src/models/components/paymentlinkcreate.ts +7 -7
  190. package/src/models/components/paymentmethodsummaries.ts +5 -5
  191. package/src/models/components/{paymentmethodsummaryoutput.ts → paymentmethodsummary.ts} +7 -7
  192. package/src/models/components/{paymentoptionoutput.ts → paymentoption.ts} +7 -7
  193. package/src/models/components/paymentoptions.ts +3 -6
  194. package/src/models/components/payoutcreate.ts +7 -7
  195. package/src/models/components/payoutsummary.ts +10 -10
  196. package/src/models/components/reportcreate.ts +8 -24
  197. package/src/models/components/{transactionoutput.ts → transaction.ts} +22 -23
  198. package/src/models/components/{transactionbuyeroutput.ts → transactionbuyer.ts} +12 -12
  199. package/src/models/components/transactioncancel.ts +3 -6
  200. package/src/models/components/{transactioncaptureoutput.ts → transactioncapture.ts} +10 -13
  201. package/src/models/components/transactioncreate.ts +7 -7
  202. package/src/models/components/{transactioneventoutput.ts → transactionevent.ts} +13 -9
  203. package/src/models/components/transactioneventcontext.ts +47 -0
  204. package/src/models/components/transactionevents.ts +5 -5
  205. package/src/models/components/{transactionpaymentmethodoutput.ts → transactionpaymentmethod.ts} +7 -7
  206. package/src/models/components/transactionsummaries.ts +5 -5
  207. package/src/models/components/{transactionsummaryoutput.ts → transactionsummary.ts} +17 -18
  208. package/src/models/components/{transactionthreedsecuresummaryoutput.ts → transactionthreedsecuresummary.ts} +7 -8
  209. package/src/models/components/{transactionvoidoutput.ts → transactionvoid.ts} +10 -13
  210. package/src/models/operations/capturetransaction.ts +52 -4
  211. package/src/models/operations/voidtransaction.ts +52 -4
  212. package/src/sdk/transactions.ts +4 -4
  213. package/models/components/auditlogentryoutput.d.ts.map +0 -1
  214. package/models/components/auditlogentryoutput.js.map +0 -1
  215. package/models/components/billingdetailsinput.d.ts.map +0 -1
  216. package/models/components/billingdetailsinput.js +0 -65
  217. package/models/components/billingdetailsinput.js.map +0 -1
  218. package/models/components/billingdetailsoutput.d.ts +0 -35
  219. package/models/components/billingdetailsoutput.d.ts.map +0 -1
  220. package/models/components/billingdetailsoutput.js.map +0 -1
  221. package/models/components/checkoutsessionpaymentmethodoutput.d.ts.map +0 -1
  222. package/models/components/checkoutsessionpaymentmethodoutput.js.map +0 -1
  223. package/models/components/guestbuyerinput.d.ts.map +0 -1
  224. package/models/components/guestbuyerinput.js +0 -64
  225. package/models/components/guestbuyerinput.js.map +0 -1
  226. package/models/components/guestbuyeroutput.d.ts +0 -31
  227. package/models/components/guestbuyeroutput.d.ts.map +0 -1
  228. package/models/components/guestbuyeroutput.js.map +0 -1
  229. package/models/components/paymentmethodsummaryoutput.d.ts.map +0 -1
  230. package/models/components/paymentmethodsummaryoutput.js.map +0 -1
  231. package/models/components/paymentoptionoutput.d.ts.map +0 -1
  232. package/models/components/paymentoptionoutput.js.map +0 -1
  233. package/models/components/transactionbuyeroutput.d.ts.map +0 -1
  234. package/models/components/transactionbuyeroutput.js.map +0 -1
  235. package/models/components/transactioncaptureoutput.d.ts.map +0 -1
  236. package/models/components/transactioncaptureoutput.js.map +0 -1
  237. package/models/components/transactioneventoutput.d.ts.map +0 -1
  238. package/models/components/transactioneventoutput.js.map +0 -1
  239. package/models/components/transactionoutput.d.ts.map +0 -1
  240. package/models/components/transactionoutput.js.map +0 -1
  241. package/models/components/transactionpaymentmethodoutput.d.ts.map +0 -1
  242. package/models/components/transactionpaymentmethodoutput.js.map +0 -1
  243. package/models/components/transactionsummaryoutput.d.ts.map +0 -1
  244. package/models/components/transactionsummaryoutput.js.map +0 -1
  245. package/models/components/transactionthreedsecuresummaryoutput.d.ts.map +0 -1
  246. package/models/components/transactionthreedsecuresummaryoutput.js.map +0 -1
  247. package/models/components/transactionvoidoutput.d.ts.map +0 -1
  248. package/models/components/transactionvoidoutput.js.map +0 -1
  249. package/src/models/components/billingdetailsoutput.ts +0 -70
  250. package/src/models/components/guestbuyerinput.ts +0 -75
  251. package/src/models/components/guestbuyeroutput.ts +0 -71
@@ -8,15 +8,15 @@ import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
10
  import {
11
- TransactionSummaryOutput,
12
- TransactionSummaryOutput$inboundSchema,
13
- } from "./transactionsummaryoutput.js";
11
+ TransactionSummary,
12
+ TransactionSummary$inboundSchema,
13
+ } from "./transactionsummary.js";
14
14
 
15
15
  export type TransactionSummaries = {
16
16
  /**
17
17
  * A list of items returned for this request.
18
18
  */
19
- items: Array<TransactionSummaryOutput>;
19
+ items: Array<TransactionSummary>;
20
20
  /**
21
21
  * The number of items for this page.
22
22
  */
@@ -37,7 +37,7 @@ export const TransactionSummaries$inboundSchema: z.ZodType<
37
37
  z.ZodTypeDef,
38
38
  unknown
39
39
  > = z.object({
40
- items: z.array(TransactionSummaryOutput$inboundSchema),
40
+ items: z.array(TransactionSummary$inboundSchema),
41
41
  limit: z.number().int().default(20),
42
42
  next_cursor: z.nullable(z.string()).optional(),
43
43
  previous_cursor: z.nullable(z.string()).optional(),
@@ -25,17 +25,17 @@ import {
25
25
  ShippingDetails$inboundSchema,
26
26
  } from "./shippingdetails.js";
27
27
  import {
28
- TransactionBuyerOutput,
29
- TransactionBuyerOutput$inboundSchema,
30
- } from "./transactionbuyeroutput.js";
28
+ TransactionBuyer,
29
+ TransactionBuyer$inboundSchema,
30
+ } from "./transactionbuyer.js";
31
31
  import {
32
32
  TransactionIntent,
33
33
  TransactionIntent$inboundSchema,
34
34
  } from "./transactionintent.js";
35
35
  import {
36
- TransactionPaymentMethodOutput,
37
- TransactionPaymentMethodOutput$inboundSchema,
38
- } from "./transactionpaymentmethodoutput.js";
36
+ TransactionPaymentMethod,
37
+ TransactionPaymentMethod$inboundSchema,
38
+ } from "./transactionpaymentmethod.js";
39
39
  import {
40
40
  TransactionPaymentService,
41
41
  TransactionPaymentService$inboundSchema,
@@ -48,7 +48,7 @@ import {
48
48
  /**
49
49
  * A transaction, summarised
50
50
  */
51
- export type TransactionSummaryOutput = {
51
+ export type TransactionSummary = {
52
52
  /**
53
53
  * Always `transaction`.
54
54
  */
@@ -110,7 +110,7 @@ export type TransactionSummaryOutput = {
110
110
  /**
111
111
  * The payment method used for this transaction.
112
112
  */
113
- paymentMethod?: TransactionPaymentMethodOutput | null | undefined;
113
+ paymentMethod?: TransactionPaymentMethod | null | undefined;
114
114
  /**
115
115
  * The method used for the transaction.
116
116
  */
@@ -134,7 +134,7 @@ export type TransactionSummaryOutput = {
134
134
  /**
135
135
  * The buyer used for this transaction.
136
136
  */
137
- buyer?: TransactionBuyerOutput | null | undefined;
137
+ buyer?: TransactionBuyer | null | undefined;
138
138
  /**
139
139
  * This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services.
140
140
  */
@@ -174,8 +174,8 @@ export type TransactionSummaryOutput = {
174
174
  };
175
175
 
176
176
  /** @internal */
177
- export const TransactionSummaryOutput$inboundSchema: z.ZodType<
178
- TransactionSummaryOutput,
177
+ export const TransactionSummary$inboundSchema: z.ZodType<
178
+ TransactionSummary,
179
179
  z.ZodTypeDef,
180
180
  unknown
181
181
  > = z.object({
@@ -195,15 +195,14 @@ export const TransactionSummaryOutput$inboundSchema: z.ZodType<
195
195
  country: z.nullable(z.string()).optional(),
196
196
  external_identifier: z.nullable(z.string()).optional(),
197
197
  intent: TransactionIntent$inboundSchema,
198
- payment_method: z.nullable(TransactionPaymentMethodOutput$inboundSchema)
199
- .optional(),
198
+ payment_method: z.nullable(TransactionPaymentMethod$inboundSchema).optional(),
200
199
  method: z.nullable(Method$inboundSchema).optional(),
201
200
  instrument_type: z.nullable(InstrumentType$inboundSchema).optional(),
202
201
  error_code: z.nullable(z.string()).optional(),
203
202
  payment_service: z.nullable(TransactionPaymentService$inboundSchema)
204
203
  .optional(),
205
204
  pending_review: z.boolean().default(false),
206
- buyer: z.nullable(TransactionBuyerOutput$inboundSchema).optional(),
205
+ buyer: z.nullable(TransactionBuyer$inboundSchema).optional(),
207
206
  raw_response_code: z.nullable(z.string()).optional(),
208
207
  raw_response_description: z.nullable(z.string()).optional(),
209
208
  shipping_details: z.nullable(ShippingDetails$inboundSchema).optional(),
@@ -239,12 +238,12 @@ export const TransactionSummaryOutput$inboundSchema: z.ZodType<
239
238
  });
240
239
  });
241
240
 
242
- export function transactionSummaryOutputFromJSON(
241
+ export function transactionSummaryFromJSON(
243
242
  jsonString: string,
244
- ): SafeParseResult<TransactionSummaryOutput, SDKValidationError> {
243
+ ): SafeParseResult<TransactionSummary, SDKValidationError> {
245
244
  return safeParse(
246
245
  jsonString,
247
- (x) => TransactionSummaryOutput$inboundSchema.parse(JSON.parse(x)),
248
- `Failed to parse 'TransactionSummaryOutput' from JSON`,
246
+ (x) => TransactionSummary$inboundSchema.parse(JSON.parse(x)),
247
+ `Failed to parse 'TransactionSummary' from JSON`,
249
248
  );
250
249
  }
@@ -33,7 +33,7 @@ import {
33
33
  */
34
34
  export type ResponseData = ThreeDSecureDataV1 | ThreeDSecureV2;
35
35
 
36
- export type TransactionThreeDSecureSummaryOutput = {
36
+ export type TransactionThreeDSecureSummary = {
37
37
  /**
38
38
  * The version of 3DS used for this transaction.
39
39
  */
@@ -74,8 +74,8 @@ export function responseDataFromJSON(
74
74
  }
75
75
 
76
76
  /** @internal */
77
- export const TransactionThreeDSecureSummaryOutput$inboundSchema: z.ZodType<
78
- TransactionThreeDSecureSummaryOutput,
77
+ export const TransactionThreeDSecureSummary$inboundSchema: z.ZodType<
78
+ TransactionThreeDSecureSummary,
79
79
  z.ZodTypeDef,
80
80
  unknown
81
81
  > = z.object({
@@ -93,13 +93,12 @@ export const TransactionThreeDSecureSummaryOutput$inboundSchema: z.ZodType<
93
93
  });
94
94
  });
95
95
 
96
- export function transactionThreeDSecureSummaryOutputFromJSON(
96
+ export function transactionThreeDSecureSummaryFromJSON(
97
97
  jsonString: string,
98
- ): SafeParseResult<TransactionThreeDSecureSummaryOutput, SDKValidationError> {
98
+ ): SafeParseResult<TransactionThreeDSecureSummary, SDKValidationError> {
99
99
  return safeParse(
100
100
  jsonString,
101
- (x) =>
102
- TransactionThreeDSecureSummaryOutput$inboundSchema.parse(JSON.parse(x)),
103
- `Failed to parse 'TransactionThreeDSecureSummaryOutput' from JSON`,
101
+ (x) => TransactionThreeDSecureSummary$inboundSchema.parse(JSON.parse(x)),
102
+ `Failed to parse 'TransactionThreeDSecureSummary' from JSON`,
104
103
  );
105
104
  }
@@ -7,13 +7,10 @@ import { remap as remap$ } from "../../lib/primitives.js";
7
7
  import { safeParse } from "../../lib/schemas.js";
8
8
  import { Result as SafeParseResult } from "../../types/fp.js";
9
9
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
10
- import {
11
- TransactionOutput,
12
- TransactionOutput$inboundSchema,
13
- } from "./transactionoutput.js";
10
+ import { Transaction, Transaction$inboundSchema } from "./transaction.js";
14
11
  import { VoidStatus, VoidStatus$inboundSchema } from "./voidstatus.js";
15
12
 
16
- export type TransactionVoidOutput = {
13
+ export type TransactionVoid = {
17
14
  /**
18
15
  * Always `transaction-void`.
19
16
  */
@@ -34,12 +31,12 @@ export type TransactionVoidOutput = {
34
31
  /**
35
32
  * A full transaction resource.
36
33
  */
37
- transaction: TransactionOutput;
34
+ transaction: Transaction;
38
35
  };
39
36
 
40
37
  /** @internal */
41
- export const TransactionVoidOutput$inboundSchema: z.ZodType<
42
- TransactionVoidOutput,
38
+ export const TransactionVoid$inboundSchema: z.ZodType<
39
+ TransactionVoid,
43
40
  z.ZodTypeDef,
44
41
  unknown
45
42
  > = z.object({
@@ -48,7 +45,7 @@ export const TransactionVoidOutput$inboundSchema: z.ZodType<
48
45
  code: z.nullable(z.string()),
49
46
  raw_response_code: z.nullable(z.string()),
50
47
  raw_response_description: z.nullable(z.string()),
51
- transaction: TransactionOutput$inboundSchema,
48
+ transaction: Transaction$inboundSchema,
52
49
  }).transform((v) => {
53
50
  return remap$(v, {
54
51
  "raw_response_code": "rawResponseCode",
@@ -56,12 +53,12 @@ export const TransactionVoidOutput$inboundSchema: z.ZodType<
56
53
  });
57
54
  });
58
55
 
59
- export function transactionVoidOutputFromJSON(
56
+ export function transactionVoidFromJSON(
60
57
  jsonString: string,
61
- ): SafeParseResult<TransactionVoidOutput, SDKValidationError> {
58
+ ): SafeParseResult<TransactionVoid, SDKValidationError> {
62
59
  return safeParse(
63
60
  jsonString,
64
- (x) => TransactionVoidOutput$inboundSchema.parse(JSON.parse(x)),
65
- `Failed to parse 'TransactionVoidOutput' from JSON`,
61
+ (x) => TransactionVoid$inboundSchema.parse(JSON.parse(x)),
62
+ `Failed to parse 'TransactionVoid' from JSON`,
66
63
  );
67
64
  }
@@ -33,8 +33,19 @@ export type CaptureTransactionRequest = {
33
33
  * Successful Response
34
34
  */
35
35
  export type CaptureTransactionResponseCaptureTransaction =
36
- | components.TransactionOutput
37
- | components.TransactionCaptureOutput;
36
+ | (components.Transaction & { status: "processing" })
37
+ | (components.Transaction & { status: "authorization_succeeded" })
38
+ | (components.Transaction & { status: "authorization_declined" })
39
+ | (components.Transaction & { status: "authorization_failed" })
40
+ | (components.Transaction & { status: "authorization_voided" })
41
+ | (components.Transaction & { status: "authorization_void_pending" })
42
+ | (components.Transaction & { status: "capture_succeeded" })
43
+ | (components.Transaction & { status: "capture_pending" })
44
+ | (components.Transaction & { status: "buyer_approval_pending" })
45
+ | (components.TransactionCapture & { status: "succeeded" })
46
+ | (components.TransactionCapture & { status: "pending" })
47
+ | (components.TransactionCapture & { status: "declined" })
48
+ | (components.TransactionCapture & { status: "failed" });
38
49
 
39
50
  /** @internal */
40
51
  export type CaptureTransactionRequest$Outbound = {
@@ -76,8 +87,45 @@ export const CaptureTransactionResponseCaptureTransaction$inboundSchema:
76
87
  z.ZodTypeDef,
77
88
  unknown
78
89
  > = z.union([
79
- components.TransactionOutput$inboundSchema,
80
- components.TransactionCaptureOutput$inboundSchema,
90
+ components.Transaction$inboundSchema.and(
91
+ z.object({ status: z.literal("processing") }),
92
+ ),
93
+ components.Transaction$inboundSchema.and(
94
+ z.object({ status: z.literal("authorization_succeeded") }),
95
+ ),
96
+ components.Transaction$inboundSchema.and(
97
+ z.object({ status: z.literal("authorization_declined") }),
98
+ ),
99
+ components.Transaction$inboundSchema.and(
100
+ z.object({ status: z.literal("authorization_failed") }),
101
+ ),
102
+ components.Transaction$inboundSchema.and(
103
+ z.object({ status: z.literal("authorization_voided") }),
104
+ ),
105
+ components.Transaction$inboundSchema.and(
106
+ z.object({ status: z.literal("authorization_void_pending") }),
107
+ ),
108
+ components.Transaction$inboundSchema.and(
109
+ z.object({ status: z.literal("capture_succeeded") }),
110
+ ),
111
+ components.Transaction$inboundSchema.and(
112
+ z.object({ status: z.literal("capture_pending") }),
113
+ ),
114
+ components.Transaction$inboundSchema.and(
115
+ z.object({ status: z.literal("buyer_approval_pending") }),
116
+ ),
117
+ components.TransactionCapture$inboundSchema.and(
118
+ z.object({ status: z.literal("succeeded") }),
119
+ ),
120
+ components.TransactionCapture$inboundSchema.and(
121
+ z.object({ status: z.literal("pending") }),
122
+ ),
123
+ components.TransactionCapture$inboundSchema.and(
124
+ z.object({ status: z.literal("declined") }),
125
+ ),
126
+ components.TransactionCapture$inboundSchema.and(
127
+ z.object({ status: z.literal("failed") }),
128
+ ),
81
129
  ]);
82
130
 
83
131
  export function captureTransactionResponseCaptureTransactionFromJSON(
@@ -32,8 +32,19 @@ export type VoidTransactionRequest = {
32
32
  * Successful Response
33
33
  */
34
34
  export type VoidTransactionResponseVoidTransaction =
35
- | components.TransactionOutput
36
- | components.TransactionVoidOutput;
35
+ | (components.Transaction & { status: "processing" })
36
+ | (components.Transaction & { status: "authorization_succeeded" })
37
+ | (components.Transaction & { status: "authorization_declined" })
38
+ | (components.Transaction & { status: "authorization_failed" })
39
+ | (components.Transaction & { status: "authorization_voided" })
40
+ | (components.Transaction & { status: "authorization_void_pending" })
41
+ | (components.Transaction & { status: "capture_succeeded" })
42
+ | (components.Transaction & { status: "capture_pending" })
43
+ | (components.Transaction & { status: "buyer_approval_pending" })
44
+ | (components.TransactionVoid & { status: "succeeded" })
45
+ | (components.TransactionVoid & { status: "pending" })
46
+ | (components.TransactionVoid & { status: "declined" })
47
+ | (components.TransactionVoid & { status: "failed" });
37
48
 
38
49
  /** @internal */
39
50
  export type VoidTransactionRequest$Outbound = {
@@ -71,8 +82,45 @@ export const VoidTransactionResponseVoidTransaction$inboundSchema: z.ZodType<
71
82
  z.ZodTypeDef,
72
83
  unknown
73
84
  > = z.union([
74
- components.TransactionOutput$inboundSchema,
75
- components.TransactionVoidOutput$inboundSchema,
85
+ components.Transaction$inboundSchema.and(
86
+ z.object({ status: z.literal("processing") }),
87
+ ),
88
+ components.Transaction$inboundSchema.and(
89
+ z.object({ status: z.literal("authorization_succeeded") }),
90
+ ),
91
+ components.Transaction$inboundSchema.and(
92
+ z.object({ status: z.literal("authorization_declined") }),
93
+ ),
94
+ components.Transaction$inboundSchema.and(
95
+ z.object({ status: z.literal("authorization_failed") }),
96
+ ),
97
+ components.Transaction$inboundSchema.and(
98
+ z.object({ status: z.literal("authorization_voided") }),
99
+ ),
100
+ components.Transaction$inboundSchema.and(
101
+ z.object({ status: z.literal("authorization_void_pending") }),
102
+ ),
103
+ components.Transaction$inboundSchema.and(
104
+ z.object({ status: z.literal("capture_succeeded") }),
105
+ ),
106
+ components.Transaction$inboundSchema.and(
107
+ z.object({ status: z.literal("capture_pending") }),
108
+ ),
109
+ components.Transaction$inboundSchema.and(
110
+ z.object({ status: z.literal("buyer_approval_pending") }),
111
+ ),
112
+ components.TransactionVoid$inboundSchema.and(
113
+ z.object({ status: z.literal("succeeded") }),
114
+ ),
115
+ components.TransactionVoid$inboundSchema.and(
116
+ z.object({ status: z.literal("pending") }),
117
+ ),
118
+ components.TransactionVoid$inboundSchema.and(
119
+ z.object({ status: z.literal("declined") }),
120
+ ),
121
+ components.TransactionVoid$inboundSchema.and(
122
+ z.object({ status: z.literal("failed") }),
123
+ ),
76
124
  ]);
77
125
 
78
126
  export function voidTransactionResponseVoidTransactionFromJSON(
@@ -66,7 +66,7 @@ export class Transactions extends ClientSDK {
66
66
  idempotencyKey?: string | null | undefined,
67
67
  xForwardedFor?: string | undefined,
68
68
  options?: RequestOptions,
69
- ): Promise<components.TransactionOutput> {
69
+ ): Promise<components.Transaction> {
70
70
  return unwrapAsync(transactionsCreate(
71
71
  this,
72
72
  transactionCreate,
@@ -87,7 +87,7 @@ export class Transactions extends ClientSDK {
87
87
  transactionId: string,
88
88
  merchantAccountId?: string | null | undefined,
89
89
  options?: RequestOptions,
90
- ): Promise<components.TransactionOutput> {
90
+ ): Promise<components.Transaction> {
91
91
  return unwrapAsync(transactionsGet(
92
92
  this,
93
93
  transactionId,
@@ -107,7 +107,7 @@ export class Transactions extends ClientSDK {
107
107
  transactionId: string,
108
108
  merchantAccountId?: string | null | undefined,
109
109
  options?: RequestOptions,
110
- ): Promise<components.TransactionOutput> {
110
+ ): Promise<components.Transaction> {
111
111
  return unwrapAsync(transactionsUpdate(
112
112
  this,
113
113
  transactionUpdate,
@@ -190,7 +190,7 @@ export class Transactions extends ClientSDK {
190
190
  transactionId: string,
191
191
  merchantAccountId?: string | null | undefined,
192
192
  options?: RequestOptions,
193
- ): Promise<components.TransactionOutput> {
193
+ ): Promise<components.Transaction> {
194
194
  return unwrapAsync(transactionsSync(
195
195
  this,
196
196
  transactionId,
@@ -1 +0,0 @@
1
- {"version":3,"file":"auditlogentryoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/auditlogentryoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,cAAc,EAEf,MAAM,qBAAqB,CAAC;AAC7B,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AACpC,OAAO,EACL,iBAAiB,EAElB,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,mBAAmB,GAAG;IAChC;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC9C,QAAQ,EAAE,qBAAqB,CAAC;IAChC,MAAM,EAAE,cAAc,CAAC;IACvB,IAAI,EAAE,iBAAiB,CAAC;IACxB;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;CACjB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,mBAAmB,EACnB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,wBAAgB,2BAA2B,CACzC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,mBAAmB,EAAE,kBAAkB,CAAC,CAM1D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"auditlogentryoutput.js","sourceRoot":"","sources":["../../src/models/components/auditlogentryoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA6DH,kEAQC;AAnED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,2DAG6B;AAC7B,yEAGoC;A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5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.BillingDetailsInput$outboundSchema = void 0;
40
- exports.billingDetailsInputToJSON = billingDetailsInputToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
- const address_js_1 = require("./address.js");
44
- const taxid_js_1 = require("./taxid.js");
45
- /** @internal */
46
- exports.BillingDetailsInput$outboundSchema = z.object({
47
- firstName: z.nullable(z.string()).optional(),
48
- lastName: z.nullable(z.string()).optional(),
49
- emailAddress: z.nullable(z.string()).optional(),
50
- phoneNumber: z.nullable(z.string()).optional(),
51
- address: z.nullable(address_js_1.Address$outboundSchema).optional(),
52
- taxId: z.nullable(taxid_js_1.TaxId$outboundSchema).optional(),
53
- }).transform((v) => {
54
- return (0, primitives_js_1.remap)(v, {
55
- firstName: "first_name",
56
- lastName: "last_name",
57
- emailAddress: "email_address",
58
- phoneNumber: "phone_number",
59
- taxId: "tax_id",
60
- });
61
- });
62
- function billingDetailsInputToJSON(billingDetailsInput) {
63
- return JSON.stringify(exports.BillingDetailsInput$outboundSchema.parse(billingDetailsInput));
64
- }
65
- //# sourceMappingURL=billingdetailsinput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billingdetailsinput.js","sourceRoot":"","sources":["../../src/models/components/billingdetailsinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAsEH,8DAMC;AA1ED,0CAA4B;AAC5B,2DAA0D;AAC1D,6CAIsB;AACtB,yCAAyE;AAuCzE,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,SAAS,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC5C,QAAQ,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC3C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,OAAO,EAAE,CAAC,CAAC,QAAQ,CAAC,mCAAsB,CAAC,CAAC,QAAQ,EAAE;IACtD,KAAK,EAAE,CAAC,CAAC,QAAQ,CAAC,+BAAoB,CAAC,CAAC,QAAQ,EAAE;CACnD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,QAAQ,EAAE,WAAW;QACrB,YAAY,EAAE,eAAe;QAC7B,WAAW,EAAE,cAAc;QAC3B,KAAK,EAAE,QAAQ;KAChB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,yBAAyB,CACvC,mBAAwC;IAExC,OAAO,IAAI,CAAC,SAAS,CACnB,0CAAkC,CAAC,KAAK,CAAC,mBAAmB,CAAC,CAC9D,CAAC;AACJ,CAAC"}
@@ -1,35 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { Address } from "./address.js";
5
- import { TaxId } from "./taxid.js";
6
- export type BillingDetailsOutput = {
7
- /**
8
- * The first name(s) or given name for the buyer.
9
- */
10
- firstName?: string | null | undefined;
11
- /**
12
- * The last name, or family name, of the buyer.
13
- */
14
- lastName?: string | null | undefined;
15
- /**
16
- * The email address for the buyer.
17
- */
18
- emailAddress?: string | null | undefined;
19
- /**
20
- * The phone number for the buyer which should be formatted according to the E164 number standard.
21
- */
22
- phoneNumber?: string | null | undefined;
23
- /**
24
- * The billing address for the buyer.
25
- */
26
- address?: Address | null | undefined;
27
- /**
28
- * The tax ID information associated with the billing details.
29
- */
30
- taxId?: TaxId | null | undefined;
31
- };
32
- /** @internal */
33
- export declare const BillingDetailsOutput$inboundSchema: z.ZodType<BillingDetailsOutput, z.ZodTypeDef, unknown>;
34
- export declare function billingDetailsOutputFromJSON(jsonString: string): SafeParseResult<BillingDetailsOutput, SDKValidationError>;
35
- //# sourceMappingURL=billingdetailsoutput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"billingdetailsoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/billingdetailsoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EAAE,OAAO,EAAyB,MAAM,cAAc,CAAC;AAC9D,OAAO,EAAE,KAAK,EAAuB,MAAM,YAAY,CAAC;AAExD,MAAM,MAAM,oBAAoB,GAAG;IACjC;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,OAAO,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC;;OAEG;IACH,KAAK,CAAC,EAAE,KAAK,GAAG,IAAI,GAAG,SAAS,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,kCAAkC,EAAE,CAAC,CAAC,OAAO,CACxD,oBAAoB,EACpB,CAAC,CAAC,UAAU,EACZ,OAAO,CAgBP,CAAC;AAEH,wBAAgB,4BAA4B,CAC1C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,oBAAoB,EAAE,kBAAkB,CAAC,CAM3D"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"billingdetailsoutput.js","sourceRoot":"","sources":["../../src/models/components/billingdetailsoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,oEAQC;AAjED,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,6CAA8D;AAC9D,yCAAwD;AA6BxD,gBAAgB;AACH,QAAA,kCAAkC,GAI3C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,E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ACrE,OAAO,EAAE,UAAU,EAA4B,MAAM,iBAAiB,CAAC;AACvE,OAAO,EACL,mCAAmC,EAEpC,MAAM,0CAA0C,CAAC;AAElD,MAAM,MAAM,kCAAkC,GAAG;IAC/C;;OAEG;IACH,IAAI,CAAC,EAAE,gBAAgB,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,OAAO,CAAC,EAAE,mCAAmC,GAAG,IAAI,GAAG,SAAS,CAAC;IACjE;;OAEG;IACH,KAAK,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,MAAM,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IAC5B;;OAEG;IACH,MAAM,CAAC,EAAE,UAAU,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,OAAO,CACtE,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,wBAAgB,0CAA0C,CACxD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,kCAAkC,EAAE,kBAAkB,CAAC,CAOzE"}
@@ -1 +0,0 @@
1
- {"version":3,"file":"checkoutsessionpaymentmethodoutput.js","sourceRoot":"","sources":["../../src/models/components/checkoutsessionpaymentmethodoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2DH,gGASC;AAlED,0CAA4B;AAC5B,qDAAiD;AAGjD,mDAAuE;AACvE,qGAGkD;AAiClD,gBAAgB;AACH,QAAA,gDAAgD,GAIzD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,gBAAg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AI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,cAAc,CAAC,EAAE,mBAAmB,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,MAAM,MAAM,wBAAwB,GAAG;IACrC,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,4BAA4B,GAAG,IAAI,GAAG,SAAS,CAAC;IAClE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,gBAAgB,CAAC,EAAE,8BAA8B,GAAG,IAAI,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,eAAe,CAef,CAAC;AAEH,wBAAgB,qBAAqB,CACnC,eAAe,EAAE,eAAe,GAC/B,MAAM,CAER"}
@@ -1,64 +0,0 @@
1
- "use strict";
2
- /*
3
- * Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
4
- */
5
- var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
6
- if (k2 === undefined) k2 = k;
7
- var desc = Object.getOwnPropertyDescriptor(m, k);
8
- if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
9
- desc = { enumerable: true, get: function() { return m[k]; } };
10
- }
11
- Object.defineProperty(o, k2, desc);
12
- }) : (function(o, m, k, k2) {
13
- if (k2 === undefined) k2 = k;
14
- o[k2] = m[k];
15
- }));
16
- var __setModuleDefault = (this && this.__setModuleDefault) || (Object.create ? (function(o, v) {
17
- Object.defineProperty(o, "default", { enumerable: true, value: v });
18
- }) : function(o, v) {
19
- o["default"] = v;
20
- });
21
- var __importStar = (this && this.__importStar) || (function () {
22
- var ownKeys = function(o) {
23
- ownKeys = Object.getOwnPropertyNames || function (o) {
24
- var ar = [];
25
- for (var k in o) if (Object.prototype.hasOwnProperty.call(o, k)) ar[ar.length] = k;
26
- return ar;
27
- };
28
- return ownKeys(o);
29
- };
30
- return function (mod) {
31
- if (mod && mod.__esModule) return mod;
32
- var result = {};
33
- if (mod != null) for (var k = ownKeys(mod), i = 0; i < k.length; i++) if (k[i] !== "default") __createBinding(result, mod, k[i]);
34
- __setModuleDefault(result, mod);
35
- return result;
36
- };
37
- })();
38
- Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.GuestBuyerInput$outboundSchema = void 0;
40
- exports.guestBuyerInputToJSON = guestBuyerInputToJSON;
41
- const z = __importStar(require("zod/v3"));
42
- const primitives_js_1 = require("../../lib/primitives.js");
43
- const billingdetailsinput_js_1 = require("./billingdetailsinput.js");
44
- const shippingdetailscreate_js_1 = require("./shippingdetailscreate.js");
45
- /** @internal */
46
- exports.GuestBuyerInput$outboundSchema = z.object({
47
- displayName: z.nullable(z.string()).optional(),
48
- externalIdentifier: z.nullable(z.string()).optional(),
49
- billingDetails: z.nullable(billingdetailsinput_js_1.BillingDetailsInput$outboundSchema).optional(),
50
- accountNumber: z.nullable(z.string()).optional(),
51
- shippingDetails: z.nullable(shippingdetailscreate_js_1.ShippingDetailsCreate$outboundSchema).optional(),
52
- }).transform((v) => {
53
- return (0, primitives_js_1.remap)(v, {
54
- displayName: "display_name",
55
- externalIdentifier: "external_identifier",
56
- billingDetails: "billing_details",
57
- accountNumber: "account_number",
58
- shippingDetails: "shipping_details",
59
- });
60
- });
61
- function guestBuyerInputToJSON(guestBuyerInput) {
62
- return JSON.stringify(exports.GuestBuyerInput$outboundSchema.parse(guestBuyerInput));
63
- }
64
- //# sourceMappingURL=guestbuyerinput.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guestbuyerinput.js","sourceRoot":"","sources":["../../src/models/components/guestbuyerinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAoEH,sDAIC;AAtED,0CAA4B;AAC5B,2DAA0D;AAC1D,qEAIkC;AAClC,yEAIoC;AAkCpC,gBAAgB;AACH,QAAA,8BAA8B,GAIvC,CAAC,CAAC,MAAM,CAAC;IACX,WAAW,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC9C,kBAAkB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,2DAAkC,CAAC,CAAC,QAAQ,EAAE;IACzE,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IAChD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,+DAAoC,CAAC,CAAC,QAAQ,EAAE;CAC7E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,WAAW,EAAE,cAAc;QAC3B,kBAAkB,EAAE,qBAAqB;QACzC,cAAc,EAAE,iBAAiB;QACjC,aAAa,EAAE,gBAAgB;QAC/B,eAAe,EAAE,kBAAkB;KACpC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH,SAAgB,qBAAqB,CACnC,eAAgC;IAEhC,OAAO,IAAI,CAAC,SAAS,CAAC,sCAA8B,CAAC,KAAK,CAAC,eAAe,CAAC,CAAC,CAAC;AAC/E,CAAC"}
@@ -1,31 +0,0 @@
1
- import * as z from "zod/v3";
2
- import { Result as SafeParseResult } from "../../types/fp.js";
3
- import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
- import { BillingDetailsOutput } from "./billingdetailsoutput.js";
5
- import { ShippingDetailsCreate } from "./shippingdetailscreate.js";
6
- export type GuestBuyerOutput = {
7
- /**
8
- * The display name for the buyer.
9
- */
10
- displayName?: string | null | undefined;
11
- /**
12
- * The merchant identifier for this buyer.
13
- */
14
- externalIdentifier?: string | null | undefined;
15
- /**
16
- * The billing name, address, email, and other fields for this buyer.
17
- */
18
- billingDetails?: BillingDetailsOutput | null | undefined;
19
- /**
20
- * The buyer account number
21
- */
22
- accountNumber?: string | null | undefined;
23
- /**
24
- * The optional shipping details for this buyer.
25
- */
26
- shippingDetails?: ShippingDetailsCreate | null | undefined;
27
- };
28
- /** @internal */
29
- export declare const GuestBuyerOutput$inboundSchema: z.ZodType<GuestBuyerOutput, z.ZodTypeDef, unknown>;
30
- export declare function guestBuyerOutputFromJSON(jsonString: string): SafeParseResult<GuestBuyerOutput, SDKValidationError>;
31
- //# sourceMappingURL=guestbuyeroutput.d.ts.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"guestbuyeroutput.d.ts","sourceRoot":"","sources":["../../src/models/components/guestbuyeroutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAG5B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,oBAAoB,EAErB,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,qBAAqB,EAEtB,MAAM,4BAA4B,CAAC;AAEpC,MAAM,MAAM,gBAAgB,GAAG;IAC7B;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C;;OAEG;IACH,cAAc,CAAC,EAAE,oBAAoB,GAAG,IAAI,GAAG,SAAS,CAAC;IACzD;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,eAAe,CAAC,EAAE,qBAAqB,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8BAA8B,EAAE,CAAC,CAAC,OAAO,CACpD,gBAAgB,EAChB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,wBAAgB,wBAAwB,CACtC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,gBAAgB,EAAE,kBAAkB,CAAC,CAMvD"}