@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
@@ -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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QAAQ,EAAE,OAAO,CAAC;IAClB,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC,MAAM,CAAC,EAAE,wCAAwC,GAAG,IAAI,GAAG,SAAS,CAAC;CACtE,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAOzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D;AAED,wBAAgB,+BAA+B,CAC7C,yBAAyB,EAAE,yBAAyB,GACnD,MAAM,CAIR;AAED,wBAAgB,iCAAiC,CAC/C,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,yBAAyB,EAAE,kBAAkB,CAAC,CAMhE"}
@@ -0,0 +1,107 @@
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.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,EAAE,UAAU;IACpB,MAAM,EAAE,QAAQ;IAChB,aAAa,EAAE,iBAAiB;IAChC,gBAAgB,EAAE,oBAAoB;CAC9B,CAAC;AA4BX,gBAAgB;AACH,QAAA,2CAA2C,GAIpD,CAAC;KACF,KAAK,CAAC;IACL,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC;IAC3C,CAAC,CAAC,MAAM,EAAE,CAAC,SAAS,CAAC,gCAAqB,CAAC;CAC5C,CAAC,CAAC;AAEL,gBAAgB;AACH,QAAA,4CAA4C,GAIrD,CAAC,CAAC,KAAK,CAAC;IACV,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC;IAC3C,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,CAAC,CAAC,CAAC,MAAM,EAAwB,CAAC;CACjD,CAAC,CAAC;AAEH;;;GAGG;A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AAC,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"}
@@ -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,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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,EAAE,CAAC,CAAC,QAAQ,EAAE;IAC/C,mBAAmB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;IACtD,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,4DAAkC,CAAC,CAAC,QAAQ,EAAE;IAC1E,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,CAAC,QAAQ,EAAE;CAClD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,cAAc,EAAE,aAAa;QAC7B,qBAAqB,EAAE,oBAAoB;QAC3C,iBAAiB,EAAE,gBAAgB;QACnC,gBAAgB,EAAE,eAAe;KAClC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;A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IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,4CAAoC,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAChE,oDAAoD,CACrD,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 { CancelStatus } from "./cancelstatus.js";
5
- import { Transaction, Transaction$Outbound } from "./transaction.js";
5
+ import { TransactionOutput, TransactionOutput$Outbound } from "./transactionoutput.js";
6
6
  export type TransactionCancel = {
7
7
  /**
8
8
  * Always `transaction-cancel`.
@@ -24,7 +24,7 @@ export type TransactionCancel = {
24
24
  /**
25
25
  * A full transaction resource.
26
26
  */
27
- transaction: Transaction;
27
+ transaction: TransactionOutput;
28
28
  };
29
29
  /** @internal */
30
30
  export declare const TransactionCancel$inboundSchema: z.ZodType<TransactionCancel, z.ZodTypeDef, unknown>;
@@ -35,7 +35,7 @@ export type TransactionCancel$Outbound = {
35
35
  code: string | null;
36
36
  raw_response_code: string | null;
37
37
  raw_response_description: string | null;
38
- transaction: Transaction$Outbound;
38
+ transaction: TransactionOutput$Outbound;
39
39
  };
40
40
  /** @internal */
41
41
  export declare const TransactionCancel$outboundSchema: z.ZodType<TransactionCancel$Outbound, z.ZodTypeDef, TransactionCancel>;
