@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.
59 lines • 3.12 kB
TypeScript
/**
* AdvancedBilling
*
* This file was automatically generated for Maxio by APIMATIC v3.0 ( https://www.apimatic.io ).
*/
import { Schema } from '../schema.js';
import { CardType } from './cardType.js';
import { CreditCardVault } from './creditCardVault.js';
import { PaymentType } from './paymentType.js';
export interface CreditCardPaymentProfile {
/** The Chargify-assigned ID of the stored card. This value can be used as an input to payment_profile_id when creating a subscription, in order to re-use a stored payment profile for the same customer. */
id?: number;
/** The first name of the card holder. */
firstName?: string;
/** The last name of the card holder. */
lastName?: string;
/** A string representation of the credit card number with all but the last 4 digits masked with X’s (i.e. ‘XXXX-XXXX-XXXX-1234’). */
maskedCardNumber?: string;
/** The type of card used. */
cardType?: CardType;
/** An integer representing the expiration month of the card(1 – 12). */
expirationMonth?: number;
/** An integer representing the 4-digit expiration year of the card(i.e. ‘2012’). */
expirationYear?: number;
/** The Chargify-assigned id for the customer record to which the card belongs. */
customerId?: number;
/** The vault that stores the payment profile with the provided `vault_token`. Use `bogus` for testing. */
currentVault?: CreditCardVault;
/** The “token” provided by your vault storage for an already stored payment profile. */
vaultToken?: string | null;
/** The current billing street address for the card. */
billingAddress?: string | null;
/** The current billing address city for the card. */
billingCity?: string | null;
/** The current billing address state for the card. */
billingState?: string | null;
/** The current billing address zip code for the card. */
billingZip?: string | null;
/** The current billing address country for the card. */
billingCountry?: string | null;
/** (only for Authorize.Net CIM storage): the customerProfileId for the owner of the customerPaymentProfileId provided as the vault_token. */
customerVaultToken?: string | null;
/** The current billing street address, second line, for the card. */
billingAddress2?: string | null;
paymentType: PaymentType;
disabled?: boolean;
/** Token received after sending billing information using chargify.js. This token will only be received if passed as a sole attribute of credit_card_attributes (i.e. tok_9g6hw85pnpt6knmskpwp4ttt) */
chargifyToken?: string;
siteGatewaySettingId?: number | null;
/** An identifier of connected gateway. */
gatewayHandle?: string | null;
/** A timestamp indicating when this payment profile was created */
createdAt?: string;
/** A timestamp indicating when this payment profile was last updated */
updatedAt?: string;
[key: string]: unknown;
}
export declare const creditCardPaymentProfileSchema: Schema<CreditCardPaymentProfile>;
//# sourceMappingURL=creditCardPaymentProfile.d.ts.map