@polar-sh/sdk 0.8.2 → 0.9.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (199) hide show
  1. package/README.md +7 -6
  2. package/docs/sdks/products/README.md +2 -2
  3. package/funcs/advertisementsList.js +2 -2
  4. package/funcs/advertisementsList.js.map +1 -1
  5. package/funcs/articlesList.js +2 -2
  6. package/funcs/articlesList.js.map +1 -1
  7. package/funcs/benefitsGrants.js +2 -2
  8. package/funcs/benefitsGrants.js.map +1 -1
  9. package/funcs/benefitsList.js +2 -2
  10. package/funcs/benefitsList.js.map +1 -1
  11. package/funcs/externalOrganizationsList.js +2 -2
  12. package/funcs/externalOrganizationsList.js.map +1 -1
  13. package/funcs/filesList.js +2 -2
  14. package/funcs/filesList.js.map +1 -1
  15. package/funcs/licenseKeysList.js +2 -2
  16. package/funcs/licenseKeysList.js.map +1 -1
  17. package/funcs/oauth2ClientsList.js +2 -2
  18. package/funcs/oauth2ClientsList.js.map +1 -1
  19. package/funcs/ordersList.js +2 -2
  20. package/funcs/ordersList.js.map +1 -1
  21. package/funcs/organizationsList.js +2 -2
  22. package/funcs/organizationsList.js.map +1 -1
  23. package/funcs/productsList.js +2 -2
  24. package/funcs/productsList.js.map +1 -1
  25. package/funcs/repositoriesList.js +2 -2
  26. package/funcs/repositoriesList.js.map +1 -1
  27. package/funcs/subscriptionsList.js +2 -2
  28. package/funcs/subscriptionsList.js.map +1 -1
  29. package/funcs/usersAdvertisementsList.js +2 -2
  30. package/funcs/usersAdvertisementsList.js.map +1 -1
  31. package/funcs/usersBenefitsList.js +2 -2
  32. package/funcs/usersBenefitsList.js.map +1 -1
  33. package/funcs/usersDownloadablesList.js +2 -2
  34. package/funcs/usersDownloadablesList.js.map +1 -1
  35. package/funcs/usersLicenseKeysList.js +2 -2
  36. package/funcs/usersLicenseKeysList.js.map +1 -1
  37. package/funcs/usersOrdersList.js +2 -2
  38. package/funcs/usersOrdersList.js.map +1 -1
  39. package/funcs/usersSubscriptionsList.js +2 -2
  40. package/funcs/usersSubscriptionsList.js.map +1 -1
  41. package/lib/config.d.ts +16 -5
  42. package/lib/config.d.ts.map +1 -1
  43. package/lib/config.js +18 -12
  44. package/lib/config.js.map +1 -1
  45. package/models/components/bodysubscriptionsimport.d.ts +2 -2
  46. package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
  47. package/models/components/bodysubscriptionsimport.js +2 -0
  48. package/models/components/bodysubscriptionsimport.js.map +1 -1
  49. package/models/components/index.d.ts +9 -3
  50. package/models/components/index.d.ts.map +1 -1
  51. package/models/components/index.js +9 -3
  52. package/models/components/index.js.map +1 -1
  53. package/models/components/ordersubscription.d.ts +7 -0
  54. package/models/components/ordersubscription.d.ts.map +1 -1
  55. package/models/components/ordersubscription.js +9 -0
  56. package/models/components/ordersubscription.js.map +1 -1
  57. package/models/components/organizationfeaturesettings.d.ts +0 -5
  58. package/models/components/organizationfeaturesettings.d.ts.map +1 -1
  59. package/models/components/organizationfeaturesettings.js +0 -4
  60. package/models/components/organizationfeaturesettings.js.map +1 -1
  61. package/models/components/productonetimecreate.d.ts +23 -3
  62. package/models/components/productonetimecreate.d.ts.map +1 -1
  63. package/models/components/productonetimecreate.js +33 -4
  64. package/models/components/productonetimecreate.js.map +1 -1
  65. package/models/components/productpriceinput.d.ts +3 -11
  66. package/models/components/productpriceinput.d.ts.map +1 -1
  67. package/models/components/productpriceinput.js +5 -13
  68. package/models/components/productpriceinput.js.map +1 -1
  69. package/models/components/productpriceonetime.d.ts +4 -71
  70. package/models/components/productpriceonetime.d.ts.map +1 -1
  71. package/models/components/productpriceonetime.js +11 -57
  72. package/models/components/productpriceonetime.js.map +1 -1
  73. package/models/components/productpriceonetimecustom.d.ts +124 -0
  74. package/models/components/productpriceonetimecustom.d.ts.map +1 -0
  75. package/models/components/productpriceonetimecustom.js +130 -0
  76. package/models/components/productpriceonetimecustom.js.map +1 -0
  77. package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
  78. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
  79. package/models/components/productpriceonetimecustomcreate.js +91 -0
  80. package/models/components/productpriceonetimecustomcreate.js.map +1 -0
  81. package/models/components/productpriceonetimefixed.d.ts +114 -0
  82. package/models/components/productpriceonetimefixed.d.ts.map +1 -0
  83. package/models/components/productpriceonetimefixed.js +122 -0
  84. package/models/components/productpriceonetimefixed.js.map +1 -0
  85. package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
  86. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
  87. package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
  88. package/models/components/productpriceonetimefixedcreate.js.map +1 -0
  89. package/models/components/productpriceoutput.d.ts +3 -11
  90. package/models/components/productpriceoutput.d.ts.map +1 -1
  91. package/models/components/productpriceoutput.js +5 -13
  92. package/models/components/productpriceoutput.js.map +1 -1
  93. package/models/components/productpricerecurringcreate.d.ts +7 -7
  94. package/models/components/productpricerecurringcreate.d.ts.map +1 -1
  95. package/models/components/productpricerecurringcreate.js +9 -9
  96. package/models/components/productpricerecurringcreate.js.map +1 -1
  97. package/models/components/productpricerecurringcustom.d.ts +130 -0
  98. package/models/components/productpricerecurringcustom.d.ts.map +1 -0
  99. package/models/components/productpricerecurringcustom.js +135 -0
  100. package/models/components/productpricerecurringcustom.js.map +1 -0
  101. package/models/components/productpricerecurringfixed.d.ts +120 -0
  102. package/models/components/productpricerecurringfixed.d.ts.map +1 -0
  103. package/models/components/productpricerecurringfixed.js +128 -0
  104. package/models/components/productpricerecurringfixed.js.map +1 -0
  105. package/models/components/productpricerecurringinput.d.ts +31 -0
  106. package/models/components/productpricerecurringinput.d.ts.map +1 -0
  107. package/models/components/productpricerecurringinput.js +62 -0
  108. package/models/components/productpricerecurringinput.js.map +1 -0
  109. package/models/components/productpricerecurringoutput.d.ts +31 -0
  110. package/models/components/productpricerecurringoutput.d.ts.map +1 -0
  111. package/models/components/productpricerecurringoutput.js +62 -0
  112. package/models/components/productpricerecurringoutput.js.map +1 -0
  113. package/models/components/productupdate.d.ts +15 -14
  114. package/models/components/productupdate.d.ts.map +1 -1
  115. package/models/components/productupdate.js +20 -16
  116. package/models/components/productupdate.js.map +1 -1
  117. package/models/components/subscriptioninput.d.ts +7 -0
  118. package/models/components/subscriptioninput.d.ts.map +1 -1
  119. package/models/components/subscriptioninput.js +9 -0
  120. package/models/components/subscriptioninput.js.map +1 -1
  121. package/models/components/subscriptionoutput.d.ts +7 -0
  122. package/models/components/subscriptionoutput.d.ts.map +1 -1
  123. package/models/components/subscriptionoutput.js +9 -0
  124. package/models/components/subscriptionoutput.js.map +1 -1
  125. package/models/components/subscriptionrecurringinterval.d.ts +28 -0
  126. package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
  127. package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
  128. package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
  129. package/models/components/subscriptionsortproperty.d.ts +6 -6
  130. package/models/components/subscriptionsortproperty.js +2 -2
  131. package/models/components/subscriptionsortproperty.js.map +1 -1
  132. package/models/components/userordersubscription.d.ts +7 -0
  133. package/models/components/userordersubscription.d.ts.map +1 -1
  134. package/models/components/userordersubscription.js +9 -0
  135. package/models/components/userordersubscription.js.map +1 -1
  136. package/models/components/usersubscription.d.ts +10 -0
  137. package/models/components/usersubscription.d.ts.map +1 -1
  138. package/models/components/usersubscription.js +9 -0
  139. package/models/components/usersubscription.js.map +1 -1
  140. package/models/components/usersubscriptionsortproperty.d.ts +6 -6
  141. package/models/components/usersubscriptionsortproperty.js +2 -2
  142. package/models/components/usersubscriptionsortproperty.js.map +1 -1
  143. package/package.json +1 -1
  144. package/src/funcs/advertisementsList.ts +2 -2
  145. package/src/funcs/articlesList.ts +2 -2
  146. package/src/funcs/benefitsGrants.ts +2 -2
  147. package/src/funcs/benefitsList.ts +2 -2
  148. package/src/funcs/externalOrganizationsList.ts +2 -2
  149. package/src/funcs/filesList.ts +2 -2
  150. package/src/funcs/licenseKeysList.ts +2 -2
  151. package/src/funcs/oauth2ClientsList.ts +2 -2
  152. package/src/funcs/ordersList.ts +2 -2
  153. package/src/funcs/organizationsList.ts +2 -2
  154. package/src/funcs/productsList.ts +2 -2
  155. package/src/funcs/repositoriesList.ts +2 -2
  156. package/src/funcs/subscriptionsList.ts +2 -2
  157. package/src/funcs/usersAdvertisementsList.ts +2 -2
  158. package/src/funcs/usersBenefitsList.ts +2 -2
  159. package/src/funcs/usersDownloadablesList.ts +2 -2
  160. package/src/funcs/usersLicenseKeysList.ts +2 -2
  161. package/src/funcs/usersOrdersList.ts +2 -2
  162. package/src/funcs/usersSubscriptionsList.ts +2 -2
  163. package/src/lib/config.ts +18 -12
  164. package/src/models/components/bodysubscriptionsimport.ts +4 -2
  165. package/src/models/components/index.ts +9 -3
  166. package/src/models/components/ordersubscription.ts +19 -0
  167. package/src/models/components/organizationfeaturesettings.ts +0 -9
  168. package/src/models/components/productonetimecreate.ts +69 -9
  169. package/src/models/components/productpriceinput.ts +13 -29
  170. package/src/models/components/productpriceonetime.ts +27 -115
  171. package/src/models/components/productpriceonetimecustom.ts +201 -0
  172. package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
  173. package/src/models/components/productpriceonetimefixed.ts +182 -0
  174. package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
  175. package/src/models/components/productpriceoutput.ts +13 -29
  176. package/src/models/components/productpricerecurringcreate.ts +18 -18
  177. package/src/models/components/productpricerecurringcustom.ts +216 -0
  178. package/src/models/components/productpricerecurringfixed.ts +191 -0
  179. package/src/models/components/productpricerecurringinput.ts +75 -0
  180. package/src/models/components/productpricerecurringoutput.ts +75 -0
  181. package/src/models/components/productupdate.ts +49 -32
  182. package/src/models/components/subscriptioninput.ts +19 -0
  183. package/src/models/components/subscriptionoutput.ts +19 -0
  184. package/src/models/components/subscriptionrecurringinterval.ts +35 -0
  185. package/src/models/components/subscriptionsortproperty.ts +2 -2
  186. package/src/models/components/userordersubscription.ts +19 -0
  187. package/src/models/components/usersubscription.ts +22 -0
  188. package/src/models/components/usersubscriptionsortproperty.ts +2 -2
  189. package/models/components/productpriceonetimecreate.d.ts +0 -61
  190. package/models/components/productpriceonetimecreate.d.ts.map +0 -1
  191. package/models/components/productpriceonetimecreate.js.map +0 -1
  192. package/models/components/productpricerecurring.d.ts +0 -96
  193. package/models/components/productpricerecurring.d.ts.map +0 -1
  194. package/models/components/productpricerecurring.js +0 -105
  195. package/models/components/productpricerecurring.js.map +0 -1
  196. package/models/components/productpricerecurringinterval.d.ts +0 -28
  197. package/src/models/components/productpriceonetimecreate.ts +0 -102
  198. package/src/models/components/productpricerecurring.ts +0 -161
  199. package/src/models/components/productpricerecurringinterval.ts +0 -35
