citypay_api_client 1.0.1 → 1.0.2
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 +1 -1
- data/README.md +7 -11
- data/citypay_api_client.gemspec +0 -1
- data/docs/Decision.md +6 -6
- data/lib/citypay_api_client.rb +2 -3
- data/lib/citypay_api_client/api/card_holder_account_api.rb +0 -1
- data/lib/citypay_api_client/api/operational_api.rb +0 -1
- data/lib/citypay_api_client/api/payment_processing_api.rb +0 -1
- data/lib/citypay_api_client/api_client.rb +7 -3
- data/lib/citypay_api_client/api_error.rb +0 -1
- data/lib/citypay_api_client/configuration.rb +0 -1
- data/lib/citypay_api_client/models/account_create.rb +0 -1
- data/lib/citypay_api_client/models/account_status.rb +0 -1
- data/lib/citypay_api_client/models/acknowledgement.rb +0 -1
- data/lib/citypay_api_client/models/airline_advice.rb +0 -1
- data/lib/citypay_api_client/models/airline_segment.rb +0 -1
- data/lib/citypay_api_client/models/auth_reference.rb +0 -1
- data/lib/citypay_api_client/models/auth_references.rb +0 -1
- data/lib/citypay_api_client/models/auth_request.rb +0 -1
- data/lib/citypay_api_client/models/auth_response.rb +0 -1
- data/lib/citypay_api_client/models/authen_required.rb +0 -1
- data/lib/citypay_api_client/models/c_res_auth_request.rb +0 -1
- data/lib/citypay_api_client/models/capture_request.rb +0 -1
- data/lib/citypay_api_client/models/card.rb +0 -1
- data/lib/citypay_api_client/models/card_holder_account.rb +0 -1
- data/lib/citypay_api_client/models/card_status.rb +0 -1
- data/lib/citypay_api_client/models/charge_request.rb +0 -1
- data/lib/citypay_api_client/models/contact_details.rb +0 -1
- data/lib/citypay_api_client/models/decision.rb +19 -20
- data/lib/citypay_api_client/models/error.rb +0 -1
- data/lib/citypay_api_client/models/external_mpi.rb +0 -1
- data/lib/citypay_api_client/models/list_merchants_response.rb +0 -1
- data/lib/citypay_api_client/models/mcc6012.rb +0 -1
- data/lib/citypay_api_client/models/merchant.rb +0 -1
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +0 -1
- data/lib/citypay_api_client/models/ping.rb +0 -1
- data/lib/citypay_api_client/models/register_card.rb +0 -1
- data/lib/citypay_api_client/models/request_challenged.rb +0 -1
- data/lib/citypay_api_client/models/retrieve_request.rb +0 -1
- data/lib/citypay_api_client/models/three_d_secure.rb +0 -1
- data/lib/citypay_api_client/models/void_request.rb +0 -1
- data/lib/citypay_api_client/test.rb +20 -0
- data/lib/citypay_api_client/version.rb +1 -2
- data/spec/api/card_holder_account_api_spec.rb +0 -1
- data/spec/api/operational_api_spec.rb +0 -1
- data/spec/api/payment_processing_api_spec.rb +0 -1
- data/spec/api_client_spec.rb +0 -1
- data/spec/configuration_spec.rb +0 -1
- data/spec/models/account_create_spec.rb +0 -1
- data/spec/models/account_status_spec.rb +0 -1
- data/spec/models/acknowledgement_spec.rb +16 -6
- data/spec/models/airline_advice_spec.rb +0 -1
- data/spec/models/airline_segment_spec.rb +0 -1
- data/spec/models/api_key_spec.rb +1 -1
- data/spec/models/auth_reference_spec.rb +0 -1
- data/spec/models/auth_references_spec.rb +42 -3
- data/spec/models/auth_request_spec.rb +0 -1
- data/spec/models/auth_response_spec.rb +62 -29
- data/spec/models/authen_required_spec.rb +0 -1
- data/spec/models/c_res_auth_request_spec.rb +0 -1
- data/spec/models/capture_request_spec.rb +0 -1
- data/spec/models/card_holder_account_spec.rb +84 -9
- data/spec/models/card_spec.rb +0 -1
- data/spec/models/card_status_spec.rb +0 -1
- data/spec/models/charge_request_spec.rb +0 -1
- data/spec/models/contact_details_spec.rb +0 -1
- data/spec/models/decision_spec.rb +94 -3
- data/spec/models/error_spec.rb +0 -1
- data/spec/models/external_mpi_spec.rb +0 -1
- data/spec/models/list_merchants_response_spec.rb +40 -5
- data/spec/models/mcc6012_spec.rb +0 -1
- data/spec/models/merchant_spec.rb +0 -1
- data/spec/models/pa_res_auth_request_spec.rb +0 -1
- data/spec/models/ping_spec.rb +0 -1
- data/spec/models/register_card_spec.rb +0 -1
- data/spec/models/request_challenged_spec.rb +0 -1
- data/spec/models/retrieve_request_spec.rb +0 -1
- data/spec/models/three_d_secure_spec.rb +0 -1
- data/spec/models/void_request_spec.rb +0 -1
- data/spec/spec_helper.rb +0 -1
- metadata +3 -3
- data/citypay_api-1.0.1.gem +0 -0
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -0,0 +1,20 @@
|
|
1
|
+
|
2
|
+
require 'citypay_api_client'
|
3
|
+
|
4
|
+
# Setup authorization
|
5
|
+
CityPayApiClient.configure do |config|
|
6
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: "PC874200", licence_key: "MT8NIRSTN9BHGJI8").generate
|
7
|
+
config.debugging = true
|
8
|
+
end
|
9
|
+
|
10
|
+
|
11
|
+
|
12
|
+
begin
|
13
|
+
card_holder_instance = CityPayApiClient::CardHolderAccountApi.new
|
14
|
+
resp = card_holder_instance.account_retrieve_request("b8219879-28fb-4be4-bcb9-6966c8da6559")
|
15
|
+
p resp
|
16
|
+
p resp.account_id
|
17
|
+
p resp.date_created
|
18
|
+
rescue CityPayApiClient::ApiError => e
|
19
|
+
puts "Exception when calling CardHolderAccountApi->account_card_delete_request: #{e}"
|
20
|
+
end
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -11,5 +10,5 @@ OpenAPI Generator version: 5.0.0-SNAPSHOT
|
|
11
10
|
=end
|
12
11
|
|
13
12
|
module CityPayApiClient
|
14
|
-
VERSION = '1.0.
|
13
|
+
VERSION = '1.0.2'
|
15
14
|
end
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
data/spec/api_client_spec.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
data/spec/configuration_spec.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -20,7 +19,18 @@ require 'date'
|
|
20
19
|
describe 'Acknowledgement' do
|
21
20
|
before do
|
22
21
|
# run before each test
|
23
|
-
|
22
|
+
json = '
|
23
|
+
{
|
24
|
+
"Acknowledgement": {
|
25
|
+
"code": "000",
|
26
|
+
"context": "1B12WmDZB3EYSbb",
|
27
|
+
"identifier": "testIdentifier",
|
28
|
+
"message": "System: Accepted Transaction"
|
29
|
+
}
|
30
|
+
}
|
31
|
+
'
|
32
|
+
data = JSON.parse(json, :symbolize_names => true)
|
33
|
+
@instance = CityPayApiClient::ApiClient.new.convert_to_type(data, "Acknowledgement")
|
24
34
|
end
|
25
35
|
|
26
36
|
after do
|
@@ -34,25 +44,25 @@ describe 'Acknowledgement' do
|
|
34
44
|
end
|
35
45
|
describe 'test attribute "code"' do
|
36
46
|
it 'should work' do
|
37
|
-
|
47
|
+
expect(@instance.code).to eq("000")
|
38
48
|
end
|
39
49
|
end
|
40
50
|
|
41
51
|
describe 'test attribute "context"' do
|
42
52
|
it 'should work' do
|
43
|
-
|
53
|
+
expect(@instance.context).to eq("1B12WmDZB3EYSbb")
|
44
54
|
end
|
45
55
|
end
|
46
56
|
|
47
57
|
describe 'test attribute "identifier"' do
|
48
58
|
it 'should work' do
|
49
|
-
|
59
|
+
expect(@instance.identifier).to eq("testIdentifier")
|
50
60
|
end
|
51
61
|
end
|
52
62
|
|
53
63
|
describe 'test attribute "message"' do
|
54
64
|
it 'should work' do
|
55
|
-
|
65
|
+
expect(@instance.message).to eq("System: Accepted Transaction")
|
56
66
|
end
|
57
67
|
end
|
58
68
|
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
data/spec/models/api_key_spec.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -20,7 +19,32 @@ require 'date'
|
|
20
19
|
describe 'AuthReferences' do
|
21
20
|
before do
|
22
21
|
# run before each test
|
23
|
-
|
22
|
+
|
23
|
+
json ='
|
24
|
+
{
|
25
|
+
"AuthReferences": {
|
26
|
+
"auths": [
|
27
|
+
{
|
28
|
+
"amount": 12,
|
29
|
+
"amount_value": "0.12",
|
30
|
+
"atrn": null,
|
31
|
+
"authcode": "A12345",
|
32
|
+
"batchno": null,
|
33
|
+
"currency": "GBP",
|
34
|
+
"datetime": "2020-07-21T15:55:04Z",
|
35
|
+
"identifier": "TestingAPI",
|
36
|
+
"maskedpan": "400000******0000",
|
37
|
+
"merchantid": 12345678,
|
38
|
+
"result": "Accepted",
|
39
|
+
"trans_status": "O",
|
40
|
+
"trans_type": "S",
|
41
|
+
"transno": 88
|
42
|
+
}
|
43
|
+
]
|
44
|
+
}
|
45
|
+
}'
|
46
|
+
data = JSON.parse(json, :symbolize_names => true)
|
47
|
+
@instance = CityPayApiClient::ApiClient.new.convert_to_type(data, "AuthReferences")
|
24
48
|
end
|
25
49
|
|
26
50
|
after do
|
@@ -34,7 +58,22 @@ describe 'AuthReferences' do
|
|
34
58
|
end
|
35
59
|
describe 'test attribute "auths"' do
|
36
60
|
it 'should work' do
|
37
|
-
|
61
|
+
expect(@instance.auths.length).to eq(1)
|
62
|
+
i = @instance.auths[0]
|
63
|
+
expect(i.amount).to eq(12)
|
64
|
+
expect(i.amount_value).to eq("0.12")
|
65
|
+
expect(i.atrn).to eq(nil)
|
66
|
+
expect(i.authcode).to eq("A12345")
|
67
|
+
expect(i.batchno).to eq(nil)
|
68
|
+
expect(i.currency).to eq("GBP")
|
69
|
+
expect(i.datetime).to eq(DateTime.parse("2020-07-21T15:55:04Z"))
|
70
|
+
expect(i.identifier).to eq("TestingAPI")
|
71
|
+
expect(i.maskedpan).to eq("400000******0000")
|
72
|
+
expect(i.merchantid).to eq(12345678)
|
73
|
+
expect(i.result).to eq("Accepted")
|
74
|
+
expect(i.trans_status).to eq("O")
|
75
|
+
expect(i.trans_type).to eq("S")
|
76
|
+
expect(i.transno).to eq(88)
|
38
77
|
end
|
39
78
|
end
|
40
79
|
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -3,7 +3,6 @@
|
|
3
3
|
|
4
4
|
# This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
|
5
5
|
|
6
|
-
The version of the OpenAPI document: 6.0.0
|
7
6
|
Contact: support@citypay.com
|
8
7
|
Generated by: https://openapi-generator.tech
|
9
8
|
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
@@ -20,7 +19,41 @@ require 'date'
|
|
20
19
|
describe 'AuthResponse' do
|
21
20
|
before do
|
22
21
|
# run before each test
|
23
|
-
|
22
|
+
json = '
|
23
|
+
{
|
24
|
+
"AuthResponse": {
|
25
|
+
"amount": 5500,
|
26
|
+
"atrn": "atrn1",
|
27
|
+
"atsd": "a",
|
28
|
+
"authcode": "12345",
|
29
|
+
"authen_result": "R",
|
30
|
+
"authorised": true,
|
31
|
+
"avs_result": "G",
|
32
|
+
"bin_commercial": false,
|
33
|
+
"bin_debit": false,
|
34
|
+
"bin_description": "bin_desc",
|
35
|
+
"cavv": "cavvvvvvvvvvvvv",
|
36
|
+
"context": "20200812075906AAAGV4",
|
37
|
+
"csc_result": "C",
|
38
|
+
"currency": "GBP",
|
39
|
+
"datetime": "2020-08-12T07:59:11Z",
|
40
|
+
"eci": "0",
|
41
|
+
"identifier": "ident1",
|
42
|
+
"live": true,
|
43
|
+
"maskedpan": "400000******0002",
|
44
|
+
"merchantid": 12345,
|
45
|
+
"result": 1,
|
46
|
+
"result_code": "000",
|
47
|
+
"result_message": "System: Accepted Transaction",
|
48
|
+
"scheme": "VISA_BUSINESS",
|
49
|
+
"sha256": "abcdefg",
|
50
|
+
"trans_status": "P",
|
51
|
+
"transno": 74875
|
52
|
+
}
|
53
|
+
}
|
54
|
+
'
|
55
|
+
data = JSON.parse(json, :symbolize_names => true)
|
56
|
+
@instance = CityPayApiClient::ApiClient.new.convert_to_type(data, "AuthResponse")
|
24
57
|
end
|
25
58
|
|
26
59
|
after do
|
@@ -34,163 +67,163 @@ describe 'AuthResponse' do
|
|
34
67
|
end
|
35
68
|
describe 'test attribute "amount"' do
|
36
69
|
it 'should work' do
|
37
|
-
|
70
|
+
expect(@instance.amount).to eq(5500)
|
38
71
|
end
|
39
72
|
end
|
40
73
|
|
41
74
|
describe 'test attribute "atrn"' do
|
42
75
|
it 'should work' do
|
43
|
-
|
76
|
+
expect(@instance.atrn).to eq("atrn1")
|
44
77
|
end
|
45
78
|
end
|
46
79
|
|
47
80
|
describe 'test attribute "atsd"' do
|
48
81
|
it 'should work' do
|
49
|
-
|
82
|
+
expect(@instance.atsd).to eq("a")
|
50
83
|
end
|
51
84
|
end
|
52
85
|
|
53
86
|
describe 'test attribute "authcode"' do
|
54
87
|
it 'should work' do
|
55
|
-
|
88
|
+
expect(@instance.authcode).to eq("12345")
|
56
89
|
end
|
57
90
|
end
|
58
91
|
|
59
92
|
describe 'test attribute "authen_result"' do
|
60
93
|
it 'should work' do
|
61
|
-
|
94
|
+
expect(@instance.authen_result).to eq("R")
|
62
95
|
end
|
63
96
|
end
|
64
97
|
|
65
98
|
describe 'test attribute "authorised"' do
|
66
99
|
it 'should work' do
|
67
|
-
|
100
|
+
expect(@instance.authorised).to eq(true)
|
68
101
|
end
|
69
102
|
end
|
70
103
|
|
71
104
|
describe 'test attribute "avs_result"' do
|
72
105
|
it 'should work' do
|
73
|
-
|
106
|
+
expect(@instance.avs_result).to eq("G")
|
74
107
|
end
|
75
108
|
end
|
76
109
|
|
77
110
|
describe 'test attribute "bin_commercial"' do
|
78
111
|
it 'should work' do
|
79
|
-
|
112
|
+
expect(@instance.bin_commercial).to eq(false)
|
80
113
|
end
|
81
114
|
end
|
82
115
|
|
83
116
|
describe 'test attribute "bin_debit"' do
|
84
117
|
it 'should work' do
|
85
|
-
|
118
|
+
expect(@instance.bin_debit).to eq(false)
|
86
119
|
end
|
87
120
|
end
|
88
121
|
|
89
122
|
describe 'test attribute "bin_description"' do
|
90
123
|
it 'should work' do
|
91
|
-
|
124
|
+
expect(@instance.bin_description).to eq("bin_desc")
|
92
125
|
end
|
93
126
|
end
|
94
127
|
|
95
128
|
describe 'test attribute "cavv"' do
|
96
129
|
it 'should work' do
|
97
|
-
|
130
|
+
expect(@instance.cavv).to eq("cavvvvvvvvvvvvv")
|
98
131
|
end
|
99
132
|
end
|
100
133
|
|
101
134
|
describe 'test attribute "context"' do
|
102
135
|
it 'should work' do
|
103
|
-
|
136
|
+
expect(@instance.context).to eq("20200812075906AAAGV4")
|
104
137
|
end
|
105
138
|
end
|
106
139
|
|
107
140
|
describe 'test attribute "csc_result"' do
|
108
141
|
it 'should work' do
|
109
|
-
|
142
|
+
expect(@instance.csc_result).to eq("C")
|
110
143
|
end
|
111
144
|
end
|
112
145
|
|
113
146
|
describe 'test attribute "currency"' do
|
114
147
|
it 'should work' do
|
115
|
-
|
148
|
+
expect(@instance.currency).to eq("GBP")
|
116
149
|
end
|
117
150
|
end
|
118
151
|
|
119
152
|
describe 'test attribute "datetime"' do
|
120
153
|
it 'should work' do
|
121
|
-
|
154
|
+
expect(@instance.datetime).to eq(DateTime.parse("2020-08-12T07:59:11Z"))
|
122
155
|
end
|
123
156
|
end
|
124
157
|
|
125
158
|
describe 'test attribute "eci"' do
|
126
159
|
it 'should work' do
|
127
|
-
|
160
|
+
expect(@instance.eci).to eq("0")
|
128
161
|
end
|
129
162
|
end
|
130
163
|
|
131
164
|
describe 'test attribute "identifier"' do
|
132
165
|
it 'should work' do
|
133
|
-
|
166
|
+
expect(@instance.identifier).to eq("ident1")
|
134
167
|
end
|
135
168
|
end
|
136
169
|
|
137
170
|
describe 'test attribute "live"' do
|
138
171
|
it 'should work' do
|
139
|
-
|
172
|
+
expect(@instance.live).to eq(true)
|
140
173
|
end
|
141
174
|
end
|
142
175
|
|
143
176
|
describe 'test attribute "maskedpan"' do
|
144
177
|
it 'should work' do
|
145
|
-
|
178
|
+
expect(@instance.maskedpan).to eq("400000******0002")
|
146
179
|
end
|
147
180
|
end
|
148
181
|
|
149
182
|
describe 'test attribute "merchantid"' do
|
150
183
|
it 'should work' do
|
151
|
-
|
184
|
+
expect(@instance.merchantid).to eq(12345)
|
152
185
|
end
|
153
186
|
end
|
154
187
|
|
155
188
|
describe 'test attribute "result"' do
|
156
189
|
it 'should work' do
|
157
|
-
|
190
|
+
expect(@instance.result).to eq(1)
|
158
191
|
end
|
159
192
|
end
|
160
193
|
|
161
194
|
describe 'test attribute "result_code"' do
|
162
195
|
it 'should work' do
|
163
|
-
|
196
|
+
expect(@instance.result_code).to eq("000")
|
164
197
|
end
|
165
198
|
end
|
166
199
|
|
167
200
|
describe 'test attribute "result_message"' do
|
168
201
|
it 'should work' do
|
169
|
-
|
202
|
+
expect(@instance.result_message).to eq("System: Accepted Transaction")
|
170
203
|
end
|
171
204
|
end
|
172
205
|
|
173
206
|
describe 'test attribute "scheme"' do
|
174
207
|
it 'should work' do
|
175
|
-
|
208
|
+
expect(@instance.scheme).to eq("VISA_BUSINESS")
|
176
209
|
end
|
177
210
|
end
|
178
211
|
|
179
212
|
describe 'test attribute "sha256"' do
|
180
213
|
it 'should work' do
|
181
|
-
|
214
|
+
expect(@instance.sha256).to eq("abcdefg")
|
182
215
|
end
|
183
216
|
end
|
184
217
|
|
185
218
|
describe 'test attribute "trans_status"' do
|
186
219
|
it 'should work' do
|
187
|
-
|
220
|
+
expect(@instance.trans_status).to eq("P")
|
188
221
|
end
|
189
222
|
end
|
190
223
|
|
191
224
|
describe 'test attribute "transno"' do
|
192
225
|
it 'should work' do
|
193
|
-
|
226
|
+
expect(@instance.transno).to eq(74875)
|
194
227
|
end
|
195
228
|
end
|
196
229
|
|