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.

118 lines 7.42 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.createSubscriptionSchema = void 0; var schema_js_1 = require("../schema.js"); var aCHAgreement_js_1 = require("./aCHAgreement.js"); var agreementAcceptance_js_1 = require("./agreementAcceptance.js"); var bankAccountAttributes_js_1 = require("./bankAccountAttributes.js"); var calendarBilling_js_1 = require("./calendarBilling.js"); var collectionMethod_js_1 = require("./collectionMethod.js"); var createSubscriptionOfferId_js_1 = require("./containers/createSubscriptionOfferId.js"); var createSubscriptionComponent_js_1 = require("./createSubscriptionComponent.js"); var customerAttributes_js_1 = require("./customerAttributes.js"); var groupSettings_js_1 = require("./groupSettings.js"); var paymentProfileAttributes_js_1 = require("./paymentProfileAttributes.js"); var subscriptionCustomPrice_js_1 = require("./subscriptionCustomPrice.js"); var upsertPrepaidConfiguration_js_1 = require("./upsertPrepaidConfiguration.js"); exports.createSubscriptionSchema = (0, schema_js_1.lazy)(function () { return (0, schema_js_1.expandoObject)({ 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)())], productPricePointHandle: ['product_price_point_handle', (0, schema_js_1.optional)((0, schema_js_1.string)())], productPricePointId: ['product_price_point_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], customPrice: ['custom_price', (0, schema_js_1.optional)(subscriptionCustomPrice_js_1.subscriptionCustomPriceSchema)], couponCode: ['coupon_code', (0, schema_js_1.optional)((0, schema_js_1.string)())], couponCodes: ['coupon_codes', (0, schema_js_1.optional)((0, schema_js_1.array)((0, schema_js_1.string)()))], paymentCollectionMethod: [ 'payment_collection_method', (0, schema_js_1.optional)(collectionMethod_js_1.collectionMethodSchema), ], receivesInvoiceEmails: ['receives_invoice_emails', (0, schema_js_1.optional)((0, schema_js_1.string)())], netTerms: ['net_terms', (0, schema_js_1.optional)((0, schema_js_1.string)())], customerId: ['customer_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], nextBillingAt: ['next_billing_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], 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)())], storedCredentialTransactionId: [ 'stored_credential_transaction_id', (0, schema_js_1.optional)((0, schema_js_1.number)()), ], salesRepId: ['sales_rep_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], paymentProfileId: ['payment_profile_id', (0, schema_js_1.optional)((0, schema_js_1.number)())], reference: ['reference', (0, schema_js_1.optional)((0, schema_js_1.string)())], customerAttributes: [ 'customer_attributes', (0, schema_js_1.optional)(customerAttributes_js_1.customerAttributesSchema), ], paymentProfileAttributes: [ 'payment_profile_attributes', (0, schema_js_1.optional)(paymentProfileAttributes_js_1.paymentProfileAttributesSchema), ], creditCardAttributes: [ 'credit_card_attributes', (0, schema_js_1.optional)(paymentProfileAttributes_js_1.paymentProfileAttributesSchema), ], bankAccountAttributes: [ 'bank_account_attributes', (0, schema_js_1.optional)(bankAccountAttributes_js_1.bankAccountAttributesSchema), ], components: [ 'components', (0, schema_js_1.optional)((0, schema_js_1.array)(createSubscriptionComponent_js_1.createSubscriptionComponentSchema)), ], calendarBilling: ['calendar_billing', (0, schema_js_1.optional)(calendarBilling_js_1.calendarBillingSchema)], metafields: ['metafields', (0, schema_js_1.optional)((0, schema_js_1.dict)((0, schema_js_1.string)()))], customerReference: ['customer_reference', (0, schema_js_1.optional)((0, schema_js_1.string)())], group: ['group', (0, schema_js_1.optional)(groupSettings_js_1.groupSettingsSchema)], ref: ['ref', (0, schema_js_1.optional)((0, schema_js_1.string)())], cancellationMessage: ['cancellation_message', (0, schema_js_1.optional)((0, schema_js_1.string)())], cancellationMethod: ['cancellation_method', (0, schema_js_1.optional)((0, schema_js_1.string)())], currency: ['currency', (0, schema_js_1.optional)((0, schema_js_1.string)())], expiresAt: ['expires_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], expirationTracksNextBillingChange: [ 'expiration_tracks_next_billing_change', (0, schema_js_1.optional)((0, schema_js_1.string)()), ], agreementTerms: ['agreement_terms', (0, schema_js_1.optional)((0, schema_js_1.string)())], authorizerFirstName: ['authorizer_first_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], authorizerLastName: ['authorizer_last_name', (0, schema_js_1.optional)((0, schema_js_1.string)())], calendarBillingFirstCharge: [ 'calendar_billing_first_charge', (0, schema_js_1.optional)((0, schema_js_1.string)()), ], reasonCode: ['reason_code', (0, schema_js_1.optional)((0, schema_js_1.string)())], productChangeDelayed: ['product_change_delayed', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], offerId: ['offer_id', (0, schema_js_1.optional)(createSubscriptionOfferId_js_1.createSubscriptionOfferIdSchema)], prepaidConfiguration: [ 'prepaid_configuration', (0, schema_js_1.optional)(upsertPrepaidConfiguration_js_1.upsertPrepaidConfigurationSchema), ], previousBillingAt: ['previous_billing_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], importMrr: ['import_mrr', (0, schema_js_1.optional)((0, schema_js_1.boolean)())], canceledAt: ['canceled_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], activatedAt: ['activated_at', (0, schema_js_1.optional)((0, schema_js_1.string)())], agreementAcceptance: [ 'agreement_acceptance', (0, schema_js_1.optional)(agreementAcceptance_js_1.agreementAcceptanceSchema), ], achAgreement: ['ach_agreement', (0, schema_js_1.optional)(aCHAgreement_js_1.aCHAgreementSchema)], 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)())), ], skipBillingManifestTaxes: [ 'skip_billing_manifest_taxes', (0, schema_js_1.optional)((0, schema_js_1.boolean)()), ], }); }); //# sourceMappingURL=createSubscription.js.map