Class: Increase::Models::Simulations::CardAuthenticationCreateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/increase/models/simulations/card_authentication_create_params.rb,
sig/increase/models/simulations/card_authentication_create_params.rbs

Overview

See Also:

  • Increase::Resources::Simulations::CardAuthentications#create

Defined Under Namespace

Modules: Category, DeviceChannel

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

Class Method Summary collapse

Instance Method Summary collapse

Methods included from Internal::Type::RequestParameters::Converter

dump_request

Methods included from Internal::Type::RequestParameters

included

Methods inherited from Internal::Type::BaseModel

==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml

Methods included from Internal::Type::Converter

#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info

Methods included from Internal::Util::SorbetRuntimeSupport

#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type

Constructor Details

#initialize(card_id:, category: nil, device_channel: nil, merchant_acceptor_id: nil, merchant_category_code: nil, merchant_country: nil, merchant_name: nil, purchase_amount: nil, request_options: {}) ⇒ CardAuthenticationCreateParams

Returns a new instance of CardAuthenticationCreateParams.

Parameters:

  • card_id (String) —

    The identifier of the Card to be authorized.

  • category (Symbol, Increase::Models::Simulations::CardAuthenticationCreateParams::Category) (defaults to: nil) —

    The category of the card authentication attempt.

  • device_channel (Symbol, Increase::Models::Simulations::CardAuthenticationCreateParams::DeviceChannel) (defaults to: nil) —

    The device channel of the card authentication attempt.

  • merchant_acceptor_id (String) (defaults to: nil) —

    The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.

  • merchant_category_code (String) (defaults to: nil) —

    The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.

  • merchant_country (String) (defaults to: nil) —

    The country the merchant resides in.

  • merchant_name (String) (defaults to: nil) —

    The name of the merchant.

  • purchase_amount (Integer) (defaults to: nil) —

    The purchase amount in cents.

  • request_options (Increase::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})
  • card_id: (String)
  • category: (Increase::Models::Simulations::CardAuthenticationCreateParams::category) (defaults to: nil)
  • device_channel: (Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel) (defaults to: nil)
  • merchant_acceptor_id: (String) (defaults to: nil)
  • merchant_category_code: (String) (defaults to: nil)
  • merchant_country: (String) (defaults to: nil)
  • merchant_name: (String) (defaults to: nil)
  • purchase_amount: (Integer) (defaults to: nil)
  • request_options: (Increase::request_opts) (defaults to: {})


# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 62

Instance Attribute Details

#card_id ⇒ String

The identifier of the Card to be authorized.

Parameters:

  • value (String)

Returns:

  • (String)


15
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 15

required :card_id, String

#category ⇒ Symbol, ...

The category of the card authentication attempt.

Parameters:

  • (Increase::Models::Simulations::CardAuthenticationCreateParams::category)

Returns:



21
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 21

optional :category, enum: -> { Increase::Simulations::CardAuthenticationCreateParams::Category }

#device_channel ⇒ Symbol, ...

The device channel of the card authentication attempt.

Parameters:

  • (Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel)

Returns:



27
28
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 27

optional :device_channel,
enum: -> { Increase::Simulations::CardAuthenticationCreateParams::DeviceChannel }

#merchant_acceptor_id ⇒ String?

The merchant identifier (commonly abbreviated as MID) of the merchant the card is transacting with.

Parameters:

  • (String)

Returns:

  • (String, nil)


35
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 35

optional :merchant_acceptor_id, String

#merchant_category_code ⇒ String?

The Merchant Category Code (commonly abbreviated as MCC) of the merchant the card is transacting with.

Parameters:

  • (String)

Returns:

  • (String, nil)


42
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 42

optional :merchant_category_code, String

#merchant_country ⇒ String?

The country the merchant resides in.

Parameters:

  • (String)

Returns:

  • (String, nil)


48
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 48

optional :merchant_country, String

#merchant_name ⇒ String?

The name of the merchant.

Parameters:

  • (String)

Returns:

  • (String, nil)


54
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 54

optional :merchant_name, String

#purchase_amount ⇒ Integer?

The purchase amount in cents.

Parameters:

  • (Integer)

Returns:

  • (Integer, nil)


60
# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 60

optional :purchase_amount, Integer

Class Method Details

.values ⇒ Array<Symbol>

Returns:

  • (Array<Symbol>)


# File 'lib/increase/models/simulations/card_authentication_create_params.rb', line 97

Instance Method Details

#to_hash ⇒ { card_id: String, category: Increase::Models::Simulations::CardAuthenticationCreateParams::category, device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, merchant_name: String, purchase_amount: Integer, request_options: Increase::RequestOptions }

Returns:

  • ({ card_id: String, category: Increase::Models::Simulations::CardAuthenticationCreateParams::category, device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel, merchant_acceptor_id: String, merchant_category_code: String, merchant_country: String, merchant_name: String, purchase_amount: Integer, request_options: Increase::RequestOptions })


67
68
69
70
71
72
73
74
75
76
77
# File 'sig/increase/models/simulations/card_authentication_create_params.rbs', line 67

def to_hash: -> {
  card_id: String,
  category: Increase::Models::Simulations::CardAuthenticationCreateParams::category,
  device_channel: Increase::Models::Simulations::CardAuthenticationCreateParams::device_channel,
  merchant_acceptor_id: String,
  merchant_category_code: String,
  merchant_country: String,
  merchant_name: String,
  purchase_amount: Integer,
  request_options: Increase::RequestOptions
}