citypay_api_client 1.0.2 → 1.1.1
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 +105 -34
- data/citypay_api_client.gemspec +4 -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 +50 -49
- data/docs/AuthResponse.md +60 -59
- data/docs/AuthenRequired.md +12 -11
- data/docs/AuthorisationAndPaymentApi.md +559 -0
- data/docs/Batch.md +22 -0
- data/docs/BatchProcessingApi.md +214 -0
- data/docs/BatchReportRequest.md +20 -0
- data/docs/BatchReportResponseModel.md +28 -0
- data/docs/BatchTransaction.md +24 -0
- data/docs/BatchTransactionResultModel.md +40 -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 +326 -105
- data/docs/CardStatus.md +10 -9
- data/docs/ChargeRequest.md +36 -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 +365 -0
- data/docs/DirectPostRequest.md +58 -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/OperationalApi.md +124 -22
- data/docs/OperationalFunctionsApi.md +355 -0
- data/docs/PaResAuthRequest.md +10 -9
- data/docs/PaylinkAddress.md +30 -0
- data/docs/PaylinkAdjustmentRequest.md +22 -0
- data/docs/PaylinkApi.md +630 -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 +36 -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 +38 -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/PaymentProcessingApi.md +307 -68
- 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/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 +59 -59
- data/lib/citypay_api_client/api_error.rb +2 -2
- data/lib/citypay_api_client/configuration.rb +53 -15
- data/lib/citypay_api_client/models/account_create.rb +21 -8
- data/lib/citypay_api_client/models/account_status.rb +21 -8
- data/lib/citypay_api_client/models/acknowledgement.rb +21 -8
- data/lib/citypay_api_client/models/acl_check_request.rb +224 -0
- data/lib/citypay_api_client/models/acl_check_response_model.rb +249 -0
- data/lib/citypay_api_client/models/airline_advice.rb +23 -10
- data/lib/citypay_api_client/models/airline_segment.rb +21 -8
- data/lib/citypay_api_client/models/api_key.rb +16 -0
- data/lib/citypay_api_client/models/auth_reference.rb +45 -11
- data/lib/citypay_api_client/models/auth_references.rb +21 -8
- data/lib/citypay_api_client/models/auth_request.rb +79 -33
- data/lib/citypay_api_client/models/auth_response.rb +43 -106
- data/lib/citypay_api_client/models/authen_required.rb +21 -8
- data/lib/citypay_api_client/models/batch.rb +264 -0
- data/lib/citypay_api_client/models/batch_report_request.rb +277 -0
- data/lib/citypay_api_client/models/batch_report_response_model.rb +357 -0
- data/lib/citypay_api_client/models/batch_transaction.rb +321 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +421 -0
- data/lib/citypay_api_client/models/bin.rb +299 -0
- data/lib/citypay_api_client/models/bin_lookup.rb +234 -0
- data/lib/citypay_api_client/models/c_res_auth_request.rb +21 -8
- data/lib/citypay_api_client/models/capture_request.rb +38 -20
- data/lib/citypay_api_client/models/card.rb +67 -10
- data/lib/citypay_api_client/models/card_holder_account.rb +35 -12
- data/lib/citypay_api_client/models/card_status.rb +21 -8
- data/lib/citypay_api_client/models/charge_request.rb +96 -24
- data/lib/citypay_api_client/models/check_batch_status.rb +259 -0
- data/lib/citypay_api_client/models/check_batch_status_response.rb +220 -0
- data/lib/citypay_api_client/models/contact_details.rb +87 -44
- data/lib/citypay_api_client/models/decision.rb +21 -8
- data/lib/citypay_api_client/models/direct_post_request.rb +670 -0
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_check_request.rb +252 -0
- data/lib/citypay_api_client/models/domain_key_request.rb +250 -0
- data/lib/citypay_api_client/models/domain_key_response.rb +294 -0
- data/lib/citypay_api_client/models/error.rb +35 -12
- data/lib/citypay_api_client/models/event_data_model.rb +259 -0
- data/lib/citypay_api_client/models/exists.rb +244 -0
- data/lib/citypay_api_client/models/external_mpi.rb +27 -8
- data/lib/citypay_api_client/models/list_merchants_response.rb +21 -8
- data/lib/citypay_api_client/models/mcc6012.rb +21 -8
- data/lib/citypay_api_client/models/merchant.rb +21 -8
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +22 -9
- data/lib/citypay_api_client/models/paylink_address.rb +402 -0
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +249 -0
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +292 -0
- data/lib/citypay_api_client/models/paylink_card_holder.rb +353 -0
- data/lib/citypay_api_client/models/paylink_cart.rb +280 -0
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +289 -0
- data/lib/citypay_api_client/models/paylink_config.rb +433 -0
- data/lib/citypay_api_client/models/paylink_custom_param.rb +314 -0
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +268 -0
- data/lib/citypay_api_client/models/paylink_error_code.rb +239 -0
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +279 -0
- data/lib/citypay_api_client/models/paylink_part_payments.rb +269 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +234 -0
- data/lib/citypay_api_client/models/paylink_state_event.rb +239 -0
- data/lib/citypay_api_client/models/paylink_token_created.rb +364 -0
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +374 -0
- data/lib/citypay_api_client/models/paylink_token_status.rb +490 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +270 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +235 -0
- data/lib/citypay_api_client/models/paylink_ui.rb +249 -0
- data/lib/citypay_api_client/models/ping.rb +21 -8
- data/lib/citypay_api_client/models/process_batch_request.rb +308 -0
- data/lib/citypay_api_client/models/process_batch_response.rb +234 -0
- data/lib/citypay_api_client/models/refund_request.rb +332 -0
- data/lib/citypay_api_client/models/register_card.rb +59 -12
- data/lib/citypay_api_client/models/request_challenged.rb +29 -16
- data/lib/citypay_api_client/models/retrieve_request.rb +21 -8
- data/lib/citypay_api_client/models/three_d_secure.rb +106 -13
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +333 -0
- data/lib/citypay_api_client/models/void_request.rb +22 -19
- 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 -3
- 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 +222 -0
- data/spec/models/acknowledgement_spec.rb +6 -8
- data/spec/models/acl_check_request_spec.rb +33 -0
- data/spec/models/acl_check_response_model_spec.rb +51 -0
- data/spec/models/auth_references_spec.rb +7 -8
- data/spec/models/auth_response_spec.rb +29 -30
- data/spec/models/batch_report_request_spec.rb +39 -0
- data/spec/models/batch_report_response_model_spec.rb +63 -0
- data/spec/models/batch_spec.rb +45 -0
- data/spec/models/batch_transaction_result_model_spec.rb +87 -0
- data/spec/models/batch_transaction_spec.rb +51 -0
- data/spec/models/bin_lookup_spec.rb +33 -0
- data/spec/models/bin_spec.rb +81 -0
- data/spec/models/card_holder_account_spec.rb +8 -5
- 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 +153 -0
- data/spec/models/direct_token_auth_request_spec.rb +51 -0
- data/spec/models/domain_key_check_request_spec.rb +33 -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 +93 -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 +51 -0
- data/spec/models/process_batch_response_spec.rb +39 -0
- data/spec/models/refund_request_spec.rb +64 -0
- 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 +212 -37
- data/Gemfile.lock +0 -70
- 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,333 @@
|
|
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: 6.2.1
|
9
|
+
|
10
|
+
=end
|
11
|
+
|
12
|
+
require 'date'
|
13
|
+
require 'time'
|
14
|
+
|
15
|
+
module CityPayApiClient
|
16
|
+
class TokenisationResponseModel
|
17
|
+
# The result of any authentication using 3d_secure authorisation against ecommerce transactions. Values are: <table> <tr> <th>Value</th> <th>Description</th> </tr> <tr> <td>Y</td> <td>Authentication Successful. The Cardholder's password was successfully validated.</td> </tr> <tr> <td>N</td> <td>Authentication Failed. Customer failed or cancelled authentication, transaction denied.</td> </tr> <tr> <td>A</td> <td>Attempts Processing Performed Authentication could not be completed but a proof of authentication attempt (CAVV) was generated.</td> </tr> <tr> <td>U</td> <td>Authentication Could Not Be Performed Authentication could not be completed, due to technical or other problem.</td> </tr> </table>
|
18
|
+
attr_accessor :authen_result
|
19
|
+
|
20
|
+
# Determines whether the bin range was found to be a commercial or business card.
|
21
|
+
attr_accessor :bin_commercial
|
22
|
+
|
23
|
+
# Determines whether the bin range was found to be a debit card. If false the card was considered as a credit card.
|
24
|
+
attr_accessor :bin_debit
|
25
|
+
|
26
|
+
# A description of the bin range found for the card.
|
27
|
+
attr_accessor :bin_description
|
28
|
+
|
29
|
+
# An Electronic Commerce Indicator (ECI) used to identify the result of authentication using 3DSecure.
|
30
|
+
attr_accessor :eci
|
31
|
+
|
32
|
+
# The identifier provided within the request.
|
33
|
+
attr_accessor :identifier
|
34
|
+
|
35
|
+
# A masked value of the card number used for processing displaying limited values that can be used on a receipt.
|
36
|
+
attr_accessor :maskedpan
|
37
|
+
|
38
|
+
# A name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard.
|
39
|
+
attr_accessor :scheme
|
40
|
+
|
41
|
+
# A Base58 encoded SHA-256 digest generated from the token value Base58 decoded and appended with the nonce value UTF-8 decoded.
|
42
|
+
attr_accessor :sig_id
|
43
|
+
|
44
|
+
# The token used for presentment to authorisation later in the procsesing flow.
|
45
|
+
attr_accessor :token
|
46
|
+
|
47
|
+
# Attribute mapping from ruby-style variable name to JSON key.
|
48
|
+
def self.attribute_map
|
49
|
+
{
|
50
|
+
:'authen_result' => :'authen_result',
|
51
|
+
:'bin_commercial' => :'bin_commercial',
|
52
|
+
:'bin_debit' => :'bin_debit',
|
53
|
+
:'bin_description' => :'bin_description',
|
54
|
+
:'eci' => :'eci',
|
55
|
+
:'identifier' => :'identifier',
|
56
|
+
:'maskedpan' => :'maskedpan',
|
57
|
+
:'scheme' => :'scheme',
|
58
|
+
:'sig_id' => :'sig_id',
|
59
|
+
:'token' => :'token'
|
60
|
+
}
|
61
|
+
end
|
62
|
+
|
63
|
+
# Returns all the JSON keys this model knows about
|
64
|
+
def self.acceptable_attributes
|
65
|
+
attribute_map.values
|
66
|
+
end
|
67
|
+
|
68
|
+
# Attribute type mapping.
|
69
|
+
def self.openapi_types
|
70
|
+
{
|
71
|
+
:'authen_result' => :'String',
|
72
|
+
:'bin_commercial' => :'Boolean',
|
73
|
+
:'bin_debit' => :'Boolean',
|
74
|
+
:'bin_description' => :'String',
|
75
|
+
:'eci' => :'String',
|
76
|
+
:'identifier' => :'String',
|
77
|
+
:'maskedpan' => :'String',
|
78
|
+
:'scheme' => :'String',
|
79
|
+
:'sig_id' => :'String',
|
80
|
+
:'token' => :'String'
|
81
|
+
}
|
82
|
+
end
|
83
|
+
|
84
|
+
# List of attributes with nullable: true
|
85
|
+
def self.openapi_nullable
|
86
|
+
Set.new([
|
87
|
+
])
|
88
|
+
end
|
89
|
+
|
90
|
+
# Initializes the object
|
91
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
92
|
+
def initialize(attributes = {})
|
93
|
+
if (!attributes.is_a?(Hash))
|
94
|
+
fail ArgumentError, "The input argument (attributes) must be a hash in `CityPayApiClient::TokenisationResponseModel` initialize method"
|
95
|
+
end
|
96
|
+
|
97
|
+
# check to see if the attribute exists and convert string to symbol for hash key
|
98
|
+
attributes = attributes.each_with_object({}) { |(k, v), h|
|
99
|
+
if (!self.class.attribute_map.key?(k.to_sym))
|
100
|
+
fail ArgumentError, "`#{k}` is not a valid attribute in `CityPayApiClient::TokenisationResponseModel`. Please check the name to make sure it's valid. List of attributes: " + self.class.attribute_map.keys.inspect
|
101
|
+
end
|
102
|
+
h[k.to_sym] = v
|
103
|
+
}
|
104
|
+
|
105
|
+
if attributes.key?(:'authen_result')
|
106
|
+
self.authen_result = attributes[:'authen_result']
|
107
|
+
end
|
108
|
+
|
109
|
+
if attributes.key?(:'bin_commercial')
|
110
|
+
self.bin_commercial = attributes[:'bin_commercial']
|
111
|
+
end
|
112
|
+
|
113
|
+
if attributes.key?(:'bin_debit')
|
114
|
+
self.bin_debit = attributes[:'bin_debit']
|
115
|
+
end
|
116
|
+
|
117
|
+
if attributes.key?(:'bin_description')
|
118
|
+
self.bin_description = attributes[:'bin_description']
|
119
|
+
end
|
120
|
+
|
121
|
+
if attributes.key?(:'eci')
|
122
|
+
self.eci = attributes[:'eci']
|
123
|
+
end
|
124
|
+
|
125
|
+
if attributes.key?(:'identifier')
|
126
|
+
self.identifier = attributes[:'identifier']
|
127
|
+
end
|
128
|
+
|
129
|
+
if attributes.key?(:'maskedpan')
|
130
|
+
self.maskedpan = attributes[:'maskedpan']
|
131
|
+
end
|
132
|
+
|
133
|
+
if attributes.key?(:'scheme')
|
134
|
+
self.scheme = attributes[:'scheme']
|
135
|
+
end
|
136
|
+
|
137
|
+
if attributes.key?(:'sig_id')
|
138
|
+
self.sig_id = attributes[:'sig_id']
|
139
|
+
end
|
140
|
+
|
141
|
+
if attributes.key?(:'token')
|
142
|
+
self.token = attributes[:'token']
|
143
|
+
end
|
144
|
+
end
|
145
|
+
|
146
|
+
# Show invalid properties with the reasons. Usually used together with valid?
|
147
|
+
# @return Array for valid properties with the reasons
|
148
|
+
def list_invalid_properties
|
149
|
+
invalid_properties = Array.new
|
150
|
+
if !@identifier.nil? && @identifier.to_s.length > 50
|
151
|
+
invalid_properties.push('invalid value for "identifier", the character length must be smaller than or equal to 50.')
|
152
|
+
end
|
153
|
+
|
154
|
+
if !@identifier.nil? && @identifier.to_s.length < 4
|
155
|
+
invalid_properties.push('invalid value for "identifier", the character length must be great than or equal to 4.')
|
156
|
+
end
|
157
|
+
|
158
|
+
invalid_properties
|
159
|
+
end
|
160
|
+
|
161
|
+
# Check to see if the all the properties in the model are valid
|
162
|
+
# @return true if the model is valid
|
163
|
+
def valid?
|
164
|
+
return false if !@identifier.nil? && @identifier.to_s.length > 50
|
165
|
+
return false if !@identifier.nil? && @identifier.to_s.length < 4
|
166
|
+
true
|
167
|
+
end
|
168
|
+
|
169
|
+
# Custom attribute writer method with validation
|
170
|
+
# @param [Object] identifier Value to be assigned
|
171
|
+
def identifier=(identifier)
|
172
|
+
if !identifier.nil? && identifier.to_s.length > 50
|
173
|
+
fail ArgumentError, 'invalid value for "identifier", the character length must be smaller than or equal to 50.'
|
174
|
+
end
|
175
|
+
|
176
|
+
if !identifier.nil? && identifier.to_s.length < 4
|
177
|
+
fail ArgumentError, 'invalid value for "identifier", the character length must be great than or equal to 4.'
|
178
|
+
end
|
179
|
+
|
180
|
+
@identifier = identifier
|
181
|
+
end
|
182
|
+
|
183
|
+
# Checks equality by comparing each attribute.
|
184
|
+
# @param [Object] Object to be compared
|
185
|
+
def ==(o)
|
186
|
+
return true if self.equal?(o)
|
187
|
+
self.class == o.class &&
|
188
|
+
authen_result == o.authen_result &&
|
189
|
+
bin_commercial == o.bin_commercial &&
|
190
|
+
bin_debit == o.bin_debit &&
|
191
|
+
bin_description == o.bin_description &&
|
192
|
+
eci == o.eci &&
|
193
|
+
identifier == o.identifier &&
|
194
|
+
maskedpan == o.maskedpan &&
|
195
|
+
scheme == o.scheme &&
|
196
|
+
sig_id == o.sig_id &&
|
197
|
+
token == o.token
|
198
|
+
end
|
199
|
+
|
200
|
+
# @see the `==` method
|
201
|
+
# @param [Object] Object to be compared
|
202
|
+
def eql?(o)
|
203
|
+
self == o
|
204
|
+
end
|
205
|
+
|
206
|
+
# Calculates hash code according to all attributes.
|
207
|
+
# @return [Integer] Hash code
|
208
|
+
def hash
|
209
|
+
[authen_result, bin_commercial, bin_debit, bin_description, eci, identifier, maskedpan, scheme, sig_id, token].hash
|
210
|
+
end
|
211
|
+
|
212
|
+
# Builds the object from hash
|
213
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
214
|
+
# @return [Object] Returns the model itself
|
215
|
+
def self.build_from_hash(attributes)
|
216
|
+
new.build_from_hash(attributes)
|
217
|
+
end
|
218
|
+
|
219
|
+
# Builds the object from hash
|
220
|
+
# @param [Hash] attributes Model attributes in the form of hash
|
221
|
+
# @return [Object] Returns the model itself
|
222
|
+
def build_from_hash(attributes)
|
223
|
+
return nil unless attributes.is_a?(Hash)
|
224
|
+
attributes = attributes.transform_keys(&:to_sym)
|
225
|
+
self.class.openapi_types.each_pair do |key, type|
|
226
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
227
|
+
self.send("#{key}=", nil)
|
228
|
+
elsif type =~ /\AArray<(.*)>/i
|
229
|
+
# check to ensure the input is an array given that the attribute
|
230
|
+
# is documented as an array but the input is not
|
231
|
+
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
232
|
+
self.send("#{key}=", attributes[self.class.attribute_map[key]].map { |v| _deserialize($1, v) })
|
233
|
+
end
|
234
|
+
elsif !attributes[self.class.attribute_map[key]].nil?
|
235
|
+
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
236
|
+
end
|
237
|
+
end
|
238
|
+
|
239
|
+
self
|
240
|
+
end
|
241
|
+
|
242
|
+
# Deserializes the data based on type
|
243
|
+
# @param string type Data type
|
244
|
+
# @param string value Value to be deserialized
|
245
|
+
# @return [Object] Deserialized data
|
246
|
+
def _deserialize(type, value)
|
247
|
+
case type.to_sym
|
248
|
+
when :Time
|
249
|
+
Time.parse(value)
|
250
|
+
when :Date
|
251
|
+
Date.parse(value)
|
252
|
+
when :String
|
253
|
+
value.to_s
|
254
|
+
when :Integer
|
255
|
+
value.to_i
|
256
|
+
when :Float
|
257
|
+
value.to_f
|
258
|
+
when :Boolean
|
259
|
+
if value.to_s =~ /\A(true|t|yes|y|1)\z/i
|
260
|
+
true
|
261
|
+
else
|
262
|
+
false
|
263
|
+
end
|
264
|
+
when :Object
|
265
|
+
# generic object (usually a Hash), return directly
|
266
|
+
value
|
267
|
+
when /\AArray<(?<inner_type>.+)>\z/
|
268
|
+
inner_type = Regexp.last_match[:inner_type]
|
269
|
+
value.map { |v| _deserialize(inner_type, v) }
|
270
|
+
when /\AHash<(?<k_type>.+?), (?<v_type>.+)>\z/
|
271
|
+
k_type = Regexp.last_match[:k_type]
|
272
|
+
v_type = Regexp.last_match[:v_type]
|
273
|
+
{}.tap do |hash|
|
274
|
+
value.each do |k, v|
|
275
|
+
hash[_deserialize(k_type, k)] = _deserialize(v_type, v)
|
276
|
+
end
|
277
|
+
end
|
278
|
+
else # model
|
279
|
+
# models (e.g. Pet) or oneOf
|
280
|
+
klass = CityPayApiClient.const_get(type)
|
281
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
282
|
+
end
|
283
|
+
end
|
284
|
+
|
285
|
+
# Returns the string representation of the object
|
286
|
+
# @return [String] String presentation of the object
|
287
|
+
def to_s
|
288
|
+
to_hash.to_s
|
289
|
+
end
|
290
|
+
|
291
|
+
# to_body is an alias to to_hash (backward compatibility)
|
292
|
+
# @return [Hash] Returns the object in the form of hash
|
293
|
+
def to_body
|
294
|
+
to_hash
|
295
|
+
end
|
296
|
+
|
297
|
+
# Returns the object in the form of hash
|
298
|
+
# @return [Hash] Returns the object in the form of hash
|
299
|
+
def to_hash
|
300
|
+
hash = {}
|
301
|
+
self.class.attribute_map.each_pair do |attr, param|
|
302
|
+
value = self.send(attr)
|
303
|
+
if value.nil?
|
304
|
+
is_nullable = self.class.openapi_nullable.include?(attr)
|
305
|
+
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
306
|
+
end
|
307
|
+
|
308
|
+
hash[param] = _to_hash(value)
|
309
|
+
end
|
310
|
+
hash
|
311
|
+
end
|
312
|
+
|
313
|
+
# Outputs non-array value in the form of hash
|
314
|
+
# For object, use to_hash. Otherwise, just return the value
|
315
|
+
# @param [Object] value Any valid value
|
316
|
+
# @return [Hash] Returns the value in the form of hash
|
317
|
+
def _to_hash(value)
|
318
|
+
if value.is_a?(Array)
|
319
|
+
value.compact.map { |v| _to_hash(v) }
|
320
|
+
elsif value.is_a?(Hash)
|
321
|
+
{}.tap do |hash|
|
322
|
+
value.each { |k, v| hash[k] = _to_hash(v) }
|
323
|
+
end
|
324
|
+
elsif value.respond_to? :to_hash
|
325
|
+
value.to_hash
|
326
|
+
else
|
327
|
+
value
|
328
|
+
end
|
329
|
+
end
|
330
|
+
|
331
|
+
end
|
332
|
+
|
333
|
+
end
|
@@ -1,15 +1,16 @@
|
|
1
1
|
=begin
|
2
2
|
#CityPay Payment API
|
3
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
|
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
5
|
|
6
6
|
Contact: support@citypay.com
|
7
7
|
Generated by: https://openapi-generator.tech
|
8
|
-
OpenAPI Generator version:
|
8
|
+
OpenAPI Generator version: 6.2.1
|
9
9
|
|
10
10
|
=end
|
11
11
|
|
12
12
|
require 'date'
|
13
|
+
require 'time'
|
13
14
|
|
14
15
|
module CityPayApiClient
|
15
16
|
class VoidRequest
|
@@ -19,9 +20,6 @@ module CityPayApiClient
|
|
19
20
|
# Identifies the merchant account to perform the void for.
|
20
21
|
attr_accessor :merchantid
|
21
22
|
|
22
|
-
# An optional reference value for the calling client such as a version number i.e.
|
23
|
-
attr_accessor :sdk
|
24
|
-
|
25
23
|
# The transaction number of the transaction to look up and void. If an empty value is supplied then an identifier value must be supplied.
|
26
24
|
attr_accessor :transno
|
27
25
|
|
@@ -30,17 +28,20 @@ module CityPayApiClient
|
|
30
28
|
{
|
31
29
|
:'identifier' => :'identifier',
|
32
30
|
:'merchantid' => :'merchantid',
|
33
|
-
:'sdk' => :'sdk',
|
34
31
|
:'transno' => :'transno'
|
35
32
|
}
|
36
33
|
end
|
37
34
|
|
35
|
+
# Returns all the JSON keys this model knows about
|
36
|
+
def self.acceptable_attributes
|
37
|
+
attribute_map.values
|
38
|
+
end
|
39
|
+
|
38
40
|
# Attribute type mapping.
|
39
41
|
def self.openapi_types
|
40
42
|
{
|
41
43
|
:'identifier' => :'String',
|
42
44
|
:'merchantid' => :'Integer',
|
43
|
-
:'sdk' => :'String',
|
44
45
|
:'transno' => :'Integer'
|
45
46
|
}
|
46
47
|
end
|
@@ -74,10 +75,6 @@ module CityPayApiClient
|
|
74
75
|
self.merchantid = attributes[:'merchantid']
|
75
76
|
end
|
76
77
|
|
77
|
-
if attributes.key?(:'sdk')
|
78
|
-
self.sdk = attributes[:'sdk']
|
79
|
-
end
|
80
|
-
|
81
78
|
if attributes.key?(:'transno')
|
82
79
|
self.transno = attributes[:'transno']
|
83
80
|
end
|
@@ -132,7 +129,6 @@ module CityPayApiClient
|
|
132
129
|
self.class == o.class &&
|
133
130
|
identifier == o.identifier &&
|
134
131
|
merchantid == o.merchantid &&
|
135
|
-
sdk == o.sdk &&
|
136
132
|
transno == o.transno
|
137
133
|
end
|
138
134
|
|
@@ -145,7 +141,7 @@ module CityPayApiClient
|
|
145
141
|
# Calculates hash code according to all attributes.
|
146
142
|
# @return [Integer] Hash code
|
147
143
|
def hash
|
148
|
-
[identifier, merchantid,
|
144
|
+
[identifier, merchantid, transno].hash
|
149
145
|
end
|
150
146
|
|
151
147
|
# Builds the object from hash
|
@@ -160,8 +156,11 @@ module CityPayApiClient
|
|
160
156
|
# @return [Object] Returns the model itself
|
161
157
|
def build_from_hash(attributes)
|
162
158
|
return nil unless attributes.is_a?(Hash)
|
159
|
+
attributes = attributes.transform_keys(&:to_sym)
|
163
160
|
self.class.openapi_types.each_pair do |key, type|
|
164
|
-
if
|
161
|
+
if attributes[self.class.attribute_map[key]].nil? && self.class.openapi_nullable.include?(key)
|
162
|
+
self.send("#{key}=", nil)
|
163
|
+
elsif type =~ /\AArray<(.*)>/i
|
165
164
|
# check to ensure the input is an array given that the attribute
|
166
165
|
# is documented as an array but the input is not
|
167
166
|
if attributes[self.class.attribute_map[key]].is_a?(Array)
|
@@ -169,7 +168,7 @@ module CityPayApiClient
|
|
169
168
|
end
|
170
169
|
elsif !attributes[self.class.attribute_map[key]].nil?
|
171
170
|
self.send("#{key}=", _deserialize(type, attributes[self.class.attribute_map[key]]))
|
172
|
-
end
|
171
|
+
end
|
173
172
|
end
|
174
173
|
|
175
174
|
self
|
@@ -181,8 +180,8 @@ module CityPayApiClient
|
|
181
180
|
# @return [Object] Deserialized data
|
182
181
|
def _deserialize(type, value)
|
183
182
|
case type.to_sym
|
184
|
-
when :
|
185
|
-
|
183
|
+
when :Time
|
184
|
+
Time.parse(value)
|
186
185
|
when :Date
|
187
186
|
Date.parse(value)
|
188
187
|
when :String
|
@@ -212,7 +211,9 @@ module CityPayApiClient
|
|
212
211
|
end
|
213
212
|
end
|
214
213
|
else # model
|
215
|
-
|
214
|
+
# models (e.g. Pet) or oneOf
|
215
|
+
klass = CityPayApiClient.const_get(type)
|
216
|
+
klass.respond_to?(:openapi_one_of) ? klass.build(value) : klass.build_from_hash(value)
|
216
217
|
end
|
217
218
|
end
|
218
219
|
|
@@ -238,7 +239,7 @@ module CityPayApiClient
|
|
238
239
|
is_nullable = self.class.openapi_nullable.include?(attr)
|
239
240
|
next if !is_nullable || (is_nullable && !instance_variable_defined?(:"@#{attr}"))
|
240
241
|
end
|
241
|
-
|
242
|
+
|
242
243
|
hash[param] = _to_hash(value)
|
243
244
|
end
|
244
245
|
hash
|
@@ -261,5 +262,7 @@ module CityPayApiClient
|
|
261
262
|
value
|
262
263
|
end
|
263
264
|
end
|
265
|
+
|
264
266
|
end
|
267
|
+
|
265
268
|
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'digest'
|
2
|
+
|
3
|
+
module DigestUtils
|
4
|
+
class << self
|
5
|
+
def validate_digest(auth_response, licence_key)
|
6
|
+
|
7
|
+
string_to_convert = auth_response.authcode +
|
8
|
+
auth_response.amount.to_s +
|
9
|
+
auth_response.result_code +
|
10
|
+
auth_response.merchantid.to_s +
|
11
|
+
auth_response.transno.to_s +
|
12
|
+
auth_response.identifier +
|
13
|
+
licence_key
|
14
|
+
|
15
|
+
auth_response.sha256 == Digest::SHA256.base64digest(string_to_convert)
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'openssl'
|
2
|
+
|
3
|
+
module DirectPostMac
|
4
|
+
class << self
|
5
|
+
|
6
|
+
def validate(licence_key, nonce, amount, identifier, mac_to_validate)
|
7
|
+
mac = create(licence_key, nonce, amount, identifier)
|
8
|
+
mac === mac_to_validate
|
9
|
+
end
|
10
|
+
|
11
|
+
def create(licence_key, nonce, amount, identifier)
|
12
|
+
nonce_s = nonce.pack('c*').upcase
|
13
|
+
|
14
|
+
value = []
|
15
|
+
value.push(*nonce_s.bytes)
|
16
|
+
value.push(*amount.bytes)
|
17
|
+
value.push(*identifier.bytes)
|
18
|
+
|
19
|
+
OpenSSL::HMAC.hexdigest('sha256', licence_key, value.pack("c*")).upcase
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -1,14 +1,14 @@
|
|
1
1
|
=begin
|
2
2
|
#CityPay Payment API
|
3
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
|
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
5
|
|
6
6
|
Contact: support@citypay.com
|
7
7
|
Generated by: https://openapi-generator.tech
|
8
|
-
OpenAPI Generator version:
|
8
|
+
OpenAPI Generator version: 6.2.1
|
9
9
|
|
10
10
|
=end
|
11
11
|
|
12
12
|
module CityPayApiClient
|
13
|
-
VERSION = '1.
|
13
|
+
VERSION = '1.1.1'
|
14
14
|
end
|
data/lib/citypay_api_client.rb
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
=begin
|
2
2
|
#CityPay Payment API
|
3
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
|
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
5
|
|
6
6
|
Contact: support@citypay.com
|
7
7
|
Generated by: https://openapi-generator.tech
|
8
|
-
OpenAPI Generator version:
|
8
|
+
OpenAPI Generator version: 6.2.1
|
9
9
|
|
10
10
|
=end
|
11
11
|
|
@@ -19,39 +19,86 @@ require 'citypay_api_client/configuration'
|
|
19
19
|
require 'citypay_api_client/models/account_create'
|
20
20
|
require 'citypay_api_client/models/account_status'
|
21
21
|
require 'citypay_api_client/models/acknowledgement'
|
22
|
+
require 'citypay_api_client/models/acl_check_request'
|
23
|
+
require 'citypay_api_client/models/acl_check_response_model'
|
22
24
|
require 'citypay_api_client/models/airline_advice'
|
25
|
+
require "citypay_api_client/models/api_key"
|
23
26
|
require 'citypay_api_client/models/airline_segment'
|
24
27
|
require 'citypay_api_client/models/auth_reference'
|
25
|
-
require "citypay_api_client/models/api_key"
|
26
28
|
require 'citypay_api_client/models/auth_references'
|
27
29
|
require 'citypay_api_client/models/auth_request'
|
28
30
|
require 'citypay_api_client/models/auth_response'
|
29
31
|
require 'citypay_api_client/models/authen_required'
|
32
|
+
require 'citypay_api_client/models/batch'
|
33
|
+
require 'citypay_api_client/models/batch_report_request'
|
34
|
+
require 'citypay_api_client/models/batch_report_response_model'
|
35
|
+
require 'citypay_api_client/models/batch_transaction'
|
36
|
+
require 'citypay_api_client/models/batch_transaction_result_model'
|
37
|
+
require 'citypay_api_client/models/bin'
|
38
|
+
require 'citypay_api_client/models/bin_lookup'
|
30
39
|
require 'citypay_api_client/models/c_res_auth_request'
|
31
40
|
require 'citypay_api_client/models/capture_request'
|
32
41
|
require 'citypay_api_client/models/card'
|
33
42
|
require 'citypay_api_client/models/card_holder_account'
|
34
43
|
require 'citypay_api_client/models/card_status'
|
35
44
|
require 'citypay_api_client/models/charge_request'
|
45
|
+
require 'citypay_api_client/models/check_batch_status'
|
46
|
+
require 'citypay_api_client/models/check_batch_status_response'
|
36
47
|
require 'citypay_api_client/models/contact_details'
|
37
48
|
require 'citypay_api_client/models/decision'
|
49
|
+
require 'citypay_api_client/models/direct_post_request'
|
50
|
+
require 'citypay_api_client/models/direct_token_auth_request'
|
51
|
+
require 'citypay_api_client/models/domain_key_check_request'
|
52
|
+
require 'citypay_api_client/models/domain_key_request'
|
53
|
+
require 'citypay_api_client/models/domain_key_response'
|
38
54
|
require 'citypay_api_client/models/error'
|
55
|
+
require 'citypay_api_client/models/event_data_model'
|
56
|
+
require 'citypay_api_client/models/exists'
|
39
57
|
require 'citypay_api_client/models/external_mpi'
|
40
58
|
require 'citypay_api_client/models/list_merchants_response'
|
41
59
|
require 'citypay_api_client/models/mcc6012'
|
42
60
|
require 'citypay_api_client/models/merchant'
|
43
61
|
require 'citypay_api_client/models/pa_res_auth_request'
|
62
|
+
require 'citypay_api_client/models/paylink_address'
|
63
|
+
require 'citypay_api_client/models/paylink_adjustment_request'
|
64
|
+
require 'citypay_api_client/models/paylink_attachment_request'
|
65
|
+
require 'citypay_api_client/models/paylink_attachment_result'
|
66
|
+
require 'citypay_api_client/models/paylink_bill_payment_token_request'
|
67
|
+
require 'citypay_api_client/models/paylink_card_holder'
|
68
|
+
require 'citypay_api_client/models/paylink_cart'
|
69
|
+
require 'citypay_api_client/models/paylink_cart_item_model'
|
70
|
+
require 'citypay_api_client/models/paylink_config'
|
71
|
+
require 'citypay_api_client/models/paylink_custom_param'
|
72
|
+
require 'citypay_api_client/models/paylink_email_notification_path'
|
73
|
+
require 'citypay_api_client/models/paylink_error_code'
|
74
|
+
require 'citypay_api_client/models/paylink_field_guard_model'
|
75
|
+
require 'citypay_api_client/models/paylink_part_payments'
|
76
|
+
require 'citypay_api_client/models/paylink_sms_notification_path'
|
77
|
+
require 'citypay_api_client/models/paylink_state_event'
|
78
|
+
require 'citypay_api_client/models/paylink_token_created'
|
79
|
+
require 'citypay_api_client/models/paylink_token_request_model'
|
80
|
+
require 'citypay_api_client/models/paylink_token_status'
|
81
|
+
require 'citypay_api_client/models/paylink_token_status_change_request'
|
82
|
+
require 'citypay_api_client/models/paylink_token_status_change_response'
|
83
|
+
require 'citypay_api_client/models/paylink_ui'
|
44
84
|
require 'citypay_api_client/models/ping'
|
85
|
+
require 'citypay_api_client/models/process_batch_request'
|
86
|
+
require 'citypay_api_client/models/process_batch_response'
|
87
|
+
require 'citypay_api_client/models/refund_request'
|
45
88
|
require 'citypay_api_client/models/register_card'
|
46
89
|
require 'citypay_api_client/models/request_challenged'
|
47
90
|
require 'citypay_api_client/models/retrieve_request'
|
48
91
|
require 'citypay_api_client/models/three_d_secure'
|
92
|
+
require 'citypay_api_client/models/tokenisation_response_model'
|
49
93
|
require 'citypay_api_client/models/void_request'
|
50
94
|
|
51
95
|
# APIs
|
52
|
-
require 'citypay_api_client/api/
|
53
|
-
require 'citypay_api_client/api/
|
54
|
-
require 'citypay_api_client/api/
|
96
|
+
require 'citypay_api_client/api/authorisation_and_payment_api__'
|
97
|
+
require 'citypay_api_client/api/batch_processing_api__'
|
98
|
+
require 'citypay_api_client/api/card_holder_account_api__'
|
99
|
+
require 'citypay_api_client/api/direct_post_api__'
|
100
|
+
require 'citypay_api_client/api/operational_functions_api__'
|
101
|
+
require 'citypay_api_client/api/paylink_api__'
|
55
102
|
|
56
103
|
module CityPayApiClient
|
57
104
|
class << self
|
data/spec/.DS_Store
ADDED
Binary file
|