@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.
139 lines • 8.54 kB
JavaScript
"use strict";
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.subscriptionSchema = void 0;
var schema_1 = require("../schema");
var bankAccountPaymentProfile_1 = require("./bankAccountPaymentProfile");
var cancellationMethod_1 = require("./cancellationMethod");
var collectionMethod_1 = require("./collectionMethod");
var creditCardPaymentProfile_1 = require("./creditCardPaymentProfile");
var customer_1 = require("./customer");
var nestedSubscriptionGroup_1 = require("./nestedSubscriptionGroup");
var prepaidConfiguration_1 = require("./prepaidConfiguration");
var pricePointType_1 = require("./pricePointType");
var product_1 = require("./product");
var subscriptionIncludedCoupon_1 = require("./subscriptionIncludedCoupon");
var subscriptionState_1 = require("./subscriptionState");
exports.subscriptionSchema = (0, schema_1.expandoObject)({
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
state: ['state', (0, schema_1.optional)(subscriptionState_1.subscriptionStateSchema)],
balanceInCents: ['balance_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
totalRevenueInCents: ['total_revenue_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
productPriceInCents: ['product_price_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
productVersionNumber: ['product_version_number', (0, schema_1.optional)((0, schema_1.number)())],
currentPeriodEndsAt: ['current_period_ends_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
nextAssessmentAt: ['next_assessment_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
trialStartedAt: ['trial_started_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
trialEndedAt: ['trial_ended_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
activatedAt: ['activated_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
expiresAt: ['expires_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
createdAt: ['created_at', (0, schema_1.optional)((0, schema_1.string)())],
updatedAt: ['updated_at', (0, schema_1.optional)((0, schema_1.string)())],
cancellationMessage: ['cancellation_message', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
cancellationMethod: [
'cancellation_method',
(0, schema_1.optional)((0, schema_1.nullable)(cancellationMethod_1.cancellationMethodSchema)),
],
cancelAtEndOfPeriod: [
'cancel_at_end_of_period',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
canceledAt: ['canceled_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
currentPeriodStartedAt: [
'current_period_started_at',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
],
previousState: ['previous_state', (0, schema_1.optional)(subscriptionState_1.subscriptionStateSchema)],
signupPaymentId: ['signup_payment_id', (0, schema_1.optional)((0, schema_1.number)())],
signupRevenue: ['signup_revenue', (0, schema_1.optional)((0, schema_1.string)())],
delayedCancelAt: ['delayed_cancel_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
couponCode: ['coupon_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
snapDay: ['snap_day', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
paymentCollectionMethod: [
'payment_collection_method',
(0, schema_1.optional)(collectionMethod_1.collectionMethodSchema),
],
customer: ['customer', (0, schema_1.optional)((0, schema_1.lazy)(function () { return customer_1.customerSchema; }))],
product: ['product', (0, schema_1.optional)((0, schema_1.lazy)(function () { return product_1.productSchema; }))],
creditCard: [
'credit_card',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return creditCardPaymentProfile_1.creditCardPaymentProfileSchema; })),
],
group: [
'group',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.lazy)(function () { return nestedSubscriptionGroup_1.nestedSubscriptionGroupSchema; }))),
],
bankAccount: [
'bank_account',
(0, schema_1.optional)((0, schema_1.lazy)(function () { return bankAccountPaymentProfile_1.bankAccountPaymentProfileSchema; })),
],
paymentType: ['payment_type', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
referralCode: ['referral_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
nextProductId: ['next_product_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
nextProductHandle: ['next_product_handle', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
couponUseCount: ['coupon_use_count', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
couponUsesAllowed: ['coupon_uses_allowed', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
reasonCode: ['reason_code', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
automaticallyResumeAt: [
'automatically_resume_at',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
],
couponCodes: ['coupon_codes', (0, schema_1.optional)((0, schema_1.array)((0, schema_1.string)()))],
offerId: ['offer_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
payerId: ['payer_id', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
currentBillingAmountInCents: [
'current_billing_amount_in_cents',
(0, schema_1.optional)((0, schema_1.bigint)()),
],
productPricePointId: ['product_price_point_id', (0, schema_1.optional)((0, schema_1.number)())],
productPricePointType: [
'product_price_point_type',
(0, schema_1.optional)(pricePointType_1.pricePointTypeSchema),
],
nextProductPricePointId: [
'next_product_price_point_id',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)())),
],
netTerms: ['net_terms', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)()))],
storedCredentialTransactionId: [
'stored_credential_transaction_id',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.number)())),
],
reference: ['reference', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
onHoldAt: ['on_hold_at', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
prepaidDunning: ['prepaid_dunning', (0, schema_1.optional)((0, schema_1.boolean)())],
coupons: [
'coupons',
(0, schema_1.optional)((0, schema_1.array)((0, schema_1.lazy)(function () { return subscriptionIncludedCoupon_1.subscriptionIncludedCouponSchema; }))),
],
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)())),
],
receivesInvoiceEmails: [
'receives_invoice_emails',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.boolean)())),
],
locale: ['locale', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
currency: ['currency', (0, schema_1.optional)((0, schema_1.string)())],
scheduledCancellationAt: [
'scheduled_cancellation_at',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)())),
],
creditBalanceInCents: ['credit_balance_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
prepaymentBalanceInCents: ['prepayment_balance_in_cents', (0, schema_1.optional)((0, schema_1.bigint)())],
prepaidConfiguration: [
'prepaid_configuration',
(0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.lazy)(function () { return prepaidConfiguration_1.prepaidConfigurationSchema; }))),
],
selfServicePageToken: ['self_service_page_token', (0, schema_1.optional)((0, schema_1.string)())]
});
//# sourceMappingURL=subscription.js.map