Module: PayPal::SDK::AdaptivePayments::Services

Includes:
DataTypes
Included in:
API
Defined in:
lib/paypal-sdk/adaptive_payments/services.rb

Instance Method Summary collapse

Instance Method Details

#BuildCancelPreapproval(options = {}, &block) ⇒ Object Also known as: build_cancel_preapproval



27
28
29
30
31
32
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 27

def BuildCancelPreapproval(options = {}, &block)
  klass     = CancelPreapprovalRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildConfirmPreapproval(options = {}, &block) ⇒ Object Also known as: build_confirm_preapproval



46
47
48
49
50
51
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 46

def BuildConfirmPreapproval(options = {}, &block)
  klass     = ConfirmPreapprovalRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildConvertCurrency(options = {}, &block) ⇒ Object Also known as: build_convert_currency



65
66
67
68
69
70
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 65

def BuildConvertCurrency(options = {}, &block)
  klass     = ConvertCurrencyRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildExecutePayment(options = {}, &block) ⇒ Object Also known as: build_execute_payment



84
85
86
87
88
89
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 84

def BuildExecutePayment(options = {}, &block)
  klass     = ExecutePaymentRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetAllowedFundingSources(options = {}, &block) ⇒ Object Also known as: build_get_allowed_funding_sources



103
104
105
106
107
108
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 103

def BuildGetAllowedFundingSources(options = {}, &block)
  klass     = GetAllowedFundingSourcesRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetAvailableShippingAddresses(options = {}, &block) ⇒ Object Also known as: build_get_available_shipping_addresses



274
275
276
277
278
279
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 274

def BuildGetAvailableShippingAddresses(options = {}, &block)
  klass     = GetAvailableShippingAddressesRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetFundingPlans(options = {}, &block) ⇒ Object Also known as: build_get_funding_plans



255
256
257
258
259
260
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 255

def BuildGetFundingPlans(options = {}, &block)
  klass     = GetFundingPlansRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetPaymentOptions(options = {}, &block) ⇒ Object Also known as: build_get_payment_options



122
123
124
125
126
127
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 122

def BuildGetPaymentOptions(options = {}, &block)
  klass     = GetPaymentOptionsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetPrePaymentDisclosure(options = {}, &block) ⇒ Object Also known as: build_get_pre_payment_disclosure



331
332
333
334
335
336
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 331

def BuildGetPrePaymentDisclosure(options = {}, &block)
  klass     = GetPrePaymentDisclosureRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetShippingAddresses(options = {}, &block) ⇒ Object Also known as: build_get_shipping_addresses



293
294
295
296
297
298
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 293

def BuildGetShippingAddresses(options = {}, &block)
  klass     = GetShippingAddressesRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildGetUserLimits(options = {}, &block) ⇒ Object Also known as: build_get_user_limits



312
313
314
315
316
317
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 312

def BuildGetUserLimits(options = {}, &block)
  klass     = GetUserLimitsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildPay(options = {}, &block) ⇒ Object Also known as: build_pay



160
161
162
163
164
165
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 160

def BuildPay(options = {}, &block)
  klass     = PayRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildPaymentDetails(options = {}, &block) ⇒ Object Also known as: build_payment_details



141
142
143
144
145
146
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 141

def BuildPaymentDetails(options = {}, &block)
  klass     = PaymentDetailsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildPreapproval(options = {}, &block) ⇒ Object Also known as: build_preapproval



198
199
200
201
202
203
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 198

def BuildPreapproval(options = {}, &block)
  klass     = PreapprovalRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildPreapprovalDetails(options = {}, &block) ⇒ Object Also known as: build_preapproval_details



179
180
181
182
183
184
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 179

def BuildPreapprovalDetails(options = {}, &block)
  klass     = PreapprovalDetailsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildRefund(options = {}, &block) ⇒ Object Also known as: build_refund



217
218
219
220
221
222
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 217

def BuildRefund(options = {}, &block)
  klass     = RefundRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#BuildSetPaymentOptions(options = {}, &block) ⇒ Object Also known as: build_set_payment_options



236
237
238
239
240
241
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 236

def BuildSetPaymentOptions(options = {}, &block)
  klass     = SetPaymentOptionsRequest
  object = options.is_a?(klass) ? options : klass.new(options || {})
  object.instance_eval(&block) if block
  object
end

#CancelPreapproval(options = {}, http_header = {}) ⇒ Object Also known as: cancel_preapproval

Service Call: CancelPreapproval

Parameters:

  • CancelPreapprovalRequest

