@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,8 +1,9 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ExistingProductPrice, ExistingProductPrice$Outbound } from "./existingproductprice.js";
|
|
3
|
-
import {
|
|
3
|
+
import { ProductPriceOneTimeCustomCreate, ProductPriceOneTimeCustomCreate$Outbound } from "./productpriceonetimecustomcreate.js";
|
|
4
|
+
import { ProductPriceOneTimeFixedCreate, ProductPriceOneTimeFixedCreate$Outbound } from "./productpriceonetimefixedcreate.js";
|
|
4
5
|
import { ProductPriceRecurringCreate, ProductPriceRecurringCreate$Outbound } from "./productpricerecurringcreate.js";
|
|
5
|
-
export type
|
|
6
|
+
export type ProductUpdatePrices = ExistingProductPrice | ProductPriceOneTimeFixedCreate | ProductPriceRecurringCreate | ProductPriceOneTimeCustomCreate;
|
|
6
7
|
/**
|
|
7
8
|
* Schema to update a product.
|
|
8
9
|
*/
|
|
@@ -23,29 +24,29 @@ export type ProductUpdate = {
|
|
|
23
24
|
/**
|
|
24
25
|
* List of available prices for this product. If you want to keep existing prices, include them in the list as an `ExistingProductPrice` object.
|
|
25
26
|
*/
|
|
26
|
-
prices?: Array<ExistingProductPrice |
|
|
27
|
+
prices?: Array<ExistingProductPrice | ProductPriceOneTimeFixedCreate | ProductPriceRecurringCreate | ProductPriceOneTimeCustomCreate> | null | undefined;
|
|
27
28
|
/**
|
|
28
29
|
* List of file IDs. Each one must be on the same organization as the product, of type `product_media` and correctly uploaded.
|
|
29
30
|
*/
|
|
30
31
|
medias?: Array<string> | null | undefined;
|
|
31
32
|
};
|
|
32
33
|
/** @internal */
|
|
33
|
-
export declare const
|
|
34
|
+
export declare const ProductUpdatePrices$inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
|
|
34
35
|
/** @internal */
|
|
35
|
-
export type
|
|
36
|
+
export type ProductUpdatePrices$Outbound = ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound;
|
|
36
37
|
/** @internal */
|
|
37
|
-
export declare const
|
|
38
|
+
export declare const ProductUpdatePrices$outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
|
|
38
39
|
/**
|
|
39
40
|
* @internal
|
|
40
41
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
41
42
|
*/
|
|
42
|
-
export declare namespace
|
|
43
|
-
/** @deprecated use `
|
|
44
|
-
const inboundSchema: z.ZodType<
|
|
45
|
-
/** @deprecated use `
|
|
46
|
-
const outboundSchema: z.ZodType<
|
|
47
|
-
/** @deprecated use `
|
|
48
|
-
type Outbound =
|
|
43
|
+
export declare namespace ProductUpdatePrices$ {
|
|
44
|
+
/** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
|
|
45
|
+
const inboundSchema: z.ZodType<ProductUpdatePrices, z.ZodTypeDef, unknown>;
|
|
46
|
+
/** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
|
|
47
|
+
const outboundSchema: z.ZodType<ProductUpdatePrices$Outbound, z.ZodTypeDef, ProductUpdatePrices>;
|
|
48
|
+
/** @deprecated use `ProductUpdatePrices$Outbound` instead. */
|
|
49
|
+
type Outbound = ProductUpdatePrices$Outbound;
|
|
49
50
|
}
|
|
50
51
|
/** @internal */
|
|
51
52
|
export declare const ProductUpdate$inboundSchema: z.ZodType<ProductUpdate, z.ZodTypeDef, unknown>;
|
|
@@ -55,7 +56,7 @@ export type ProductUpdate$Outbound = {
|
|
|
55
56
|
description?: string | null | undefined;
|
|
56
57
|
is_highlighted?: boolean | null | undefined;
|
|
57
58
|
is_archived?: boolean | null | undefined;
|
|
58
|
-
prices?: Array<ExistingProductPrice$Outbound |
|
|
59
|
+
prices?: Array<ExistingProductPrice$Outbound | ProductPriceOneTimeFixedCreate$Outbound | ProductPriceRecurringCreate$Outbound | ProductPriceOneTimeCustomCreate$Outbound> | null | undefined;
|
|
59
60
|
medias?: Array<string> | null | undefined;
|
|
60
61
|
};
|
|
61
62
|
/** @internal */
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,
|
|
1
|
+
{"version":3,"file":"productupdate.d.ts","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,oBAAoB,EAEpB,6BAA6B,EAE9B,MAAM,2BAA2B,CAAC;AACnC,OAAO,EACL,+BAA+B,EAE/B,wCAAwC,EAEzC,MAAM,sCAAsC,CAAC;AAC9C,OAAO,EACL,8BAA8B,EAE9B,uCAAuC,EAExC,MAAM,qCAAqC,CAAC;AAC7C,OAAO,EACL,2BAA2B,EAE3B,oCAAoC,EAErC,MAAM,kCAAkC,CAAC;AAE1C,MAAM,MAAM,mBAAmB,GAC3B,oBAAoB,GACpB,8BAA8B,GAC9B,2BAA2B,GAC3B,+BAA+B,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,aAAa,GAAG;IAC1B,IAAI,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACjC;;OAEG;IACH,WAAW,CAAC,EAAE,MAAM,GAAG,IAAI,GAAG,SAAS,CAAC;IACxC;;OAEG;IACH,aAAa,CAAC,EAAE,OAAO,GAAG,IAAI,GAAG,SAAS,CAAC;IAC3C;;OAEG;IACH,UAAU,CAAC,EA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,IAAI,GAAG,SAAS,CAAC;IACzC,MAAM,CAAC,EACH,KAAK,CACH,6BAA6B,GAC7B,uCAAuC,GACvC,oCAAoC,GACpC,wCAAwC,CAC3C,GACC,IAAI,GACJ,SAAS,CAAC;IACd,MAAM,CAAC,EAAE,KAAK,CAAC,MAAM,CAAC,GAAG,IAAI,GAAG,SAAS,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,4BAA4B,EAAE,CAAC,CAAC,OAAO,CAClD,sBAAsB,EACtB,CAAC,CAAC,UAAU,EACZ,aAAa,CAsBb,CAAC;AAEH;;;GAGG;AACH,yBAAiB,cAAc,CAAC;IAC9B,6DAA6D;IACtD,MAAM,aAAa,iDAA8B,CAAC;IACzD,8DAA8D;IACvD,MAAM,cAAc,gEAA+B,CAAC;IAC3D,wDAAwD;IACxD,KAAY,QAAQ,GAAG,sBAAsB,CAAC;CAC/C"}
|
|
@@ -26,36 +26,38 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.
|
|
29
|
+
exports.ProductUpdate$ = exports.ProductUpdate$outboundSchema = exports.ProductUpdate$inboundSchema = exports.ProductUpdatePrices$ = exports.ProductUpdatePrices$outboundSchema = exports.ProductUpdatePrices$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const existingproductprice_js_1 = require("./existingproductprice.js");
|
|
33
|
-
const
|
|
33
|
+
const productpriceonetimecustomcreate_js_1 = require("./productpriceonetimecustomcreate.js");
|
|
34
|
+
const productpriceonetimefixedcreate_js_1 = require("./productpriceonetimefixedcreate.js");
|
|
34
35
|
const productpricerecurringcreate_js_1 = require("./productpricerecurringcreate.js");
|
|
35
36
|
/** @internal */
|
|
36
|
-
exports.
|
|
37
|
-
.union([
|
|
37
|
+
exports.ProductUpdatePrices$inboundSchema = z.union([
|
|
38
38
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
39
|
-
|
|
39
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
40
40
|
productpricerecurringcreate_js_1.ProductPriceRecurringCreate$inboundSchema,
|
|
41
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
41
42
|
]);
|
|
42
43
|
/** @internal */
|
|
43
|
-
exports.
|
|
44
|
+
exports.ProductUpdatePrices$outboundSchema = z.union([
|
|
44
45
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
45
|
-
|
|
46
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
46
47
|
productpricerecurringcreate_js_1.ProductPriceRecurringCreate$outboundSchema,
|
|
48
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
47
49
|
]);
|
|
48
50
|
/**
|
|
49
51
|
* @internal
|
|
50
52
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
51
53
|
*/
|
|
52
|
-
var
|
|
53
|
-
(function (
|
|
54
|
-
/** @deprecated use `
|
|
55
|
-
|
|
56
|
-
/** @deprecated use `
|
|
57
|
-
|
|
58
|
-
})(
|
|
54
|
+
var ProductUpdatePrices$;
|
|
55
|
+
(function (ProductUpdatePrices$) {
|
|
56
|
+
/** @deprecated use `ProductUpdatePrices$inboundSchema` instead. */
|
|
57
|
+
ProductUpdatePrices$.inboundSchema = exports.ProductUpdatePrices$inboundSchema;
|
|
58
|
+
/** @deprecated use `ProductUpdatePrices$outboundSchema` instead. */
|
|
59
|
+
ProductUpdatePrices$.outboundSchema = exports.ProductUpdatePrices$outboundSchema;
|
|
60
|
+
})(ProductUpdatePrices$ || (exports.ProductUpdatePrices$ = ProductUpdatePrices$ = {}));
|
|
59
61
|
/** @internal */
|
|
60
62
|
exports.ProductUpdate$inboundSchema = z.object({
|
|
61
63
|
name: z.nullable(z.string()).optional(),
|
|
@@ -64,8 +66,9 @@ exports.ProductUpdate$inboundSchema = z.object({
|
|
|
64
66
|
is_archived: z.nullable(z.boolean()).optional(),
|
|
65
67
|
prices: z.nullable(z.array(z.union([
|
|
66
68
|
existingproductprice_js_1.ExistingProductPrice$inboundSchema,
|
|
67
|
-
|
|
69
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$inboundSchema,
|
|
68
70
|
productpricerecurringcreate_js_1.ProductPriceRecurringCreate$inboundSchema,
|
|
71
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$inboundSchema,
|
|
69
72
|
]))).optional(),
|
|
70
73
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
71
74
|
}).transform((v) => {
|
|
@@ -82,8 +85,9 @@ exports.ProductUpdate$outboundSchema = z.object({
|
|
|
82
85
|
isArchived: z.nullable(z.boolean()).optional(),
|
|
83
86
|
prices: z.nullable(z.array(z.union([
|
|
84
87
|
existingproductprice_js_1.ExistingProductPrice$outboundSchema,
|
|
85
|
-
|
|
88
|
+
productpriceonetimefixedcreate_js_1.ProductPriceOneTimeFixedCreate$outboundSchema,
|
|
86
89
|
productpricerecurringcreate_js_1.ProductPriceRecurringCreate$outboundSchema,
|
|
90
|
+
productpriceonetimecustomcreate_js_1.ProductPriceOneTimeCustomCreate$outboundSchema,
|
|
87
91
|
]))).optional(),
|
|
88
92
|
medias: z.nullable(z.array(z.string())).optional(),
|
|
89
93
|
}).transform((v) => {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"productupdate.js","sourceRoot":"","sources":["../../src/models/components/productupdate.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uE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,EAAE;IACjB,OAAO,IAAA,qBAAM,EAAC,CAAC,EAAE;QACf,aAAa,EAAE,gBAAgB;QAC/B,UAAU,EAAE,aAAa;KAC1B,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,cAAc,CAO9B;AAPD,WAAiB,cAAc;IAC7B,6DAA6D;IAChD,4BAAa,GAAG,mCAA2B,CAAC;IACzD,8DAA8D;IACjD,6BAAc,GAAG,oCAA4B,CAAC;AAG7D,CAAC,EAPgB,cAAc,8BAAd,cAAc,QAO9B"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductInput, ProductInput$Outbound } from "./productinput.js";
|
|
3
3
|
import { ProductPriceInput, ProductPriceInput$Outbound } from "./productpriceinput.js";
|
|
4
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
4
5
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
5
6
|
import { SubscriptionUser, SubscriptionUser$Outbound } from "./subscriptionuser.js";
|
|
6
7
|
export type SubscriptionInput = {
|
|
@@ -16,6 +17,9 @@ export type SubscriptionInput = {
|
|
|
16
17
|
* The ID of the object.
|
|
17
18
|
*/
|
|
18
19
|
id: string;
|
|
20
|
+
amount: number | null;
|
|
21
|
+
currency: string | null;
|
|
22
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
19
23
|
status: SubscriptionStatus;
|
|
20
24
|
currentPeriodStart: Date;
|
|
21
25
|
currentPeriodEnd: Date | null;
|
|
@@ -39,6 +43,9 @@ export type SubscriptionInput$Outbound = {
|
|
|
39
43
|
created_at: string;
|
|
40
44
|
modified_at: string | null;
|
|
41
45
|
id: string;
|
|
46
|
+
amount: number | null;
|
|
47
|
+
currency: string | null;
|
|
48
|
+
recurring_interval: string;
|
|
42
49
|
status: string;
|
|
43
50
|
current_period_start: string;
|
|
44
51
|
current_period_end: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptioninput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,YAAY,EAEZ,qBAAqB,EAEtB,MAAM,mBAAmB,CAAC;AAC3B,OAAO,EACL,iBAAiB,EAEjB,0BAA0B,EAE3B,MAAM,wBAAwB,CAAC;AAChC,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,iBAAiB,GAAG;IAC9B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kBAAkB,EAAE,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,YAAY,CAAC;IACtB,KAAK,EAAE,iBAAiB,GAAG,IAAI,CAAC;CACjC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,+BAA+B,EAAE,CAAC,CAAC,OAAO,CACrD,iBAAiB,EACjB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"subscriptioninput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":"AAIA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;AAEH,gBAAgB;AAChB,MAAM,MAAM,0BAA0B,GAAG;IACvC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,qBAAqB,CAAC;IAC/B,KAAK,EAAE,0BAA0B,GAAG,IAAI,CAAC;CAC1C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,0BAA0B,EAC1B,CAAC,CAAC,UAAU,EACZ,iBAAiB,CAkCjB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,kBAAkB,CAAC;IAClC,iEAAiE;IAC1D,MAAM,aAAa,qDAAkC,CAAC;IAC7D,kEAAkE;IAC3D,MAAM,cAAc,wEAAmC,CAAC;IAC/D,4DAA4D;IAC5D,KAAY,QAAQ,GAAG,0BAA0B,CAAC;CACnD"}
|
|
@@ -31,6 +31,7 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const productinput_js_1 = require("./productinput.js");
|
|
33
33
|
const productpriceinput_js_1 = require("./productpriceinput.js");
|
|
34
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
34
35
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
35
36
|
const subscriptionuser_js_1 = require("./subscriptionuser.js");
|
|
36
37
|
/** @internal */
|
|
@@ -38,6 +39,9 @@ exports.SubscriptionInput$inboundSchema = z.object({
|
|
|
38
39
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
40
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
40
41
|
id: z.string(),
|
|
42
|
+
amount: z.nullable(z.number().int()),
|
|
43
|
+
currency: z.nullable(z.string()),
|
|
44
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
41
45
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
42
46
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
47
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -54,6 +58,7 @@ exports.SubscriptionInput$inboundSchema = z.object({
|
|
|
54
58
|
return (0, primitives_js_1.remap)(v, {
|
|
55
59
|
"created_at": "createdAt",
|
|
56
60
|
"modified_at": "modifiedAt",
|
|
61
|
+
"recurring_interval": "recurringInterval",
|
|
57
62
|
"current_period_start": "currentPeriodStart",
|
|
58
63
|
"current_period_end": "currentPeriodEnd",
|
|
59
64
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -69,6 +74,9 @@ exports.SubscriptionInput$outboundSchema = z.object({
|
|
|
69
74
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
70
75
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
71
76
|
id: z.string(),
|
|
77
|
+
amount: z.nullable(z.number().int()),
|
|
78
|
+
currency: z.nullable(z.string()),
|
|
79
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
72
80
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
73
81
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
74
82
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -85,6 +93,7 @@ exports.SubscriptionInput$outboundSchema = z.object({
|
|
|
85
93
|
return (0, primitives_js_1.remap)(v, {
|
|
86
94
|
createdAt: "created_at",
|
|
87
95
|
modifiedAt: "modified_at",
|
|
96
|
+
recurringInterval: "recurring_interval",
|
|
88
97
|
currentPeriodStart: "current_period_start",
|
|
89
98
|
currentPeriodEnd: "current_period_end",
|
|
90
99
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptioninput.js","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uDAK2B;AAC3B,iEAKgC;AAChC,mEAIiC;AACjC,+DAK+B;
|
|
1
|
+
{"version":3,"file":"subscriptioninput.js","sourceRoot":"","sources":["../../src/models/components/subscriptioninput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,uDAK2B;AAC3B,iEAKgC;AAChC,yFAI4C;AAC5C,mEAIiC;AACjC,+DAK+B;AAmC/B,gBAAgB;AACH,QAAA,+BAA+B,GAIxC,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,C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AO,EAAE,UAAU;QACnB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,kBAAkB,CAOlC;AAPD,WAAiB,kBAAkB;IACjC,iEAAiE;IACpD,gCAAa,GAAG,uCAA+B,CAAC;IAC7D,kEAAkE;IACrD,iCAAc,GAAG,wCAAgC,CAAC;AAGjE,CAAC,EAPgB,kBAAkB,kCAAlB,kBAAkB,QAOlC"}
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
2
|
import { ProductOutput, ProductOutput$Outbound } from "./productoutput.js";
|
|
3
3
|
import { ProductPriceOutput, ProductPriceOutput$Outbound } from "./productpriceoutput.js";
|
|
4
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
4
5
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
5
6
|
import { SubscriptionUser, SubscriptionUser$Outbound } from "./subscriptionuser.js";
|
|
6
7
|
export type SubscriptionOutput = {
|
|
@@ -16,6 +17,9 @@ export type SubscriptionOutput = {
|
|
|
16
17
|
* The ID of the object.
|
|
17
18
|
*/
|
|
18
19
|
id: string;
|
|
20
|
+
amount: number | null;
|
|
21
|
+
currency: string | null;
|
|
22
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
19
23
|
status: SubscriptionStatus;
|
|
20
24
|
currentPeriodStart: Date;
|
|
21
25
|
currentPeriodEnd: Date | null;
|
|
@@ -39,6 +43,9 @@ export type SubscriptionOutput$Outbound = {
|
|
|
39
43
|
created_at: string;
|
|
40
44
|
modified_at: string | null;
|
|
41
45
|
id: string;
|
|
46
|
+
amount: number | null;
|
|
47
|
+
currency: string | null;
|
|
48
|
+
recurring_interval: string;
|
|
42
49
|
status: string;
|
|
43
50
|
current_period_start: string;
|
|
44
51
|
current_period_end: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,aAAa,EAEb,sBAAsB,EAEvB,MAAM,oBAAoB,CAAC;AAC5B,OAAO,EACL,kBAAkB,EAElB,2BAA2B,EAE5B,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AACjC,OAAO,EACL,gBAAgB,EAEhB,yBAAyB,EAE1B,MAAM,uBAAuB,CAAC;AAE/B,MAAM,MAAM,kBAAkB,GAAG;IAC/B;;OAEG;IACH,SAAS,EAAE,IAAI,CAAC;IAChB;;OAEG;IACH,UAAU,EAAE,IAAI,GAAG,IAAI,CAAC;IACxB;;OAEG;IACH,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kBAAkB,EAAE,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;IACvB,IAAI,EAAE,gBAAgB,CAAC;IACvB;;OAEG;IACH,OAAO,EAAE,aAAa,CAAC;IACvB,KAAK,EAAE,kBAAkB,GAAG,IAAI,CAAC;CAClC,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,gCAAgC,EAAE,CAAC,CAAC,OAAO,CACtD,kBAAkB,EAClB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"subscriptionoutput.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"m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P,CAAC;AAEH,gBAAgB;AAChB,MAAM,MAAM,2BAA2B,GAAG;IACxC,UAAU,EAAE,MAAM,CAAC;IACnB,WAAW,EAAE,MAAM,GAAG,IAAI,CAAC;IAC3B,EAAE,EAAE,MAAM,CAAC;IACX,MAAM,EAAE,MAAM,GAAG,IAAI,CAAC;IACtB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,kBAAkB,EAAE,MAAM,CAAC;IAC3B,MAAM,EAAE,MAAM,CAAC;IACf,oBAAoB,EAAE,MAAM,CAAC;IAC7B,kBAAkB,EAAE,MAAM,GAAG,IAAI,CAAC;IAClC,oBAAoB,EAAE,OAAO,CAAC;IAC9B,UAAU,EAAE,MAAM,GAAG,IAAI,CAAC;IAC1B,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;IACxB,IAAI,EAAE,yBAAyB,CAAC;IAChC,OAAO,EAAE,sBAAsB,CAAC;IAChC,KAAK,EAAE,2BAA2B,GAAG,IAAI,CAAC;CAC3C,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,iCAAiC,EAAE,CAAC,CAAC,OAAO,CACvD,2BAA2B,EAC3B,CAAC,CAAC,UAAU,EACZ,kBAAkB,CAkClB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,mBAAmB,CAAC;IACnC,kEAAkE;IAC3D,MAAM,aAAa,sDAAmC,CAAC;IAC9D,mEAAmE;IAC5D,MAAM,cAAc,0EAAoC,CAAC;IAChE,6DAA6D;IAC7D,KAAY,QAAQ,GAAG,2BAA2B,CAAC;CACpD"}
|
|
@@ -31,6 +31,7 @@ const z = __importStar(require("zod"));
|
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
32
|
const productoutput_js_1 = require("./productoutput.js");
|
|
33
33
|
const productpriceoutput_js_1 = require("./productpriceoutput.js");
|
|
34
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
34
35
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
35
36
|
const subscriptionuser_js_1 = require("./subscriptionuser.js");
|
|
36
37
|
/** @internal */
|
|
@@ -38,6 +39,9 @@ exports.SubscriptionOutput$inboundSchema = z.object({
|
|
|
38
39
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
39
40
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
40
41
|
id: z.string(),
|
|
42
|
+
amount: z.nullable(z.number().int()),
|
|
43
|
+
currency: z.nullable(z.string()),
|
|
44
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
41
45
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
42
46
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
43
47
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -54,6 +58,7 @@ exports.SubscriptionOutput$inboundSchema = z.object({
|
|
|
54
58
|
return (0, primitives_js_1.remap)(v, {
|
|
55
59
|
"created_at": "createdAt",
|
|
56
60
|
"modified_at": "modifiedAt",
|
|
61
|
+
"recurring_interval": "recurringInterval",
|
|
57
62
|
"current_period_start": "currentPeriodStart",
|
|
58
63
|
"current_period_end": "currentPeriodEnd",
|
|
59
64
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -69,6 +74,9 @@ exports.SubscriptionOutput$outboundSchema = z.object({
|
|
|
69
74
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
70
75
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
71
76
|
id: z.string(),
|
|
77
|
+
amount: z.nullable(z.number().int()),
|
|
78
|
+
currency: z.nullable(z.string()),
|
|
79
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
72
80
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
73
81
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
74
82
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -85,6 +93,7 @@ exports.SubscriptionOutput$outboundSchema = z.object({
|
|
|
85
93
|
return (0, primitives_js_1.remap)(v, {
|
|
86
94
|
createdAt: "created_at",
|
|
87
95
|
modifiedAt: "modified_at",
|
|
96
|
+
recurringInterval: "recurring_interval",
|
|
88
97
|
currentPeriodStart: "current_period_start",
|
|
89
98
|
currentPeriodEnd: "current_period_end",
|
|
90
99
|
cancelAtPeriodEnd: "cancel_at_period_end",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionoutput.js","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,yDAK4B;AAC5B,mEAKiC;AACjC,mEAIiC;AACjC,+DAK+B;
|
|
1
|
+
{"version":3,"file":"subscriptionoutput.js","sourceRoot":"","sources":["../../src/models/components/subscriptionoutput.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AACzB,2DAA0D;AAC1D,yDAK4B;AAC5B,mEAKiC;AACjC,yFAI4C;AAC5C,mEAIiC;AACjC,+DAK+B;AAmC/B,gBAAgB;AACH,QAAA,gCAAgC,GAIzC,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,C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AE,YAAY;QACvB,OAAO,EAAE,UAAU;QACnB,MAAM,EAAE,SAAS;QACjB,SAAS,EAAE,YAAY;QACvB,OAAO,EAAE,UAAU;KACpB,CAAC,CAAC;AACL,CAAC,CAAC,CAAC;AAEH;;;GAGG;AACH,IAAiB,mBAAmB,CAOnC;AAPD,WAAiB,mBAAmB;IAClC,kEAAkE;IACrD,iCAAa,GAAG,wCAAgC,CAAC;IAC9D,mEAAmE;IACtD,kCAAc,GAAG,yCAAiC,CAAC;AAGlE,CAAC,EAPgB,mBAAmB,mCAAnB,mBAAmB,QAOnC"}
|
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
import * as z from "zod";
|
|
2
|
+
import { ClosedEnum } from "../../types/enums.js";
|
|
3
|
+
export declare const SubscriptionRecurringInterval: {
|
|
4
|
+
readonly Month: "month";
|
|
5
|
+
readonly Year: "year";
|
|
6
|
+
};
|
|
7
|
+
export type SubscriptionRecurringInterval = ClosedEnum<typeof SubscriptionRecurringInterval>;
|
|
8
|
+
/** @internal */
|
|
9
|
+
export declare const SubscriptionRecurringInterval$inboundSchema: z.ZodNativeEnum<typeof SubscriptionRecurringInterval>;
|
|
10
|
+
/** @internal */
|
|
11
|
+
export declare const SubscriptionRecurringInterval$outboundSchema: z.ZodNativeEnum<typeof SubscriptionRecurringInterval>;
|
|
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 SubscriptionRecurringInterval$ {
|
|
17
|
+
/** @deprecated use `SubscriptionRecurringInterval$inboundSchema` instead. */
|
|
18
|
+
const inboundSchema: z.ZodNativeEnum<{
|
|
19
|
+
readonly Month: "month";
|
|
20
|
+
readonly Year: "year";
|
|
21
|
+
}>;
|
|
22
|
+
/** @deprecated use `SubscriptionRecurringInterval$outboundSchema` instead. */
|
|
23
|
+
const outboundSchema: z.ZodNativeEnum<{
|
|
24
|
+
readonly Month: "month";
|
|
25
|
+
readonly Year: "year";
|
|
26
|
+
}>;
|
|
27
|
+
}
|
|
28
|
+
//# sourceMappingURL=subscriptionrecurringinterval.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"subscriptionrecurringinterval.d.ts","sourceRoot":"","sources":["../../src/models/components/subscriptionrecurringinterval.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AACzB,OAAO,EAAE,UAAU,EAAE,MAAM,sBAAsB,CAAC;AAElD,eAAO,MAAM,6BAA6B;;;CAGhC,CAAC;AACX,MAAM,MAAM,6BAA6B,GAAG,UAAU,CACpD,OAAO,6BAA6B,CACrC,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"}
|
package/models/components/{productpricerecurringinterval.js → subscriptionrecurringinterval.js}
RENAMED
|
@@ -26,25 +26,25 @@ var __importStar = (this && this.__importStar) || function (mod) {
|
|
|
26
26
|
return result;
|
|
27
27
|
};
|
|
28
28
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
29
|
-
exports.
|
|
29
|
+
exports.SubscriptionRecurringInterval$ = exports.SubscriptionRecurringInterval$outboundSchema = exports.SubscriptionRecurringInterval$inboundSchema = exports.SubscriptionRecurringInterval = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
|
-
exports.
|
|
31
|
+
exports.SubscriptionRecurringInterval = {
|
|
32
32
|
Month: "month",
|
|
33
33
|
Year: "year",
|
|
34
34
|
};
|
|
35
35
|
/** @internal */
|
|
36
|
-
exports.
|
|
36
|
+
exports.SubscriptionRecurringInterval$inboundSchema = z.nativeEnum(exports.SubscriptionRecurringInterval);
|
|
37
37
|
/** @internal */
|
|
38
|
-
exports.
|
|
38
|
+
exports.SubscriptionRecurringInterval$outboundSchema = exports.SubscriptionRecurringInterval$inboundSchema;
|
|
39
39
|
/**
|
|
40
40
|
* @internal
|
|
41
41
|
* @deprecated This namespace will be removed in future versions. Use schemas and types that are exported directly from this module.
|
|
42
42
|
*/
|
|
43
|
-
var
|
|
44
|
-
(function (
|
|
45
|
-
/** @deprecated use `
|
|
46
|
-
|
|
47
|
-
/** @deprecated use `
|
|
48
|
-
|
|
49
|
-
})(
|
|
50
|
-
//# sourceMappingURL=
|
|
43
|
+
var SubscriptionRecurringInterval$;
|
|
44
|
+
(function (SubscriptionRecurringInterval$) {
|
|
45
|
+
/** @deprecated use `SubscriptionRecurringInterval$inboundSchema` instead. */
|
|
46
|
+
SubscriptionRecurringInterval$.inboundSchema = exports.SubscriptionRecurringInterval$inboundSchema;
|
|
47
|
+
/** @deprecated use `SubscriptionRecurringInterval$outboundSchema` instead. */
|
|
48
|
+
SubscriptionRecurringInterval$.outboundSchema = exports.SubscriptionRecurringInterval$outboundSchema;
|
|
49
|
+
})(SubscriptionRecurringInterval$ || (exports.SubscriptionRecurringInterval$ = SubscriptionRecurringInterval$ = {}));
|
|
50
|
+
//# sourceMappingURL=subscriptionrecurringinterval.js.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"
|
|
1
|
+
{"version":3,"file":"subscriptionrecurringinterval.js","sourceRoot":"","sources":["../../src/models/components/subscriptionrecurringinterval.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,6BAA6B,GAAG;IAC3C,KAAK,EAAE,OAAO;IACd,IAAI,EAAE,MAAM;CACJ,CAAC;AAKX,gBAAgB;AACH,QAAA,2CAA2C,GAEpD,CAAC,CAAC,UAAU,CAAC,qCAA6B,CAAC,CAAC;AAEhD,gBAAgB;AACH,QAAA,4CAA4C,GAErD,mDAA2C,CAAC;AAEhD;;;GAGG;AACH,IAAiB,8BAA8B,CAK9C;AALD,WAAiB,8BAA8B;IAC7C,6EAA6E;IAChE,4CAAa,GAAG,mDAA2C,CAAC;IACzE,8EAA8E;IACjE,6CAAc,GAAG,oDAA4C,CAAC;AAC7E,CAAC,EALgB,8BAA8B,8CAA9B,8BAA8B,QAK9C"}
|
|
@@ -9,8 +9,8 @@ export declare const SubscriptionSortProperty: {
|
|
|
9
9
|
readonly MinusStartedAt: "-started_at";
|
|
10
10
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
11
11
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
12
|
-
readonly
|
|
13
|
-
readonly
|
|
12
|
+
readonly Amount: "amount";
|
|
13
|
+
readonly MinusAmount: "-amount";
|
|
14
14
|
readonly SubscriptionTierType: "subscription_tier_type";
|
|
15
15
|
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
16
16
|
readonly Product: "product";
|
|
@@ -36,8 +36,8 @@ export declare namespace SubscriptionSortProperty$ {
|
|
|
36
36
|
readonly MinusStartedAt: "-started_at";
|
|
37
37
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
38
38
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
39
|
-
readonly
|
|
40
|
-
readonly
|
|
39
|
+
readonly Amount: "amount";
|
|
40
|
+
readonly MinusAmount: "-amount";
|
|
41
41
|
readonly SubscriptionTierType: "subscription_tier_type";
|
|
42
42
|
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
43
43
|
readonly Product: "product";
|
|
@@ -53,8 +53,8 @@ export declare namespace SubscriptionSortProperty$ {
|
|
|
53
53
|
readonly MinusStartedAt: "-started_at";
|
|
54
54
|
readonly CurrentPeriodEnd: "current_period_end";
|
|
55
55
|
readonly MinusCurrentPeriodEnd: "-current_period_end";
|
|
56
|
-
readonly
|
|
57
|
-
readonly
|
|
56
|
+
readonly Amount: "amount";
|
|
57
|
+
readonly MinusAmount: "-amount";
|
|
58
58
|
readonly SubscriptionTierType: "subscription_tier_type";
|
|
59
59
|
readonly MinusSubscriptionTierType: "-subscription_tier_type";
|
|
60
60
|
readonly Product: "product";
|
|
@@ -37,8 +37,8 @@ exports.SubscriptionSortProperty = {
|
|
|
37
37
|
MinusStartedAt: "-started_at",
|
|
38
38
|
CurrentPeriodEnd: "current_period_end",
|
|
39
39
|
MinusCurrentPeriodEnd: "-current_period_end",
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
Amount: "amount",
|
|
41
|
+
MinusAmount: "-amount",
|
|
42
42
|
SubscriptionTierType: "subscription_tier_type",
|
|
43
43
|
MinusSubscriptionTierType: "-subscription_tier_type",
|
|
44
44
|
Product: "product",
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"subscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,oBAAoB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,
|
|
1
|
+
{"version":3,"file":"subscriptionsortproperty.js","sourceRoot":"","sources":["../../src/models/components/subscriptionsortproperty.ts"],"names":[],"mappings":";AAAA;;GAEG;;;;;;;;;;;;;;;;;;;;;;;;;;AAEH,uCAAyB;AAGZ,QAAA,wBAAwB,GAAG;IACtC,IAAI,EAAE,MAAM;IACZ,SAAS,EAAE,OAAO;IAClB,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,SAAS,EAAE,YAAY;IACvB,cAAc,EAAE,aAAa;IAC7B,gBAAgB,EAAE,oBAAoB;IACtC,qBAAqB,EAAE,qBAAqB;IAC5C,MAAM,EAAE,QAAQ;IAChB,WAAW,EAAE,SAAS;IACtB,oBAAoB,EAAE,wBAAwB;IAC9C,yBAAyB,EAAE,yBAAyB;IACpD,OAAO,EAAE,SAAS;IAClB,YAAY,EAAE,UAAU;CAChB,CAAC;AAKX,gBAAgB;AACH,QAAA,sCAAsC,GAE/C,CAAC,CAAC,UAAU,CAAC,gCAAwB,CAAC,CAAC;AAE3C,gBAAgB;AACH,QAAA,uCAAuC,GAEhD,8CAAsC,CAAC;AAE3C;;;GAGG;AACH,IAAiB,yBAAyB,CAKzC;AALD,WAAiB,yBAAyB;IACxC,wEAAwE;IAC3D,uCAAa,GAAG,8CAAsC,CAAC;IACpE,yEAAyE;IAC5D,wCAAc,GAAG,+CAAuC,CAAC;AACxE,CAAC,EALgB,yBAAyB,yCAAzB,yBAAyB,QAKzC"}
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
import * as z from "zod";
|
|
2
|
+
import { SubscriptionRecurringInterval } from "./subscriptionrecurringinterval.js";
|
|
2
3
|
import { SubscriptionStatus } from "./subscriptionstatus.js";
|
|
3
4
|
export type UserOrderSubscription = {
|
|
4
5
|
/**
|
|
@@ -13,6 +14,9 @@ export type UserOrderSubscription = {
|
|
|
13
14
|
* The ID of the object.
|
|
14
15
|
*/
|
|
15
16
|
id: string;
|
|
17
|
+
amount: number | null;
|
|
18
|
+
currency: string | null;
|
|
19
|
+
recurringInterval: SubscriptionRecurringInterval;
|
|
16
20
|
status: SubscriptionStatus;
|
|
17
21
|
currentPeriodStart: Date;
|
|
18
22
|
currentPeriodEnd: Date | null;
|
|
@@ -30,6 +34,9 @@ export type UserOrderSubscription$Outbound = {
|
|
|
30
34
|
created_at: string;
|
|
31
35
|
modified_at: string | null;
|
|
32
36
|
id: string;
|
|
37
|
+
amount: number | null;
|
|
38
|
+
currency: string | null;
|
|
39
|
+
recurring_interval: string;
|
|
33
40
|
status: string;
|
|
34
41
|
current_period_start: string;
|
|
35
42
|
current_period_end: string | null;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"userordersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AAEjC,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,MAAM,EAAE,kBAAkB,CAAC;IAC3B,kBAAkB,EAAE,IAAI,CAAC;IACzB,gBAAgB,EAAE,IAAI,GAAG,IAAI,CAAC;IAC9B,iBAAiB,EAAE,OAAO,CAAC;IAC3B,SAAS,EAAE,IAAI,GAAG,IAAI,CAAC;IACvB,OAAO,EAAE,IAAI,GAAG,IAAI,CAAC;IACrB,MAAM,EAAE,MAAM,CAAC;IACf,SAAS,EAAE,MAAM,CAAC;IAClB,OAAO,EAAE,MAAM,GAAG,IAAI,CAAC;CACxB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,mCAAmC,EAAE,CAAC,CAAC,OAAO,CACzD,qBAAqB,EACrB,CAAC,CAAC,UAAU,EACZ,OAAO,
|
|
1
|
+
{"version":3,"file":"userordersubscription.d.ts","sourceRoot":"","sources":["../../src/models/components/userordersubscription.ts"],"names":[],"mappings":"AAIA,OAAO,KAAK,CAAC,MAAM,KAAK,CAAC;AAEzB,OAAO,EACL,6BAA6B,EAG9B,MAAM,oCAAoC,CAAC;AAC5C,OAAO,EACL,kBAAkB,EAGnB,MAAM,yBAAyB,CAAC;AAEjC,MAA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AAG,IAAI,CAAC;IACxB,OAAO,EAAE,MAAM,CAAC;IAChB,UAAU,EAAE,MAAM,CAAC;IACnB,QAAQ,EAAE,MAAM,GAAG,IAAI,CAAC;CACzB,CAAC;AAEF,gBAAgB;AAChB,eAAO,MAAM,oCAAoC,EAAE,CAAC,CAAC,OAAO,CAC1D,8BAA8B,EAC9B,CAAC,CAAC,UAAU,EACZ,qBAAqB,CA+BrB,CAAC;AAEH;;;GAGG;AACH,yBAAiB,sBAAsB,CAAC;IACtC,qEAAqE;IAC9D,MAAM,aAAa,yDAAsC,CAAC;IACjE,sEAAsE;IAC/D,MAAM,cAAc,gFAAuC,CAAC;IACnE,gEAAgE;IAChE,KAAY,QAAQ,GAAG,8BAA8B,CAAC;CACvD"}
|
|
@@ -29,12 +29,16 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
29
29
|
exports.UserOrderSubscription$ = exports.UserOrderSubscription$outboundSchema = exports.UserOrderSubscription$inboundSchema = void 0;
|
|
30
30
|
const z = __importStar(require("zod"));
|
|
31
31
|
const primitives_js_1 = require("../../lib/primitives.js");
|
|
32
|
+
const subscriptionrecurringinterval_js_1 = require("./subscriptionrecurringinterval.js");
|
|
32
33
|
const subscriptionstatus_js_1 = require("./subscriptionstatus.js");
|
|
33
34
|
/** @internal */
|
|
34
35
|
exports.UserOrderSubscription$inboundSchema = z.object({
|
|
35
36
|
created_at: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
36
37
|
modified_at: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
37
38
|
id: z.string(),
|
|
39
|
+
amount: z.nullable(z.number().int()),
|
|
40
|
+
currency: z.nullable(z.string()),
|
|
41
|
+
recurring_interval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$inboundSchema,
|
|
38
42
|
status: subscriptionstatus_js_1.SubscriptionStatus$inboundSchema,
|
|
39
43
|
current_period_start: z.string().datetime({ offset: true }).transform(v => new Date(v)),
|
|
40
44
|
current_period_end: z.nullable(z.string().datetime({ offset: true }).transform(v => new Date(v))),
|
|
@@ -48,6 +52,7 @@ exports.UserOrderSubscription$inboundSchema = z.object({
|
|
|
48
52
|
return (0, primitives_js_1.remap)(v, {
|
|
49
53
|
"created_at": "createdAt",
|
|
50
54
|
"modified_at": "modifiedAt",
|
|
55
|
+
"recurring_interval": "recurringInterval",
|
|
51
56
|
"current_period_start": "currentPeriodStart",
|
|
52
57
|
"current_period_end": "currentPeriodEnd",
|
|
53
58
|
"cancel_at_period_end": "cancelAtPeriodEnd",
|
|
@@ -63,6 +68,9 @@ exports.UserOrderSubscription$outboundSchema = z.object({
|
|
|
63
68
|
createdAt: z.date().transform(v => v.toISOString()),
|
|
64
69
|
modifiedAt: z.nullable(z.date().transform(v => v.toISOString())),
|
|
65
70
|
id: z.string(),
|
|
71
|
+
amount: z.nullable(z.number().int()),
|
|
72
|
+
currency: z.nullable(z.string()),
|
|
73
|
+
recurringInterval: subscriptionrecurringinterval_js_1.SubscriptionRecurringInterval$outboundSchema,
|
|
66
74
|
status: subscriptionstatus_js_1.SubscriptionStatus$outboundSchema,
|
|
67
75
|
currentPeriodStart: z.date().transform(v => v.toISOString()),
|
|
68
76
|
currentPeriodEnd: z.nullable(z.date().transform(v => v.toISOString())),
|
|
@@ -76,6 +84,7 @@ exports.UserOrderSubscription$outboundSchema = z.object({
|
|
|
76
84
|
return (0, primitives_js_1.remap)(v, {
|
|
77
85
|
createdAt: "created_at",
|
|
78
86
|
modifiedAt: "modified_at",
|
|
87
|
+
recurringInterval: "recurring_interval",
|
|
79
88
|
currentPeriodStart: "current_period_start",
|
|
80
89
|
currentPeriodEnd: "current_period_end",
|
|
81
90
|
cancelAtPeriodEnd: "cancel_at_period_end",
|