Class: Lithic::Models::CardRenewedWebhookEvent

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/lithic/models/card_renewed_webhook_event.rb

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(card_token: nil, exp_month: nil, exp_year: nil, previous_exp_month: nil, previous_exp_year: nil, event_type: :"card.renewed") ⇒ Object

Parameters:

  • card_token (String) (defaults to: nil)

    The token of the card that was renewed.

  • exp_month (String) (defaults to: nil)

    The new expiration month of the card.

  • exp_year (String) (defaults to: nil)

    The new expiration year of the card.

  • previous_exp_month (String) (defaults to: nil)

    The previous expiration month of the card.

  • previous_exp_year (String) (defaults to: nil)

    The previous expiration year of the card.

  • event_type (Symbol, :"card.renewed") (defaults to: :"card.renewed")

    The type of event that occurred.



# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 42


Instance Attribute Details

#card_tokenString?

The token of the card that was renewed.

Returns:

  • (String, nil)


16
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 16

optional :card_token, String

#event_typeSymbol, :"card.renewed"

The type of event that occurred.

Returns:

  • (Symbol, :"card.renewed")


10
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 10

required :event_type, const: :"card.renewed"

#exp_monthString?

The new expiration month of the card.

Returns:

  • (String, nil)


22
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 22

optional :exp_month, String

#exp_yearString?

The new expiration year of the card.

Returns:

  • (String, nil)


28
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 28

optional :exp_year, String

#previous_exp_monthString?

The previous expiration month of the card.

Returns:

  • (String, nil)


34
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 34

optional :previous_exp_month, String

#previous_exp_yearString?

The previous expiration year of the card.

Returns:

  • (String, nil)


40
# File 'lib/lithic/models/card_renewed_webhook_event.rb', line 40

optional :previous_exp_year, String