Class: MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule
- Defined in:
- lib/metronome_sdk/models/v1/customers/commit_create_params.rb
Defined Under Namespace
Classes: ScheduleItem
Instance Attribute Summary collapse
-
#credit_type_id ⇒ String?
Defaults to USD (cents) if not passed.
- #schedule_items ⇒ Array<MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem>
Instance Method Summary collapse
-
#initialize(access_schedule: , customer_id: , priority: , product_id: , type: , applicable_contract_ids: nil, applicable_product_ids: nil, applicable_product_tags: nil, custom_fields: nil, description: nil, invoice_contract_id: nil, invoice_schedule: nil, name: nil, netsuite_sales_order_id: nil, rate_type: nil, salesforce_opportunity_id: nil, specifiers: nil, uniqueness_key: nil, request_options: {}) ⇒ Object
constructor
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Customers::CommitCreateParams for more details.
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(access_schedule: , customer_id: , priority: , product_id: , type: , applicable_contract_ids: nil, applicable_product_ids: nil, applicable_product_tags: nil, custom_fields: nil, description: nil, invoice_contract_id: nil, invoice_schedule: nil, name: nil, netsuite_sales_order_id: nil, rate_type: nil, salesforce_opportunity_id: nil, specifiers: nil, uniqueness_key: nil, request_options: {}) ⇒ Object
Some parameter documentations has been truncated, see MetronomeSDK::Models::V1::Customers::CommitCreateParams for more details.
178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 |
# File 'lib/metronome_sdk/models/v1/customers/commit_create_params.rb', line 178 class AccessSchedule < MetronomeSDK::Internal::Type::BaseModel # @!attribute schedule_items # # @return [Array<MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem>] required :schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem] } # @!attribute credit_type_id # Defaults to USD (cents) if not passed # # @return [String, nil] optional :credit_type_id, String # @!method initialize(schedule_items:, credit_type_id: nil) # Schedule for distributing the commit to the customer. For "POSTPAID" commits # only one schedule item is allowed and amount must match invoice_schedule total. # # @param schedule_items [Array<MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem>] # # @param credit_type_id [String] Defaults to USD (cents) if not passed class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel # @!attribute amount # # @return [Float] required :amount, Float # @!attribute ending_before # RFC 3339 timestamp (exclusive) # # @return [Time] required :ending_before, Time # @!attribute starting_at # RFC 3339 timestamp (inclusive) # # @return [Time] required :starting_at, Time # @!method initialize(amount:, ending_before:, starting_at:) # @param amount [Float] # # @param ending_before [Time] RFC 3339 timestamp (exclusive) # # @param starting_at [Time] RFC 3339 timestamp (inclusive) end end |
Instance Attribute Details
#credit_type_id ⇒ String?
Defaults to USD (cents) if not passed
189 |
# File 'lib/metronome_sdk/models/v1/customers/commit_create_params.rb', line 189 optional :credit_type_id, String |
#schedule_items ⇒ Array<MetronomeSDK::Models::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem>
182 183 |
# File 'lib/metronome_sdk/models/v1/customers/commit_create_params.rb', line 182 required :schedule_items, -> { MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CommitCreateParams::AccessSchedule::ScheduleItem] } |