Method: Unit::ApiToken::Customer.create_customer_token_verification

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

.create_customer_token_verification(customer_id:, channel:, phone: nil, app_hash: nil, language: nil) ⇒ UnitResponse, UnitError

Create customer token verification by calling Unit’s API

Parameters:

  • customer_id (String)
  • channel (String)
  • phone (Phone) (defaults to: nil)
    • optional

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

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

Returns:

See Also:



82
83
84
85
# File 'lib/unit/models/api_token/api_token.rb', line 82

def create_customer_token_verification(customer_id:, channel:, phone: nil, app_hash: nil, language: nil)
  request = CreateCustomerTokenVerification.new(customer_id, channel, phone, app_hash, language)
  Unit::Resource::ApiTokenResource.create_token_verification(request)
end