NonReloadablePrepaidCardRequest
public struct NonReloadablePrepaidCardRequest : Encodable, Sendable
Card request model.
-
Unique identification of the card in your system.
Declaration
Swift
public let externalId: String -
This product ID is assigned to you by the Alviere team when you setup your card issuance service.
Declaration
Swift
public let productId: String -
This is the initial balance that the card being issued will have, in cents.
Declaration
Swift
public let initialBalance: Int? -
The source of funds for the initial balance of the card.
Declaration
Swift
public let fundsSource: NonReloadablePrepaidCardSourceOfFunds -
Address to ship the card to. If not present, the system will send the card to the address defined in the user account profile.
Declaration
Swift
public let shippingAddress: Address? -
The rules this card should use when authorizing a transaction.
Declaration
Swift
public let authRules: AuthRules? -
The ID to be used at the embossing process.
Declaration
Swift
public let embossId: String? -
If we need to automatically generate pin for the card.
Declaration
Swift
public let autoPinGeneration: Bool? -
Card custom fields.
Declaration
Swift
public let customFields: CardCustomFields? -
Service fees to be applied to a transaction.
Declaration
Swift
public let serviceFees: [ServiceFee]? -
Card metadata fields.
Declaration
Swift
public let metadata: [String : CustomValue]? -
init(productId:initialBalance: fundsSource: externalId: shippingAddress: authRules: embossId: autoPinGeneration: customFields: serviceFees: metadata: ) Auxiliary constructor
Declaration
Swift
public init(productId: String, initialBalance: Int, fundsSource: NonReloadablePrepaidCardSourceOfFunds, externalId: String = "", shippingAddress: AddressModel? = nil, authRules: AuthRules? = nil, embossId: String? = nil, autoPinGeneration: Bool? = nil, customFields: CardCustomFields? = nil, serviceFees: [ServiceFee]? = nil, metadata: [String: CustomValue]? = nil)Parameters
productIdThis product ID is assigned to you by the Alviere team when you setup your card issuance service.
initialBalanceThis is the initial balance that the card being issued will have, in cents.
fundsSourceThe source of funds for the initial balance of the card.
externalIdUnique identification of the card in your system.
shippingAddressAddress to ship the card to. If not present, the system will send the card to the address defined in the user account profile.
authRulesThe rules this card should use when authorizing a transaction.
embossIdThe ID to be used at the embossing process.
autoPinGenerationIf we need to automatically generate pin for the card.
customFieldsCard custom fields.
serviceFeesService fees to be applied to a transaction.
metadataCard metadata fields.
View on GitHub