citypay_api_client 1.1.1 → 1.1.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/Gemfile.lock +73 -0
- data/README.md +65 -37
- data/citypay_api_client.gemspec +4 -3
- data/docs/Acknowledgement.md +2 -2
- data/docs/AclCheckResponseModel.md +3 -3
- data/docs/AirlineAdvice.md +1 -1
- data/docs/AuthRequest.md +9 -7
- data/docs/AuthResponse.md +9 -5
- data/docs/AuthorisationAndPaymentApi.md +145 -10
- data/docs/Batch.md +1 -1
- data/docs/BatchProcessingApi.md +24 -20
- data/docs/BatchReportResponseModel.md +2 -2
- data/docs/BatchTransaction.md +1 -1
- data/docs/BatchTransactionReportRequest.md +22 -0
- data/docs/BatchTransactionReportResponse.md +24 -0
- data/docs/BatchTransactionResultModel.md +6 -2
- data/docs/Bin.md +2 -2
- data/docs/CaptureRequest.md +1 -1
- data/docs/Card.md +3 -3
- data/docs/CardHolderAccountApi.md +73 -14
- data/docs/ChargeRequest.md +8 -6
- data/docs/ContactDetails.md +11 -11
- data/docs/Decision.md +0 -2
- data/docs/DirectPostApi.md +26 -16
- data/docs/DirectPostRequest.md +9 -7
- data/docs/EventDataModel.md +2 -2
- data/docs/MerchantBatchReportRequest.md +28 -0
- data/docs/MerchantBatchReportResponse.md +24 -0
- data/docs/MerchantBatchResponse.md +30 -0
- data/docs/NetSummaryResponse.md +32 -0
- data/docs/OperationalFunctionsApi.md +28 -8
- data/docs/PaylinkAdjustmentRequest.md +1 -1
- data/docs/PaylinkApi.md +337 -21
- data/docs/PaylinkBillPaymentTokenRequest.md +1 -1
- data/docs/PaylinkCustomParam.md +3 -1
- data/docs/PaylinkErrorCode.md +2 -2
- data/docs/PaylinkFieldGuardModel.md +1 -1
- data/docs/PaylinkResendNotificationRequest.md +20 -0
- data/docs/PaylinkStateEvent.md +4 -4
- data/docs/PaylinkTokenCreated.md +11 -11
- data/docs/PaylinkTokenRequestModel.md +4 -0
- data/docs/PaylinkTokenStatus.md +7 -7
- data/docs/PaylinkTokenStatusChangeRequest.md +7 -7
- data/docs/PaylinkTokenStatusChangeResponse.md +6 -2
- data/docs/PaymentIntent.md +42 -0
- data/docs/PaymentIntentReference.md +18 -0
- data/docs/RefundRequest.md +1 -1
- data/docs/RegisterCard.md +1 -1
- data/docs/RemittanceData.md +28 -0
- data/docs/RemittanceReportRequest.md +28 -0
- data/docs/RemittanceReportResponse.md +24 -0
- data/docs/RemittedClientData.md +44 -0
- data/docs/ReportingApi.md +378 -0
- data/docs/ThreeDSecure.md +1 -1
- data/docs/TokenisationResponseModel.md +3 -3
- data/docs/images/3dsv1-challenge.png +0 -0
- data/docs/images/3dsv2-challenge.png +0 -0
- data/docs/images/3dsv2-frictionless.png +0 -0
- data/docs/images/3dsv2-method-challenge.png +0 -0
- data/docs/images/3dsv2-method-frictionless.png +0 -0
- data/docs/images/3dsv2-no3d.png +0 -0
- data/docs/images/citypay-logo.svg +1 -0
- data/docs/images/direct-post-flow.png +0 -0
- data/docs/images/favicon.ico +0 -0
- data/docs/images/header.png +0 -0
- data/docs/images/logo.ai +1913 -4
- data/docs/images/logo.png +0 -0
- data/docs/images/logo.svg +1 -0
- data/docs/images/merchant-BPS-workflow.png +0 -0
- data/docs/images/paylink-field-guards.png +0 -0
- data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +72 -4
- data/lib/citypay_api_client/api/batch_processing_api__.rb +15 -15
- data/lib/citypay_api_client/api/card_holder_account_api__.rb +5 -2
- data/lib/citypay_api_client/api/direct_post_api__.rb +9 -9
- data/lib/citypay_api_client/api/operational_functions_api__.rb +3 -3
- data/lib/citypay_api_client/api/paylink_api__.rb +163 -26
- data/lib/citypay_api_client/api/reporting_api__.rb +381 -0
- data/lib/citypay_api_client/api_client.rb +24 -22
- data/lib/citypay_api_client/api_error.rb +3 -2
- data/lib/citypay_api_client/configuration.rb +28 -9
- data/lib/citypay_api_client/models/account_create.rb +17 -20
- data/lib/citypay_api_client/models/account_status.rb +15 -20
- data/lib/citypay_api_client/models/acknowledgement.rb +21 -46
- data/lib/citypay_api_client/models/acl_check_request.rb +17 -20
- data/lib/citypay_api_client/models/acl_check_response_model.rb +16 -21
- data/lib/citypay_api_client/models/airline_advice.rb +45 -29
- data/lib/citypay_api_client/models/airline_segment.rb +35 -22
- data/lib/citypay_api_client/models/auth_reference.rb +41 -26
- data/lib/citypay_api_client/models/auth_references.rb +15 -20
- data/lib/citypay_api_client/models/auth_request.rb +72 -34
- data/lib/citypay_api_client/models/auth_response.rb +46 -23
- data/lib/citypay_api_client/models/authen_required.rb +15 -20
- data/lib/citypay_api_client/models/batch.rb +25 -22
- data/lib/citypay_api_client/models/batch_report_request.rb +23 -22
- data/lib/citypay_api_client/models/batch_report_response_model.rb +28 -21
- data/lib/citypay_api_client/models/batch_transaction.rb +25 -22
- data/lib/citypay_api_client/models/batch_transaction_report_request.rb +234 -0
- data/lib/citypay_api_client/models/batch_transaction_report_response.rb +252 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +53 -22
- data/lib/citypay_api_client/models/bin.rb +15 -20
- data/lib/citypay_api_client/models/bin_lookup.rb +17 -20
- data/lib/citypay_api_client/models/c_res_auth_request.rb +15 -20
- data/lib/citypay_api_client/models/capture_request.rb +27 -22
- data/lib/citypay_api_client/models/card.rb +33 -26
- data/lib/citypay_api_client/models/card_holder_account.rb +19 -20
- data/lib/citypay_api_client/models/card_status.rb +15 -20
- data/lib/citypay_api_client/models/charge_request.rb +72 -34
- data/lib/citypay_api_client/models/check_batch_status.rb +23 -22
- data/lib/citypay_api_client/models/check_batch_status_response.rb +15 -20
- data/lib/citypay_api_client/models/contact_details.rb +77 -42
- data/lib/citypay_api_client/models/decision.rb +16 -30
- data/lib/citypay_api_client/models/direct_post_request.rb +72 -34
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +15 -20
- data/lib/citypay_api_client/models/domain_key_check_request.rb +17 -20
- data/lib/citypay_api_client/models/domain_key_request.rb +19 -20
- data/lib/citypay_api_client/models/domain_key_response.rb +25 -22
- data/lib/citypay_api_client/models/error.rb +27 -24
- data/lib/citypay_api_client/models/event_data_model.rb +15 -20
- data/lib/citypay_api_client/models/exists.rb +17 -20
- data/lib/citypay_api_client/models/external_mpi.rb +39 -24
- data/lib/citypay_api_client/models/list_merchants_response.rb +21 -22
- data/lib/citypay_api_client/models/mcc6012.rb +15 -20
- data/lib/citypay_api_client/models/merchant.rb +15 -20
- data/lib/citypay_api_client/models/merchant_batch_report_request.rb +265 -0
- data/lib/citypay_api_client/models/merchant_batch_report_response.rb +252 -0
- data/lib/citypay_api_client/models/merchant_batch_response.rb +301 -0
- data/lib/citypay_api_client/models/net_summary_response.rb +472 -0
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +19 -20
- data/lib/citypay_api_client/models/paylink_address.rb +52 -29
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +25 -22
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +19 -20
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +19 -20
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +17 -20
- data/lib/citypay_api_client/models/paylink_card_holder.rb +30 -23
- data/lib/citypay_api_client/models/paylink_cart.rb +15 -20
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +15 -20
- data/lib/citypay_api_client/models/paylink_config.rb +15 -20
- data/lib/citypay_api_client/models/paylink_custom_param.rb +29 -22
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +17 -20
- data/lib/citypay_api_client/models/paylink_error_code.rb +19 -20
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +16 -21
- data/lib/citypay_api_client/models/paylink_part_payments.rb +15 -20
- data/lib/citypay_api_client/models/paylink_resend_notification_request.rb +224 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +17 -20
- data/lib/citypay_api_client/models/paylink_state_event.rb +16 -21
- data/lib/citypay_api_client/models/paylink_token_created.rb +56 -27
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +75 -22
- data/lib/citypay_api_client/models/paylink_token_status.rb +44 -21
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +24 -26
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +39 -22
- data/lib/citypay_api_client/models/paylink_ui.rb +15 -20
- data/lib/citypay_api_client/models/payment_intent.rb +479 -0
- data/lib/citypay_api_client/models/payment_intent_reference.rb +221 -0
- data/lib/citypay_api_client/models/ping.rb +21 -22
- data/lib/citypay_api_client/models/process_batch_request.rb +27 -22
- data/lib/citypay_api_client/models/process_batch_response.rb +17 -20
- data/lib/citypay_api_client/models/refund_request.rb +28 -21
- data/lib/citypay_api_client/models/register_card.rb +27 -22
- data/lib/citypay_api_client/models/remittance_data.rb +404 -0
- data/lib/citypay_api_client/models/remittance_report_request.rb +265 -0
- data/lib/citypay_api_client/models/remittance_report_response.rb +252 -0
- data/lib/citypay_api_client/models/remitted_client_data.rb +612 -0
- data/lib/citypay_api_client/models/request_challenged.rb +15 -20
- data/lib/citypay_api_client/models/retrieve_request.rb +23 -22
- data/lib/citypay_api_client/models/three_d_secure.rb +16 -21
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +23 -24
- data/lib/citypay_api_client/models/void_request.rb +23 -22
- data/lib/citypay_api_client/version.rb +3 -3
- data/lib/citypay_api_client.rb +16 -3
- data/spec/api/reporting_api___spec.rb +99 -0
- data/spec/it_api_sandbox_spec.rb +5 -14
- data/spec/models/account_create_spec.rb +1 -2
- data/spec/models/account_status_spec.rb +2 -2
- data/spec/models/airline_advice_spec.rb +0 -2
- data/spec/models/airline_segment_spec.rb +0 -2
- data/spec/models/auth_request_spec.rb +0 -2
- data/spec/models/auth_response_spec.rb +75 -30
- data/spec/models/batch_report_request_spec.rb +0 -2
- data/spec/models/batch_report_response_model_spec.rb +0 -2
- data/spec/models/batch_spec.rb +0 -2
- data/spec/models/batch_transaction_report_request_spec.rb +47 -0
- data/spec/models/batch_transaction_report_response_spec.rb +53 -0
- data/spec/models/batch_transaction_result_model_spec.rb +0 -2
- data/spec/models/batch_transaction_spec.rb +0 -2
- data/spec/models/bin_lookup_spec.rb +0 -2
- data/spec/models/capture_request_spec.rb +0 -2
- data/spec/models/card_holder_account_spec.rb +0 -2
- data/spec/models/charge_request_spec.rb +0 -2
- data/spec/models/decision_spec.rb +0 -26
- data/spec/models/direct_post_request_spec.rb +0 -2
- data/spec/models/domain_key_check_request_spec.rb +0 -2
- data/spec/models/merchant_batch_report_request_spec.rb +65 -0
- data/spec/models/merchant_batch_report_response_spec.rb +53 -0
- data/spec/models/merchant_batch_response_spec.rb +71 -0
- data/spec/models/net_summary_response_spec.rb +77 -0
- data/spec/models/paylink_resend_notification_request_spec.rb +41 -0
- data/spec/models/paylink_token_request_model_spec.rb +0 -2
- data/spec/models/payment_intent_reference_spec.rb +35 -0
- data/spec/models/payment_intent_spec.rb +107 -0
- data/spec/models/process_batch_request_spec.rb +0 -2
- data/spec/models/refund_request_spec.rb +0 -2
- data/spec/models/register_card_spec.rb +0 -2
- data/spec/models/remittance_data_spec.rb +65 -0
- data/spec/models/remittance_report_request_spec.rb +65 -0
- data/spec/models/remittance_report_response_spec.rb +53 -0
- data/spec/models/remitted_client_data_spec.rb +113 -0
- data/spec/spec_helper.rb +2 -2
- metadata +146 -78
- data/docs/OperationalApi.md +0 -214
- data/docs/PaymentProcessingApi.md +0 -559
- data/spec/models/authen_required_spec.rb +0 -52
@@ -8,6 +8,7 @@ All URIs are relative to *https://api.citypay.com*
|
|
8
8
|
| [**bin_range_lookup_request**](AuthorisationAndPaymentApi.md#bin_range_lookup_request) | **POST** /v6/bin | Bin Lookup |
|
9
9
|
| [**c_res_request**](AuthorisationAndPaymentApi.md#c_res_request) | **POST** /v6/cres | CRes |
|
10
10
|
| [**capture_request**](AuthorisationAndPaymentApi.md#capture_request) | **POST** /v6/capture | Capture |
|
11
|
+
| [**create_payment_intent**](AuthorisationAndPaymentApi.md#create_payment_intent) | **POST** /v6/intent/create | Create a Payment Intent |
|
11
12
|
| [**pa_res_request**](AuthorisationAndPaymentApi.md#pa_res_request) | **POST** /v6/pares | PaRes |
|
12
13
|
| [**refund_request**](AuthorisationAndPaymentApi.md#refund_request) | **POST** /v6/refund | Refund |
|
13
14
|
| [**retrieval_request**](AuthorisationAndPaymentApi.md#retrieval_request) | **POST** /v6/retrieve | Retrieval |
|
@@ -20,7 +21,7 @@ All URIs are relative to *https://api.citypay.com*
|
|
20
21
|
|
21
22
|
Authorisation
|
22
23
|
|
23
|
-
An authorisation process performs a standard transaction authorisation based on the provided parameters of its request. The CityPay gateway will route your transaction via an Acquiring bank for subsequent authorisation to the appropriate card schemes such as Visa or MasterCard. The authorisation API should be used for server environments to process transactions on demand and in realtime. The authorisation API can be used for multiple types of transactions including E-commerce, mail order, telephone order, customer present (keyed), continuous authority, pre-authorisation and others. CityPay will configure your account for the appropriate coding and this will perform transparently by the gateway. Data properties that are required, may depend on the environment you are conducting payment for. Our API aims to be flexible enough to cater for these structures. Our integration team will aid you in providing the necessary data to transact. ## E-commerce workflows For E-commerce transactions requiring 3DS, the API contains a fully accredited in built mechanism to handle authentication. The Api and gateway has been accredited extensively with both Acquirers and Card Schemes to simplify the nature of these calls into a simple structure for authentication, preventing integrators from performing lengthy and a costly accreditations with Visa and MasterCard. 3D-secure has been around for a number of years and aims to shift the liability of a transaction away from a merchant back to the card holder. A *liability shift* determines whether a card holder can charge back a transaction as unknown. Effectively the process asks for a card holder to authenticate the transaction prior to authorisation producing a Cardholder verification value (CAVV) and ecommerce indicator (ECI) as evidence of authorisation. 3DS version 1 has now been replaced by 3DS version 2 to provide secure customer authentication (SCA) in line with EU regulation. 3DSv2 is being phased out and any accounts using version 1 of the protocol is expected to be migrated by March 2022. Any new integrations should only consider 3DSv2 flows. ### 3DSv2 ```json { \"RequestChallenged\": { \"acsurl\": \"https://bank.com/3DS/ACS\", \"creq\": \"SXQgd2FzIHRoZSBiZXN0IG9mIHRpbWVzLCBpdCB3YXMgdGhlIHdvcnN00...\", \"merchantid\": 12345, \"transno\": 1, \"threedserver_trans_id\": \"d652d8d2-d74a-4264-a051-a7862b10d5d6\" } } ``` ```xml <RequestChallenged> <acsurl>https://bank.com/3DS/ACS</acsurl> <creq>SXQgd2FzIHRoZSBiZXN0IG9mIHRpbWVzLCBpdCB3YXMgdGhlIHdvcnN00...</creq> <merchantid>12345</merchantid> <transno>1</transno> <threedserver_trans_id>d652d8d2-d74a-4264-a051-a7862b10d5d6</threedserver_trans_id> </RequestChallenged> ``` CityPay support 3DS version 2.1 for Verified by Visa, MasterCard Identity Check and American Express SafeKey 2.1. Version 2.2 is currently in development however this will be a seamless upgrade for all integrations. #### 3-D Secure - None  A basic flow may involve no 3-D secure processing. This could happen if there is no ability to perform authentication. An enrollment check may apply an \"attempted\" resolution to processing. In this instance a transaction may not meet any liability shift. A transaction may result in a decline due to this. We are also able to prevent from transactions being presented for authorisation if this occurs. #### 3-D Secure - Frictionless  E-commerce transactions supporting 3DSv2 can benefit from seamlessly authenticated transactions which may perform a \"frictionless\" flow. This method will authenticate low risk transactions with minimal impact to a standard authorisation flow. Our API simply performs this on behalf of you the developer, the merchant and cardholder. No redirection occurs and hence the flow is called frictionless and will appear as though a simple transaction authorisation has occurred. #### 3-D Secure - Challenge  A transaction that is deemed as higher risk my be \"challenged\". In this instance, the API will return a [request challenge](#requestchallenged) which will require your integration to forward the cardholder's browser to the given [ACS url](#acsurl). This should be performed by posting the [creq](#creq) value (the challenge request value). Once complete, the ACS will have already been in touch with our servers by sending us a result of the authentication known as `RReq`. To maintain session state, a parameter `threeDSSessionData` can be posted to the ACS url and will be returned alongside the `CRes` value. This will ensure that any controller code will be able to isolate state between calls. This field is to be used by your own systems rather than ours and may be any value which can uniquely identify your cardholder's session. As an option, we do provide a `threedserver_trans_id` value in the `RequestChallenged` packet which can be used for the `threeDSSessionData` value as it is used to uniquely identify the 3D-Secure session. A common method of maintaining state is to provide a session related query string value in the `merchant_termurl` value (also known as the `notificationUrl`). For example providing a url of `https://mystore.com/checkout?token=asny2348w4561..` could return the user directly back to their session with your environment. Once you have received a `cres` post from the ACS authentication service, this should be POSTed to the [cres](#cres) endpoint to perform full authorisation processing. Please note that the CRes returned to us is purely a mechanism of acknowledging that transactions should be committed for authorisation. The ACS by this point will have sent us the verification value (CAVV) to perform a liability shift. The CRes value will be validated for receipt of the CAVV and subsequently may return response codes illustrating this. To forward the user to the ACS, we recommend a simple auto submit HTML form. > Simple auto submit HTML form ```html <html lang=\"en\"> <head> <title>Forward to ACS</title> <script type=\"text/javascript\"> function onLoadEvent() { document.acs.submit(); } </script> <noscript>You will require JavaScript to be enabled to complete this transaction</noscript> </head> <body onload=\"onLoadEvent();\"> <form name=\"acs\" action=\"{{ACSURL from Response}}\" method=\"POST\"> <input type=\"hidden\" name=\"creq\" value=\"{{CReq Packet from Response}}\" /> <input type=\"hidden\" name=\"threeDSSessionData\" value=\"{{session-identifier}}\" /> </form> </body> </html> ``` A full ACS test suite is available for 3DSv2 testing. ### Testing 3DSv2 Integrations The API provides a mock 3dsV2 handler which performs a number of scenarios based on the value of the CSC in the request. | CSC Value | Behaviour | |-----------|-----------| | 731 | Frictionless processing - Not authenticated | | 732 | Frictionless processing - Account verification count not be performed | | 733 | Frictionless processing - Verification Rejected | | 741 | Frictionless processing - Attempts Processing | | 750 | Frictionless processing - Authenticated | | 761 | Triggers an error message | | Any | Challenge Request | #### 3DSv1 **Please note that 3DSv1 should now be considered as deprecated.** ```json { \"AuthenticationRequired\": { \"acsurl\": \"https://bank.com/3DS/ACS\", \"pareq\": \"SXQgd2FzIHRoZSBiZXN0IG9mIHRpbWVzLCBpdCB3YXMgdGhlIHdvcnN00...\", \"md\": \"WQgZXZlcnl0aGluZyBiZW\" } } ``` ```xml <AuthenticationRequired> <acsurl>https://bank.com/3DS/ACS</acsurl> <pareq>SXQgd2FzIHRoZSBiZXN0IG9mIHRpbWVzLCBpdCB3YXMgdGhlIHdvcnN00...</pareq> <md>WQgZXZlcnl0aGluZyBiZW</md> </AuthenticationRequired> ``` For E-commerce transactions requiring 3DSv1, the API contains a built in MPI which will be called to check whether the card is participating in 3DSv1 with Verified by Visa or MasterCard SecureCode. We only support Amex SafeKey with 3DSv2. Should the card be enrolled, a payer request (PAReq) value will be created and returned back as an [authentication required](#authenticationrequired) response object. Your system will need to process this authentication packet and forward the user's browser to an authentication server (ACS) to gain the user's authentication. Once complete, the ACS will produce a HTTP `POST` call back to the URL supplied in the authentication request as `merchant_termurl`. This URL should behave as a controller and handle the post data from the ACS and on a forked server to server HTTP request, forward this data to the [pares authentication url](#pares) for subsequent authorisation processing. You may prefer to provide a processing page whilst this is being processed. Processing with our systems should be relatively quick and be between 500ms - 3000ms however it is desirable to let the user see that something is happening rather than a pending browser. The main reason for ensuring that this controller is two fold: 1. We are never in control of the user's browser in a server API call 2. The controller is actioned on your site to ensure that any post actions from authorisation can be executed in real time To forward the user to the ACS, we recommend a simple auto submit HTML form. > Simple auto submit HTML form ```html <html lang=\"en\"> <head> <title>Forward to ACS</title> <script type=\"text/javascript\"> function onLoadEvent() { document.acs.submit(); } </script> <noscript>You will require JavaScript to be enabled to complete this transaction</noscript> </head> <body onload=\"onLoadEvent();\"> <form name=\"acs\" action=\"{{ACSURL from Response}}\" method=\"POST\"> <input type=\"hidden\" name=\"PaReq\" value=\"{{PaReq Packet from Response}}\" /> <input type=\"hidden\" name=\"TermUrl\" value=\"{{Your Controller}}\" /> <input type=\"hidden\" name=\"MD\" value=\"{{MD From Response}}\" /> </form> </body> </html> ``` Please note that 3DSv1 is being phased out due to changes to strong customer authentication mechanisms. 3DSv2 addresses this and will solidify the authorisation and confirmation process. We provide a Test ACS for full 3DSv1 integration testing that simulates an ACS.
|
24
|
+
Performs a request for authorisation for a card payment request.
|
24
25
|
|
25
26
|
### Examples
|
26
27
|
|
@@ -33,7 +34,7 @@ CityPayApiClient.configure do |config|
|
|
33
34
|
end
|
34
35
|
|
35
36
|
api_instance = CityPayApiClient::AuthorisationAndPaymentApi.new
|
36
|
-
auth_request = CityPayApiClient::AuthRequest.new({amount:
|
37
|
+
auth_request = CityPayApiClient::AuthRequest.new({amount: 19995, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344}) # AuthRequest |
|
37
38
|
|
38
39
|
begin
|
39
40
|
# Authorisation
|
@@ -88,7 +89,18 @@ end
|
|
88
89
|
|
89
90
|
Bin Lookup
|
90
91
|
|
91
|
-
A bin range lookup service can be used to check what a card is, as seen by the gateway. Each card number's
|
92
|
+
A bin range lookup service can be used to check what a card is, as seen by the gateway. Each card number's
|
93
|
+
leading digits help to identify who
|
94
|
+
|
95
|
+
0. the card scheme is such as Visa, MasterCard or American Express
|
96
|
+
1. the issuer of the card, such as the bank
|
97
|
+
2. it's country of origin
|
98
|
+
3. it's currency of origin
|
99
|
+
|
100
|
+
Our gateway has 450 thousand possible bin ranges and uses a number of algorithms to determine the likelihood of the bin
|
101
|
+
data. The request requires a bin value of between 6 and 12 digits. The more digits provided may ensure a more accurate
|
102
|
+
result.
|
103
|
+
|
92
104
|
|
93
105
|
### Examples
|
94
106
|
|
@@ -156,7 +168,14 @@ end
|
|
156
168
|
|
157
169
|
CRes
|
158
170
|
|
159
|
-
The CRes request performs authorisation processing once a challenge request has been completed
|
171
|
+
The CRes request performs authorisation processing once a challenge request has been completed
|
172
|
+
with an Authentication Server (ACS). This challenge response contains confirmation that will
|
173
|
+
allow the API systems to return an authorisation response based on the result. Our systems will
|
174
|
+
know out of band via an `RReq` call by the ACS to notify us if the liability shift has been issued.
|
175
|
+
|
176
|
+
Any call to the CRes operation will require a previous authorisation request and cannot be called
|
177
|
+
on its own without a previous [request challenge](#requestchallenged) being obtained.
|
178
|
+
|
160
179
|
|
161
180
|
### Examples
|
162
181
|
|
@@ -224,7 +243,24 @@ end
|
|
224
243
|
|
225
244
|
Capture
|
226
245
|
|
227
|
-
_The capture process only applies to transactions which have been pre-authorised only._
|
246
|
+
_The capture process only applies to transactions which have been pre-authorised only._
|
247
|
+
|
248
|
+
The capture process will ensure
|
249
|
+
that a transaction will now settle. It is expected that a capture call will be provided within 3 days or
|
250
|
+
a maximum of 7 days.
|
251
|
+
|
252
|
+
A capture request is provided to confirm that you wish the transaction to be settled. This request can
|
253
|
+
contain a final amount for the transaction which is different to the original authorisation amount. This
|
254
|
+
may be useful in a delayed system process such as waiting for stock to be ordered, confirmed, or services
|
255
|
+
provided before the final cost is known.
|
256
|
+
|
257
|
+
When a transaction is completed, a new authorisation code may be created and a new confirmation
|
258
|
+
can be sent online to the acquiring bank.
|
259
|
+
|
260
|
+
Once the transaction has been processed. A standard [`Acknowledgement`](#acknowledgement) will be returned,
|
261
|
+
outlining the result of the transaction. On a successful completion process, the transaction will
|
262
|
+
be available for the settlement and completed at the end of the day.
|
263
|
+
|
228
264
|
|
229
265
|
### Examples
|
230
266
|
|
@@ -286,13 +322,91 @@ end
|
|
286
322
|
- **Accept**: application/json, text/xml
|
287
323
|
|
288
324
|
|
325
|
+
## create_payment_intent
|
326
|
+
|
327
|
+
> <PaymentIntentReference> create_payment_intent(payment_intent)
|
328
|
+
|
329
|
+
Create a Payment Intent
|
330
|
+
|
331
|
+
This endpoint initiates the creation of a payment intent, which is a precursor to processing a payment. A payment intent
|
332
|
+
captures the details of a prospective payment transaction, including the payment amount, currency, and associated
|
333
|
+
billing and shipping information.
|
334
|
+
|
335
|
+
|
336
|
+
### Examples
|
337
|
+
|
338
|
+
```ruby
|
339
|
+
require 'time'
|
340
|
+
require 'citypay_api_client'
|
341
|
+
# setup authorization
|
342
|
+
CityPayApiClient.configure do |config|
|
343
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
344
|
+
end
|
345
|
+
|
346
|
+
api_instance = CityPayApiClient::AuthorisationAndPaymentApi.new
|
347
|
+
payment_intent = CityPayApiClient::PaymentIntent.new({amount: 19995, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95'}) # PaymentIntent |
|
348
|
+
|
349
|
+
begin
|
350
|
+
# Create a Payment Intent
|
351
|
+
result = api_instance.create_payment_intent(payment_intent)
|
352
|
+
p result
|
353
|
+
rescue CityPayApiClient::ApiError => e
|
354
|
+
puts "Error when calling AuthorisationAndPaymentApi->create_payment_intent: #{e}"
|
355
|
+
end
|
356
|
+
```
|
357
|
+
|
358
|
+
#### Using the create_payment_intent_with_http_info variant
|
359
|
+
|
360
|
+
This returns an Array which contains the response data, status code and headers.
|
361
|
+
|
362
|
+
> <Array(<PaymentIntentReference>, Integer, Hash)> create_payment_intent_with_http_info(payment_intent)
|
363
|
+
|
364
|
+
```ruby
|
365
|
+
begin
|
366
|
+
# Create a Payment Intent
|
367
|
+
data, status_code, headers = api_instance.create_payment_intent_with_http_info(payment_intent)
|
368
|
+
p status_code # => 2xx
|
369
|
+
p headers # => { ... }
|
370
|
+
p data # => <PaymentIntentReference>
|
371
|
+
rescue CityPayApiClient::ApiError => e
|
372
|
+
puts "Error when calling AuthorisationAndPaymentApi->create_payment_intent_with_http_info: #{e}"
|
373
|
+
end
|
374
|
+
```
|
375
|
+
|
376
|
+
### Parameters
|
377
|
+
|
378
|
+
| Name | Type | Description | Notes |
|
379
|
+
| ---- | ---- | ----------- | ----- |
|
380
|
+
| **payment_intent** | [**PaymentIntent**](PaymentIntent.md) | | |
|
381
|
+
|
382
|
+
### Return type
|
383
|
+
|
384
|
+
[**PaymentIntentReference**](PaymentIntentReference.md)
|
385
|
+
|
386
|
+
### Authorization
|
387
|
+
|
388
|
+
[cp-api-key](../README.md#cp-api-key)
|
389
|
+
|
390
|
+
### HTTP request headers
|
391
|
+
|
392
|
+
- **Content-Type**: application/json, text/xml
|
393
|
+
- **Accept**: application/json, text/xml
|
394
|
+
|
395
|
+
|
289
396
|
## pa_res_request
|
290
397
|
|
291
398
|
> <AuthResponse> pa_res_request(pa_res_auth_request)
|
292
399
|
|
293
400
|
PaRes
|
294
401
|
|
295
|
-
The Payer Authentication Response (PaRes) is an operation after the result of authentication
|
402
|
+
The Payer Authentication Response (PaRes) is an operation after the result of authentication
|
403
|
+
being performed. The request uses an encoded packet of authentication data to
|
404
|
+
notify us of the completion of the liability shift. Once this value has been unpacked and its
|
405
|
+
signature is checked, our systems will proceed to authorisation processing.
|
406
|
+
|
407
|
+
Any call to the PaRes operation will require a previous authorisation request and cannot be called
|
408
|
+
on its own without a previous [authentication required](#authenticationrequired) being obtained.
|
409
|
+
|
296
410
|
|
297
411
|
### Examples
|
298
412
|
|
@@ -360,7 +474,10 @@ end
|
|
360
474
|
|
361
475
|
Refund
|
362
476
|
|
363
|
-
A refund request which allows for the refunding of a previous transaction up
|
477
|
+
A refund request which allows for the refunding of a previous transaction up
|
478
|
+
and to the amount of the original sale. A refund will be performed against the
|
479
|
+
original card used to process the transaction.
|
480
|
+
|
364
481
|
|
365
482
|
### Examples
|
366
483
|
|
@@ -373,7 +490,7 @@ CityPayApiClient.configure do |config|
|
|
373
490
|
end
|
374
491
|
|
375
492
|
api_instance = CityPayApiClient::AuthorisationAndPaymentApi.new
|
376
|
-
refund_request = CityPayApiClient::RefundRequest.new({amount:
|
493
|
+
refund_request = CityPayApiClient::RefundRequest.new({amount: 19995, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344, refund_ref: 8322}) # RefundRequest |
|
377
494
|
|
378
495
|
begin
|
379
496
|
# Refund
|
@@ -428,7 +545,17 @@ end
|
|
428
545
|
|
429
546
|
Retrieval
|
430
547
|
|
431
|
-
A retrieval request which allows an integration to obtain the result of a transaction processed
|
548
|
+
A retrieval request which allows an integration to obtain the result of a transaction processed
|
549
|
+
in the last 90 days. The request allows for retrieval based on the identifier or transaction
|
550
|
+
number.
|
551
|
+
|
552
|
+
The process may return multiple results in particular where a transaction was processed multiple
|
553
|
+
times against the same identifier. This can happen if errors were first received. The API therefore
|
554
|
+
returns up to the first 5 transactions in the latest date time order.
|
555
|
+
|
556
|
+
It is not intended for this operation to be a replacement for reporting and only allows for base transaction
|
557
|
+
information to be returned.
|
558
|
+
|
432
559
|
|
433
560
|
### Examples
|
434
561
|
|
@@ -496,7 +623,15 @@ end
|
|
496
623
|
|
497
624
|
Void
|
498
625
|
|
499
|
-
_The void process generally applies to transactions which have been pre-authorised only however voids can occur
|
626
|
+
_The void process generally applies to transactions which have been pre-authorised only however voids can occur
|
627
|
+
on the same day if performed before batching and settlement._
|
628
|
+
|
629
|
+
The void process will ensure that a transaction will now settle. It is expected that a void call will be
|
630
|
+
provided on the same day before batching and settlement or within 3 days or within a maximum of 7 days.
|
631
|
+
|
632
|
+
Once the transaction has been processed as a void, an [`Acknowledgement`](#acknowledgement) will be returned,
|
633
|
+
outlining the result of the transaction.
|
634
|
+
|
500
635
|
|
501
636
|
### Examples
|
502
637
|
|
data/docs/Batch.md
CHANGED
@@ -6,7 +6,7 @@
|
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **batch_date** | **Date** | The date that the file was created in ISO-8601 format. | |
|
8
8
|
| **batch_id** | **Integer** | The batch id requested. | [optional] |
|
9
|
-
| **batch_status** | **String** | The status of the batch. Possible values are
|
9
|
+
| **batch_status** | **String** | The status of the batch. Possible values are: - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
|
10
10
|
|
11
11
|
## Example
|
12
12
|
|
data/docs/BatchProcessingApi.md
CHANGED
@@ -5,8 +5,8 @@ All URIs are relative to *https://api.citypay.com*
|
|
5
5
|
| Method | HTTP request | Description |
|
6
6
|
| ------ | ------------ | ----------- |
|
7
7
|
| [**batch_process_request**](BatchProcessingApi.md#batch_process_request) | **POST** /v6/batch/process | Batch Process Request |
|
8
|
-
| [**
|
9
|
-
| [**check_batch_status_request**](BatchProcessingApi.md#check_batch_status_request) | **POST** /v6/batch/status |
|
8
|
+
| [**batch_retrieve_request**](BatchProcessingApi.md#batch_retrieve_request) | **POST** /v6/batch/retrieve | Batch Retrieve Request |
|
9
|
+
| [**check_batch_status_request**](BatchProcessingApi.md#check_batch_status_request) | **POST** /v6/batch/status | Check Batch Status |
|
10
10
|
|
11
11
|
|
12
12
|
## batch_process_request
|
@@ -15,7 +15,11 @@ All URIs are relative to *https://api.citypay.com*
|
|
15
15
|
|
16
16
|
Batch Process Request
|
17
17
|
|
18
|
-
A batch process request is used to start the batch process workflow by uploading batch
|
18
|
+
A batch process request is used to start the batch process workflow by uploading batch
|
19
|
+
data and initialising a new batch for processing. Once validated the batch will be queued
|
20
|
+
for processing and further updates can be received by a subsequent call to retrieve the batch
|
21
|
+
status.
|
22
|
+
|
19
23
|
|
20
24
|
### Examples
|
21
25
|
|
@@ -28,7 +32,7 @@ CityPayApiClient.configure do |config|
|
|
28
32
|
end
|
29
33
|
|
30
34
|
api_instance = CityPayApiClient::BatchProcessingApi.new
|
31
|
-
process_batch_request = CityPayApiClient::ProcessBatchRequest.new({batch_date: Date.parse('Thu Jan 02 00:00:00 UTC 2020'), batch_id: 35, transactions: [CityPayApiClient::BatchTransaction.new({account_id: 'aaabbb-cccddd-eee', amount:
|
35
|
+
process_batch_request = CityPayApiClient::ProcessBatchRequest.new({batch_date: Date.parse('Thu Jan 02 00:00:00 UTC 2020'), batch_id: 35, transactions: [CityPayApiClient::BatchTransaction.new({account_id: 'aaabbb-cccddd-eee', amount: 19995})]}) # ProcessBatchRequest |
|
32
36
|
|
33
37
|
begin
|
34
38
|
# Batch Process Request
|
@@ -77,13 +81,13 @@ end
|
|
77
81
|
- **Accept**: application/json, text/xml
|
78
82
|
|
79
83
|
|
80
|
-
##
|
84
|
+
## batch_retrieve_request
|
81
85
|
|
82
|
-
> <BatchReportResponseModel>
|
86
|
+
> <BatchReportResponseModel> batch_retrieve_request(batch_report_request)
|
83
87
|
|
84
|
-
|
88
|
+
Batch Retrieve Request
|
85
89
|
|
86
|
-
|
90
|
+
Obtains a batch and installment (BIS) report for a given batch id.
|
87
91
|
|
88
92
|
### Examples
|
89
93
|
|
@@ -99,29 +103,29 @@ api_instance = CityPayApiClient::BatchProcessingApi.new
|
|
99
103
|
batch_report_request = CityPayApiClient::BatchReportRequest.new({batch_id: 35}) # BatchReportRequest |
|
100
104
|
|
101
105
|
begin
|
102
|
-
#
|
103
|
-
result = api_instance.
|
106
|
+
# Batch Retrieve Request
|
107
|
+
result = api_instance.batch_retrieve_request(batch_report_request)
|
104
108
|
p result
|
105
109
|
rescue CityPayApiClient::ApiError => e
|
106
|
-
puts "Error when calling BatchProcessingApi->
|
110
|
+
puts "Error when calling BatchProcessingApi->batch_retrieve_request: #{e}"
|
107
111
|
end
|
108
112
|
```
|
109
113
|
|
110
|
-
#### Using the
|
114
|
+
#### Using the batch_retrieve_request_with_http_info variant
|
111
115
|
|
112
116
|
This returns an Array which contains the response data, status code and headers.
|
113
117
|
|
114
|
-
> <Array(<BatchReportResponseModel>, Integer, Hash)>
|
118
|
+
> <Array(<BatchReportResponseModel>, Integer, Hash)> batch_retrieve_request_with_http_info(batch_report_request)
|
115
119
|
|
116
120
|
```ruby
|
117
121
|
begin
|
118
|
-
#
|
119
|
-
data, status_code, headers = api_instance.
|
122
|
+
# Batch Retrieve Request
|
123
|
+
data, status_code, headers = api_instance.batch_retrieve_request_with_http_info(batch_report_request)
|
120
124
|
p status_code # => 2xx
|
121
125
|
p headers # => { ... }
|
122
126
|
p data # => <BatchReportResponseModel>
|
123
127
|
rescue CityPayApiClient::ApiError => e
|
124
|
-
puts "Error when calling BatchProcessingApi->
|
128
|
+
puts "Error when calling BatchProcessingApi->batch_retrieve_request_with_http_info: #{e}"
|
125
129
|
end
|
126
130
|
```
|
127
131
|
|
@@ -149,7 +153,7 @@ end
|
|
149
153
|
|
150
154
|
> <CheckBatchStatusResponse> check_batch_status_request(check_batch_status)
|
151
155
|
|
152
|
-
|
156
|
+
Check Batch Status
|
153
157
|
|
154
158
|
The operation is used to retrieve the status of a batch process.
|
155
159
|
|
@@ -164,10 +168,10 @@ CityPayApiClient.configure do |config|
|
|
164
168
|
end
|
165
169
|
|
166
170
|
api_instance = CityPayApiClient::BatchProcessingApi.new
|
167
|
-
check_batch_status = CityPayApiClient::CheckBatchStatus.new({batch_id: [
|
171
|
+
check_batch_status = CityPayApiClient::CheckBatchStatus.new({batch_id: [37]}) # CheckBatchStatus |
|
168
172
|
|
169
173
|
begin
|
170
|
-
#
|
174
|
+
# Check Batch Status
|
171
175
|
result = api_instance.check_batch_status_request(check_batch_status)
|
172
176
|
p result
|
173
177
|
rescue CityPayApiClient::ApiError => e
|
@@ -183,7 +187,7 @@ This returns an Array which contains the response data, status code and headers.
|
|
183
187
|
|
184
188
|
```ruby
|
185
189
|
begin
|
186
|
-
#
|
190
|
+
# Check Batch Status
|
187
191
|
data, status_code, headers = api_instance.check_batch_status_request_with_http_info(check_batch_status)
|
188
192
|
p status_code # => 2xx
|
189
193
|
p headers # => { ... }
|
@@ -7,7 +7,7 @@
|
|
7
7
|
| **amount** | **Integer** | The total amount that the batch contains. | |
|
8
8
|
| **batch_date** | **Date** | The date and time of the batch in ISO-8601 format. | |
|
9
9
|
| **batch_id** | **Integer** | The batch id specified in the batch processing request. | |
|
10
|
-
| **batch_status** | **String** | The status of the batch. Possible values are
|
10
|
+
| **batch_status** | **String** | The status of the batch. Possible values are: - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
|
11
11
|
| **client_account_id** | **String** | The batch account id that the batch was processed with. | |
|
12
12
|
| **transactions** | [**Array<BatchTransactionResultModel>**](BatchTransactionResultModel.md) | | |
|
13
13
|
|
@@ -17,7 +17,7 @@
|
|
17
17
|
require 'citypay_api_client'
|
18
18
|
|
19
19
|
instance = CityPayApiClient::BatchReportResponseModel.new(
|
20
|
-
amount:
|
20
|
+
amount: 19995,
|
21
21
|
batch_date: Thu Jan 02 00:00:00 UTC 2020,
|
22
22
|
batch_id: 35,
|
23
23
|
batch_status: COMPLETE,
|
data/docs/BatchTransaction.md
CHANGED
@@ -0,0 +1,22 @@
|
|
1
|
+
# CityPayApiClient::BatchTransactionReportRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **max_results** | **Integer** | The maximum number of results to return in a single response. This value is used to limit the size of data returned by the API, enhancing performance and manageability. Values should be between 5 and 250. | [optional] |
|
8
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
9
|
+
| **order_by** | **String** | Specifies the field by which results are ordered. Available fields are [trans_no,date_when,amount]. By default, fields are ordered by OrderByExpression(trans_no,ASC). To order in descending order, prefix with '-' or suffix with ' DESC'. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'citypay_api_client'
|
15
|
+
|
16
|
+
instance = CityPayApiClient::BatchTransactionReportRequest.new(
|
17
|
+
max_results: 50,
|
18
|
+
next_token: n34liuwn435tUAGFNg34yn...,
|
19
|
+
order_by: date
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# CityPayApiClient::BatchTransactionReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **count** | **Integer** | The count of items returned in this page. | [optional] |
|
8
|
+
| **data** | [**Array<AuthReference>**](AuthReference.md) | | |
|
9
|
+
| **max_results** | **Integer** | The max results requested in this page. | [optional] |
|
10
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'citypay_api_client'
|
16
|
+
|
17
|
+
instance = CityPayApiClient::BatchTransactionReportResponse.new(
|
18
|
+
count: 25,
|
19
|
+
data: null,
|
20
|
+
max_results: 50,
|
21
|
+
next_token: n34liuwn435tUAGFNg34yn...
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -14,7 +14,9 @@
|
|
14
14
|
| **message** | **String** | A response message pertaining to the transaction. | |
|
15
15
|
| **result** | **Integer** | An integer result that indicates the outcome of the transaction. The Code value below maps to the result value <table> <tr> <th>Code</th> <th>Abbrev</th> <th>Description</th> </tr> <tr><td>0</td><td>Declined</td><td>Declined</td></tr> <tr><td>1</td><td>Accepted</td><td>Accepted</td></tr> <tr><td>2</td><td>Rejected</td><td>Rejected</td></tr> <tr><td>3</td><td>Not Attempted</td><td>Not Attempted</td></tr> <tr><td>4</td><td>Referred</td><td>Referred</td></tr> <tr><td>5</td><td>PinRetry</td><td>Perform PIN Retry</td></tr> <tr><td>6</td><td>ForSigVer</td><td>Force Signature Verification</td></tr> <tr><td>7</td><td>Hold</td><td>Hold</td></tr> <tr><td>8</td><td>SecErr</td><td>Security Error</td></tr> <tr><td>9</td><td>CallAcq</td><td>Call Acquirer</td></tr> <tr><td>10</td><td>DNH</td><td>Do Not Honour</td></tr> <tr><td>11</td><td>RtnCrd</td><td>Retain Card</td></tr> <tr><td>12</td><td>ExprdCrd</td><td>Expired Card</td></tr> <tr><td>13</td><td>InvldCrd</td><td>Invalid Card No</td></tr> <tr><td>14</td><td>PinExcd</td><td>Pin Tries Exceeded</td></tr> <tr><td>15</td><td>PinInvld</td><td>Pin Invalid</td></tr> <tr><td>16</td><td>AuthReq</td><td>Authentication Required</td></tr> <tr><td>17</td><td>AuthenFail</td><td>Authentication Failed</td></tr> <tr><td>18</td><td>Verified</td><td>Card Verified</td></tr> <tr><td>19</td><td>Cancelled</td><td>Cancelled</td></tr> <tr><td>20</td><td>Un</td><td>Unknown</td></tr> <tr><td>21</td><td>Challenged</td><td>Challenged</td></tr> <tr><td>22</td><td>Decoupled</td><td>Decoupled</td></tr> <tr><td>23</td><td>Denied</td><td>Permission Denied</td></tr> </table> | |
|
16
16
|
| **result_code** | **String** | A result code of the transaction identifying the result of the transaction for success, rejection or decline. | |
|
17
|
-
| **scheme** | **String** |
|
17
|
+
| **scheme** | **String** | The name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard. | [optional] |
|
18
|
+
| **scheme_id** | **String** | The name of the card scheme of the transaction such as VI or MC. | [optional] |
|
19
|
+
| **scheme_logo** | **String** | A url containing a logo of the card scheme. | [optional] |
|
18
20
|
| **transno** | **Integer** | The resulting transaction number, ordered incrementally from 1 for every merchant_id. The value will default to less than 1 for transactions that do not have a transaction number issued. | [optional] |
|
19
21
|
|
20
22
|
## Example
|
@@ -24,7 +26,7 @@ require 'citypay_api_client'
|
|
24
26
|
|
25
27
|
instance = CityPayApiClient::BatchTransactionResultModel.new(
|
26
28
|
account_id: aaabbb-cccddd-eee,
|
27
|
-
amount:
|
29
|
+
amount: 19995,
|
28
30
|
authcode: 001245A,
|
29
31
|
datetime: 2020-01-02T18:32:28Z,
|
30
32
|
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
@@ -34,6 +36,8 @@ instance = CityPayApiClient::BatchTransactionResultModel.new(
|
|
34
36
|
result: 1,
|
35
37
|
result_code: 0,
|
36
38
|
scheme: Visa,
|
39
|
+
scheme_id: MC,
|
40
|
+
scheme_logo: https://cdn.citypay.com/img/cs/visa-logo.svg,
|
37
41
|
transno: 78416
|
38
42
|
)
|
39
43
|
```
|
data/docs/Bin.md
CHANGED
@@ -22,9 +22,9 @@ require 'citypay_api_client'
|
|
22
22
|
instance = CityPayApiClient::Bin.new(
|
23
23
|
bin_commercial: null,
|
24
24
|
bin_corporate: null,
|
25
|
-
bin_country_issued:
|
25
|
+
bin_country_issued: GB,
|
26
26
|
bin_credit: null,
|
27
|
-
bin_currency:
|
27
|
+
bin_currency: GBP,
|
28
28
|
bin_debit: null,
|
29
29
|
bin_description: Platinum Card,
|
30
30
|
bin_eu: null,
|
data/docs/CaptureRequest.md
CHANGED
data/docs/Card.md
CHANGED
@@ -33,9 +33,9 @@ require 'citypay_api_client'
|
|
33
33
|
instance = CityPayApiClient::Card.new(
|
34
34
|
bin_commercial: null,
|
35
35
|
bin_corporate: null,
|
36
|
-
bin_country_issued:
|
36
|
+
bin_country_issued: GB,
|
37
37
|
bin_credit: null,
|
38
|
-
bin_currency:
|
38
|
+
bin_currency: GBP,
|
39
39
|
bin_debit: null,
|
40
40
|
bin_description: Platinum Card,
|
41
41
|
bin_eu: null,
|
@@ -44,7 +44,7 @@ instance = CityPayApiClient::Card.new(
|
|
44
44
|
date_created: 2020-01-02T18:32:28Z,
|
45
45
|
default: null,
|
46
46
|
expmonth: 9,
|
47
|
-
expyear:
|
47
|
+
expyear: 2027,
|
48
48
|
label: Visa/0002,
|
49
49
|
label2: Visa/0002,Exp:2304,
|
50
50
|
last4digits: 2,
|