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.

122 lines 7.1 kB
"use strict"; /** * AdvancedBilling * * This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ). */ exports.__esModule = true; exports.createSubscriptionSchema = void 0; var schema_1 = require("../schema"); var aCHAgreement_1 = require("./aCHAgreement"); var agreementAcceptance_1 = require("./agreementAcceptance"); var bankAccountAttributes_1 = require("./bankAccountAttributes"); var calendarBilling_1 = require("./calendarBilling"); var collectionMethod_1 = require("./collectionMethod"); var createSubscriptionOfferId_1 = require("./containers/createSubscriptionOfferId"); var createSubscriptionComponent_1 = require("./createSubscriptionComponent"); var customerAttributes_1 = require("./customerAttributes"); var groupSettings_1 = require("./groupSettings"); var paymentProfileAttributes_1 = require("./paymentProfileAttributes"); var subscriptionCustomPrice_1 = require("./subscriptionCustomPrice"); var upsertPrepaidConfiguration_1 = require("./upsertPrepaidConfiguration"); exports.createSubscriptionSchema = (0, schema_1.expandoObject)({ productHandle: ['product_handle', (0, schema_1.optional)((0, schema_1.string)())], productId: ['product_id', (0, schema_1.optional)((0, schema_1.number)())], productPricePointHandle: ['product_price_point_handle', (0, schema_1.optional)((0, schema_1.string)())], productPricePointId: ['product_price_point_id', (0, schema_1.optional)((0, schema_1.number)())], customPrice: [ 'custom_price', (0, schema_1.optional)((0, schema_1.lazy)(function () { return subscriptionCustomPrice_1.subscriptionCustomPriceSchema; })), ], couponCode: ['coupon_code', (0, schema_1.optional)((0, schema_1.string)())], couponCodes: ['coupon_codes', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.string)()))], paymentCollectionMethod: [ 'payment_collection_method', (0, schema_1.optional)(collectionMethod_1.collectionMethodSchema), ], receivesInvoiceEmails: ['receives_invoice_emails', (0, schema_1.optional)((0, schema_1.string)())], netTerms: ['net_terms', (0, schema_1.optional)((0, schema_1.string)())], customerId: ['customer_id', (0, schema_1.optional)((0, schema_1.number)())], nextBillingAt: ['next_billing_at', (0, schema_1.optional)((0, schema_1.string)())], initialBillingAt: ['initial_billing_at', (0, schema_1.optional)((0, schema_1.string)())], deferSignup: ['defer_signup', (0, schema_1.optional)((0, schema_1.boolean)())], storedCredentialTransactionId: [ 'stored_credential_transaction_id', (0, schema_1.optional)((0, schema_1.number)()), ], salesRepId: ['sales_rep_id', (0, schema_1.optional)((0, schema_1.number)())], paymentProfileId: ['payment_profile_id', (0, schema_1.optional)((0, schema_1.number)())], reference: ['reference', (0, schema_1.optional)((0, schema_1.string)())], customerAttributes: [ 'customer_attributes', (0, schema_1.optional)((0, schema_1.lazy)(function () { return customerAttributes_1.customerAttributesSchema; })), ], paymentProfileAttributes: [ 'payment_profile_attributes', (0, schema_1.optional)((0, schema_1.lazy)(function () { return paymentProfileAttributes_1.paymentProfileAttributesSchema; })), ], creditCardAttributes: [ 'credit_card_attributes', (0, schema_1.optional)((0, schema_1.lazy)(function () { return paymentProfileAttributes_1.paymentProfileAttributesSchema; })), ], bankAccountAttributes: [ 'bank_account_attributes', (0, schema_1.optional)((0, schema_1.lazy)(function () { return bankAccountAttributes_1.bankAccountAttributesSchema; })), ], components: [ 'components', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return createSubscriptionComponent_1.createSubscriptionComponentSchema; }))), ], calendarBilling: [ 'calendar_billing', (0, schema_1.optional)((0, schema_1.lazy)(function () { return calendarBilling_1.calendarBillingSchema; })), ], metafields: ['metafields', (0, schema_1.optional)((0, schema_1.dict)((0, schema_1.string)()))], customerReference: ['customer_reference', (0, schema_1.optional)((0, schema_1.string)())], group: ['group', (0, schema_1.optional)((0, schema_1.lazy)(function () { return groupSettings_1.groupSettingsSchema; }))], ref: ['ref', (0, schema_1.optional)((0, schema_1.string)())], cancellationMessage: ['cancellation_message', (0, schema_1.optional)((0, schema_1.string)())], cancellationMethod: ['cancellation_method', (0, schema_1.optional)((0, schema_1.string)())], currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())], expiresAt: ['expires_at', (0, schema_1.optional)((0, schema_1.string)())], expirationTracksNextBillingChange: [ 'expiration_tracks_next_billing_change', (0, schema_1.optional)((0, schema_1.string)()), ], agreementTerms: ['agreement_terms', (0, schema_1.optional)((0, schema_1.string)())], authorizerFirstName: ['authorizer_first_name', (0, schema_1.optional)((0, schema_1.string)())], authorizerLastName: ['authorizer_last_name', (0, schema_1.optional)((0, schema_1.string)())], calendarBillingFirstCharge: [ 'calendar_billing_first_charge', (0, schema_1.optional)((0, schema_1.string)()), ], reasonCode: ['reason_code', (0, schema_1.optional)((0, schema_1.string)())], productChangeDelayed: ['product_change_delayed', (0, schema_1.optional)((0, schema_1.boolean)())], offerId: ['offer_id', (0, schema_1.optional)(createSubscriptionOfferId_1.createSubscriptionOfferIdSchema)], prepaidConfiguration: [ 'prepaid_configuration', (0, schema_1.optional)((0, schema_1.lazy)(function () { return upsertPrepaidConfiguration_1.upsertPrepaidConfigurationSchema; })), ], previousBillingAt: ['previous_billing_at', (0, schema_1.optional)((0, schema_1.string)())], importMrr: ['import_mrr', (0, schema_1.optional)((0, schema_1.boolean)())], canceledAt: ['canceled_at', (0, schema_1.optional)((0, schema_1.string)())], activatedAt: ['activated_at', (0, schema_1.optional)((0, schema_1.string)())], agreementAcceptance: [ 'agreement_acceptance', (0, schema_1.optional)((0, schema_1.lazy)(function () { return agreementAcceptance_1.agreementAcceptanceSchema; })), ], achAgreement: ['ach_agreement', (0, schema_1.optional)((0, schema_1.lazy)(function () { return aCHAgreement_1.aCHAgreementSchema; }))], 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)())), ], skipBillingManifestTaxes: [ 'skip_billing_manifest_taxes', (0, schema_1.optional)((0, schema_1.boolean)()), ] }); //# sourceMappingURL=createSubscription.js.map