@polar-sh/sdk 0.8.1 → 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 (204) 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/organizationprofilesettings.d.ts +10 -0
  62. package/models/components/organizationprofilesettings.d.ts.map +1 -1
  63. package/models/components/organizationprofilesettings.js +6 -0
  64. package/models/components/organizationprofilesettings.js.map +1 -1
  65. package/models/components/productonetimecreate.d.ts +23 -3
  66. package/models/components/productonetimecreate.d.ts.map +1 -1
  67. package/models/components/productonetimecreate.js +33 -4
  68. package/models/components/productonetimecreate.js.map +1 -1
  69. package/models/components/productpriceinput.d.ts +3 -11
  70. package/models/components/productpriceinput.d.ts.map +1 -1
  71. package/models/components/productpriceinput.js +5 -13
  72. package/models/components/productpriceinput.js.map +1 -1
  73. package/models/components/productpriceonetime.d.ts +4 -71
  74. package/models/components/productpriceonetime.d.ts.map +1 -1
  75. package/models/components/productpriceonetime.js +11 -57
  76. package/models/components/productpriceonetime.js.map +1 -1
  77. package/models/components/productpriceonetimecustom.d.ts +124 -0
  78. package/models/components/productpriceonetimecustom.d.ts.map +1 -0
  79. package/models/components/productpriceonetimecustom.js +130 -0
  80. package/models/components/productpriceonetimecustom.js.map +1 -0
  81. package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
  82. package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
  83. package/models/components/productpriceonetimecustomcreate.js +91 -0
  84. package/models/components/productpriceonetimecustomcreate.js.map +1 -0
  85. package/models/components/productpriceonetimefixed.d.ts +114 -0
  86. package/models/components/productpriceonetimefixed.d.ts.map +1 -0
  87. package/models/components/productpriceonetimefixed.js +122 -0
  88. package/models/components/productpriceonetimefixed.js.map +1 -0
  89. package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
  90. package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
  91. package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
  92. package/models/components/productpriceonetimefixedcreate.js.map +1 -0
  93. package/models/components/productpriceoutput.d.ts +3 -11
  94. package/models/components/productpriceoutput.d.ts.map +1 -1
  95. package/models/components/productpriceoutput.js +5 -13
  96. package/models/components/productpriceoutput.js.map +1 -1
  97. package/models/components/productpricerecurringcreate.d.ts +7 -7
  98. package/models/components/productpricerecurringcreate.d.ts.map +1 -1
  99. package/models/components/productpricerecurringcreate.js +9 -9
  100. package/models/components/productpricerecurringcreate.js.map +1 -1
  101. package/models/components/productpricerecurringcustom.d.ts +130 -0
  102. package/models/components/productpricerecurringcustom.d.ts.map +1 -0
  103. package/models/components/productpricerecurringcustom.js +135 -0
  104. package/models/components/productpricerecurringcustom.js.map +1 -0
  105. package/models/components/productpricerecurringfixed.d.ts +120 -0
  106. package/models/components/productpricerecurringfixed.d.ts.map +1 -0
  107. package/models/components/productpricerecurringfixed.js +128 -0
  108. package/models/components/productpricerecurringfixed.js.map +1 -0
  109. package/models/components/productpricerecurringinput.d.ts +31 -0
  110. package/models/components/productpricerecurringinput.d.ts.map +1 -0
  111. package/models/components/productpricerecurringinput.js +62 -0
  112. package/models/components/productpricerecurringinput.js.map +1 -0
  113. package/models/components/productpricerecurringoutput.d.ts +31 -0
  114. package/models/components/productpricerecurringoutput.d.ts.map +1 -0
  115. package/models/components/productpricerecurringoutput.js +62 -0
  116. package/models/components/productpricerecurringoutput.js.map +1 -0
  117. package/models/components/productupdate.d.ts +15 -14
  118. package/models/components/productupdate.d.ts.map +1 -1
  119. package/models/components/productupdate.js +20 -16
  120. package/models/components/productupdate.js.map +1 -1
  121. package/models/components/subscriptioninput.d.ts +7 -0
  122. package/models/components/subscriptioninput.d.ts.map +1 -1
  123. package/models/components/subscriptioninput.js +9 -0
  124. package/models/components/subscriptioninput.js.map +1 -1
  125. package/models/components/subscriptionoutput.d.ts +7 -0
  126. package/models/components/subscriptionoutput.d.ts.map +1 -1
  127. package/models/components/subscriptionoutput.js +9 -0
  128. package/models/components/subscriptionoutput.js.map +1 -1
  129. package/models/components/subscriptionrecurringinterval.d.ts +28 -0
  130. package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
  131. package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
  132. package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
  133. package/models/components/subscriptionsortproperty.d.ts +6 -6
  134. package/models/components/subscriptionsortproperty.js +2 -2
  135. package/models/components/subscriptionsortproperty.js.map +1 -1
  136. package/models/components/userordersubscription.d.ts +7 -0
  137. package/models/components/userordersubscription.d.ts.map +1 -1
  138. package/models/components/userordersubscription.js +9 -0
  139. package/models/components/userordersubscription.js.map +1 -1
  140. package/models/components/usersubscription.d.ts +10 -0
  141. package/models/components/usersubscription.d.ts.map +1 -1
  142. package/models/components/usersubscription.js +9 -0
  143. package/models/components/usersubscription.js.map +1 -1
  144. package/models/components/usersubscriptionsortproperty.d.ts +6 -6
  145. package/models/components/usersubscriptionsortproperty.js +2 -2
  146. package/models/components/usersubscriptionsortproperty.js.map +1 -1
  147. package/package.json +1 -1
  148. package/src/funcs/advertisementsList.ts +2 -2
  149. package/src/funcs/articlesList.ts +2 -2
  150. package/src/funcs/benefitsGrants.ts +2 -2
  151. package/src/funcs/benefitsList.ts +2 -2
  152. package/src/funcs/externalOrganizationsList.ts +2 -2
  153. package/src/funcs/filesList.ts +2 -2
  154. package/src/funcs/licenseKeysList.ts +2 -2
  155. package/src/funcs/oauth2ClientsList.ts +2 -2
  156. package/src/funcs/ordersList.ts +2 -2
  157. package/src/funcs/organizationsList.ts +2 -2
  158. package/src/funcs/productsList.ts +2 -2
  159. package/src/funcs/repositoriesList.ts +2 -2
  160. package/src/funcs/subscriptionsList.ts +2 -2
  161. package/src/funcs/usersAdvertisementsList.ts +2 -2
  162. package/src/funcs/usersBenefitsList.ts +2 -2
  163. package/src/funcs/usersDownloadablesList.ts +2 -2
  164. package/src/funcs/usersLicenseKeysList.ts +2 -2
  165. package/src/funcs/usersOrdersList.ts +2 -2
  166. package/src/funcs/usersSubscriptionsList.ts +2 -2
  167. package/src/lib/config.ts +18 -12
  168. package/src/models/components/bodysubscriptionsimport.ts +4 -2
  169. package/src/models/components/index.ts +9 -3
  170. package/src/models/components/ordersubscription.ts +19 -0
  171. package/src/models/components/organizationfeaturesettings.ts +0 -9
  172. package/src/models/components/organizationprofilesettings.ts +16 -0
  173. package/src/models/components/productonetimecreate.ts +69 -9
  174. package/src/models/components/productpriceinput.ts +13 -29
  175. package/src/models/components/productpriceonetime.ts +27 -115
  176. package/src/models/components/productpriceonetimecustom.ts +201 -0
  177. package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
  178. package/src/models/components/productpriceonetimefixed.ts +182 -0
  179. package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
  180. package/src/models/components/productpriceoutput.ts +13 -29
  181. package/src/models/components/productpricerecurringcreate.ts +18 -18
  182. package/src/models/components/productpricerecurringcustom.ts +216 -0
  183. package/src/models/components/productpricerecurringfixed.ts +191 -0
  184. package/src/models/components/productpricerecurringinput.ts +75 -0
  185. package/src/models/components/productpricerecurringoutput.ts +75 -0
  186. package/src/models/components/productupdate.ts +49 -32
  187. package/src/models/components/subscriptioninput.ts +19 -0
  188. package/src/models/components/subscriptionoutput.ts +19 -0
  189. package/src/models/components/subscriptionrecurringinterval.ts +35 -0
  190. package/src/models/components/subscriptionsortproperty.ts +2 -2
  191. package/src/models/components/userordersubscription.ts +19 -0
  192. package/src/models/components/usersubscription.ts +22 -0
  193. package/src/models/components/usersubscriptionsortproperty.ts +2 -2
  194. package/models/components/productpriceonetimecreate.d.ts +0 -61
  195. package/models/components/productpriceonetimecreate.d.ts.map +0 -1
  196. package/models/components/productpriceonetimecreate.js.map +0 -1
  197. package/models/components/productpricerecurring.d.ts +0 -96
  198. package/models/components/productpricerecurring.d.ts.map +0 -1
  199. package/models/components/productpricerecurring.js +0 -105
  200. package/models/components/productpricerecurring.js.map +0 -1
  201. package/models/components/productpricerecurringinterval.d.ts +0 -28
  202. package/src/models/components/productpriceonetimecreate.ts +0 -102
  203. package/src/models/components/productpricerecurring.ts +0 -161
  204. package/src/models/components/productpricerecurringinterval.ts +0 -35
