Class: Stripe::V2::MoneyManagement::InboundTransferService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/money_management/inbound_transfer_service.rb

Defined Under Namespace

Classes: CreateParams, ListParams, RetrieveParams

Instance Method Summary collapse

Methods inherited from StripeService

#initialize, #request, #request_stream

Constructor Details

This class inherits a constructor from Stripe::StripeService

Instance Method Details

#create(params = {}, opts = {}) ⇒ Object

InboundTransfers APIs are used to create, retrieve or list InboundTransfers.

** raises BlockedByStripeError



91
92
93
94
95
96
97
98
99
# File 'lib/stripe/services/v2/money_management/inbound_transfer_service.rb', line 91

def create(params = {}, opts = {})
  request(
    method: :post,
    path: "/v2/money_management/inbound_transfers",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#list(params = {}, opts = {}) ⇒ Object

Retrieves a list of InboundTransfers.



102
103
104
105
106
107
108
109
110
# File 'lib/stripe/services/v2/money_management/inbound_transfer_service.rb', line 102

def list(params = {}, opts = {})
  request(
    method: :get,
    path: "/v2/money_management/inbound_transfers",
    params: params,
    opts: opts,
    base_address: :api
  )
end

#retrieve(id, params = {}, opts = {}) ⇒ Object

Retrieve an InboundTransfer by ID.



113
114
115
116
117
118
119
120
121
# File 'lib/stripe/services/v2/money_management/inbound_transfer_service.rb', line 113

def retrieve(id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v2/money_management/inbound_transfers/%<id>s", { id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end