@@ -1 +1 @@
1
- {"version":3,"file":"transactioncancel.d.ts","sourceRoot":"","sources":["../../src/models/components/transactioncancel.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,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,WAAW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,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
1
+ {"version":3,"file":"transactioncancel.d.ts","sourceRoot":"","sources":["../../src/models/components/transactioncancel.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,YAAY,EAGb,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,IAAI,CAAC,EAAE,oBAAoB,GAAG,SAAS,CAAC;IACxC,MAAM,EAAE,YAAY,CAAC;IACrB;;OAEG;IACH,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB;;OAEG;IACH,eAAe,EAAE,MAAM,GAAG,IAAI,CAAC;IAC/B;;OAEG;IACH,sBAAsB,EAAE,MAAM,GAAG,IAAI,CAAC;IACtC;;OAEG;IACH,WAAW,EAAE,iBAAiB,CAAC;CAChC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,CAaP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,IAAI,EAAE,oBAAoB,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,GAAG,IAAI,CAAC;IACpB,iBAAiB,EAAE,MAAM,GAAG,IAAI,CAAC;IACjC,wBAAwB,EAAE,MAAM,GAAG,IAAI,CAAC;IACxC,WAAW,EAAE,0BAA0B,CAAC;CACzC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAajB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD;AAED,wBAAgB,uBAAuB,CACrC,iBAAiB,EAAE,iBAAiB,GACnC,MAAM,CAIR;AAED,wBAAgB,yBAAyB,CACvC,UAAU,EAAE,MAAM,GACjB,eAAe,CAAC,iBAAiB,EAAE,kBAAkB,CAAC,CAMxD"}
@@ -43,7 +43,7 @@ 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 cancelstatus_js_1 = require("./cancelstatus.js");
46
- const transaction_js_1 = require("./transaction.js");
46
+ const transactionoutput_js_1 = require("./transactionoutput.js");
47
47
  /** @internal */
48
48
  exports.TransactionCancel$inboundSchema = z.object({
49
49
  type: z.literal("transaction-cancel").default("transaction-cancel"),
@@ -51,7 +51,7 @@ exports.TransactionCancel$inboundSchema = z.object({
51
51
  code: z.nullable(z.string()),
52
52
  raw_response_code: z.nullable(z.string()),
53
53
  raw_response_description: z.nullable(z.string()),
54
- transaction: transaction_js_1.Transaction$inboundSchema,
54
+ transaction: transactionoutput_js_1.TransactionOutput$inboundSchema,
55
55
  }).transform((v) => {
56
56
  return (0, primitives_js_1.remap)(v, {
57
57
  "raw_response_code": "rawResponseCode",
@@ -65,7 +65,7 @@ exports.TransactionCancel$outboundSchema = z.object({
65
65
  code: z.nullable(z.string()),
66
66
  rawResponseCode: z.nullable(z.string()),
67
67
  rawResponseDescription: z.nullable(z.string()),
68
- transaction: transaction_js_1.Transaction$outboundSchema,
68
+ transaction: transactionoutput_js_1.TransactionOutput$outboundSchema,
69
69
  }).transform((v) => {
70
70
  return (0, primitives_js_1.remap)(v, {
71
71
  rawResponseCode: "raw_response_code",
@@ -1 +1 @@
1
- {"version":3,"file":"transactioncancel.js","sourceRoot":"","sources":["../../src/models/components/transactioncancel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGH,0DAMC;AAED,8DAQC;AAtHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAI2B;AAC3B,qDAK0B;AA0B1B,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC;IACnE,MAAM,EAAE,4CAA0B;IAClC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACzC,wBAAwB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAChD,WAAW,EAAE,0CAAyB;CACvC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,mBAAmB,EAAE,iBAAiB;QACtC,0BAA0B,EAAE,wBAAwB;KACrD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAYH,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,oBAAoB,CAAC,CAAC,OAAO,CAAC,oBAA6B,CAAC;IAC5E,MAAM,EAAE,6CAA2B;IACnC,IAAI,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC5B,eAAe,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IACvC,sBAAsB,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC;IAC9C,WAAW,EAAE,2CAA0B;CACxC,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,eAAe,EAAE,mBAAmB;QACpC,sBAAsB,EAAE,0BAA0B;KACnD,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
1
+ {"version":3,"file":"transactioncancel.js","sourceRoot":"","sources":["../../src/models/components/transactioncancel.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;AAwGH,0DAMC;AAED,8DAQC;AAtHD,0CAA4B;AAC5B,2DAA0D;AAC1D,qDAAiD;AAGjD,uDAI2B;AAC3B,iEAKgC;AA0BhC,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,CAAC,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,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC;AAED,SAAgB,uBAAuB,CACrC,iBAAoC;IAEpC,OAAO,IAAI,CAAC,SAAS,CACnB,wCAAgC,CAAC,KAAK,CAAC,iBAAiB,CAAC,CAC1D,CAAC;AACJ,CAAC;AAED,SAAgB,yBAAyB,CACvC,UAAkB;IAElB,OAAO,IAAA,sBAAS,EACd,UAAU,EACV,CAAC,CAAC,EAAE,EAAE,CAAC,uCAA+B,CAAC,KAAK,CAAC,IAAI,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC,EAC3D,+CAA+C,CAChD,CAAC;AACJ,CAAC"}
@@ -0,0 +1,56 @@
1
+ import * as z from "zod/v3";
2
+ import { Result as SafeParseResult } from "../../types/fp.js";
3
+ import { SDKValidationError } from "../errors/sdkvalidationerror.js";
4
+ import { CaptureStatus } from "./capturestatus.js";
5
+ import { TransactionOutput, TransactionOutput$Outbound } from "./transactionoutput.js";
6
+ export type TransactionCaptureOutput = {
7
+ /**
8
+ * Always `transaction-capture`.
9
+ */
10
+ type?: "transaction-capture" | undefined;
11
+ status: CaptureStatus;
12
+ /**
13
+ * The standardized error code set by Gr4vy.
14
+ */
15
+ code: string | null;
16
+ /**
17
+ * This is the response code received from the payment service. This can be set to any value and is not standardized across different payment services.
18
+ */
19
+ rawResponseCode: string | null;
20
+ /**
21
+ * This is the response description received from the payment service. This can be set to any value and is not standardized across different payment services.
22
+ */
23
+ rawResponseDescription: string | null;
24
+ /**
25
+ * A full transaction resource.
26
+ */
27
+ transaction: TransactionOutput;
28
+ };
29
+ /** @internal */
30
+ export declare const TransactionCaptureOutput$inboundSchema: z.ZodType<TransactionCaptureOutput, z.ZodTypeDef, unknown>;
31
+ /** @internal */
32
+ export type TransactionCaptureOutput$Outbound = {
33
+ type: "transaction-capture";
34
+ status: string;
35
+ code: string | null;
36
+ raw_response_code: string | null;
37
+ raw_response_description: string | null;
38
+ transaction: TransactionOutput$Outbound;
39
+ };
40
+ /** @internal */
41
+ export declare const TransactionCaptureOutput$outboundSchema: z.ZodType<TransactionCaptureOutput$Outbound, z.ZodTypeDef, TransactionCaptureOutput>;
42
+ /**
43
+ * @internal
44
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
45
+ */
46
+ export declare namespace TransactionCaptureOutput$ {
47
+ /** @deprecated use `TransactionCaptureOutput$inboundSchema` instead. */
48
+ const inboundSchema: z.ZodType<TransactionCaptureOutput, z.ZodTypeDef, unknown>;
49
+ /** @deprecated use `TransactionCaptureOutput$outboundSchema` instead. */
50
+ const outboundSchema: z.ZodType<TransactionCaptureOutput$Outbound, z.ZodTypeDef, TransactionCaptureOutput>;
51
+ /** @deprecated use `TransactionCaptureOutput$Outbound` instead. */
52
+ type Outbound = TransactionCaptureOutput$Outbound;
53
+ }
54
+ export declare function transactionCaptureOutputToJSON(transactionCaptureOutput: TransactionCaptureOutput): string;
55
+ export declare function transactionCaptureOutputFromJSON(jsonString: string): SafeParseResult<TransactionCaptureOutput, SDKValidationError>;
56
+ //# sourceMappingURL=transactioncaptureoutput.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"transactioncaptureoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/transactioncaptureoutput.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,aAAa,EAGd,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAEhC,MAAM,MAAM,wBAAw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