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.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +111 -39
  3. data/citypay_api_client.gemspec +5 -5
  4. data/docs/AccountCreate.md +10 -9
  5. data/docs/AccountStatus.md +8 -7
  6. data/docs/Acknowledgement.md +14 -13
  7. data/docs/AclCheckRequest.md +18 -0
  8. data/docs/AclCheckResponseModel.md +24 -0
  9. data/docs/AirlineAdvice.md +38 -37
  10. data/docs/AirlineSegment.md +22 -21
  11. data/docs/AuthReference.md +34 -33
  12. data/docs/AuthReferences.md +8 -7
  13. data/docs/AuthRequest.md +52 -49
  14. data/docs/AuthResponse.md +64 -59
  15. data/docs/AuthenRequired.md +12 -11
  16. data/docs/AuthorisationAndPaymentApi.md +850 -0
  17. data/docs/Batch.md +22 -0
  18. data/docs/BatchProcessingApi.md +218 -0
  19. data/docs/BatchReportRequest.md +20 -0
  20. data/docs/BatchReportResponseModel.md +28 -0
  21. data/docs/BatchTransaction.md +24 -0
  22. data/docs/BatchTransactionResultModel.md +44 -0
  23. data/docs/Bin.md +34 -0
  24. data/docs/BinLookup.md +18 -0
  25. data/docs/CResAuthRequest.md +8 -7
  26. data/docs/CaptureRequest.md +18 -17
  27. data/docs/Card.md +46 -41
  28. data/docs/CardHolderAccount.md +24 -21
  29. data/docs/CardHolderAccountApi.md +387 -111
  30. data/docs/CardStatus.md +10 -9
  31. data/docs/ChargeRequest.md +38 -31
  32. data/docs/CheckBatchStatus.md +20 -0
  33. data/docs/CheckBatchStatusResponse.md +18 -0
  34. data/docs/ContactDetails.md +32 -31
  35. data/docs/Decision.md +12 -11
  36. data/docs/DirectPostApi.md +389 -0
  37. data/docs/DirectPostRequest.md +60 -0
  38. data/docs/DirectTokenAuthRequest.md +24 -0
  39. data/docs/DomainKeyCheckRequest.md +18 -0
  40. data/docs/DomainKeyRequest.md +22 -0
  41. data/docs/DomainKeyResponse.md +26 -0
  42. data/docs/Error.md +16 -13
  43. data/docs/EventDataModel.md +26 -0
  44. data/docs/Exists.md +22 -0
  45. data/docs/ExternalMPI.md +16 -15
  46. data/docs/ListMerchantsResponse.md +12 -11
  47. data/docs/MCC6012.md +14 -13
  48. data/docs/Merchant.md +16 -15
  49. data/docs/OperationalFunctionsApi.md +375 -0
  50. data/docs/PaResAuthRequest.md +10 -9
  51. data/docs/PaylinkAddress.md +30 -0
  52. data/docs/PaylinkAdjustmentRequest.md +22 -0
  53. data/docs/PaylinkApi.md +806 -0
  54. data/docs/PaylinkAttachmentRequest.md +26 -0
  55. data/docs/PaylinkAttachmentResult.md +22 -0
  56. data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
  57. data/docs/PaylinkCardHolder.md +36 -0
  58. data/docs/PaylinkCart.md +30 -0
  59. data/docs/PaylinkCartItemModel.md +32 -0
  60. data/docs/PaylinkConfig.md +60 -0
  61. data/docs/PaylinkCustomParam.md +38 -0
  62. data/docs/PaylinkEmailNotificationPath.md +26 -0
  63. data/docs/PaylinkErrorCode.md +20 -0
  64. data/docs/PaylinkFieldGuardModel.md +30 -0
  65. data/docs/PaylinkPartPayments.md +28 -0
  66. data/docs/PaylinkSMSNotificationPath.md +20 -0
  67. data/docs/PaylinkStateEvent.md +22 -0
  68. data/docs/PaylinkTokenCreated.md +44 -0
  69. data/docs/PaylinkTokenRequestModel.md +42 -0
  70. data/docs/PaylinkTokenStatus.md +72 -0
  71. data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
  72. data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
  73. data/docs/PaylinkUI.md +24 -0
  74. data/docs/Ping.md +8 -7
  75. data/docs/ProcessBatchRequest.md +24 -0
  76. data/docs/ProcessBatchResponse.md +20 -0
  77. data/docs/RefundRequest.md +26 -0
  78. data/docs/RegisterCard.md +16 -13
  79. data/docs/RequestChallenged.md +16 -15
  80. data/docs/RetrieveRequest.md +12 -11
  81. data/docs/ThreeDSecure.md +32 -15
  82. data/docs/TokenisationResponseModel.md +36 -0
  83. data/docs/VoidRequest.md +12 -13
  84. data/docs/images/3dsv1-challenge.png +0 -0
  85. data/docs/images/3dsv2-challenge.png +0 -0
  86. data/docs/images/3dsv2-frictionless.png +0 -0
  87. data/docs/images/3dsv2-method-challenge.png +0 -0
  88. data/docs/images/3dsv2-method-frictionless.png +0 -0
  89. data/docs/images/3dsv2-no3d.png +0 -0
  90. data/docs/images/citypay-logo.svg +1 -0
  91. data/docs/images/direct-post-flow.png +0 -0
  92. data/docs/images/favicon.ico +0 -0
  93. data/docs/images/header.png +0 -0
  94. data/docs/images/logo.ai +1913 -4
  95. data/docs/images/logo.png +0 -0
  96. data/docs/images/logo.svg +1 -0
  97. data/docs/images/merchant-BPS-workflow.png +0 -0
  98. data/docs/images/paylink-field-guards.png +0 -0
  99. data/lib/.DS_Store +0 -0
  100. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
  101. data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
  102. data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
  103. data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
  104. data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
  105. data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
  106. data/lib/citypay_api_client/api_client.rb +72 -70
  107. data/lib/citypay_api_client/api_error.rb +3 -2
  108. data/lib/citypay_api_client/configuration.rb +74 -17
  109. data/lib/citypay_api_client/models/account_create.rb +33 -23
  110. data/lib/citypay_api_client/models/account_status.rb +31 -23
  111. data/lib/citypay_api_client/models/acknowledgement.rb +43 -27
  112. data/lib/citypay_api_client/models/acl_check_request.rb +221 -0
  113. data/lib/citypay_api_client/models/acl_check_response_model.rb +244 -0
  114. data/lib/citypay_api_client/models/airline_advice.rb +63 -34
  115. data/lib/citypay_api_client/models/airline_segment.rb +51 -25
  116. data/lib/citypay_api_client/models/auth_reference.rb +80 -31
  117. data/lib/citypay_api_client/models/auth_references.rb +31 -23
  118. data/lib/citypay_api_client/models/auth_request.rb +137 -56
  119. data/lib/citypay_api_client/models/auth_response.rb +83 -123
  120. data/lib/citypay_api_client/models/authen_required.rb +31 -23
  121. data/lib/citypay_api_client/models/batch.rb +267 -0
  122. data/lib/citypay_api_client/models/batch_report_request.rb +278 -0
  123. data/lib/citypay_api_client/models/batch_report_response_model.rb +364 -0
  124. data/lib/citypay_api_client/models/batch_transaction.rb +324 -0
  125. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +452 -0
  126. data/lib/citypay_api_client/models/bin.rb +294 -0
  127. data/lib/citypay_api_client/models/bin_lookup.rb +231 -0
  128. data/lib/citypay_api_client/models/c_res_auth_request.rb +31 -23
  129. data/lib/citypay_api_client/models/capture_request.rb +59 -38
  130. data/lib/citypay_api_client/models/card.rb +93 -29
  131. data/lib/citypay_api_client/models/card_holder_account.rb +49 -27
  132. data/lib/citypay_api_client/models/card_status.rb +31 -23
  133. data/lib/citypay_api_client/models/charge_request.rb +154 -47
  134. data/lib/citypay_api_client/models/check_batch_status.rb +260 -0
  135. data/lib/citypay_api_client/models/check_batch_status_response.rb +215 -0
  136. data/lib/citypay_api_client/models/contact_details.rb +130 -52
  137. data/lib/citypay_api_client/models/decision.rb +31 -23
  138. data/lib/citypay_api_client/models/direct_post_request.rb +707 -0
  139. data/lib/citypay_api_client/models/direct_token_auth_request.rb +244 -0
  140. data/lib/citypay_api_client/models/domain_key_check_request.rb +249 -0
  141. data/lib/citypay_api_client/models/domain_key_request.rb +249 -0
  142. data/lib/citypay_api_client/models/domain_key_response.rb +297 -0
  143. data/lib/citypay_api_client/models/error.rb +57 -31
  144. data/lib/citypay_api_client/models/event_data_model.rb +254 -0
  145. data/lib/citypay_api_client/models/exists.rb +241 -0
  146. data/lib/citypay_api_client/models/external_mpi.rb +61 -27
  147. data/lib/citypay_api_client/models/list_merchants_response.rb +37 -25
  148. data/lib/citypay_api_client/models/mcc6012.rb +31 -23
  149. data/lib/citypay_api_client/models/merchant.rb +31 -23
  150. data/lib/citypay_api_client/models/pa_res_auth_request.rb +36 -24
  151. data/lib/citypay_api_client/models/paylink_address.rb +425 -0
  152. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +272 -0
  153. data/lib/citypay_api_client/models/paylink_attachment_request.rb +268 -0
  154. data/lib/citypay_api_client/models/paylink_attachment_result.rb +248 -0
  155. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +289 -0
  156. data/lib/citypay_api_client/models/paylink_card_holder.rb +360 -0
  157. data/lib/citypay_api_client/models/paylink_cart.rb +275 -0
  158. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +284 -0
  159. data/lib/citypay_api_client/models/paylink_config.rb +428 -0
  160. data/lib/citypay_api_client/models/paylink_custom_param.rb +321 -0
  161. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +265 -0
  162. data/lib/citypay_api_client/models/paylink_error_code.rb +238 -0
  163. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +274 -0
  164. data/lib/citypay_api_client/models/paylink_part_payments.rb +264 -0
  165. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +231 -0
  166. data/lib/citypay_api_client/models/paylink_state_event.rb +234 -0
  167. data/lib/citypay_api_client/models/paylink_token_created.rb +365 -0
  168. data/lib/citypay_api_client/models/paylink_token_request_model.rb +427 -0
  169. data/lib/citypay_api_client/models/paylink_token_status.rb +485 -0
  170. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +269 -0
  171. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +232 -0
  172. data/lib/citypay_api_client/models/paylink_ui.rb +244 -0
  173. data/lib/citypay_api_client/models/ping.rb +37 -25
  174. data/lib/citypay_api_client/models/process_batch_request.rb +313 -0
  175. data/lib/citypay_api_client/models/process_batch_response.rb +231 -0
  176. data/lib/citypay_api_client/models/refund_request.rb +339 -0
  177. data/lib/citypay_api_client/models/register_card.rb +79 -27
  178. data/lib/citypay_api_client/models/request_challenged.rb +39 -31
  179. data/lib/citypay_api_client/models/retrieve_request.rb +39 -25
  180. data/lib/citypay_api_client/models/three_d_secure.rb +116 -28
  181. data/lib/citypay_api_client/models/tokenisation_response_model.rb +332 -0
  182. data/lib/citypay_api_client/models/void_request.rb +39 -37
  183. data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
  184. data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
  185. data/lib/citypay_api_client/version.rb +3 -4
  186. data/lib/citypay_api_client.rb +53 -6
  187. data/spec/.DS_Store +0 -0
  188. data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
  189. data/spec/api/batch_processing_api___spec.rb +70 -0
  190. data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
  191. data/spec/api/direct_post_api___spec.rb +98 -0
  192. data/spec/api/operational_functions_api___spec.rb +94 -0
  193. data/spec/api/paylink_api___spec.rb +131 -0
  194. data/spec/api_client_spec.rb +4 -4
  195. data/spec/configuration_spec.rb +5 -5
  196. data/spec/it_api_sandbox_spec.rb +117 -55
  197. data/spec/models/account_create_spec.rb +1 -2
  198. data/spec/models/account_status_spec.rb +2 -2
  199. data/spec/models/acknowledgement_spec.rb +7 -22
  200. data/spec/models/acl_check_request_spec.rb +33 -0
  201. data/spec/models/acl_check_response_model_spec.rb +51 -0
  202. data/spec/models/airline_advice_spec.rb +0 -2
  203. data/spec/models/airline_segment_spec.rb +0 -2
  204. data/spec/models/auth_references_spec.rb +7 -8
  205. data/spec/models/auth_request_spec.rb +0 -2
  206. data/spec/models/auth_response_spec.rb +77 -33
  207. data/spec/models/batch_report_request_spec.rb +37 -0
  208. data/spec/models/batch_report_response_model_spec.rb +61 -0
  209. data/spec/models/batch_spec.rb +43 -0
  210. data/spec/models/batch_transaction_result_model_spec.rb +85 -0
  211. data/spec/models/batch_transaction_spec.rb +49 -0
  212. data/spec/models/bin_lookup_spec.rb +31 -0
  213. data/spec/models/bin_spec.rb +81 -0
  214. data/spec/models/capture_request_spec.rb +0 -2
  215. data/spec/models/card_holder_account_spec.rb +8 -7
  216. data/spec/models/charge_request_spec.rb +0 -2
  217. data/spec/models/check_batch_status_response_spec.rb +45 -0
  218. data/spec/models/check_batch_status_spec.rb +39 -0
  219. data/spec/models/decision_spec.rb +1 -1
  220. data/spec/models/direct_post_request_spec.rb +151 -0
  221. data/spec/models/direct_token_auth_request_spec.rb +51 -0
  222. data/spec/models/domain_key_check_request_spec.rb +31 -0
  223. data/spec/models/domain_key_request_spec.rb +45 -0
  224. data/spec/models/domain_key_response_spec.rb +57 -0
  225. data/spec/models/event_data_model_spec.rb +57 -0
  226. data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
  227. data/spec/models/list_merchants_response_spec.rb +2 -2
  228. data/spec/models/paylink_address_spec.rb +69 -0
  229. data/spec/models/paylink_adjustment_request_spec.rb +45 -0
  230. data/spec/models/paylink_attachment_request_spec.rb +45 -0
  231. data/spec/models/paylink_attachment_result_spec.rb +45 -0
  232. data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
  233. data/spec/models/paylink_card_holder_spec.rb +87 -0
  234. data/spec/models/paylink_cart_item_model_spec.rb +75 -0
  235. data/spec/models/paylink_cart_spec.rb +69 -0
  236. data/spec/models/paylink_config_spec.rb +159 -0
  237. data/spec/models/paylink_custom_param_spec.rb +87 -0
  238. data/spec/models/paylink_email_notification_path_spec.rb +57 -0
  239. data/spec/models/paylink_error_code_spec.rb +39 -0
  240. data/spec/models/paylink_field_guard_model_spec.rb +45 -0
  241. data/spec/models/paylink_part_payments_spec.rb +63 -0
  242. data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
  243. data/spec/models/paylink_state_event_spec.rb +45 -0
  244. data/spec/models/paylink_token_created_spec.rb +111 -0
  245. data/spec/models/paylink_token_request_model_spec.rb +91 -0
  246. data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
  247. data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
  248. data/spec/models/paylink_token_status_spec.rb +195 -0
  249. data/spec/models/paylink_ui_spec.rb +51 -0
  250. data/spec/models/process_batch_request_spec.rb +49 -0
  251. data/spec/models/process_batch_response_spec.rb +39 -0
  252. data/spec/models/refund_request_spec.rb +62 -0
  253. data/spec/models/register_card_spec.rb +0 -2
  254. data/spec/models/tokenisation_response_model_spec.rb +87 -0
  255. data/spec/spec_helper.rb +2 -2
  256. data/spec/utils/direct_post_mac_spec.rb +13 -0
  257. metadata +230 -44
  258. data/Gemfile.lock +0 -70
  259. data/docs/OperationalApi.md +0 -112
  260. data/docs/PaymentProcessingApi.md +0 -320
  261. data/git_push.sh +0 -58
  262. data/lib/citypay_api_client/api/operational_api.rb +0 -147
  263. data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
  264. data/lib/citypay_api_client/test.rb +0 -20
  265. 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: 353921c25e873f2f9265c87a6d7b0090bac363c9dc95907cf78d025a2b442c7a