@@ -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,UAA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CAAC;CAChD,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,CAA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,MAAM,cAAc,kGAAgD,CAAC;IAC5E,yEAAyE;IACzE,KAAY,QAAQ,GAAG,uCAAuC,CAAC;CAChE"}
@@ -26,58 +26,58 @@ var __importStar = (this && this.__importStar) || function (mod) {
26
26
  return result;
27
27
  };
28
28
  Object.defineProperty(exports, "__esModule", { value: true });
29
- exports.ProductPriceOneTimeCreate$ = exports.ProductPriceOneTimeCreate$outboundSchema = exports.ProductPriceOneTimeCreate$inboundSchema = exports.ProductPriceOneTimeCreateType$ = exports.ProductPriceOneTimeCreateType$outboundSchema = exports.ProductPriceOneTimeCreateType$inboundSchema = exports.ProductPriceOneTimeCreateType = void 0;
29
+ exports.ProductPriceOneTimeFixedCreate$ = exports.ProductPriceOneTimeFixedCreate$outboundSchema = exports.ProductPriceOneTimeFixedCreate$inboundSchema = exports.ProductPriceOneTimeFixedCreateType$ = exports.ProductPriceOneTimeFixedCreateType$outboundSchema = exports.ProductPriceOneTimeFixedCreateType$inboundSchema = exports.ProductPriceOneTimeFixedCreateType = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const primitives_js_1 = require("../../lib/primitives.js");
32
- exports.ProductPriceOneTimeCreateType = {
32
+ exports.ProductPriceOneTimeFixedCreateType = {
33
33
  OneTime: "one_time",
34
34
  };
35
35
  /** @internal */
36
- exports.ProductPriceOneTimeCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeCreateType);
36
+ exports.ProductPriceOneTimeFixedCreateType$inboundSchema = z.nativeEnum(exports.ProductPriceOneTimeFixedCreateType);
37
37
  /** @internal */