Returns:

  • CancelPreapprovalResponse



19
20
21
22
23
24
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 19

def CancelPreapproval(options = {} , http_header = {})
  request_object  = BuildCancelPreapproval(options)
  request_hash    = request_object.to_hash
  response_hash   = request("CancelPreapproval", request_hash, http_header)
  CancelPreapprovalResponse.new(response_hash)
end

#ConfirmPreapproval(options = {}, http_header = {}) ⇒ Object Also known as: confirm_preapproval

Service Call: ConfirmPreapproval

Parameters:

  • ConfirmPreapprovalRequest

Returns:

  • ConfirmPreapprovalResponse



38
39
40
41
42
43
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 38

def ConfirmPreapproval(options = {} , http_header = {})
  request_object  = BuildConfirmPreapproval(options)
  request_hash    = request_object.to_hash
  response_hash   = request("ConfirmPreapproval", request_hash, http_header)
  ConfirmPreapprovalResponse.new(response_hash)
end

#ConvertCurrency(options = {}, http_header = {}) ⇒ Object Also known as: convert_currency

Service Call: ConvertCurrency

Parameters:

  • ConvertCurrencyRequest

Returns:

  • ConvertCurrencyResponse



57
58
59
60
61
62
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 57

def ConvertCurrency(options = {} , http_header = {})
  request_object  = BuildConvertCurrency(options)
  request_hash    = request_object.to_hash
  response_hash   = request("ConvertCurrency", request_hash, http_header)
  ConvertCurrencyResponse.new(response_hash)
end

#ExecutePayment(options = {}, http_header = {}) ⇒ Object Also known as: execute_payment

Service Call: ExecutePayment

Parameters:

  • ExecutePaymentRequest

Returns:

  • ExecutePaymentResponse



76
77
78
79
80
81
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 76

def ExecutePayment(options = {} , http_header = {})
  request_object  = BuildExecutePayment(options)
  request_hash    = request_object.to_hash
  response_hash   = request("ExecutePayment", request_hash, http_header)
  ExecutePaymentResponse.new(response_hash)
end

#GetAllowedFundingSources(options = {}, http_header = {}) ⇒ Object Also known as: get_allowed_funding_sources

Service Call: GetAllowedFundingSources

Parameters:

  • GetAllowedFundingSourcesRequest

Returns:

  • GetAllowedFundingSourcesResponse



95
96
97
98
99
100
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 95

