Class: Dodopayments::Models::LicenseActivateResponse

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/dodopayments/models/license_activate_response.rb

Overview

Defined Under Namespace

Classes: Product

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(id: , business_id: , created_at: , customer: , license_key_id: , name: , product: ) ⇒ Object

Parameters:

  • id (String) (defaults to: )

    License key instance ID

  • business_id (String) (defaults to: )

    Business ID

  • created_at (Time) (defaults to: )

    Creation timestamp

  • customer (Dodopayments::Models::CustomerLimitedDetails) (defaults to: )

    Limited customer details associated with the license key.

  • license_key_id (String) (defaults to: )

    Associated license key ID

  • name (String) (defaults to: )

    Instance name

  • product (Dodopayments::Models::LicenseActivateResponse::Product) (defaults to: )

    Related product info. Present if the license key is tied to a product.



# File 'lib/dodopayments/models/license_activate_response.rb', line 49

Instance Attribute Details

#business_idString

Business ID

Returns:

  • (String)


17
# File 'lib/dodopayments/models/license_activate_response.rb', line 17

required :business_id, String

#created_atTime

Creation timestamp

Returns:

  • (Time)


23
# File 'lib/dodopayments/models/license_activate_response.rb', line 23

required :created_at, Time

#customerDodopayments::Models::CustomerLimitedDetails

Limited customer details associated with the license key.



29
# File 'lib/dodopayments/models/license_activate_response.rb', line 29

required :customer, -> { Dodopayments::CustomerLimitedDetails }

#idString

License key instance ID

Returns:

  • (String)


11
# File 'lib/dodopayments/models/license_activate_response.rb', line 11

required :id, String

#license_key_idString

Associated license key ID

Returns:

  • (String)


35
# File 'lib/dodopayments/models/license_activate_response.rb', line 35

required :license_key_id, String

#nameString

Instance name

Returns:

  • (String)


41
# File 'lib/dodopayments/models/license_activate_response.rb', line 41

required :name, String

#productDodopayments::Models::LicenseActivateResponse::Product

Related product info. Present if the license key is tied to a product.



47
# File 'lib/dodopayments/models/license_activate_response.rb', line 47

required :product, -> { Dodopayments::Models::LicenseActivateResponse::Product }