Class: MetronomeSDK::Models::SchedulePointInTime::ScheduleItem
Instance Attribute Summary collapse
Instance Method Summary
collapse
==, #==, #[], 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
#coerce, coerce, #dump, dump, inspect, #inspect, meta_info, new_coerce_state, type_info
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(id: , amount: , quantity: , timestamp: , unit_price: , invoice_id: nil) ⇒ Object
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 34
class ScheduleItem < MetronomeSDK::Internal::Type::BaseModel
required :id, String
required :amount, Float
required :quantity, Float
required :timestamp, Time
required :unit_price, Float
optional :invoice_id, String, nil?: true
end
|
Instance Attribute Details
#amount ⇒ Float
43
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 43
required :amount, Float
|
#id ⇒ String
38
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 38
required :id, String
|
#invoice_id ⇒ String?
63
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 63
optional :invoice_id, String, nil?: true
|
#quantity ⇒ Float
48
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 48
required :quantity, Float
|
#timestamp ⇒ Time
53
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 53
required :timestamp, Time
|
#unit_price ⇒ Float
58
|
# File 'lib/metronome_sdk/models/schedule_point_in_time.rb', line 58
required :unit_price, Float
|