Class: Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/stigg/models/v1/customer_provision_params.rb

Defined Under Namespace

Modules: Type

Instance Attribute Summary collapse

Instance Method Summary collapse

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(billing_id:, card_expiry_month:, card_expiry_year:, card_last4_digits:, type:) ⇒ Object

The default payment method details

Parameters:

  • billing_id (String, nil)

    The default payment method id

  • card_expiry_month (Float, nil)

    The expiration month of the default payment method

  • card_expiry_year (Float, nil)

    The expiration year of the default payment method

  • card_last4_digits (String, nil)

    The last 4 digits of the default payment method

  • type (Symbol, Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::Type)

    The default payment method type



# File 'lib/stigg/models/v1/customer_provision_params.rb', line 299

Instance Attribute Details

#billing_idString?

The default payment method id

Returns:

  • (String, nil)


273
# File 'lib/stigg/models/v1/customer_provision_params.rb', line 273

required :billing_id, String, api_name: :billingId, nil?: true

#card_expiry_monthFloat?

The expiration month of the default payment method

Returns:

  • (Float, nil)


279
# File 'lib/stigg/models/v1/customer_provision_params.rb', line 279

required :card_expiry_month, Float, api_name: :cardExpiryMonth, nil?: true

#card_expiry_yearFloat?

The expiration year of the default payment method

Returns:

  • (Float, nil)


285
# File 'lib/stigg/models/v1/customer_provision_params.rb', line 285

required :card_expiry_year, Float, api_name: :cardExpiryYear, nil?: true

#card_last4_digitsString?

The last 4 digits of the default payment method

Returns:

  • (String, nil)


291
# File 'lib/stigg/models/v1/customer_provision_params.rb', line 291

required :card_last4_digits, String, api_name: :cardLast4Digits, nil?: true

#typeSymbol, Stigg::Models::V1::CustomerProvisionParams::DefaultPaymentMethod::Type

The default payment method type



297
# File 'lib/stigg/models/v1/customer_provision_params.rb', line 297

required :type, enum: -> { Stigg::V1::CustomerProvisionParams::DefaultPaymentMethod::Type }