@gr4vy/sdk 1.5.2 → 1.5.4

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 (196) hide show
  1. package/docs/sdks/transactions/README.md +4 -4
  2. package/examples/package-lock.json +1 -1
  3. package/funcs/transactionsCreate.d.ts +1 -1
  4. package/funcs/transactionsCreate.d.ts.map +1 -1
  5. package/funcs/transactionsCreate.js +1 -1
  6. package/funcs/transactionsCreate.js.map +1 -1
  7. package/funcs/transactionsGet.d.ts +1 -1
  8. package/funcs/transactionsGet.d.ts.map +1 -1
  9. package/funcs/transactionsGet.js +1 -1
  10. package/funcs/transactionsGet.js.map +1 -1
  11. package/funcs/transactionsSync.d.ts +1 -1
  12. package/funcs/transactionsSync.d.ts.map +1 -1
  13. package/funcs/transactionsSync.js +1 -1
  14. package/funcs/transactionsSync.js.map +1 -1
  15. package/funcs/transactionsUpdate.d.ts +1 -1
  16. package/funcs/transactionsUpdate.d.ts.map +1 -1
  17. package/funcs/transactionsUpdate.js +1 -1
  18. package/funcs/transactionsUpdate.js.map +1 -1
  19. package/jsr.json +1 -1
  20. package/lib/config.d.ts +3 -3
  21. package/lib/config.js +3 -3
  22. package/models/components/auditlogentries.d.ts +3 -3
  23. package/models/components/auditlogentries.d.ts.map +1 -1
  24. package/models/components/auditlogentries.js +3 -3
  25. package/models/components/auditlogentries.js.map +1 -1
  26. package/models/components/{auditlogentry.d.ts → auditlogentryoutput.d.ts} +14 -14
  27. package/models/components/auditlogentryoutput.d.ts.map +1 -0
  28. package/models/components/{auditlogentry.js → auditlogentryoutput.js} +17 -17
  29. package/models/components/auditlogentryoutput.js.map +1 -0
  30. package/models/components/checkoutsession.d.ts +3 -3
  31. package/models/components/checkoutsession.d.ts.map +1 -1
  32. package/models/components/checkoutsession.js +3 -3
  33. package/models/components/checkoutsession.js.map +1 -1
  34. package/models/components/{checkoutsessionpaymentmethod.d.ts → checkoutsessionpaymentmethodoutput.d.ts} +14 -14
  35. package/models/components/checkoutsessionpaymentmethodoutput.d.ts.map +1 -0
  36. package/models/components/{checkoutsessionpaymentmethod.js → checkoutsessionpaymentmethodoutput.js} +17 -17
  37. package/models/components/checkoutsessionpaymentmethodoutput.js.map +1 -0
  38. package/models/components/index.d.ts +15 -12
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +15 -12
  41. package/models/components/index.js.map +1 -1
  42. package/models/components/paymentlink.d.ts +3 -3
  43. package/models/components/paymentlink.d.ts.map +1 -1
  44. package/models/components/paymentlink.js +3 -3
  45. package/models/components/paymentlink.js.map +1 -1
  46. package/models/components/paymentmethodsummaries.d.ts +3 -3
  47. package/models/components/paymentmethodsummaries.d.ts.map +1 -1
  48. package/models/components/paymentmethodsummaries.js +3 -3
  49. package/models/components/paymentmethodsummaries.js.map +1 -1
  50. package/models/components/{paymentmethodsummary.d.ts → paymentmethodsummaryoutput.d.ts} +14 -14
  51. package/models/components/paymentmethodsummaryoutput.d.ts.map +1 -0
  52. package/models/components/{paymentmethodsummary.js → paymentmethodsummaryoutput.js} +17 -17
  53. package/models/components/paymentmethodsummaryoutput.js.map +1 -0
  54. package/models/components/{paymentoption.d.ts → paymentoptionoutput.d.ts} +14 -14
  55. package/models/components/paymentoptionoutput.d.ts.map +1 -0
  56. package/models/components/{paymentoption.js → paymentoptionoutput.js} +17 -17
  57. package/models/components/paymentoptionoutput.js.map +1 -0
  58. package/models/components/paymentoptions.d.ts +3 -3
  59. package/models/components/paymentoptions.d.ts.map +1 -1
  60. package/models/components/paymentoptions.js +3 -3
  61. package/models/components/paymentoptions.js.map +1 -1
  62. package/models/components/payoutsummary.d.ts +6 -6
  63. package/models/components/payoutsummary.d.ts.map +1 -1
  64. package/models/components/payoutsummary.js +6 -6
  65. package/models/components/payoutsummary.js.map +1 -1
  66. package/models/components/paypaloptions.d.ts +6 -0
  67. package/models/components/paypaloptions.d.ts.map +1 -1
  68. package/models/components/paypaloptions.js +3 -0
  69. package/models/components/paypaloptions.js.map +1 -1
  70. package/models/components/paypalshippingoptions.d.ts +33 -0
  71. package/models/components/paypalshippingoptions.d.ts.map +1 -0
  72. package/models/components/paypalshippingoptions.js +72 -0
  73. package/models/components/paypalshippingoptions.js.map +1 -0
  74. package/models/components/paypalshippingoptionsitem.d.ts +75 -0
  75. package/models/components/paypalshippingoptionsitem.d.ts.map +1 -0
  76. package/models/components/paypalshippingoptionsitem.js +107 -0
  77. package/models/components/paypalshippingoptionsitem.js.map +1 -0
  78. package/models/components/paypalshippingoptionsitemamount.d.ts +37 -0
  79. package/models/components/paypalshippingoptionsitemamount.d.ts.map +1 -0
  80. package/models/components/paypalshippingoptionsitemamount.js +80 -0
  81. package/models/components/paypalshippingoptionsitemamount.js.map +1 -0
  82. package/models/components/{transactionbuyer.d.ts → transactionbuyeroutput.d.ts} +14 -14
  83. package/models/components/transactionbuyeroutput.d.ts.map +1 -0
  84. package/models/components/{transactionbuyer.js → transactionbuyeroutput.js} +17 -17
  85. package/models/components/transactionbuyeroutput.js.map +1 -0
  86. package/models/components/transactioncancel.d.ts +3 -3
  87. package/models/components/transactioncancel.d.ts.map +1 -1
  88. package/models/components/transactioncancel.js +3 -3
  89. package/models/components/transactioncancel.js.map +1 -1
  90. package/models/components/transactioncaptureoutput.d.ts +56 -0
  91. package/models/components/transactioncaptureoutput.d.ts.map +1 -0
  92. package/models/components/{transactioncapture.js → transactioncaptureoutput.js} +20 -20
  93. package/models/components/transactioncaptureoutput.js.map +1 -0
  94. package/models/components/{transactionevent.d.ts → transactioneventoutput.d.ts} +14 -14
  95. package/models/components/transactioneventoutput.d.ts.map +1 -0
  96. package/models/components/{transactionevent.js → transactioneventoutput.js} +17 -17
  97. package/models/components/transactioneventoutput.js.map +1 -0
  98. package/models/components/transactionevents.d.ts +3 -3
  99. package/models/components/transactionevents.d.ts.map +1 -1
  100. package/models/components/transactionevents.js +3 -3
  101. package/models/components/transactionevents.js.map +1 -1
  102. package/models/components/{transaction.d.ts → transactionoutput.d.ts} +23 -23
  103. package/models/components/transactionoutput.d.ts.map +1 -0
  104. package/models/components/{transaction.js → transactionoutput.js} +28 -26
  105. package/models/components/transactionoutput.js.map +1 -0
  106. package/models/components/{transactionpaymentmethod.d.ts → transactionpaymentmethodoutput.d.ts} +14 -14
  107. package/models/components/transactionpaymentmethodoutput.d.ts.map +1 -0
  108. package/models/components/{transactionpaymentmethod.js → transactionpaymentmethodoutput.js} +17 -17
  109. package/models/components/transactionpaymentmethodoutput.js.map +1 -0
  110. package/models/components/transactionsummaries.d.ts +3 -3
  111. package/models/components/transactionsummaries.d.ts.map +1 -1
  112. package/models/components/transactionsummaries.js +3 -3
  113. package/models/components/transactionsummaries.js.map +1 -1
  114. package/models/components/{transactionsummary.d.ts → transactionsummaryoutput.d.ts} +20 -20
  115. package/models/components/transactionsummaryoutput.d.ts.map +1 -0
  116. package/models/components/{transactionsummary.js → transactionsummaryoutput.js} +25 -23
  117. package/models/components/transactionsummaryoutput.js.map +1 -0
  118. package/models/components/{transactionthreedsecuresummary.d.ts → transactionthreedsecuresummaryoutput.d.ts} +14 -14
  119. package/models/components/transactionthreedsecuresummaryoutput.d.ts.map +1 -0
  120. package/models/components/{transactionthreedsecuresummary.js → transactionthreedsecuresummaryoutput.js} +17 -17
  121. package/models/components/transactionthreedsecuresummaryoutput.js.map +1 -0
  122. package/models/components/transactionvoidoutput.d.ts +56 -0
  123. package/models/components/transactionvoidoutput.d.ts.map +1 -0
  124. package/models/components/{transactionvoid.js → transactionvoidoutput.js} +20 -20
  125. package/models/components/transactionvoidoutput.js.map +1 -0
  126. package/models/operations/capturetransaction.d.ts +2 -2
  127. package/models/operations/capturetransaction.d.ts.map +1 -1
  128. package/models/operations/capturetransaction.js +4 -4
  129. package/models/operations/capturetransaction.js.map +1 -1
  130. package/models/operations/voidtransaction.d.ts +2 -2
  131. package/models/operations/voidtransaction.d.ts.map +1 -1
  132. package/models/operations/voidtransaction.js +4 -4
  133. package/models/operations/voidtransaction.js.map +1 -1
  134. package/package.json +1 -1
  135. package/sdk/transactions.d.ts +4 -4
  136. package/sdk/transactions.d.ts.map +1 -1
  137. package/src/funcs/transactionsCreate.ts +4 -4
  138. package/src/funcs/transactionsGet.ts +4 -4
  139. package/src/funcs/transactionsSync.ts +4 -4
  140. package/src/funcs/transactionsUpdate.ts +4 -4
  141. package/src/lib/config.ts +3 -3
  142. package/src/models/components/auditlogentries.ts +9 -9
  143. package/src/models/components/{auditlogentry.ts → auditlogentryoutput.ts} +24 -20
  144. package/src/models/components/checkoutsession.ts +12 -9
  145. package/src/models/components/{checkoutsessionpaymentmethod.ts → checkoutsessionpaymentmethodoutput.ts} +24 -22
  146. package/src/models/components/index.ts +15 -12
  147. package/src/models/components/paymentlink.ts +9 -9
  148. package/src/models/components/paymentmethodsummaries.ts +9 -9
  149. package/src/models/components/{paymentmethodsummary.ts → paymentmethodsummaryoutput.ts} +21 -21
  150. package/src/models/components/{paymentoption.ts → paymentoptionoutput.ts} +24 -20
  151. package/src/models/components/paymentoptions.ts +9 -9
  152. package/src/models/components/payoutsummary.ts +18 -18
  153. package/src/models/components/paypaloptions.ts +13 -0
  154. package/src/models/components/paypalshippingoptions.ts +77 -0
  155. package/src/models/components/paypalshippingoptionsitem.ts +150 -0
  156. package/src/models/components/paypalshippingoptionsitemamount.ts +87 -0
  157. package/src/models/components/{transactionbuyer.ts → transactionbuyeroutput.ts} +21 -21
  158. package/src/models/components/transactioncancel.ts +9 -9
  159. package/src/models/components/{transactioncapture.ts → transactioncaptureoutput.ts} +30 -30
  160. package/src/models/components/{transactionevent.ts → transactioneventoutput.ts} +21 -21
  161. package/src/models/components/transactionevents.ts +9 -9
  162. package/src/models/components/{transaction.ts → transactionoutput.ts} +56 -47
  163. package/src/models/components/{transactionpaymentmethod.ts → transactionpaymentmethodoutput.ts} +23 -21
  164. package/src/models/components/transactionsummaries.ts +9 -9
  165. package/src/models/components/{transactionsummary.ts → transactionsummaryoutput.ts} +41 -39
  166. package/src/models/components/{transactionthreedsecuresummary.ts → transactionthreedsecuresummaryoutput.ts} +25 -22
  167. package/src/models/components/{transactionvoid.ts → transactionvoidoutput.ts} +32 -30
  168. package/src/models/operations/capturetransaction.ts +8 -8
  169. package/src/models/operations/voidtransaction.ts +8 -8
  170. package/src/sdk/transactions.ts +4 -4
  171. package/models/components/auditlogentry.d.ts.map +0 -1
  172. package/models/components/auditlogentry.js.map +0 -1
  173. package/models/components/checkoutsessionpaymentmethod.d.ts.map +0 -1
  174. package/models/components/checkoutsessionpaymentmethod.js.map +0 -1
  175. package/models/components/paymentmethodsummary.d.ts.map +0 -1
  176. package/models/components/paymentmethodsummary.js.map +0 -1
  177. package/models/components/paymentoption.d.ts.map +0 -1
  178. package/models/components/paymentoption.js.map +0 -1
  179. package/models/components/transaction.d.ts.map +0 -1
  180. package/models/components/transaction.js.map +0 -1
  181. package/models/components/transactionbuyer.d.ts.map +0 -1
  182. package/models/components/transactionbuyer.js.map +0 -1
  183. package/models/components/transactioncapture.d.ts +0 -56
  184. package/models/components/transactioncapture.d.ts.map +0 -1
  185. package/models/components/transactioncapture.js.map +0 -1
  186. package/models/components/transactionevent.d.ts.map +0 -1
  187. package/models/components/transactionevent.js.map +0 -1
  188. package/models/components/transactionpaymentmethod.d.ts.map +0 -1
  189. package/models/components/transactionpaymentmethod.js.map +0 -1
  190. package/models/components/transactionsummary.d.ts.map +0 -1
  191. package/models/components/transactionsummary.js.map +0 -1
  192. package/models/components/transactionthreedsecuresummary.d.ts.map +0 -1
  193. package/models/components/transactionthreedsecuresummary.js.map +0 -1
  194. package/models/components/transactionvoid.d.ts +0 -56
  195. package/models/components/transactionvoid.d.ts.map +0 -1
  196. package/models/components/transactionvoid.js.map +0 -1