def GetAllowedFundingSources(options = {} , http_header = {})
  request_object  = BuildGetAllowedFundingSources(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetAllowedFundingSources", request_hash, http_header)
  GetAllowedFundingSourcesResponse.new(response_hash)
end

#GetAvailableShippingAddresses(options = {}, http_header = {}) ⇒ Object Also known as: get_available_shipping_addresses

Service Call: GetAvailableShippingAddresses

Parameters:

  • GetAvailableShippingAddressesRequest

Returns:

  • GetAvailableShippingAddressesResponse



266
267
268
269
270
271
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 266

def GetAvailableShippingAddresses(options = {} , http_header = {})
  request_object  = BuildGetAvailableShippingAddresses(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetAvailableShippingAddresses", request_hash, http_header)
  GetAvailableShippingAddressesResponse.new(response_hash)
end

#GetFundingPlans(options = {}, http_header = {}) ⇒ Object Also known as: get_funding_plans

Service Call: GetFundingPlans

Parameters:

  • GetFundingPlansRequest

Returns:

  • GetFundingPlansResponse



247
248
249
250
251
252
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 247

def GetFundingPlans(options = {} , http_header = {})
  request_object  = BuildGetFundingPlans(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetFundingPlans", request_hash, http_header)
  GetFundingPlansResponse.new(response_hash)
end

#GetPaymentOptions(options = {}, http_header = {}) ⇒ Object Also known as: get_payment_options

Service Call: GetPaymentOptions

Parameters:

  • GetPaymentOptionsRequest

Returns:

  • GetPaymentOptionsResponse



114
115
116
117
118
119
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 114

def GetPaymentOptions(options = {} , http_header = {})
  request_object  = BuildGetPaymentOptions(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetPaymentOptions", request_hash, http_header)
  GetPaymentOptionsResponse.new(response_hash)
end

#GetPrePaymentDisclosure(options = {}, http_header = {}) ⇒ Object Also known as: get_pre_payment_disclosure

Service Call: GetPrePaymentDisclosure

Parameters:

  • GetPrePaymentDisclosureRequest

Returns:

  • GetPrePaymentDisclosureResponse



323
324
325
326
327
328
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 323

def GetPrePaymentDisclosure(options = {} , http_header = {})
  request_object  = BuildGetPrePaymentDisclosure(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetPrePaymentDisclosure", request_hash, http_header)
  GetPrePaymentDisclosureResponse.new(response_hash)
end

#GetShippingAddresses(options = {}, http_header = {}) ⇒ Object Also known as: get_shipping_addresses

Service Call: GetShippingAddresses

Parameters:

  • GetShippingAddressesRequest

Returns:

  • GetShippingAddressesResponse



285
286
287
288
289
290
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 285

def GetShippingAddresses(options = {} , http_header = {})
  request_object  = BuildGetShippingAddresses(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetShippingAddresses", request_hash, http_header)
  GetShippingAddressesResponse.new(response_hash)
end

#GetUserLimits(options = {}, http_header = {}) ⇒ Object Also known as: get_user_limits

Service Call: GetUserLimits

Parameters:

  • GetUserLimitsRequest

Returns:

  • GetUserLimitsResponse



304
305
306
307
308
309
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 304

def GetUserLimits(options = {} , http_header = {})
  request_object  = BuildGetUserLimits(options)
  request_hash    = request_object.to_hash
  response_hash   = request("GetUserLimits", request_hash, http_header)
  GetUserLimitsResponse.new(response_hash)
end

#Pay(options = {}, http_header = {}) ⇒ Object Also known as: pay

Service Call: Pay

Parameters:

  • PayRequest

Returns:

  • PayResponse



152
153
154
155
156
157
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 152

def Pay(options = {} , http_header = {})
  request_object  = BuildPay(options)
  request_hash    = request_object.to_hash
  response_hash   = request("Pay", request_hash, http_header)
  PayResponse.new(response_hash)
end

#PaymentDetails(options = {}, http_header = {}) ⇒ Object Also known as: payment_details

Service Call: PaymentDetails

Parameters:

  • PaymentDetailsRequest

Returns:

  • PaymentDetailsResponse



133
134
135
136
137
138
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 133

def PaymentDetails(options = {} , http_header = {})
  request_object  = BuildPaymentDetails(options)
  request_hash    = request_object.to_hash
  response_hash   = request("PaymentDetails", request_hash, http_header)
  PaymentDetailsResponse.new(response_hash)
end

#Preapproval(options = {}, http_header = {}) ⇒ Object Also known as: preapproval

Service Call: Preapproval

Parameters:

  • PreapprovalRequest

Returns:

  • PreapprovalResponse



190
191
192
193
194
195
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 190

def Preapproval(options = {} , http_header = {})
  request_object  = BuildPreapproval(options)
  request_hash    = request_object.to_hash
  response_hash   = request("Preapproval", request_hash, http_header)
  PreapprovalResponse.new(response_hash)
end

#PreapprovalDetails(options = {}, http_header = {}) ⇒ Object Also known as: preapproval_details

Service Call: PreapprovalDetails

Parameters:

  • PreapprovalDetailsRequest

Returns:

  • PreapprovalDetailsResponse



171
172
173
174
175
176
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 171

def PreapprovalDetails(options = {} , http_header = {})
  request_object  = BuildPreapprovalDetails(options)
  request_hash    = request_object.to_hash
  response_hash   = request("PreapprovalDetails", request_hash, http_header)
  PreapprovalDetailsResponse.new(response_hash)
end

#Refund(options = {}, http_header = {}) ⇒ Object Also known as: refund

Service Call: Refund

Parameters:

  • RefundRequest

Returns:

  • RefundResponse



209
210
211
212
213
214
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 209

def Refund(options = {} , http_header = {})
  request_object  = BuildRefund(options)
  request_hash    = request_object.to_hash
  response_hash   = request("Refund", request_hash, http_header)
  RefundResponse.new(response_hash)
end

#SetPaymentOptions(options = {}, http_header = {}) ⇒ Object Also known as: set_payment_options

Service Call: SetPaymentOptions

Parameters:

  • SetPaymentOptionsRequest

Returns:

  • SetPaymentOptionsResponse



228
229
230
231
232
233
# File 'lib/paypal-sdk/adaptive_payments/services.rb', line 228

def SetPaymentOptions(options = {} , http_header = {})
  request_object  = BuildSetPaymentOptions(options)
  request_hash    = request_object.to_hash
  response_hash   = request("SetPaymentOptions", request_hash, http_header)
  SetPaymentOptionsResponse.new(response_hash)
end