lib/xendit/resources/payout.rb in xendit-client-0.5.2 vs lib/xendit/resources/payout.rb in xendit-client-1.0.0
- old
+ new
@@ -1,27 +1,27 @@
require_relative '../api_client'
module Xendit
class Payout
class << self
- def channels(**params)
- ApiClient.get "payouts_channels", params
+ def channels(**opts)
+ ApiClient.get "payouts_channels", opts
end
- def create(params)
- ApiClient.post "v2/payouts", params
+ def create(**opts)
+ ApiClient.post "v2/payouts", opts
end
- def cancel(id)
- ApiClient.post "v2/payouts/#{id}/cancel"
+ def cancel(id, **opts)
+ ApiClient.post "v2/payouts/#{id}/cancel", opts
end
- def get_by_id(id)
- ApiClient.get "v2/payouts/#{id}"
+ def get_by_id(id, **opts)
+ ApiClient.get "v2/payouts/#{id}", opts
end
- def get_by_reference_id(reference_id)
- ApiClient.get "v2/payouts", {reference_id: reference_id}
+ def get_by_reference_id(reference_id, **opts)
+ ApiClient.get "v2/payouts", {reference_id: reference_id}, opts
end
end
end
end