Module: Adyen::REST::Payout

Included in:
Client
Defined in:
lib/adyen/rest/payout.rb

Overview

This module implements the Payout API calls, and includes a custom response class to make handling the response easier. docs.adyen.com/developers/payout-manual

Defined Under Namespace

Classes: Request, Response

Instance Method Summary collapse

Instance Method Details

#confirm_payout(attributes = {}) ⇒ Object



78
79
80
81
# File 'lib/adyen/rest/payout.rb', line 78

def confirm_payout(attributes = {})
  request = review_request('Payout.confirm', attributes)
  execute_request(request)
end

#confirm_payout_third_party(attributes = {}) ⇒ Object



83
84
85
86
# File 'lib/adyen/rest/payout.rb', line 83

def confirm_payout_third_party(attributes = {})
  request = review_request('Payout.confirmThirdParty', attributes)
  execute_request(request)
end

#decline_payout(attributes = {}) ⇒ Object



88
89
90
91
# File 'lib/adyen/rest/payout.rb', line 88

def decline_payout(attributes = {})
  request = review_request('Payout.decline', attributes)
  execute_request(request)
end

#decline_payout_third_party(attributes = {}) ⇒ Object



93
94
95
96
# File 'lib/adyen/rest/payout.rb', line 93

def decline_payout_third_party(attributes = {})
  request = review_request('Payout.declineThirdParty', attributes)
  execute_request(request)
end

#store_payout(attributes = {}) ⇒ Object

Constructs and issues a Payment.capture API call.



53
54
55
56
# File 'lib/adyen/rest/payout.rb', line 53

def store_payout(attributes = {})
  request = store_request('Payout.storeDetail', attributes)
  execute_request(request)
end

#submit_and_store_payout(attributes = {}) ⇒ Object



63
64
65
66
# File 'lib/adyen/rest/payout.rb', line 63

def submit_and_store_payout(attributes = {})
  request = store_request('Payout.storeDetailAndSubmit', attributes)
  execute_request(request)
end

#submit_and_store_payout_third_party(attributes = {}) ⇒ Object



73
74
75
76
# File 'lib/adyen/rest/payout.rb', line 73

def submit_and_store_payout_third_party(attributes = {})
  request = store_request('Payout.storeDetailAndSubmitThirdParty', attributes)
  execute_request(request)
end

#submit_payout(attributes = {}) ⇒ Object



58
59
60
61
# File 'lib/adyen/rest/payout.rb', line 58

def submit_payout(attributes = {})
  request = store_request('Payout.submit', attributes)
  execute_request(request)
end

#submit_payout_third_party(attributes = {}) ⇒ Object



68
69
70
71
# File 'lib/adyen/rest/payout.rb', line 68

def submit_payout_third_party(attributes = {})
  request = store_request('Payout.submitThirdParty', attributes)
  execute_request(request)
end