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
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ffc51d5a014c59fc14c213cd2f0340323c31e8094fc8602fc27e357675e5fe0d
|
4
|
+
data.tar.gz: 4584d27c08da5b4aa0742ba6177dcbaa0ff1e6822481461056aa721be5b12de0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8d9330bc04c09a6ab2b5346db177aa58a13ec7357841fa718c4ad4df9371bf51aa730d6d064ae497e8a1e75268b3fab16bf979334589e1549ec3fcfbce8ffb4f
|
7
|
+
data.tar.gz: 3c9b157bd6def911f761a3964abe6ff459ab297451c9e120e3ad40ae28d519bf48af0b98a05dc92199127afcabc81e0a8ed22d6842b5718a8a360359789d557a
|
data/README.md
CHANGED
@@ -1,24 +1,22 @@
|
|
1
1
|
# CityPay API Client for Ruby
|
2
2
|
|
3
3
|
CityPayApiClient - the Ruby gem for the CityPay Payment API
|
4
|
-
[](https://github.com/citypay/citypay-api-client-ruby/actions/workflows/build.yml)
|
5
5
|
|
6
6
|
|
7
|
-
This CityPay API is
|
7
|
+
This CityPay API is an HTTP RESTful payment API used for direct server to server transactional processing. It
|
8
8
|
provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing,
|
9
9
|
3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and
|
10
|
-
Completion processing. The API is also capable of
|
10
|
+
Completion processing. The API is also capable of tokenized payments using cardholder Accounts.
|
11
11
|
|
12
12
|
## Compliance and Security
|
13
|
-
|
14
|
-
|
15
|
-
and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including:
|
16
|
-
</aside>
|
13
|
+
Your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by
|
14
|
+
Visa and MasterCard and the PCI Security Standards Council. These include
|
17
15
|
|
18
|
-
* Data must be collected using TLS version 1.2 using [strong cryptography](
|
16
|
+
* 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
|
19
17
|
lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments
|
20
18
|
as part of our compliance program.
|
21
|
-
* The application must not store sensitive
|
19
|
+
* The application must not store sensitive cardholder data (CHD) such as the card security code (CSC) or
|
22
20
|
primary access number (PAN)
|
23
21
|
* The application must not display the full card number on receipts, it is recommended to mask the PAN
|
24
22
|
and show the last 4 digits. The API will return this for you for ease of receipt creation
|
@@ -33,10 +31,10 @@ Completion processing. The API is also capable of tokinsed payments using Card H
|
|
33
31
|
|
34
32
|
This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
|
35
33
|
|
36
|
-
- API version: 6.
|
37
|
-
- Package version: 1.
|
34
|
+
- API version: 6.6.23
|
35
|
+
- Package version: 1.1.2
|
38
36
|
- Build package: org.openapitools.codegen.languages.RubyClientCodegen
|
39
|
-
For more information, please visit [https://citypay.com/
|
37
|
+
For more information, please visit [https://www.citypay.com/contacts/](https://www.citypay.com/contacts/)
|
40
38
|
|
41
39
|
## Installation
|
42
40
|
|
@@ -51,16 +49,16 @@ gem build citypay_api_client.gemspec
|
|
51
49
|
Then either install the gem locally:
|
52
50
|
|
53
51
|
```shell
|
54
|
-
gem install ./citypay_api_client-1.
|
52
|
+
gem install ./citypay_api_client-1.1.2.gem
|
55
53
|
```
|
56
54
|
|
57
|
-
(for development, run `gem install --dev ./citypay_api_client-1.
|
55
|
+
(for development, run `gem install --dev ./citypay_api_client-1.1.2.gem` to install the development dependencies)
|
58
56
|
|
59
57
|
or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
|
60
58
|
|
61
59
|
Finally add this to the Gemfile:
|
62
60
|
|
63
|
-
gem 'citypay_api_client', '~> 1.
|
61
|
+
gem 'citypay_api_client', '~> 1.1.2'
|
64
62
|
|
65
63
|
### Install from Git
|
66
64
|
|
@@ -89,43 +87,65 @@ CityPayApiClient.configure do |config|
|
|
89
87
|
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
90
88
|
end
|
91
89
|
|
92
|
-
api_instance = CityPayApiClient::
|
93
|
-
|
94
|
-
card_id = 'card_id_example' # String | The id of the card that is presented by a call to retrieve a card holder account.
|
90
|
+
api_instance = CityPayApiClient::AuthorisationAndPaymentApi.new
|
91
|
+
auth_request = CityPayApiClient::AuthRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344}) # AuthRequest |
|
95
92
|
|
96
93
|
begin
|
97
|
-
#
|
98
|
-
result = api_instance.
|
94
|
+
#Authorisation
|
95
|
+
result = api_instance.authorisation_request(auth_request)
|
99
96
|
p result
|
100
97
|
rescue CityPayApiClient::ApiError => e
|
101
|
-
puts "Exception when calling
|
98
|
+
puts "Exception when calling AuthorisationAndPaymentApi->authorisation_request: #{e}"
|
102
99
|
end
|
103
100
|
|
104
101
|
```
|
105
102
|
|
106
103
|
## Documentation for API Endpoints
|
107
104
|
|
108
|
-
All URIs are relative to *https://api.citypay.com
|
105
|
+
All URIs are relative to *https://api.citypay.com*
|
109
106
|
|
110
107
|
Class | Method | HTTP request | Description
|
111
108
|
------------ | ------------- | ------------- | -------------
|
112
|
-
*CityPayApiClient::
|
113
|
-
*CityPayApiClient::
|
114
|
-
*CityPayApiClient::
|
115
|
-
*CityPayApiClient::
|
116
|
-
*CityPayApiClient::
|
117
|
-
*CityPayApiClient::
|
118
|
-
*CityPayApiClient::
|
119
|
-
*CityPayApiClient::
|
120
|
-
*CityPayApiClient::
|
121
|
-
*CityPayApiClient::
|
122
|
-
*CityPayApiClient::
|
123
|
-
*CityPayApiClient::
|
124
|
-
*CityPayApiClient::
|
125
|
-
*CityPayApiClient::
|
126
|
-
*CityPayApiClient::
|
127
|
-
*CityPayApiClient::
|
128
|
-
*CityPayApiClient::
|
109
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**authorisation_request**](docs/AuthorisationAndPaymentApi.md#authorisation_request) | **POST** /v6/authorise | Authorisation
|
110
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**bin_range_lookup_request**](docs/AuthorisationAndPaymentApi.md#bin_range_lookup_request) | **POST** /v6/bin | Bin Lookup
|
111
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**c_res_request**](docs/AuthorisationAndPaymentApi.md#c_res_request) | **POST** /v6/cres | CRes
|
112
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**capture_request**](docs/AuthorisationAndPaymentApi.md#capture_request) | **POST** /v6/capture | Capture
|
113
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**pa_res_request**](docs/AuthorisationAndPaymentApi.md#pa_res_request) | **POST** /v6/pares | PaRes
|
114
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**refund_request**](docs/AuthorisationAndPaymentApi.md#refund_request) | **POST** /v6/refund | Refund
|
115
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**retrieval_request**](docs/AuthorisationAndPaymentApi.md#retrieval_request) | **POST** /v6/retrieve | Retrieval
|
116
|
+
*CityPayApiClient::AuthorisationAndPaymentApi* | [**void_request**](docs/AuthorisationAndPaymentApi.md#void_request) | **POST** /v6/void | Void
|
117
|
+
*CityPayApiClient::BatchProcessingApi* | [**batch_process_request**](docs/BatchProcessingApi.md#batch_process_request) | **POST** /v6/batch/process | Batch Process Request
|
118
|
+
*CityPayApiClient::BatchProcessingApi* | [**batch_retrieve_request**](docs/BatchProcessingApi.md#batch_retrieve_request) | **POST** /v6/batch/retrieve | BatchReportRequest
|
119
|
+
*CityPayApiClient::BatchProcessingApi* | [**check_batch_status_request**](docs/BatchProcessingApi.md#check_batch_status_request) | **POST** /v6/batch/status | CheckBatchStatus
|
120
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_card_delete_request**](docs/CardHolderAccountApi.md#account_card_delete_request) | **DELETE** /v6/account/{accountid}/card/{cardId} | Card Deletion
|
121
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_card_register_request**](docs/CardHolderAccountApi.md#account_card_register_request) | **POST** /v6/account/{accountid}/register | Card Registration
|
122
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_card_status_request**](docs/CardHolderAccountApi.md#account_card_status_request) | **POST** /v6/account/{accountid}/card/{cardId}/status | Card Status
|
123
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_change_contact_request**](docs/CardHolderAccountApi.md#account_change_contact_request) | **POST** /v6/account/{accountid}/contact | Contact Details Update
|
124
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_create**](docs/CardHolderAccountApi.md#account_create) | **POST** /v6/account/create | Account Create
|
125
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_delete_request**](docs/CardHolderAccountApi.md#account_delete_request) | **DELETE** /v6/account/{accountid} | Account Deletion
|
126
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_exists_request**](docs/CardHolderAccountApi.md#account_exists_request) | **GET** /v6/account-exists/{accountid} | Account Exists
|
127
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_retrieve_request**](docs/CardHolderAccountApi.md#account_retrieve_request) | **GET** /v6/account/{accountid} | Account Retrieval
|
128
|
+
*CityPayApiClient::CardHolderAccountApi* | [**account_status_request**](docs/CardHolderAccountApi.md#account_status_request) | **POST** /v6/account/{accountid}/status | Account Status
|
129
|
+
*CityPayApiClient::CardHolderAccountApi* | [**charge_request**](docs/CardHolderAccountApi.md#charge_request) | **POST** /v6/charge | Charge
|
130
|
+
*CityPayApiClient::DirectPostApi* | [**direct_c_res_auth_request**](docs/DirectPostApi.md#direct_c_res_auth_request) | **POST** /direct/cres/auth/{uuid} | Handles a CRes response from ACS, returning back the result of authorisation
|
131
|
+
*CityPayApiClient::DirectPostApi* | [**direct_c_res_tokenise_request**](docs/DirectPostApi.md#direct_c_res_tokenise_request) | **POST** /direct/cres/tokenise/{uuid} | Handles a CRes response from ACS, returning back a token for future authorisation
|
132
|
+
*CityPayApiClient::DirectPostApi* | [**direct_post_auth_request**](docs/DirectPostApi.md#direct_post_auth_request) | **POST** /direct/auth | Direct Post Auth Request
|
133
|
+
*CityPayApiClient::DirectPostApi* | [**direct_post_tokenise_request**](docs/DirectPostApi.md#direct_post_tokenise_request) | **POST** /direct/tokenise | Direct Post Tokenise Request
|
134
|
+
*CityPayApiClient::DirectPostApi* | [**token_request**](docs/DirectPostApi.md#token_request) | **POST** /direct/token | Direct Post Token Request
|
135
|
+
*CityPayApiClient::OperationalFunctionsApi* | [**acl_check_request**](docs/OperationalFunctionsApi.md#acl_check_request) | **POST** /v6/acl/check | ACL Check Request
|
136
|
+
*CityPayApiClient::OperationalFunctionsApi* | [**domain_key_check_request**](docs/OperationalFunctionsApi.md#domain_key_check_request) | **POST** /dk/check | Domain Key Check Request
|
137
|
+
*CityPayApiClient::OperationalFunctionsApi* | [**domain_key_gen_request**](docs/OperationalFunctionsApi.md#domain_key_gen_request) | **POST** /dk/gen | Domain Key Generation Request
|
138
|
+
*CityPayApiClient::OperationalFunctionsApi* | [**list_merchants_request**](docs/OperationalFunctionsApi.md#list_merchants_request) | **GET** /v6/merchants/{clientid} | List Merchants Request
|
139
|
+
*CityPayApiClient::OperationalFunctionsApi* | [**ping_request**](docs/OperationalFunctionsApi.md#ping_request) | **POST** /v6/ping | Ping Request
|
140
|
+
*CityPayApiClient::PaylinkApi* | [**token_adjustment_request**](docs/PaylinkApi.md#token_adjustment_request) | **POST** /paylink/{token}/adjustment | Paylink Token Adjustment
|
141
|
+
*CityPayApiClient::PaylinkApi* | [**token_changes_request**](docs/PaylinkApi.md#token_changes_request) | **POST** /paylink/token/changes | Paylink Token Audit
|
142
|
+
*CityPayApiClient::PaylinkApi* | [**token_close_request**](docs/PaylinkApi.md#token_close_request) | **PUT** /paylink/{token}/close | Close Paylink Token
|
143
|
+
*CityPayApiClient::PaylinkApi* | [**token_create_bill_payment_request**](docs/PaylinkApi.md#token_create_bill_payment_request) | **POST** /paylink/bill-payment | Create Bill Payment Paylink Token
|
144
|
+
*CityPayApiClient::PaylinkApi* | [**token_create_request**](docs/PaylinkApi.md#token_create_request) | **POST** /paylink/create | Create Paylink Token
|
145
|
+
*CityPayApiClient::PaylinkApi* | [**token_purge_attachments_request**](docs/PaylinkApi.md#token_purge_attachments_request) | **PUT** /paylink/{token}/purge-attachments | Purges any attachments for a Paylink Token
|
146
|
+
*CityPayApiClient::PaylinkApi* | [**token_reconciled_request**](docs/PaylinkApi.md#token_reconciled_request) | **PUT** /paylink/{token}/reconciled | Reconcile Paylink Token
|
147
|
+
*CityPayApiClient::PaylinkApi* | [**token_reopen_request**](docs/PaylinkApi.md#token_reopen_request) | **PUT** /paylink/{token}/reopen | Reopen Paylink Token
|
148
|
+
*CityPayApiClient::PaylinkApi* | [**token_status_request**](docs/PaylinkApi.md#token_status_request) | **GET** /paylink/{token}/status | Paylink Token Status
|
129
149
|
|
130
150
|
|
131
151
|
## Documentation for Models
|
@@ -133,6 +153,8 @@ Class | Method | HTTP request | Description
|
|
133
153
|
- [CityPayApiClient::AccountCreate](docs/AccountCreate.md)
|
134
154
|
- [CityPayApiClient::AccountStatus](docs/AccountStatus.md)
|
135
155
|
- [CityPayApiClient::Acknowledgement](docs/Acknowledgement.md)
|
156
|
+
- [CityPayApiClient::AclCheckRequest](docs/AclCheckRequest.md)
|
157
|
+
- [CityPayApiClient::AclCheckResponseModel](docs/AclCheckResponseModel.md)
|
136
158
|
- [CityPayApiClient::AirlineAdvice](docs/AirlineAdvice.md)
|
137
159
|
- [CityPayApiClient::AirlineSegment](docs/AirlineSegment.md)
|
138
160
|
- [CityPayApiClient::AuthReference](docs/AuthReference.md)
|
@@ -140,31 +162,74 @@ Class | Method | HTTP request | Description
|
|
140
162
|
- [CityPayApiClient::AuthRequest](docs/AuthRequest.md)
|
141
163
|
- [CityPayApiClient::AuthResponse](docs/AuthResponse.md)
|
142
164
|
- [CityPayApiClient::AuthenRequired](docs/AuthenRequired.md)
|
165
|
+
- [CityPayApiClient::Batch](docs/Batch.md)
|
166
|
+
- [CityPayApiClient::BatchReportRequest](docs/BatchReportRequest.md)
|
167
|
+
- [CityPayApiClient::BatchReportResponseModel](docs/BatchReportResponseModel.md)
|
168
|
+
- [CityPayApiClient::BatchTransaction](docs/BatchTransaction.md)
|
169
|
+
- [CityPayApiClient::BatchTransactionResultModel](docs/BatchTransactionResultModel.md)
|
170
|
+
- [CityPayApiClient::Bin](docs/Bin.md)
|
171
|
+
- [CityPayApiClient::BinLookup](docs/BinLookup.md)
|
143
172
|
- [CityPayApiClient::CResAuthRequest](docs/CResAuthRequest.md)
|
144
173
|
- [CityPayApiClient::CaptureRequest](docs/CaptureRequest.md)
|
145
174
|
- [CityPayApiClient::Card](docs/Card.md)
|
146
175
|
- [CityPayApiClient::CardHolderAccount](docs/CardHolderAccount.md)
|
147
176
|
- [CityPayApiClient::CardStatus](docs/CardStatus.md)
|
148
177
|
- [CityPayApiClient::ChargeRequest](docs/ChargeRequest.md)
|
178
|
+
- [CityPayApiClient::CheckBatchStatus](docs/CheckBatchStatus.md)
|
179
|
+
- [CityPayApiClient::CheckBatchStatusResponse](docs/CheckBatchStatusResponse.md)
|
149
180
|
- [CityPayApiClient::ContactDetails](docs/ContactDetails.md)
|
150
181
|
- [CityPayApiClient::Decision](docs/Decision.md)
|
182
|
+
- [CityPayApiClient::DirectPostRequest](docs/DirectPostRequest.md)
|
183
|
+
- [CityPayApiClient::DirectTokenAuthRequest](docs/DirectTokenAuthRequest.md)
|
184
|
+
- [CityPayApiClient::DomainKeyCheckRequest](docs/DomainKeyCheckRequest.md)
|
185
|
+
- [CityPayApiClient::DomainKeyRequest](docs/DomainKeyRequest.md)
|
186
|
+
- [CityPayApiClient::DomainKeyResponse](docs/DomainKeyResponse.md)
|
151
187
|
- [CityPayApiClient::Error](docs/Error.md)
|
188
|
+
- [CityPayApiClient::EventDataModel](docs/EventDataModel.md)
|
189
|
+
- [CityPayApiClient::Exists](docs/Exists.md)
|
152
190
|
- [CityPayApiClient::ExternalMPI](docs/ExternalMPI.md)
|
153
191
|
- [CityPayApiClient::ListMerchantsResponse](docs/ListMerchantsResponse.md)
|
154
192
|
- [CityPayApiClient::MCC6012](docs/MCC6012.md)
|
155
193
|
- [CityPayApiClient::Merchant](docs/Merchant.md)
|
156
194
|
- [CityPayApiClient::PaResAuthRequest](docs/PaResAuthRequest.md)
|
195
|
+
- [CityPayApiClient::PaylinkAddress](docs/PaylinkAddress.md)
|
196
|
+
- [CityPayApiClient::PaylinkAdjustmentRequest](docs/PaylinkAdjustmentRequest.md)
|
197
|
+
- [CityPayApiClient::PaylinkAttachmentRequest](docs/PaylinkAttachmentRequest.md)
|
198
|
+
- [CityPayApiClient::PaylinkAttachmentResult](docs/PaylinkAttachmentResult.md)
|
199
|
+
- [CityPayApiClient::PaylinkBillPaymentTokenRequest](docs/PaylinkBillPaymentTokenRequest.md)
|
200
|
+
- [CityPayApiClient::PaylinkCardHolder](docs/PaylinkCardHolder.md)
|
201
|
+
- [CityPayApiClient::PaylinkCart](docs/PaylinkCart.md)
|
202
|
+
- [CityPayApiClient::PaylinkCartItemModel](docs/PaylinkCartItemModel.md)
|
203
|
+
- [CityPayApiClient::PaylinkConfig](docs/PaylinkConfig.md)
|
204
|
+
- [CityPayApiClient::PaylinkCustomParam](docs/PaylinkCustomParam.md)
|
205
|
+
- [CityPayApiClient::PaylinkEmailNotificationPath](docs/PaylinkEmailNotificationPath.md)
|
206
|
+
- [CityPayApiClient::PaylinkErrorCode](docs/PaylinkErrorCode.md)
|
207
|
+
- [CityPayApiClient::PaylinkFieldGuardModel](docs/PaylinkFieldGuardModel.md)
|
208
|
+
- [CityPayApiClient::PaylinkPartPayments](docs/PaylinkPartPayments.md)
|
209
|
+
- [CityPayApiClient::PaylinkSMSNotificationPath](docs/PaylinkSMSNotificationPath.md)
|
210
|
+
- [CityPayApiClient::PaylinkStateEvent](docs/PaylinkStateEvent.md)
|
211
|
+
- [CityPayApiClient::PaylinkTokenCreated](docs/PaylinkTokenCreated.md)
|
212
|
+
- [CityPayApiClient::PaylinkTokenRequestModel](docs/PaylinkTokenRequestModel.md)
|
213
|
+
- [CityPayApiClient::PaylinkTokenStatus](docs/PaylinkTokenStatus.md)
|
214
|
+
- [CityPayApiClient::PaylinkTokenStatusChangeRequest](docs/PaylinkTokenStatusChangeRequest.md)
|
215
|
+
- [CityPayApiClient::PaylinkTokenStatusChangeResponse](docs/PaylinkTokenStatusChangeResponse.md)
|
216
|
+
- [CityPayApiClient::PaylinkUI](docs/PaylinkUI.md)
|
157
217
|
- [CityPayApiClient::Ping](docs/Ping.md)
|
218
|
+
- [CityPayApiClient::ProcessBatchRequest](docs/ProcessBatchRequest.md)
|
219
|
+
- [CityPayApiClient::ProcessBatchResponse](docs/ProcessBatchResponse.md)
|
220
|
+
- [CityPayApiClient::RefundRequest](docs/RefundRequest.md)
|
158
221
|
- [CityPayApiClient::RegisterCard](docs/RegisterCard.md)
|
159
222
|
- [CityPayApiClient::RequestChallenged](docs/RequestChallenged.md)
|
160
223
|
- [CityPayApiClient::RetrieveRequest](docs/RetrieveRequest.md)
|
161
224
|
- [CityPayApiClient::ThreeDSecure](docs/ThreeDSecure.md)
|
225
|
+
- [CityPayApiClient::TokenisationResponseModel](docs/TokenisationResponseModel.md)
|
162
226
|
- [CityPayApiClient::VoidRequest](docs/VoidRequest.md)
|
163
227
|
|
164
228
|
|
165
229
|
## Documentation for Authorization
|
166
230
|
|
167
231
|
|
232
|
+
Authentication schemes defined for the API:
|
168
233
|
### cp-api-key
|
169
234
|
|
170
235
|
|
@@ -172,3 +237,10 @@ Class | Method | HTTP request | Description
|
|
172
237
|
- **API key parameter name**: cp-api-key
|
173
238
|
- **Location**: HTTP header
|
174
239
|
|
240
|
+
### cp-domain-key
|
241
|
+
|
242
|
+
|
243
|
+
- **Type**: API key
|
244
|
+
- **API key parameter name**: cp-domain-key
|
245
|
+
- **Location**: URL query string
|
246
|
+
|
data/citypay_api_client.gemspec
CHANGED
@@ -3,11 +3,11 @@
|
|
3
3
|
=begin
|
4
4
|
#CityPay Payment API
|
5
5
|
|
6
|
-
# This CityPay API is
|
6
|
+
# 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.
|
7
7
|
|
8
8
|
Contact: support@citypay.com
|
9
9
|
Generated by: https://openapi-generator.tech
|
10
|
-
OpenAPI Generator version:
|
10
|
+
OpenAPI Generator version: 7.2.0
|
11
11
|
|
12
12
|
=end
|
13
13
|
|
@@ -23,11 +23,11 @@ Gem::Specification.new do |s|
|
|
23
23
|
s.homepage = "https://github.com/citypay/citypay-api-client-ruby"
|
24
24
|
s.summary = "A ruby wrapper for the CityPay API"
|
25
25
|
s.description = "CityPay API Client for Ruby"
|
26
|
-
s.license = "
|
27
|
-
s.required_ruby_version = ">=
|
26
|
+
s.license = "Unlicense"
|
27
|
+
s.required_ruby_version = ">= 2.7"
|
28
|
+
s.metadata = {}
|
28
29
|
|
29
30
|
s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
|
30
|
-
s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
|
31
31
|
|
32
32
|
s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
|
33
33
|
|
data/docs/AccountCreate.md
CHANGED
@@ -2,18 +2,19 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**account_id** | **String** | A card holder account id used for uniquely identifying the account. This value will be used for future referencing of the account oand to link your system to this API. This value is immutable and never changes. |
|
8
|
-
**contact** | [**ContactDetails**](ContactDetails.md) | | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_id** | **String** | A card holder account id used for uniquely identifying the account. This value will be used for future referencing of the account oand to link your system to this API. This value is immutable and never changes. | |
|
8
|
+
| **contact** | [**ContactDetails**](ContactDetails.md) | | [optional] |
|
9
9
|
|
10
|
-
##
|
10
|
+
## Example
|
11
11
|
|
12
12
|
```ruby
|
13
|
-
require '
|
13
|
+
require 'citypay_api_client'
|
14
14
|
|
15
|
-
instance = CityPayApiClient::AccountCreate.new(
|
16
|
-
|
15
|
+
instance = CityPayApiClient::AccountCreate.new(
|
16
|
+
account_id: aaabbb-cccddd-eee,
|
17
|
+
contact: null
|
18
|
+
)
|
17
19
|
```
|
18
20
|
|
19
|
-
|
data/docs/AccountStatus.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**status** | **String** | The status of the account to set, valid values are ACTIVE or DISABLED. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **status** | **String** | The status of the account to set, valid values are ACTIVE or DISABLED. | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'citypay_api_client'
|
13
13
|
|
14
|
-
instance = CityPayApiClient::AccountStatus.new(
|
14
|
+
instance = CityPayApiClient::AccountStatus.new(
|
15
|
+
status: null
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/Acknowledgement.md
CHANGED
@@ -2,22 +2,23 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**code** | **String** | A response code providing a result of the process. | [optional]
|
8
|
-
**context** | **String** | A context id of the process used for referencing transactions through support. | [optional]
|
9
|
-
**identifier** | **String** | An identifier if presented in the original request. | [optional]
|
10
|
-
**message** | **String** | A response message providing a description of the result of the process. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | A response code providing a result of the process. | [optional] |
|
8
|
+
| **context** | **String** | A context id of the process used for referencing transactions through support. | [optional] |
|
9
|
+
| **identifier** | **String** | An identifier if presented in the original request. | [optional] |
|
10
|
+
| **message** | **String** | A response message providing a description of the result of the process. | [optional] |
|
11
11
|
|
12
|
-
##
|
12
|
+
## Example
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
require '
|
15
|
+
require 'citypay_api_client'
|
16
16
|
|
17
|
-
instance = CityPayApiClient::Acknowledgement.new(
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
instance = CityPayApiClient::Acknowledgement.new(
|
18
|
+
code: 0,
|
19
|
+
context: aspiu352908ns47n343598bads,
|
20
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
21
|
+
message: Approved 044332
|
22
|
+
)
|
21
23
|
```
|
22
24
|
|
23
|
-
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CityPayApiClient::AclCheckRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **ip** | **String** | An ip address to check for an ACL against. The address should be a publicly routable IPv4 address. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'citypay_api_client'
|
13
|
+
|
14
|
+
instance = CityPayApiClient::AclCheckRequest.new(
|
15
|
+
ip: 8.8.8.8
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# CityPayApiClient::AclCheckResponseModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **acl** | **String** | The name or value of the acl which was found to match the ip address. | [optional] |
|
8
|
+
| **cache** | **Boolean** | Whether the ACL was returned via a cached instance. | [optional] |
|
9
|
+
| **ip** | **String** | The IP address used in the lookup. | [optional] |
|
10
|
+
| **provider** | **String** | The source provider of the ACL. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'citypay_api_client'
|
16
|
+
|
17
|
+
instance = CityPayApiClient::AclCheckResponseModel.new(
|
18
|
+
acl: null,
|
19
|
+
cache: null,
|
20
|
+
ip: 8.8.8.8,
|
21
|
+
provider: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
data/docs/AirlineAdvice.md
CHANGED
@@ -2,46 +2,47 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**carrier_name** | **String** | The name of the airline carrier that generated the tickets for airline travel. |
|
8
|
-
**conjunction_ticket_indicator** | **Boolean** | true if a conjunction ticket (with additional coupons) was issued for an itinerary with more than four segments. Defaults to false. | [optional]
|
9
|
-
**eticket_indicator** | **Boolean** | The Electronic Ticket Indicator, a code that indicates if an electronic ticket was issued. Defaults to true. | [optional]
|
10
|
-
**no_air_segments** | **Integer** | A value that indicates the number of air travel segments included on this ticket.
|
11
|
-
**number_in_party** | **Integer** | The number of people in the party. |
|
12
|
-
**original_ticket_no** | **String** | Required if transaction type is EXC. | [optional]
|
13
|
-
**passenger_name** | **String** | The name of the passenger when the traveller is not the card member that purchased the ticket. Required only if the transaction type is TKT or EXC. | [optional]
|
14
|
-
**segment1** | [**AirlineSegment**](AirlineSegment.md) | |
|
15
|
-
**segment2** | [**AirlineSegment**](AirlineSegment.md) | | [optional]
|
16
|
-
**segment3** | [**AirlineSegment**](AirlineSegment.md) | | [optional]
|
17
|
-
**segment4** | [**AirlineSegment**](AirlineSegment.md) | | [optional]
|
18
|
-
**ticket_issue_city** | **String** | The name of the city town or village where the transaction took place. |
|
19
|
-
**ticket_issue_date** | **Date** | The date the ticket was issued in ISO Date format (yyyy-MM-dd). |
|
20
|
-
**ticket_issue_name** | **String** | The name of the agency generating the ticket. |
|
21
|
-
**ticket_no** | **String** | This must be a valid ticket number, i.e. numeric (the first 3 digits must represent the valid IATA plate carrier code). The final check digit should be validated prior to submission. On credit charges, this field should contain the number of the original ticket, and not of a replacement. |
|
22
|
-
**transaction_type** | **String** | This field contains the Transaction Type code assigned to this transaction. Valid codes include: - `TKT` = Ticket Purchase
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **carrier_name** | **String** | The name of the airline carrier that generated the tickets for airline travel. | |
|
8
|
+
| **conjunction_ticket_indicator** | **Boolean** | true if a conjunction ticket (with additional coupons) was issued for an itinerary with more than four segments. Defaults to false. | [optional] |
|
9
|
+
| **eticket_indicator** | **Boolean** | The Electronic Ticket Indicator, a code that indicates if an electronic ticket was issued. Defaults to true. | [optional] |
|
10
|
+
| **no_air_segments** | **Integer** | A value that indicates the number of air travel segments included on this ticket. Valid entries include the numerals “0” through “4”. Required only if the transaction type is TKT or EXC. | [optional] |
|
11
|
+
| **number_in_party** | **Integer** | The number of people in the party. | [optional] |
|
12
|
+
| **original_ticket_no** | **String** | Required if transaction type is EXC. | [optional] |
|
13
|
+
| **passenger_name** | **String** | The name of the passenger when the traveller is not the card member that purchased the ticket. Required only if the transaction type is TKT or EXC. | [optional] |
|
14
|
+
| **segment1** | [**AirlineSegment**](AirlineSegment.md) | | |
|
15
|
+
| **segment2** | [**AirlineSegment**](AirlineSegment.md) | | [optional] |
|
16
|
+
| **segment3** | [**AirlineSegment**](AirlineSegment.md) | | [optional] |
|
17
|
+
| **segment4** | [**AirlineSegment**](AirlineSegment.md) | | [optional] |
|
18
|
+
| **ticket_issue_city** | **String** | The name of the city town or village where the transaction took place. | |
|
19
|
+
| **ticket_issue_date** | **Date** | The date the ticket was issued in ISO Date format (yyyy-MM-dd). | |
|
20
|
+
| **ticket_issue_name** | **String** | The name of the agency generating the ticket. | |
|
21
|
+
| **ticket_no** | **String** | This must be a valid ticket number, i.e. numeric (the first 3 digits must represent the valid IATA plate carrier code). The final check digit should be validated prior to submission. On credit charges, this field should contain the number of the original ticket, and not of a replacement. | |
|
22
|
+
| **transaction_type** | **String** | This field contains the Transaction Type code assigned to this transaction. Valid codes include: - `TKT` = Ticket Purchase - `REF` = Refund - `EXC` = Exchange Ticket - `MSC` = Miscellaneous (non-Ticket Purchase- and non-Exchange Ticket-related transactions only). | |
|
23
23
|
|
24
|
-
##
|
24
|
+
## Example
|
25
25
|
|
26
26
|
```ruby
|
27
|
-
require '
|
27
|
+
require 'citypay_api_client'
|
28
28
|
|
29
|
-
instance = CityPayApiClient::AirlineAdvice.new(
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
29
|
+
instance = CityPayApiClient::AirlineAdvice.new(
|
30
|
+
carrier_name: EG Air,
|
31
|
+
conjunction_ticket_indicator: false,
|
32
|
+
eticket_indicator: true,
|
33
|
+
no_air_segments: 2,
|
34
|
+
number_in_party: 2,
|
35
|
+
original_ticket_no: null,
|
36
|
+
passenger_name: NE Person,
|
37
|
+
segment1: null,
|
38
|
+
segment2: null,
|
39
|
+
segment3: null,
|
40
|
+
segment4: null,
|
41
|
+
ticket_issue_city: London,
|
42
|
+
ticket_issue_date: Sat Aug 01 00:00:00 UTC 2020,
|
43
|
+
ticket_issue_name: Issue Name,
|
44
|
+
ticket_no: A112233,
|
45
|
+
transaction_type: TKT
|
46
|
+
)
|
45
47
|
```
|
46
48
|
|
47
|
-
|
data/docs/AirlineSegment.md
CHANGED
@@ -2,30 +2,31 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**arrival_location_code** | **String** | A standard airline routing code (airport code or location identifier) applicable to the arrival portion of this segment. |
|
8
|
-
**carrier_code** | **String** | This field contains the two character airline designator code (air carrier code or airline code) that corresponds to the airline carrier applicable for up to four flight segments of this trip itinerary. |
|
9
|
-
**class_service_code** | **String** | This field contains a code that corresponds to the fare class (A, B, C, D, Premium, Discounted, etc.) within the overall class of service (e.g., First Class, Business, Economy) applicable to this travel segment, as specified in the IATA Standard Code allocation table. |
|
10
|
-
**departure_date** | **Date** | The Departure Date for the travel segment in ISO Date Format (yyyy-MM-dd). |
|
11
|
-
**departure_location_code** | **String** | A standard airline routing code (airport code or location identifier) applicable to the departure portion of this segment. | [optional]
|
12
|
-
**flight_number** | **String** | This field contains the carrier-assigned Flight Number for this travel segment. |
|
13
|
-
**segment_fare** | **Integer** | This field contains the total Fare for this travel segment. | [optional]
|
14
|
-
**stop_over_indicator** | **String** | O = Stopover allowed, X = Stopover not allowed. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **arrival_location_code** | **String** | A standard airline routing code (airport code or location identifier) applicable to the arrival portion of this segment. | |
|
8
|
+
| **carrier_code** | **String** | This field contains the two character airline designator code (air carrier code or airline code) that corresponds to the airline carrier applicable for up to four flight segments of this trip itinerary. | |
|
9
|
+
| **class_service_code** | **String** | This field contains a code that corresponds to the fare class (A, B, C, D, Premium, Discounted, etc.) within the overall class of service (e.g., First Class, Business, Economy) applicable to this travel segment, as specified in the IATA Standard Code allocation table. | |
|
10
|
+
| **departure_date** | **Date** | The Departure Date for the travel segment in ISO Date Format (yyyy-MM-dd). | |
|
11
|
+
| **departure_location_code** | **String** | A standard airline routing code (airport code or location identifier) applicable to the departure portion of this segment. | [optional] |
|
12
|
+
| **flight_number** | **String** | This field contains the carrier-assigned Flight Number for this travel segment. | |
|
13
|
+
| **segment_fare** | **Integer** | This field contains the total Fare for this travel segment. | [optional] |
|
14
|
+
| **stop_over_indicator** | **String** | O = Stopover allowed, X = Stopover not allowed. | [optional] |
|
15
15
|
|
16
|
-
##
|
16
|
+
## Example
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
require '
|
19
|
+
require 'citypay_api_client'
|
20
20
|
|
21
|
-
instance = CityPayApiClient::AirlineSegment.new(
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
21
|
+
instance = CityPayApiClient::AirlineSegment.new(
|
22
|
+
arrival_location_code: SOU,
|
23
|
+
carrier_code: ZZ,
|
24
|
+
class_service_code: CC,
|
25
|
+
departure_date: Sat Aug 01 00:00:00 UTC 2020,
|
26
|
+
departure_location_code: JER,
|
27
|
+
flight_number: 772,
|
28
|
+
segment_fare: 7500,
|
29
|
+
stop_over_indicator: 1
|
30
|
+
)
|
29
31
|
```
|
30
32
|
|
31
|
-
|