Class: Stripe::V2::Payments::SettlementAllocationIntents::SplitService

Inherits:
StripeService
  • Object
show all
Defined in:
lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb

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

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

Cancel SettlementAllocationIntentSplit API.



10
11
12
13
14
15
16
17
18
# File 'lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb', line 10

def cancel(settlement_allocation_intent_id, id, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v2/payments/settlement_allocation_intents/%<settlement_allocation_intent_id>s/splits/%<id>s/cancel", { settlement_allocation_intent_id: CGI.escape(settlement_allocation_intent_id), id: CGI.escape(id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end

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

Create SettlementAllocationIntentSplit API.



21
22
23
24
25
26
27
28
29
# File 'lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb', line 21

def create(settlement_allocation_intent_id, params = {}, opts = {})
  request(
    method: :post,
    path: format("/v2/payments/settlement_allocation_intents/%<settlement_allocation_intent_id>s/splits", { settlement_allocation_intent_id: CGI.escape(settlement_allocation_intent_id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end

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

List SettlementAllocationIntentSplits API.



32
33
34
35
36
37
38
39
40
# File 'lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb', line 32

def list(settlement_allocation_intent_id, params = {}, opts = {})
  request(
    method: :get,
    path: format("/v2/payments/settlement_allocation_intents/%<settlement_allocation_intent_id>s/splits", { settlement_allocation_intent_id: CGI.escape(settlement_allocation_intent_id) }),
    params: params,
    opts: opts,
    base_address: :api
  )
end

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

Retrieve SettlementAllocationIntentSplit API.



43
44
45
46
47
48
49
50
51
# File 'lib/stripe/services/v2/payments/settlement_allocation_intents/split_service.rb', line 43

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