@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,124 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const ProductPriceOneTimeCustomAmountType: {
4
+ readonly Custom: "custom";
5
+ };
6
+ export type ProductPriceOneTimeCustomAmountType = ClosedEnum<typeof ProductPriceOneTimeCustomAmountType>;
7
+ /**
8
+ * The type of the price.
9
+ */
10
+ export declare const ProductPriceOneTimeCustomType: {
11
+ readonly OneTime: "one_time";
12
+ };
13
+ /**
14
+ * The type of the price.
15
+ */
16
+ export type ProductPriceOneTimeCustomType = ClosedEnum<typeof ProductPriceOneTimeCustomType>;
17
+ /**
18
+ * A pay-what-you-want price for a one-time product.
19
+ */
20
+ export type ProductPriceOneTimeCustom = {
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?: "custom" | 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 minimum amount the customer can pay.
44
+ */
45
+ minimumAmount: number | null;
46
+ /**
47
+ * The maximum amount the customer can pay.
48
+ */
49
+ maximumAmount: number | null;
50
+ /**
51
+ * The initial amount shown to the customer.
52
+ */
53
+ presetAmount: number | null;
54
+ /**
55
+ * The type of the price.
56
+ */
57
+ type?: "one_time" | undefined;
58
+ };
59
+ /** @internal */
60
+ export declare const ProductPriceOneTimeCustomAmountType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
61
+ /** @internal */
62
+ export declare const ProductPriceOneTimeCustomAmountType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomAmountType>;
63
+ /**
64
+ * @internal
65
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
66
+ */
67
+ export declare namespace ProductPriceOneTimeCustomAmountType$ {
68
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$inboundSchema` instead. */
69
+ const inboundSchema: z.ZodNativeEnum<{
70
+ readonly Custom: "custom";
71
+ }>;
72
+ /** @deprecated use `ProductPriceOneTimeCustomAmountType$outboundSchema` instead. */
73
+ const outboundSchema: z.ZodNativeEnum<{
74
+ readonly Custom: "custom";
75
+ }>;
76
+ }
77
+ /** @internal */
78
+ export declare const ProductPriceOneTimeCustomType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
79
+ /** @internal */
80
+ export declare const ProductPriceOneTimeCustomType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCustomType>;
81
+ /**
82
+ * @internal
83
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
84
+ */
85
+ export declare namespace ProductPriceOneTimeCustomType$ {
86
+ /** @deprecated use `ProductPriceOneTimeCustomType$inboundSchema` instead. */
87
+ const inboundSchema: z.ZodNativeEnum<{
88
+ readonly OneTime: "one_time";
89
+ }>;
90
+ /** @deprecated use `ProductPriceOneTimeCustomType$outboundSchema` instead. */
91
+ const outboundSchema: z.ZodNativeEnum<{
92
+ readonly OneTime: "one_time";
93
+ }>;
94
+ }
95
+ /** @internal */
96
+ export declare const ProductPriceOneTimeCustom$inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
97
+ /** @internal */
98
+ export type ProductPriceOneTimeCustom$Outbound = {
99
+ created_at: string;
100
+ modified_at: string | null;
101
+ id: string;
102
+ amount_type: "custom";
103
+ price_currency: string;
104
+ is_archived: boolean;
105
+ minimum_amount: number | null;
106
+ maximum_amount: number | null;
107
+ preset_amount: number | null;
108
+ type: "one_time";
109
+ };
110
+ /** @internal */
111
+ export declare const ProductPriceOneTimeCustom$outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
112
+ /**
113
+ * @internal
114
+ * @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
115
+ */
116
+ export declare namespace ProductPriceOneTimeCustom$ {
117
+ /** @deprecated use `ProductPriceOneTimeCustom$inboundSchema` instead. */
118
+ const inboundSchema: z.ZodType<ProductPriceOneTimeCustom, z.ZodTypeDef, unknown>;
119
+ /** @deprecated use `ProductPriceOneTimeCustom$outboundSchema` instead. */
120
+ const outboundSchema: z.ZodType<ProductPriceOneTimeCustom$Outbound, z.ZodTypeDef, ProductPriceOneTimeCustom>;
121
+ /** @deprecated use `ProductPriceOneTimeCustom$Outbound` instead. */
122
+ type Outbound = ProductPriceOneTimeCustom$Outbound;
123
+ }
124
+ //# sourceMappingURL=productpriceonetimecustom.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"productpriceonetimecustom.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecustom.ts"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
@@ -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;AAKX;;GAEG;AACU,QAAA,6BAA6B,GAAG;IAC3C,OAAO,EAAE,UAAU;CACX,CAAC;AAmDX,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,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAA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O,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,UAAU,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,aAAa,EAAE,gBAAgB;QAC/B,aAAa,EAAE,gBAAgB;QAC/B,YAAY,EAAE,eAAe;KAC9B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,0BAA0B,CAO1C;AAPD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AAGzE,CAAC,EAPgB,0BAA0B,0CAA1B,0BAA0B,QAO1C"}
@@ -0,0 +1,71 @@
1
+ import * as z from "zod";
2
+ import { ClosedEnum } from "../../types/enums.js";
3
+ export declare const ProductPriceOneTimeCustomCreateType: {
4
+ readonly OneTime: "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,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC1C;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iDAAiD,EAAE,CAAC,CAAC,aAAa,CAC7E,OAAO,mCAAmC,CACS,CAAC;AAEtD,gBAAgB;AAChB,eAAO,MAAM,kDAAkD,EAC7D,CAAC,CAAC,aAAa,CAAC,OAAO,mCAAmC,CACP,CAAC;AAEtD;;;GAGG;AACH,yBAAiB,oCAAoC,CAAC;IACpD,mFAAmF;IAC5E,MAAM,aAAa;;MACyB,CAAC;IACpD,oFAAoF;IAC7E,MAAM,cAAc;;MACyB,CAAC;CACtD;AAED,gBAAgB;AAChB,eAAO,MAAM,6CAA6C,EAAE,CAAC,CAAC,OAAO,CACnE,+BAA+B,EAC/B,CAAC,CAAC,UAAU,EACZ,OAAO,CAcP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,wCAAwC,GAAG;IACrD,IAAI,EAAE,UAAU,CAAC;IACjB,cAAc,EAAE,MAAM,CAAC;IACvB,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,cAAc,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C,aAAa,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,8CAA8C,EAAE,CAAC,CAAC,OAAO,CACpE,wCAAwC,EACxC,CAAC,CAAC,UAAU,EACZ,+BAA+B,CAc/B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,gCAAgC,CAAC;IAChD,+EAA+E;IACxE,MAAM,aAAa,mEAAgD,CAAC;IAC3E,gFAAgF;IACzE,MAAM,cAAc,oGAAiD,CAAC;IAC7E,0EAA0E;IAC1E,KAAY,QAAQ,GAAG,wCAAwC,CAAC;CACjE"}
@@ -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,CAAC;IACX,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,UAAU,CAAC,CAAC,QAAQ,EAAE;IACtC,cAAc,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,OAAO,CAAC,KAAK,CAAC;IACzC,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,cAAc,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;IACvD,aAAa,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC,CAAC,QAAQ,EAAE;CACvD,CAAC,CAAC,SAAS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}
@@ -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,4BAA4B,CACpC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,wBAAwB,GAAG;IACrC;;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,OAAO,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,aAAa,EAAE,MAAM,CAAC;IACtB;;OAEG;IACH,UAAU,EAAE,OAAO,CAAC;IACpB;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;CAC/B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gDAAgD,EAAE,CAAC,CAAC,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