UNPKG

@maxio-com/advanced-billing-sdk

Version:

Ultimate billing and pricing flexibility for B2B SaaS. Maxio integrates directly into your product, so you can seamlessly manage your product catalog, bill customers, and collect payments.

59 lines 3.67 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ Object.defineProperty(exports, "__esModule", { value: true }); exports.updateSubscriptionSchema = void 0; var schema_js_1 = require("../schema.js"); var updateSubscriptionNetTerms_js_1 = require("./containers/updateSubscriptionNetTerms.js"); var updateSubscriptionSnapDay_js_1 = require("./containers/updateSubscriptionSnapDay.js"); var creditCardAttributes_js_1 = require("./creditCardAttributes.js"); var subscriptionCustomPrice_js_1 = require("./subscriptionCustomPrice.js"); var updateSubscriptionComponent_js_1 = require("./updateSubscriptionComponent.js"); exports.updateSubscriptionSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.expandoObject)({ creditCardAttributes: [ 'credit_card_attributes', (0, schema_js_1.optional)(creditCardAttributes_js_1.creditCardAttributesSchema), ], productHandle: ['product_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())], productId: ['product_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], productChangeDelayed: ['product_change_delayed', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], nextProductId: ['next_product_id', (0, schema_js_1.optional)((0, schema_js_1.string)())], nextProductPricePointId: [ 'next_product_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.string)()), ], snapDay: ['snap_day', (0, schema_js_1.optional)((0, schema_js_1.nullable)(updateSubscriptionSnapDay_js_1.updateSubscriptionSnapDaySchema))], initialBillingAt: ['initial_billing_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], deferSignup: ['defer_signup', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], nextBillingAt: ['next_billing_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], expiresAt: ['expires_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], paymentCollectionMethod: ['payment_collection_method', (0, schema_js_1.optional)((0, schema_js_1.string)())], receivesInvoiceEmails: ['receives_invoice_emails', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], netTerms: ['net_terms', (0, schema_js_1.optional)(updateSubscriptionNetTerms_js_1.updateSubscriptionNetTermsSchema)], storedCredentialTransactionId: [ 'stored_credential_transaction_id', (0, schema_js_1.optional)((0, schema_js_1.number)()), ], reference: ['reference', (0, schema_js_1.optional)((0, schema_js_1.string)())], customPrice: ['custom_price', (0, schema_js_1.optional)(subscriptionCustomPrice_js_1.subscriptionCustomPriceSchema)], components: [ 'components', (0, schema_js_1.optional)((0, schema_js_1.array)(updateSubscriptionComponent_js_1.updateSubscriptionComponentSchema)), ], dunningCommunicationDelayEnabled: [ 'dunning_communication_delay_enabled', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], dunningCommunicationDelayTimeZone: [ 'dunning_communication_delay_time_zone', (0, schema_js_1.optional)((0, schema_js_1.nullable)((0, schema_js_1.string)())), ], productPricePointId: ['product_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], productPricePointHandle: ['product_price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())], }); }); //# sourceMappingURL=updateSubscription.js.map