@@ -0,0 +1,130 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceOneTimeCustom$ = exports.ProductPriceOneTimeCustom$outboundSchema = exports.ProductPriceOneTimeCustom$inboundSchema = exports.ProductPriceOneTimeCustomType$ = exports.ProductPriceOneTimeCustomType$outboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema = exports.ProductPriceOneTimeCustomAmountType$ = exports.ProductPriceOneTimeCustomAmountType$outboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema = exports.ProductPriceOneTimeCustomType = exports.ProductPriceOneTimeCustomAmountType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ exports.ProductPriceOneTimeCustomAmountType = {
33
+ Custom: "custom",
34
+ };
35
+ /**
36
+ * The type of the price.
37
+ */
38
+ exports.ProductPriceOneTimeCustomType = {
39
+ OneTime: "one_time",
40
+ };
41
+ /** @internal */
42
+ exports.ProductPriceOneTimeCustomAmountType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomAmountType);
43
+ /** @internal */
44
+ exports.ProductPriceOneTimeCustomAmountType$outboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema;
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ var ProductPriceOneTimeCustomAmountType$;
50
+ (function (ProductPriceOneTimeCustomAmountType$) {
51
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$inboundSchema` instead. */
52
+ ProductPriceOneTimeCustomAmountType$.inboundSchema = exports.ProductPriceOneTimeCustomAmountType$inboundSchema;
53
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$outboundSchema` instead. */
54
+ ProductPriceOneTimeCustomAmountType$.outboundSchema = exports.ProductPriceOneTimeCustomAmountType$outboundSchema;
55
+ })(ProductPriceOneTimeCustomAmountType$ || (exports.ProductPriceOneTimeCustomAmountType$ = ProductPriceOneTimeCustomAmountType$ = {}));
56
+ /** @internal */
57
+ exports.ProductPriceOneTimeCustomType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomType);
58
+ /** @internal */
59
+ exports.ProductPriceOneTimeCustomType$outboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema;
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ var ProductPriceOneTimeCustomType$;
65
+ (function (ProductPriceOneTimeCustomType$) {
66
+ /** @deprecated use `ProductPriceOneTimeCustomType$inboundSchema` instead. */
67
+ ProductPriceOneTimeCustomType$.inboundSchema = exports.ProductPriceOneTimeCustomType$inboundSchema;
68
+ /** @deprecated use `ProductPriceOneTimeCustomType$outboundSchema` instead. */
69
+ ProductPriceOneTimeCustomType$.outboundSchema = exports.ProductPriceOneTimeCustomType$outboundSchema;
70
+ })(ProductPriceOneTimeCustomType$ || (exports.ProductPriceOneTimeCustomType$ = ProductPriceOneTimeCustomType$ = {}));
71
+ /** @internal */
72
+ exports.ProductPriceOneTimeCustom$inboundSchema = z.object({
73
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
74
+ modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
75
+ id: z.string(),
76
+ amount_type: z.literal("custom").optional(),
77
+ price_currency: z.string(),
78
+ is_archived: z.boolean(),
79
+ minimum_amount: z.nullable(z.number().int()),
80
+ maximum_amount: z.nullable(z.number().int()),
81
+ preset_amount: z.nullable(z.number().int()),
82
+ type: z.literal("one_time").optional(),
83
+ }).transform((v) => {
84
+ return (0, primitives_js_1.remap)(v, {
85
+ "created_at": "createdAt",
86
+ "modified_at": "modifiedAt",
87
+ "amount_type": "amountType",
88
+ "price_currency": "priceCurrency",
89
+ "is_archived": "isArchived",
90
+ "minimum_amount": "minimumAmount",
91
+ "maximum_amount": "maximumAmount",
92
+ "preset_amount": "presetAmount",
93
+ });
94
+ });
95
+ /** @internal */
96
+ exports.ProductPriceOneTimeCustom$outboundSchema = z.object({
97
+ createdAt: z.date().transform(v => v.toISOString()),
98
+ modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
99
+ id: z.string(),
100
+ amountType: z.literal("custom").default("custom"),
101
+ priceCurrency: z.string(),
102
+ isArchived: z.boolean(),
103
+ minimumAmount: z.nullable(z.number().int()),
104
+ maximumAmount: z.nullable(z.number().int()),
105
+ presetAmount: z.nullable(z.number().int()),
106
+ type: z.literal("one_time").default("one_time"),
107
+ }).transform((v) => {
108
+ return (0, primitives_js_1.remap)(v, {
109
+ createdAt: "created_at",
110
+ modifiedAt: "modified_at",
111
+ amountType: "amount_type",
112
+ priceCurrency: "price_currency",
113
+ isArchived: "is_archived",
114
+ minimumAmount: "minimum_amount",
115
+ maximumAmount: "maximum_amount",
116
+ presetAmount: "preset_amount",
117
+ });
118
+ });
119
+ /**
120
+ * @internal
121
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
122
+ */
123
+ var ProductPriceOneTimeCustom$;
124
+ (function (ProductPriceOneTimeCustom$) {
125
+ /** @deprecated use `ProductPriceOneTimeCustom$inboundSchema` instead. */
126
+ ProductPriceOneTimeCustom$.inboundSchema = exports.ProductPriceOneTimeCustom$inboundSchema;
127
+ /** @deprecated use `ProductPriceOneTimeCustom$outboundSchema` instead. */
128
+ ProductPriceOneTimeCustom$.outboundSchema = exports.ProductPriceOneTimeCustom$outboundSchema;
129
+ })(ProductPriceOneTimeCustom$ || (exports.ProductPriceOneTimeCustom$ = ProductPriceOneTimeCustom$ = {}));
130
+ //# sourceMappingURL=productpriceonetimecustom.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimecustom.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustom.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,mCAAmC,GAAG;IACjD,MAAM,EAAE,QAAQ;CACR,CAAC;A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one_time";
5
+ };
6
+ export type ProductPriceOneTimeCustomCreateType = ClosedEnum<typeof ProductPriceOneTimeCustomCreateType>;
7
+ /**
8
+ * Schema to create a pay-what-you-want price for a one-time product.
9
+ */
10
+ export type ProductPriceOneTimeCustomCreate = {
11
+ type?: "one_time" | undefined;
12
+ /**
13
+ * The currency. Currently, only `usd` is supported.
14
+ */
15
+ priceCurrency?: string | undefined;
16
+ /**
17
+ * The minimum amount the customer can pay.
18
+ */
19
+ minimumAmount?: number | null | undefined;
20
+ /**
21
+ * The maximum amount the customer can pay.
22
+ */
23
+ maximumAmount?: number | null | undefined;
24
+ /**
25
+ * The initial amount shown to the customer.
26
+ */
27
+ presetAmount?: number | null | undefined;
28
+ };
29
+ /** @internal */
30
+ export declare const ProductPriceOneTimeCustomCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateType>;
31
+ /** @internal */
32
+ export declare const ProductPriceOneTimeCustomCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomCreateType>;
33
+ /**
34
+ * @internal
35
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
36
+ */
37
+ export declare namespace ProductPriceOneTimeCustomCreateType$ {
38
+ /** @deprecated use `ProductPriceOneTimeCustomCreateType$inboundSchema` instead. */
39
+ const inboundSchema: z.ZodNativeEnum<{
40
+ readonly OneTime: "one_time";
41
+ }>;
42
+ /** @deprecated use `ProductPriceOneTimeCustomCreateType$outboundSchema` instead. */
43
+ const outboundSchema: z.ZodNativeEnum<{
44
+ readonly OneTime: "one_time";
45
+ }>;
46
+ }
47
+ /** @internal */
48
+ export declare const ProductPriceOneTimeCustomCreate$inboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate, z.ZodTypeDef, unknown>;
49
+ /** @internal */
50
+ export type ProductPriceOneTimeCustomCreate$Outbound = {
51
+ type: "one_time";
52
+ price_currency: string;
53
+ minimum_amount?: number | null | undefined;
54
+ maximum_amount?: number | null | undefined;
55
+ preset_amount?: number | null | undefined;
56
+ };
57
+ /** @internal */
58
+ export declare const ProductPriceOneTimeCustomCreate$outboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustomCreate>;
59
+ /**
60
+ * @internal
61
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
62
+ */
63
+ export declare namespace ProductPriceOneTimeCustomCreate$ {
64
+ /** @deprecated use `ProductPriceOneTimeCustomCreate$inboundSchema` instead. */
65
+ const inboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate, z.ZodTypeDef, unknown>;
66
+ /** @deprecated use `ProductPriceOneTimeCustomCreate$outboundSchema` instead. */
67
+ const outboundSchema: z.ZodType<ProductPriceOneTimeCustomCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustomCreate>;
68
+ /** @deprecated use `ProductPriceOneTimeCustomCreate$Outbound` instead. */
69
+ type Outbound = ProductPriceOneTimeCustomCreate$Outbound;
70
+ }
71
+ //# sourceMappingURL=productpriceonetimecustomcreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimecustomcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustomcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,mCAAmC;;CAEtC,CAAC;AACX,MAAM,MAAM,mCAAmC,GAAG,UAAU,CAC1D,OAAO,mCAAmC,CAC3C,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG;IAC5C,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH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AAC;CACjE"}
@@ -0,0 +1,91 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceOneTimeCustomCreate$ = exports.ProductPriceOneTimeCustomCreate$outboundSchema = exports.ProductPriceOneTimeCustomCreate$inboundSchema = exports.ProductPriceOneTimeCustomCreateType$ = exports.ProductPriceOneTimeCustomCreateType$outboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema = exports.ProductPriceOneTimeCustomCreateType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ exports.ProductPriceOneTimeCustomCreateType = {
33
+ OneTime: "one_time",
34
+ };
35
+ /** @internal */
36
+ exports.ProductPriceOneTimeCustomCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCustomCreateType);
37
+ /** @internal */
38
+ exports.ProductPriceOneTimeCustomCreateType$outboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema;
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
+ var ProductPriceOneTimeCustomCreateType$;
44
+ (function (ProductPriceOneTimeCustomCreateType$) {
45
+ /** @deprecated use `ProductPriceOneTimeCustomCreateType$inboundSchema` instead. */
46
+ ProductPriceOneTimeCustomCreateType$.inboundSchema = exports.ProductPriceOneTimeCustomCreateType$inboundSchema;
47
+ /** @deprecated use `ProductPriceOneTimeCustomCreateType$outboundSchema` instead. */
48
+ ProductPriceOneTimeCustomCreateType$.outboundSchema = exports.ProductPriceOneTimeCustomCreateType$outboundSchema;
49
+ })(ProductPriceOneTimeCustomCreateType$ || (exports.ProductPriceOneTimeCustomCreateType$ = ProductPriceOneTimeCustomCreateType$ = {}));
50
+ /** @internal */
51
+ exports.ProductPriceOneTimeCustomCreate$inboundSchema = z.object({
52
+ type: z.literal("one_time").optional(),
53
+ price_currency: z.string().default("usd"),
54
+ minimum_amount: z.nullable(z.number().int()).optional(),
55
+ maximum_amount: z.nullable(z.number().int()).optional(),
56
+ preset_amount: z.nullable(z.number().int()).optional(),
57
+ }).transform((v) => {
58
+ return (0, primitives_js_1.remap)(v, {
59
+ "price_currency": "priceCurrency",
60
+ "minimum_amount": "minimumAmount",
61
+ "maximum_amount": "maximumAmount",
62
+ "preset_amount": "presetAmount",
63
+ });
64
+ });
65
+ /** @internal */
66
+ exports.ProductPriceOneTimeCustomCreate$outboundSchema = z.object({
67
+ type: z.literal("one_time").default("one_time"),
68
+ priceCurrency: z.string().default("usd"),
69
+ minimumAmount: z.nullable(z.number().int()).optional(),
70
+ maximumAmount: z.nullable(z.number().int()).optional(),
71
+ presetAmount: z.nullable(z.number().int()).optional(),
72
+ }).transform((v) => {
73
+ return (0, primitives_js_1.remap)(v, {
74
+ priceCurrency: "price_currency",
75
+ minimumAmount: "minimum_amount",
76
+ maximumAmount: "maximum_amount",
77
+ presetAmount: "preset_amount",
78
+ });
79
+ });
80
+ /**
81
+ * @internal
82
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
83
+ */
84
+ var ProductPriceOneTimeCustomCreate$;
85
+ (function (ProductPriceOneTimeCustomCreate$) {
86
+ /** @deprecated use `ProductPriceOneTimeCustomCreate$inboundSchema` instead. */
87
+ ProductPriceOneTimeCustomCreate$.inboundSchema = exports.ProductPriceOneTimeCustomCreate$inboundSchema;
88
+ /** @deprecated use `ProductPriceOneTimeCustomCreate$outboundSchema` instead. */
89
+ ProductPriceOneTimeCustomCreate$.outboundSchema = exports.ProductPriceOneTimeCustomCreate$outboundSchema;
90
+ })(ProductPriceOneTimeCustomCreate$ || (exports.ProductPriceOneTimeCustomCreate$ = ProductPriceOneTimeCustomCreate$ = {}));
91
+ //# sourceMappingURL=productpriceonetimecustomcreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimecustomcreate.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustomcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,mCAAmC,GAAG;IACjD,OAAO,EAAE,UAAU;CACX,CAAC;AA4BX,gBAAgB;AACH,QAAA,iDAAiD,GAE1D,CAAC,CAAC,UAAU,CAAC,2CAAmC,CAAC,CAAC;AAEtD,gBAAgB;AACH,QAAA,kDAAkD,GAE3D,yDAAiD,CAAC;AAEtD;;;GAGG;AACH,IAAiB,oCAAoC,CAOpD;AAPD,WAAiB,oCAAoC;IACnD,mFAAmF;IACtE,kDAAa,GACxB,yDAAiD,CAAC;IACpD,oFAAoF;IACvE,mDAAc,GACzB,0DAAkD,CAAC;AACvD,CAAC,EAPgB,oCAAoC,oDAApC,oCAAoC,QAOpD;AAED,gBAAgB;AACH,QAAA,6CAA6C,GAItD,CAAC,CAAC,MAAM,C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CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACtD,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,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"}
@@ -0,0 +1,114 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const ProductPriceOneTimeFixedAmountType: {
4
+ readonly Fixed: "fixed";
5
+ };
6
+ export type ProductPriceOneTimeFixedAmountType = ClosedEnum<typeof ProductPriceOneTimeFixedAmountType>;
7
+ /**
8
+ * The type of the price.
9
+ */
10
+ export declare const ProductPriceOneTimeFixedType: {
11
+ readonly OneTime: "one_time";
12
+ };
13
+ /**
14
+ * The type of the price.
15
+ */
16
+ export type ProductPriceOneTimeFixedType = ClosedEnum<typeof ProductPriceOneTimeFixedType>;
17
+ /**
18
+ * A one-time price for a product.
19
+ */
20
+ export type ProductPriceOneTimeFixed = {
21
+ /**
22
+ * Creation timestamp of the object.
23
+ */
24
+ createdAt: Date;
25
+ /**
26
+ * Last modification timestamp of the object.
27
+ */
28
+ modifiedAt: Date | null;
29
+ /**
30
+ * The ID of the price.
31
+ */
32
+ id: string;
33
+ amountType?: "fixed" | undefined;
34
+ /**
35
+ * The currency.
36
+ */
37
+ priceCurrency: string;
38
+ /**
39
+ * Whether the price is archived and no longer available.
40
+ */
41
+ isArchived: boolean;
42
+ /**
43
+ * The price in cents.
44
+ */
45
+ priceAmount: number;
46
+ /**
47
+ * The type of the price.
48
+ */
49
+ type?: "one_time" | undefined;
50
+ };
51
+ /** @internal */
52
+ export declare const ProductPriceOneTimeFixedAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedAmountType>;
53
+ /** @internal */
54
+ export declare const ProductPriceOneTimeFixedAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedAmountType>;
55
+ /**
56
+ * @internal
57
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
58
+ */
59
+ export declare namespace ProductPriceOneTimeFixedAmountType$ {
60
+ /** @deprecated use `ProductPriceOneTimeFixedAmountType$inboundSchema` instead. */
61
+ const inboundSchema: z.ZodNativeEnum<{
62
+ readonly Fixed: "fixed";
63
+ }>;
64
+ /** @deprecated use `ProductPriceOneTimeFixedAmountType$outboundSchema` instead. */
65
+ const outboundSchema: z.ZodNativeEnum<{
66
+ readonly Fixed: "fixed";
67
+ }>;
68
+ }
69
+ /** @internal */
70
+ export declare const ProductPriceOneTimeFixedType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedType>;
71
+ /** @internal */
72
+ export declare const ProductPriceOneTimeFixedType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedType>;
73
+ /**
74
+ * @internal
75
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
76
+ */
77
+ export declare namespace ProductPriceOneTimeFixedType$ {
78
+ /** @deprecated use `ProductPriceOneTimeFixedType$inboundSchema` instead. */
79
+ const inboundSchema: z.ZodNativeEnum<{
80
+ readonly OneTime: "one_time";
81
+ }>;
82
+ /** @deprecated use `ProductPriceOneTimeFixedType$outboundSchema` instead. */
83
+ const outboundSchema: z.ZodNativeEnum<{
84
+ readonly OneTime: "one_time";
85
+ }>;
86
+ }
87
+ /** @internal */
88
+ export declare const ProductPriceOneTimeFixed$inboundSchema: z.ZodType<ProductPriceOneTimeFixed, z.ZodTypeDef, unknown>;
89
+ /** @internal */
90
+ export type ProductPriceOneTimeFixed$Outbound = {
91
+ created_at: string;
92
+ modified_at: string | null;
93
+ id: string;
94
+ amount_type: "fixed";
95
+ price_currency: string;
96
+ is_archived: boolean;
97
+ price_amount: number;
98
+ type: "one_time";
99
+ };
100
+ /** @internal */
101
+ export declare const ProductPriceOneTimeFixed$outboundSchema: z.ZodType<ProductPriceOneTimeFixed$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixed>;
102
+ /**
103
+ * @internal
104
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
105
+ */
106
+ export declare namespace ProductPriceOneTimeFixed$ {
107
+ /** @deprecated use `ProductPriceOneTimeFixed$inboundSchema` instead. */
108
+ const inboundSchema: z.ZodType<ProductPriceOneTimeFixed, z.ZodTypeDef, unknown>;
109
+ /** @deprecated use `ProductPriceOneTimeFixed$outboundSchema` instead. */
110
+ const outboundSchema: z.ZodType<ProductPriceOneTimeFixed$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixed>;
111
+ /** @deprecated use `ProductPriceOneTimeFixed$Outbound` instead. */
112
+ type Outbound = ProductPriceOneTimeFixed$Outbound;
113
+ }
114
+ //# sourceMappingURL=productpriceonetimefixed.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimefixed.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimefixed.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,kCAAkC;;CAErC,CAAC;AACX,MAAM,MAAM,kCAAkC,GAAG,UAAU,CACzD,OAAO,kCAAkC,CAC1C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,4BAA4B;;CAE/B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,4BAA4B,GAAG,UAAU,CACnD,OAAO,4BAA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OAAO,CAqBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,iCAAiC,GAAG;IAC9C,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,UAAU,CAAC;CAClB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,iCAAiC,EACjC,CAAC,CAAC,UAAU,EACZ,wBAAwB,CAmBxB,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"}
@@ -0,0 +1,122 @@
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 (mod) {
22
+ if (mod && mod.__esModule) return mod;
23
+ var result = {};
24
+ if (mod != null) for (var k in mod) if (k !== "default" && Object.prototype.hasOwnProperty.call(mod, k)) __createBinding(result, mod, k);
25
+ __setModuleDefault(result, mod);
26
+ return result;
27
+ };
28
+ Object.defineProperty(exports, "__esModule", { value: true });
29
+ exports.ProductPriceOneTimeFixed$ = exports.ProductPriceOneTimeFixed$outboundSchema = exports.ProductPriceOneTimeFixed$inboundSchema = exports.ProductPriceOneTimeFixedType$ = exports.ProductPriceOneTimeFixedType$outboundSchema = exports.ProductPriceOneTimeFixedType$inboundSchema = exports.ProductPriceOneTimeFixedAmountType$ = exports.ProductPriceOneTimeFixedAmountType$outboundSchema = exports.ProductPriceOneTimeFixedAmountType$inboundSchema = exports.ProductPriceOneTimeFixedType = exports.ProductPriceOneTimeFixedAmountType = void 0;
30
+ const z = __importStar(require("zod"));
31
+ const primitives_js_1 = require("../../lib/primitives.js");
32
+ exports.ProductPriceOneTimeFixedAmountType = {
33
+ Fixed: "fixed",
34
+ };
35
+ /**
36
+ * The type of the price.
37
+ */
38
+ exports.ProductPriceOneTimeFixedType = {
39
+ OneTime: "one_time",
40
+ };
41
+ /** @internal */
42
+ exports.ProductPriceOneTimeFixedAmountType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeFixedAmountType);
43
+ /** @internal */
44
+ exports.ProductPriceOneTimeFixedAmountType$outboundSchema = exports.ProductPriceOneTimeFixedAmountType$inboundSchema;
45
+ /**
46
+ * @internal
47
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
48
+ */
49
+ var ProductPriceOneTimeFixedAmountType$;
50
+ (function (ProductPriceOneTimeFixedAmountType$) {
51
+ /** @deprecated use `ProductPriceOneTimeFixedAmountType$inboundSchema` instead. */
52
+ ProductPriceOneTimeFixedAmountType$.inboundSchema = exports.ProductPriceOneTimeFixedAmountType$inboundSchema;
53
+ /** @deprecated use `ProductPriceOneTimeFixedAmountType$outboundSchema` instead. */
54
+ ProductPriceOneTimeFixedAmountType$.outboundSchema = exports.ProductPriceOneTimeFixedAmountType$outboundSchema;
55
+ })(ProductPriceOneTimeFixedAmountType$ || (exports.ProductPriceOneTimeFixedAmountType$ = ProductPriceOneTimeFixedAmountType$ = {}));
56
+ /** @internal */
57
+ exports.ProductPriceOneTimeFixedType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeFixedType);
58
+ /** @internal */
59
+ exports.ProductPriceOneTimeFixedType$outboundSchema = exports.ProductPriceOneTimeFixedType$inboundSchema;
60
+ /**
61
+ * @internal
62
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
63
+ */
64
+ var ProductPriceOneTimeFixedType$;
65
+ (function (ProductPriceOneTimeFixedType$) {
66
+ /** @deprecated use `ProductPriceOneTimeFixedType$inboundSchema` instead. */
67
+ ProductPriceOneTimeFixedType$.inboundSchema = exports.ProductPriceOneTimeFixedType$inboundSchema;
68
+ /** @deprecated use `ProductPriceOneTimeFixedType$outboundSchema` instead. */
69
+ ProductPriceOneTimeFixedType$.outboundSchema = exports.ProductPriceOneTimeFixedType$outboundSchema;
70
+ })(ProductPriceOneTimeFixedType$ || (exports.ProductPriceOneTimeFixedType$ = ProductPriceOneTimeFixedType$ = {}));
71
+ /** @internal */
72
+ exports.ProductPriceOneTimeFixed$inboundSchema = z.object({
73
+ created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
74
+ modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
75
+ id: z.string(),
76
+ amount_type: z.literal("fixed").optional(),
77
+ price_currency: z.string(),
78
+ is_archived: z.boolean(),
79
+ price_amount: z.number().int(),
80
+ type: z.literal("one_time").optional(),
81
+ }).transform((v) => {
82
+ return (0, primitives_js_1.remap)(v, {
83
+ "created_at": "createdAt",
84
+ "modified_at": "modifiedAt",
85
+ "amount_type": "amountType",
86
+ "price_currency": "priceCurrency",
87
+ "is_archived": "isArchived",
88
+ "price_amount": "priceAmount",
89
+ });
90
+ });
91
+ /** @internal */
92
+ exports.ProductPriceOneTimeFixed$outboundSchema = z.object({
93
+ createdAt: z.date().transform(v => v.toISOString()),
94
+ modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
95
+ id: z.string(),
96
+ amountType: z.literal("fixed").default("fixed"),
97
+ priceCurrency: z.string(),
98
+ isArchived: z.boolean(),
99
+ priceAmount: z.number().int(),
100
+ type: z.literal("one_time").default("one_time"),
101
+ }).transform((v) => {
102
+ return (0, primitives_js_1.remap)(v, {
103
+ createdAt: "created_at",
104
+ modifiedAt: "modified_at",
105
+ amountType: "amount_type",
106
+ priceCurrency: "price_currency",
107
+ isArchived: "is_archived",
108
+ priceAmount: "price_amount",
109
+ });
110
+ });
111
+ /**
112
+ * @internal
113
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
114
+ */
115
+ var ProductPriceOneTimeFixed$;
116
+ (function (ProductPriceOneTimeFixed$) {
117
+ /** @deprecated use `ProductPriceOneTimeFixed$inboundSchema` instead. */
118
+ ProductPriceOneTimeFixed$.inboundSchema = exports.ProductPriceOneTimeFixed$inboundSchema;
119
+ /** @deprecated use `ProductPriceOneTimeFixed$outboundSchema` instead. */
120
+ ProductPriceOneTimeFixed$.outboundSchema = exports.ProductPriceOneTimeFixed$outboundSchema;
121
+ })(ProductPriceOneTimeFixed$ || (exports.ProductPriceOneTimeFixed$ = ProductPriceOneTimeFixed$ = {}));
122
+ //# sourceMappingURL=productpriceonetimefixed.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimefixed.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimefixed.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,kCAAkC,GAAG;IAChD,KAAK,EAAE,OAAO;CACN,CAAC;AAKX;;GAEG;AACU,QAAA,4BAA4B,GAAG;IAC1C,OAAO,EAAE,UAAU;CACX,CAAC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CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,UAAU,EAAE,aAAa;QACzB,aAAa,EAAE,gBAAgB;QAC/B,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;KAC5B,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"}
@@ -0,0 +1,61 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const ProductPriceOneTimeFixedCreateType: {
4
+ readonly OneTime: "one_time";
5
+ };
6
+ export type ProductPriceOneTimeFixedCreateType = ClosedEnum<typeof ProductPriceOneTimeFixedCreateType>;
7
+ /**
8
+ * Schema to create a one-time product price.
9
+ */
10
+ export type ProductPriceOneTimeFixedCreate = {
11
+ type?: "one_time" | undefined;
12
+ /**
13
+ * The currency. Currently, only `usd` is supported.
14
+ */
15
+ priceCurrency?: string | undefined;
16
+ /**
17
+ * The price in cents.
18
+ */
19
+ priceAmount: number;
20
+ };
21
+ /** @internal */
22
+ export declare const ProductPriceOneTimeFixedCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedCreateType>;
23
+ /** @internal */
24
+ export declare const ProductPriceOneTimeFixedCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeFixedCreateType>;
25
+ /**
26
+ * @internal
27
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
28
+ */
29
+ export declare namespace ProductPriceOneTimeFixedCreateType$ {
30
+ /** @deprecated use `ProductPriceOneTimeFixedCreateType$inboundSchema` instead. */
31
+ const inboundSchema: z.ZodNativeEnum<{
32
+ readonly OneTime: "one_time";
33
+ }>;
34
+ /** @deprecated use `ProductPriceOneTimeFixedCreateType$outboundSchema` instead. */
35
+ const outboundSchema: z.ZodNativeEnum<{
36
+ readonly OneTime: "one_time";
37
+ }>;
38
+ }
39
+ /** @internal */
40
+ export declare const ProductPriceOneTimeFixedCreate$inboundSchema: z.ZodType<ProductPriceOneTimeFixedCreate, z.ZodTypeDef, unknown>;
41
+ /** @internal */
42
+ export type ProductPriceOneTimeFixedCreate$Outbound = {
43
+ type: "one_time";
44
+ price_currency: string;
45
+ price_amount: number;
46
+ };
47
+ /** @internal */
48
+ export declare const ProductPriceOneTimeFixedCreate$outboundSchema: z.ZodType<ProductPriceOneTimeFixedCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixedCreate>;
49
+ /**
50
+ * @internal
51
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
52
+ */
53
+ export declare namespace ProductPriceOneTimeFixedCreate$ {
54
+ /** @deprecated use `ProductPriceOneTimeFixedCreate$inboundSchema` instead. */
55
+ const inboundSchema: z.ZodType<ProductPriceOneTimeFixedCreate, z.ZodTypeDef, unknown>;
56
+ /** @deprecated use `ProductPriceOneTimeFixedCreate$outboundSchema` instead. */
57
+ const outboundSchema: z.ZodType<ProductPriceOneTimeFixedCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeFixedCreate>;
58
+ /** @deprecated use `ProductPriceOneTimeFixedCreate$Outbound` instead. */
59
+ type Outbound = ProductPriceOneTimeFixedCreate$Outbound;
60
+ }
61
+ //# sourceMappingURL=productpriceonetimefixedcreate.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimefixedcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimefixedcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OA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