@@ -20,11 +20,11 @@ import {
20
20
  CartItem$outboundSchema,
21
21
  } from "./cartitem.js";
22
22
  import {
23
- CheckoutSessionPaymentMethod,
24
- CheckoutSessionPaymentMethod$inboundSchema,
25
- CheckoutSessionPaymentMethod$Outbound,
26
- CheckoutSessionPaymentMethod$outboundSchema,
27
- } from "./checkoutsessionpaymentmethod.js";
23
+ CheckoutSessionPaymentMethodOutput,
24
+ CheckoutSessionPaymentMethodOutput$inboundSchema,
25
+ CheckoutSessionPaymentMethodOutput$Outbound,
26
+ CheckoutSessionPaymentMethodOutput$outboundSchema,
27
+ } from "./checkoutsessionpaymentmethodoutput.js";
28
28
  import {
29
29
  GuestBuyerOutput,
30
30
  GuestBuyerOutput$inboundSchema,
@@ -64,7 +64,7 @@ export type CheckoutSession = {
64
64
  /**
65
65
  * Information about the payment method stored on the checkout session.
66
66
  */
67
- paymentMethod?: CheckoutSessionPaymentMethod | null | undefined;
67
+ paymentMethod?: CheckoutSessionPaymentMethodOutput | null | undefined;
68
68
  };
69
69
 
70
70
  /** @internal */
@@ -80,7 +80,7 @@ export const CheckoutSession$inboundSchema: z.ZodType<
80
80
  type: z.literal("checkout-session").default("checkout-session"),
81
81
  id: z.string(),
82
82
  expires_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
83
- payment_method: z.nullable(CheckoutSessionPaymentMethod$inboundSchema)
83
+ payment_method: z.nullable(CheckoutSessionPaymentMethodOutput$inboundSchema)
84
84
  .optional(),
85
85
  }).transform((v) => {
86
86
  return remap$(v, {
@@ -99,7 +99,10 @@ export type CheckoutSession$Outbound = {
99
99
  type: "checkout-session";
100
100
  id: string;
101
101
  expires_at: string;
102
- payment_method?: CheckoutSessionPaymentMethod$Outbound | null | undefined;
102
+ payment_method?:
103
+ | CheckoutSessionPaymentMethodOutput$Outbound
104
+ | null
105
+ | undefined;
103
106
  };
104
107
 
105
108
  /** @internal */
@@ -115,7 +118,7 @@ export const CheckoutSession$outboundSchema: z.ZodType<
115
118
  type: z.literal("checkout-session").default("checkout-session" as const),
116
119
  id: z.string(),
117
120
  expiresAt: z.date().transform(v => v.toISOString()),
118
- paymentMethod: z.nullable(CheckoutSessionPaymentMethod$outboundSchema)
121
+ paymentMethod: z.nullable(CheckoutSessionPaymentMethodOutput$outboundSchema)
119
122
  .optional(),
120
123
  }).transform((v) => {
121
124
  return remap$(v, {
@@ -18,7 +18,7 @@ import {
18
18
  CheckoutSessionPaymentMethodDetails$outboundSchema,
19
19
  } from "./checkoutsessionpaymentmethoddetails.js";
20
20
 
21
- export type CheckoutSessionPaymentMethod = {
21
+ export type CheckoutSessionPaymentMethodOutput = {
22
22
  /**
23
23
  * Always `payment-method`
24
24
  */
@@ -50,8 +50,8 @@ export type CheckoutSessionPaymentMethod = {
50
50
  };
51
51
 
52
52
  /** @internal */
53
- export const CheckoutSessionPaymentMethod$inboundSchema: z.ZodType<
54
- CheckoutSessionPaymentMethod,
53
+ export const CheckoutSessionPaymentMethodOutput$inboundSchema: z.ZodType<
54
+ CheckoutSessionPaymentMethodOutput,
55
55
  z.ZodTypeDef,
56
56
  unknown
57
57
  > = z.object({
@@ -66,7 +66,7 @@ export const CheckoutSessionPaymentMethod$inboundSchema: z.ZodType<
66
66
  });
67
67
 
68
68
  /** @internal */
69
- export type CheckoutSessionPaymentMethod$Outbound = {
69
+ export type CheckoutSessionPaymentMethodOutput$Outbound = {
70
70
  type: "payment-method";
71
71
  id?: string | null | undefined;
72
72
  details?: CheckoutSessionPaymentMethodDetails$Outbound | null | undefined;
@@ -77,10 +77,10 @@ export type CheckoutSessionPaymentMethod$Outbound = {
77
77
  };
78
78
 
79
79
  /** @internal */
80
- export const CheckoutSessionPaymentMethod$outboundSchema: z.ZodType<
81
- CheckoutSessionPaymentMethod$Outbound,
80
+ export const CheckoutSessionPaymentMethodOutput$outboundSchema: z.ZodType<
81
+ CheckoutSessionPaymentMethodOutput$Outbound,
82
82
  z.ZodTypeDef,
83
- CheckoutSessionPaymentMethod
83
+ CheckoutSessionPaymentMethodOutput
84
84
  > = z.object({
85
85
  type: z.literal("payment-method").default("payment-method" as const),
86
86
  id: z.nullable(z.string()).optional(),
@@ -96,31 +96,33 @@ export const CheckoutSessionPaymentMethod$outboundSchema: z.ZodType<
96
96
  * @internal
97
97
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
98
98
  */
99
- export namespace CheckoutSessionPaymentMethod$ {
100
- /** @deprecated use `CheckoutSessionPaymentMethod$inboundSchema` instead. */
101
- export const inboundSchema = CheckoutSessionPaymentMethod$inboundSchema;
102
- /** @deprecated use `CheckoutSessionPaymentMethod$outboundSchema` instead. */
103
- export const outboundSchema = CheckoutSessionPaymentMethod$outboundSchema;
104
- /** @deprecated use `CheckoutSessionPaymentMethod$Outbound` instead. */
105
- export type Outbound = CheckoutSessionPaymentMethod$Outbound;
99
+ export namespace CheckoutSessionPaymentMethodOutput$ {
100
+ /** @deprecated use `CheckoutSessionPaymentMethodOutput$inboundSchema` instead. */
101
+ export const inboundSchema = CheckoutSessionPaymentMethodOutput$inboundSchema;
102
+ /** @deprecated use `CheckoutSessionPaymentMethodOutput$outboundSchema` instead. */
103
+ export const outboundSchema =
104
+ CheckoutSessionPaymentMethodOutput$outboundSchema;
105
+ /** @deprecated use `CheckoutSessionPaymentMethodOutput$Outbound` instead. */
106
+ export type Outbound = CheckoutSessionPaymentMethodOutput$Outbound;
106
107
  }
107
108
 
108
- export function checkoutSessionPaymentMethodToJSON(
109
- checkoutSessionPaymentMethod: CheckoutSessionPaymentMethod,
109
+ export function checkoutSessionPaymentMethodOutputToJSON(
110
+ checkoutSessionPaymentMethodOutput: CheckoutSessionPaymentMethodOutput,
110
111
  ): string {
111
112
  return JSON.stringify(
112
- CheckoutSessionPaymentMethod$outboundSchema.parse(
113
- checkoutSessionPaymentMethod,
113
+ CheckoutSessionPaymentMethodOutput$outboundSchema.parse(
114
+ checkoutSessionPaymentMethodOutput,
114
115
  ),
115
116
  );
116
117
  }
117
118
 
118
- export function checkoutSessionPaymentMethodFromJSON(
119
+ export function checkoutSessionPaymentMethodOutputFromJSON(
119
120
  jsonString: string,
120
- ): SafeParseResult<CheckoutSessionPaymentMethod, SDKValidationError> {
121
+ ): SafeParseResult<CheckoutSessionPaymentMethodOutput, SDKValidationError> {
121
122
  return safeParse(
122
123
  jsonString,
123
- (x) => CheckoutSessionPaymentMethod$inboundSchema.parse(JSON.parse(x)),
124
- `Failed to parse 'CheckoutSessionPaymentMethod' from JSON`,
124
+ (x) =>
125
+ CheckoutSessionPaymentMethodOutput$inboundSchema.parse(JSON.parse(x)),
126
+ `Failed to parse 'CheckoutSessionPaymentMethodOutput' from JSON`,
125
127
  );
126
128
  }
@@ -25,7 +25,7 @@ export * from "./applepaysessionrequest.js";
25
25
  export * from "./approvaltarget.js";
26
26
  export * from "./auditlogaction.js";
27
27
  export * from "./auditlogentries.js";
28
- export * from "./auditlogentry.js";
28
+ export * from "./auditlogentryoutput.js";
29
29
  export * from "./auditlogentryresource.js";
30
30
  export * from "./auditlogentryuser.js";
31
31
  export * from "./avsresponsecode.js";
@@ -50,9 +50,9 @@ export * from "./cartitem.js";
50
50
  export * from "./checkoutpayoutoptions.js";
51
51
  export * from "./checkoutsession.js";
52
52
  export * from "./checkoutsessioncreate.js";
53
- export * from "./checkoutsessionpaymentmethod.js";
54
53
  export * from "./checkoutsessionpaymentmethodcreate.js";
55
54
  export * from "./checkoutsessionpaymentmethoddetails.js";
55
+ export * from "./checkoutsessionpaymentmethodoutput.js";
56
56
  export * from "./checkoutsessionwithurlpaymentmethodcreate.js";
57
57
  export * from "./clicktopayfpanpaymentmethodcreate.js";
58
58
  export * from "./clicktopaypaymentmethodcreate.js";
@@ -154,10 +154,10 @@ export * from "./paymentmethods.js";
154
154
  export * from "./paymentmethodstatus.js";
155
155
  export * from "./paymentmethodstoredcard.js";
156
156
  export * from "./paymentmethodsummaries.js";
157
- export * from "./paymentmethodsummary.js";
158
- export * from "./paymentoption.js";
157
+ export * from "./paymentmethodsummaryoutput.js";
159
158
  export * from "./paymentoptioncontext.js";
160
159
  export * from "./paymentoptioncontextapprovalui.js";
160
+ export * from "./paymentoptionoutput.js";
161
161
  export * from "./paymentoptionrequest.js";
162
162
  export * from "./paymentoptions.js";
163
163
  export * from "./paymentservice.js";
@@ -181,6 +181,9 @@ export * from "./payoutstatus.js";
181
181
  export * from "./payoutsummaries.js";
182
182
  export * from "./payoutsummary.js";
183
183
  export * from "./paypaloptions.js";
184
+ export * from "./paypalshippingoptions.js";
185
+ export * from "./paypalshippingoptionsitem.js";
186
+ export * from "./paypalshippingoptionsitemamount.js";
184
187
  export * from "./powertranzoptions.js";
185
188
  export * from "./producttype.js";
186
189
  export * from "./recipient.js";
@@ -225,19 +228,19 @@ export * from "./threedsecuremethod.js";
225
228
  export * from "./threedsecurestatus.js";
226
229
  export * from "./threedsecurev2.js";
227
230
  export * from "./tokenpaymentmethodcreate.js";
228
- export * from "./transaction.js";
229
- export * from "./transactionbuyer.js";
231
+ export * from "./transactionbuyeroutput.js";
230
232
  export * from "./transactioncancel.js";
231
- export * from "./transactioncapture.js";
232
233
  export * from "./transactioncapturecreate.js";
234
+ export * from "./transactioncaptureoutput.js";
233
235
  export * from "./transactionconnectionoptions.js";
234
236
  export * from "./transactioncreate.js";
235
- export * from "./transactionevent.js";
237
+ export * from "./transactioneventoutput.js";
236
238
  export * from "./transactionevents.js";
237
239
  export * from "./transactiongiftcard.js";
238
240
  export * from "./transactionintent.js";
239
241
  export * from "./transactionintentoutcome.js";
240
- export * from "./transactionpaymentmethod.js";
242
+ export * from "./transactionoutput.js";
243
+ export * from "./transactionpaymentmethodoutput.js";
241
244
  export * from "./transactionpaymentservice.js";
242
245
  export * from "./transactionpaymentsource.js";
243
246
  export * from "./transactionrefundallcreate.js";
@@ -246,10 +249,10 @@ export * from "./transactionretriesreportspec.js";
246
249
  export * from "./transactionsreportspec.js";
247
250
  export * from "./transactionstatus.js";
248
251
  export * from "./transactionsummaries.js";
249
- export * from "./transactionsummary.js";
250
- export * from "./transactionthreedsecuresummary.js";
252
+ export * from "./transactionsummaryoutput.js";
253
+ export * from "./transactionthreedsecuresummaryoutput.js";
251
254
  export * from "./transactionupdate.js";
252
- export * from "./transactionvoid.js";
255
+ export * from "./transactionvoidoutput.js";
253
256
  export * from "./travelhubcustomdata.js";
254
257
  export * from "./travelhuboptions.js";
255
258
  export * from "./trustlyoptions.js";
@@ -31,11 +31,11 @@ import {
31
31
  StatementDescriptor$outboundSchema,
32
32
  } from "./statementdescriptor.js";
33
33
  import {
34
- TransactionBuyer,
35
- TransactionBuyer$inboundSchema,
36
- TransactionBuyer$Outbound,
37
- TransactionBuyer$outboundSchema,
38
- } from "./transactionbuyer.js";
34
+ TransactionBuyerOutput,
35
+ TransactionBuyerOutput$inboundSchema,
36
+ TransactionBuyerOutput$Outbound,
37
+ TransactionBuyerOutput$outboundSchema,
38
+ } from "./transactionbuyeroutput.js";
39
39
  import {
40
40
  TransactionIntent,
41
41
  TransactionIntent$inboundSchema,
@@ -145,7 +145,7 @@ export type PaymentLink = {
145
145
  /**
146
146
  * The buyer associated with the payment link.
147
147
  */
148
- buyer?: TransactionBuyer | null | undefined;
148
+ buyer?: TransactionBuyerOutput | null | undefined;
149
149
  /**
150
150
  * The shipping details for the payment link.
151
151
  */
@@ -190,7 +190,7 @@ export const PaymentLink$inboundSchema: z.ZodType<
190
190
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
191
191
  updated_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
192
192
  status: PaymentLinkStatus$inboundSchema,
193
- buyer: z.nullable(TransactionBuyer$inboundSchema).optional(),
193
+ buyer: z.nullable(TransactionBuyerOutput$inboundSchema).optional(),
194
194
  shipping_details: z.nullable(ShippingDetails$inboundSchema).optional(),
195
195
  connection_options: z.nullable(z.record(z.record(z.any()))).optional(),
196
196
  }).transform((v) => {
@@ -242,7 +242,7 @@ export type PaymentLink$Outbound = {
242
242
  created_at: string;
243
243
  updated_at: string;
244
244
  status: string;
245
- buyer?: TransactionBuyer$Outbound | null | undefined;
245
+ buyer?: TransactionBuyerOutput$Outbound | null | undefined;
246
246
  shipping_details?: ShippingDetails$Outbound | null | undefined;
247
247
  connection_options?: { [k: string]: { [k: string]: any } } | null | undefined;
248
248
  };
@@ -279,7 +279,7 @@ export const PaymentLink$outboundSchema: z.ZodType<
279
279
  createdAt: z.date().transform(v => v.toISOString()),
280
280
  updatedAt: z.date().transform(v => v.toISOString()),
281
281
  status: PaymentLinkStatus$outboundSchema,
282
- buyer: z.nullable(TransactionBuyer$outboundSchema).optional(),
282
+ buyer: z.nullable(TransactionBuyerOutput$outboundSchema).optional(),
283
283
  shippingDetails: z.nullable(ShippingDetails$outboundSchema).optional(),
284
284
  connectionOptions: z.nullable(z.record(z.record(z.any()))).optional(),
285
285
  }).transform((v) => {
@@ -7,17 +7,17 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- PaymentMethodSummary,
11
- PaymentMethodSummary$inboundSchema,
12
- PaymentMethodSummary$Outbound,
13
- PaymentMethodSummary$outboundSchema,
14
- } from "./paymentmethodsummary.js";
10
+ PaymentMethodSummaryOutput,
11
+ PaymentMethodSummaryOutput$inboundSchema,
12
+ PaymentMethodSummaryOutput$Outbound,
13
+ PaymentMethodSummaryOutput$outboundSchema,
14
+ } from "./paymentmethodsummaryoutput.js";
15
15
 
16
16
  export type PaymentMethodSummaries = {
17
17
  /**
18
18
  * A list of items returned for this request.
19
19
  */
20
- items: Array<PaymentMethodSummary>;
20
+ items: Array<PaymentMethodSummaryOutput>;
21
21
  };
22
22
 
23
23
  /** @internal */
@@ -26,12 +26,12 @@ export const PaymentMethodSummaries$inboundSchema: z.ZodType<
26
26
  z.ZodTypeDef,
27
27
  unknown
28
28
  > = z.object({
29
- items: z.array(PaymentMethodSummary$inboundSchema),
29
+ items: z.array(PaymentMethodSummaryOutput$inboundSchema),
30
30
  });
31
31
 
32
32
  /** @internal */
33
33
  export type PaymentMethodSummaries$Outbound = {
34
- items: Array<PaymentMethodSummary$Outbound>;
34
+ items: Array<PaymentMethodSummaryOutput$Outbound>;
35
35
  };
36
36
 
37
37
  /** @internal */
@@ -40,7 +40,7 @@ export const PaymentMethodSummaries$outboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  PaymentMethodSummaries
42
42
  > = z.object({
43
- items: z.array(PaymentMethodSummary$outboundSchema),
43
+ items: z.array(PaymentMethodSummaryOutput$outboundSchema),
44
44
  });
45
45
 
46
46
  /**
@@ -32,7 +32,7 @@ import {
32
32
  *
33
33
  * A summary of a payment method.
34
34
  */
35
- export type PaymentMethodSummary = {
35
+ export type PaymentMethodSummaryOutput = {
36
36
  /**
37
37
  * Always `payment-method`.
38
38
  */
@@ -113,8 +113,8 @@ export type PaymentMethodSummary = {
113
113
  };
114
114
 
115
115
  /** @internal */
116
- export const PaymentMethodSummary$inboundSchema: z.ZodType<
117
- PaymentMethodSummary,
116
+ export const PaymentMethodSummaryOutput$inboundSchema: z.ZodType<
117
+ PaymentMethodSummaryOutput,
118
118
  z.ZodTypeDef,
119
119
  unknown
120
120
  > = z.object({
@@ -160,7 +160,7 @@ export const PaymentMethodSummary$inboundSchema: z.ZodType<
160
160
  });
161
161
 
162
162
  /** @internal */
163
- export type PaymentMethodSummary$Outbound = {
163
+ export type PaymentMethodSummaryOutput$Outbound = {
164
164
  type: "payment-method";
165
165
  approval_url?: string | null | undefined;
166
166
  country?: string | null | undefined;
@@ -184,10 +184,10 @@ export type PaymentMethodSummary$Outbound = {
184
184
  };
185
185
 
186
186
  /** @internal */
187
- export const PaymentMethodSummary$outboundSchema: z.ZodType<
188
- PaymentMethodSummary$Outbound,
187
+ export const PaymentMethodSummaryOutput$outboundSchema: z.ZodType<
188
+ PaymentMethodSummaryOutput$Outbound,
189
189
  z.ZodTypeDef,
190
- PaymentMethodSummary
190
+ PaymentMethodSummaryOutput
191
191
  > = z.object({
192
192
  type: z.literal("payment-method").default("payment-method" as const),
193
193
  approvalUrl: z.nullable(z.string()).optional(),
@@ -230,29 +230,29 @@ export const PaymentMethodSummary$outboundSchema: z.ZodType<
230
230
  * @internal
231
231
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
232
232
  */
233
- export namespace PaymentMethodSummary$ {
234
- /** @deprecated use `PaymentMethodSummary$inboundSchema` instead. */
235
- export const inboundSchema = PaymentMethodSummary$inboundSchema;
236
- /** @deprecated use `PaymentMethodSummary$outboundSchema` instead. */
237
- export const outboundSchema = PaymentMethodSummary$outboundSchema;
238
- /** @deprecated use `PaymentMethodSummary$Outbound` instead. */
239
- export type Outbound = PaymentMethodSummary$Outbound;
233
+ export namespace PaymentMethodSummaryOutput$ {
234
+ /** @deprecated use `PaymentMethodSummaryOutput$inboundSchema` instead. */
235
+ export const inboundSchema = PaymentMethodSummaryOutput$inboundSchema;
236
+ /** @deprecated use `PaymentMethodSummaryOutput$outboundSchema` instead. */
237
+ export const outboundSchema = PaymentMethodSummaryOutput$outboundSchema;
238
+ /** @deprecated use `PaymentMethodSummaryOutput$Outbound` instead. */
239
+ export type Outbound = PaymentMethodSummaryOutput$Outbound;
240
240
  }
241
241
 
242
- export function paymentMethodSummaryToJSON(
243
- paymentMethodSummary: PaymentMethodSummary,
242
+ export function paymentMethodSummaryOutputToJSON(
243
+ paymentMethodSummaryOutput: PaymentMethodSummaryOutput,
244
244
  ): string {
245
245
  return JSON.stringify(
246
- PaymentMethodSummary$outboundSchema.parse(paymentMethodSummary),
246
+ PaymentMethodSummaryOutput$outboundSchema.parse(paymentMethodSummaryOutput),
247
247
  );
248
248
  }
249
249
 
250
- export function paymentMethodSummaryFromJSON(
250
+ export function paymentMethodSummaryOutputFromJSON(
251
251
  jsonString: string,
252
- ): SafeParseResult<PaymentMethodSummary, SDKValidationError> {
252
+ ): SafeParseResult<PaymentMethodSummaryOutput, SDKValidationError> {
253
253
  return safeParse(
254
254
  jsonString,
255
- (x) => PaymentMethodSummary$inboundSchema.parse(JSON.parse(x)),
256
- `Failed to parse 'PaymentMethodSummary' from JSON`,
255
+ (x) => PaymentMethodSummaryOutput$inboundSchema.parse(JSON.parse(x)),
256
+ `Failed to parse 'PaymentMethodSummaryOutput' from JSON`,
257
257
  );
258
258
  }
@@ -32,7 +32,7 @@ export type Context =
32
32
  | WalletPaymentOptionContext
33
33
  | PaymentOptionContext;
34
34
 
35
- export type PaymentOption = {
35
+ export type PaymentOptionOutput = {
36
36
  type?: "payment-option" | undefined;
37
37
  method: string;
38
38
  iconUrl?: string | null | undefined;
@@ -101,8 +101,8 @@ export function contextFromJSON(
101
101
  }
102
102
 
103
103
  /** @internal */
104
- export const PaymentOption$inboundSchema: z.ZodType<
105
- PaymentOption,
104
+ export const PaymentOptionOutput$inboundSchema: z.ZodType<
105
+ PaymentOptionOutput,
106
106
  z.ZodTypeDef,
107
107
  unknown
108
108
  > = z.object({
@@ -129,7 +129,7 @@ export const PaymentOption$inboundSchema: z.ZodType<
129
129
  });
130
130
 
131
131
  /** @internal */
132
- export type PaymentOption$Outbound = {
132
+ export type PaymentOptionOutput$Outbound = {
133
133
  type: "payment-option";
134
134
  method: string;
135
135
  icon_url?: string | null | undefined;
@@ -146,10 +146,10 @@ export type PaymentOption$Outbound = {
146
146
  };
147
147
 
148
148
  /** @internal */
149
- export const PaymentOption$outboundSchema: z.ZodType<
150
- PaymentOption$Outbound,
149
+ export const PaymentOptionOutput$outboundSchema: z.ZodType<
150
+ PaymentOptionOutput$Outbound,
151
151
  z.ZodTypeDef,
152
- PaymentOption
152
+ PaymentOptionOutput
153
153
  > = z.object({
154
154
  type: z.literal("payment-option").default("payment-option" as const),
155
155
  method: z.string(),
@@ -177,25 +177,29 @@ export const PaymentOption$outboundSchema: z.ZodType<
177
177
  * @internal
178
178
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
179
179
  */
180
- export namespace PaymentOption$ {
181
- /** @deprecated use `PaymentOption$inboundSchema` instead. */
182
- export const inboundSchema = PaymentOption$inboundSchema;
183
- /** @deprecated use `PaymentOption$outboundSchema` instead. */
184
- export const outboundSchema = PaymentOption$outboundSchema;
185
- /** @deprecated use `PaymentOption$Outbound` instead. */
186
- export type Outbound = PaymentOption$Outbound;
180
+ export namespace PaymentOptionOutput$ {
181
+ /** @deprecated use `PaymentOptionOutput$inboundSchema` instead. */
182
+ export const inboundSchema = PaymentOptionOutput$inboundSchema;
183
+ /** @deprecated use `PaymentOptionOutput$outboundSchema` instead. */
184
+ export const outboundSchema = PaymentOptionOutput$outboundSchema;
185
+ /** @deprecated use `PaymentOptionOutput$Outbound` instead. */
186
+ export type Outbound = PaymentOptionOutput$Outbound;
187
187
  }
188
188
 
189
- export function paymentOptionToJSON(paymentOption: PaymentOption): string {
190
- return JSON.stringify(PaymentOption$outboundSchema.parse(paymentOption));
189
+ export function paymentOptionOutputToJSON(
190
+ paymentOptionOutput: PaymentOptionOutput,
191
+ ): string {
192
+ return JSON.stringify(
193
+ PaymentOptionOutput$outboundSchema.parse(paymentOptionOutput),
194
+ );
191
195
  }
192
196
 
193
- export function paymentOptionFromJSON(
197
+ export function paymentOptionOutputFromJSON(
194
198
  jsonString: string,
195
- ): SafeParseResult<PaymentOption, SDKValidationError> {
199
+ ): SafeParseResult<PaymentOptionOutput, SDKValidationError> {
196
200
  return safeParse(
197
201
  jsonString,
198
- (x) => PaymentOption$inboundSchema.parse(JSON.parse(x)),
199
- `Failed to parse 'PaymentOption' from JSON`,
202
+ (x) => PaymentOptionOutput$inboundSchema.parse(JSON.parse(x)),
203
+ `Failed to parse 'PaymentOptionOutput' from JSON`,
200
204
  );
201
205
  }
@@ -7,17 +7,17 @@ import { safeParse } from "../../lib/schemas.js";
7
7
  import { Result as SafeParseResult } from "../../types/fp.js";
8
8
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
9
9
  import {
10
- PaymentOption,
11
- PaymentOption$inboundSchema,
12
- PaymentOption$Outbound,
13
- PaymentOption$outboundSchema,
14
- } from "./paymentoption.js";
10
+ PaymentOptionOutput,
11
+ PaymentOptionOutput$inboundSchema,
12
+ PaymentOptionOutput$Outbound,
13
+ PaymentOptionOutput$outboundSchema,
14
+ } from "./paymentoptionoutput.js";
15
15
 
16
16
  export type PaymentOptions = {
17
17
  /**
18
18
  * A list of items returned for this request.
19
19
  */
20
- items: Array<PaymentOption>;
20
+ items: Array<PaymentOptionOutput>;
21
21
  };
22
22
 
23
23
  /** @internal */
@@ -26,12 +26,12 @@ export const PaymentOptions$inboundSchema: z.ZodType<
26
26
  z.ZodTypeDef,
27
27
  unknown
28
28
  > = z.object({
29
- items: z.array(PaymentOption$inboundSchema),
29
+ items: z.array(PaymentOptionOutput$inboundSchema),
30
30
  });
31
31
 
32
32
  /** @internal */
33
33
  export type PaymentOptions$Outbound = {
34
- items: Array<PaymentOption$Outbound>;
34
+ items: Array<PaymentOptionOutput$Outbound>;
35
35
  };
36
36
 
37
37
  /** @internal */
@@ -40,7 +40,7 @@ export const PaymentOptions$outboundSchema: z.ZodType<
40
40
  z.ZodTypeDef,
41
41
  PaymentOptions
42
42
  > = z.object({
43
- items: z.array(PaymentOption$outboundSchema),
43
+ items: z.array(PaymentOptionOutput$outboundSchema),
44
44
  });
45
45
 
46
46
  /**
@@ -30,17 +30,17 @@ import {
30
30
  PayoutStatus$outboundSchema,
31
31
  } from "./payoutstatus.js";
32
32
  import {
33
- TransactionBuyer,
34
- TransactionBuyer$inboundSchema,
35
- TransactionBuyer$Outbound,
36
- TransactionBuyer$outboundSchema,
37
- } from "./transactionbuyer.js";
33
+ TransactionBuyerOutput,
34
+ TransactionBuyerOutput$inboundSchema,
35
+ TransactionBuyerOutput$Outbound,
36
+ TransactionBuyerOutput$outboundSchema,
37
+ } from "./transactionbuyeroutput.js";
38
38
  import {
39
- TransactionPaymentMethod,
40
- TransactionPaymentMethod$inboundSchema,
41
- TransactionPaymentMethod$Outbound,
42
- TransactionPaymentMethod$outboundSchema,
43
- } from "./transactionpaymentmethod.js";
39
+ TransactionPaymentMethodOutput,
40
+ TransactionPaymentMethodOutput$inboundSchema,
41
+ TransactionPaymentMethodOutput$Outbound,
42
+ TransactionPaymentMethodOutput$outboundSchema,
43
+ } from "./transactionpaymentmethodoutput.js";
44
44
 
45
45
  /**
46
46
  * PayoutSummary
@@ -65,7 +65,7 @@ export type PayoutSummary = {
65
65
  /**
66
66
  * The buyer used for this payout.
67
67
  */
68
- buyer?: TransactionBuyer | null | undefined;
68
+ buyer?: TransactionBuyerOutput | null | undefined;
69
69
  /**
70
70
  * The type of payout to process.
71
71
  */
@@ -90,7 +90,7 @@ export type PayoutSummary = {
90
90
  * The ID of the merchant account this payout was created for.
91
91
  */
92
92
  merchantAccountId?: string | null | undefined;
93
- paymentMethod: TransactionPaymentMethod;
93
+ paymentMethod: TransactionPaymentMethodOutput;
94
94
  paymentService: PayoutPaymentService;
95
95
  /**
96
96
  * The ID of the payout in the underlying payment service.
@@ -112,14 +112,14 @@ export const PayoutSummary$inboundSchema: z.ZodType<
112
112
  type: z.literal("payout").default("payout"),
113
113
  id: z.nullable(z.string()).optional(),
114
114
  amount: z.number().int(),
115
- buyer: z.nullable(TransactionBuyer$inboundSchema).optional(),
115
+ buyer: z.nullable(TransactionBuyerOutput$inboundSchema).optional(),
116
116
  category: z.nullable(PayoutCategory$inboundSchema).optional(),
117
117
  created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
118
118
  currency: z.string(),
119
119
  external_identifier: z.nullable(z.string()).optional(),
120
120
  merchant: z.nullable(PayoutMerchantSummary$inboundSchema).optional(),
121
121
  merchant_account_id: z.nullable(z.string()).optional(),
122
- payment_method: TransactionPaymentMethod$inboundSchema,
122
+ payment_method: TransactionPaymentMethodOutput$inboundSchema,
123
123
  payment_service: PayoutPaymentService$inboundSchema,
124
124
  payment_service_payout_id: z.nullable(z.string()).optional(),
125
125
  status: PayoutStatus$inboundSchema,
@@ -141,14 +141,14 @@ export type PayoutSummary$Outbound = {
141
141
  type: "payout";
142
142
  id?: string | null | undefined;
143
143
  amount: number;
144
- buyer?: TransactionBuyer$Outbound | null | undefined;
144
+ buyer?: TransactionBuyerOutput$Outbound | null | undefined;
145
145
  category?: string | null | undefined;
146
146
  created_at: string;
147
147
  currency: string;
148
148
  external_identifier?: string | null | undefined;
149
149
  merchant?: PayoutMerchantSummary$Outbound | null | undefined;
150
150
  merchant_account_id?: string | null | undefined;
151
- payment_method: TransactionPaymentMethod$Outbound;
151
+ payment_method: TransactionPaymentMethodOutput$Outbound;
152
152
  payment_service: PayoutPaymentService$Outbound;
153
153
  payment_service_payout_id?: string | null | undefined;
154
154
  status: string;
@@ -164,14 +164,14 @@ export const PayoutSummary$outboundSchema: z.ZodType<
164
164
  type: z.literal("payout").default("payout" as const),
165
165
  id: z.nullable(z.string()).optional(),
166
166
  amount: z.number().int(),
167
- buyer: z.nullable(TransactionBuyer$outboundSchema).optional(),
167
+ buyer: z.nullable(TransactionBuyerOutput$outboundSchema).optional(),
168
168
  category: z.nullable(PayoutCategory$outboundSchema).optional(),
169
169
  createdAt: z.date().transform(v => v.toISOString()),
170
170
  currency: z.string(),
171
171
  externalIdentifier: z.nullable(z.string()).optional(),
172
172
  merchant: z.nullable(PayoutMerchantSummary$outboundSchema).optional(),
173
173
  merchantAccountId: z.nullable(z.string()).optional(),
174
- paymentMethod: TransactionPaymentMethod$outboundSchema,
174
+ paymentMethod: TransactionPaymentMethodOutput$outboundSchema,
175
175
  paymentService: PayoutPaymentService$outboundSchema,
176
176
  paymentServicePayoutId: z.nullable(z.string()).optional(),
177
177
  status: PayoutStatus$outboundSchema,