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.

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