Sha256: 509741be8187f5a9b130d949a23e7d6212b27ead80847002cf36510615bbe828
Contents?: true
Size: 580 Bytes
Versions: 2
Compression:
Stored size: 580 Bytes
Contents
require_relative '../api_client' module Xendit class Payout class << self def channels(**opts) ApiClient.get "payouts_channels", opts end def create(**opts) ApiClient.post "v2/payouts", opts end def cancel(id, **opts) ApiClient.post "v2/payouts/#{id}/cancel", opts end def get_by_id(id, **opts) ApiClient.get "v2/payouts/#{id}", opts end def get_by_reference_id(reference_id, **opts) ApiClient.get "v2/payouts", {reference_id: reference_id}, opts end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xendit-client-1.1.0 | lib/xendit/resources/payout.rb |
xendit-client-1.0.0 | lib/xendit/resources/payout.rb |