citypay_api_client 1.0.0

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.
Files changed (115) hide show
  1. checksums.yaml +7 -0
  2. data/Gemfile +9 -0
  3. data/README.md +176 -0
  4. data/Rakefile +10 -0
  5. data/citypay_api_client.gemspec +39 -0
  6. data/docs/AccountCreate.md +19 -0
  7. data/docs/AccountStatus.md +17 -0
  8. data/docs/Acknowledgement.md +23 -0
  9. data/docs/AirlineAdvice.md +47 -0
  10. data/docs/AirlineSegment.md +31 -0
  11. data/docs/AuthReference.md +43 -0
  12. data/docs/AuthReferences.md +17 -0
  13. data/docs/AuthRequest.md +59 -0
  14. data/docs/AuthResponse.md +69 -0
  15. data/docs/AuthenRequired.md +21 -0
  16. data/docs/CResAuthRequest.md +17 -0
  17. data/docs/CaptureRequest.md +27 -0
  18. data/docs/Card.md +51 -0
  19. data/docs/CardHolderAccount.md +31 -0
  20. data/docs/CardHolderAccountApi.md +515 -0
  21. data/docs/CardStatus.md +19 -0
  22. data/docs/ChargeRequest.md +41 -0
  23. data/docs/ContactDetails.md +41 -0
  24. data/docs/Decision.md +21 -0
  25. data/docs/Error.md +23 -0
  26. data/docs/ExternalMPI.md +25 -0
  27. data/docs/ListMerchantsResponse.md +21 -0
  28. data/docs/MCC6012.md +23 -0
  29. data/docs/Merchant.md +25 -0
  30. data/docs/OperationalApi.md +118 -0
  31. data/docs/PaResAuthRequest.md +19 -0
  32. data/docs/PaymentProcessingApi.md +338 -0
  33. data/docs/Ping.md +17 -0
  34. data/docs/RegisterCard.md +23 -0
  35. data/docs/RequestChallenged.md +25 -0
  36. data/docs/RetrieveRequest.md +21 -0
  37. data/docs/ThreeDSecure.md +25 -0
  38. data/docs/VoidRequest.md +23 -0
  39. data/git_push.sh +58 -0
  40. data/lib/citypay_api_client.rb +72 -0
  41. data/lib/citypay_api_client/api/card_holder_account_api.rb +628 -0
  42. data/lib/citypay_api_client/api/operational_api.rb +148 -0
  43. data/lib/citypay_api_client/api/payment_processing_api.rb +406 -0
  44. data/lib/citypay_api_client/api_client.rb +388 -0
  45. data/lib/citypay_api_client/api_error.rb +57 -0
  46. data/lib/citypay_api_client/configuration.rb +252 -0
  47. data/lib/citypay_api_client/models/account_create.rb +249 -0
  48. data/lib/citypay_api_client/models/account_status.rb +207 -0
  49. data/lib/citypay_api_client/models/acknowledgement.rb +285 -0
  50. data/lib/citypay_api_client/models/airline_advice.rb +551 -0
  51. data/lib/citypay_api_client/models/airline_segment.rb +408 -0
  52. data/lib/citypay_api_client/models/api_key.rb +53 -0
  53. data/lib/citypay_api_client/models/auth_reference.rb +400 -0
  54. data/lib/citypay_api_client/models/auth_references.rb +208 -0
  55. data/lib/citypay_api_client/models/auth_request.rb +631 -0
  56. data/lib/citypay_api_client/models/auth_response.rb +563 -0
  57. data/lib/citypay_api_client/models/authen_required.rb +227 -0
  58. data/lib/citypay_api_client/models/c_res_auth_request.rb +207 -0
  59. data/lib/citypay_api_client/models/capture_request.rb +285 -0
  60. data/lib/citypay_api_client/models/card.rb +425 -0
  61. data/lib/citypay_api_client/models/card_holder_account.rb +315 -0
  62. data/lib/citypay_api_client/models/card_status.rb +217 -0
  63. data/lib/citypay_api_client/models/charge_request.rb +453 -0
  64. data/lib/citypay_api_client/models/contact_details.rb +456 -0
  65. data/lib/citypay_api_client/models/decision.rb +224 -0
  66. data/lib/citypay_api_client/models/error.rb +285 -0
  67. data/lib/citypay_api_client/models/external_mpi.rb +307 -0
  68. data/lib/citypay_api_client/models/list_merchants_response.rb +252 -0
  69. data/lib/citypay_api_client/models/mcc6012.rb +237 -0
  70. data/lib/citypay_api_client/models/merchant.rb +247 -0
  71. data/lib/citypay_api_client/models/pa_res_auth_request.rb +227 -0
  72. data/lib/citypay_api_client/models/ping.rb +231 -0
  73. data/lib/citypay_api_client/models/register_card.rb +336 -0
  74. data/lib/citypay_api_client/models/request_challenged.rb +247 -0
  75. data/lib/citypay_api_client/models/retrieve_request.rb +256 -0
  76. data/lib/citypay_api_client/models/three_d_secure.rb +247 -0
  77. data/lib/citypay_api_client/models/void_request.rb +266 -0
  78. data/lib/citypay_api_client/version.rb +15 -0
  79. data/spec/api/card_holder_account_api_spec.rb +149 -0
  80. data/spec/api/operational_api_spec.rb +59 -0
  81. data/spec/api/payment_processing_api_spec.rb +107 -0
  82. data/spec/api_client_spec.rb +226 -0
  83. data/spec/configuration_spec.rb +42 -0
  84. data/spec/models/account_create_spec.rb +47 -0
  85. data/spec/models/account_status_spec.rb +41 -0
  86. data/spec/models/acknowledgement_spec.rb +59 -0
  87. data/spec/models/airline_advice_spec.rb +131 -0
  88. data/spec/models/airline_segment_spec.rb +83 -0
  89. data/spec/models/auth_reference_spec.rb +119 -0
  90. data/spec/models/auth_references_spec.rb +41 -0
  91. data/spec/models/auth_request_spec.rb +167 -0
  92. data/spec/models/auth_response_spec.rb +197 -0
  93. data/spec/models/authen_required_spec.rb +53 -0
  94. data/spec/models/c_res_auth_request_spec.rb +41 -0
  95. data/spec/models/capture_request_spec.rb +71 -0
  96. data/spec/models/card_holder_account_spec.rb +83 -0
  97. data/spec/models/card_spec.rb +143 -0
  98. data/spec/models/card_status_spec.rb +47 -0
  99. data/spec/models/charge_request_spec.rb +113 -0
  100. data/spec/models/contact_details_spec.rb +113 -0
  101. data/spec/models/decision_spec.rb +53 -0
  102. data/spec/models/error_spec.rb +59 -0
  103. data/spec/models/external_mpi_spec.rb +65 -0
  104. data/spec/models/list_merchants_response_spec.rb +53 -0
  105. data/spec/models/mcc6012_spec.rb +59 -0
  106. data/spec/models/merchant_spec.rb +65 -0
  107. data/spec/models/pa_res_auth_request_spec.rb +47 -0
  108. data/spec/models/ping_spec.rb +41 -0
  109. data/spec/models/register_card_spec.rb +59 -0
  110. data/spec/models/request_challenged_spec.rb +65 -0
  111. data/spec/models/retrieve_request_spec.rb +53 -0
  112. data/spec/models/three_d_secure_spec.rb +65 -0
  113. data/spec/models/void_request_spec.rb +59 -0
  114. data/spec/spec_helper.rb +111 -0
  115. metadata +252 -0
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 850a1d1f9a63c3637a70b7d7f766fab91b2c0f2052f41a01970e3d0c42b54a5c
4
+ data.tar.gz: 54f1d9013d20448319ab3db2766014e2695499d22d02c7a21b625b6602f54924
5
+ SHA512:
6
+ metadata.gz: 52e1c157f646c683e3d5b21c270124104d5f16d42553819ab07f54cb9af028ee0c8abd26b5738132bad78886e639105dc366eeaddafaa2b81e67aa54c2b80621
7
+ data.tar.gz: a980f50a46a4ba1cc254cd80daed48c0f4c91f068d8e17fb58c16bd911ac27eedfb4a3874e2a2cefeb5b5d2003c38b4e60a9fa774610c5cf87bc9a31761bf179
data/Gemfile ADDED
@@ -0,0 +1,9 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec
4
+
5
+ group :development, :test do
6
+ gem 'rake', '~> 13.0.1'
7
+ gem 'pry-byebug'
8
+ gem 'rubocop', '~> 0.66.0'
9
+ end
@@ -0,0 +1,176 @@
1
+ # citypay_api_client
2
+
3
+ CityPayApiClient - the Ruby gem for the CityPay Payment API
4
+
5
+
6
+ This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It
7
+ provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing,
8
+ 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and
9
+ Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts.
10
+
11
+ ## Compliance and Security
12
+ <aside class=\"notice\">
13
+ Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely
14
+ and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including:
15
+ </aside>
16
+
17
+ * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at
18
+ lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments
19
+ as part of our compliance program.
20
+ * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or
21
+ primary access number (PAN)
22
+ * The application must not display the full card number on receipts, it is recommended to mask the PAN
23
+ and show the last 4 digits. The API will return this for you for ease of receipt creation
24
+ * If you are developing a website, you will be required to perform regular scans on the network where you host the
25
+ application to meet your compliance obligations
26
+ * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information
27
+ is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/)
28
+ * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP
29
+ address. Our application firewalls analyse data that may be an attempt to break a large number of security common
30
+ security vulnerabilities.
31
+
32
+
33
+ This SDK is automatically generated by the [OpenAPI Generator](https://openapi-generator.tech) project:
34
+
35
+ - API version: 6.0.0
36
+ - Package version: 1.0.0
37
+ - Build package: org.openapitools.codegen.languages.RubyClientCodegen
38
+ For more information, please visit [https://citypay.com/customer-centre/technical-support.html](https://citypay.com/customer-centre/technical-support.html)
39
+
40
+ ## Installation
41
+
42
+ ### Build a gem
43
+
44
+ To build the Ruby code into a gem:
45
+
46
+ ```shell
47
+ gem build citypay_api_client.gemspec
48
+ ```
49
+
50
+ Then either install the gem locally:
51
+
52
+ ```shell
53
+ gem install ./citypay_api_client-1.0.0.gem
54
+ ```
55
+
56
+ (for development, run `gem install --dev ./citypay_api_client-1.0.0.gem` to install the development dependencies)
57
+
58
+ or publish the gem to a gem hosting service, e.g. [RubyGems](https://rubygems.org/).
59
+
60
+ Finally add this to the Gemfile:
61
+
62
+ gem 'citypay_api_client', '~> 1.0.0'
63
+
64
+ ### Install from Git
65
+
66
+ If the Ruby gem is hosted at a git repository: https://github.com/citypay/citypay-api-client-ruby, then add the following in the Gemfile:
67
+
68
+ gem 'citypay_api_client', :git => 'https://github.com/citypay/citypay-api-client-ruby.git'
69
+
70
+ ### Include the Ruby code directly
71
+
72
+ Include the Ruby code directly using `-I` as follows:
73
+
74
+ ```shell
75
+ ruby -Ilib script.rb
76
+ ```
77
+
78
+ ## Getting Started
79
+
80
+ Please follow the [installation](#installation) procedure and then run the following code:
81
+
82
+ ```ruby
83
+ # Load the gem
84
+ require 'citypay_api_client'
85
+
86
+ # Setup authorization
87
+ CityPayApiClient.configure do |config|
88
+ # Configure API key authorization: cp-api-key
89
+ config.api_key['cp-api-key'] = 'YOUR API KEY'
90
+ # Uncomment the following line to set a prefix for the API key, e.g. 'Bearer' (defaults to nil)
91
+ #config.api_key_prefix['cp-api-key'] = 'Bearer'
92
+ end
93
+
94
+ api_instance = CityPayApiClient::CardHolderAccountApi.new
95
+ accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
96
+ card_id = 'card_id_example' # String | The id of the card that is presented by a call to retrieve a card holder account.
97
+
98
+ begin
99
+ #Card Deletion
100
+ result = api_instance.account_card_delete_request(accountid, card_id)
101
+ p result
102
+ rescue CityPayApiClient::ApiError => e
103
+ puts "Exception when calling CardHolderAccountApi->account_card_delete_request: #{e}"
104
+ end
105
+
106
+ ```
107
+
108
+ ## Documentation for API Endpoints
109
+
110
+ All URIs are relative to *https://api.citypay.com/v6*
111
+
112
+ Class | Method | HTTP request | Description
113
+ ------------ | ------------- | ------------- | -------------
114
+ *CityPayApiClient::CardHolderAccountApi* | [**account_card_delete_request**](docs/CardHolderAccountApi.md#account_card_delete_request) | **DELETE** /account/{accountid}/card/{cardId} | Card Deletion
115
+ *CityPayApiClient::CardHolderAccountApi* | [**account_card_register_request**](docs/CardHolderAccountApi.md#account_card_register_request) | **POST** /account/{accountid}/register | Card Registration
116
+ *CityPayApiClient::CardHolderAccountApi* | [**account_card_status_request**](docs/CardHolderAccountApi.md#account_card_status_request) | **POST** /account/{accountid}/card/{cardId}/status | Card Status
117
+ *CityPayApiClient::CardHolderAccountApi* | [**account_change_contact_request**](docs/CardHolderAccountApi.md#account_change_contact_request) | **POST** /account/{accountid}/contact | Contact Details Update
118
+ *CityPayApiClient::CardHolderAccountApi* | [**account_create**](docs/CardHolderAccountApi.md#account_create) | **POST** /account/create | Account Create
119
+ *CityPayApiClient::CardHolderAccountApi* | [**account_delete_request**](docs/CardHolderAccountApi.md#account_delete_request) | **DELETE** /account/{accountid} | Account Deletion
120
+ *CityPayApiClient::CardHolderAccountApi* | [**account_retrieve_request**](docs/CardHolderAccountApi.md#account_retrieve_request) | **GET** /account/{accountid} | Account Retrieval
121
+ *CityPayApiClient::CardHolderAccountApi* | [**account_status_request**](docs/CardHolderAccountApi.md#account_status_request) | **POST** /account/{accountid}/status | Account Status
122
+ *CityPayApiClient::CardHolderAccountApi* | [**charge_request**](docs/CardHolderAccountApi.md#charge_request) | **POST** /charge | Charge
123
+ *CityPayApiClient::OperationalApi* | [**list_merchants_request**](docs/OperationalApi.md#list_merchants_request) | **GET** /merchants/{clientid} | List Merchants Request
124
+ *CityPayApiClient::OperationalApi* | [**ping_request**](docs/OperationalApi.md#ping_request) | **POST** /ping | Ping Request
125
+ *CityPayApiClient::PaymentProcessingApi* | [**authorisation_request**](docs/PaymentProcessingApi.md#authorisation_request) | **POST** /authorise | Authorisation
126
+ *CityPayApiClient::PaymentProcessingApi* | [**c_res_request**](docs/PaymentProcessingApi.md#c_res_request) | **POST** /cres | CRes
127
+ *CityPayApiClient::PaymentProcessingApi* | [**capture_request**](docs/PaymentProcessingApi.md#capture_request) | **POST** /capture | Capture
128
+ *CityPayApiClient::PaymentProcessingApi* | [**pa_res_request**](docs/PaymentProcessingApi.md#pa_res_request) | **POST** /pares | PaRes
129
+ *CityPayApiClient::PaymentProcessingApi* | [**retrieval_request**](docs/PaymentProcessingApi.md#retrieval_request) | **POST** /retrieve | Retrieval
130
+ *CityPayApiClient::PaymentProcessingApi* | [**void_request**](docs/PaymentProcessingApi.md#void_request) | **POST** /void | Void
131
+
132
+
133
+ ## Documentation for Models
134
+
135
+ - [CityPayApiClient::AccountCreate](docs/AccountCreate.md)
136
+ - [CityPayApiClient::AccountStatus](docs/AccountStatus.md)
137
+ - [CityPayApiClient::Acknowledgement](docs/Acknowledgement.md)
138
+ - [CityPayApiClient::AirlineAdvice](docs/AirlineAdvice.md)
139
+ - [CityPayApiClient::AirlineSegment](docs/AirlineSegment.md)
140
+ - [CityPayApiClient::AuthReference](docs/AuthReference.md)
141
+ - [CityPayApiClient::AuthReferences](docs/AuthReferences.md)
142
+ - [CityPayApiClient::AuthRequest](docs/AuthRequest.md)
143
+ - [CityPayApiClient::AuthResponse](docs/AuthResponse.md)
144
+ - [CityPayApiClient::AuthenRequired](docs/AuthenRequired.md)
145
+ - [CityPayApiClient::CResAuthRequest](docs/CResAuthRequest.md)
146
+ - [CityPayApiClient::CaptureRequest](docs/CaptureRequest.md)
147
+ - [CityPayApiClient::Card](docs/Card.md)
148
+ - [CityPayApiClient::CardHolderAccount](docs/CardHolderAccount.md)
149
+ - [CityPayApiClient::CardStatus](docs/CardStatus.md)
150
+ - [CityPayApiClient::ChargeRequest](docs/ChargeRequest.md)
151
+ - [CityPayApiClient::ContactDetails](docs/ContactDetails.md)
152
+ - [CityPayApiClient::Decision](docs/Decision.md)
153
+ - [CityPayApiClient::Error](docs/Error.md)
154
+ - [CityPayApiClient::ExternalMPI](docs/ExternalMPI.md)
155
+ - [CityPayApiClient::ListMerchantsResponse](docs/ListMerchantsResponse.md)
156
+ - [CityPayApiClient::MCC6012](docs/MCC6012.md)
157
+ - [CityPayApiClient::Merchant](docs/Merchant.md)
158
+ - [CityPayApiClient::PaResAuthRequest](docs/PaResAuthRequest.md)
159
+ - [CityPayApiClient::Ping](docs/Ping.md)
160
+ - [CityPayApiClient::RegisterCard](docs/RegisterCard.md)
161
+ - [CityPayApiClient::RequestChallenged](docs/RequestChallenged.md)
162
+ - [CityPayApiClient::RetrieveRequest](docs/RetrieveRequest.md)
163
+ - [CityPayApiClient::ThreeDSecure](docs/ThreeDSecure.md)
164
+ - [CityPayApiClient::VoidRequest](docs/VoidRequest.md)
165
+
166
+
167
+ ## Documentation for Authorization
168
+
169
+
170
+ ### cp-api-key
171
+
172
+
173
+ - **Type**: API key
174
+ - **API key parameter name**: cp-api-key
175
+ - **Location**: HTTP header
176
+
@@ -0,0 +1,10 @@
1
+ require "bundler/gem_tasks"
2
+
3
+ begin
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+ task default: :spec
8
+ rescue LoadError
9
+ # no rspec available
10
+ end
@@ -0,0 +1,39 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ =begin
4
+ #CityPay Payment API
5
+
6
+ # This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It provides a number of payment mechanisms including: Internet, MOTO, Continuous Authority transaction processing, 3-D Secure decision handling using RFA Secure, Authorisation, Refunding, Pre-Authorisation, Cancellation/Voids and Completion processing. The API is also capable of tokinsed payments using Card Holder Accounts. ## Compliance and Security <aside class=\"notice\"> Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely and to meet requirements set out by Visa and MasterCard and the PCI Security Standards Council including: </aside> * Data must be collected using TLS version 1.2 using [strong cryptography](#enabled-tls-ciphers). We will not accept calls to our API at lower grade encryption levels. We regularly scan our TLS endpoints for vulnerabilities and perform TLS assessments as part of our compliance program. * The application must not store sensitive card holder data (CHD) such as the card security code (CSC) or primary access number (PAN) * The application must not display the full card number on receipts, it is recommended to mask the PAN and show the last 4 digits. The API will return this for you for ease of receipt creation * If you are developing a website, you will be required to perform regular scans on the network where you host the application to meet your compliance obligations * You will be required to be PCI Compliant and the application must adhere to the security standard. Further information is available from [https://www.pcisecuritystandards.org/](https://www.pcisecuritystandards.org/) * The API verifies that the request is for a valid account and originates from a trusted source using the remote IP address. Our application firewalls analyse data that may be an attempt to break a large number of security common security vulnerabilities.
7
+
8
+ The version of the OpenAPI document: 6.0.0
9
+ Contact: support@citypay.com
10
+ Generated by: https://openapi-generator.tech
11
+ OpenAPI Generator version: 5.0.0-SNAPSHOT
12
+
13
+ =end
14
+
15
+ $:.push File.expand_path("../lib", __FILE__)
16
+ require "citypay_api_client/version"
17
+
18
+ Gem::Specification.new do |s|
19
+ s.name = "citypay_api_client"
20
+ s.version = CityPayApiClient::VERSION
21
+ s.platform = Gem::Platform::RUBY
22
+ s.authors = ["citypay"]
23
+ s.email = ["support@citypay.com"]
24
+ s.homepage = "https://github.com/citypay/citypay-api-client-ruby"
25
+ s.summary = "A ruby wrapper for the CityPay API"
26
+ s.description = "CityPay API Client for Ruby"
27
+ s.license = "Unlicense"
28
+ s.required_ruby_version = ">= 1.9"
29
+
30
+ s.add_runtime_dependency 'typhoeus', '~> 1.0', '>= 1.0.1'
31
+ s.add_runtime_dependency 'json', '~> 2.1', '>= 2.1.0'
32
+
33
+ s.add_development_dependency 'rspec', '~> 3.6', '>= 3.6.0'
34
+
35
+ s.files = `find *`.split("\n").uniq.sort.select { |f| !f.empty? }
36
+ s.test_files = `find spec/*`.split("\n")
37
+ s.executables = []
38
+ s.require_paths = ["lib"]
39
+ end
@@ -0,0 +1,19 @@
1
+ # CityPayApiClient::AccountCreate
2
+
3
+ ## Properties
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]
9
+
10
+ ## Code Sample
11
+
12
+ ```ruby
13
+ require 'CityPayApiClient'
14
+
15
+ instance = CityPayApiClient::AccountCreate.new(account_id: aaabbb-cccddd-eee,
16
+ contact: null)
17
+ ```
18
+
19
+
@@ -0,0 +1,17 @@
1
+ # CityPayApiClient::AccountStatus
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **status** | **String** | The status of the account to set, valid values are ACTIVE or DISABLED. | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'CityPayApiClient'
13
+
14
+ instance = CityPayApiClient::AccountStatus.new(status: null)
15
+ ```
16
+
17
+
@@ -0,0 +1,23 @@
1
+ # CityPayApiClient::Acknowledgement
2
+
3
+ ## Properties
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]
11
+
12
+ ## Code Sample
13
+
14
+ ```ruby
15
+ require 'CityPayApiClient'
16
+
17
+ instance = CityPayApiClient::Acknowledgement.new(code: 0,
18
+ context: aspiu352908ns47n343598bads,
19
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
20
+ message: Approved 044332)
21
+ ```
22
+
23
+
@@ -0,0 +1,47 @@
1
+ # CityPayApiClient::AirlineAdvice
2
+
3
+ ## Properties
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. 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. |
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: - &#x60;TKT&#x60; &#x3D; Ticket Purchase - &#x60;REF&#x60; &#x3D; Refund - &#x60;EXC&#x60; &#x3D; Exchange Ticket - &#x60;MSC&#x60; &#x3D; Miscellaneous (non-Ticket Purchase- and non-Exchange Ticket-related transactions only). |
23
+
24
+ ## Code Sample
25
+
26
+ ```ruby
27
+ require 'CityPayApiClient'
28
+
29
+ instance = CityPayApiClient::AirlineAdvice.new(carrier_name: EG Air,
30
+ conjunction_ticket_indicator: false,
31
+ eticket_indicator: true,
32
+ no_air_segments: 2,
33
+ number_in_party: 2,
34
+ original_ticket_no: null,
35
+ passenger_name: NE Person,
36
+ segment1: null,
37
+ segment2: null,
38
+ segment3: null,
39
+ segment4: null,
40
+ ticket_issue_city: London,
41
+ ticket_issue_date: Sat Aug 01 00:00:00 GMT 2020,
42
+ ticket_issue_name: Issue Name,
43
+ ticket_no: A112233,
44
+ transaction_type: TKT)
45
+ ```
46
+
47
+
@@ -0,0 +1,31 @@
1
+ # CityPayApiClient::AirlineSegment
2
+
3
+ ## Properties
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 &#x3D; Stopover allowed, X &#x3D; Stopover not allowed. | [optional]
15
+
16
+ ## Code Sample
17
+
18
+ ```ruby
19
+ require 'CityPayApiClient'
20
+
21
+ instance = CityPayApiClient::AirlineSegment.new(arrival_location_code: SOU,
22
+ carrier_code: ZZ,
23
+ class_service_code: CC,
24
+ departure_date: Sat Aug 01 00:00:00 GMT 2020,
25
+ departure_location_code: JER,
26
+ flight_number: 772,
27
+ segment_fare: 7500,
28
+ stop_over_indicator: 1)
29
+ ```
30
+
31
+
@@ -0,0 +1,43 @@
1
+ # CityPayApiClient::AuthReference
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **amount** | **Integer** | The amount of the transaction in decimal currency format. | [optional]
8
+ **amount_value** | **String** | The amount of the transaction in integer/request format. | [optional]
9
+ **atrn** | **String** | A reference number provided by the acquiring services. | [optional]
10
+ **authcode** | **String** | The authorisation code of the transaction returned by the acquirer or card issuer. | [optional]
11
+ **batchno** | **String** | A batch number which the transaction has been end of day batched towards. | [optional]
12
+ **currency** | **String** | The currency of the transaction in ISO 4217 code format. | [optional]
13
+ **datetime** | **DateTime** | The date and time of the transaction. | [optional]
14
+ **identifier** | **String** | The identifier of the transaction used to process the transaction. | [optional]
15
+ **maskedpan** | **String** | A masking of the card number which was used to process the tranasction. | [optional]
16
+ **merchantid** | **Integer** | The merchant id of the transaction result. | [optional]
17
+ **result** | **String** | The result of the transaction. | [optional]
18
+ **trans_status** | **String** | The current status of the transaction through it&#39;s lifecycle. | [optional]
19
+ **trans_type** | **String** | The type of transaction that was processed. | [optional]
20
+ **transno** | **Integer** | The transaction number of the transaction. | [optional]
21
+
22
+ ## Code Sample
23
+
24
+ ```ruby
25
+ require 'CityPayApiClient'
26
+
27
+ instance = CityPayApiClient::AuthReference.new(amount: 3600,
28
+ amount_value: null,
29
+ atrn: null,
30
+ authcode: 001245A,
31
+ batchno: null,
32
+ currency: GBP,
33
+ datetime: 2020-01-02T18:32:28Z,
34
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
35
+ maskedpan: 4***********0002,
36
+ merchantid: 11223344,
37
+ result: null,
38
+ trans_status: null,
39
+ trans_type: null,
40
+ transno: 78416)
41
+ ```
42
+
43
+
@@ -0,0 +1,17 @@
1
+ # CityPayApiClient::AuthReferences
2
+
3
+ ## Properties
4
+
5
+ Name | Type | Description | Notes
6
+ ------------ | ------------- | ------------- | -------------
7
+ **auths** | [**Array&lt;AuthReference&gt;**](AuthReference.md) | | [optional]
8
+
9
+ ## Code Sample
10
+
11
+ ```ruby
12
+ require 'CityPayApiClient'
13
+
14
+ instance = CityPayApiClient::AuthReferences.new(auths: null)
15
+ ```
16
+
17
+