4
- data.tar.gz: 5c1155f422d3ac0b3655596b313fca732fe21b7f66a2a72aeae420fab7b8ee8d
3
+ metadata.gz: ffc51d5a014c59fc14c213cd2f0340323c31e8094fc8602fc27e357675e5fe0d
4
+ data.tar.gz: 4584d27c08da5b4aa0742ba6177dcbaa0ff1e6822481461056aa721be5b12de0
5
5
  SHA512:
6
- metadata.gz: 4b593440b4d51f98c43860f07c579d8d4524034edf993ecf2fae11189d3d3e33c74e391ed677ba486a8b794cb8cfeb663949e59dde70ea02896baa16a0b9503f
7
- data.tar.gz: 5750982411b91e4c30536a34693573a26f4de9aea88e479a98cdcec63b9cbfb960e4cd3dfdb420f5e724f8f483ed0dcfcded2f8e67a588f5e836f37a100105b9
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
- [![Build Status](https://travis-ci.org/citypay/citypay-api-client-ruby.svg?branch=master)](https://travis-ci.org/citypay/citypay-api-client-ruby)
4
+ [![Ruby RSpec Tests](https://github.com/citypay/citypay-api-client-ruby/actions/workflows/build.yml/badge.svg)](https://github.com/citypay/citypay-api-client-ruby/actions/workflows/build.yml)
5
5
 
6
6
 
7
- This CityPay API is a HTTP RESTful payment API used for direct server to server transactional processing. It
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 tokinsed payments using Card Holder Accounts.
10
+ Completion processing. The API is also capable of tokenized payments using cardholder Accounts.
11
11
 
12
12
  ## Compliance and Security
13
- <aside class=\"notice\">
14
- Before we begin a reminder that your application will need to adhere to PCI-DSS standards to operate safely
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](#enabled-tls-ciphers). We will not accept calls to our API at
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 card holder data (CHD) such as the card security code (CSC) or
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.0.4
37
- - Package version: 1.0.3
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/customer-centre/technical-support.html](https://citypay.com/customer-centre/technical-support.html)
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.0.3.gem
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.0.3.gem` to install the development dependencies)
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.0.3'
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::CardHolderAccountApi.new
93
- 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.
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
- #Card Deletion
98
- result = api_instance.account_card_delete_request(accountid, card_id)
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 CardHolderAccountApi->account_card_delete_request: #{e}"
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/v6*
105
+ All URIs are relative to *https://api.citypay.com*
109
106
 
110
107
  Class | Method | HTTP request | Description
111
108
  ------------ | ------------- | ------------- | -------------
112
- *CityPayApiClient::CardHolderAccountApi* | [**account_card_delete_request**](docs/CardHolderAccountApi.md#account_card_delete_request) | **DELETE** /account/{accountid}/card/{cardId} | Card Deletion
113
- *CityPayApiClient::CardHolderAccountApi* | [**account_card_register_request**](docs/CardHolderAccountApi.md#account_card_register_request) | **POST** /account/{accountid}/register | Card Registration
114
- *CityPayApiClient::CardHolderAccountApi* | [**account_card_status_request**](docs/CardHolderAccountApi.md#account_card_status_request) | **POST** /account/{accountid}/card/{cardId}/status | Card Status
115
- *CityPayApiClient::CardHolderAccountApi* | [**account_change_contact_request**](docs/CardHolderAccountApi.md#account_change_contact_request) | **POST** /account/{accountid}/contact | Contact Details Update
116
- *CityPayApiClient::CardHolderAccountApi* | [**account_create**](docs/CardHolderAccountApi.md#account_create) | **POST** /account/create | Account Create
117
- *CityPayApiClient::CardHolderAccountApi* | [**account_delete_request**](docs/CardHolderAccountApi.md#account_delete_request) | **DELETE** /account/{accountid} | Account Deletion
118
- *CityPayApiClient::CardHolderAccountApi* | [**account_retrieve_request**](docs/CardHolderAccountApi.md#account_retrieve_request) | **GET** /account/{accountid} | Account Retrieval
119
- *CityPayApiClient::CardHolderAccountApi* | [**account_status_request**](docs/CardHolderAccountApi.md#account_status_request) | **POST** /account/{accountid}/status | Account Status
120
- *CityPayApiClient::CardHolderAccountApi* | [**charge_request**](docs/CardHolderAccountApi.md#charge_request) | **POST** /charge | Charge
121
- *CityPayApiClient::OperationalApi* | [**list_merchants_request**](docs/OperationalApi.md#list_merchants_request) | **GET** /merchants/{clientid} | List Merchants Request
122
- *CityPayApiClient::OperationalApi* | [**ping_request**](docs/OperationalApi.md#ping_request) | **POST** /ping | Ping Request
123
- *CityPayApiClient::PaymentProcessingApi* | [**authorisation_request**](docs/PaymentProcessingApi.md#authorisation_request) | **POST** /authorise | Authorisation
124
- *CityPayApiClient::PaymentProcessingApi* | [**c_res_request**](docs/PaymentProcessingApi.md#c_res_request) | **POST** /cres | CRes
125
- *CityPayApiClient::PaymentProcessingApi* | [**capture_request**](docs/PaymentProcessingApi.md#capture_request) | **POST** /capture | Capture
126
- *CityPayApiClient::PaymentProcessingApi* | [**pa_res_request**](docs/PaymentProcessingApi.md#pa_res_request) | **POST** /pares | PaRes
127
- *CityPayApiClient::PaymentProcessingApi* | [**retrieval_request**](docs/PaymentProcessingApi.md#retrieval_request) | **POST** /retrieve | Retrieval
128
- *CityPayApiClient::PaymentProcessingApi* | [**void_request**](docs/PaymentProcessingApi.md#void_request) | **POST** /void | Void
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
+
@@ -3,11 +3,11 @@
3
3
  =begin
4
4
  #CityPay Payment API
5
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.
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: 5.0.0-SNAPSHOT
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 = "MIT"
27
- s.required_ruby_version = ">= 1.9"
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
 
@@ -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
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'CityPayApiClient'
13
+ require 'citypay_api_client'
14
14
 
15
- instance = CityPayApiClient::AccountCreate.new(account_id: aaabbb-cccddd-eee,
16
- contact: null)
15
+ instance = CityPayApiClient::AccountCreate.new(
16
+ account_id: aaabbb-cccddd-eee,
17
+ contact: null
18
+ )
17
19
  ```
18
20
 
19
-
@@ -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
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'CityPayApiClient'
12
+ require 'citypay_api_client'
13
13
 
14
- instance = CityPayApiClient::AccountStatus.new(status: null)
14
+ instance = CityPayApiClient::AccountStatus.new(
15
+ status: null
16
+ )
15
17
  ```
16
18
 
17
-
@@ -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
- ## Code Sample
12
+ ## Example
13
13
 
14
14
  ```ruby
15
- require 'CityPayApiClient'
15
+ require 'citypay_api_client'
16
16
 
17
- instance = CityPayApiClient::Acknowledgement.new(code: 0,
18
- context: aspiu352908ns47n343598bads,
19
- identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
20
- message: Approved 044332)
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
+
@@ -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. 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). |
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: - &#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
23
 
24
- ## Code Sample
24
+ ## Example
25
25
 
26
26
  ```ruby
27
- require 'CityPayApiClient'
27
+ require 'citypay_api_client'
28
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)
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
-
@@ -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 &#x3D; Stopover allowed, X &#x3D; 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 &#x3D; Stopover allowed, X &#x3D; Stopover not allowed. | [optional] |
15
15
 
16
- ## Code Sample
16
+ ## Example
17
17
 
18
18
  ```ruby
19
- require 'CityPayApiClient'
19
+ require 'citypay_api_client'
20
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)
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
-