citypay_api_client 1.0.3 → 1.1.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/README.md +111 -39
- data/citypay_api_client.gemspec +5 -5
- data/docs/AccountCreate.md +10 -9
- data/docs/AccountStatus.md +8 -7
- data/docs/Acknowledgement.md +14 -13
- data/docs/AclCheckRequest.md +18 -0
- data/docs/AclCheckResponseModel.md +24 -0
- data/docs/AirlineAdvice.md +38 -37
- data/docs/AirlineSegment.md +22 -21
- data/docs/AuthReference.md +34 -33
- data/docs/AuthReferences.md +8 -7
- data/docs/AuthRequest.md +52 -49
- data/docs/AuthResponse.md +64 -59
- data/docs/AuthenRequired.md +12 -11
- data/docs/AuthorisationAndPaymentApi.md +850 -0
- data/docs/Batch.md +22 -0
- data/docs/BatchProcessingApi.md +218 -0
- data/docs/BatchReportRequest.md +20 -0
- data/docs/BatchReportResponseModel.md +28 -0
- data/docs/BatchTransaction.md +24 -0
- data/docs/BatchTransactionResultModel.md +44 -0
- data/docs/Bin.md +34 -0
- data/docs/BinLookup.md +18 -0
- data/docs/CResAuthRequest.md +8 -7
- data/docs/CaptureRequest.md +18 -17
- data/docs/Card.md +46 -41
- data/docs/CardHolderAccount.md +24 -21
- data/docs/CardHolderAccountApi.md +387 -111
- data/docs/CardStatus.md +10 -9
- data/docs/ChargeRequest.md +38 -31
- data/docs/CheckBatchStatus.md +20 -0
- data/docs/CheckBatchStatusResponse.md +18 -0
- data/docs/ContactDetails.md +32 -31
- data/docs/Decision.md +12 -11
- data/docs/DirectPostApi.md +389 -0
- data/docs/DirectPostRequest.md +60 -0
- data/docs/DirectTokenAuthRequest.md +24 -0
- data/docs/DomainKeyCheckRequest.md +18 -0
- data/docs/DomainKeyRequest.md +22 -0
- data/docs/DomainKeyResponse.md +26 -0
- data/docs/Error.md +16 -13
- data/docs/EventDataModel.md +26 -0
- data/docs/Exists.md +22 -0
- data/docs/ExternalMPI.md +16 -15
- data/docs/ListMerchantsResponse.md +12 -11
- data/docs/MCC6012.md +14 -13
- data/docs/Merchant.md +16 -15
- data/docs/OperationalFunctionsApi.md +375 -0
- data/docs/PaResAuthRequest.md +10 -9
- data/docs/PaylinkAddress.md +30 -0
- data/docs/PaylinkAdjustmentRequest.md +22 -0
- data/docs/PaylinkApi.md +806 -0
- data/docs/PaylinkAttachmentRequest.md +26 -0
- data/docs/PaylinkAttachmentResult.md +22 -0
- data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
- data/docs/PaylinkCardHolder.md +36 -0
- data/docs/PaylinkCart.md +30 -0
- data/docs/PaylinkCartItemModel.md +32 -0
- data/docs/PaylinkConfig.md +60 -0
- data/docs/PaylinkCustomParam.md +38 -0
- data/docs/PaylinkEmailNotificationPath.md +26 -0
- data/docs/PaylinkErrorCode.md +20 -0
- data/docs/PaylinkFieldGuardModel.md +30 -0
- data/docs/PaylinkPartPayments.md +28 -0
- data/docs/PaylinkSMSNotificationPath.md +20 -0
- data/docs/PaylinkStateEvent.md +22 -0
- data/docs/PaylinkTokenCreated.md +44 -0
- data/docs/PaylinkTokenRequestModel.md +42 -0
- data/docs/PaylinkTokenStatus.md +72 -0
- data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
- data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
- data/docs/PaylinkUI.md +24 -0
- data/docs/Ping.md +8 -7
- data/docs/ProcessBatchRequest.md +24 -0
- data/docs/ProcessBatchResponse.md +20 -0
- data/docs/RefundRequest.md +26 -0
- data/docs/RegisterCard.md +16 -13
- data/docs/RequestChallenged.md +16 -15
- data/docs/RetrieveRequest.md +12 -11
- data/docs/ThreeDSecure.md +32 -15
- data/docs/TokenisationResponseModel.md +36 -0
- data/docs/VoidRequest.md +12 -13
- 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/.DS_Store +0 -0
- data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
- data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
- data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
- data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
- data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
- data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
- data/lib/citypay_api_client/api_client.rb +72 -70
- data/lib/citypay_api_client/api_error.rb +3 -2
- data/lib/citypay_api_client/configuration.rb +74 -17
- data/lib/citypay_api_client/models/account_create.rb +33 -23
- data/lib/citypay_api_client/models/account_status.rb +31 -23
- data/lib/citypay_api_client/models/acknowledgement.rb +43 -27
- data/lib/citypay_api_client/models/acl_check_request.rb +221 -0
- data/lib/citypay_api_client/models/acl_check_response_model.rb +244 -0
- data/lib/citypay_api_client/models/airline_advice.rb +63 -34
- data/lib/citypay_api_client/models/airline_segment.rb +51 -25
- data/lib/citypay_api_client/models/auth_reference.rb +80 -31
- data/lib/citypay_api_client/models/auth_references.rb +31 -23
- data/lib/citypay_api_client/models/auth_request.rb +137 -56
- data/lib/citypay_api_client/models/auth_response.rb +83 -123
- data/lib/citypay_api_client/models/authen_required.rb +31 -23
- data/lib/citypay_api_client/models/batch.rb +267 -0
- data/lib/citypay_api_client/models/batch_report_request.rb +278 -0
- data/lib/citypay_api_client/models/batch_report_response_model.rb +364 -0
- data/lib/citypay_api_client/models/batch_transaction.rb +324 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +452 -0
- data/lib/citypay_api_client/models/bin.rb +294 -0
- data/lib/citypay_api_client/models/bin_lookup.rb +231 -0
- data/lib/citypay_api_client/models/c_res_auth_request.rb +31 -23
- data/lib/citypay_api_client/models/capture_request.rb +59 -38
- data/lib/citypay_api_client/models/card.rb +93 -29
- data/lib/citypay_api_client/models/card_holder_account.rb +49 -27
- data/lib/citypay_api_client/models/card_status.rb +31 -23
- data/lib/citypay_api_client/models/charge_request.rb +154 -47
- data/lib/citypay_api_client/models/check_batch_status.rb +260 -0
- data/lib/citypay_api_client/models/check_batch_status_response.rb +215 -0
- data/lib/citypay_api_client/models/contact_details.rb +130 -52
- data/lib/citypay_api_client/models/decision.rb +31 -23
- data/lib/citypay_api_client/models/direct_post_request.rb +707 -0
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +244 -0
- data/lib/citypay_api_client/models/domain_key_check_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_response.rb +297 -0
- data/lib/citypay_api_client/models/error.rb +57 -31
- data/lib/citypay_api_client/models/event_data_model.rb +254 -0
- data/lib/citypay_api_client/models/exists.rb +241 -0
- data/lib/citypay_api_client/models/external_mpi.rb +61 -27
- data/lib/citypay_api_client/models/list_merchants_response.rb +37 -25
- data/lib/citypay_api_client/models/mcc6012.rb +31 -23
- data/lib/citypay_api_client/models/merchant.rb +31 -23
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +36 -24
- data/lib/citypay_api_client/models/paylink_address.rb +425 -0
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +272 -0
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +268 -0
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +248 -0
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +289 -0
- data/lib/citypay_api_client/models/paylink_card_holder.rb +360 -0
- data/lib/citypay_api_client/models/paylink_cart.rb +275 -0
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +284 -0
- data/lib/citypay_api_client/models/paylink_config.rb +428 -0
- data/lib/citypay_api_client/models/paylink_custom_param.rb +321 -0
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +265 -0
- data/lib/citypay_api_client/models/paylink_error_code.rb +238 -0
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +274 -0
- data/lib/citypay_api_client/models/paylink_part_payments.rb +264 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +231 -0
- data/lib/citypay_api_client/models/paylink_state_event.rb +234 -0
- data/lib/citypay_api_client/models/paylink_token_created.rb +365 -0
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +427 -0
- data/lib/citypay_api_client/models/paylink_token_status.rb +485 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +232 -0
- data/lib/citypay_api_client/models/paylink_ui.rb +244 -0
- data/lib/citypay_api_client/models/ping.rb +37 -25
- data/lib/citypay_api_client/models/process_batch_request.rb +313 -0
- data/lib/citypay_api_client/models/process_batch_response.rb +231 -0
- data/lib/citypay_api_client/models/refund_request.rb +339 -0
- data/lib/citypay_api_client/models/register_card.rb +79 -27
- data/lib/citypay_api_client/models/request_challenged.rb +39 -31
- data/lib/citypay_api_client/models/retrieve_request.rb +39 -25
- data/lib/citypay_api_client/models/three_d_secure.rb +116 -28
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +332 -0
- data/lib/citypay_api_client/models/void_request.rb +39 -37
- data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
- data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
- data/lib/citypay_api_client/version.rb +3 -4
- data/lib/citypay_api_client.rb +53 -6
- data/spec/.DS_Store +0 -0
- data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
- data/spec/api/batch_processing_api___spec.rb +70 -0
- data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
- data/spec/api/direct_post_api___spec.rb +98 -0
- data/spec/api/operational_functions_api___spec.rb +94 -0
- data/spec/api/paylink_api___spec.rb +131 -0
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +5 -5
- data/spec/it_api_sandbox_spec.rb +117 -55
- data/spec/models/account_create_spec.rb +1 -2
- data/spec/models/account_status_spec.rb +2 -2
- data/spec/models/acknowledgement_spec.rb +7 -22
- data/spec/models/acl_check_request_spec.rb +33 -0
- data/spec/models/acl_check_response_model_spec.rb +51 -0
- data/spec/models/airline_advice_spec.rb +0 -2
- data/spec/models/airline_segment_spec.rb +0 -2
- data/spec/models/auth_references_spec.rb +7 -8
- data/spec/models/auth_request_spec.rb +0 -2
- data/spec/models/auth_response_spec.rb +77 -33
- data/spec/models/batch_report_request_spec.rb +37 -0
- data/spec/models/batch_report_response_model_spec.rb +61 -0
- data/spec/models/batch_spec.rb +43 -0
- data/spec/models/batch_transaction_result_model_spec.rb +85 -0
- data/spec/models/batch_transaction_spec.rb +49 -0
- data/spec/models/bin_lookup_spec.rb +31 -0
- data/spec/models/bin_spec.rb +81 -0
- data/spec/models/capture_request_spec.rb +0 -2
- data/spec/models/card_holder_account_spec.rb +8 -7
- data/spec/models/charge_request_spec.rb +0 -2
- data/spec/models/check_batch_status_response_spec.rb +45 -0
- data/spec/models/check_batch_status_spec.rb +39 -0
- data/spec/models/decision_spec.rb +1 -1
- data/spec/models/direct_post_request_spec.rb +151 -0
- data/spec/models/direct_token_auth_request_spec.rb +51 -0
- data/spec/models/domain_key_check_request_spec.rb +31 -0
- data/spec/models/domain_key_request_spec.rb +45 -0
- data/spec/models/domain_key_response_spec.rb +57 -0
- data/spec/models/event_data_model_spec.rb +57 -0
- data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
- data/spec/models/list_merchants_response_spec.rb +2 -2
- data/spec/models/paylink_address_spec.rb +69 -0
- data/spec/models/paylink_adjustment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_result_spec.rb +45 -0
- data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
- data/spec/models/paylink_card_holder_spec.rb +87 -0
- data/spec/models/paylink_cart_item_model_spec.rb +75 -0
- data/spec/models/paylink_cart_spec.rb +69 -0
- data/spec/models/paylink_config_spec.rb +159 -0
- data/spec/models/paylink_custom_param_spec.rb +87 -0
- data/spec/models/paylink_email_notification_path_spec.rb +57 -0
- data/spec/models/paylink_error_code_spec.rb +39 -0
- data/spec/models/paylink_field_guard_model_spec.rb +45 -0
- data/spec/models/paylink_part_payments_spec.rb +63 -0
- data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
- data/spec/models/paylink_state_event_spec.rb +45 -0
- data/spec/models/paylink_token_created_spec.rb +111 -0
- data/spec/models/paylink_token_request_model_spec.rb +91 -0
- data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
- data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
- data/spec/models/paylink_token_status_spec.rb +195 -0
- data/spec/models/paylink_ui_spec.rb +51 -0
- data/spec/models/process_batch_request_spec.rb +49 -0
- data/spec/models/process_batch_response_spec.rb +39 -0
- data/spec/models/refund_request_spec.rb +62 -0
- data/spec/models/register_card_spec.rb +0 -2
- data/spec/models/tokenisation_response_model_spec.rb +87 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/utils/direct_post_mac_spec.rb +13 -0
- metadata +230 -44
- data/Gemfile.lock +0 -70
- data/docs/OperationalApi.md +0 -112
- data/docs/PaymentProcessingApi.md +0 -320
- data/git_push.sh +0 -58
- data/lib/citypay_api_client/api/operational_api.rb +0 -147
- data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
- data/lib/citypay_api_client/test.rb +0 -20
- data/spec/api/payment_processing_api_spec.rb +0 -106
@@ -0,0 +1,62 @@
|
|
1
|
+
=begin
|
2
|
+
#CityPay Payment API
|
3
|
+
|
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
|
+
|
6
|
+
Contact: support@citypay.com
|
7
|
+
Generated by: https://openapi-generator.tech
|
8
|
+
OpenAPI Generator version: 5.0.0-SNAPSHOT
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for CityPayApiClient::RefundRequest
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe 'RefundRequest' do
|
20
|
+
before do
|
21
|
+
# run before each test
|
22
|
+
end
|
23
|
+
|
24
|
+
after do
|
25
|
+
# run after each test
|
26
|
+
end
|
27
|
+
|
28
|
+
describe 'test an instance of RefundRequest' do
|
29
|
+
it 'should create an instance of RefundRequest' do
|
30
|
+
end
|
31
|
+
end
|
32
|
+
describe 'test attribute "amount"' do
|
33
|
+
it 'should work' do
|
34
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
describe 'test attribute "identifier"' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
describe 'test attribute "merchantid"' do
|
45
|
+
it 'should work' do
|
46
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
47
|
+
end
|
48
|
+
end
|
49
|
+
|
50
|
+
describe 'test attribute "refund_ref"' do
|
51
|
+
it 'should work' do
|
52
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
53
|
+
end
|
54
|
+
end
|
55
|
+
|
56
|
+
describe 'test attribute "trans_info"' do
|
57
|
+
it 'should work' do
|
58
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
59
|
+
end
|
60
|
+
end
|
61
|
+
|
62
|
+
end
|
@@ -19,7 +19,6 @@ require 'date'
|
|
19
19
|
describe 'RegisterCard' do
|
20
20
|
before do
|
21
21
|
# run before each test
|
22
|
-
@instance = CityPayApiClient::RegisterCard.new
|
23
22
|
end
|
24
23
|
|
25
24
|
after do
|
@@ -28,7 +27,6 @@ describe 'RegisterCard' do
|
|
28
27
|
|
29
28
|
describe 'test an instance of RegisterCard' do
|
30
29
|
it 'should create an instance of RegisterCard' do
|
31
|
-
expect(@instance).to be_instance_of(CityPayApiClient::RegisterCard)
|
32
30
|
end
|
33
31
|
end
|
34
32
|
describe 'test attribute "cardnumber"' do
|
@@ -0,0 +1,87 @@
|
|
1
|
+
=begin
|
2
|
+
#CityPay Payment API
|
3
|
+
|
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 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. These include * 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
|
+
|
6
|
+
Contact: support@citypay.com
|
7
|
+
Generated by: https://openapi-generator.tech
|
8
|
+
OpenAPI Generator version: 5.4.0-SNAPSHOT
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'spec_helper'
|
13
|
+
require 'json'
|
14
|
+
require 'date'
|
15
|
+
|
16
|
+
# Unit tests for CityPayApiClient::TokenisationResponseModel
|
17
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
18
|
+
# Please update as you see appropriate
|
19
|
+
describe CityPayApiClient::TokenisationResponseModel do
|
20
|
+
let(:instance) { CityPayApiClient::TokenisationResponseModel.new }
|
21
|
+
|
22
|
+
describe 'test an instance of TokenisationResponseModel' do
|
23
|
+
it 'should create an instance of TokenisationResponseModel' do
|
24
|
+
expect(instance).to be_instance_of(CityPayApiClient::TokenisationResponseModel)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
describe 'test attribute "authen_result"' do
|
28
|
+
it 'should work' do
|
29
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
30
|
+
end
|
31
|
+
end
|
32
|
+
|
33
|
+
describe 'test attribute "bin_commercial"' do
|
34
|
+
it 'should work' do
|
35
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
36
|
+
end
|
37
|
+
end
|
38
|
+
|
39
|
+
describe 'test attribute "bin_debit"' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'test attribute "bin_description"' do
|
46
|
+
it 'should work' do
|
47
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
48
|
+
end
|
49
|
+
end
|
50
|
+
|
51
|
+
describe 'test attribute "eci"' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
describe 'test attribute "identifier"' do
|
58
|
+
it 'should work' do
|
59
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
60
|
+
end
|
61
|
+
end
|
62
|
+
|
63
|
+
describe 'test attribute "maskedpan"' do
|
64
|
+
it 'should work' do
|
65
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
66
|
+
end
|
67
|
+
end
|
68
|
+
|
69
|
+
describe 'test attribute "scheme"' do
|
70
|
+
it 'should work' do
|
71
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
72
|
+
end
|
73
|
+
end
|
74
|
+
|
75
|
+
describe 'test attribute "sig_id"' do
|
76
|
+
it 'should work' do
|
77
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
78
|
+
end
|
79
|
+
end
|
80
|
+
|
81
|
+
describe 'test attribute "token"' do
|
82
|
+
it 'should work' do
|
83
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
84
|
+
end
|
85
|
+
end
|
86
|
+
|
87
|
+
end
|
data/spec/spec_helper.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
=begin
|
2
2
|
#CityPay Payment API
|
3
3
|
|
4
|
-
# This CityPay API is
|
4
|
+
# This CityPay API is an 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 tokenized payments using cardholder Accounts. ## Compliance and Security 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. These include * Data must be collected using TLS version 1.2 using [strong cryptography](https://citypay.github.io/api-docs/payment-api/#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 cardholder 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
6
|
Contact: support@citypay.com
|
7
7
|
Generated by: https://openapi-generator.tech
|
8
|
-
OpenAPI Generator version:
|
8
|
+
OpenAPI Generator version: 7.2.0
|
9
9
|
|
10
10
|
=end
|
11
11
|
|
@@ -0,0 +1,13 @@
|
|
1
|
+
require_relative '../../lib/citypay_api_client/utils/direct_post_mac'
|
2
|
+
|
3
|
+
describe 'DirectPostMac' do
|
4
|
+
|
5
|
+
it 'should validate mac' do
|
6
|
+
expect(DirectPostMac.create('LK123456789', '0123456789ABCDEF'.bytes, "27595", 'OD-12345678')).to eq('163DBAB194D743866A9BCC7FC9C8A88FCD99C6BBBF08D619291212D1B91EE12E')
|
7
|
+
end
|
8
|
+
|
9
|
+
it 'should create mac' do
|
10
|
+
expect(DirectPostMac.validate('LK123456789', '0123456789ABCDEF'.bytes, "27595", 'OD-12345678', '163DBAB194D743866A9BCC7FC9C8A88FCD99C6BBBF08D619291212D1B91EE12E')).to eq(true)
|
11
|
+
end
|
12
|
+
|
13
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: citypay_api_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- citypay
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-02-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: typhoeus
|
@@ -31,45 +31,25 @@ dependencies:
|
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: 1.0.1
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
|
-
name:
|
34
|
+
name: rspec
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
36
36
|
requirements:
|
37
|
-
- - ">="
|
38
|
-
- !ruby/object:Gem::Version
|
39
|
-
version: 2.1.0
|
40
37
|
- - "~>"
|
41
38
|
- !ruby/object:Gem::Version
|
42
|
-
version: '
|
43
|
-
type: :runtime
|
44
|
-
prerelease: false
|
45
|
-
version_requirements: !ruby/object:Gem::Requirement
|
46
|
-
requirements:
|
47
|
-
- - ">="
|
48
|
-
- !ruby/object:Gem::Version
|
49
|
-
version: 2.1.0
|
50
|
-
- - "~>"
|
51
|
-
- !ruby/object:Gem::Version
|
52
|
-
version: '2.1'
|
53
|
-
- !ruby/object:Gem::Dependency
|
54
|
-
name: rspec
|
55
|
-
requirement: !ruby/object:Gem::Requirement
|
56
|
-
requirements:
|
39
|
+
version: '3.6'
|
57
40
|
- - ">="
|
58
41
|
- !ruby/object:Gem::Version
|
59
42
|
version: 3.6.0
|
60
|
-
- - "~>"
|
61
|
-
- !ruby/object:Gem::Version
|
62
|
-
version: '3.6'
|
63
43
|
type: :development
|
64
44
|
prerelease: false
|
65
45
|
version_requirements: !ruby/object:Gem::Requirement
|
66
46
|
requirements:
|
67
|
-
- - ">="
|
68
|
-
- !ruby/object:Gem::Version
|
69
|
-
version: 3.6.0
|
70
47
|
- - "~>"
|
71
48
|
- !ruby/object:Gem::Version
|
72
49
|
version: '3.6'
|
50
|
+
- - ">="
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: 3.6.0
|
73
53
|
description: CityPay API Client for Ruby
|
74
54
|
email:
|
75
55
|
- support@citypay.com
|
@@ -78,13 +58,14 @@ extensions: []
|
|
78
58
|
extra_rdoc_files: []
|
79
59
|
files:
|
80
60
|
- Gemfile
|
81
|
-
- Gemfile.lock
|
82
61
|
- README.md
|
83
62
|
- Rakefile
|
84
63
|
- citypay_api_client.gemspec
|
85
64
|
- docs/AccountCreate.md
|
86
65
|
- docs/AccountStatus.md
|
87
66
|
- docs/Acknowledgement.md
|
67
|
+
- docs/AclCheckRequest.md
|
68
|
+
- docs/AclCheckResponseModel.md
|
88
69
|
- docs/AirlineAdvice.md
|
89
70
|
- docs/AirlineSegment.md
|
90
71
|
- docs/AuthReference.md
|
@@ -92,6 +73,15 @@ files:
|
|
92
73
|
- docs/AuthRequest.md
|
93
74
|
- docs/AuthResponse.md
|
94
75
|
- docs/AuthenRequired.md
|
76
|
+
- docs/AuthorisationAndPaymentApi.md
|
77
|
+
- docs/Batch.md
|
78
|
+
- docs/BatchProcessingApi.md
|
79
|
+
- docs/BatchReportRequest.md
|
80
|
+
- docs/BatchReportResponseModel.md
|
81
|
+
- docs/BatchTransaction.md
|
82
|
+
- docs/BatchTransactionResultModel.md
|
83
|
+
- docs/Bin.md
|
84
|
+
- docs/BinLookup.md
|
95
85
|
- docs/CResAuthRequest.md
|
96
86
|
- docs/CaptureRequest.md
|
97
87
|
- docs/Card.md
|
@@ -99,33 +89,89 @@ files:
|
|
99
89
|
- docs/CardHolderAccountApi.md
|
100
90
|
- docs/CardStatus.md
|
101
91
|
- docs/ChargeRequest.md
|
92
|
+
- docs/CheckBatchStatus.md
|
93
|
+
- docs/CheckBatchStatusResponse.md
|
102
94
|
- docs/ContactDetails.md
|
103
95
|
- docs/Decision.md
|
96
|
+
- docs/DirectPostApi.md
|
97
|
+
- docs/DirectPostRequest.md
|
98
|
+
- docs/DirectTokenAuthRequest.md
|
99
|
+
- docs/DomainKeyCheckRequest.md
|
100
|
+
- docs/DomainKeyRequest.md
|
101
|
+
- docs/DomainKeyResponse.md
|
104
102
|
- docs/Error.md
|
103
|
+
- docs/EventDataModel.md
|
104
|
+
- docs/Exists.md
|
105
105
|
- docs/ExternalMPI.md
|
106
106
|
- docs/ListMerchantsResponse.md
|
107
107
|
- docs/MCC6012.md
|
108
108
|
- docs/Merchant.md
|
109
|
-
- docs/
|
109
|
+
- docs/OperationalFunctionsApi.md
|
110
110
|
- docs/PaResAuthRequest.md
|
111
|
-
- docs/
|
111
|
+
- docs/PaylinkAddress.md
|
112
|
+
- docs/PaylinkAdjustmentRequest.md
|
113
|
+
- docs/PaylinkApi.md
|
114
|
+
- docs/PaylinkAttachmentRequest.md
|
115
|
+
- docs/PaylinkAttachmentResult.md
|
116
|
+
- docs/PaylinkBillPaymentTokenRequest.md
|
117
|
+
- docs/PaylinkCardHolder.md
|
118
|
+
- docs/PaylinkCart.md
|
119
|
+
- docs/PaylinkCartItemModel.md
|
120
|
+
- docs/PaylinkConfig.md
|
121
|
+
- docs/PaylinkCustomParam.md
|
122
|
+
- docs/PaylinkEmailNotificationPath.md
|
123
|
+
- docs/PaylinkErrorCode.md
|
124
|
+
- docs/PaylinkFieldGuardModel.md
|
125
|
+
- docs/PaylinkPartPayments.md
|
126
|
+
- docs/PaylinkSMSNotificationPath.md
|
127
|
+
- docs/PaylinkStateEvent.md
|
128
|
+
- docs/PaylinkTokenCreated.md
|
129
|
+
- docs/PaylinkTokenRequestModel.md
|
130
|
+
- docs/PaylinkTokenStatus.md
|
131
|
+
- docs/PaylinkTokenStatusChangeRequest.md
|
132
|
+
- docs/PaylinkTokenStatusChangeResponse.md
|
133
|
+
- docs/PaylinkUI.md
|
112
134
|
- docs/Ping.md
|
135
|
+
- docs/ProcessBatchRequest.md
|
136
|
+
- docs/ProcessBatchResponse.md
|
137
|
+
- docs/RefundRequest.md
|
113
138
|
- docs/RegisterCard.md
|
114
139
|
- docs/RequestChallenged.md
|
115
140
|
- docs/RetrieveRequest.md
|
116
141
|
- docs/ThreeDSecure.md
|
142
|
+
- docs/TokenisationResponseModel.md
|
117
143
|
- docs/VoidRequest.md
|
118
|
-
-
|
144
|
+
- docs/images/3dsv1-challenge.png
|
145
|
+
- docs/images/3dsv2-challenge.png
|
146
|
+
- docs/images/3dsv2-frictionless.png
|
147
|
+
- docs/images/3dsv2-method-challenge.png
|
148
|
+
- docs/images/3dsv2-method-frictionless.png
|
149
|
+
- docs/images/3dsv2-no3d.png
|
150
|
+
- docs/images/citypay-logo.svg
|
151
|
+
- docs/images/direct-post-flow.png
|
152
|
+
- docs/images/favicon.ico
|
153
|
+
- docs/images/header.png
|
154
|
+
- docs/images/logo.ai
|
155
|
+
- docs/images/logo.png
|
156
|
+
- docs/images/logo.svg
|
157
|
+
- docs/images/merchant-BPS-workflow.png
|
158
|
+
- docs/images/paylink-field-guards.png
|
159
|
+
- lib/.DS_Store
|
119
160
|
- lib/citypay_api_client.rb
|
120
|
-
- lib/citypay_api_client/api/
|
121
|
-
- lib/citypay_api_client/api/
|
122
|
-
- lib/citypay_api_client/api/
|
161
|
+
- lib/citypay_api_client/api/authorisation_and_payment_api__.rb
|
162
|
+
- lib/citypay_api_client/api/batch_processing_api__.rb
|
163
|
+
- lib/citypay_api_client/api/card_holder_account_api__.rb
|
164
|
+
- lib/citypay_api_client/api/direct_post_api__.rb
|
165
|
+
- lib/citypay_api_client/api/operational_functions_api__.rb
|
166
|
+
- lib/citypay_api_client/api/paylink_api__.rb
|
123
167
|
- lib/citypay_api_client/api_client.rb
|
124
168
|
- lib/citypay_api_client/api_error.rb
|
125
169
|
- lib/citypay_api_client/configuration.rb
|
126
170
|
- lib/citypay_api_client/models/account_create.rb
|
127
171
|
- lib/citypay_api_client/models/account_status.rb
|
128
172
|
- lib/citypay_api_client/models/acknowledgement.rb
|
173
|
+
- lib/citypay_api_client/models/acl_check_request.rb
|
174
|
+
- lib/citypay_api_client/models/acl_check_response_model.rb
|
129
175
|
- lib/citypay_api_client/models/airline_advice.rb
|
130
176
|
- lib/citypay_api_client/models/airline_segment.rb
|
131
177
|
- lib/citypay_api_client/models/api_key.rb
|
@@ -134,37 +180,86 @@ files:
|
|
134
180
|
- lib/citypay_api_client/models/auth_request.rb
|
135
181
|
- lib/citypay_api_client/models/auth_response.rb
|
136
182
|
- lib/citypay_api_client/models/authen_required.rb
|
183
|
+
- lib/citypay_api_client/models/batch.rb
|
184
|
+
- lib/citypay_api_client/models/batch_report_request.rb
|
185
|
+
- lib/citypay_api_client/models/batch_report_response_model.rb
|
186
|
+
- lib/citypay_api_client/models/batch_transaction.rb
|
187
|
+
- lib/citypay_api_client/models/batch_transaction_result_model.rb
|
188
|
+
- lib/citypay_api_client/models/bin.rb
|
189
|
+
- lib/citypay_api_client/models/bin_lookup.rb
|
137
190
|
- lib/citypay_api_client/models/c_res_auth_request.rb
|
138
191
|
- lib/citypay_api_client/models/capture_request.rb
|
139
192
|
- lib/citypay_api_client/models/card.rb
|
140
193
|
- lib/citypay_api_client/models/card_holder_account.rb
|
141
194
|
- lib/citypay_api_client/models/card_status.rb
|
142
195
|
- lib/citypay_api_client/models/charge_request.rb
|
196
|
+
- lib/citypay_api_client/models/check_batch_status.rb
|
197
|
+
- lib/citypay_api_client/models/check_batch_status_response.rb
|
143
198
|
- lib/citypay_api_client/models/contact_details.rb
|
144
199
|
- lib/citypay_api_client/models/decision.rb
|
200
|
+
- lib/citypay_api_client/models/direct_post_request.rb
|
201
|
+
- lib/citypay_api_client/models/direct_token_auth_request.rb
|
202
|
+
- lib/citypay_api_client/models/domain_key_check_request.rb
|
203
|
+
- lib/citypay_api_client/models/domain_key_request.rb
|
204
|
+
- lib/citypay_api_client/models/domain_key_response.rb
|
145
205
|
- lib/citypay_api_client/models/error.rb
|
206
|
+
- lib/citypay_api_client/models/event_data_model.rb
|
207
|
+
- lib/citypay_api_client/models/exists.rb
|
146
208
|
- lib/citypay_api_client/models/external_mpi.rb
|
147
209
|
- lib/citypay_api_client/models/list_merchants_response.rb
|
148
210
|
- lib/citypay_api_client/models/mcc6012.rb
|
149
211
|
- lib/citypay_api_client/models/merchant.rb
|
150
212
|
- lib/citypay_api_client/models/pa_res_auth_request.rb
|
213
|
+
- lib/citypay_api_client/models/paylink_address.rb
|
214
|
+
- lib/citypay_api_client/models/paylink_adjustment_request.rb
|
215
|
+
- lib/citypay_api_client/models/paylink_attachment_request.rb
|
216
|
+
- lib/citypay_api_client/models/paylink_attachment_result.rb
|
217
|
+
- lib/citypay_api_client/models/paylink_bill_payment_token_request.rb
|
218
|
+
- lib/citypay_api_client/models/paylink_card_holder.rb
|
219
|
+
- lib/citypay_api_client/models/paylink_cart.rb
|
220
|
+
- lib/citypay_api_client/models/paylink_cart_item_model.rb
|
221
|
+
- lib/citypay_api_client/models/paylink_config.rb
|
222
|
+
- lib/citypay_api_client/models/paylink_custom_param.rb
|
223
|
+
- lib/citypay_api_client/models/paylink_email_notification_path.rb
|
224
|
+
- lib/citypay_api_client/models/paylink_error_code.rb
|
225
|
+
- lib/citypay_api_client/models/paylink_field_guard_model.rb
|
226
|
+
- lib/citypay_api_client/models/paylink_part_payments.rb
|
227
|
+
- lib/citypay_api_client/models/paylink_sms_notification_path.rb
|
228
|
+
- lib/citypay_api_client/models/paylink_state_event.rb
|
229
|
+
- lib/citypay_api_client/models/paylink_token_created.rb
|
230
|
+
- lib/citypay_api_client/models/paylink_token_request_model.rb
|
231
|
+
- lib/citypay_api_client/models/paylink_token_status.rb
|
232
|
+
- lib/citypay_api_client/models/paylink_token_status_change_request.rb
|
233
|
+
- lib/citypay_api_client/models/paylink_token_status_change_response.rb
|
234
|
+
- lib/citypay_api_client/models/paylink_ui.rb
|
151
235
|
- lib/citypay_api_client/models/ping.rb
|
236
|
+
- lib/citypay_api_client/models/process_batch_request.rb
|
237
|
+
- lib/citypay_api_client/models/process_batch_response.rb
|
238
|
+
- lib/citypay_api_client/models/refund_request.rb
|
152
239
|
- lib/citypay_api_client/models/register_card.rb
|
153
240
|
- lib/citypay_api_client/models/request_challenged.rb
|
154
241
|
- lib/citypay_api_client/models/retrieve_request.rb
|
155
242
|
- lib/citypay_api_client/models/three_d_secure.rb
|
243
|
+
- lib/citypay_api_client/models/tokenisation_response_model.rb
|
156
244
|
- lib/citypay_api_client/models/void_request.rb
|
157
|
-
- lib/citypay_api_client/
|
245
|
+
- lib/citypay_api_client/utils/digest_utils.rb
|
246
|
+
- lib/citypay_api_client/utils/direct_post_mac.rb
|
158
247
|
- lib/citypay_api_client/version.rb
|
159
|
-
- spec
|
160
|
-
- spec/api/
|
161
|
-
- spec/api/
|
248
|
+
- spec/.DS_Store
|
249
|
+
- spec/api/authorisation_and_payment_api___spec.rb
|
250
|
+
- spec/api/batch_processing_api___spec.rb
|
251
|
+
- spec/api/card_holder_account_api___spec.rb
|
252
|
+
- spec/api/direct_post_api___spec.rb
|
253
|
+
- spec/api/operational_functions_api___spec.rb
|
254
|
+
- spec/api/paylink_api___spec.rb
|
162
255
|
- spec/api_client_spec.rb
|
163
256
|
- spec/configuration_spec.rb
|
164
257
|
- spec/it_api_sandbox_spec.rb
|
165
258
|
- spec/models/account_create_spec.rb
|
166
259
|
- spec/models/account_status_spec.rb
|
167
260
|
- spec/models/acknowledgement_spec.rb
|
261
|
+
- spec/models/acl_check_request_spec.rb
|
262
|
+
- spec/models/acl_check_response_model_spec.rb
|
168
263
|
- spec/models/airline_advice_spec.rb
|
169
264
|
- spec/models/airline_segment_spec.rb
|
170
265
|
- spec/models/api_key_spec.rb
|
@@ -173,30 +268,73 @@ files:
|
|
173
268
|
- spec/models/auth_request_spec.rb
|
174
269
|
- spec/models/auth_response_spec.rb
|
175
270
|
- spec/models/authen_required_spec.rb
|
271
|
+
- spec/models/batch_report_request_spec.rb
|
272
|
+
- spec/models/batch_report_response_model_spec.rb
|
273
|
+
- spec/models/batch_spec.rb
|
274
|
+
- spec/models/batch_transaction_result_model_spec.rb
|
275
|
+
- spec/models/batch_transaction_spec.rb
|
276
|
+
- spec/models/bin_lookup_spec.rb
|
277
|
+
- spec/models/bin_spec.rb
|
176
278
|
- spec/models/c_res_auth_request_spec.rb
|
177
279
|
- spec/models/capture_request_spec.rb
|
178
280
|
- spec/models/card_holder_account_spec.rb
|
179
281
|
- spec/models/card_spec.rb
|
180
282
|
- spec/models/card_status_spec.rb
|
181
283
|
- spec/models/charge_request_spec.rb
|
284
|
+
- spec/models/check_batch_status_response_spec.rb
|
285
|
+
- spec/models/check_batch_status_spec.rb
|
182
286
|
- spec/models/contact_details_spec.rb
|
183
287
|
- spec/models/decision_spec.rb
|
288
|
+
- spec/models/direct_post_request_spec.rb
|
289
|
+
- spec/models/direct_token_auth_request_spec.rb
|
290
|
+
- spec/models/domain_key_check_request_spec.rb
|
291
|
+
- spec/models/domain_key_request_spec.rb
|
292
|
+
- spec/models/domain_key_response_spec.rb
|
184
293
|
- spec/models/error_spec.rb
|
294
|
+
- spec/models/event_data_model_spec.rb
|
295
|
+
- spec/models/exists_spec.rb
|
185
296
|
- spec/models/external_mpi_spec.rb
|
186
297
|
- spec/models/list_merchants_response_spec.rb
|
187
298
|
- spec/models/mcc6012_spec.rb
|
188
299
|
- spec/models/merchant_spec.rb
|
189
300
|
- spec/models/pa_res_auth_request_spec.rb
|
301
|
+
- spec/models/paylink_address_spec.rb
|
302
|
+
- spec/models/paylink_adjustment_request_spec.rb
|
303
|
+
- spec/models/paylink_attachment_request_spec.rb
|
304
|
+
- spec/models/paylink_attachment_result_spec.rb
|
305
|
+
- spec/models/paylink_bill_payment_token_request_spec.rb
|
306
|
+
- spec/models/paylink_card_holder_spec.rb
|
307
|
+
- spec/models/paylink_cart_item_model_spec.rb
|
308
|
+
- spec/models/paylink_cart_spec.rb
|
309
|
+
- spec/models/paylink_config_spec.rb
|
310
|
+
- spec/models/paylink_custom_param_spec.rb
|
311
|
+
- spec/models/paylink_email_notification_path_spec.rb
|
312
|
+
- spec/models/paylink_error_code_spec.rb
|
313
|
+
- spec/models/paylink_field_guard_model_spec.rb
|
314
|
+
- spec/models/paylink_part_payments_spec.rb
|
315
|
+
- spec/models/paylink_sms_notification_path_spec.rb
|
316
|
+
- spec/models/paylink_state_event_spec.rb
|
317
|
+
- spec/models/paylink_token_created_spec.rb
|
318
|
+
- spec/models/paylink_token_request_model_spec.rb
|
319
|
+
- spec/models/paylink_token_status_change_request_spec.rb
|
320
|
+
- spec/models/paylink_token_status_change_response_spec.rb
|
321
|
+
- spec/models/paylink_token_status_spec.rb
|
322
|
+
- spec/models/paylink_ui_spec.rb
|
190
323
|
- spec/models/ping_spec.rb
|
324
|
+
- spec/models/process_batch_request_spec.rb
|
325
|
+
- spec/models/process_batch_response_spec.rb
|
326
|
+
- spec/models/refund_request_spec.rb
|
191
327
|
- spec/models/register_card_spec.rb
|
192
328
|
- spec/models/request_challenged_spec.rb
|
193
329
|
- spec/models/retrieve_request_spec.rb
|
194
330
|
- spec/models/three_d_secure_spec.rb
|
331
|
+
- spec/models/tokenisation_response_model_spec.rb
|
195
332
|
- spec/models/void_request_spec.rb
|
196
333
|
- spec/spec_helper.rb
|
334
|
+
- spec/utils/direct_post_mac_spec.rb
|
197
335
|
homepage: https://github.com/citypay/citypay-api-client-ruby
|
198
336
|
licenses:
|
199
|
-
-
|
337
|
+
- Unlicense
|
200
338
|
metadata: {}
|
201
339
|
post_install_message:
|
202
340
|
rdoc_options: []
|
@@ -206,53 +344,101 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
206
344
|
requirements:
|
207
345
|
- - ">="
|
208
346
|
- !ruby/object:Gem::Version
|
209
|
-
version: '
|
347
|
+
version: '2.7'
|
210
348
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
211
349
|
requirements:
|
212
350
|
- - ">="
|
213
351
|
- !ruby/object:Gem::Version
|
214
352
|
version: '0'
|
215
353
|
requirements: []
|
216
|
-
rubygems_version: 3.
|
354
|
+
rubygems_version: 3.4.10
|
217
355
|
signing_key:
|
218
356
|
specification_version: 4
|
219
357
|
summary: A ruby wrapper for the CityPay API
|
220
358
|
test_files:
|
221
|
-
- spec/api/
|
222
|
-
- spec/api/
|
223
|
-
- spec/api/
|
359
|
+
- spec/api/direct_post_api___spec.rb
|
360
|
+
- spec/api/operational_functions_api___spec.rb
|
361
|
+
- spec/api/authorisation_and_payment_api___spec.rb
|
362
|
+
- spec/api/batch_processing_api___spec.rb
|
363
|
+
- spec/api/card_holder_account_api___spec.rb
|
364
|
+
- spec/api/paylink_api___spec.rb
|
224
365
|
- spec/api_client_spec.rb
|
225
366
|
- spec/configuration_spec.rb
|
226
367
|
- spec/it_api_sandbox_spec.rb
|
227
368
|
- spec/models/error_spec.rb
|
369
|
+
- spec/models/direct_token_auth_request_spec.rb
|
370
|
+
- spec/models/batch_spec.rb
|
371
|
+
- spec/models/paylink_token_status_change_request_spec.rb
|
372
|
+
- spec/models/batch_transaction_result_model_spec.rb
|
228
373
|
- spec/models/capture_request_spec.rb
|
374
|
+
- spec/models/paylink_bill_payment_token_request_spec.rb
|
375
|
+
- spec/models/paylink_email_notification_path_spec.rb
|
229
376
|
- spec/models/acknowledgement_spec.rb
|
377
|
+
- spec/models/paylink_field_guard_model_spec.rb
|
230
378
|
- spec/models/external_mpi_spec.rb
|
379
|
+
- spec/models/paylink_config_spec.rb
|
380
|
+
- spec/models/paylink_token_status_spec.rb
|
381
|
+
- spec/models/paylink_address_spec.rb
|
382
|
+
- spec/models/domain_key_check_request_spec.rb
|
383
|
+
- spec/models/bin_spec.rb
|
384
|
+
- spec/models/domain_key_request_spec.rb
|
385
|
+
- spec/models/paylink_attachment_result_spec.rb
|
386
|
+
- spec/models/paylink_card_holder_spec.rb
|
387
|
+
- spec/models/domain_key_response_spec.rb
|
388
|
+
- spec/models/tokenisation_response_model_spec.rb
|
231
389
|
- spec/models/decision_spec.rb
|
390
|
+
- spec/models/acl_check_response_model_spec.rb
|
391
|
+
- spec/models/acl_check_request_spec.rb
|
232
392
|
- spec/models/airline_advice_spec.rb
|
233
393
|
- spec/models/retrieve_request_spec.rb
|
394
|
+
- spec/models/paylink_adjustment_request_spec.rb
|
395
|
+
- spec/models/direct_post_request_spec.rb
|
396
|
+
- spec/models/paylink_token_request_model_spec.rb
|
397
|
+
- spec/models/paylink_sms_notification_path_spec.rb
|
234
398
|
- spec/models/ping_spec.rb
|
399
|
+
- spec/models/process_batch_response_spec.rb
|
235
400
|
- spec/models/card_holder_account_spec.rb
|
401
|
+
- spec/models/exists_spec.rb
|
236
402
|
- spec/models/c_res_auth_request_spec.rb
|
403
|
+
- spec/models/paylink_ui_spec.rb
|
237
404
|
- spec/models/airline_segment_spec.rb
|
238
405
|
- spec/models/card_spec.rb
|
406
|
+
- spec/models/paylink_state_event_spec.rb
|
239
407
|
- spec/models/api_key_spec.rb
|
240
408
|
- spec/models/auth_references_spec.rb
|
409
|
+
- spec/models/batch_report_response_model_spec.rb
|
410
|
+
- spec/models/paylink_cart_item_model_spec.rb
|
241
411
|
- spec/models/list_merchants_response_spec.rb
|
412
|
+
- spec/models/batch_transaction_spec.rb
|
242
413
|
- spec/models/void_request_spec.rb
|
243
414
|
- spec/models/auth_request_spec.rb
|
415
|
+
- spec/models/paylink_attachment_request_spec.rb
|
244
416
|
- spec/models/register_card_spec.rb
|
417
|
+
- spec/models/paylink_cart_spec.rb
|
418
|
+
- spec/models/event_data_model_spec.rb
|
419
|
+
- spec/models/paylink_token_status_change_response_spec.rb
|
420
|
+
- spec/models/check_batch_status_spec.rb
|
421
|
+
- spec/models/paylink_custom_param_spec.rb
|
245
422
|
- spec/models/account_status_spec.rb
|
246
423
|
- spec/models/auth_response_spec.rb
|
424
|
+
- spec/models/refund_request_spec.rb
|
247
425
|
- spec/models/request_challenged_spec.rb
|
248
426
|
- spec/models/account_create_spec.rb
|
249
427
|
- spec/models/merchant_spec.rb
|
250
428
|
- spec/models/contact_details_spec.rb
|
429
|
+
- spec/models/process_batch_request_spec.rb
|
251
430
|
- spec/models/charge_request_spec.rb
|
431
|
+
- spec/models/paylink_token_created_spec.rb
|
252
432
|
- spec/models/mcc6012_spec.rb
|
433
|
+
- spec/models/paylink_part_payments_spec.rb
|
434
|
+
- spec/models/paylink_error_code_spec.rb
|
435
|
+
- spec/models/check_batch_status_response_spec.rb
|
253
436
|
- spec/models/card_status_spec.rb
|
437
|
+
- spec/models/bin_lookup_spec.rb
|
254
438
|
- spec/models/pa_res_auth_request_spec.rb
|
255
439
|
- spec/models/authen_required_spec.rb
|
440
|
+
- spec/models/batch_report_request_spec.rb
|
256
441
|
- spec/models/three_d_secure_spec.rb
|
257
442
|
- spec/models/auth_reference_spec.rb
|
258
443
|
- spec/spec_helper.rb
|
444
|
+
- spec/utils/direct_post_mac_spec.rb
|