@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.82 kB
JavaScript
;
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
exports.__esModule = true;
exports.createPaymentProfileSchema = void 0;
var schema_1 = require("../schema");
var allVaults_1 = require("./allVaults");
var bankAccountHolderType_1 = require("./bankAccountHolderType");
var bankAccountType_1 = require("./bankAccountType");
var cardType_1 = require("./cardType");
var createPaymentProfileExpirationMonth_1 = require("./containers/createPaymentProfileExpirationMonth");
var createPaymentProfileExpirationYear_1 = require("./containers/createPaymentProfileExpirationYear");
var paymentType_1 = require("./paymentType");
exports.createPaymentProfileSchema = (0, schema_1.expandoObject)({
chargifyToken: ['chargify_token', (0, schema_1.optional)((0, schema_1.string)())],
id: ['id', (0, schema_1.optional)((0, schema_1.number)())],
paymentType: ['payment_type', (0, schema_1.optional)(paymentType_1.paymentTypeSchema)],
firstName: ['first_name', (0, schema_1.optional)((0, schema_1.string)())],
lastName: ['last_name', (0, schema_1.optional)((0, schema_1.string)())],
maskedCardNumber: ['masked_card_number', (0, schema_1.optional)((0, schema_1.string)())],
fullNumber: ['full_number', (0, schema_1.optional)((0, schema_1.string)())],
cardType: ['card_type', (0, schema_1.optional)(cardType_1.cardTypeSchema)],
expirationMonth: [
'expiration_month',
(0, schema_1.optional)(createPaymentProfileExpirationMonth_1.createPaymentProfileExpirationMonthSchema),
],
expirationYear: [
'expiration_year',
(0, schema_1.optional)(createPaymentProfileExpirationYear_1.createPaymentProfileExpirationYearSchema),
],
billingAddress: ['billing_address', (0, schema_1.optional)((0, schema_1.string)())],
billingAddress2: ['billing_address_2', (0, schema_1.optional)((0, schema_1.nullable)((0, schema_1.string)()))],
billingCity: ['billing_city', (0, schema_1.optional)((0, schema_1.string)())],
billingState: ['billing_state', (0, schema_1.optional)((0, schema_1.string)())],
billingCountry: ['billing_country', (0, schema_1.optional)((0, schema_1.string)())],
billingZip: ['billing_zip', (0, schema_1.optional)((0, schema_1.string)())],
currentVault: ['current_vault', (0, schema_1.optional)(allVaults_1.allVaultsSchema)],
vaultToken: ['vault_token', (0, schema_1.optional)((0, schema_1.string)())],
customerVaultToken: ['customer_vault_token', (0, schema_1.optional)((0, schema_1.string)())],
customerId: ['customer_id', (0, schema_1.optional)((0, schema_1.number)())],
paypalEmail: ['paypal_email', (0, schema_1.optional)((0, schema_1.string)())],
paymentMethodNonce: ['payment_method_nonce', (0, schema_1.optional)((0, schema_1.string)())],
gatewayHandle: ['gateway_handle', (0, schema_1.optional)((0, schema_1.string)())],
cvv: ['cvv', (0, schema_1.optional)((0, schema_1.string)())],
bankName: ['bank_name', (0, schema_1.optional)((0, schema_1.string)())],
bankIban: ['bank_iban', (0, schema_1.optional)((0, schema_1.string)())],
bankRoutingNumber: ['bank_routing_number', (0, schema_1.optional)((0, schema_1.string)())],
bankAccountNumber: ['bank_account_number', (0, schema_1.optional)((0, schema_1.string)())],
bankBranchCode: ['bank_branch_code', (0, schema_1.optional)((0, schema_1.string)())],
bankAccountType: ['bank_account_type', (0, schema_1.optional)(bankAccountType_1.bankAccountTypeSchema)],
bankAccountHolderType: [
'bank_account_holder_type',
(0, schema_1.optional)(bankAccountHolderType_1.bankAccountHolderTypeSchema),
],
lastFour: ['last_four', (0, schema_1.optional)((0, schema_1.string)())]
});
//# sourceMappingURL=createPaymentProfile.js.map