Method: Unit::Card.create_business_virtual_credit_card

Defined in:
lib/unit/models/card/card.rb

.create_business_virtual_credit_card(account_id:, full_name:, date_of_birth:, address:, phone: nil, email: nil, idempotency_key: nil, tags: nil, limits: nil, expiry_date: nil) ⇒ Object

Create a new business virtual credit card by calling Unit’s API

Parameters:

  • account_id (String)
  • type (String)
  • idempotency_key (String) (defaults to: nil)
    • optional

  • tags (Hash) (defaults to: nil)
    • optional

  • limits (Hash) (defaults to: nil)
    • optional

  • expiry_date (String) (defaults to: nil)
    • optional

See Also:



90
91
92
93
# File 'lib/unit/models/card/card.rb', line 90

def create_business_virtual_credit_card(account_id:, full_name:, date_of_birth:, address:, phone: nil, email: nil, idempotency_key: nil, tags: nil, limits: nil, expiry_date: nil)
  request = CreateBusinessVirtualCreditCardRequest.new(, full_name, date_of_birth, address, phone, email, idempotency_key, tags, limits, expiry_date)
  Unit::Resource::CardResource.create_card(request)
end