38
- exports.ProductPriceOneTimeCreateType$outboundSchema = exports.ProductPriceOneTimeCreateType$inboundSchema;
38
+ exports.ProductPriceOneTimeFixedCreateType$outboundSchema = exports.ProductPriceOneTimeFixedCreateType$inboundSchema;
39
39
  /**
40
40
  * @internal
41
41
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
42
42
  */
43
- var ProductPriceOneTimeCreateType$;
44
- (function (ProductPriceOneTimeCreateType$) {
45
- /** @deprecated use `ProductPriceOneTimeCreateType$inboundSchema` instead. */
46
- ProductPriceOneTimeCreateType$.inboundSchema = exports.ProductPriceOneTimeCreateType$inboundSchema;
47
- /** @deprecated use `ProductPriceOneTimeCreateType$outboundSchema` instead. */
48
- ProductPriceOneTimeCreateType$.outboundSchema = exports.ProductPriceOneTimeCreateType$outboundSchema;
49
- })(ProductPriceOneTimeCreateType$ || (exports.ProductPriceOneTimeCreateType$ = ProductPriceOneTimeCreateType$ = {}));
43
+ var ProductPriceOneTimeFixedCreateType$;
44
+ (function (ProductPriceOneTimeFixedCreateType$) {
45
+ /** @deprecated use `ProductPriceOneTimeFixedCreateType$inboundSchema` instead. */
46
+ ProductPriceOneTimeFixedCreateType$.inboundSchema = exports.ProductPriceOneTimeFixedCreateType$inboundSchema;
47
+ /** @deprecated use `ProductPriceOneTimeFixedCreateType$outboundSchema` instead. */
48
+ ProductPriceOneTimeFixedCreateType$.outboundSchema = exports.ProductPriceOneTimeFixedCreateType$outboundSchema;
49
+ })(ProductPriceOneTimeFixedCreateType$ || (exports.ProductPriceOneTimeFixedCreateType$ = ProductPriceOneTimeFixedCreateType$ = {}));
50
50
  /** @internal */
