mirror of
https://github.com/stripe/stripe-ruby.git
synced 2025-10-05 00:02:50 -04:00
18 lines
436 B
Ruby
18 lines
436 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Stripe
|
|
# Recipients objects are deprecated. Please use Stripe Connect instead.
|
|
class Recipient < APIResource
|
|
extend Stripe::APIOperations::Create
|
|
include Stripe::APIOperations::Delete
|
|
extend Stripe::APIOperations::List
|
|
include Stripe::APIOperations::Save
|
|
|
|
OBJECT_NAME = "recipient".freeze
|
|
|
|
def transfers
|
|
Transfer.all({ recipient: id }, @api_key)
|
|
end
|
|
end
|
|
end
|