@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
|
@@ -1,105 +0,0 @@
|
|
|
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.ProductPriceRecurring$ = exports.ProductPriceRecurring$outboundSchema = exports.ProductPriceRecurring$inboundSchema = exports.ProductPriceRecurringType$ = exports.ProductPriceRecurringType$outboundSchema = exports.ProductPriceRecurringType$inboundSchema = exports.ProductPriceRecurringType = void 0;
|
|
30
|
-
const z = __importStar(require("zod"));
|
|
31
|
-
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
-
const productpricerecurringinterval_js_1 = require("./productpricerecurringinterval.js");
|
|
33
|
-
/**
|
|
34
|
-
* The type of the price.
|
|
35
|
-
*/
|
|
36
|
-
exports.ProductPriceRecurringType = {
|
|
37
|
-
Recurring: "recurring",
|
|
38
|
-
};
|
|
39
|
-
/** @internal */
|
|
40
|
-
exports.ProductPriceRecurringType$inboundSchema = z.nativeEnum(exports.ProductPriceRecurringType);
|
|
41
|
-
/** @internal */
|
|
42
|
-
exports.ProductPriceRecurringType$outboundSchema = exports.ProductPriceRecurringType$inboundSchema;
|
|
43
|
-
/**
|
|
44
|
-
* @internal
|
|
45
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
46
|
-
*/
|
|
47
|
-
var ProductPriceRecurringType$;
|
|
48
|
-
(function (ProductPriceRecurringType$) {
|
|
49
|
-
/** @deprecated use `ProductPriceRecurringType$inboundSchema` instead. */
|
|
50
|
-
ProductPriceRecurringType$.inboundSchema = exports.ProductPriceRecurringType$inboundSchema;
|
|
51
|
-
/** @deprecated use `ProductPriceRecurringType$outboundSchema` instead. */
|
|
52
|
-
ProductPriceRecurringType$.outboundSchema = exports.ProductPriceRecurringType$outboundSchema;
|
|
53
|
-
})(ProductPriceRecurringType$ || (exports.ProductPriceRecurringType$ = ProductPriceRecurringType$ = {}));
|
|
54
|
-
/** @internal */
|
|
55
|
-
exports.ProductPriceRecurring$inboundSchema = z.object({
|
|
56
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
57
|
-
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
58
|
-
id: z.string(),
|
|
59
|
-
price_amount: z.number().int(),
|
|
60
|
-
price_currency: z.string(),
|
|
61
|
-
is_archived: z.boolean(),
|
|
62
|
-
type: z.literal("recurring").optional(),
|
|
63
|
-
recurring_interval: z.nullable(productpricerecurringinterval_js_1.ProductPriceRecurringInterval$inboundSchema),
|
|
64
|
-
}).transform((v) => {
|
|
65
|
-
return (0, primitives_js_1.remap)(v, {
|
|
66
|
-
"created_at": "createdAt",
|
|
67
|
-
"modified_at": "modifiedAt",
|
|
68
|
-
"price_amount": "priceAmount",
|
|
69
|
-
"price_currency": "priceCurrency",
|
|
70
|
-
"is_archived": "isArchived",
|
|
71
|
-
"recurring_interval": "recurringInterval",
|
|
72
|
-
});
|
|
73
|
-
});
|
|
74
|
-
/** @internal */
|
|
75
|
-
exports.ProductPriceRecurring$outboundSchema = z.object({
|
|
76
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
77
|
-
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
78
|
-
id: z.string(),
|
|
79
|
-
priceAmount: z.number().int(),
|
|
80
|
-
priceCurrency: z.string(),
|
|
81
|
-
isArchived: z.boolean(),
|
|
82
|
-
type: z.literal("recurring").default("recurring"),
|
|
83
|
-
recurringInterval: z.nullable(productpricerecurringinterval_js_1.ProductPriceRecurringInterval$outboundSchema),
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return (0, primitives_js_1.remap)(v, {
|
|
86
|
-
createdAt: "created_at",
|
|
87
|
-
modifiedAt: "modified_at",
|
|
88
|
-
priceAmount: "price_amount",
|
|
89
|
-
priceCurrency: "price_currency",
|
|
90
|
-
isArchived: "is_archived",
|
|
91
|
-
recurringInterval: "recurring_interval",
|
|
92
|
-
});
|
|
93
|
-
});
|
|
94
|
-
/**
|
|
95
|
-
* @internal
|
|
96
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
97
|
-
*/
|
|
98
|
-
var ProductPriceRecurring$;
|
|
99
|
-
(function (ProductPriceRecurring$) {
|
|
100
|
-
/** @deprecated use `ProductPriceRecurring$inboundSchema` instead. */
|
|
101
|
-
ProductPriceRecurring$.inboundSchema = exports.ProductPriceRecurring$inboundSchema;
|
|
102
|
-
/** @deprecated use `ProductPriceRecurring$outboundSchema` instead. */
|
|
103
|
-
ProductPriceRecurring$.outboundSchema = exports.ProductPriceRecurring$outboundSchema;
|
|
104
|
-
})(ProductPriceRecurring$ || (exports.ProductPriceRecurring$ = ProductPriceRecurring$ = {}));
|
|
105
|
-
//# sourceMappingURL=productpricerecurring.js.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurring.js","sourceRoot":"","sources":["../../src/models/components/productpricerecurring.ts"],"names":[],"mappings":"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"}
|
|
@@ -1,28 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const ProductPriceRecurringInterval: {
|
|
4
|
-
readonly Month: "month";
|
|
5
|
-
readonly Year: "year";
|
|
6
|
-
};
|
|
7
|
-
export type ProductPriceRecurringInterval = ClosedEnum<typeof ProductPriceRecurringInterval>;
|
|
8
|
-
/** @internal */
|
|
9
|
-
export declare const ProductPriceRecurringInterval$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringInterval>;
|
|
10
|
-
/** @internal */
|
|
11
|
-
export declare const ProductPriceRecurringInterval$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringInterval>;
|
|
12
|
-
/**
|
|
13
|
-
* @internal
|
|
14
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
15
|
-
*/
|
|
16
|
-
export declare namespace ProductPriceRecurringInterval$ {
|
|
17
|
-
/** @deprecated use `ProductPriceRecurringInterval$inboundSchema` instead. */
|
|
18
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
-
readonly Month: "month";
|
|
20
|
-
readonly Year: "year";
|
|
21
|
-
}>;
|
|
22
|
-
/** @deprecated use `ProductPriceRecurringInterval$outboundSchema` instead. */
|
|
23
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
-
readonly Month: "month";
|
|
25
|
-
readonly Year: "year";
|
|
26
|
-
}>;
|
|
27
|
-
}
|
|
28
|
-
//# sourceMappingURL=productpricerecurringinterval.d.ts.map
|
|
@@ -1,102 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
|
|
9
|
-
export const ProductPriceOneTimeCreateType = {
|
|
10
|
-
OneTime: "one_time",
|
|
11
|
-
} as const;
|
|
12
|
-
export type ProductPriceOneTimeCreateType = ClosedEnum<
|
|
13
|
-
typeof ProductPriceOneTimeCreateType
|
|
14
|
-
>;
|
|
15
|
-
|
|
16
|
-
/**
|
|
17
|
-
* Schema to create a one-time product price.
|
|
18
|
-
*/
|
|
19
|
-
export type ProductPriceOneTimeCreate = {
|
|
20
|
-
type?: "one_time" | undefined;
|
|
21
|
-
/**
|
|
22
|
-
* The price in cents.
|
|
23
|
-
*/
|
|
24
|
-
priceAmount: number;
|
|
25
|
-
/**
|
|
26
|
-
* The currency. Currently, only `usd` is supported.
|
|
27
|
-
*/
|
|
28
|
-
priceCurrency?: string | undefined;
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/** @internal */
|
|
32
|
-
export const ProductPriceOneTimeCreateType$inboundSchema: z.ZodNativeEnum<
|
|
33
|
-
typeof ProductPriceOneTimeCreateType
|
|
34
|
-
> = z.nativeEnum(ProductPriceOneTimeCreateType);
|
|
35
|
-
|
|
36
|
-
/** @internal */
|
|
37
|
-
export const ProductPriceOneTimeCreateType$outboundSchema: z.ZodNativeEnum<
|
|
38
|
-
typeof ProductPriceOneTimeCreateType
|
|
39
|
-
> = ProductPriceOneTimeCreateType$inboundSchema;
|
|
40
|
-
|
|
41
|
-
/**
|
|
42
|
-
* @internal
|
|
43
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
44
|
-
*/
|
|
45
|
-
export namespace ProductPriceOneTimeCreateType$ {
|
|
46
|
-
/** @deprecated use `ProductPriceOneTimeCreateType$inboundSchema` instead. */
|
|
47
|
-
export const inboundSchema = ProductPriceOneTimeCreateType$inboundSchema;
|
|
48
|
-
/** @deprecated use `ProductPriceOneTimeCreateType$outboundSchema` instead. */
|
|
49
|
-
export const outboundSchema = ProductPriceOneTimeCreateType$outboundSchema;
|
|
50
|
-
}
|
|
51
|
-
|
|
52
|
-
/** @internal */
|
|
53
|
-
export const ProductPriceOneTimeCreate$inboundSchema: z.ZodType<
|
|
54
|
-
ProductPriceOneTimeCreate,
|
|
55
|
-
z.ZodTypeDef,
|
|
56
|
-
unknown
|
|
57
|
-
> = z.object({
|
|
58
|
-
type: z.literal("one_time").optional(),
|
|
59
|
-
price_amount: z.number().int(),
|
|
60
|
-
price_currency: z.string().default("usd"),
|
|
61
|
-
}).transform((v) => {
|
|
62
|
-
return remap$(v, {
|
|
63
|
-
"price_amount": "priceAmount",
|
|
64
|
-
"price_currency": "priceCurrency",
|
|
65
|
-
});
|
|
66
|
-
});
|
|
67
|
-
|
|
68
|
-
/** @internal */
|
|
69
|
-
export type ProductPriceOneTimeCreate$Outbound = {
|
|
70
|
-
type: "one_time";
|
|
71
|
-
price_amount: number;
|
|
72
|
-
price_currency: string;
|
|
73
|
-
};
|
|
74
|
-
|
|
75
|
-
/** @internal */
|
|
76
|
-
export const ProductPriceOneTimeCreate$outboundSchema: z.ZodType<
|
|
77
|
-
ProductPriceOneTimeCreate$Outbound,
|
|
78
|
-
z.ZodTypeDef,
|
|
79
|
-
ProductPriceOneTimeCreate
|
|
80
|
-
> = z.object({
|
|
81
|
-
type: z.literal("one_time").default("one_time"),
|
|
82
|
-
priceAmount: z.number().int(),
|
|
83
|
-
priceCurrency: z.string().default("usd"),
|
|
84
|
-
}).transform((v) => {
|
|
85
|
-
return remap$(v, {
|
|
86
|
-
priceAmount: "price_amount",
|
|
87
|
-
priceCurrency: "price_currency",
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
|
|
91
|
-
/**
|
|
92
|
-
* @internal
|
|
93
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
94
|
-
*/
|
|
95
|
-
export namespace ProductPriceOneTimeCreate$ {
|
|
96
|
-
/** @deprecated use `ProductPriceOneTimeCreate$inboundSchema` instead. */
|
|
97
|
-
export const inboundSchema = ProductPriceOneTimeCreate$inboundSchema;
|
|
98
|
-
/** @deprecated use `ProductPriceOneTimeCreate$outboundSchema` instead. */
|
|
99
|
-
export const outboundSchema = ProductPriceOneTimeCreate$outboundSchema;
|
|
100
|
-
/** @deprecated use `ProductPriceOneTimeCreate$Outbound` instead. */
|
|
101
|
-
export type Outbound = ProductPriceOneTimeCreate$Outbound;
|
|
102
|
-
}
|
|
@@ -1,161 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
8
|
-
import {
|
|
9
|
-
ProductPriceRecurringInterval,
|
|
10
|
-
ProductPriceRecurringInterval$inboundSchema,
|
|
11
|
-
ProductPriceRecurringInterval$outboundSchema,
|
|
12
|
-
} from "./productpricerecurringinterval.js";
|
|
13
|
-
|
|
14
|
-
/**
|
|
15
|
-
* The type of the price.
|
|
16
|
-
*/
|
|
17
|
-
export const ProductPriceRecurringType = {
|
|
18
|
-
Recurring: "recurring",
|
|
19
|
-
} as const;
|
|
20
|
-
/**
|
|
21
|
-
* The type of the price.
|
|
22
|
-
*/
|
|
23
|
-
export type ProductPriceRecurringType = ClosedEnum<
|
|
24
|
-
typeof ProductPriceRecurringType
|
|
25
|
-
>;
|
|
26
|
-
|
|
27
|
-
/**
|
|
28
|
-
* A recurring price for a product, i.e. a subscription.
|
|
29
|
-
*/
|
|
30
|
-
export type ProductPriceRecurring = {
|
|
31
|
-
/**
|
|
32
|
-
* Creation timestamp of the object.
|
|
33
|
-
*/
|
|
34
|
-
createdAt: Date;
|
|
35
|
-
/**
|
|
36
|
-
* Last modification timestamp of the object.
|
|
37
|
-
*/
|
|
38
|
-
modifiedAt: Date | null;
|
|
39
|
-
/**
|
|
40
|
-
* The ID of the price.
|
|
41
|
-
*/
|
|
42
|
-
id: string;
|
|
43
|
-
/**
|
|
44
|
-
* The price in cents.
|
|
45
|
-
*/
|
|
46
|
-
priceAmount: number;
|
|
47
|
-
/**
|
|
48
|
-
* The currency.
|
|
49
|
-
*/
|
|
50
|
-
priceCurrency: string;
|
|
51
|
-
/**
|
|
52
|
-
* Whether the price is archived and no longer available.
|
|
53
|
-
*/
|
|
54
|
-
isArchived: boolean;
|
|
55
|
-
/**
|
|
56
|
-
* The type of the price.
|
|
57
|
-
*/
|
|
58
|
-
type?: "recurring" | undefined;
|
|
59
|
-
/**
|
|
60
|
-
* The recurring interval of the price, if type is `recurring`.
|
|
61
|
-
*/
|
|
62
|
-
recurringInterval: ProductPriceRecurringInterval | null;
|
|
63
|
-
};
|
|
64
|
-
|
|
65
|
-
/** @internal */
|
|
66
|
-
export const ProductPriceRecurringType$inboundSchema: z.ZodNativeEnum<
|
|
67
|
-
typeof ProductPriceRecurringType
|
|
68
|
-
> = z.nativeEnum(ProductPriceRecurringType);
|
|
69
|
-
|
|
70
|
-
/** @internal */
|
|
71
|
-
export const ProductPriceRecurringType$outboundSchema: z.ZodNativeEnum<
|
|
72
|
-
typeof ProductPriceRecurringType
|
|
73
|
-
> = ProductPriceRecurringType$inboundSchema;
|
|
74
|
-
|
|
75
|
-
/**
|
|
76
|
-
* @internal
|
|
77
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
78
|
-
*/
|
|
79
|
-
export namespace ProductPriceRecurringType$ {
|
|
80
|
-
/** @deprecated use `ProductPriceRecurringType$inboundSchema` instead. */
|
|
81
|
-
export const inboundSchema = ProductPriceRecurringType$inboundSchema;
|
|
82
|
-
/** @deprecated use `ProductPriceRecurringType$outboundSchema` instead. */
|
|
83
|
-
export const outboundSchema = ProductPriceRecurringType$outboundSchema;
|
|
84
|
-
}
|
|
85
|
-
|
|
86
|
-
/** @internal */
|
|
87
|
-
export const ProductPriceRecurring$inboundSchema: z.ZodType<
|
|
88
|
-
ProductPriceRecurring,
|
|
89
|
-
z.ZodTypeDef,
|
|
90
|
-
unknown
|
|
91
|
-
> = z.object({
|
|
92
|
-
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
93
|
-
modified_at: z.nullable(
|
|
94
|
-
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
95
|
-
),
|
|
96
|
-
id: z.string(),
|
|
97
|
-
price_amount: z.number().int(),
|
|
98
|
-
price_currency: z.string(),
|
|
99
|
-
is_archived: z.boolean(),
|
|
100
|
-
type: z.literal("recurring").optional(),
|
|
101
|
-
recurring_interval: z.nullable(ProductPriceRecurringInterval$inboundSchema),
|
|
102
|
-
}).transform((v) => {
|
|
103
|
-
return remap$(v, {
|
|
104
|
-
"created_at": "createdAt",
|
|
105
|
-
"modified_at": "modifiedAt",
|
|
106
|
-
"price_amount": "priceAmount",
|
|
107
|
-
"price_currency": "priceCurrency",
|
|
108
|
-
"is_archived": "isArchived",
|
|
109
|
-
"recurring_interval": "recurringInterval",
|
|
110
|
-
});
|
|
111
|
-
});
|
|
112
|
-
|
|
113
|
-
/** @internal */
|
|
114
|
-
export type ProductPriceRecurring$Outbound = {
|
|
115
|
-
created_at: string;
|
|
116
|
-
modified_at: string | null;
|
|
117
|
-
id: string;
|
|
118
|
-
price_amount: number;
|
|
119
|
-
price_currency: string;
|
|
120
|
-
is_archived: boolean;
|
|
121
|
-
type: "recurring";
|
|
122
|
-
recurring_interval: string | null;
|
|
123
|
-
};
|
|
124
|
-
|
|
125
|
-
/** @internal */
|
|
126
|
-
export const ProductPriceRecurring$outboundSchema: z.ZodType<
|
|
127
|
-
ProductPriceRecurring$Outbound,
|
|
128
|
-
z.ZodTypeDef,
|
|
129
|
-
ProductPriceRecurring
|
|
130
|
-
> = z.object({
|
|
131
|
-
createdAt: z.date().transform(v => v.toISOString()),
|
|
132
|
-
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
133
|
-
id: z.string(),
|
|
134
|
-
priceAmount: z.number().int(),
|
|
135
|
-
priceCurrency: z.string(),
|
|
136
|
-
isArchived: z.boolean(),
|
|
137
|
-
type: z.literal("recurring").default("recurring"),
|
|
138
|
-
recurringInterval: z.nullable(ProductPriceRecurringInterval$outboundSchema),
|
|
139
|
-
}).transform((v) => {
|
|
140
|
-
return remap$(v, {
|
|
141
|
-
createdAt: "created_at",
|
|
142
|
-
modifiedAt: "modified_at",
|
|
143
|
-
priceAmount: "price_amount",
|
|
144
|
-
priceCurrency: "price_currency",
|
|
145
|
-
isArchived: "is_archived",
|
|
146
|
-
recurringInterval: "recurring_interval",
|
|
147
|
-
});
|
|
148
|
-
});
|
|
149
|
-
|
|
150
|
-
/**
|
|
151
|
-
* @internal
|
|
152
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
153
|
-
*/
|
|
154
|
-
export namespace ProductPriceRecurring$ {
|
|
155
|
-
/** @deprecated use `ProductPriceRecurring$inboundSchema` instead. */
|
|
156
|
-
export const inboundSchema = ProductPriceRecurring$inboundSchema;
|
|
157
|
-
/** @deprecated use `ProductPriceRecurring$outboundSchema` instead. */
|
|
158
|
-
export const outboundSchema = ProductPriceRecurring$outboundSchema;
|
|
159
|
-
/** @deprecated use `ProductPriceRecurring$Outbound` instead. */
|
|
160
|
-
export type Outbound = ProductPriceRecurring$Outbound;
|
|
161
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/*
|
|
2
|
-
* Code generated by Speakeasy (https://speakeasy.com). DO NOT EDIT.
|
|
3
|
-
*/
|
|
4
|
-
|
|
5
|
-
import * as z from "zod";
|
|
6
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
7
|
-
|
|
8
|
-
export const ProductPriceRecurringInterval = {
|
|
9
|
-
Month: "month",
|
|
10
|
-
Year: "year",
|
|
11
|
-
} as const;
|
|
12
|
-
export type ProductPriceRecurringInterval = ClosedEnum<
|
|
13
|
-
typeof ProductPriceRecurringInterval
|
|
14
|
-
>;
|
|
15
|
-
|
|
16
|
-
/** @internal */
|
|
17
|
-
export const ProductPriceRecurringInterval$inboundSchema: z.ZodNativeEnum<
|
|
18
|
-
typeof ProductPriceRecurringInterval
|
|
19
|
-
> = z.nativeEnum(ProductPriceRecurringInterval);
|
|
20
|
-
|
|
21
|
-
/** @internal */
|
|
22
|
-
export const ProductPriceRecurringInterval$outboundSchema: z.ZodNativeEnum<
|
|
23
|
-
typeof ProductPriceRecurringInterval
|
|
24
|
-
> = ProductPriceRecurringInterval$inboundSchema;
|
|
25
|
-
|
|
26
|
-
/**
|
|
27
|
-
* @internal
|
|
28
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
29
|
-
*/
|
|
30
|
-
export namespace ProductPriceRecurringInterval$ {
|
|
31
|
-
/** @deprecated use `ProductPriceRecurringInterval$inboundSchema` instead. */
|
|
32
|
-
export const inboundSchema = ProductPriceRecurringInterval$inboundSchema;
|
|
33
|
-
/** @deprecated use `ProductPriceRecurringInterval$outboundSchema` instead. */
|
|
34
|
-
export const outboundSchema = ProductPriceRecurringInterval$outboundSchema;
|
|
35
|
-
}
|