51
- exports.ProductPriceOneTimeCreate$inboundSchema = z.object({
51
+ exports.ProductPriceOneTimeFixedCreate$inboundSchema = z.object({
52
52
  type: z.literal("one_time").optional(),
53
- price_amount: z.number().int(),
54
53
  price_currency: z.string().default("usd"),
54
+ price_amount: z.number().int(),
55
55
  }).transform((v) => {
56
56
  return (0, primitives_js_1.remap)(v, {
57
- "price_amount": "priceAmount",
58
57
  "price_currency": "priceCurrency",
58
+ "price_amount": "priceAmount",
59
59
  });
60
60
  });
61
61
  /** @internal */
62
- exports.ProductPriceOneTimeCreate$outboundSchema = z.object({
62
+ exports.ProductPriceOneTimeFixedCreate$outboundSchema = z.object({
63
63
  type: z.literal("one_time").default("one_time"),
64
- priceAmount: z.number().int(),
65
64
  priceCurrency: z.string().default("usd"),
65
+ priceAmount: z.number().int(),
66
66
  }).transform((v) => {
67
67
  return (0, primitives_js_1.remap)(v, {
68
- priceAmount: "price_amount",
69
68
  priceCurrency: "price_currency",
69
+ priceAmount: "price_amount",
70
70
  });
71
71
  });
72
72
  /**
73
73
  * @internal
74
74
  * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
75
75
  */
76
- var ProductPriceOneTimeCreate$;
77
- (function (ProductPriceOneTimeCreate$) {
78
- /** @deprecated use `ProductPriceOneTimeCreate$inboundSchema` instead. */
79
- ProductPriceOneTimeCreate$.inboundSchema = exports.ProductPriceOneTimeCreate$inboundSchema;
80
- /** @deprecated use `ProductPriceOneTimeCreate$outboundSchema` instead. */
81
- ProductPriceOneTimeCreate$.outboundSchema = exports.ProductPriceOneTimeCreate$outboundSchema;
82
- })(ProductPriceOneTimeCreate$ || (exports.ProductPriceOneTimeCreate$ = ProductPriceOneTimeCreate$ = {}));
83
- //# sourceMappingURL=productpriceonetimecreate.js.map
76
+ var ProductPriceOneTimeFixedCreate$;
77
+ (function (ProductPriceOneTimeFixedCreate$) {
78
+ /** @deprecated use `ProductPriceOneTimeFixedCreate$inboundSchema` instead. */
79
+ ProductPriceOneTimeFixedCreate$.inboundSchema = exports.ProductPriceOneTimeFixedCreate$inboundSchema;
80
+ /** @deprecated use `ProductPriceOneTimeFixedCreate$outboundSchema` instead. */
81
+ ProductPriceOneTimeFixedCreate$.outboundSchema = exports.ProductPriceOneTimeFixedCreate$outboundSchema;
82
+ })(ProductPriceOneTimeFixedCreate$ || (exports.ProductPriceOneTimeFixedCreate$ = ProductPriceOneTimeFixedCreate$ = {}));
83
+ //# sourceMappingURL=productpriceonetimefixedcreate.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimefixedcreate.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimefixedcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,Q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AAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,cAAc;KAC5B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,+BAA+B,CAO/C;AAPD,WAAiB,+BAA+B;IAC9C,8EAA8E;IACjE,6CAAa,GAAG,oDAA4C,CAAC;IAC1E,+EAA+E;IAClE,8CAAc,GAAG,qDAA6C,CAAC;AAG9E,CAAC,EAPgB,+BAA+B,+CAA/B,+BAA+B,QAO/C"}
@@ -1,19 +1,11 @@
1
1
  import * as z from "zod";
2
2
  import { ProductPriceOneTime, ProductPriceOneTime$Outbound } from "./productpriceonetime.js";
3
- import { ProductPriceRecurring, ProductPriceRecurring$Outbound } from "./productpricerecurring.js";
4
- export type ProductPriceOutput = (ProductPriceOneTime & {
5
- type: "one_time";
6
- }) | (ProductPriceRecurring & {
7
- type: "recurring";
8
- });
3
+ import { ProductPriceRecurringOutput, ProductPriceRecurringOutput$Outbound } from "./productpricerecurringoutput.js";
4
+ export type ProductPriceOutput = ProductPriceRecurringOutput | ProductPriceOneTime;
9
5
  /** @internal */
10
6
  export declare const ProductPriceOutput$inboundSchema: z.ZodType<ProductPriceOutput, z.ZodTypeDef, unknown>;
11
7
  /** @internal */
12
- export type ProductPriceOutput$Outbound = (ProductPriceOneTime$Outbound & {
13
- type: "one_time";
14
- }) | (ProductPriceRecurring$Outbound & {
15
- type: "recurring";
16
- });
8
+ export type ProductPriceOutput$Outbound = ProductPriceRecurringOutput$Outbound | ProductPriceOneTime$Outbound;
17
9
  /** @internal */
18
10
  export declare const ProductPriceOutput$outboundSchema: z.ZodType<ProductPriceOutput$Outbound, z.ZodTypeDef, ProductPriceOutput>;
19
11
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,mBAA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1B,2BAA2B,GAC3B,mBAAmB,CAAC;AAExB,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,CAIP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GACnC,oCAAoC,GACpC,4BAA4B,CAAC;AAEjC,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAIlB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD"}
@@ -29,24 +29,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProductPriceOutput$ = exports.ProductPriceOutput$outboundSchema = exports.ProductPriceOutput$inboundSchema = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const productpriceonetime_js_1 = require("./productpriceonetime.js");
32
- const productpricerecurring_js_1 = require("./productpricerecurring.js");
32
+ const productpricerecurringoutput_js_1 = require("./productpricerecurringoutput.js");
33
33
  /** @internal */
34
34
  exports.ProductPriceOutput$inboundSchema = z.union([
35
- productpriceonetime_js_1.ProductPriceOneTime$inboundSchema.and(z.object({ type: z.literal("one_time") }).transform((v) => ({
36
- type: v.type,
37
- }))),
38
- productpricerecurring_js_1.ProductPriceRecurring$inboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
39
- type: v.type,
40
- }))),
35
+ productpricerecurringoutput_js_1.ProductPriceRecurringOutput$inboundSchema,
36
+ productpriceonetime_js_1.ProductPriceOneTime$inboundSchema,
41
37
  ]);
