CreateBeneficiaryRequest
public struct CreateBeneficiaryRequest : Encodable, Sendable
Create beneficiary request model.
-
The unique identifier of this beneficiary in your own system.
Declaration
Swift
public let externalId: String -
Whether the beneficiary can be used for local or international transactions.
Declaration
Swift
public let type: BeneficiaryType -
Whether the beneficiary is an individual or a business.
Declaration
Swift
public let legalType: BeneficiaryLegalType -
The business’ name. Required if
legalTypeis.business.Declaration
Swift
public let businessName: String? -
The beneficiary’s first name.
Declaration
Swift
public let firstName: String? -
The beneficiary’s middle name.
Declaration
Swift
public let middleName: String? -
The beneficiary’s second last name.
Declaration
Swift
public let secondLastName: String? -
The beneficiary’s last name.
Declaration
Swift
public let lastName: String? -
Three-letter country code (ISO 3166-1 alpha-3). The keys can be mapped from
Countryif you want type safety.Declaration
Swift
public let country: String -
The currency details what currency type is being used for the transaction, using the ISO-4217 format. The keys can be mapped from
Currencyif you want type safety.Declaration
Swift
public let currency: String -
Beneficiary address model. Optional.
Declaration
Swift
public let address: OptionalAddress? -
Beneficiary date of birth. Optional.
Declaration
Swift
public let dateOfBirth: String? -
The beneficiary’s phone number. Optional.
Declaration
Swift
public let phoneNumber: String? -
The beneficiary’s label. Optional.
Declaration
Swift
public let label: String? -
Identifying number used for tax purposes.
Declaration
Swift
public let taxId: String? -
The beneficiary’s id information.
Declaration
Swift
public let idInformation: IdInformation? -
init(externalId:type: country: currency: firstName: middleName: lastName: secondLastName: legalType: businessName: address: dateOfBirth: phoneNumber: label: taxId: idInformation: ) Auxiliary constructor.
Declaration
Swift
public init(externalId: String, type: BeneficiaryType, country: String, currency: String, firstName: String? = nil, middleName: String? = nil, lastName: String? = nil, secondLastName: String? = nil, legalType: BeneficiaryLegalType = .individual, businessName: String? = nil, address: OptionalAddress? = nil, dateOfBirth: String? = nil, phoneNumber: String? = nil, label: String? = nil, taxId: String? = nil, idInformation: IdInformation? = nil)Parameters
externalIdThe unique identifier of this beneficiary in your own system.
typeWhether the beneficiary can be used for local or international transactions.
firstNameThe beneficiary’s first name. Optional if
legalTypeis not.individual.lastNameThe beneficiary’s last name. Optional if
legalTypeis not.individual.countryThree-letter country code (ISO 3166-1 alpha-3). The keys can be mapped from
Countryif you want type safety.currencyThe currency details what currency type is being used for the transaction, using the ISO-4217 format.
middleNameThe beneficiary’s middle name. Optional.
secondLastNameThe beneficiary’s second last name. Optional.
legalTypeWhether the beneficiary is an individual or a business.
businessNameThe business’ name. Optional if
legalTypeis not.business.addressBeneficiary address model. Optional.
dateOfBirthBeneficiary date of birth. Optional.
phoneNumberThe beneficiary’s phone number. Optional.
labelThe beneficiary’s label. Optional.
taxIdIdentifying number used for tax purposes. Optional.
idInformationThe beneficiary’s id information. Optional.
View on GitHub