Class: MetronomeSDK::Models::V1::CreditGrantEditParams

Inherits:
Internal::Type::BaseModel show all
Extended by:
Internal::Type::RequestParameters::Converter
Includes:
Internal::Type::RequestParameters
Defined in:
lib/metronome_sdk/models/v1/credit_grant_edit_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(id: , credit_grant_type: nil, expires_at: nil, name: nil, request_options: {}) ⇒ Object

Parameters:

  • id (String) (defaults to: )

    the ID of the credit grant

  • credit_grant_type (String) (defaults to: nil)

    the updated credit grant type

  • expires_at (Time) (defaults to: nil)

    the updated expiration date for the credit grant

  • name (String) (defaults to: nil)

    the updated name for the credit grant

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


# File 'lib/metronome_sdk/models/v1/credit_grant_edit_params.rb', line 35


Instance Attribute Details

#credit_grant_typeString?

the updated credit grant type

Returns:

  • (String, nil)


21
# File 'lib/metronome_sdk/models/v1/credit_grant_edit_params.rb', line 21

optional :credit_grant_type, String

#expires_atTime?

the updated expiration date for the credit grant

Returns:

  • (Time, nil)


27
# File 'lib/metronome_sdk/models/v1/credit_grant_edit_params.rb', line 27

optional :expires_at, Time

#idString

the ID of the credit grant

Returns:

  • (String)


15
# File 'lib/metronome_sdk/models/v1/credit_grant_edit_params.rb', line 15

required :id, String

#nameString?

the updated name for the credit grant

Returns:

  • (String, nil)


33
# File 'lib/metronome_sdk/models/v1/credit_grant_edit_params.rb', line 33

optional :name, String