42
38
  /** @internal */
43
39
  exports.ProductPriceOutput$outboundSchema = z.union([
44
- productpriceonetime_js_1.ProductPriceOneTime$outboundSchema.and(z.object({ type: z.literal("one_time") }).transform((v) => ({
45
- type: v.type,
46
- }))),
47
- productpricerecurring_js_1.ProductPriceRecurring$outboundSchema.and(z.object({ type: z.literal("recurring") }).transform((v) => ({
48
- type: v.type,
49
- }))),
40
+ productpricerecurringoutput_js_1.ProductPriceRecurringOutput$outboundSchema,
41
+ productpriceonetime_js_1.ProductPriceOneTime$outboundSchema,
50
42
  ]);
51
43
  /**
52
44
  * @internal
@@ -1 +1 @@
1
- {"version":3,"file":"productpriceoutput.js","sourceRoot":"","sources":["../../src/models/components/productpriceoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,yEAKoC;AAMpC,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,0DAAiC,CAAC,GAAG,CACnC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;IACD,8DAAmC,CAAC,GAAG,CACrC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,KAAK,CAAC;IACV,2DAAkC,CAAC,GAAG,CACpC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC1D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;IACD,+DAAoC,CAAC,GAAG,CACtC,CAAC,CAAC,MAAM,CAAC,EAAE,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC3D,IAAI,EAAE,CAAC,CAAC,IAAI;KACb,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
1
+ {"version":3,"file":"productpriceoutput.js","sourceRoot":"","sources":["../../src/models/components/productpriceoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qEAKkC;AAClC,qFAK0C;AAM1C,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,CAAC,CAAC,KAAK,CAAC;IACV,0EAAyC;IACzC,0DAAiC;CAClC,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,iCAAiC,GAI1C,CAAC,CAAC,KAAK,CAAC;IACV,2EAA0C;IAC1C,2DAAkC;CACnC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
@@ -1,6 +1,6 @@
1
1
  import * as z from "zod";
2
2
  import { ClosedEnum } from "../../types/enums.js";
3
- import { ProductPriceRecurringInterval } from "./productpricerecurringinterval.js";
3
+ import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
4
4
  export declare const ProductPriceRecurringCreateType: {
5
5
  readonly Recurring: "recurring";
6
6
  };
@@ -11,17 +11,17 @@ export type ProductPriceRecurringCreateType = ClosedEnum<typeof ProductPriceRecu
11
11
  export type ProductPriceRecurringCreate = {
12
12
  type?: "recurring" | undefined;
13
13
  /**
14
- * The recurring interval of the price.
14
+ * The currency. Currently, only `usd` is supported.
15
15
  */
16
- recurringInterval: ProductPriceRecurringInterval;
16
+ priceCurrency?: string | undefined;
17
17
  /**
18
18
  * The price in cents.
19
19
  */
20
20
  priceAmount: number;
21
21
  /**
22
- * The currency. Currently, only `usd` is supported.
22
+ * The recurring interval of the price.
23
23
  */
