Class: MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty

Inherits:
Internal::Type::BaseModel show all
Defined in:
lib/metronome_sdk/models/contract.rb

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

Parameters:

  • reseller_type (Symbol, MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty::ResellerType) (defaults to: )
  • 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, nil) (defaults to: nil)
  • fraction (Float) (defaults to: nil)
  • gcp_account_id (String) (defaults to: nil)
  • gcp_offer_id (String) (defaults to: nil)
  • netsuite_reseller_id (String) (defaults to: nil)
  • reseller_contract_value (Float) (defaults to: nil)
  • starting_at (Time) (defaults to: nil)


224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
# File 'lib/metronome_sdk/models/contract.rb', line 224

class ResellerRoyalty < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute reseller_type
  #
  #   @return [Symbol, MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty::ResellerType]
  required :reseller_type, enum: -> { MetronomeSDK::Contract::Amendment::ResellerRoyalty::ResellerType }

  # @!attribute aws_account_number
  #
  #   @return [String, nil]
  optional :aws_account_number, String

  # @!attribute aws_offer_id
  #
  #   @return [String, nil]
  optional :aws_offer_id, String

  # @!attribute aws_payer_reference_id
  #
  #   @return [String, nil]
  optional :aws_payer_reference_id, String

  # @!attribute ending_before
  #
  #   @return [Time, nil]
  optional :ending_before, Time, nil?: true

  # @!attribute fraction
  #
  #   @return [Float, nil]
  optional :fraction, Float

  # @!attribute gcp_account_id
  #
  #   @return [String, nil]
  optional :gcp_account_id, String

  # @!attribute gcp_offer_id
  #
  #   @return [String, nil]
  optional :gcp_offer_id, String

  # @!attribute netsuite_reseller_id
  #
  #   @return [String, nil]
  optional :netsuite_reseller_id, String

  # @!attribute reseller_contract_value
  #
  #   @return [Float, nil]
  optional :reseller_contract_value, Float

  # @!attribute starting_at
  #
  #   @return [Time, nil]
  optional :starting_at, Time

  # @!method initialize(reseller_type:, aws_account_number: nil, aws_offer_id: nil, aws_payer_reference_id: nil, ending_before: nil, fraction: nil, gcp_account_id: nil, gcp_offer_id: nil, netsuite_reseller_id: nil, reseller_contract_value: nil, starting_at: nil)
  #   @param reseller_type [Symbol, MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty::ResellerType]
  #   @param aws_account_number [String]
  #   @param aws_offer_id [String]
  #   @param aws_payer_reference_id [String]
  #   @param ending_before [Time, nil]
  #   @param fraction [Float]
  #   @param gcp_account_id [String]
  #   @param gcp_offer_id [String]
  #   @param netsuite_reseller_id [String]
  #   @param reseller_contract_value [Float]
  #   @param starting_at [Time]

  # @see MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty#reseller_type
  module ResellerType
    extend MetronomeSDK::Internal::Type::Enum

    AWS = :AWS
    AWS_PRO_SERVICE = :AWS_PRO_SERVICE
    GCP = :GCP
    GCP_PRO_SERVICE = :GCP_PRO_SERVICE

    # @!method self.values
    #   @return [Array<Symbol>]
  end
end

Instance Attribute Details

#aws_account_numberString?

Returns:

  • (String, nil)


233
# File 'lib/metronome_sdk/models/contract.rb', line 233

optional :aws_account_number, String

#aws_offer_idString?

Returns:

  • (String, nil)


238
# File 'lib/metronome_sdk/models/contract.rb', line 238

optional :aws_offer_id, String

#aws_payer_reference_idString?

Returns:

  • (String, nil)


243
# File 'lib/metronome_sdk/models/contract.rb', line 243

optional :aws_payer_reference_id, String

#ending_beforeTime?

Returns:

  • (Time, nil)


248
# File 'lib/metronome_sdk/models/contract.rb', line 248

optional :ending_before, Time, nil?: true

#fractionFloat?

Returns:

  • (Float, nil)


253
# File 'lib/metronome_sdk/models/contract.rb', line 253

optional :fraction, Float

#gcp_account_idString?

Returns:

  • (String, nil)


258
# File 'lib/metronome_sdk/models/contract.rb', line 258

optional :gcp_account_id, String

#gcp_offer_idString?

Returns:

  • (String, nil)


263
# File 'lib/metronome_sdk/models/contract.rb', line 263

optional :gcp_offer_id, String

#netsuite_reseller_idString?

Returns:

  • (String, nil)


268
# File 'lib/metronome_sdk/models/contract.rb', line 268

optional :netsuite_reseller_id, String

#reseller_contract_valueFloat?

Returns:

  • (Float, nil)


273
# File 'lib/metronome_sdk/models/contract.rb', line 273

optional :reseller_contract_value, Float

#reseller_typeSymbol, MetronomeSDK::Models::Contract::Amendment::ResellerRoyalty::ResellerType



228
# File 'lib/metronome_sdk/models/contract.rb', line 228

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

#starting_atTime?

Returns:

  • (Time, nil)


278
# File 'lib/metronome_sdk/models/contract.rb', line 278

optional :starting_at, Time