@gr4vy/sdk 1.5.2 → 1.5.5

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 (211) 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 +16 -12
  39. package/models/components/index.d.ts.map +1 -1
  40. package/models/components/index.js +16 -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/plaidpaymentmethodcreate.d.ts +64 -0
  83. package/models/components/plaidpaymentmethodcreate.d.ts.map +1 -0
  84. package/models/components/plaidpaymentmethodcreate.js +94 -0
  85. package/models/components/plaidpaymentmethodcreate.js.map +1 -0
  86. package/models/components/{transactionbuyer.d.ts → transactionbuyeroutput.d.ts} +14 -14
  87. package/models/components/transactionbuyeroutput.d.ts.map +1 -0
  88. package/models/components/{transactionbuyer.js → transactionbuyeroutput.js} +17 -17
  89. package/models/components/transactionbuyeroutput.js.map +1 -0
  90. package/models/components/transactioncancel.d.ts +3 -3
  91. package/models/components/transactioncancel.d.ts.map +1 -1
  92. package/models/components/transactioncancel.js +3 -3
  93. package/models/components/transactioncancel.js.map +1 -1
  94. package/models/components/transactioncaptureoutput.d.ts +56 -0
  95. package/models/components/transactioncaptureoutput.d.ts.map +1 -0
  96. package/models/components/{transactioncapture.js → transactioncaptureoutput.js} +20 -20
  97. package/models/components/transactioncaptureoutput.js.map +1 -0
  98. package/models/components/transactioncreate.d.ts +5 -4
  99. package/models/components/transactioncreate.d.ts.map +1 -1
  100. package/models/components/transactioncreate.js +5 -0
  101. package/models/components/transactioncreate.js.map +1 -1
  102. package/models/components/{transactionevent.d.ts → transactioneventoutput.d.ts} +14 -14
  103. package/models/components/transactioneventoutput.d.ts.map +1 -0
  104. package/models/components/{transactionevent.js → transactioneventoutput.js} +17 -17
  105. package/models/components/transactioneventoutput.js.map +1 -0
  106. package/models/components/transactionevents.d.ts +3 -3
  107. package/models/components/transactionevents.d.ts.map +1 -1
  108. package/models/components/transactionevents.js +3 -3
  109. package/models/components/transactionevents.js.map +1 -1
  110. package/models/components/{transaction.d.ts → transactionoutput.d.ts} +23 -23
  111. package/models/components/transactionoutput.d.ts.map +1 -0
  112. package/models/components/{transaction.js → transactionoutput.js} +28 -26
  113. package/models/components/transactionoutput.js.map +1 -0
  114. package/models/components/{transactionpaymentmethod.d.ts → transactionpaymentmethodoutput.d.ts} +14 -14
  115. package/models/components/transactionpaymentmethodoutput.d.ts.map +1 -0
  116. package/models/components/{transactionpaymentmethod.js → transactionpaymentmethodoutput.js} +17 -17
  117. package/models/components/transactionpaymentmethodoutput.js.map +1 -0
  118. package/models/components/transactionsummaries.d.ts +3 -3
  119. package/models/components/transactionsummaries.d.ts.map +1 -1
  120. package/models/components/transactionsummaries.js +3 -3
  121. package/models/components/transactionsummaries.js.map +1 -1
  122. package/models/components/{transactionsummary.d.ts → transactionsummaryoutput.d.ts} +20 -20
  123. package/models/components/transactionsummaryoutput.d.ts.map +1 -0
  124. package/models/components/{transactionsummary.js → transactionsummaryoutput.js} +25 -23
  125. package/models/components/transactionsummaryoutput.js.map +1 -0
  126. package/models/components/{transactionthreedsecuresummary.d.ts → transactionthreedsecuresummaryoutput.d.ts} +14 -14
  127. package/models/components/transactionthreedsecuresummaryoutput.d.ts.map +1 -0
  128. package/models/components/{transactionthreedsecuresummary.js → transactionthreedsecuresummaryoutput.js} +17 -17
  129. package/models/components/transactionthreedsecuresummaryoutput.js.map +1 -0
  130. package/models/components/transactionvoidoutput.d.ts +56 -0
  131. package/models/components/transactionvoidoutput.d.ts.map +1 -0
  132. package/models/components/{transactionvoid.js → transactionvoidoutput.js} +20 -20
  133. package/models/components/transactionvoidoutput.js.map +1 -0
  134. package/models/operations/capturetransaction.d.ts +2 -2
  135. package/models/operations/capturetransaction.d.ts.map +1 -1
  136. package/models/operations/capturetransaction.js +4 -4
  137. package/models/operations/capturetransaction.js.map +1 -1
  138. package/models/operations/createpaymentmethod.d.ts +4 -4
  139. package/models/operations/createpaymentmethod.d.ts.map +1 -1
  140. package/models/operations/createpaymentmethod.js +4 -0
  141. package/models/operations/createpaymentmethod.js.map +1 -1
  142. package/models/operations/voidtransaction.d.ts +2 -2
  143. package/models/operations/voidtransaction.d.ts.map +1 -1
  144. package/models/operations/voidtransaction.js +4 -4
  145. package/models/operations/voidtransaction.js.map +1 -1
  146. package/package.json +1 -1
  147. package/sdk/transactions.d.ts +4 -4
  148. package/sdk/transactions.d.ts.map +1 -1
  149. package/src/funcs/transactionsCreate.ts +4 -4
  150. package/src/funcs/transactionsGet.ts +4 -4
  151. package/src/funcs/transactionsSync.ts +4 -4
  152. package/src/funcs/transactionsUpdate.ts +4 -4
  153. package/src/lib/config.ts +3 -3
  154. package/src/models/components/auditlogentries.ts +9 -9
  155. package/src/models/components/{auditlogentry.ts → auditlogentryoutput.ts} +24 -20
  156. package/src/models/components/checkoutsession.ts +12 -9
  157. package/src/models/components/{checkoutsessionpaymentmethod.ts → checkoutsessionpaymentmethodoutput.ts} +24 -22
  158. package/src/models/components/index.ts +16 -12
  159. package/src/models/components/paymentlink.ts +9 -9
  160. package/src/models/components/paymentmethodsummaries.ts +9 -9
  161. package/src/models/components/{paymentmethodsummary.ts → paymentmethodsummaryoutput.ts} +21 -21
  162. package/src/models/components/{paymentoption.ts → paymentoptionoutput.ts} +24 -20
  163. package/src/models/components/paymentoptions.ts +9 -9
  164. package/src/models/components/payoutsummary.ts +18 -18
  165. package/src/models/components/paypaloptions.ts +13 -0
  166. package/src/models/components/paypalshippingoptions.ts +77 -0
  167. package/src/models/components/paypalshippingoptionsitem.ts +150 -0
  168. package/src/models/components/paypalshippingoptionsitemamount.ts +87 -0
  169. package/src/models/components/plaidpaymentmethodcreate.ts +126 -0
  170. package/src/models/components/{transactionbuyer.ts → transactionbuyeroutput.ts} +21 -21
  171. package/src/models/components/transactioncancel.ts +9 -9
  172. package/src/models/components/{transactioncapture.ts → transactioncaptureoutput.ts} +30 -30
  173. package/src/models/components/transactioncreate.ts +14 -0
  174. package/src/models/components/{transactionevent.ts → transactioneventoutput.ts} +21 -21
  175. package/src/models/components/transactionevents.ts +9 -9
  176. package/src/models/components/{transaction.ts → transactionoutput.ts} +56 -47
  177. package/src/models/components/{transactionpaymentmethod.ts → transactionpaymentmethodoutput.ts} +23 -21
  178. package/src/models/components/transactionsummaries.ts +9 -9
  179. package/src/models/components/{transactionsummary.ts → transactionsummaryoutput.ts} +41 -39
  180. package/src/models/components/{transactionthreedsecuresummary.ts → transactionthreedsecuresummaryoutput.ts} +25 -22
  181. package/src/models/components/{transactionvoid.ts → transactionvoidoutput.ts} +32 -30
  182. package/src/models/operations/capturetransaction.ts +8 -8
  183. package/src/models/operations/createpaymentmethod.ts +12 -4
  184. package/src/models/operations/voidtransaction.ts +8 -8
  185. package/src/sdk/transactions.ts +4 -4
  186. package/models/components/auditlogentry.d.ts.map +0 -1
  187. package/models/components/auditlogentry.js.map +0 -1
  188. package/models/components/checkoutsessionpaymentmethod.d.ts.map +0 -1
  189. package/models/components/checkoutsessionpaymentmethod.js.map +0 -1
  190. package/models/components/paymentmethodsummary.d.ts.map +0 -1
  191. package/models/components/paymentmethodsummary.js.map +0 -1
  192. package/models/components/paymentoption.d.ts.map +0 -1
  193. package/models/components/paymentoption.js.map +0 -1
  194. package/models/components/transaction.d.ts.map +0 -1
  195. package/models/components/transaction.js.map +0 -1
  196. package/models/components/transactionbuyer.d.ts.map +0 -1
  197. package/models/components/transactionbuyer.js.map +0 -1
  198. package/models/components/transactioncapture.d.ts +0 -56
  199. package/models/components/transactioncapture.d.ts.map +0 -1
  200. package/models/components/transactioncapture.js.map +0 -1
  201. package/models/components/transactionevent.d.ts.map +0 -1
  202. package/models/components/transactionevent.js.map +0 -1
  203. package/models/components/transactionpaymentmethod.d.ts.map +0 -1
  204. package/models/components/transactionpaymentmethod.js.map +0 -1
  205. package/models/components/transactionsummary.d.ts.map +0 -1
  206. package/models/components/transactionsummary.js.map +0 -1
  207. package/models/components/transactionthreedsecuresummary.d.ts.map +0 -1
  208. package/models/components/transactionthreedsecuresummary.js.map +0 -1
  209. package/models/components/transactionvoid.d.ts +0 -56
  210. package/models/components/transactionvoid.d.ts.map +0 -1
  211. package/models/components/transactionvoid.js.map +0 -1