24
- priceCurrency?: string | undefined;
24
+ recurringInterval: SubscriptionRecurringInterval;
25
25
  };
26
26
  /** @internal */
27
27
  export declare const ProductPriceRecurringCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringCreateType>;
@@ -46,9 +46,9 @@ export declare const ProductPriceRecurringCreate$inboundSchema: z.ZodType<Produc
46
46
  /** @internal */
47
47
  export type ProductPriceRecurringCreate$Outbound = {
48
48
  type: "recurring";
49
- recurring_interval: string;
50
- price_amount: number;
51
49
  price_currency: string;
50
+ price_amount: number;
51
+ recurring_interval: string;
52
52
  };
53
53
  /** @internal */
54
54
  export declare const ProductPriceRecurringCreate$outboundSchema: z.ZodType<ProductPriceRecurringCreate$Outbound, z.ZodTypeDef, ProductPriceRecurringCreate>;
@@ -1 +1 @@
1
- {"version":3,"file":"productpricerecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,E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5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
1
+ {"version":3,"file":"productpricerecurringcreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;IACnC;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,iBAAiB,EAAE,6BAA6B,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,aAAa,CACzE,OAAO,+BAA+B,CACS,CAAC;AAElD,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,aAAa,CAC1E,OAAO,+BAA+B,CACS,CAAC;AAElD;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa;;MAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc;;MAAiD,CAAC;CAC9E;AAED,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,oCAAoC,GAAG;IACjD,IAAI,EAAE,WAAW,CAAC;IAClB,cAAc,EAAE,MAAM,CAAC;IACvB,YAAY,EAAE,MAAM,CAAC;IACrB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,0CAA0C,EAAE,CAAC,CAAC,OAAO,CAChE,oCAAoC,EACpC,CAAC,CAAC,UAAU,EACZ,2BAA2B,CAY3B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,4BAA4B,CAAC;IAC5C,2EAA2E;IACpE,MAAM,aAAa,+DAA4C,CAAC;IACvE,4EAA4E;IACrE,MAAM,cAAc,4FAA6C,CAAC;IACzE,sEAAsE;IACtE,KAAY,QAAQ,GAAG,oCAAoC,CAAC;CAC7D"}
@@ -29,7 +29,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
29
29
  exports.ProductPriceRecurringCreate$ = exports.ProductPriceRecurringCreate$outboundSchema = exports.ProductPriceRecurringCreate$inboundSchema = exports.ProductPriceRecurringCreateType$ = exports.ProductPriceRecurringCreateType$outboundSchema = exports.ProductPriceRecurringCreateType$inboundSchema = exports.ProductPriceRecurringCreateType = void 0;
30
30
  const z = __importStar(require("zod"));
31
31
  const primitives_js_1 = require("../../lib/primitives.js");
32
- const productpricerecurringinterval_js_1 = require("./productpricerecurringinterval.js");
32
+ const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
33
33
  exports.ProductPriceRecurringCreateType = {
34
34
  Recurring: "recurring",
35
35
  };
@@ -51,27 +51,27 @@ var ProductPriceRecurringCreateType$;
51
51
  /** @internal */
52
52
  exports.ProductPriceRecurringCreate$inboundSchema = z.object({
53
53
  type: z.literal("recurring").optional(),
54
- recurring_interval: productpricerecurringinterval_js_1.ProductPriceRecurringInterval$inboundSchema,
55
- price_amount: z.number().int(),
56
54
  price_currency: z.string().default("usd"),
55
+ price_amount: z.number().int(),
56
+ recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
57
57
  }).transform((v) => {
58
58
  return (0, primitives_js_1.remap)(v, {
59
- "recurring_interval": "recurringInterval",
60
- "price_amount": "priceAmount",
61
59
  "price_currency": "priceCurrency",
60
+ "price_amount": "priceAmount",
61
+ "recurring_interval": "recurringInterval",
62
62
  });
63
63
  });
64
64
  /** @internal */
65
65
  exports.ProductPriceRecurringCreate$outboundSchema = z.object({
66
66
  type: z.literal("recurring").default("recurring"),
67
- recurringInterval: productpricerecurringinterval_js_1.ProductPriceRecurringInterval$outboundSchema,
68
- priceAmount: z.number().int(),
69
67
  priceCurrency: z.string().default("usd"),
68
+ priceAmount: z.number().int(),
69
+ recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
70
70
  }).transform((v) => {
71
71
  return (0, primitives_js_1.remap)(v, {
72
- recurringInterval: "recurring_interval",
73
- priceAmount: "price_amount",
74
72
  priceCurrency: "price_currency",
73
+ priceAmount: "price_amount",
74
+ recurringInterval: "recurring_interval",
75
75
  });
76
76
  });
77
77
  /**
@@ -1 +1 @@
1
- {"version":3,"file":"productpricerecurringcreate.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,+BAA+B,GAAG;IAC7C,SAAS,EAAE,WAAW;CACd,CAAC;AAwBX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC;AAElD,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,qDAA6C,CAAC;AAElD;;;GAGG;AACH,IAAiB,gCAAgC,CAKhD;AALD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;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D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
1
+ {"version":3,"file":"productpricerecurringcreate.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,+BAA+B,GAAG;IAC7C,SAAS,EAAE,WAAW;CACd,CAAC;AAwBX,gBAAgB;AACH,QAAA,6CAA6C,GAEtD,CAAC,CAAC,UAAU,CAAC,uCAA+B,CAAC,CAAC;AAElD,gBAAgB;AACH,QAAA,8CAA8C,GAEvD,qDAA6C,CAAC;AAElD;;;GAGG;AACH,IAAiB,gCAAgC,CAKhD;AALD,WAAiB,gCAAgC;IAC/C,+EAA+E;IAClE,8CAAa,GAAG,qDAA6C,CAAC;IAC3E,gFAAgF;IACnE,+CAAc,GAAG,sDAA8C,CAAC;AAC/E,CAAC,EALgB,gCAAgC,gDAAhC,gCAAgC,QAKhD;AAED,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,QAAQ,EAAE;IACvC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACzC,YAAY,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC9B,kBAAkB,EAAE,8EAA2C;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,gBAAgB,EAAE,eAAe;QACjC,cAAc,EAAE,aAAa;QAC7B,oBAAoB,EAAE,mBAAmB;KAC1C,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAUH,gBAAgB;AACH,QAAA,0CAA0C,GAInD,CAAC,CAAC,MAAM,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,aAAa,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACxC,WAAW,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE;IAC7B,iBAAiB,EAAE,+EAA4C;CAChE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,WAAW,EAAE,cAAc;QAC3B,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,4BAA4B,CAO5C;AAPD,WAAiB,4BAA4B;IAC3C,2EAA2E;IAC9D,0CAAa,GAAG,iDAAyC,CAAC;IACvE,4EAA4E;IAC/D,2CAAc,GAAG,kDAA0C,CAAC;AAG3E,CAAC,EAPgB,4BAA4B,4CAA5B,4BAA4B,QAO5C"}
@@ -0,0 +1,130 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
4
+ export declare const ProductPriceRecurringCustomAmountType: {
5
+ readonly Custom: "custom";
6
+ };
7
+ export type ProductPriceRecurringCustomAmountType = ClosedEnum<typeof ProductPriceRecurringCustomAmountType>;
8
+ /**
9
+ * The type of the price.
10
+ */
11
+ export declare const ProductPriceRecurringCustomType: {
12
+ readonly Recurring: "recurring";
13
+ };
14
+ /**
15
+ * The type of the price.
16
+ */
17
+ export type ProductPriceRecurringCustomType = ClosedEnum<typeof ProductPriceRecurringCustomType>;
18
+ /**
19
+ * A pay-what-you-want recurring price for a product, i.e. a subscription.
20
+ */
21
+ export type ProductPriceRecurringCustom = {
22
+ /**
23
+ * Creation timestamp of the object.
24
+ */
25
+ createdAt: Date;
26
+ /**
27
+ * Last modification timestamp of the object.
28
+ */
29
+ modifiedAt: Date | null;
30
+ /**
31
+ * The ID of the price.
32
+ */
33
+ id: string;
34
+ amountType?: "custom" | undefined;
35
+ /**
36
+ * The currency.
37
+ */
38
+ priceCurrency: string;
39
+ /**
40
+ * Whether the price is archived and no longer available.
41
+ */
42
+ isArchived: boolean;
43
+ /**
44
+ * The minimum amount the customer can pay.
45
+ */
46
+ minimumAmount: number | null;
47
+ /**
48
+ * The maximum amount the customer can pay.
49
+ */
50
+ maximumAmount: number | null;
51
+ /**
52
+ * The initial amount shown to the customer.
53
+ */
54
+ presetAmount: number | null;
55
+ /**
56
+ * The type of the price.
57
+ */
58
+ type?: "recurring" | undefined;
59
+ /**
60
+ * The recurring interval of the price.
61
+ */
62
+ recurringInterval: SubscriptionRecurringInterval;
63
+ };
64
+ /** @internal */
65
+ export declare const ProductPriceRecurringCustomAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType>;
66
+ /** @internal */
67
+ export declare const ProductPriceRecurringCustomAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringCustomAmountType>;
68
+ /**
69
+ * @internal
70
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
71
+ */
72
+ export declare namespace ProductPriceRecurringCustomAmountType$ {
73
+ /** @deprecated use `ProductPriceRecurringCustomAmountType$inboundSchema` instead. */
74
+ const inboundSchema: z.ZodNativeEnum<{
75
+ readonly Custom: "custom";
76
+ }>;
77
+ /** @deprecated use `ProductPriceRecurringCustomAmountType$outboundSchema` instead. */
78
+ const outboundSchema: z.ZodNativeEnum<{
79
+ readonly Custom: "custom";
80
+ }>;
81
+ }
82
+ /** @internal */
83
+ export declare const ProductPriceRecurringCustomType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringCustomType>;
84
+ /** @internal */
85
+ export declare const ProductPriceRecurringCustomType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringCustomType>;
86
+ /**
87
+ * @internal
88
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
89
+ */
90
+ export declare namespace ProductPriceRecurringCustomType$ {
91
+ /** @deprecated use `ProductPriceRecurringCustomType$inboundSchema` instead. */
92
+ const inboundSchema: z.ZodNativeEnum<{
93
+ readonly Recurring: "recurring";
94
+ }>;
95
+ /** @deprecated use `ProductPriceRecurringCustomType$outboundSchema` instead. */
96
+ const outboundSchema: z.ZodNativeEnum<{
97
+ readonly Recurring: "recurring";
98
+ }>;
99
+ }
100
+ /** @internal */
101
+ export declare const ProductPriceRecurringCustom$inboundSchema: z.ZodType<ProductPriceRecurringCustom, z.ZodTypeDef, unknown>;
102
+ /** @internal */
103
+ export type ProductPriceRecurringCustom$Outbound = {
104
+ created_at: string;
105
+ modified_at: string | null;
106
+ id: string;
107
+ amount_type: "custom";
108
+ price_currency: string;
109
+ is_archived: boolean;
110
+ minimum_amount: number | null;
111
+ maximum_amount: number | null;
112
+ preset_amount: number | null;
113
+ type: "recurring";
114
+ recurring_interval: string;
115
+ };
116
+ /** @internal */
117
+ export declare const ProductPriceRecurringCustom$outboundSchema: z.ZodType<ProductPriceRecurringCustom$Outbound, z.ZodTypeDef, ProductPriceRecurringCustom>;
118
+ /**
119
+ * @internal
120
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
121
+ */
122
+ export declare namespace ProductPriceRecurringCustom$ {
123
+ /** @deprecated use `ProductPriceRecurringCustom$inboundSchema` instead. */
124
+ const inboundSchema: z.ZodType<ProductPriceRecurringCustom, z.ZodTypeDef, unknown>;
125
+ /** @deprecated use `ProductPriceRecurringCustom$outboundSchema` instead. */
126
+ const outboundSchema: z.ZodType<ProductPriceRecurringCustom$Outbound, z.ZodTypeDef, ProductPriceRecurringCustom>;
127
+ /** @deprecated use `ProductPriceRecurringCustom$Outbound` instead. */
128
+ type Outbound = ProductPriceRecurringCustom$Outbound;
129
+ }
130
+ //# sourceMappingURL=productpricerecurringcustom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpricerecurringcustom.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcustom.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAClD,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAE5C,eAAO,MAAM,qCAAqC;;CAExC,CAAC;AACX,MAAM,MAAM,qCAAqC,GAAG,UAAU,CAC5D,OAAO,qCAAqC,CAC7C,CAAC;AAEF;;GAEG;AACH,eAAO,MAAM,+BAA+B;;CAElC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,+BAA+B,GAAG,UAAU,CACtD,OAAO,+BAA+B,CACvC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,2BAA2B,GAAG;IACxC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,UAAU,CAAC,EAAE,QAAQ,GAAG,SAAS,CAAC;IAClC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,aAAa,EAAE,MAAM,GAAG,IAAI,CAAC;IAC7B;;OAEG;IACH,YAAY,EAAE,MAAM,GAAG,IAAI,CAAC;IAC5B;;OAEG;IACH,IAAI,CAAC,EAAE,WAAW,GAAG,SAAS,CAAC;IAC/B;;OAEG;IACH,iBAAiB,EAAE,6BAA6B,CAAC;CAClD,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mDAAmD,EAC9D,CAAC,CAAC,aAAa,CAAC,OAAO,qCAAqC,C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