@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.
- package/README.md +7 -6
- package/docs/sdks/products/README.md +2 -2
- package/funcs/advertisementsList.js +2 -2
- package/funcs/advertisementsList.js.map +1 -1
- package/funcs/articlesList.js +2 -2
- package/funcs/articlesList.js.map +1 -1
- package/funcs/benefitsGrants.js +2 -2
- package/funcs/benefitsGrants.js.map +1 -1
- package/funcs/benefitsList.js +2 -2
- package/funcs/benefitsList.js.map +1 -1
- package/funcs/externalOrganizationsList.js +2 -2
- package/funcs/externalOrganizationsList.js.map +1 -1
- package/funcs/filesList.js +2 -2
- package/funcs/filesList.js.map +1 -1
- package/funcs/licenseKeysList.js +2 -2
- package/funcs/licenseKeysList.js.map +1 -1
- package/funcs/oauth2ClientsList.js +2 -2
- package/funcs/oauth2ClientsList.js.map +1 -1
- package/funcs/ordersList.js +2 -2
- package/funcs/ordersList.js.map +1 -1
- package/funcs/organizationsList.js +2 -2
- package/funcs/organizationsList.js.map +1 -1
- package/funcs/productsList.js +2 -2
- package/funcs/productsList.js.map +1 -1
- package/funcs/repositoriesList.js +2 -2
- package/funcs/repositoriesList.js.map +1 -1
- package/funcs/subscriptionsList.js +2 -2
- package/funcs/subscriptionsList.js.map +1 -1
- package/funcs/usersAdvertisementsList.js +2 -2
- package/funcs/usersAdvertisementsList.js.map +1 -1
- package/funcs/usersBenefitsList.js +2 -2
- package/funcs/usersBenefitsList.js.map +1 -1
- package/funcs/usersDownloadablesList.js +2 -2
- package/funcs/usersDownloadablesList.js.map +1 -1
- package/funcs/usersLicenseKeysList.js +2 -2
- package/funcs/usersLicenseKeysList.js.map +1 -1
- package/funcs/usersOrdersList.js +2 -2
- package/funcs/usersOrdersList.js.map +1 -1
- package/funcs/usersSubscriptionsList.js +2 -2
- package/funcs/usersSubscriptionsList.js.map +1 -1
- package/lib/config.d.ts +16 -5
- package/lib/config.d.ts.map +1 -1
- package/lib/config.js +18 -12
- package/lib/config.js.map +1 -1
- package/models/components/bodysubscriptionsimport.d.ts +2 -2
- package/models/components/bodysubscriptionsimport.d.ts.map +1 -1
- package/models/components/bodysubscriptionsimport.js +2 -0
- package/models/components/bodysubscriptionsimport.js.map +1 -1
- package/models/components/index.d.ts +9 -3
- package/models/components/index.d.ts.map +1 -1
- package/models/components/index.js +9 -3
- package/models/components/index.js.map +1 -1
- package/models/components/ordersubscription.d.ts +7 -0
- package/models/components/ordersubscription.d.ts.map +1 -1
- package/models/components/ordersubscription.js +9 -0
- package/models/components/ordersubscription.js.map +1 -1
- package/models/components/organizationfeaturesettings.d.ts +0 -5
- package/models/components/organizationfeaturesettings.d.ts.map +1 -1
- package/models/components/organizationfeaturesettings.js +0 -4
- package/models/components/organizationfeaturesettings.js.map +1 -1
- package/models/components/organizationprofilesettings.d.ts +10 -0
- package/models/components/organizationprofilesettings.d.ts.map +1 -1
- package/models/components/organizationprofilesettings.js +6 -0
- package/models/components/organizationprofilesettings.js.map +1 -1
- package/models/components/productonetimecreate.d.ts +23 -3
- package/models/components/productonetimecreate.d.ts.map +1 -1
- package/models/components/productonetimecreate.js +33 -4
- package/models/components/productonetimecreate.js.map +1 -1
- package/models/components/productpriceinput.d.ts +3 -11
- package/models/components/productpriceinput.d.ts.map +1 -1
- package/models/components/productpriceinput.js +5 -13
- package/models/components/productpriceinput.js.map +1 -1
- package/models/components/productpriceonetime.d.ts +4 -71
- package/models/components/productpriceonetime.d.ts.map +1 -1
- package/models/components/productpriceonetime.js +11 -57
- package/models/components/productpriceonetime.js.map +1 -1
- package/models/components/productpriceonetimecustom.d.ts +124 -0
- package/models/components/productpriceonetimecustom.d.ts.map +1 -0
- package/models/components/productpriceonetimecustom.js +130 -0
- package/models/components/productpriceonetimecustom.js.map +1 -0
- package/models/components/productpriceonetimecustomcreate.d.ts +71 -0
- package/models/components/productpriceonetimecustomcreate.d.ts.map +1 -0
- package/models/components/productpriceonetimecustomcreate.js +91 -0
- package/models/components/productpriceonetimecustomcreate.js.map +1 -0
- package/models/components/productpriceonetimefixed.d.ts +114 -0
- package/models/components/productpriceonetimefixed.d.ts.map +1 -0
- package/models/components/productpriceonetimefixed.js +122 -0
- package/models/components/productpriceonetimefixed.js.map +1 -0
- package/models/components/productpriceonetimefixedcreate.d.ts +61 -0
- package/models/components/productpriceonetimefixedcreate.d.ts.map +1 -0
- package/models/components/{productpriceonetimecreate.js → productpriceonetimefixedcreate.js} +25 -25
- package/models/components/productpriceonetimefixedcreate.js.map +1 -0
- package/models/components/productpriceoutput.d.ts +3 -11
- package/models/components/productpriceoutput.d.ts.map +1 -1
- package/models/components/productpriceoutput.js +5 -13
- package/models/components/productpriceoutput.js.map +1 -1
- package/models/components/productpricerecurringcreate.d.ts +7 -7
- package/models/components/productpricerecurringcreate.d.ts.map +1 -1
- package/models/components/productpricerecurringcreate.js +9 -9
- package/models/components/productpricerecurringcreate.js.map +1 -1
- package/models/components/productpricerecurringcustom.d.ts +130 -0
- package/models/components/productpricerecurringcustom.d.ts.map +1 -0
- package/models/components/productpricerecurringcustom.js +135 -0
- package/models/components/productpricerecurringcustom.js.map +1 -0
- package/models/components/productpricerecurringfixed.d.ts +120 -0
- package/models/components/productpricerecurringfixed.d.ts.map +1 -0
- package/models/components/productpricerecurringfixed.js +128 -0
- package/models/components/productpricerecurringfixed.js.map +1 -0
- package/models/components/productpricerecurringinput.d.ts +31 -0
- package/models/components/productpricerecurringinput.d.ts.map +1 -0
- package/models/components/productpricerecurringinput.js +62 -0
- package/models/components/productpricerecurringinput.js.map +1 -0
- package/models/components/productpricerecurringoutput.d.ts +31 -0
- package/models/components/productpricerecurringoutput.d.ts.map +1 -0
- package/models/components/productpricerecurringoutput.js +62 -0
- package/models/components/productpricerecurringoutput.js.map +1 -0
- package/models/components/productupdate.d.ts +15 -14
- package/models/components/productupdate.d.ts.map +1 -1
- package/models/components/productupdate.js +20 -16
- package/models/components/productupdate.js.map +1 -1
- package/models/components/subscriptioninput.d.ts +7 -0
- package/models/components/subscriptioninput.d.ts.map +1 -1
- package/models/components/subscriptioninput.js +9 -0
- package/models/components/subscriptioninput.js.map +1 -1
- package/models/components/subscriptionoutput.d.ts +7 -0
- package/models/components/subscriptionoutput.d.ts.map +1 -1
- package/models/components/subscriptionoutput.js +9 -0
- package/models/components/subscriptionoutput.js.map +1 -1
- package/models/components/subscriptionrecurringinterval.d.ts +28 -0
- package/models/components/{productpricerecurringinterval.d.ts.map → subscriptionrecurringinterval.d.ts.map} +1 -1
- package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js} +12 -12
- package/models/components/{productpricerecurringinterval.js.map → subscriptionrecurringinterval.js.map} +1 -1
- package/models/components/subscriptionsortproperty.d.ts +6 -6
- package/models/components/subscriptionsortproperty.js +2 -2
- package/models/components/subscriptionsortproperty.js.map +1 -1
- package/models/components/userordersubscription.d.ts +7 -0
- package/models/components/userordersubscription.d.ts.map +1 -1
- package/models/components/userordersubscription.js +9 -0
- package/models/components/userordersubscription.js.map +1 -1
- package/models/components/usersubscription.d.ts +10 -0
- package/models/components/usersubscription.d.ts.map +1 -1
- package/models/components/usersubscription.js +9 -0
- package/models/components/usersubscription.js.map +1 -1
- package/models/components/usersubscriptionsortproperty.d.ts +6 -6
- package/models/components/usersubscriptionsortproperty.js +2 -2
- package/models/components/usersubscriptionsortproperty.js.map +1 -1
- package/package.json +1 -1
- package/src/funcs/advertisementsList.ts +2 -2
- package/src/funcs/articlesList.ts +2 -2
- package/src/funcs/benefitsGrants.ts +2 -2
- package/src/funcs/benefitsList.ts +2 -2
- package/src/funcs/externalOrganizationsList.ts +2 -2
- package/src/funcs/filesList.ts +2 -2
- package/src/funcs/licenseKeysList.ts +2 -2
- package/src/funcs/oauth2ClientsList.ts +2 -2
- package/src/funcs/ordersList.ts +2 -2
- package/src/funcs/organizationsList.ts +2 -2
- package/src/funcs/productsList.ts +2 -2
- package/src/funcs/repositoriesList.ts +2 -2
- package/src/funcs/subscriptionsList.ts +2 -2
- package/src/funcs/usersAdvertisementsList.ts +2 -2
- package/src/funcs/usersBenefitsList.ts +2 -2
- package/src/funcs/usersDownloadablesList.ts +2 -2
- package/src/funcs/usersLicenseKeysList.ts +2 -2
- package/src/funcs/usersOrdersList.ts +2 -2
- package/src/funcs/usersSubscriptionsList.ts +2 -2
- package/src/lib/config.ts +18 -12
- package/src/models/components/bodysubscriptionsimport.ts +4 -2
- package/src/models/components/index.ts +9 -3
- package/src/models/components/ordersubscription.ts +19 -0
- package/src/models/components/organizationfeaturesettings.ts +0 -9
- package/src/models/components/organizationprofilesettings.ts +16 -0
- package/src/models/components/productonetimecreate.ts +69 -9
- package/src/models/components/productpriceinput.ts +13 -29
- package/src/models/components/productpriceonetime.ts +27 -115
- package/src/models/components/productpriceonetimecustom.ts +201 -0
- package/src/models/components/productpriceonetimecustomcreate.ts +122 -0
- package/src/models/components/productpriceonetimefixed.ts +182 -0
- package/src/models/components/productpriceonetimefixedcreate.ts +103 -0
- package/src/models/components/productpriceoutput.ts +13 -29
- package/src/models/components/productpricerecurringcreate.ts +18 -18
- package/src/models/components/productpricerecurringcustom.ts +216 -0
- package/src/models/components/productpricerecurringfixed.ts +191 -0
- package/src/models/components/productpricerecurringinput.ts +75 -0
- package/src/models/components/productpricerecurringoutput.ts +75 -0
- package/src/models/components/productupdate.ts +49 -32
- package/src/models/components/subscriptioninput.ts +19 -0
- package/src/models/components/subscriptionoutput.ts +19 -0
- package/src/models/components/subscriptionrecurringinterval.ts +35 -0
- package/src/models/components/subscriptionsortproperty.ts +2 -2
- package/src/models/components/userordersubscription.ts +19 -0
- package/src/models/components/usersubscription.ts +22 -0
- package/src/models/components/usersubscriptionsortproperty.ts +2 -2
- package/models/components/productpriceonetimecreate.d.ts +0 -61
- package/models/components/productpriceonetimecreate.d.ts.map +0 -1
- package/models/components/productpriceonetimecreate.js.map +0 -1
- package/models/components/productpricerecurring.d.ts +0 -96
- package/models/components/productpricerecurring.d.ts.map +0 -1
- package/models/components/productpricerecurring.js +0 -105
- package/models/components/productpricerecurring.js.map +0 -1
- package/models/components/productpricerecurringinterval.d.ts +0 -28
- package/src/models/components/productpriceonetimecreate.ts +0 -102
- package/src/models/components/productpricerecurring.ts +0 -161
- package/src/models/components/productpricerecurringinterval.ts +0 -35
|
@@ -0,0 +1,135 @@
|
|
|
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.ProductPriceRecurringCustom$ = exports.ProductPriceRecurringCustom$outboundSchema = exports.ProductPriceRecurringCustom$inboundSchema = exports.ProductPriceRecurringCustomType$ = exports.ProductPriceRecurringCustomType$outboundSchema = exports.ProductPriceRecurringCustomType$inboundSchema = exports.ProductPriceRecurringCustomAmountType$ = exports.ProductPriceRecurringCustomAmountType$outboundSchema = exports.ProductPriceRecurringCustomAmountType$inboundSchema = exports.ProductPriceRecurringCustomType = exports.ProductPriceRecurringCustomAmountType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
33
|
+
exports.ProductPriceRecurringCustomAmountType = {
|
|
34
|
+
Custom: "custom",
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The type of the price.
|
|
38
|
+
*/
|
|
39
|
+
exports.ProductPriceRecurringCustomType = {
|
|
40
|
+
Recurring: "recurring",
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.ProductPriceRecurringCustomAmountType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringCustomAmountType);
|
|
44
|
+
/** @internal */
|
|
45
|
+
exports.ProductPriceRecurringCustomAmountType$outboundSchema = exports.ProductPriceRecurringCustomAmountType$inboundSchema;
|
|
46
|
+
/**
|
|
47
|
+
* @internal
|
|
48
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
49
|
+
*/
|
|
50
|
+
var ProductPriceRecurringCustomAmountType$;
|
|
51
|
+
(function (ProductPriceRecurringCustomAmountType$) {
|
|
52
|
+
/** @deprecated use `ProductPriceRecurringCustomAmountType$inboundSchema` instead. */
|
|
53
|
+
ProductPriceRecurringCustomAmountType$.inboundSchema = exports.ProductPriceRecurringCustomAmountType$inboundSchema;
|
|
54
|
+
/** @deprecated use `ProductPriceRecurringCustomAmountType$outboundSchema` instead. */
|
|
55
|
+
ProductPriceRecurringCustomAmountType$.outboundSchema = exports.ProductPriceRecurringCustomAmountType$outboundSchema;
|
|
56
|
+
})(ProductPriceRecurringCustomAmountType$ || (exports.ProductPriceRecurringCustomAmountType$ = ProductPriceRecurringCustomAmountType$ = {}));
|
|
57
|
+
/** @internal */
|
|
58
|
+
exports.ProductPriceRecurringCustomType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringCustomType);
|
|
59
|
+
/** @internal */
|
|
60
|
+
exports.ProductPriceRecurringCustomType$outboundSchema = exports.ProductPriceRecurringCustomType$inboundSchema;
|
|
61
|
+
/**
|
|
62
|
+
* @internal
|
|
63
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
64
|
+
*/
|
|
65
|
+
var ProductPriceRecurringCustomType$;
|
|
66
|
+
(function (ProductPriceRecurringCustomType$) {
|
|
67
|
+
/** @deprecated use `ProductPriceRecurringCustomType$inboundSchema` instead. */
|
|
68
|
+
ProductPriceRecurringCustomType$.inboundSchema = exports.ProductPriceRecurringCustomType$inboundSchema;
|
|
69
|
+
/** @deprecated use `ProductPriceRecurringCustomType$outboundSchema` instead. */
|
|
70
|
+
ProductPriceRecurringCustomType$.outboundSchema = exports.ProductPriceRecurringCustomType$outboundSchema;
|
|
71
|
+
})(ProductPriceRecurringCustomType$ || (exports.ProductPriceRecurringCustomType$ = ProductPriceRecurringCustomType$ = {}));
|
|
72
|
+
/** @internal */
|
|
73
|
+
exports.ProductPriceRecurringCustom$inboundSchema = z.object({
|
|
74
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
75
|
+
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
76
|
+
id: z.string(),
|
|
77
|
+
amount_type: z.literal("custom").optional(),
|
|
78
|
+
price_currency: z.string(),
|
|
79
|
+
is_archived: z.boolean(),
|
|
80
|
+
minimum_amount: z.nullable(z.number().int()),
|
|
81
|
+
maximum_amount: z.nullable(z.number().int()),
|
|
82
|
+
preset_amount: z.nullable(z.number().int()),
|
|
83
|
+
type: z.literal("recurring").optional(),
|
|
84
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
85
|
+
}).transform((v) => {
|
|
86
|
+
return (0, primitives_js_1.remap)(v, {
|
|
87
|
+
"created_at": "createdAt",
|
|
88
|
+
"modified_at": "modifiedAt",
|
|
89
|
+
"amount_type": "amountType",
|
|
90
|
+
"price_currency": "priceCurrency",
|
|
91
|
+
"is_archived": "isArchived",
|
|
92
|
+
"minimum_amount": "minimumAmount",
|
|
93
|
+
"maximum_amount": "maximumAmount",
|
|
94
|
+
"preset_amount": "presetAmount",
|
|
95
|
+
"recurring_interval": "recurringInterval",
|
|
96
|
+
});
|
|
97
|
+
});
|
|
98
|
+
/** @internal */
|
|
99
|
+
exports.ProductPriceRecurringCustom$outboundSchema = z.object({
|
|
100
|
+
createdAt: z.date().transform(v => v.toISOString()),
|
|
101
|
+
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
102
|
+
id: z.string(),
|
|
103
|
+
amountType: z.literal("custom").default("custom"),
|
|
104
|
+
priceCurrency: z.string(),
|
|
105
|
+
isArchived: z.boolean(),
|
|
106
|
+
minimumAmount: z.nullable(z.number().int()),
|
|
107
|
+
maximumAmount: z.nullable(z.number().int()),
|
|
108
|
+
presetAmount: z.nullable(z.number().int()),
|
|
109
|
+
type: z.literal("recurring").default("recurring"),
|
|
110
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
111
|
+
}).transform((v) => {
|
|
112
|
+
return (0, primitives_js_1.remap)(v, {
|
|
113
|
+
createdAt: "created_at",
|
|
114
|
+
modifiedAt: "modified_at",
|
|
115
|
+
amountType: "amount_type",
|
|
116
|
+
priceCurrency: "price_currency",
|
|
117
|
+
isArchived: "is_archived",
|
|
118
|
+
minimumAmount: "minimum_amount",
|
|
119
|
+
maximumAmount: "maximum_amount",
|
|
120
|
+
presetAmount: "preset_amount",
|
|
121
|
+
recurringInterval: "recurring_interval",
|
|
122
|
+
});
|
|
123
|
+
});
|
|
124
|
+
/**
|
|
125
|
+
* @internal
|
|
126
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
127
|
+
*/
|
|
128
|
+
var ProductPriceRecurringCustom$;
|
|
129
|
+
(function (ProductPriceRecurringCustom$) {
|
|
130
|
+
/** @deprecated use `ProductPriceRecurringCustom$inboundSchema` instead. */
|
|
131
|
+
ProductPriceRecurringCustom$.inboundSchema = exports.ProductPriceRecurringCustom$inboundSchema;
|
|
132
|
+
/** @deprecated use `ProductPriceRecurringCustom$outboundSchema` instead. */
|
|
133
|
+
ProductPriceRecurringCustom$.outboundSchema = exports.ProductPriceRecurringCustom$outboundSchema;
|
|
134
|
+
})(ProductPriceRecurringCustom$ || (exports.ProductPriceRecurringCustom$ = ProductPriceRecurringCustom$ = {}));
|
|
135
|
+
//# sourceMappingURL=productpricerecurringcustom.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringcustom.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringcustom.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,qCAAqC,GAAG;IACnD,MAAM,EAAE,QAAQ;CACR,CAAC;AAKX;;GAEG;AACU,QAAA,+BAA+B,GAAG;IAC7C,SAAS,EAAE,WAAW;CACd,CAAC;AAuDX,gBAAgB;AACH,QAAA,mDAAmD,GACE,CAAC,CAAC,UAAU,CAC1E,6CAAqC,CACtC,CAAC;AAEJ,gBAAgB;AACH,QAAA,oDAAoD,GAE7D,2DAAmD,CAAC;AAExD;;;GAGG;AACH,IAAiB,sCAAsC,CAOtD;AAPD,WAAiB,sCAAsC;IACrD,qFAAqF;IACxE,oDAAa,GACxB,2DAAmD,CAAC;IACtD,sFAAsF;IACzE,qDAAc,GACzB,4DAAoD,CAAC;AACzD,CAAC,EAPgB,s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C,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IAC3C,YAAY,EAAE,CAAC,CAAC,QAAQ,CAAC,CAAC,CAAC,MAAM,EAAE,CAAC,GAAG,EAAE,CAAC;IAC1C,IAAI,EAAE,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,iBAAiB,EAAE,+EAA4C;CAChE,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;QAC7B,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,120 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
4
|
+
export declare const AmountType: {
|
|
5
|
+
readonly Fixed: "fixed";
|
|
6
|
+
};
|
|
7
|
+
export type AmountType = ClosedEnum<typeof AmountType>;
|
|
8
|
+
/**
|
|
9
|
+
* The type of the price.
|
|
10
|
+
*/
|
|
11
|
+
export declare const ProductPriceRecurringFixedType: {
|
|
12
|
+
readonly Recurring: "recurring";
|
|
13
|
+
};
|
|
14
|
+
/**
|
|
15
|
+
* The type of the price.
|
|
16
|
+
*/
|
|
17
|
+
export type ProductPriceRecurringFixedType = ClosedEnum<typeof ProductPriceRecurringFixedType>;
|
|
18
|
+
/**
|
|
19
|
+
* A recurring price for a product, i.e. a subscription.
|
|
20
|
+
*/
|
|
21
|
+
export type ProductPriceRecurringFixed = {
|
|
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?: "fixed" | 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 price in cents.
|
|
45
|
+
*/
|
|
46
|
+
priceAmount: number;
|
|
47
|
+
/**
|
|
48
|
+
* The type of the price.
|
|
49
|
+
*/
|
|
50
|
+
type?: "recurring" | undefined;
|
|
51
|
+
/**
|
|
52
|
+
* The recurring interval of the price.
|
|
53
|
+
*/
|
|
54
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
55
|
+
};
|
|
56
|
+
/** @internal */
|
|
57
|
+
export declare const AmountType$inboundSchema: z.ZodNativeEnum<typeof AmountType>;
|
|
58
|
+
/** @internal */
|
|
59
|
+
export declare const AmountType$outboundSchema: z.ZodNativeEnum<typeof AmountType>;
|
|
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
|
+
export declare namespace AmountType$ {
|
|
65
|
+
/** @deprecated use `AmountType$inboundSchema` instead. */
|
|
66
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
67
|
+
readonly Fixed: "fixed";
|
|
68
|
+
}>;
|
|
69
|
+
/** @deprecated use `AmountType$outboundSchema` instead. */
|
|
70
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
71
|
+
readonly Fixed: "fixed";
|
|
72
|
+
}>;
|
|
73
|
+
}
|
|
74
|
+
/** @internal */
|
|
75
|
+
export declare const ProductPriceRecurringFixedType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFixedType>;
|
|
76
|
+
/** @internal */
|
|
77
|
+
export declare const ProductPriceRecurringFixedType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringFixedType>;
|
|
78
|
+
/**
|
|
79
|
+
* @internal
|
|
80
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
81
|
+
*/
|
|
82
|
+
export declare namespace ProductPriceRecurringFixedType$ {
|
|
83
|
+
/** @deprecated use `ProductPriceRecurringFixedType$inboundSchema` instead. */
|
|
84
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
85
|
+
readonly Recurring: "recurring";
|
|
86
|
+
}>;
|
|
87
|
+
/** @deprecated use `ProductPriceRecurringFixedType$outboundSchema` instead. */
|
|
88
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
89
|
+
readonly Recurring: "recurring";
|
|
90
|
+
}>;
|
|
91
|
+
}
|
|
92
|
+
/** @internal */
|
|
93
|
+
export declare const ProductPriceRecurringFixed$inboundSchema: z.ZodType<ProductPriceRecurringFixed, z.ZodTypeDef, unknown>;
|
|
94
|
+
/** @internal */
|
|
95
|
+
export type ProductPriceRecurringFixed$Outbound = {
|
|
96
|
+
created_at: string;
|
|
97
|
+
modified_at: string | null;
|
|
98
|
+
id: string;
|
|
99
|
+
amount_type: "fixed";
|
|
100
|
+
price_currency: string;
|
|
101
|
+
is_archived: boolean;
|
|
102
|
+
price_amount: number;
|
|
103
|
+
type: "recurring";
|
|
104
|
+
recurring_interval: string;
|
|
105
|
+
};
|
|
106
|
+
/** @internal */
|
|
107
|
+
export declare const ProductPriceRecurringFixed$outboundSchema: z.ZodType<ProductPriceRecurringFixed$Outbound, z.ZodTypeDef, ProductPriceRecurringFixed>;
|
|
108
|
+
/**
|
|
109
|
+
* @internal
|
|
110
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
111
|
+
*/
|
|
112
|
+
export declare namespace ProductPriceRecurringFixed$ {
|
|
113
|
+
/** @deprecated use `ProductPriceRecurringFixed$inboundSchema` instead. */
|
|
114
|
+
const inboundSchema: z.ZodType<ProductPriceRecurringFixed, z.ZodTypeDef, unknown>;
|
|
115
|
+
/** @deprecated use `ProductPriceRecurringFixed$outboundSchema` instead. */
|
|
116
|
+
const outboundSchema: z.ZodType<ProductPriceRecurringFixed$Outbound, z.ZodTypeDef, ProductPriceRecurringFixed>;
|
|
117
|
+
/** @deprecated use `ProductPriceRecurringFixed$Outbound` instead. */
|
|
118
|
+
type Outbound = ProductPriceRecurringFixed$Outbound;
|
|
119
|
+
}
|
|
120
|
+
//# sourceMappingURL=productpricerecurringfixed.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringfixed.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfixed.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,UAAU;;CAEb,CAAC;AACX,MAAM,MAAM,UAAU,GAAG,UAAU,CAAC,OAAO,UAAU,CAAC,CAAC;AAEvD;;GAEG;AACH,eAAO,MAAM,8BAA8B;;CAEjC,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,8BAA8B,GAAG,UAAU,CACrD,OAAO,8BAA8B,CACtC,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A0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAuBP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAAG;IAChD,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,WAAW,EAAE,OAAO,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;IACvB,WAAW,EAAE,OAAO,CAAC;IACrB,YAAY,EAAE,MAAM,CAAC;IACrB,IAAI,EAAE,WAAW,CAAC;IAClB,kBAAkB,EAAE,MAAM,CAAC;CAC5B,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAqB1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
|
|
@@ -0,0 +1,128 @@
|
|
|
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.ProductPriceRecurringFixed$ = exports.ProductPriceRecurringFixed$outboundSchema = exports.ProductPriceRecurringFixed$inboundSchema = exports.ProductPriceRecurringFixedType$ = exports.ProductPriceRecurringFixedType$outboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema = exports.AmountType$ = exports.AmountType$outboundSchema = exports.AmountType$inboundSchema = exports.ProductPriceRecurringFixedType = exports.AmountType = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
33
|
+
exports.AmountType = {
|
|
34
|
+
Fixed: "fixed",
|
|
35
|
+
};
|
|
36
|
+
/**
|
|
37
|
+
* The type of the price.
|
|
38
|
+
*/
|
|
39
|
+
exports.ProductPriceRecurringFixedType = {
|
|
40
|
+
Recurring: "recurring",
|
|
41
|
+
};
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.AmountType$inboundSchema = z
|
|
44
|
+
.nativeEnum(exports.AmountType);
|
|
45
|
+
/** @internal */
|
|
46
|
+
exports.AmountType$outboundSchema = exports.AmountType$inboundSchema;
|
|
47
|
+
/**
|
|
48
|
+
* @internal
|
|
49
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
50
|
+
*/
|
|
51
|
+
var AmountType$;
|
|
52
|
+
(function (AmountType$) {
|
|
53
|
+
/** @deprecated use `AmountType$inboundSchema` instead. */
|
|
54
|
+
AmountType$.inboundSchema = exports.AmountType$inboundSchema;
|
|
55
|
+
/** @deprecated use `AmountType$outboundSchema` instead. */
|
|
56
|
+
AmountType$.outboundSchema = exports.AmountType$outboundSchema;
|
|
57
|
+
})(AmountType$ || (exports.AmountType$ = AmountType$ = {}));
|
|
58
|
+
/** @internal */
|
|
59
|
+
exports.ProductPriceRecurringFixedType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringFixedType);
|
|
60
|
+
/** @internal */
|
|
61
|
+
exports.ProductPriceRecurringFixedType$outboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema;
|
|
62
|
+
/**
|
|
63
|
+
* @internal
|
|
64
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
65
|
+
*/
|
|
66
|
+
var ProductPriceRecurringFixedType$;
|
|
67
|
+
(function (ProductPriceRecurringFixedType$) {
|
|
68
|
+
/** @deprecated use `ProductPriceRecurringFixedType$inboundSchema` instead. */
|
|
69
|
+
ProductPriceRecurringFixedType$.inboundSchema = exports.ProductPriceRecurringFixedType$inboundSchema;
|
|
70
|
+
/** @deprecated use `ProductPriceRecurringFixedType$outboundSchema` instead. */
|
|
71
|
+
ProductPriceRecurringFixedType$.outboundSchema = exports.ProductPriceRecurringFixedType$outboundSchema;
|
|
72
|
+
})(ProductPriceRecurringFixedType$ || (exports.ProductPriceRecurringFixedType$ = ProductPriceRecurringFixedType$ = {}));
|
|
73
|
+
/** @internal */
|
|
74
|
+
exports.ProductPriceRecurringFixed$inboundSchema = z.object({
|
|
75
|
+
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
76
|
+
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
77
|
+
id: z.string(),
|
|
78
|
+
amount_type: z.literal("fixed").optional(),
|
|
79
|
+
price_currency: z.string(),
|
|
80
|
+
is_archived: z.boolean(),
|
|
81
|
+
price_amount: z.number().int(),
|
|
82
|
+
type: z.literal("recurring").optional(),
|
|
83
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
84
|
+
}).transform((v) => {
|
|
85
|
+
return (0, primitives_js_1.remap)(v, {
|
|
86
|
+
"created_at": "createdAt",
|
|
87
|
+
"modified_at": "modifiedAt",
|
|
88
|
+
"amount_type": "amountType",
|
|
89
|
+
"price_currency": "priceCurrency",
|
|
90
|
+
"is_archived": "isArchived",
|
|
91
|
+
"price_amount": "priceAmount",
|
|
92
|
+
"recurring_interval": "recurringInterval",
|
|
93
|
+
});
|
|
94
|
+
});
|
|
95
|
+
/** @internal */
|
|
96
|
+
exports.ProductPriceRecurringFixed$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("fixed").default("fixed"),
|
|
101
|
+
priceCurrency: z.string(),
|
|
102
|
+
isArchived: z.boolean(),
|
|
103
|
+
priceAmount: z.number().int(),
|
|
104
|
+
type: z.literal("recurring").default("recurring"),
|
|
105
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
106
|
+
}).transform((v) => {
|
|
107
|
+
return (0, primitives_js_1.remap)(v, {
|
|
108
|
+
createdAt: "created_at",
|
|
109
|
+
modifiedAt: "modified_at",
|
|
110
|
+
amountType: "amount_type",
|
|
111
|
+
priceCurrency: "price_currency",
|
|
112
|
+
isArchived: "is_archived",
|
|
113
|
+
priceAmount: "price_amount",
|
|
114
|
+
recurringInterval: "recurring_interval",
|
|
115
|
+
});
|
|
116
|
+
});
|
|
117
|
+
/**
|
|
118
|
+
* @internal
|
|
119
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
120
|
+
*/
|
|
121
|
+
var ProductPriceRecurringFixed$;
|
|
122
|
+
(function (ProductPriceRecurringFixed$) {
|
|
123
|
+
/** @deprecated use `ProductPriceRecurringFixed$inboundSchema` instead. */
|
|
124
|
+
ProductPriceRecurringFixed$.inboundSchema = exports.ProductPriceRecurringFixed$inboundSchema;
|
|
125
|
+
/** @deprecated use `ProductPriceRecurringFixed$outboundSchema` instead. */
|
|
126
|
+
ProductPriceRecurringFixed$.outboundSchema = exports.ProductPriceRecurringFixed$outboundSchema;
|
|
127
|
+
})(ProductPriceRecurringFixed$ || (exports.ProductPriceRecurringFixed$ = ProductPriceRecurringFixed$ = {}));
|
|
128
|
+
//# sourceMappingURL=productpricerecurringfixed.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringfixed.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringfixed.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE/B,QAAA,UAAU,GAAG;IACxB,KAAK,EAAE,OAAO;CACN,CAAC;AAGX;;GAEG;AACU,QAAA,8BAA8B,GAAG;IAC5C,SAAS,EAAE,WAAW;CACd,CAAC;AA+CX,gBAAgB;AACH,QAAA,wBAAwB,GAAuC,CAAC;KAC1E,UAAU,CAAC,kBAAU,CAAC,CAAC;AAE1B,gBAAgB;AACH,QAAA,yBAAyB,GACpC,gCAAwB,CAAC;AAE3B;;;GAGG;AACH,IAAiB,WAAW,CAK3B;AALD,WAAiB,WAAW;IAC1B,0DAA0D;IAC7C,yBAAa,GAAG,gCAAwB,CAAC;IACtD,2DAA2D;IAC9C,0BAAc,GAAG,iCAAyB,CAAC;AAC1D,CAAC,EALgB,WAAW,2BAAX,WAAW,QAK3B;AAED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xC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
|
|
3
|
+
import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
|
|
4
|
+
export type ProductPriceRecurringInput = (ProductPriceRecurringFixed & {
|
|
5
|
+
amountType: "fixed";
|
|
6
|
+
}) | (ProductPriceRecurringCustom & {
|
|
7
|
+
amountType: "custom";
|
|
8
|
+
});
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ProductPriceRecurringInput$inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type ProductPriceRecurringInput$Outbound = (ProductPriceRecurringFixed$Outbound & {
|
|
13
|
+
amount_type: "fixed";
|
|
14
|
+
}) | (ProductPriceRecurringCustom$Outbound & {
|
|
15
|
+
amount_type: "custom";
|
|
16
|
+
});
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const ProductPriceRecurringInput$outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace ProductPriceRecurringInput$ {
|
|
24
|
+
/** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodType<ProductPriceRecurringInput, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
|
|
27
|
+
const outboundSchema: z.ZodType<ProductPriceRecurringInput$Outbound, z.ZodTypeDef, ProductPriceRecurringInput>;
|
|
28
|
+
/** @deprecated use `ProductPriceRecurringInput$Outbound` instead. */
|
|
29
|
+
type Outbound = ProductPriceRecurringInput$Outbound;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=productpricerecurringinput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringinput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,0BAA0B,GAClC,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,OAAO,CAYP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,mCAAmC,GAC3C,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,gBAAgB;AAChB,eAAO,MAAM,yCAAyC,EAAE,CAAC,CAAC,OAAO,CAC/D,mCAAmC,EACnC,CAAC,CAAC,UAAU,EACZ,0BAA0B,CAY1B,CAAC;AAEH;;;GAGG;AACH,yBAAiB,2BAA2B,CAAC;IAC3C,0EAA0E;IACnE,MAAM,aAAa,8DAA2C,CAAC;IACtE,2EAA2E;IACpE,MAAM,cAAc,0FAA4C,CAAC;IACxE,qEAAqE;IACrE,KAAY,QAAQ,GAAG,mCAAmC,CAAC;CAC5D"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ProductPriceRecurringInput$ = exports.ProductPriceRecurringInput$outboundSchema = exports.ProductPriceRecurringInput$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
|
|
32
|
+
const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
|
|
33
|
+
/** @internal */
|
|
34
|
+
exports.ProductPriceRecurringInput$inboundSchema = z.union([
|
|
35
|
+
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
36
|
+
amountType: v.amount_type,
|
|
37
|
+
}))),
|
|
38
|
+
productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
|
|
39
|
+
amountType: v.amount_type,
|
|
40
|
+
}))),
|
|
41
|
+
]);
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.ProductPriceRecurringInput$outboundSchema = z.union([
|
|
44
|
+
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
45
|
+
amount_type: v.amountType,
|
|
46
|
+
}))),
|
|
47
|
+
productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
|
|
48
|
+
amount_type: v.amountType,
|
|
49
|
+
}))),
|
|
50
|
+
]);
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
var ProductPriceRecurringInput$;
|
|
56
|
+
(function (ProductPriceRecurringInput$) {
|
|
57
|
+
/** @deprecated use `ProductPriceRecurringInput$inboundSchema` instead. */
|
|
58
|
+
ProductPriceRecurringInput$.inboundSchema = exports.ProductPriceRecurringInput$inboundSchema;
|
|
59
|
+
/** @deprecated use `ProductPriceRecurringInput$outboundSchema` instead. */
|
|
60
|
+
ProductPriceRecurringInput$.outboundSchema = exports.ProductPriceRecurringInput$outboundSchema;
|
|
61
|
+
})(ProductPriceRecurringInput$ || (exports.ProductPriceRecurringInput$ = ProductPriceRecurringInput$ = {}));
|
|
62
|
+
//# sourceMappingURL=productpricerecurringinput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringinput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringinput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AAMzC,gBAAgB;AACH,QAAA,wCAAwC,GAIjD,CAAC,CAAC,KAAK,CAAC;IACV,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,0EAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAOH,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,yEAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC7D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;IACD,2EAA0C,CAAC,GAAG,CAC5C,CAAC,CAAC,MAAM,CAAC,EAAE,UAAU,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,WAAW,EAAE,CAAC,CAAC,UAAU;KAC1B,CAAC,CAAC,CACJ;CACF,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,2BAA2B,CAO3C;AAPD,WAAiB,2BAA2B;IAC1C,0EAA0E;IAC7D,yCAAa,GAAG,gDAAwC,CAAC;IACtE,2EAA2E;IAC9D,0CAAc,GAAG,iDAAyC,CAAC;AAG1E,CAAC,EAPgB,2BAA2B,2CAA3B,2BAA2B,QAO3C"}
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ProductPriceRecurringCustom, ProductPriceRecurringCustom$Outbound } from "./productpricerecurringcustom.js";
|
|
3
|
+
import { ProductPriceRecurringFixed, ProductPriceRecurringFixed$Outbound } from "./productpricerecurringfixed.js";
|
|
4
|
+
export type ProductPriceRecurringOutput = (ProductPriceRecurringFixed & {
|
|
5
|
+
amountType: "fixed";
|
|
6
|
+
}) | (ProductPriceRecurringCustom & {
|
|
7
|
+
amountType: "custom";
|
|
8
|
+
});
|
|
9
|
+
/** @internal */
|
|
10
|
+
export declare const ProductPriceRecurringOutput$inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
|
|
11
|
+
/** @internal */
|
|
12
|
+
export type ProductPriceRecurringOutput$Outbound = (ProductPriceRecurringFixed$Outbound & {
|
|
13
|
+
amount_type: "fixed";
|
|
14
|
+
}) | (ProductPriceRecurringCustom$Outbound & {
|
|
15
|
+
amount_type: "custom";
|
|
16
|
+
});
|
|
17
|
+
/** @internal */
|
|
18
|
+
export declare const ProductPriceRecurringOutput$outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
|
|
19
|
+
/**
|
|
20
|
+
* @internal
|
|
21
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
22
|
+
*/
|
|
23
|
+
export declare namespace ProductPriceRecurringOutput$ {
|
|
24
|
+
/** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
|
|
25
|
+
const inboundSchema: z.ZodType<ProductPriceRecurringOutput, z.ZodTypeDef, unknown>;
|
|
26
|
+
/** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
|
|
27
|
+
const outboundSchema: z.ZodType<ProductPriceRecurringOutput$Outbound, z.ZodTypeDef, ProductPriceRecurringOutput>;
|
|
28
|
+
/** @deprecated use `ProductPriceRecurringOutput$Outbound` instead. */
|
|
29
|
+
type Outbound = ProductPriceRecurringOutput$Outbound;
|
|
30
|
+
}
|
|
31
|
+
//# sourceMappingURL=productpricerecurringoutput.d.ts.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAC1C,OAAO,EACL,0BAA0B,EAE1B,mCAAmC,EAEpC,MAAM,iCAAiC,CAAC;AAEzC,MAAM,MAAM,2BAA2B,GACnC,CAAC,0BAA0B,GAAG;IAAE,UAAU,EAAE,OAAO,CAAA;CAAE,CAAC,GACtD,CAAC,2BAA2B,GAAG;IAAE,UAAU,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAE7D,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,GAC5C,CAAC,mCAAmC,GAAG;IAAE,WAAW,EAAE,OAAO,CAAA;CAAE,CAAC,GAChE,CAAC,oCAAoC,GAAG;IAAE,WAAW,EAAE,QAAQ,CAAA;CAAE,CAAC,CAAC;AAEvE,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"}
|
|
@@ -0,0 +1,62 @@
|
|
|
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.ProductPriceRecurringOutput$ = exports.ProductPriceRecurringOutput$outboundSchema = exports.ProductPriceRecurringOutput$inboundSchema = void 0;
|
|
30
|
+
const z = __importStar(require("zod"));
|
|
31
|
+
const productpricerecurringcustom_js_1 = require("./productpricerecurringcustom.js");
|
|
32
|
+
const productpricerecurringfixed_js_1 = require("./productpricerecurringfixed.js");
|
|
33
|
+
/** @internal */
|
|
34
|
+
exports.ProductPriceRecurringOutput$inboundSchema = z.union([
|
|
35
|
+
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$inboundSchema.and(z.object({ amount_type: z.literal("fixed") }).transform((v) => ({
|
|
36
|
+
amountType: v.amount_type,
|
|
37
|
+
}))),
|
|
38
|
+
productpricerecurringcustom_js_1.ProductPriceRecurringCustom$inboundSchema.and(z.object({ amount_type: z.literal("custom") }).transform((v) => ({
|
|
39
|
+
amountType: v.amount_type,
|
|
40
|
+
}))),
|
|
41
|
+
]);
|
|
42
|
+
/** @internal */
|
|
43
|
+
exports.ProductPriceRecurringOutput$outboundSchema = z.union([
|
|
44
|
+
productpricerecurringfixed_js_1.ProductPriceRecurringFixed$outboundSchema.and(z.object({ amountType: z.literal("fixed") }).transform((v) => ({
|
|
45
|
+
amount_type: v.amountType,
|
|
46
|
+
}))),
|
|
47
|
+
productpricerecurringcustom_js_1.ProductPriceRecurringCustom$outboundSchema.and(z.object({ amountType: z.literal("custom") }).transform((v) => ({
|
|
48
|
+
amount_type: v.amountType,
|
|
49
|
+
}))),
|
|
50
|
+
]);
|
|
51
|
+
/**
|
|
52
|
+
* @internal
|
|
53
|
+
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
54
|
+
*/
|
|
55
|
+
var ProductPriceRecurringOutput$;
|
|
56
|
+
(function (ProductPriceRecurringOutput$) {
|
|
57
|
+
/** @deprecated use `ProductPriceRecurringOutput$inboundSchema` instead. */
|
|
58
|
+
ProductPriceRecurringOutput$.inboundSchema = exports.ProductPriceRecurringOutput$inboundSchema;
|
|
59
|
+
/** @deprecated use `ProductPriceRecurringOutput$outboundSchema` instead. */
|
|
60
|
+
ProductPriceRecurringOutput$.outboundSchema = exports.ProductPriceRecurringOutput$outboundSchema;
|
|
61
|
+
})(ProductPriceRecurringOutput$ || (exports.ProductPriceRecurringOutput$ = ProductPriceRecurringOutput$ = {}));
|
|
62
|
+
//# sourceMappingURL=productpricerecurringoutput.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"productpricerecurringoutput.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurringoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,qFAK0C;AAC1C,mFAKyC;AAMzC,gBAAgB;AACH,QAAA,yCAAyC,GAIlD,CAAC,CAAC,KAAK,CAAC;IACV,wEAAwC,CAAC,GAAG,CAC1C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,OAAO,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC9D,UAAU,EAAE,CAAC,CAAC,WAAW;KAC1B,CAAC,CAAC,CACJ;IACD,0EAAyC,CAAC,GAAG,CAC3C,CAAC,CAAC,MAAM,CAAC,EAAE,WAAW,EAAE,CAAC,CAAC,OAAO,CAAC,QAAQ,CAAC,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE,CAAC,CAAC;QAC/D,UAAU,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