@@ -0,0 +1,75 @@
1
+ import * as z from "zod/v3";
2
+ import { OpenEnum } from "../../types/enums.js";
3
+ import { Result as SafeParseResult } from "../../types/fp.js";
4
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
5
+ import { PaypalShippingOptionsItemAmount, PaypalShippingOptionsItemAmount$Outbound } from "./paypalshippingoptionsitemamount.js";
6
+ export declare const PaypalShippingOptionsItemType: {
7
+ readonly Shipping: "SHIPPING";
8
+ readonly Pickup: "PICKUP";
9
+ readonly PickupInStore: "PICKUP_IN_STORE";
10
+ readonly PickupFromPerson: "PICKUP_FROM_PERSON";
11
+ };
12
+ export type PaypalShippingOptionsItemType = OpenEnum<typeof PaypalShippingOptionsItemType>;
13
+ export type PaypalShippingOptionsItem = {
14
+ /**
15
+ * A unique ID that identifies a payer-selected shipping option.
16
+ */
17
+ id: string;
18
+ /**
19
+ * A description that the payer sees, which helps them choose an appropriate shipping option.
20
+ */
21
+ label: string;
22
+ /**
23
+ * If the API request sets selected = true, it represents the shipping option that the payee or merchant expects to be pre-selected for the payer when they first view the shipping.options in the PayPal Checkout experience. Only one shipping.option can be set to selected=true.
24
+ */
25
+ selected: boolean;
26
+ /**
27
+ * A classification for the method of purchase fulfillment.
28
+ */
29
+ type?: PaypalShippingOptionsItemType | null | undefined;
30
+ /**
31
+ * The shipping cost for the selected option.
32
+ */
33
+ amount?: PaypalShippingOptionsItemAmount | null | undefined;
34
+ };
35
+ /** @internal */
36
+ export declare const PaypalShippingOptionsItemType$inboundSchema: z.ZodType<PaypalShippingOptionsItemType, z.ZodTypeDef, unknown>;
37
+ /** @internal */
38
+ export declare const PaypalShippingOptionsItemType$outboundSchema: z.ZodType<PaypalShippingOptionsItemType, z.ZodTypeDef, PaypalShippingOptionsItemType>;
39
+ /**
40
+ * @internal
41
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
+ */
43
+ export declare namespace PaypalShippingOptionsItemType$ {
44
+ /** @deprecated use `PaypalShippingOptionsItemType$inboundSchema` instead. */
45
+ const inboundSchema: z.ZodType<PaypalShippingOptionsItemType, z.ZodTypeDef, unknown>;
46
+ /** @deprecated use `PaypalShippingOptionsItemType$outboundSchema` instead. */
47
+ const outboundSchema: z.ZodType<PaypalShippingOptionsItemType, z.ZodTypeDef, PaypalShippingOptionsItemType>;
48
+ }
49
+ /** @internal */
50
+ export declare const PaypalShippingOptionsItem$inboundSchema: z.ZodType<PaypalShippingOptionsItem, z.ZodTypeDef, unknown>;
51
+ /** @internal */
52
+ export type PaypalShippingOptionsItem$Outbound = {
53
+ id: string;
54
+ label: string;
55
+ selected: boolean;
56
+ type?: string | null | undefined;
57
+ amount?: PaypalShippingOptionsItemAmount$Outbound | null | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const PaypalShippingOptionsItem$outboundSchema: z.ZodType<PaypalShippingOptionsItem$Outbound, z.ZodTypeDef, PaypalShippingOptionsItem>;
61
+ /**
62
+ * @internal
63
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
64
+ */
65
+ export declare namespace PaypalShippingOptionsItem$ {
66
+ /** @deprecated use `PaypalShippingOptionsItem$inboundSchema` instead. */
67
+ const inboundSchema: z.ZodType<PaypalShippingOptionsItem, z.ZodTypeDef, unknown>;
68
+ /** @deprecated use `PaypalShippingOptionsItem$outboundSchema` instead. */
69
+ const outboundSchema: z.ZodType<PaypalShippingOptionsItem$Outbound, z.ZodTypeDef, PaypalShippingOptionsItem>;
70
+ /** @deprecated use `PaypalShippingOptionsItem$Outbound` instead. */
71
+ type Outbound = PaypalShippingOptionsItem$Outbound;
72
+ }
73
+ export declare function paypalShippingOptionsItemToJSON(paypalShippingOptionsItem: PaypalShippingOptionsItem): string;
74
+ export declare function paypalShippingOptionsItemFromJSON(jsonString: string): SafeParseResult<PaypalShippingOptionsItem, SDKValidationError>;
75
+ //# sourceMappingURL=paypalshippingoptionsitem.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypalshippingoptionsitem.d.ts","sourceRoot":"","sources":["../../src/models/components/paypalshippingoptionsitem.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,QAAQ,CAAC;AAE5B,OAAO,EAEL,QAAQ,EAET,MAAM,sBAAsB,CAAC;AAC9B,OAAO,EAAE,MAAM,IAAI,eAAe,EAAE,MAAM,mBAAmB,CAAC;AAC9D,OAAO,EAAE,kBAAkB,EAAE,MAAM,iCAAiC,CAAC;AACrE,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAE9C,eAAO,MAAM,6BAA6B;;;;;CAKhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,QAAQ,CAClD,OAAO,6BAA6B,CACrC,CAAC;AAEF,MAAM,MAAM,yBAAyB,GAAG;IACtC;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,QAAQ,EAAE,OAAO,CAAC;IAClB;;OAEG;IACH,IAAI,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAC;IACxD;;OAEG;IACH,MAAM,CAAC,EAAE,+BAA+B,GAAG,IAAI,GAAG,SAAS,CAAC;CAC7D,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,OAAO,CACjE,6BAA6B,EAC7B,CAAC,CAAC,UAAU,EACZ,OAAO,CAKL,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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.PaypalShippingOptionsItem$ = exports.PaypalShippingOptionsItem$outboundSchema = exports.PaypalShippingOptionsItem$inboundSchema = exports.PaypalShippingOptionsItemType$ = exports.PaypalShippingOptionsItemType$outboundSchema = exports.PaypalShippingOptionsItemType$inboundSchema = exports.PaypalShippingOptionsItemType = void 0;
40
+ exports.paypalShippingOptionsItemToJSON = paypalShippingOptionsItemToJSON;
41
+ exports.paypalShippingOptionsItemFromJSON = paypalShippingOptionsItemFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const schemas_js_1 = require("../../lib/schemas.js");
44
+ const enums_js_1 = require("../../types/enums.js");
45
+ const paypalshippingoptionsitemamount_js_1 = require("./paypalshippingoptionsitemamount.js");
46
+ exports.PaypalShippingOptionsItemType = {
47
+ Shipping: "SHIPPING",
48
+ Pickup: "PICKUP",
49
+ PickupInStore: "PICKUP_IN_STORE",
50
+ PickupFromPerson: "PICKUP_FROM_PERSON",
51
+ };
52
+ /** @internal */
53
+ exports.PaypalShippingOptionsItemType$inboundSchema = z
54
+ .union([
55
+ z.nativeEnum(exports.PaypalShippingOptionsItemType),
56
+ z.string().transform(enums_js_1.catchUnrecognizedEnum),
57
+ ]);
58
+ /** @internal */
59
+ exports.PaypalShippingOptionsItemType$outboundSchema = z.union([
60
+ z.nativeEnum(exports.PaypalShippingOptionsItemType),
61
+ z.string().and(z.custom()),
62
+ ]);
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ var PaypalShippingOptionsItemType$;
68
+ (function (PaypalShippingOptionsItemType$) {
69
+ /** @deprecated use `PaypalShippingOptionsItemType$inboundSchema` instead. */
70
+ PaypalShippingOptionsItemType$.inboundSchema = exports.PaypalShippingOptionsItemType$inboundSchema;
71
+ /** @deprecated use `PaypalShippingOptionsItemType$outboundSchema` instead. */
72
+ PaypalShippingOptionsItemType$.outboundSchema = exports.PaypalShippingOptionsItemType$outboundSchema;
73
+ })(PaypalShippingOptionsItemType$ || (exports.PaypalShippingOptionsItemType$ = PaypalShippingOptionsItemType$ = {}));
74
+ /** @internal */
75
+ exports.PaypalShippingOptionsItem$inboundSchema = z.object({
76
+ id: z.string(),
77
+ label: z.string(),
78
+ selected: z.boolean(),
79
+ type: z.nullable(exports.PaypalShippingOptionsItemType$inboundSchema).optional(),
80
+ amount: z.nullable(paypalshippingoptionsitemamount_js_1.PaypalShippingOptionsItemAmount$inboundSchema).optional(),
81
+ });
82
+ /** @internal */
83
+ exports.PaypalShippingOptionsItem$outboundSchema = z.object({
84
+ id: z.string(),
85
+ label: z.string(),
86
+ selected: z.boolean(),
87
+ type: z.nullable(exports.PaypalShippingOptionsItemType$outboundSchema).optional(),
88
+ amount: z.nullable(paypalshippingoptionsitemamount_js_1.PaypalShippingOptionsItemAmount$outboundSchema).optional(),
89
+ });
90
+ /**
91
+ * @internal
92
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
93
+ */
94
+ var PaypalShippingOptionsItem$;
95
+ (function (PaypalShippingOptionsItem$) {
96
+ /** @deprecated use `PaypalShippingOptionsItem$inboundSchema` instead. */
97
+ PaypalShippingOptionsItem$.inboundSchema = exports.PaypalShippingOptionsItem$inboundSchema;
98
+ /** @deprecated use `PaypalShippingOptionsItem$outboundSchema` instead. */
99
+ PaypalShippingOptionsItem$.outboundSchema = exports.PaypalShippingOptionsItem$outboundSchema;
100
+ })(PaypalShippingOptionsItem$ || (exports.PaypalShippingOptionsItem$ = PaypalShippingOptionsItem$ = {}));
101
+ function paypalShippingOptionsItemToJSON(paypalShippingOptionsItem) {
102
+ return JSON.stringify(exports.PaypalShippingOptionsItem$outboundSchema.parse(paypalShippingOptionsItem));
103
+ }
104
+ function paypalShippingOptionsItemFromJSON(jsonString) {
105
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaypalShippingOptionsItem$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaypalShippingOptionsItem' from JSON`);
106
+ }
107
+ //# sourceMappingURL=paypalshippingoptionsitem.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypalshippingoptionsitem.js","sourceRoot":"","sources":["../../src/models/components/paypalshippingoptionsitem.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAmIH,0EAMC;AAED,8EAQC;AAjJD,0CAA4B;AAC5B,qDAAiD;AACjD,mDAI8B;AAG9B,6FAK8C;AAEjC,QAAA,6BAA6B,GAAG;IAC3C,QAAQ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,QAAQ,EAAE,CAAC,CAAC,OAAO,EAAE;IACrB,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,oDAA4C,CAAC,CAAC,QAAQ,EAAE;IACzE,MAAM,EAAE,CAAC,CAAC,QAAQ,CAAC,mFAA8C,CAAC,CAAC,QAAQ,EAAE;CAC9E,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C;AAED,SAAgB,+BAA+B,CAC7C,yBAAoD;IAEpD,OAAO,IAAI,CAAC,SAAS,CACnB,gDAAwC,CAAC,KAAK,CAAC,yBAAyB,CAAC,CAC1E,CAAC;AACJ,CAAC;AAED,SAAgB,iCAAiC,CAC/C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,+CAAuC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACnE,uDAAuD,CACxD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,37 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ export type PaypalShippingOptionsItemAmount = {
5
+ /**
6
+ * The three-character ISO currency code.
7
+ */
8
+ currencyCode: string;
9
+ /**
10
+ * The amount value, which might include a decimal portion.
11
+ */
12
+ value: string;
13
+ };
14
+ /** @internal */
15
+ export declare const PaypalShippingOptionsItemAmount$inboundSchema: z.ZodType<PaypalShippingOptionsItemAmount, z.ZodTypeDef, unknown>;
16
+ /** @internal */
17
+ export type PaypalShippingOptionsItemAmount$Outbound = {
18
+ currency_code: string;
19
+ value: string;
20
+ };
21
+ /** @internal */
22
+ export declare const PaypalShippingOptionsItemAmount$outboundSchema: z.ZodType<PaypalShippingOptionsItemAmount$Outbound, z.ZodTypeDef, PaypalShippingOptionsItemAmount>;
23
+ /**
24
+ * @internal
25
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
26
+ */
27
+ export declare namespace PaypalShippingOptionsItemAmount$ {
28
+ /** @deprecated use `PaypalShippingOptionsItemAmount$inboundSchema` instead. */
29
+ const inboundSchema: z.ZodType<PaypalShippingOptionsItemAmount, z.ZodTypeDef, unknown>;
30
+ /** @deprecated use `PaypalShippingOptionsItemAmount$outboundSchema` instead. */
31
+ const outboundSchema: z.ZodType<PaypalShippingOptionsItemAmount$Outbound, z.ZodTypeDef, PaypalShippingOptionsItemAmount>;
32
+ /** @deprecated use `PaypalShippingOptionsItemAmount$Outbound` instead. */
33
+ type Outbound = PaypalShippingOptionsItemAmount$Outbound;
34
+ }
35
+ export declare function paypalShippingOptionsItemAmountToJSON(paypalShippingOptionsItemAmount: PaypalShippingOptionsItemAmount): string;
36
+ export declare function paypalShippingOptionsItemAmountFromJSON(jsonString: string): SafeParseResult<PaypalShippingOptionsItemAmount, SDKValidationError>;
37
+ //# sourceMappingURL=paypalshippingoptionsitemamount.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypalshippingoptionsitemamount.d.ts","sourceRoot":"","sources":["../../src/models/components/paypalshippingoptionsitemamount.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;AAErE,MAAM,MAAM,+BAA+B,GAAG;IAC5C;;OAEG;IACH,YAAY,EAAE,MAAM,CAAC;IACrB;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAQP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,aAAa,EAAE,MAAM,CAAC;IACtB,KAAK,EAAE,MAAM,CAAC;CACf,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAQ/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE;AAED,wBAAgB,qCAAqC,CACnD,+BAA+B,EAAE,+BAA+B,GAC/D,MAAM,CAMR;AAED,wBAAgB,uCAAuC,CACrD,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,+BAA+B,EAAE,kBAAkB,CAAC,CAMtE"}
@@ -0,0 +1,80 @@
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.PaypalShippingOptionsItemAmount$ = exports.PaypalShippingOptionsItemAmount$outboundSchema = exports.PaypalShippingOptionsItemAmount$inboundSchema = void 0;
40
+ exports.paypalShippingOptionsItemAmountToJSON = paypalShippingOptionsItemAmountToJSON;
41
+ exports.paypalShippingOptionsItemAmountFromJSON = paypalShippingOptionsItemAmountFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /** @internal */
46
+ exports.PaypalShippingOptionsItemAmount$inboundSchema = z.object({
47
+ currency_code: z.string(),
48
+ value: z.string(),
49
+ }).transform((v) => {
50
+ return (0, primitives_js_1.remap)(v, {
51
+ "currency_code": "currencyCode",
52
+ });
53
+ });
54
+ /** @internal */
55
+ exports.PaypalShippingOptionsItemAmount$outboundSchema = z.object({
56
+ currencyCode: z.string(),
57
+ value: z.string(),
58
+ }).transform((v) => {
59
+ return (0, primitives_js_1.remap)(v, {
60
+ currencyCode: "currency_code",
61
+ });
62
+ });
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ var PaypalShippingOptionsItemAmount$;
68
+ (function (PaypalShippingOptionsItemAmount$) {
69
+ /** @deprecated use `PaypalShippingOptionsItemAmount$inboundSchema` instead. */
70
+ PaypalShippingOptionsItemAmount$.inboundSchema = exports.PaypalShippingOptionsItemAmount$inboundSchema;
71
+ /** @deprecated use `PaypalShippingOptionsItemAmount$outboundSchema` instead. */
72
+ PaypalShippingOptionsItemAmount$.outboundSchema = exports.PaypalShippingOptionsItemAmount$outboundSchema;
73
+ })(PaypalShippingOptionsItemAmount$ || (exports.PaypalShippingOptionsItemAmount$ = PaypalShippingOptionsItemAmount$ = {}));
74
+ function paypalShippingOptionsItemAmountToJSON(paypalShippingOptionsItemAmount) {
75
+ return JSON.stringify(exports.PaypalShippingOptionsItemAmount$outboundSchema.parse(paypalShippingOptionsItemAmount));
76
+ }
77
+ function paypalShippingOptionsItemAmountFromJSON(jsonString) {
78
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PaypalShippingOptionsItemAmount$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PaypalShippingOptionsItemAmount' from JSON`);
79
+ }
80
+ //# sourceMappingURL=paypalshippingoptionsitemamount.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"paypalshippingoptionsitemamount.js","sourceRoot":"","sources":["../../src/models/components/paypalshippingoptionsitemamount.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAkEH,sFAQC;AAED,0FAQC;AAlFD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAejD,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,CAAC;IACX,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE;IACzB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,cAAc;KAChC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAQH,gBAAgB;AACH,QAAA,8CAA8C,GAIvD,CAAC,CAAC,MAAM,CAAC;IACX,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE;IACxB,KAAK,EAAE,CAAC,CAAC,MAAM,EAAE;CAClB,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,gCAAgC,CAOhD;AAPD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAG/E,CAAC,EAPgB,gCAAgC,gDAAhC,gCAAgC,QAOhD;AAED,SAAgB,qCAAqC,CACnD,+BAAgE;IAEhE,OAAO,IAAI,CAAC,SAAS,CACnB,sDAA8C,CAAC,KAAK,CAClD,+BAA+B,CAChC,CACF,CAAC;AACJ,CAAC;AAED,SAAgB,uCAAuC,CACrD,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,qDAA6C,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EACzE,6DAA6D,CAC9D,CAAC;AACJ,CAAC"}
@@ -0,0 +1,64 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ /**
5
+ * Plaid Payment Method
6
+ *
7
+ * @remarks
8
+ *
9
+ * Plaid Payment Method to use in a transaction.
10
+ */
11
+ export type PlaidPaymentMethodCreate = {
12
+ /**
13
+ * Always `plaid`.
14
+ */
15
+ method?: "plaid" | undefined;
16
+ /**
17
+ * The public token obtained after using Plaid Link.
18
+ */
19
+ token: string;
20
+ /**
21
+ * The Plaid account ID corresponding to the end-user account. If not provided will be fetched from Plaid API expecting to only have one.
22
+ */
23
+ accountId?: string | null | undefined;
24
+ /**
25
+ * The ID of the Plaid payment service related to the provided public token. If not provided will be fetched from the currently active expecting to have a single one.
26
+ */
27
+ paymentServiceId?: string | null | undefined;
28
+ /**
29
+ * The ID of the buyer to attach the method to.
30
+ */
31
+ buyerId?: string | null | undefined;
32
+ /**
33
+ * The merchant reference for this payment method.
34
+ */
35
+ buyerExternalIdentifier?: string | null | undefined;
36
+ };
37
+ /** @internal */
38
+ export declare const PlaidPaymentMethodCreate$inboundSchema: z.ZodType<PlaidPaymentMethodCreate, z.ZodTypeDef, unknown>;
39
+ /** @internal */
40
+ export type PlaidPaymentMethodCreate$Outbound = {
41
+ method: "plaid";
42
+ token: string;
43
+ account_id?: string | null | undefined;
44
+ payment_service_id?: string | null | undefined;
45
+ buyer_id?: string | null | undefined;
46
+ buyer_external_identifier?: string | null | undefined;
47
+ };
48
+ /** @internal */
49
+ export declare const PlaidPaymentMethodCreate$outboundSchema: z.ZodType<PlaidPaymentMethodCreate$Outbound, z.ZodTypeDef, PlaidPaymentMethodCreate>;
50
+ /**
51
+ * @internal
52
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
53
+ */
54
+ export declare namespace PlaidPaymentMethodCreate$ {
55
+ /** @deprecated use `PlaidPaymentMethodCreate$inboundSchema` instead. */
56
+ const inboundSchema: z.ZodType<PlaidPaymentMethodCreate, z.ZodTypeDef, unknown>;
57
+ /** @deprecated use `PlaidPaymentMethodCreate$outboundSchema` instead. */
58
+ const outboundSchema: z.ZodType<PlaidPaymentMethodCreate$Outbound, z.ZodTypeDef, PlaidPaymentMethodCreate>;
59
+ /** @deprecated use `PlaidPaymentMethodCreate$Outbound` instead. */
60
+ type Outbound = PlaidPaymentMethodCreate$Outbound;
61
+ }
62
+ export declare function plaidPaymentMethodCreateToJSON(plaidPaymentMethodCreate: PlaidPaymentMethodCreate): string;
63
+ export declare function plaidPaymentMethodCreateFromJSON(jsonString: string): SafeParseResult<PlaidPaymentMethodCreate, SDKValidationError>;
64
+ //# sourceMappingURL=plaidpaymentmethodcreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plaidpaymentmethodcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/plaidpaymentmethodcreate.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;AAErE;;;;;;GAMG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;OAEG;IACH,MAAM,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC7B;;OAEG;IACH,KAAK,EAAE,MAAM,CAAC;IACd;;OAEG;IACH,SAAS,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACtC;;OAEG;IACH,gBAAgB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC7C;;OAEG;IACH,OAAO,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACpC;;OAEG;IACH,uBAAuB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACrD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,sCAAsC,EAAE,CAAC,CAAC,OAAO,CAC5D,wBAAwB,EACxB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,MAAM,EAAE,OAAO,CAAC;IAChB,KAAK,EAAE,MAAM,CAAC;IACd,UAAU,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACvC,kBAAkB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/C,QAAQ,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACrC,yBAAyB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CACvD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAexB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,yBAAyB,CAAC;IACzC,wEAAwE;IACjE,MAAM,aAAa,4DAAyC,CAAC;IACpE,yEAAyE;IAClE,MAAM,cAAc,sFAA0C,CAAC;IACtE,mEAAmE;IACnE,KAAY,QAAQ,GAAG,iCAAiC,CAAC;CAC1D;AAED,wBAAgB,8BAA8B,CAC5C,wBAAwB,EAAE,wBAAwB,GACjD,MAAM,CAIR;AAED,wBAAgB,gCAAgC,CAC9C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,wBAAwB,EAAE,kBAAkB,CAAC,CAM/D"}
@@ -0,0 +1,94 @@
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.PlaidPaymentMethodCreate$ = exports.PlaidPaymentMethodCreate$outboundSchema = exports.PlaidPaymentMethodCreate$inboundSchema = void 0;
40
+ exports.plaidPaymentMethodCreateToJSON = plaidPaymentMethodCreateToJSON;
41
+ exports.plaidPaymentMethodCreateFromJSON = plaidPaymentMethodCreateFromJSON;
42
+ const z = __importStar(require("zod/v3"));
43
+ const primitives_js_1 = require("../../lib/primitives.js");
44
+ const schemas_js_1 = require("../../lib/schemas.js");
45
+ /** @internal */
46
+ exports.PlaidPaymentMethodCreate$inboundSchema = z.object({
47
+ method: z.literal("plaid").default("plaid"),
48
+ token: z.string(),
49
+ account_id: z.nullable(z.string()).optional(),
50
+ payment_service_id: z.nullable(z.string()).optional(),
51
+ buyer_id: z.nullable(z.string()).optional(),
52
+ buyer_external_identifier: z.nullable(z.string()).optional(),
53
+ }).transform((v) => {
54
+ return (0, primitives_js_1.remap)(v, {
55
+ "account_id": "accountId",
56
+ "payment_service_id": "paymentServiceId",
57
+ "buyer_id": "buyerId",
58
+ "buyer_external_identifier": "buyerExternalIdentifier",
59
+ });
60
+ });
61
+ /** @internal */
62
+ exports.PlaidPaymentMethodCreate$outboundSchema = z.object({
63
+ method: z.literal("plaid").default("plaid"),
64
+ token: z.string(),
65
+ accountId: z.nullable(z.string()).optional(),
66
+ paymentServiceId: z.nullable(z.string()).optional(),
67
+ buyerId: z.nullable(z.string()).optional(),
68
+ buyerExternalIdentifier: z.nullable(z.string()).optional(),
69
+ }).transform((v) => {
70
+ return (0, primitives_js_1.remap)(v, {
71
+ accountId: "account_id",
72
+ paymentServiceId: "payment_service_id",
73
+ buyerId: "buyer_id",
74
+ buyerExternalIdentifier: "buyer_external_identifier",
75
+ });
76
+ });
77
+ /**
78
+ * @internal
79
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
80
+ */
81
+ var PlaidPaymentMethodCreate$;
82
+ (function (PlaidPaymentMethodCreate$) {
83
+ /** @deprecated use `PlaidPaymentMethodCreate$inboundSchema` instead. */
84
+ PlaidPaymentMethodCreate$.inboundSchema = exports.PlaidPaymentMethodCreate$inboundSchema;
85
+ /** @deprecated use `PlaidPaymentMethodCreate$outboundSchema` instead. */
86
+ PlaidPaymentMethodCreate$.outboundSchema = exports.PlaidPaymentMethodCreate$outboundSchema;
87
+ })(PlaidPaymentMethodCreate$ || (exports.PlaidPaymentMethodCreate$ = PlaidPaymentMethodCreate$ = {}));
88
+ function plaidPaymentMethodCreateToJSON(plaidPaymentMethodCreate) {
89
+ return JSON.stringify(exports.PlaidPaymentMethodCreate$outboundSchema.parse(plaidPaymentMethodCreate));
90
+ }
91
+ function plaidPaymentMethodCreateFromJSON(jsonString) {
92
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.PlaidPaymentMethodCreate$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'PlaidPaymentMethodCreate' from JSON`);
93
+ }
94
+ //# sourceMappingURL=plaidpaymentmethodcreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"plaidpaymentmethodcreate.js","sourceRoot":"","sources":["../../src/models/components/plaidpaymentmethodcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA2GH,wEAMC;AAED,4EAQC;AAzHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAsCjD,gBAAgB;AACH,QAAA,sCAAsC,GAI/C,CAAC,CAAC,MAAM,CAAC;IACX,MAAM,EAAE,CAAC,CA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AAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAC3D,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,gBAAgB,EAAE,oBAAoB;QACtC,OAAO,EAAE,UAAU;QACnB,uBAAuB,EAAE,2BAA2B;KACrD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,yBAAyB,CAOzC;AAPD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AAGxE,CAAC,EAPgB,yBAAyB,yCAAzB,yBAAyB,QAOzC;AAED,SAAgB,8BAA8B,CAC5C,wBAAkD;IAElD,OAAO,IAAI,CAAC,SAAS,CACnB,+CAAuC,CAAC,KAAK,CAAC,wBAAwB,CAAC,CACxE,CAAC;AACJ,CAAC;AAED,SAAgB,gCAAgC,CAC9C,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,8CAAsC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAClE,sDAAsD,CACvD,CAAC;AACJ,CAAC"}
@@ -2,7 +2,7 @@ import * as z from "zod/v3";
2
2
  import { Result as SafeParseResult } from "../../types/fp.js";
3
3
  import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
4
  import { BillingDetailsOutput, BillingDetailsOutput$Outbound } from "./billingdetailsoutput.js";
5
- export type TransactionBuyer = {
5
+ export type TransactionBuyerOutput = {
6
6
  /**
7
7
  * Always `buyer`.
8
8
  */
@@ -29,9 +29,9 @@ export type TransactionBuyer = {
29
29
  accountNumber?: string | null | undefined;
30
30
  };
31
31
  /** @internal */
32
- export declare const TransactionBuyer$inboundSchema: z.ZodType<TransactionBuyer, z.ZodTypeDef, unknown>;
32
+ export declare const TransactionBuyerOutput$inboundSchema: z.ZodType<TransactionBuyerOutput, z.ZodTypeDef, unknown>;
33
33
  /** @internal */
34
- export type TransactionBuyer$Outbound = {
34
+ export type TransactionBuyerOutput$Outbound = {
35
35
  type: "buyer";
36
36
  id?: string | null | undefined;
37
37
  display_name?: string | null | undefined;
@@ -40,19 +40,19 @@ export type TransactionBuyer$Outbound = {
40
40
  account_number?: string | null | undefined;
41
41
  };
42
42
  /** @internal */
43
- export declare const TransactionBuyer$outboundSchema: z.ZodType<TransactionBuyer$Outbound, z.ZodTypeDef, TransactionBuyer>;
43
+ export declare const TransactionBuyerOutput$outboundSchema: z.ZodType<TransactionBuyerOutput$Outbound, z.ZodTypeDef, TransactionBuyerOutput>;
44
44
  /**
45
45
  * @internal
46
46
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
47
47
  */
48
- export declare namespace TransactionBuyer$ {
49
- /** @deprecated use `TransactionBuyer$inboundSchema` instead. */
50
- const inboundSchema: z.ZodType<TransactionBuyer, z.ZodTypeDef, unknown>;
51
- /** @deprecated use `TransactionBuyer$outboundSchema` instead. */
52
- const outboundSchema: z.ZodType<TransactionBuyer$Outbound, z.ZodTypeDef, TransactionBuyer>;
53
- /** @deprecated use `TransactionBuyer$Outbound` instead. */
54
- type Outbound = TransactionBuyer$Outbound;
48
+ export declare namespace TransactionBuyerOutput$ {
49
+ /** @deprecated use `TransactionBuyerOutput$inboundSchema` instead. */
50
+ const inboundSchema: z.ZodType<TransactionBuyerOutput, z.ZodTypeDef, unknown>;
51
+ /** @deprecated use `TransactionBuyerOutput$outboundSchema` instead. */
52
+ const outboundSchema: z.ZodType<TransactionBuyerOutput$Outbound, z.ZodTypeDef, TransactionBuyerOutput>;
53
+ /** @deprecated use `TransactionBuyerOutput$Outbound` instead. */
54
+ type Outbound = TransactionBuyerOutput$Outbound;
55
55
  }
56
- export declare function transactionBuyerToJSON(transactionBuyer: TransactionBuyer): string;
57
- export declare function transactionBuyerFromJSON(jsonString: string): SafeParseResult<TransactionBuyer, SDKValidationError>;
58
- //# sourceMappingURL=transactionbuyer.d.ts.map
56
+ export declare function transactionBuyerOutputToJSON(transactionBuyerOutput: TransactionBuyerOutput): string;
57
+ export declare function transactionBuyerOutputFromJSON(jsonString: string): SafeParseResult<TransactionBuyerOutput, SDKValidationError>;
58
+ //# sourceMappingURL=transactionbuyeroutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionbuyeroutput.d.ts","sourceRoot":"","sources":["../../src/models/components/transactionbuyeroutput.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,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AAEnC,MAAM,MAAM,sBAAsB,GAAG;IACnC;;OAEG;IACH,IAAI,CAAC,EAAE,OAAO,GAAG,SAAS,CAAC;IAC3B;;OAEG;IACH,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B;;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;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,OAAO,CAeP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,EAAE,OAAO,CAAC;IACd,EAAE,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC/B,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACzC,mBAAmB,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAChD,eAAe,CAAC,EAAE,6BAA6B,GAAG,IAAI,GAAG,SAAS,CAAC;IACnE,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC5C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,qCAAqC,EAAE,CAAC,CAAC,OAAO,CAC3D,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,sBAAsB,CAetB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,uBAAuB,CAAC;IACvC,sEAAsE;IAC/D,MAAM,aAAa,0DAAuC,CAAC;IAClE,uEAAuE;IAChE,MAAM,cAAc,kFAAwC,CAAC;IACpE,iEAAiE;IACjE,KAAY,QAAQ,GAAG,+BAA+B,CAAC;CACxD;AAED,wBAAgB,4BAA4B,CAC1C,sBAAsB,EAAE,sBAAsB,GAC7C,MAAM,CAIR;AAED,wBAAgB,8BAA8B,CAC5C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,sBAAsB,EAAE,kBAAkB,CAAC,CAM7D"}
@@ -36,15 +36,15 @@ var __importStar = (this && this.__importStar) || (function () {
36
36
  };
37
37
  })();
38
38
  Object.defineProperty(exports, "__esModule", { value: true });
39
- exports.TransactionBuyer$ = exports.TransactionBuyer$outboundSchema = exports.TransactionBuyer$inboundSchema = void 0;
40
- exports.transactionBuyerToJSON = transactionBuyerToJSON;
41
- exports.transactionBuyerFromJSON = transactionBuyerFromJSON;
39
+ exports.TransactionBuyerOutput$ = exports.TransactionBuyerOutput$outboundSchema = exports.TransactionBuyerOutput$inboundSchema = void 0;
40
+ exports.transactionBuyerOutputToJSON = transactionBuyerOutputToJSON;
41
+ exports.transactionBuyerOutputFromJSON = transactionBuyerOutputFromJSON;
42
42
  const z = __importStar(require("zod/v3"));
43
43
  const primitives_js_1 = require("../../lib/primitives.js");
44
44
  const schemas_js_1 = require("../../lib/schemas.js");
45
45
  const billingdetailsoutput_js_1 = require("./billingdetailsoutput.js");
46
46
  /** @internal */
47
- exports.TransactionBuyer$inboundSchema = z.object({
47
+ exports.TransactionBuyerOutput$inboundSchema = z.object({
48
48
  type: z.literal("buyer").default("buyer"),
49
49
  id: z.nullable(z.string()).optional(),
50
50
  display_name: z.nullable(z.string()).optional(),
@@ -60,7 +60,7 @@ exports.TransactionBuyer$inboundSchema = z.object({
60
60
  });
61
61
  });
62
62
  /** @internal */
63
- exports.TransactionBuyer$outboundSchema = z.object({
63
+ exports.TransactionBuyerOutput$outboundSchema = z.object({
64
64
  type: z.literal("buyer").default("buyer"),
65
65
  id: z.nullable(z.string()).optional(),
66
66
  displayName: z.nullable(z.string()).optional(),
@@ -79,17 +79,17 @@ exports.TransactionBuyer$outboundSchema = z.object({
79
79
  * @internal
80
80
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
81
81
  */
82
- var TransactionBuyer$;
83
- (function (TransactionBuyer$) {
84
- /** @deprecated use `TransactionBuyer$inboundSchema` instead. */
85
- TransactionBuyer$.inboundSchema = exports.TransactionBuyer$inboundSchema;
86
- /** @deprecated use `TransactionBuyer$outboundSchema` instead. */
87
- TransactionBuyer$.outboundSchema = exports.TransactionBuyer$outboundSchema;
88
- })(TransactionBuyer$ || (exports.TransactionBuyer$ = TransactionBuyer$ = {}));
89
- function transactionBuyerToJSON(transactionBuyer) {
90
- return JSON.stringify(exports.TransactionBuyer$outboundSchema.parse(transactionBuyer));
82
+ var TransactionBuyerOutput$;
83
+ (function (TransactionBuyerOutput$) {
84
+ /** @deprecated use `TransactionBuyerOutput$inboundSchema` instead. */
85
+ TransactionBuyerOutput$.inboundSchema = exports.TransactionBuyerOutput$inboundSchema;
86
+ /** @deprecated use `TransactionBuyerOutput$outboundSchema` instead. */
87
+ TransactionBuyerOutput$.outboundSchema = exports.TransactionBuyerOutput$outboundSchema;
88
+ })(TransactionBuyerOutput$ || (exports.TransactionBuyerOutput$ = TransactionBuyerOutput$ = {}));
89
+ function transactionBuyerOutputToJSON(transactionBuyerOutput) {
90
+ return JSON.stringify(exports.TransactionBuyerOutput$outboundSchema.parse(transactionBuyerOutput));
91
91
  }
92
- function transactionBuyerFromJSON(jsonString) {
93
- return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TransactionBuyer$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransactionBuyer' from JSON`);
92
+ function transactionBuyerOutputFromJSON(jsonString) {
93
+ return (0, schemas_js_1.safeParse)(jsonString, (x) => exports.TransactionBuyerOutput$inboundSchema.parse(JSON.parse(x)), `Failed to parse 'TransactionBuyerOutput' from JSON`);
94
94
  }
95
- //# sourceMappingURL=transactionbuyer.js.map
95
+ //# sourceMappingURL=transactionbuyeroutput.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactionbuyeroutput.js","sourceRoot":"","sources":["../../src/models/components/transactionbuyeroutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AA0GH,oEAMC;AAED,wEAQC;AAxHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,uEAKmC;AA6BnC,gBAAgB;AACH,QAAA,oCAAoC,GAI7C,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC;IACzC,EAAE,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACrC,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,E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