Class: OrbipayPaymentsapiClient::OrbipayPaymentsapiClientApis::PaymentApi
- Inherits:
-
Object
- Object
- OrbipayPaymentsapiClient::OrbipayPaymentsapiClientApis::PaymentApi
- Defined in:
- lib/orbipay_paymentsapi_client/api/payment_api.rb
Overview
.
############################################################################################
## This class subject to change without prior notice, Please dont use this class directly.##
############################################################################################
Instance Attribute Summary collapse
-
#api_client ⇒ Object
Returns the value of attribute api_client.
Instance Method Summary collapse
-
#create_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) ⇒ [PaymentResponse, headers]
Create Payment The API is used to make payments to service a customer account.
-
#create_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Create Payment The API is used to make payments to service a customer account.
-
#delete_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) ⇒ [DeleteResponse, headers]
Delete Payment The API is used to delete or cancel a payment.
-
#delete_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) ⇒ Array<(DeleteResponse, Fixnum, Hash)>
Delete Payment The API is used to delete or cancel a payment.
-
#delete_record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) ⇒ nil
Delete Recorded Payment The API is used to delete the recorded payment.
-
#delete_record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Recorded Payment The API is used to delete the recorded payment.
-
#get_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) ⇒ [PaymentResponse, headers]
Get Payment The API is used to retrieve the details of a payment or a recorded payment by id.
-
#get_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Get Payment The API is used to retrieve the details of a payment or a recorded payment by id.
-
#get_record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, opts = {}) ⇒ [GetRecordedPaymentResponse, headers]
Get Recorded Payment <b style="color:red">This API has been deprecated, please use <a href="#operation/getPayment">Get Payment</a> API instead.</b>
The API is used to retrieve the details of a payment by id. -
#get_record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, opts = {}) ⇒ Array<(GetRecordedPaymentResponse, Fixnum, Hash)>
Get Recorded Payment <b style="color:red">This API has been deprecated, please use <a href="#operation/getPayment">Get Payment</a> API instead.</b> <br> The API is used to retrieve the details of a payment by id.
-
#initialize(api_client = ApiClient.default) ⇒ PaymentApi
constructor
A new instance of PaymentApi.
-
#record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, record_payment_request, opts = {}) ⇒ [RecordedPaymentResponse, headers]
Record Payment The API is used to record payments in EBPP those are made and fulfilled outside EBPP.
-
#record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, record_payment_request, opts = {}) ⇒ Array<(RecordedPaymentResponse, Fixnum, Hash)>
Record Payment The API is used to record payments in EBPP those are made and fulfilled outside EBPP.
-
#retrieve_fee_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) ⇒ [PaymentResponse, headers]
Get Fee Payment The API is used to retrieve the details of a fee payment by id.
-
#retrieve_fee_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Get Fee Payment The API is used to retrieve the details of a fee payment by id.
-
#retrieve_payments(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts = {}) ⇒ [PaymentsResponse, headers]
Retrieve Payments The API is used to retrieve the payments and recorded payments made by a customer.
-
#retrieve_payments_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts = {}) ⇒ Array<(PaymentsResponse, Fixnum, Hash)>
Retrieve Payments The API is used to retrieve the payments and recorded payments made by a customer.
-
#retrieve_record_payments(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts = {}) ⇒ [RecordedPaymentsResponse, headers]
Retrieve Recorded Payments <b style="color:red">This API has been deprecated, please use <a href="#operation/retrievePayments">Retrieve Payments</a> API instead.</b>
The API is used to retrieve the payments made by a customer. -
#retrieve_record_payments_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts = {}) ⇒ Array<(RecordedPaymentsResponse, Fixnum, Hash)>
Retrieve Recorded Payments <b style="color:red">This API has been deprecated, please use <a href="#operation/retrievePayments">Retrieve Payments</a> API instead.</b> <br> The API is used to retrieve the payments made by a customer.
-
#simple_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, simple_payment_request, opts = {}) ⇒ [SimplePaymentResponse, headers]
Simple Payment The API is used to make payments to service a customer account.
-
#simple_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, simple_payment_request, opts = {}) ⇒ Array<(SimplePaymentResponse, Fixnum, Hash)>
Simple Payment The API is used to make payments to service a customer account.
-
#update_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) ⇒ [PaymentResponse, headers]
Update Payment The API is used to edit a payment.
-
#update_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Update Payment The API is used to edit a payment.
Constructor Details
#initialize(api_client = ApiClient.default) ⇒ PaymentApi
Returns a new instance of PaymentApi.
15 16 17 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 15 def initialize(api_client = ApiClient.default) @api_client = api_client end |
Instance Attribute Details
#api_client ⇒ Object
Returns the value of attribute api_client.
13 14 15 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 13 def api_client @api_client end |
Instance Method Details
#create_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) ⇒ [PaymentResponse, headers]
Create Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference.<p>Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response.
33 34 35 36 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 33 def create_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) data, _status_code, _headers = create_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, create_payment_request, opts) [data, _status_code, _headers] end |
#create_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Create Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference.<p>Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response.
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 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 53 def create_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, create_payment_request, opts = {}) # resource path local_var_path = '/customers/{ID_CUSTOMER}/payments' if !id_customer.nil? && id_customer.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_CUSTOMER' + '}', id_customer.to_s) else fail ArgumentError, "Missing the required parameter 'id_customer' when calling PaymentApi.create_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(create_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PaymentResponse') return data, status_code, headers end |
#delete_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) ⇒ [DeleteResponse, headers]
Delete Payment The API is used to delete or cancel a payment. Payments that are under processing or have already been processed cannot be deleted.
113 114 115 116 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 113 def delete_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) data, _status_code, _headers = delete_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts) [data, _status_code, _headers] end |
#delete_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) ⇒ Array<(DeleteResponse, Fixnum, Hash)>
Delete Payment The API is used to delete or cancel a payment. Payments that are under processing or have already been processed cannot be deleted.
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 173 174 175 176 177 178 179 180 181 182 183 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 134 def delete_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, delete_payment_request, opts = {}) # resource path local_var_path = '/customers/{ID_CUSTOMER}/payments/{ID_PAYMENT}' if !id_payment.nil? && id_payment.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_PAYMENT' + '}', id_payment.to_s) else fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentApi.delete_payment" end if !id_customer.nil? && id_customer.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_CUSTOMER' + '}', id_customer.to_s) else fail ArgumentError, "Missing the required parameter 'id_customer' when calling PaymentApi.delete_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(delete_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'DeleteResponse') return data, status_code, headers end |
#delete_record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) ⇒ nil
Delete Recorded Payment The API is used to delete the recorded payment. It returns 204 http status code with empty body in successful case
199 200 201 202 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 199 def delete_record_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) data, _status_code, _headers = delete_record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts) [_status_code, _headers] end |
#delete_record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) ⇒ Array<(nil, Fixnum, Hash)>
Delete Recorded Payment The API is used to delete the recorded payment. It returns 204 http status code with empty body in successful case
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 258 259 260 261 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 219 def delete_record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, delete_recorded_payment_request, opts = {}) # resource path local_var_path = '/recordedpayments/{ID_PAYMENT}' if !id_payment.nil? && id_payment.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_PAYMENT' + '}', id_payment.to_s) else fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentApi.delete_record_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(delete_recorded_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:DELETE, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names) return data, status_code, headers end |
#get_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) ⇒ [PaymentResponse, headers]
Get Payment The API is used to retrieve the details of a payment or a recorded payment by id.
277 278 279 280 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 277 def get_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) data, _status_code, _headers = get_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, opts) [data, _status_code, _headers] end |
#get_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Get Payment The API is used to retrieve the details of a payment or a recorded payment by id.
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 343 344 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 297 def get_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, opts = {}) # resource path local_var_path = '/customers/{ID_CUSTOMER}/payments/{ID_PAYMENT}' if !id_payment.nil? && id_payment.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_PAYMENT' + '}', id_payment.to_s) else fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentApi.get_payment" end if !id_customer.nil? && id_customer.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_CUSTOMER' + '}', id_customer.to_s) else fail ArgumentError, "Missing the required parameter 'id_customer' when calling PaymentApi.get_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PaymentResponse') return data, status_code, headers end |
#get_record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, opts = {}) ⇒ [GetRecordedPaymentResponse, headers]
Get Recorded Payment <b style="color:red">This API has been deprecated, please use <a href="#operation/getPayment">Get Payment</a> API instead.</b>
The API is used to retrieve the details of a payment by id.
359 360 361 362 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 359 def get_record_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, opts = {}) data, _status_code, _headers = get_record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, opts) [data, _status_code, _headers] end |
#get_record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, opts = {}) ⇒ Array<(GetRecordedPaymentResponse, Fixnum, Hash)>
Get Recorded Payment <b style="color:red">This API has been deprecated, please use <a href="#operation/getPayment">Get Payment</a> API instead.</b> <br> The API is used to retrieve the details of a payment by id.
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 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 378 def get_record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, opts = {}) # resource path local_var_path = '/recordedpayments/{ID_PAYMENT}' if !id_payment.nil? && id_payment.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_PAYMENT' + '}', id_payment.to_s) else fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentApi.get_record_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'GetRecordedPaymentResponse') return data, status_code, headers end |
#record_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, record_payment_request, opts = {}) ⇒ [RecordedPaymentResponse, headers]
Record Payment The API is used to record payments in EBPP those are made and fulfilled outside EBPP.
434 435 436 437 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 434 def record_payment(channel, client_key, product, , idempotent_request_key, requestor_type, record_payment_request, opts = {}) data, _status_code, _headers = record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, record_payment_request, opts) [data, _status_code, _headers] end |
#record_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, record_payment_request, opts = {}) ⇒ Array<(RecordedPaymentResponse, Fixnum, Hash)>
Record Payment The API is used to record payments in EBPP those are made and fulfilled outside EBPP.
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 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 453 def record_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, record_payment_request, opts = {}) # resource path local_var_path = '/recordedpayments' # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(record_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RecordedPaymentResponse') return data, status_code, headers end |
#retrieve_fee_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) ⇒ [PaymentResponse, headers]
Get Fee Payment The API is used to retrieve the details of a fee payment by id.
506 507 508 509 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 506 def retrieve_fee_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) data, _status_code, _headers = retrieve_fee_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_fee, id_customer, opts) [data, _status_code, _headers] end |
#retrieve_fee_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Get Fee Payment The API is used to retrieve the details of a fee payment by id.
526 527 528 529 530 531 532 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 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 526 def retrieve_fee_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_fee, id_customer, opts = {}) # resource path local_var_path = '/customers/{ID_CUSTOMER}/fees/{ID_FEE}' if !id_fee.nil? && id_fee.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_FEE' + '}', id_fee.to_s) else fail ArgumentError, "Missing the required parameter 'id_fee' when calling PaymentApi.retrieve_fee_payment" end if !id_customer.nil? && id_customer.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_CUSTOMER' + '}', id_customer.to_s) else fail ArgumentError, "Missing the required parameter 'id_customer' when calling PaymentApi.retrieve_fee_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PaymentResponse') return data, status_code, headers end |
#retrieve_payments(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts = {}) ⇒ [PaymentsResponse, headers]
Retrieve Payments The API is used to retrieve the payments and recorded payments made by a customer. Payments can be filtered using the confirmation number, customer account, funding account, status and payment schedule type, payment method, by date range and others mentioned below. If no dates are provided for retrieval, payments in the last six months and all the payments scheduled for a future date are returned. In case a payment has failed due to ACH returns, then the payment return date and the return code will be available in the response. If the requestor type is customer then the id_customer request parameter is mandatory. The results are sorted in descending order of the payment_date followed by the last_modified_time.
600 601 602 603 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 600 def retrieve_payments(channel, client_key, product, , idempotent_request_key, requestor_type, opts = {}) data, _status_code, _headers = retrieve_payments_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, opts) [data, _status_code, _headers] end |
#retrieve_payments_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, opts = {}) ⇒ Array<(PaymentsResponse, Fixnum, Hash)>
Retrieve Payments The API is used to retrieve the payments and recorded payments made by a customer. Payments can be filtered using the confirmation number, customer account, funding account, status and payment schedule type, payment method, by date range and others mentioned below. If no dates are provided for retrieval, payments in the last six months and all the payments scheduled for a future date are returned. In case a payment has failed due to ACH returns, then the payment return date and the return code will be available in the response. If the requestor type is customer then the id_customer request parameter is mandatory. The results are sorted in descending order of the payment_date followed by the last_modified_time.
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 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 631 def retrieve_payments_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, opts = {}) # resource path local_var_path = '/payments' # query parameters query_params = {} if !opts[:'id_customer'].nil? && opts[:'id_customer'].to_s.strip != "" query_params[:'id_customer'] = opts[:'id_customer'] end if !opts[:'id_funding_account'].nil? && opts[:'id_funding_account'].to_s.strip != "" query_params[:'id_funding_account'] = opts[:'id_funding_account'] end if !opts[:'id_customer_account'].nil? && opts[:'id_customer_account'].to_s.strip != "" query_params[:'id_customer_account'] = opts[:'id_customer_account'] end if !opts[:'confirmation_number'].nil? && opts[:'confirmation_number'].to_s.strip != "" query_params[:'confirmation_number'] = opts[:'confirmation_number'] end if !opts[:'status'].nil? && opts[:'status'].to_s.strip != "" query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) end if !opts[:'payment_schedule_type'].nil? && opts[:'payment_schedule_type'].to_s.strip != "" query_params[:'payment_schedule_type'] = @api_client.build_collection_param(opts[:'payment_schedule_type'], :multi) end if !opts[:'payment_method'].nil? && opts[:'payment_method'].to_s.strip != "" query_params[:'payment_method'] = @api_client.build_collection_param(opts[:'payment_method'], :multi) end if !opts[:'from_date'].nil? && opts[:'from_date'].to_s.strip != "" query_params[:'from_date'] = opts[:'from_date'] end if !opts[:'to_date'].nil? && opts[:'to_date'].to_s.strip != "" query_params[:'to_date'] = opts[:'to_date'] end if !opts[:'page_size'].nil? && opts[:'page_size'].to_s.strip != "" query_params[:'page_size'] = opts[:'page_size'] end if !opts[:'query_id'].nil? && opts[:'query_id'].to_s.strip != "" query_params[:'query_id'] = opts[:'query_id'] end if !opts[:'from_index'].nil? && opts[:'from_index'].to_s.strip != "" query_params[:'from_index'] = opts[:'from_index'] end if !opts[:'to_index'].nil? && opts[:'to_index'].to_s.strip != "" query_params[:'to_index'] = opts[:'to_index'] end # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PaymentsResponse') return data, status_code, headers end |
#retrieve_record_payments(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts = {}) ⇒ [RecordedPaymentsResponse, headers]
Retrieve Recorded Payments <b style="color:red">This API has been deprecated, please use <a href="#operation/retrievePayments">Retrieve Payments</a> API instead.</b>
The API is used to retrieve the payments made by a customer. Payments can be filtered using the confirmation number, customer account, status, by date range and others mentioned below. If no dates are provided for retrieval, payments in the last six months and all the payments scheduled for a future date are returned. In case a payment has failed due to ACH returns, then the payment return date and the return code will be available in the response.
730 731 732 733 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 730 def retrieve_record_payments(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, opts = {}) data, _status_code, _headers = retrieve_record_payments_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, opts) [data, _status_code, _headers] end |
#retrieve_record_payments_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_customer, opts = {}) ⇒ Array<(RecordedPaymentsResponse, Fixnum, Hash)>
Retrieve Recorded Payments <b style="color:red">This API has been deprecated, please use <a href="#operation/retrievePayments">Retrieve Payments</a> API instead.</b> <br> The API is used to retrieve the payments made by a customer. Payments can be filtered using the confirmation number, customer account, status, by date range and others mentioned below. If no dates are provided for retrieval, payments in the last six months and all the payments scheduled for a future date are returned. In case a payment has failed due to ACH returns, then the payment return date and the return code will be available in the response.
759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 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/orbipay_paymentsapi_client/api/payment_api.rb', line 759 def retrieve_record_payments_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_customer, opts = {}) # resource path local_var_path = '/recordedpayments' # query parameters query_params = {} if !id_customer.nil? && id_customer.to_s.strip != "" query_params[:'id_customer'] = id_customer end if !opts[:'id_customer_account'].nil? && opts[:'id_customer_account'].to_s.strip != "" query_params[:'id_customer_account'] = opts[:'id_customer_account'] end if !opts[:'confirmation_number'].nil? && opts[:'confirmation_number'].to_s.strip != "" query_params[:'confirmation_number'] = opts[:'confirmation_number'] end if !opts[:'payment_method'].nil? && opts[:'payment_method'].to_s.strip != "" query_params[:'payment_method'] = @api_client.build_collection_param(opts[:'payment_method'], :multi) end if !opts[:'status'].nil? && opts[:'status'].to_s.strip != "" query_params[:'status'] = @api_client.build_collection_param(opts[:'status'], :multi) end if !opts[:'from_date'].nil? && opts[:'from_date'].to_s.strip != "" query_params[:'from_date'] = opts[:'from_date'] end if !opts[:'to_date'].nil? && opts[:'to_date'].to_s.strip != "" query_params[:'to_date'] = opts[:'to_date'] end if !opts[:'page_size'].nil? && opts[:'page_size'].to_s.strip != "" query_params[:'page_size'] = opts[:'page_size'] end if !opts[:'query_id'].nil? && opts[:'query_id'].to_s.strip != "" query_params[:'query_id'] = opts[:'query_id'] end if !opts[:'from_index'].nil? && opts[:'from_index'].to_s.strip != "" query_params[:'from_index'] = opts[:'from_index'] end if !opts[:'to_index'].nil? && opts[:'to_index'].to_s.strip != "" query_params[:'to_index'] = opts[:'to_index'] end # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = nil auth_names = [] data, status_code, headers = @api_client.call_api(:GET, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'RecordedPaymentsResponse') return data, status_code, headers end |
#simple_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, simple_payment_request, opts = {}) ⇒ [SimplePaymentResponse, headers]
Simple Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference. Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response. This API updates the details of the customer, customer account and the funding account if those exist in EBPP or creates them otherwise.
843 844 845 846 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 843 def simple_payment(channel, client_key, product, , idempotent_request_key, requestor_type, simple_payment_request, opts = {}) data, _status_code, _headers = simple_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, simple_payment_request, opts) [data, _status_code, _headers] end |
#simple_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, simple_payment_request, opts = {}) ⇒ Array<(SimplePaymentResponse, Fixnum, Hash)>
Simple Payment The API is used to make payments to service a customer account. Client systems can provide the unique identifier for the payment in their system as payment_reference. Fee amount and fee type are conditional and should be provided if the details of the fee to be charged are maintained in the client system. The fee types that are supported in EBPP are add_to_principal and bill_separately. Alternatively, the fee information can be setup in EBPP, in which case, these fields are ignored. If fee information is setup in the system, the details of the fee are returned in the response. This API updates the details of the customer, customer account and the funding account if those exist in EBPP or creates them otherwise.
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 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 863 def simple_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, simple_payment_request, opts = {}) # resource path local_var_path = '/payments' # query parameters query_params = {} if !opts[:'save_funding_account'].nil? && opts[:'save_funding_account'].to_s.strip != "" query_params[:'save_funding_account'] = opts[:'save_funding_account'] end # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(simple_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:POST, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'SimplePaymentResponse') return data, status_code, headers end |
#update_payment(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) ⇒ [PaymentResponse, headers]
Update Payment The API is used to edit a payment. Only payments in scheduled status can be edited.
920 921 922 923 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 920 def update_payment(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) data, _status_code, _headers = update_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts) [data, _status_code, _headers] end |
#update_payment_with_http_info(channel, client_key, product, timestamp, idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) ⇒ Array<(PaymentResponse, Fixnum, Hash)>
Update Payment The API is used to edit a payment. Only payments in scheduled status can be edited.
941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 |
# File 'lib/orbipay_paymentsapi_client/api/payment_api.rb', line 941 def update_payment_with_http_info(channel, client_key, product, , idempotent_request_key, requestor_type, id_payment, id_customer, update_payment_request, opts = {}) # resource path local_var_path = '/customers/{ID_CUSTOMER}/payments/{ID_PAYMENT}' if !id_payment.nil? && id_payment.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_PAYMENT' + '}', id_payment.to_s) else fail ArgumentError, "Missing the required parameter 'id_payment' when calling PaymentApi.update_payment" end if !id_customer.nil? && id_customer.to_s.strip != "" local_var_path = local_var_path.sub('{' + 'ID_CUSTOMER' + '}', id_customer.to_s) else fail ArgumentError, "Missing the required parameter 'id_customer' when calling PaymentApi.update_payment" end # query parameters query_params = {} # header parameters header_params = {} # HTTP header 'Accept' (if needed) header_params['Accept'] = @api_client.select_header_accept(['application/json']) # HTTP header 'Content-Type' header_params['Content-Type'] = @api_client.select_header_content_type(['application/json']) header_params['channel'] = channel header_params['client_key'] = client_key header_params['product'] = product header_params['timestamp'] = header_params['idempotent_request_key'] = idempotent_request_key header_params['requestor_type'] = requestor_type header_params['requestor'] = opts[:'requestor'] if !opts[:'requestor'].nil? header_params['X-OPAY-Headers'] = opts[:'x_opay_headers'] if !opts[:'x_opay_headers'].nil? header_params['trace_id'] = opts[:'trace_id'] if !opts[:'trace_id'].nil? # form parameters form_params = {} # http body (model) post_body = @api_client.object_to_http_body(update_payment_request) auth_names = [] data, status_code, headers = @api_client.call_api(:PUT, local_var_path, :header_params => header_params, :query_params => query_params, :form_params => form_params, :body => post_body, :auth_names => auth_names, :return_type => 'PaymentResponse') return data, status_code, headers end |