Class: Dodopayments::Models::CustomerUpdateParams

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

Overview

See Also:

  • Dodopayments::Resources::Customers#update

Constant Summary

Constants included from Internal::Type::RequestParameters

Internal::Type::RequestParameters::Dodopayments

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(customer_id:, email: nil, metadata: nil, name: nil, phone_number: nil, request_options: {}) ⇒ Object

Parameters:

  • customer_id (String)
  • email (String, nil) (defaults to: nil)
  • metadata (Hash{Symbol=>String, Float, Boolean}, nil) (defaults to: nil)

    Additional metadata for the customer

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


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

Instance Attribute Details

#customer_idString

Parameters:

  • value (String)

Returns:

  • (String)


13
# File 'lib/dodopayments/models/customer_update_params.rb', line 13

required :customer_id, String

#emailString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


18
# File 'lib/dodopayments/models/customer_update_params.rb', line 18

optional :email, String, nil?: true

#metadataHash{Symbol=>String, Float, Boolean}?

Additional metadata for the customer

Parameters:

  • value (Dodopayments::Models::metadata, nil)

Returns:

  • (Hash{Symbol=>String, Float, Boolean}, nil)


24
25
26
# File 'lib/dodopayments/models/customer_update_params.rb', line 24

optional :metadata,
-> { Dodopayments::Internal::Type::HashOf[union: Dodopayments::MetadataItem] },
nil?: true

#nameString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


31
# File 'lib/dodopayments/models/customer_update_params.rb', line 31

optional :name, String, nil?: true

#phone_numberString?

Parameters:

  • value (String, nil)

Returns:

  • (String, nil)


36
# File 'lib/dodopayments/models/customer_update_params.rb', line 36

optional :phone_number, String, nil?: true

Instance Method Details

#to_hash{

Returns:

  • ({)


36
# File 'sig/dodopayments/models/customer_update_params.rbs', line 36

def to_hash: -> {