Class: WalleeRubySdk::PaymentWebAppsService

Inherits:
Object
  • Object
show all
Defined in:
lib/wallee-ruby-sdk/service/payment_web_apps_service.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(api_client = ApiClient.default) ⇒ PaymentWebAppsService



30
31
32
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 30

def initialize(api_client = ApiClient.default)
  @api_client = api_client
end

Instance Attribute Details

#api_clientObject

Returns the value of attribute api_client.



27
28
29
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 27

def api_client
  @api_client
end

Instance Method Details

#delete_payment_web_apps_connectors_connector_external_id(connector_external_id, space, opts = {}) ⇒ nil

Delete a connector Permanently deletes a connector. It cannot be undone.



39
40
41
42
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 39

def delete_payment_web_apps_connectors_connector_external_id(connector_external_id, space, opts = {})
  delete_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, opts)
  nil
end

#delete_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, opts = {}) ⇒ Array<(nil, Integer, Hash)>



51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 51

def delete_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.delete_payment_web_apps_connectors_connector_external_id ...'
  end
  # verify the required parameter 'connector_external_id' is set
  if @api_client.config.client_side_validation && connector_external_id.nil?
    fail ArgumentError, "Missing the required parameter 'connector_external_id' when calling PaymentWebAppsService.delete_payment_web_apps_connectors_connector_external_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.delete_payment_web_apps_connectors_connector_external_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/connectors/{connectorExternalId}'.sub('{' + 'connectorExternalId' + '}', CGI.escape(connector_external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.delete_payment_web_apps_connectors_connector_external_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#delete_payment_web_apps_connectors_connector_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#delete_payment_web_apps_processors_external_id(external_id, space, opts = {}) ⇒ nil

Delete a processor Permanently deletes a processor. It cannot be undone.



110
111
112
113
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 110

def delete_payment_web_apps_processors_external_id(external_id, space, opts = {})
  delete_payment_web_apps_processors_external_id_with_http_info(external_id, space, opts)
  nil
end

#delete_payment_web_apps_processors_external_id_with_http_info(external_id, space, opts = {}) ⇒ Array<(nil, Integer, Hash)>



122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 122

def delete_payment_web_apps_processors_external_id_with_http_info(external_id, space, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.delete_payment_web_apps_processors_external_id ...'
  end
  # verify the required parameter 'external_id' is set
  if @api_client.config.client_side_validation && external_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_id' when calling PaymentWebAppsService.delete_payment_web_apps_processors_external_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.delete_payment_web_apps_processors_external_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/processors/{externalId}'.sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type]

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.delete_payment_web_apps_processors_external_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:DELETE.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#delete_payment_web_apps_processors_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_charge_attempts_id(id, space, payment_app_charge_attempt_update, opts = {}) ⇒ ChargeAttempt

Update a charge attempt Updates the state of a charge attempt for transactions created with a processor linked to the invoking web app, returning the specified charge attempt.

Options Hash (opts):

  • :expand (Array<String>)


183
184
185
186
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 183

