Class: MetronomeSDK::Models::ContractWithoutAmendments::ResellerRoyalty

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/contract_without_amendments.rb,
sig/metronome_sdk/models/contract_without_amendments.rbs

Defined Under Namespace

Modules: ResellerType

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(fraction:, netsuite_reseller_id:, reseller_type:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, aws_account_number: nil, aws_offer_id: nil, aws_payer_reference_id: nil, ending_before: nil, gcp_account_id: nil, gcp_offer_id: nil, reseller_contract_value: nil) ⇒ Object

Parameters:

  • fraction (Float)
  • netsuite_reseller_id (String)
  • reseller_type (Symbol, MetronomeSDK::Models::ContractWithoutAmendments::ResellerRoyalty::ResellerType)
  • starting_at (Time)
  • applicable_product_ids (Array<String>) (defaults to: nil)
  • applicable_product_tags (Array<String>) (defaults to: nil)
  • aws_account_number (String) (defaults to: nil)
  • aws_offer_id (String) (defaults to: nil)
  • aws_payer_reference_id (String) (defaults to: nil)
  • ending_before (Time) (defaults to: nil)
  • gcp_account_id (String) (defaults to: nil)
  • gcp_offer_id (String) (defaults to: nil)
  • reseller_contract_value (Float) (defaults to: nil)


# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1173

Instance Attribute Details

#applicable_product_idsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1131
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1131

optional :applicable_product_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

#applicable_product_tagsArray<String>?

Parameters:

  • (::Array[String])

Returns:

  • (Array<String>, nil)


1136
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1136

optional :applicable_product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]

#aws_account_numberString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1141
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1141

optional :aws_account_number, String

#aws_offer_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1146
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1146

optional :aws_offer_id, String

#aws_payer_reference_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1151
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1151

optional :aws_payer_reference_id, String

#ending_beforeTime?

Parameters:

  • (Time)

Returns:

  • (Time, nil)


1156
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1156

optional :ending_before, Time

#fractionFloat

Parameters:

  • value (Float)

Returns:

  • (Float)


1110
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1110

required :fraction, Float

#gcp_account_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1161
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1161

optional :gcp_account_id, String

#gcp_offer_idString?

Parameters:

  • (String)

Returns:

  • (String, nil)


1166
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1166

optional :gcp_offer_id, String

#netsuite_reseller_idString

Parameters:

  • value (String)

Returns:

  • (String)


1115
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1115

required :netsuite_reseller_id, String

#reseller_contract_valueFloat?

Parameters:

  • (Float)

Returns:

  • (Float, nil)


1171
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1171

optional :reseller_contract_value, Float

#reseller_typeSymbol, MetronomeSDK::Models::ContractWithoutAmendments::ResellerRoyalty::ResellerType

Parameters:

  • value (MetronomeSDK::Models::ContractWithoutAmendments::ResellerRoyalty::reseller_type)

Returns:



1120
1121
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1120

required :reseller_type,
enum: -> { MetronomeSDK::ContractWithoutAmendments::ResellerRoyalty::ResellerType }

#starting_atTime

Parameters:

  • value (Time)

Returns:

  • (Time)


1126
# File 'lib/metronome_sdk/models/contract_without_amendments.rb', line 1126

required :starting_at, Time

Instance Method Details

#to_hash{

Returns:

  • ({)


1100
# File 'sig/metronome_sdk/models/contract_without_amendments.rbs', line 1100

def to_hash: -> {