@polar-sh/sdk 0.8.2 → 0.9.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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/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/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
|
@@ -4,6 +4,11 @@
|
|
|
4
4
|
|
|
5
5
|
import * as z from "zod";
|
|
6
6
|
import { remap as remap$ } from "../../lib/primitives.js";
|
|
7
|
+
import {
|
|
8
|
+
SubscriptionRecurringInterval,
|
|
9
|
+
SubscriptionRecurringInterval$inboundSchema,
|
|
10
|
+
SubscriptionRecurringInterval$outboundSchema,
|
|
11
|
+
} from "./subscriptionrecurringinterval.js";
|
|
7
12
|
import {
|
|
8
13
|
SubscriptionStatus,
|
|
9
14
|
SubscriptionStatus$inboundSchema,
|
|
@@ -23,6 +28,9 @@ export type UserOrderSubscription = {
|
|
|
23
28
|
* The ID of the object.
|
|
24
29
|
*/
|
|
25
30
|
id: string;
|
|
31
|
+
amount: number | null;
|
|
32
|
+
currency: string | null;
|
|
33
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
26
34
|
status: SubscriptionStatus;
|
|
27
35
|
currentPeriodStart: Date;
|
|
28
36
|
currentPeriodEnd: Date | null;
|
|
@@ -45,6 +53,9 @@ export const UserOrderSubscription$inboundSchema: z.ZodType<
|
|
|
45
53
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
46
54
|
),
|
|
47
55
|
id: z.string(),
|
|
56
|
+
amount: z.nullable(z.number().int()),
|
|
57
|
+
currency: z.nullable(z.string()),
|
|
58
|
+
recurring_interval: SubscriptionRecurringInterval$inboundSchema,
|
|
48
59
|
status: SubscriptionStatus$inboundSchema,
|
|
49
60
|
current_period_start: z.string().datetime({ offset: true }).transform(v =>
|
|
50
61
|
new Date(v)
|
|
@@ -66,6 +77,7 @@ export const UserOrderSubscription$inboundSchema: z.ZodType<
|
|
|
66
77
|
return remap$(v, {
|
|
67
78
|
"created_at": "createdAt",
|
|
68
79
|
"modified_at": "modifiedAt",
|
|
80
|
+
"recurring_interval": "recurringInterval",
|
|
69
81
|
"current_period_start": "currentPeriodStart",
|
|
70
82
|
"current_period_end": "currentPeriodEnd",
|
|
71
83
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -82,6 +94,9 @@ export type UserOrderSubscription$Outbound = {
|
|
|
82
94
|
created_at: string;
|
|
83
95
|
modified_at: string | null;
|
|
84
96
|
id: string;
|
|
97
|
+
amount: number | null;
|
|
98
|
+
currency: string | null;
|
|
99
|
+
recurring_interval: string;
|
|
85
100
|
status: string;
|
|
86
101
|
current_period_start: string;
|
|
87
102
|
current_period_end: string | null;
|
|
@@ -102,6 +117,9 @@ export const UserOrderSubscription$outboundSchema: z.ZodType<
|
|
|
102
117
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
103
118
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
104
119
|
id: z.string(),
|
|
120
|
+
amount: z.nullable(z.number().int()),
|
|
121
|
+
currency: z.nullable(z.string()),
|
|
122
|
+
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
105
123
|
status: SubscriptionStatus$outboundSchema,
|
|
106
124
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
107
125
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -115,6 +133,7 @@ export const UserOrderSubscription$outboundSchema: z.ZodType<
|
|
|
115
133
|
return remap$(v, {
|
|
116
134
|
createdAt: "created_at",
|
|
117
135
|
modifiedAt: "modified_at",
|
|
136
|
+
recurringInterval: "recurring_interval",
|
|
118
137
|
currentPeriodStart: "current_period_start",
|
|
119
138
|
currentPeriodEnd: "current_period_end",
|
|
120
139
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -10,6 +10,11 @@ import {
|
|
|
10
10
|
ProductPriceOutput$Outbound,
|
|
11
11
|
ProductPriceOutput$outboundSchema,
|
|
12
12
|
} from "./productpriceoutput.js";
|
|
13
|
+
import {
|
|
14
|
+
SubscriptionRecurringInterval,
|
|
15
|
+
SubscriptionRecurringInterval$inboundSchema,
|
|
16
|
+
SubscriptionRecurringInterval$outboundSchema,
|
|
17
|
+
} from "./subscriptionrecurringinterval.js";
|
|
13
18
|
import {
|
|
14
19
|
SubscriptionStatus,
|
|
15
20
|
SubscriptionStatus$inboundSchema,
|
|
@@ -31,7 +36,13 @@ export type UserSubscription = {
|
|
|
31
36
|
* Last modification timestamp of the object.
|
|
32
37
|
*/
|
|
33
38
|
modifiedAt: Date | null;
|
|
39
|
+
/**
|
|
40
|
+
* The ID of the object.
|
|
41
|
+
*/
|
|
34
42
|
id: string;
|
|
43
|
+
amount: number | null;
|
|
44
|
+
currency: string | null;
|
|
45
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
35
46
|
status: SubscriptionStatus;
|
|
36
47
|
currentPeriodStart: Date;
|
|
37
48
|
currentPeriodEnd: Date | null;
|
|
@@ -56,6 +67,9 @@ export const UserSubscription$inboundSchema: z.ZodType<
|
|
|
56
67
|
z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
57
68
|
),
|
|
58
69
|
id: z.string(),
|
|
70
|
+
amount: z.nullable(z.number().int()),
|
|
71
|
+
currency: z.nullable(z.string()),
|
|
72
|
+
recurring_interval: SubscriptionRecurringInterval$inboundSchema,
|
|
59
73
|
status: SubscriptionStatus$inboundSchema,
|
|
60
74
|
current_period_start: z.string().datetime({ offset: true }).transform(v =>
|
|
61
75
|
new Date(v)
|
|
@@ -79,6 +93,7 @@ export const UserSubscription$inboundSchema: z.ZodType<
|
|
|
79
93
|
return remap$(v, {
|
|
80
94
|
"created_at": "createdAt",
|
|
81
95
|
"modified_at": "modifiedAt",
|
|
96
|
+
"recurring_interval": "recurringInterval",
|
|
82
97
|
"current_period_start": "currentPeriodStart",
|
|
83
98
|
"current_period_end": "currentPeriodEnd",
|
|
84
99
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -95,6 +110,9 @@ export type UserSubscription$Outbound = {
|
|
|
95
110
|
created_at: string;
|
|
96
111
|
modified_at: string | null;
|
|
97
112
|
id: string;
|
|
113
|
+
amount: number | null;
|
|
114
|
+
currency: string | null;
|
|
115
|
+
recurring_interval: string;
|
|
98
116
|
status: string;
|
|
99
117
|
current_period_start: string;
|
|
100
118
|
current_period_end: string | null;
|
|
@@ -117,6 +135,9 @@ export const UserSubscription$outboundSchema: z.ZodType<
|
|
|
117
135
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
118
136
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
119
137
|
id: z.string(),
|
|
138
|
+
amount: z.nullable(z.number().int()),
|
|
139
|
+
currency: z.nullable(z.string()),
|
|
140
|
+
recurringInterval: SubscriptionRecurringInterval$outboundSchema,
|
|
120
141
|
status: SubscriptionStatus$outboundSchema,
|
|
121
142
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
122
143
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -132,6 +153,7 @@ export const UserSubscription$outboundSchema: z.ZodType<
|
|
|
132
153
|
return remap$(v, {
|
|
133
154
|
createdAt: "created_at",
|
|
134
155
|
modifiedAt: "modified_at",
|
|
156
|
+
recurringInterval: "recurring_interval",
|
|
135
157
|
currentPeriodStart: "current_period_start",
|
|
136
158
|
currentPeriodEnd: "current_period_end",
|
|
137
159
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -8,8 +8,8 @@ import { ClosedEnum } from "../../types/enums.js";
|
|
|
8
8
|
export const UserSubscriptionSortProperty = {
|
|
9
9
|
StartedAt: "started_at",
|
|
10
10
|
MinusStartedAt: "-started_at",
|
|
11
|
-
|
|
12
|
-
|
|
11
|
+
Amount: "amount",
|
|
12
|
+
MinusAmount: "-amount",
|
|
13
13
|
Status: "status",
|
|
14
14
|
MinusStatus: "-status",
|
|
15
15
|
Organization: "organization",
|
|
@@ -1,61 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
export declare const ProductPriceOneTimeCreateType: {
|
|
4
|
-
readonly OneTime: "one_time";
|
|
5
|
-
};
|
|
6
|
-
export type ProductPriceOneTimeCreateType = ClosedEnum<typeof ProductPriceOneTimeCreateType>;
|
|
7
|
-
/**
|
|
8
|
-
* Schema to create a one-time product price.
|
|
9
|
-
*/
|
|
10
|
-
export type ProductPriceOneTimeCreate = {
|
|
11
|
-
type?: "one_time" | undefined;
|
|
12
|
-
/**
|
|
13
|
-
* The price in cents.
|
|
14
|
-
*/
|
|
15
|
-
priceAmount: number;
|
|
16
|
-
/**
|
|
17
|
-
* The currency. Currently, only `usd` is supported.
|
|
18
|
-
*/
|
|
19
|
-
priceCurrency?: string | undefined;
|
|
20
|
-
};
|
|
21
|
-
/** @internal */
|
|
22
|
-
export declare const ProductPriceOneTimeCreateType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCreateType>;
|
|
23
|
-
/** @internal */
|
|
24
|
-
export declare const ProductPriceOneTimeCreateType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceOneTimeCreateType>;
|
|
25
|
-
/**
|
|
26
|
-
* @internal
|
|
27
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
28
|
-
*/
|
|
29
|
-
export declare namespace ProductPriceOneTimeCreateType$ {
|
|
30
|
-
/** @deprecated use `ProductPriceOneTimeCreateType$inboundSchema` instead. */
|
|
31
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
32
|
-
readonly OneTime: "one_time";
|
|
33
|
-
}>;
|
|
34
|
-
/** @deprecated use `ProductPriceOneTimeCreateType$outboundSchema` instead. */
|
|
35
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
36
|
-
readonly OneTime: "one_time";
|
|
37
|
-
}>;
|
|
38
|
-
}
|
|
39
|
-
/** @internal */
|
|
40
|
-
export declare const ProductPriceOneTimeCreate$inboundSchema: z.ZodType<ProductPriceOneTimeCreate, z.ZodTypeDef, unknown>;
|
|
41
|
-
/** @internal */
|
|
42
|
-
export type ProductPriceOneTimeCreate$Outbound = {
|
|
43
|
-
type: "one_time";
|
|
44
|
-
price_amount: number;
|
|
45
|
-
price_currency: string;
|
|
46
|
-
};
|
|
47
|
-
/** @internal */
|
|
48
|
-
export declare const ProductPriceOneTimeCreate$outboundSchema: z.ZodType<ProductPriceOneTimeCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCreate>;
|
|
49
|
-
/**
|
|
50
|
-
* @internal
|
|
51
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
52
|
-
*/
|
|
53
|
-
export declare namespace ProductPriceOneTimeCreate$ {
|
|
54
|
-
/** @deprecated use `ProductPriceOneTimeCreate$inboundSchema` instead. */
|
|
55
|
-
const inboundSchema: z.ZodType<ProductPriceOneTimeCreate, z.ZodTypeDef, unknown>;
|
|
56
|
-
/** @deprecated use `ProductPriceOneTimeCreate$outboundSchema` instead. */
|
|
57
|
-
const outboundSchema: z.ZodType<ProductPriceOneTimeCreate$Outbound, z.ZodTypeDef, ProductPriceOneTimeCreate>;
|
|
58
|
-
/** @deprecated use `ProductPriceOneTimeCreate$Outbound` instead. */
|
|
59
|
-
type Outbound = ProductPriceOneTimeCreate$Outbound;
|
|
60
|
-
}
|
|
61
|
-
//# sourceMappingURL=productpriceonetimecreate.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceonetimecreate.d.ts","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecreate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,6BAA6B;;CAEhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG;IACtC,IAAI,CAAC,EAAE,UAAU,GAAG,SAAS,CAAC;IAC9B;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,GAAG,SAAS,CAAC;CACpC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,2CAA2C,EAAE,CAAC,CAAC,aAAa,CACvE,OAAO,6BAA6B,CACS,CAAC;AAEhD,gBAAgB;AAChB,eAAO,MAAM,4CAA4C,EAAE,CAAC,CAAC,aAAa,CACxE,OAAO,6BAA6B,CACS,CAAC;AAEhD;;;GAGG;AACH,yBAAiB,8BAA8B,CAAC;IAC9C,6EAA6E;IACtE,MAAM,aAAa;;MAA8C,CAAC;IACzE,8EAA8E;IACvE,MAAM,cAAc;;MAA+C,CAAC;CAC5E;AAED,gBAAgB;AAChB,eAAO,MAAM,uCAAuC,EAAE,CAAC,CAAC,OAAO,CAC7D,yBAAyB,EACzB,CAAC,CAAC,UAAU,EACZ,OAAO,CAUP,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,kCAAkC,GAAG;IAC/C,IAAI,EAAE,UAAU,CAAC;IACjB,YAAY,EAAE,MAAM,CAAC;IACrB,cAAc,EAAE,MAAM,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,wCAAwC,EAAE,CAAC,CAAC,OAAO,CAC9D,kCAAkC,EAClC,CAAC,CAAC,UAAU,EACZ,yBAAyB,CAUzB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,0BAA0B,CAAC;IAC1C,yEAAyE;IAClE,MAAM,aAAa,6DAA0C,CAAC;IACrE,0EAA0E;IACnE,MAAM,cAAc,wFAA2C,CAAC;IACvE,oEAAoE;IACpE,KAAY,QAAQ,GAAG,kCAAkC,CAAC;CAC3D"}
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productpriceonetimecreate.js","sourceRoot":"","sources":["../../src/models/components/productpriceonetimecreate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAG7C,QAAA,6BAA6B,GAAG;IAC3C,OAAO,EAAE,UAAU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3B,aAAa,EAAE,gBAAgB;KAChC,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"}
|
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import * as z from "zod";
|
|
2
|
-
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
-
import { ProductPriceRecurringInterval } from "./productpricerecurringinterval.js";
|
|
4
|
-
/**
|
|
5
|
-
* The type of the price.
|
|
6
|
-
*/
|
|
7
|
-
export declare const ProductPriceRecurringType: {
|
|
8
|
-
readonly Recurring: "recurring";
|
|
9
|
-
};
|
|
10
|
-
/**
|
|
11
|
-
* The type of the price.
|
|
12
|
-
*/
|
|
13
|
-
export type ProductPriceRecurringType = ClosedEnum<typeof ProductPriceRecurringType>;
|
|
14
|
-
/**
|
|
15
|
-
* A recurring price for a product, i.e. a subscription.
|
|
16
|
-
*/
|
|
17
|
-
export type ProductPriceRecurring = {
|
|
18
|
-
/**
|
|
19
|
-
* Creation timestamp of the object.
|
|
20
|
-
*/
|
|
21
|
-
createdAt: Date;
|
|
22
|
-
/**
|
|
23
|
-
* Last modification timestamp of the object.
|
|
24
|
-
*/
|
|
25
|
-
modifiedAt: Date | null;
|
|
26
|
-
/**
|
|
27
|
-
* The ID of the price.
|
|
28
|
-
*/
|
|
29
|
-
id: string;
|
|
30
|
-
/**
|
|
31
|
-
* The price in cents.
|
|
32
|
-
*/
|
|
33
|
-
priceAmount: number;
|
|
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 type of the price.
|
|
44
|
-
*/
|
|
45
|
-
type?: "recurring" | undefined;
|
|
46
|
-
/**
|
|
47
|
-
* The recurring interval of the price, if type is `recurring`.
|
|
48
|
-
*/
|
|
49
|
-
recurringInterval: ProductPriceRecurringInterval | null;
|
|
50
|
-
};
|
|
51
|
-
/** @internal */
|
|
52
|
-
export declare const ProductPriceRecurringType$inboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringType>;
|
|
53
|
-
/** @internal */
|
|
54
|
-
export declare const ProductPriceRecurringType$outboundSchema: z.ZodNativeEnum<typeof ProductPriceRecurringType>;
|
|
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 ProductPriceRecurringType$ {
|
|
60
|
-
/** @deprecated use `ProductPriceRecurringType$inboundSchema` instead. */
|
|
61
|
-
const inboundSchema: z.ZodNativeEnum<{
|
|
62
|
-
readonly Recurring: "recurring";
|
|
63
|
-
}>;
|
|
64
|
-
/** @deprecated use `ProductPriceRecurringType$outboundSchema` instead. */
|
|
65
|
-
const outboundSchema: z.ZodNativeEnum<{
|
|
66
|
-
readonly Recurring: "recurring";
|
|
67
|
-
}>;
|
|
68
|
-
}
|
|
69
|
-
/** @internal */
|
|
70
|
-
export declare const ProductPriceRecurring$inboundSchema: z.ZodType<ProductPriceRecurring, z.ZodTypeDef, unknown>;
|
|
71
|
-
/** @internal */
|
|
72
|
-
export type ProductPriceRecurring$Outbound = {
|
|
73
|
-
created_at: string;
|
|
74
|
-
modified_at: string | null;
|
|
75
|
-
id: string;
|
|
76
|
-
price_amount: number;
|
|
77
|
-
price_currency: string;
|
|
78
|
-
is_archived: boolean;
|
|
79
|
-
type: "recurring";
|
|
80
|
-
recurring_interval: string | null;
|
|
81
|
-
};
|
|
82
|
-
/** @internal */
|
|
83
|
-
export declare const ProductPriceRecurring$outboundSchema: z.ZodType<ProductPriceRecurring$Outbound, z.ZodTypeDef, ProductPriceRecurring>;
|
|
84
|
-
/**
|
|
85
|
-
* @internal
|
|
86
|
-
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
87
|
-
*/
|
|
88
|
-
export declare namespace ProductPriceRecurring$ {
|
|
89
|
-
/** @deprecated use `ProductPriceRecurring$inboundSchema` instead. */
|
|
90
|
-
const inboundSchema: z.ZodType<ProductPriceRecurring, z.ZodTypeDef, unknown>;
|
|
91
|
-
/** @deprecated use `ProductPriceRecurring$outboundSchema` instead. */
|
|
92
|
-
const outboundSchema: z.ZodType<ProductPriceRecurring$Outbound, z.ZodTypeDef, ProductPriceRecurring>;
|
|
93
|
-
/** @deprecated use `ProductPriceRecurring$Outbound` instead. */
|
|
94
|
-
type Outbound = ProductPriceRecurring$Outbound;
|
|
95
|
-
}
|
|
96
|
-
//# sourceMappingURL=productpricerecurring.d.ts.map
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"version":3,"file":"productpricerecurring.d.ts","sourceRoot":"","sources":["../../src/models/components/productpricerecurring.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;;GAEG;AACH,eAAO,MAAM,yBAAyB;;CAE5B,CAAC;AACX;;GAEG;AACH,MAAM,MAAM,yBAAyB,GAAG,UAAU,CAChD,OAAO,yBAAyB,CACjC,CAAC;AAEF;;GAEG;AACH,MAAM,MAAM,qBAAqB,GAAG;IAClC;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX;;OAEG;IACH,WAAW,EAAE,MAAM,CAAC;IACpB;;OA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EAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD"}
|
|
@@ -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":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAE1D,yFAI4C;AAE5C;;GAEG;AACU,QAAA,yBAAyB,GAAG;IACvC,SAAS,EAAE,WAAW;CACd,CAAC;AA8CX,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,CAAC,CAAC,UAAU,CAAC,iCAAyB,CAAC,CAAC;AAE5C,gBAAgB;AACH,QAAA,wCAAwC,GAEjD,+CAAuC,CAAC;AAE5C;;;GAGG;AACH,IAAiB,0BAA0B,CAK1C;AALD,WAAiB,0BAA0B;IACzC,yEAAyE;IAC5D,wCAAa,GAAG,+CAAuC,CAAC;IACrE,0EAA0E;IAC7D,yCAAc,GAAG,gDAAwC,CAAC;AACzE,CAAC,EALgB,0BAA0B,0CAA1B,0BAA0B,QAK1C;AAED,gBAAgB;AACH,QAAA,mCAAmC,GAI5C,CAAC,CAAC,MAAM,CAAC;IACX,UAAU,EAAE,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,CAAC,IAAI,IAAI,CAAC,CAAC,CAAC,CAAC;IAC7E,WAAW,EAAE,CAAC,CAAC,QAAQ,CACrB,CAAC,CAAC,MAAM,EAAE,CAAC,QAAQ,CAAC,EAAE,MAAM,EAAE,IAAI,EAAE,CAAC,CAAC,SAAS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O,CAAC,WAAW,CAAC,CAAC,OAAO,CAAC,WAAW,CAAC;IACjD,iBAAiB,EAAE,CAAC,CAAC,QAAQ,CAAC,+EAA4C,CAAC;CAC5E,CAAC,CAAC,SAAS,CAAC,CAAC,CAAC,EAAE,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,SAAS,EAAE,YAAY;QACvB,UAAU,EAAE,aAAa;QACzB,WAAW,EAAE,cAAc;QAC3B,aAAa,EAAE,gBAAgB;QAC/B,UAAU,EAAE,aAAa;QACzB,iBAAiB,EAAE,oBAAoB;KACxC,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,sBAAsB,CAOtC;AAPD,WAAiB,sBAAsB;IACrC,qEAAqE;IACxD,oCAAa,GAAG,2CAAmC,CAAC;IACjE,sEAAsE;IACzD,qCAAc,GAAG,4CAAoC,CAAC;AAGrE,CAAC,EAPgB,sBAAsB,sCAAtB,sBAAsB,QAOtC"}
|
|
@@ -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
|
-
}
|