def patch_payment_web_apps_charge_attempts_id(id, space, payment_app_charge_attempt_update, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_charge_attempts_id_with_http_info(id, space, payment_app_charge_attempt_update, opts)
  data
end

#patch_payment_web_apps_charge_attempts_id_with_http_info(id, space, payment_app_charge_attempt_update, opts = {}) ⇒ Array<(ChargeAttempt, Integer, Hash)>

Returns ChargeAttempt data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 197

def patch_payment_web_apps_charge_attempts_id_with_http_info(id, space, payment_app_charge_attempt_update, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_charge_attempts_id ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling PaymentWebAppsService.patch_payment_web_apps_charge_attempts_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_charge_attempts_id"
  end
  # verify the required parameter 'payment_app_charge_attempt_update' is set
  if @api_client.config.client_side_validation && payment_app_charge_attempt_update.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_charge_attempt_update' when calling PaymentWebAppsService.patch_payment_web_apps_charge_attempts_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/charge-attempts/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_charge_attempt_update)

  # return_type
  return_type = opts[:debug_return_type] || 'ChargeAttempt'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_charge_attempts_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_charge_attempts_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_completions_id(id, space, payment_app_completion_update, opts = {}) ⇒ TransactionCompletion

Update a completion Updates the state of a completion for transactions created with a processor linked to the invoking web app, returning the specified completion.

Options Hash (opts):

  • :expand (Array<String>)


268
269
270
271
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 268

def patch_payment_web_apps_completions_id(id, space, payment_app_completion_update, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_completions_id_with_http_info(id, space, payment_app_completion_update, opts)
  data
end

#patch_payment_web_apps_completions_id_with_http_info(id, space, payment_app_completion_update, opts = {}) ⇒ Array<(TransactionCompletion, Integer, Hash)>

Returns TransactionCompletion data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 282

def patch_payment_web_apps_completions_id_with_http_info(id, space, payment_app_completion_update, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_completions_id ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling PaymentWebAppsService.patch_payment_web_apps_completions_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_completions_id"
  end
  # verify the required parameter 'payment_app_completion_update' is set
  if @api_client.config.client_side_validation && payment_app_completion_update.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_completion_update' when calling PaymentWebAppsService.patch_payment_web_apps_completions_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/completions/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_completion_update)

  # return_type
  return_type = opts[:debug_return_type] || 'TransactionCompletion'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_completions_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_completions_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_connectors_connector_external_id(connector_external_id, space, payment_app_connector_details, opts = {}) ⇒ PaymentAppConnector

Update a connector

Options Hash (opts):

  • :expand (Array<String>)


352
353
354
355
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 352

def patch_payment_web_apps_connectors_connector_external_id(connector_external_id, space, payment_app_connector_details, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, payment_app_connector_details, opts)
  data
end

#patch_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, payment_app_connector_details, opts = {}) ⇒ Array<(PaymentAppConnector, Integer, Hash)>

Returns PaymentAppConnector data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 365

def patch_payment_web_apps_connectors_connector_external_id_with_http_info(connector_external_id, space, payment_app_connector_details, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_connectors_connector_external_id ...'
  end
  # verify the required parameter 'connector_external_id' is set
  if @api_client.config.client_side_validation && connector_external_id.nil?
    fail ArgumentError, "Missing the required parameter 'connector_external_id' when calling PaymentWebAppsService.patch_payment_web_apps_connectors_connector_external_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_connectors_connector_external_id"
  end
  # verify the required parameter 'payment_app_connector_details' is set
  if @api_client.config.client_side_validation && payment_app_connector_details.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_connector_details' when calling PaymentWebAppsService.patch_payment_web_apps_connectors_connector_external_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/connectors/{connectorExternalId}'.sub('{' + 'connectorExternalId' + '}', CGI.escape(connector_external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_connector_details)

  # return_type
  return_type = opts[:debug_return_type] || 'PaymentAppConnector'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_connectors_connector_external_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_connectors_connector_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_processors_external_id(external_id, space, payment_app_processor_details, opts = {}) ⇒ PaymentAppProcessor

Update a processor

Options Hash (opts):

  • :expand (Array<String>)


435
436
437
438
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 435

def patch_payment_web_apps_processors_external_id(external_id, space, payment_app_processor_details, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_processors_external_id_with_http_info(external_id, space, payment_app_processor_details, opts)
  data
end

#patch_payment_web_apps_processors_external_id_with_http_info(external_id, space, payment_app_processor_details, opts = {}) ⇒ Array<(PaymentAppProcessor, Integer, Hash)>

Returns PaymentAppProcessor data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 448

def patch_payment_web_apps_processors_external_id_with_http_info(external_id, space, payment_app_processor_details, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_processors_external_id ...'
  end
  # verify the required parameter 'external_id' is set
  if @api_client.config.client_side_validation && external_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_id' when calling PaymentWebAppsService.patch_payment_web_apps_processors_external_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_processors_external_id"
  end
  # verify the required parameter 'payment_app_processor_details' is set
  if @api_client.config.client_side_validation && payment_app_processor_details.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_processor_details' when calling PaymentWebAppsService.patch_payment_web_apps_processors_external_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/processors/{externalId}'.sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_processor_details)

  # return_type
  return_type = opts[:debug_return_type] || 'PaymentAppProcessor'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_processors_external_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_processors_external_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_refunds_id(id, space, payment_app_refund_update, opts = {}) ⇒ Refund

Update a refund Updates the state of a refund for transactions created with a processor linked to the invoking web app, returning the specified refund.

Options Hash (opts):

  • :expand (Array<String>)


519
520
521
522
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 519

def patch_payment_web_apps_refunds_id(id, space, payment_app_refund_update, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_refunds_id_with_http_info(id, space, payment_app_refund_update, opts)
  data
end

#patch_payment_web_apps_refunds_id_with_http_info(id, space, payment_app_refund_update, opts = {}) ⇒ Array<(Refund, Integer, Hash)>

Returns Refund data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 533

def patch_payment_web_apps_refunds_id_with_http_info(id, space, payment_app_refund_update, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_refunds_id ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling PaymentWebAppsService.patch_payment_web_apps_refunds_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_refunds_id"
  end
  # verify the required parameter 'payment_app_refund_update' is set
  if @api_client.config.client_side_validation && payment_app_refund_update.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_refund_update' when calling PaymentWebAppsService.patch_payment_web_apps_refunds_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/refunds/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_refund_update)

  # return_type
  return_type = opts[:debug_return_type] || 'Refund'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_refunds_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_refunds_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#patch_payment_web_apps_voids_id(id, space, payment_app_void_update, opts = {}) ⇒ TransactionVoid

Update a void Updates the state of a void for transactions created with a processor linked to the invoking web app, returning the specified void.

Options Hash (opts):

  • :expand (Array<String>)


604
605
606
607
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 604

def patch_payment_web_apps_voids_id(id, space, payment_app_void_update, opts = {})
  data, _status_code, _headers = patch_payment_web_apps_voids_id_with_http_info(id, space, payment_app_void_update, opts)
  data
end

#patch_payment_web_apps_voids_id_with_http_info(id, space, payment_app_void_update, opts = {}) ⇒ Array<(TransactionVoid, Integer, Hash)>

Returns TransactionVoid data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 618

def patch_payment_web_apps_voids_id_with_http_info(id, space, payment_app_void_update, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.patch_payment_web_apps_voids_id ...'
  end
  # verify the required parameter 'id' is set
  if @api_client.config.client_side_validation && id.nil?
    fail ArgumentError, "Missing the required parameter 'id' when calling PaymentWebAppsService.patch_payment_web_apps_voids_id"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.patch_payment_web_apps_voids_id"
  end
  # verify the required parameter 'payment_app_void_update' is set
  if @api_client.config.client_side_validation && payment_app_void_update.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_void_update' when calling PaymentWebAppsService.patch_payment_web_apps_voids_id"
  end
  # resource path
  local_var_path = '/payment/web-apps/voids/{id}'.sub('{' + 'id' + '}', CGI.escape(id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_void_update)

  # return_type
  return_type = opts[:debug_return_type] || 'TransactionVoid'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.patch_payment_web_apps_voids_id",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:PATCH.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#patch_payment_web_apps_voids_id\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#post_payment_web_apps_processors(space, payment_app_processor_details_create, opts = {}) ⇒ PaymentAppProcessor

Create a processor

Options Hash (opts):

  • :expand (Array<String>)


687
688
689
690
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 687

def post_payment_web_apps_processors(space, payment_app_processor_details_create, opts = {})
  data, _status_code, _headers = post_payment_web_apps_processors_with_http_info(space, payment_app_processor_details_create, opts)
  data
end

#post_payment_web_apps_processors_external_id_activate_for_production(external_id, space, opts = {}) ⇒ PaymentAppProcessor

Activate a processor for production

Options Hash (opts):

  • :expand (Array<String>)


764
765
766
767
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 764

def post_payment_web_apps_processors_external_id_activate_for_production(external_id, space, opts = {})
  data, _status_code, _headers = post_payment_web_apps_processors_external_id_activate_for_production_with_http_info(external_id, space, opts)
  data
end

#post_payment_web_apps_processors_external_id_activate_for_production_with_http_info(external_id, space, opts = {}) ⇒ Array<(PaymentAppProcessor, Integer, Hash)>

Returns PaymentAppProcessor data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 776

def post_payment_web_apps_processors_external_id_activate_for_production_with_http_info(external_id, space, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.post_payment_web_apps_processors_external_id_activate_for_production ...'
  end
  # verify the required parameter 'external_id' is set
  if @api_client.config.client_side_validation && external_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_id' when calling PaymentWebAppsService.post_payment_web_apps_processors_external_id_activate_for_production"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.post_payment_web_apps_processors_external_id_activate_for_production"
  end
  # resource path
  local_var_path = '/payment/web-apps/processors/{externalId}/activate-for-production'.sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body]

  # return_type
  return_type = opts[:debug_return_type] || 'PaymentAppProcessor'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.post_payment_web_apps_processors_external_id_activate_for_production",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#post_payment_web_apps_processors_external_id_activate_for_production\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#post_payment_web_apps_processors_external_id_connectors(external_id, space, payment_app_connector_details_create, opts = {}) ⇒ PaymentAppConnector

Create a connector

Options Hash (opts):

  • :expand (Array<String>)


837
838
839
840
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 837

def post_payment_web_apps_processors_external_id_connectors(external_id, space, payment_app_connector_details_create, opts = {})
  data, _status_code, _headers = post_payment_web_apps_processors_external_id_connectors_with_http_info(external_id, space, payment_app_connector_details_create, opts)
  data
end

#post_payment_web_apps_processors_external_id_connectors_with_http_info(external_id, space, payment_app_connector_details_create, opts = {}) ⇒ Array<(PaymentAppConnector, Integer, Hash)>

Returns PaymentAppConnector data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 850

def post_payment_web_apps_processors_external_id_connectors_with_http_info(external_id, space, payment_app_connector_details_create, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.post_payment_web_apps_processors_external_id_connectors ...'
  end
  # verify the required parameter 'external_id' is set
  if @api_client.config.client_side_validation && external_id.nil?
    fail ArgumentError, "Missing the required parameter 'external_id' when calling PaymentWebAppsService.post_payment_web_apps_processors_external_id_connectors"
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.post_payment_web_apps_processors_external_id_connectors"
  end
  # verify the required parameter 'payment_app_connector_details_create' is set
  if @api_client.config.client_side_validation && payment_app_connector_details_create.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_connector_details_create' when calling PaymentWebAppsService.post_payment_web_apps_processors_external_id_connectors"
  end
  # resource path
  local_var_path = '/payment/web-apps/processors/{externalId}/connectors'.sub('{' + 'externalId' + '}', CGI.escape(external_id.to_s))

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_connector_details_create)

  # return_type
  return_type = opts[:debug_return_type] || 'PaymentAppConnector'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.post_payment_web_apps_processors_external_id_connectors",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#post_payment_web_apps_processors_external_id_connectors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end

#post_payment_web_apps_processors_with_http_info(space, payment_app_processor_details_create, opts = {}) ⇒ Array<(PaymentAppProcessor, Integer, Hash)>

Returns PaymentAppProcessor data, response status code and response headers.

Options Hash (opts):

  • :expand (Array<String>)


699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
# File 'lib/wallee-ruby-sdk/service/payment_web_apps_service.rb', line 699

def post_payment_web_apps_processors_with_http_info(space, payment_app_processor_details_create, opts = {})
  if @api_client.config.debugging
    @api_client.config.logger.debug 'Calling API: PaymentWebAppsService.post_payment_web_apps_processors ...'
  end
  # verify the required parameter 'space' is set
  if @api_client.config.client_side_validation && space.nil?
    fail ArgumentError, "Missing the required parameter 'space' when calling PaymentWebAppsService.post_payment_web_apps_processors"
  end
  # verify the required parameter 'payment_app_processor_details_create' is set
  if @api_client.config.client_side_validation && payment_app_processor_details_create.nil?
    fail ArgumentError, "Missing the required parameter 'payment_app_processor_details_create' when calling PaymentWebAppsService.post_payment_web_apps_processors"
  end
  # resource path
  local_var_path = '/payment/web-apps/processors'

  # query parameters
  query_params = opts[:query_params] || {}
  query_params[:'expand'] = @api_client.build_collection_param(opts[:'expand'], :multi) if !opts[:'expand'].nil?

  # header parameters
  header_params = opts[:header_params] || {}
  # HTTP header 'Accept' (if needed)
  header_params['Accept'] = @api_client.select_header_accept(['application/json']) unless header_params['Accept']
  # HTTP header 'Content-Type'
  content_type = @api_client.select_header_content_type(['application/json'])
  if !content_type.nil?
      header_params['Content-Type'] = content_type
  end
  header_params[:'Space'] = space

  # form parameters
  form_params = opts[:form_params] || {}

  # connection timeout
  connection_timeout = @api_client.config.timeout

  # http body (model)
  post_body = opts[:debug_body] || @api_client.object_to_http_body(payment_app_processor_details_create)

  # return_type
  return_type = opts[:debug_return_type] || 'PaymentAppProcessor'

  new_options = opts.merge(
    :operation => :"PaymentWebAppsService.post_payment_web_apps_processors",
    :header_params => header_params,
    :query_params => query_params,
    :form_params => form_params,
    :body => post_body,
    :return_type => return_type
  )

  data, status_code, headers = @api_client.call_api(:POST.to_sym.downcase, local_var_path, new_options, connection_timeout)
  if @api_client.config.debugging
    @api_client.config.logger.debug "API called: PaymentWebAppsService#post_payment_web_apps_processors\nData: #{data.inspect}\nStatus code: #{status_code}\nHeaders: #{headers}\nConnection Timeout: #{connection_timeout}"
  end
  return data, status_code, headers
end