Class: MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier

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

Defined Under Namespace

Modules: BillingFrequency

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(billing_frequency: nil, commit_ids: nil, presentation_group_values: nil, pricing_group_values: nil, product_id: nil, product_tags: nil, recurring_commit_ids: nil, recurring_credit_ids: nil) ⇒ Object

Parameters:

  • billing_frequency (Symbol, MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier::BillingFrequency) (defaults to: nil)
  • commit_ids (Array<String>) (defaults to: nil)
  • presentation_group_values (Hash{Symbol=>String, nil}) (defaults to: nil)
  • pricing_group_values (Hash{Symbol=>String}) (defaults to: nil)
  • product_id (String) (defaults to: nil)
  • product_tags (Array<String>) (defaults to: nil)
  • recurring_commit_ids (Array<String>) (defaults to: nil)
  • recurring_credit_ids (Array<String>) (defaults to: nil)


1306
1307
1308
1309
1310
1311
1312
1313
1314
1315
1316
1317
1318
1319
1320
1321
1322
1323
1324
1325
1326
1327
1328
1329
1330
1331
1332
1333
1334
1335
1336
1337
1338
1339
1340
1341
1342
1343
1344
1345
1346
1347
1348
1349
1350
1351
1352
1353
1354
1355
1356
1357
1358
1359
1360
1361
1362
1363
1364
1365
1366
1367
1368
1369
1370
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1306

class OverrideSpecifier < MetronomeSDK::Internal::Type::BaseModel
  # @!attribute billing_frequency
  #
  #   @return [Symbol, MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier::BillingFrequency, nil]
  optional :billing_frequency,
           enum: -> { MetronomeSDK::ContractV2::Override::OverrideSpecifier::BillingFrequency }

  # @!attribute commit_ids
  #
  #   @return [Array<String>, nil]
  optional :commit_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!attribute presentation_group_values
  #
  #   @return [Hash{Symbol=>String, nil}, nil]
  optional :presentation_group_values, MetronomeSDK::Internal::Type::HashOf[String, nil?: true]

  # @!attribute pricing_group_values
  #
  #   @return [Hash{Symbol=>String}, nil]
  optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]

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

  # @!attribute product_tags
  #
  #   @return [Array<String>, nil]
  optional :product_tags, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!attribute recurring_commit_ids
  #
  #   @return [Array<String>, nil]
  optional :recurring_commit_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!attribute recurring_credit_ids
  #
  #   @return [Array<String>, nil]
  optional :recurring_credit_ids, MetronomeSDK::Internal::Type::ArrayOf[String]

  # @!method initialize(billing_frequency: nil, commit_ids: nil, presentation_group_values: nil, pricing_group_values: nil, product_id: nil, product_tags: nil, recurring_commit_ids: nil, recurring_credit_ids: nil)
  #   @param billing_frequency [Symbol, MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier::BillingFrequency]
  #   @param commit_ids [Array<String>]
  #   @param presentation_group_values [Hash{Symbol=>String, nil}]
  #   @param pricing_group_values [Hash{Symbol=>String}]
  #   @param product_id [String]
  #   @param product_tags [Array<String>]
  #   @param recurring_commit_ids [Array<String>]
  #   @param recurring_credit_ids [Array<String>]

  # @see MetronomeSDK::Models::ContractV2::Override::OverrideSpecifier#billing_frequency
  module BillingFrequency
    extend MetronomeSDK::Internal::Type::Enum

    MONTHLY = :MONTHLY
    QUARTERLY = :QUARTERLY
    ANNUAL = :ANNUAL
    WEEKLY = :WEEKLY

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

Instance Attribute Details

#billing_frequencySymbol, ...



1310
1311
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1310

optional :billing_frequency,
enum: -> { MetronomeSDK::ContractV2::Override::OverrideSpecifier::BillingFrequency }

#commit_idsArray<String>?

Returns:

  • (Array<String>, nil)


1316
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1316

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

#presentation_group_valuesHash{Symbol=>String, nil}?

Returns:

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


1321
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1321

optional :presentation_group_values, MetronomeSDK::Internal::Type::HashOf[String, nil?: true]

#pricing_group_valuesHash{Symbol=>String}?

Returns:

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


1326
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1326

optional :pricing_group_values, MetronomeSDK::Internal::Type::HashOf[String]

#product_idString?

Returns:

  • (String, nil)


1331
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1331

optional :product_id, String

#product_tagsArray<String>?

Returns:

  • (Array<String>, nil)


1336
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1336

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

#recurring_commit_idsArray<String>?

Returns:

  • (Array<String>, nil)


1341
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1341

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

#recurring_credit_idsArray<String>?

Returns:

  • (Array<String>, nil)


1346
# File 'lib/metronome_sdk/models/contract_v2.rb', line 1346

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