Class: Dodopayments::Models::AddonUpdateParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/dodopayments/models/addon_update_params.rb

Overview

Instance Attribute Summary collapse

Attributes included from Internal::Type::RequestParameters

#request_options

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(currency: nil, description: nil, image_id: nil, name: nil, price: nil, tax_category: nil, request_options: {}) ⇒ Object

Parameters:

  • currency (Symbol, Dodopayments::Models::Currency, nil) (defaults to: nil)

    The currency of the Addon

  • description (String, nil) (defaults to: nil)

    Description of the Addon, optional and must be at most 1000 characters.

  • image_id (String, nil) (defaults to: nil)

    Addon image id after its uploaded to S3

  • name (String, nil) (defaults to: nil)

    Name of the Addon, optional and must be at most 100 characters.

  • price (Integer, nil) (defaults to: nil)

    Amount of the addon

  • tax_category (Symbol, Dodopayments::Models::TaxCategory, nil) (defaults to: nil)

    Tax category of the Addon.

  • request_options (Dodopayments::RequestOptions, Hash{Symbol=>Object}) (defaults to: {})


# File 'lib/dodopayments/models/addon_update_params.rb', line 46

Instance Attribute Details

#currencySymbol, ...

The currency of the Addon

Returns:



14
# File 'lib/dodopayments/models/addon_update_params.rb', line 14

optional :currency, enum: -> { Dodopayments::Currency }, nil?: true

#descriptionString?

Description of the Addon, optional and must be at most 1000 characters.

Returns:

  • (String, nil)


20
# File 'lib/dodopayments/models/addon_update_params.rb', line 20

optional :description, String, nil?: true

#image_idString?

Addon image id after its uploaded to S3

Returns:

  • (String, nil)


26
# File 'lib/dodopayments/models/addon_update_params.rb', line 26

optional :image_id, String, nil?: true

#nameString?

Name of the Addon, optional and must be at most 100 characters.

Returns:

  • (String, nil)


32
# File 'lib/dodopayments/models/addon_update_params.rb', line 32

optional :name, String, nil?: true

#priceInteger?

Amount of the addon

Returns:

  • (Integer, nil)


38
# File 'lib/dodopayments/models/addon_update_params.rb', line 38

optional :price, Integer, nil?: true

#tax_categorySymbol, ...

Tax category of the Addon.

Returns:



44
# File 'lib/dodopayments/models/addon_update_params.rb', line 44

optional :tax_category, enum: -> { Dodopayments::TaxCategory }, nil?: true