Class: MetronomeSDK::Resources::V1::Contracts::RateCards::NamedSchedules
- Inherits:
-
Object
- Object
- MetronomeSDK::Resources::V1::Contracts::RateCards::NamedSchedules
- Defined in:
- lib/metronome_sdk/resources/v1/contracts/rate_cards/named_schedules.rb
Instance Method Summary collapse
-
#initialize(client:) ⇒ NamedSchedules
constructor
private
A new instance of NamedSchedules.
-
#retrieve(contract_id: , customer_id: , schedule_name: , covering_date: nil, request_options: {}) ⇒ MetronomeSDK::Models::V1::Contracts::RateCards::NamedScheduleRetrieveResponse
Some parameter documentations has been truncated, see Models::V1::Contracts::RateCards::NamedScheduleRetrieveParams for more details.
-
#update(contract_id: , customer_id: , schedule_name: , starting_at: , value: , ending_before: nil, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::V1::Contracts::RateCards::NamedScheduleUpdateParams for more details.
Constructor Details
#initialize(client:) ⇒ NamedSchedules
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
Returns a new instance of NamedSchedules.
83 84 85 |
# File 'lib/metronome_sdk/resources/v1/contracts/rate_cards/named_schedules.rb', line 83 def initialize(client:) @client = client end |
Instance Method Details
#retrieve(contract_id: , customer_id: , schedule_name: , covering_date: nil, request_options: {}) ⇒ MetronomeSDK::Models::V1::Contracts::RateCards::NamedScheduleRetrieveResponse
Some parameter documentations has been truncated, see Models::V1::Contracts::RateCards::NamedScheduleRetrieveParams for more details.
Get a named schedule for the given contract. This endpoint’s availability is dependent on your client’s configuration.
31 32 33 34 35 36 37 38 39 40 41 |
# File 'lib/metronome_sdk/resources/v1/contracts/rate_cards/named_schedules.rb', line 31 def retrieve(params) parsed, = MetronomeSDK::V1::Contracts::RateCards::NamedScheduleRetrieveParams.dump_request(params) @client.request( method: :post, path: "v1/contracts/getNamedSchedule", body: parsed, model: MetronomeSDK::Models::V1::Contracts::RateCards::NamedScheduleRetrieveResponse, options: ) end |
#update(contract_id: , customer_id: , schedule_name: , starting_at: , value: , ending_before: nil, request_options: {}) ⇒ nil
Some parameter documentations has been truncated, see Models::V1::Contracts::RateCards::NamedScheduleUpdateParams for more details.
Update a named schedule for the given contract. This endpoint’s availability is dependent on your client’s configuration.
69 70 71 72 73 74 75 76 77 78 |
# File 'lib/metronome_sdk/resources/v1/contracts/rate_cards/named_schedules.rb', line 69 def update(params) parsed, = MetronomeSDK::V1::Contracts::RateCards::NamedScheduleUpdateParams.dump_request(params) @client.request( method: :post, path: "v1/contracts/updateNamedSchedule", body: parsed, model: NilClass, options: ) end |