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
@@ -0,0 +1,389 @@
1
+ # CityPayApiClient::DirectPostApi
2
+
3
+ All URIs are relative to *https://api.citypay.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**direct_c_res_auth_request**](DirectPostApi.md#direct_c_res_auth_request) | **POST** /direct/cres/auth/{uuid} | Handles a CRes response from ACS, returning back the result of authorisation |
8
+ | [**direct_c_res_tokenise_request**](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 |
9
+ | [**direct_post_auth_request**](DirectPostApi.md#direct_post_auth_request) | **POST** /direct/auth | Direct Post Auth Request |
10
+ | [**direct_post_tokenise_request**](DirectPostApi.md#direct_post_tokenise_request) | **POST** /direct/tokenise | Direct Post Tokenise Request |
11
+ | [**token_request**](DirectPostApi.md#token_request) | **POST** /direct/token | Direct Post Token Request |
12
+
13
+
14
+ ## direct_c_res_auth_request
15
+
16
+ > <AuthResponse> direct_c_res_auth_request(uuid, opts)
17
+
18
+ Handles a CRes response from ACS, returning back the result of authorisation
19
+
20
+ Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
21
+ value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
22
+ perform a `Direct Post` integration who wish to handle the challenge flow themselves.
23
+
24
+
25
+ ### Examples
26
+
27
+ ```ruby
28
+ require 'time'
29
+ require 'citypay_api_client'
30
+
31
+ api_instance = CityPayApiClient::DirectPostApi.new
32
+ uuid = 'uuid_example' # String | An identifier used to track the CReq/CRes cycle.
33
+ opts = {
34
+ cres: 'cres_example', # String | The CRES from the ACS.
35
+ three_ds_session_data: 'three_ds_session_data_example' # String | The session data from the ACS.
36
+ }
37
+
38
+ begin
39
+ # Handles a CRes response from ACS, returning back the result of authorisation
40
+ result = api_instance.direct_c_res_auth_request(uuid, opts)
41
+ p result
42
+ rescue CityPayApiClient::ApiError => e
43
+ puts "Error when calling DirectPostApi->direct_c_res_auth_request: #{e}"
44
+ end
45
+ ```
46
+
47
+ #### Using the direct_c_res_auth_request_with_http_info variant
48
+
49
+ This returns an Array which contains the response data, status code and headers.
50
+
51
+ > <Array(<AuthResponse>, Integer, Hash)> direct_c_res_auth_request_with_http_info(uuid, opts)
52
+
53
+ ```ruby
54
+ begin
55
+ # Handles a CRes response from ACS, returning back the result of authorisation
56
+ data, status_code, headers = api_instance.direct_c_res_auth_request_with_http_info(uuid, opts)
57
+ p status_code # => 2xx
58
+ p headers # => { ... }
59
+ p data # => <AuthResponse>
60
+ rescue CityPayApiClient::ApiError => e
61
+ puts "Error when calling DirectPostApi->direct_c_res_auth_request_with_http_info: #{e}"
62
+ end
63
+ ```
64
+
65
+ ### Parameters
66
+
67
+ | Name | Type | Description | Notes |
68
+ | ---- | ---- | ----------- | ----- |
69
+ | **uuid** | **String** | An identifier used to track the CReq/CRes cycle. | |
70
+ | **cres** | **String** | The CRES from the ACS. | [optional] |
71
+ | **three_ds_session_data** | **String** | The session data from the ACS. | [optional] |
72
+
73
+ ### Return type
74
+
75
+ [**AuthResponse**](AuthResponse.md)
76
+
77
+ ### Authorization
78
+
79
+ No authorization required
80
+
81
+ ### HTTP request headers
82
+
83
+ - **Content-Type**: application/x-www-form-urlencoded
84
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded
85
+
86
+
87
+ ## direct_c_res_tokenise_request
88
+
89
+ > <TokenisationResponseModel> direct_c_res_tokenise_request(uuid, opts)
90
+
91
+ Handles a CRes response from ACS, returning back a token for future authorisation
92
+
93
+ Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
94
+ value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
95
+ perform a `Direct Post` integration who wish to handle the challenge flow themselves.
96
+
97
+
98
+ ### Examples
99
+
100
+ ```ruby
101
+ require 'time'
102
+ require 'citypay_api_client'
103
+
104
+ api_instance = CityPayApiClient::DirectPostApi.new
105
+ uuid = 'uuid_example' # String | An identifier used to track the CReq/CRes cycle.
106
+ opts = {
107
+ cres: 'cres_example', # String | The CRES from the ACS.
108
+ three_ds_session_data: 'three_ds_session_data_example' # String | The session data from the ACS.
109
+ }
110
+
111
+ begin
112
+ # Handles a CRes response from ACS, returning back a token for future authorisation
113
+ result = api_instance.direct_c_res_tokenise_request(uuid, opts)
114
+ p result
115
+ rescue CityPayApiClient::ApiError => e
116
+ puts "Error when calling DirectPostApi->direct_c_res_tokenise_request: #{e}"
117
+ end
118
+ ```
119
+
120
+ #### Using the direct_c_res_tokenise_request_with_http_info variant
121
+
122
+ This returns an Array which contains the response data, status code and headers.
123
+
124
+ > <Array(<TokenisationResponseModel>, Integer, Hash)> direct_c_res_tokenise_request_with_http_info(uuid, opts)
125
+
126
+ ```ruby
127
+ begin
128
+ # Handles a CRes response from ACS, returning back a token for future authorisation
129
+ data, status_code, headers = api_instance.direct_c_res_tokenise_request_with_http_info(uuid, opts)
130
+ p status_code # => 2xx
131
+ p headers # => { ... }
132
+ p data # => <TokenisationResponseModel>
133
+ rescue CityPayApiClient::ApiError => e
134
+ puts "Error when calling DirectPostApi->direct_c_res_tokenise_request_with_http_info: #{e}"
135
+ end
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ | Name | Type | Description | Notes |
141
+ | ---- | ---- | ----------- | ----- |
142
+ | **uuid** | **String** | An identifier used to track the CReq/CRes cycle. | |
143
+ | **cres** | **String** | The CRES from the ACS. | [optional] |
144
+ | **three_ds_session_data** | **String** | The session data from the ACS. | [optional] |
145
+
146
+ ### Return type
147
+
148
+ [**TokenisationResponseModel**](TokenisationResponseModel.md)
149
+
150
+ ### Authorization
151
+
152
+ No authorization required
153
+
154
+ ### HTTP request headers
155
+
156
+ - **Content-Type**: application/x-www-form-urlencoded
157
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded
158
+
159
+
160
+ ## direct_post_auth_request
161
+
162
+ > <AuthResponse> direct_post_auth_request(direct_post_request)
163
+
164
+ Direct Post Auth Request
165
+
166
+ Used to initiate a direct post request transaction flow.
167
+
168
+ <pre class="inline-code language-bash">
169
+ <code>
170
+ curl https://api.citypay.com/direct/auth?cp-domain-key=n834ytqp84y... \
171
+ -d "amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW
172
+ </code>
173
+ </pre>.
174
+
175
+
176
+ ### Examples
177
+
178
+ ```ruby
179
+ require 'time'
180
+ require 'citypay_api_client'
181
+ # setup authorization
182
+ CityPayApiClient.configure do |config|
183
+ # Configure API key authorization: cp-domain-key
184
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
185
+
186
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
187
+ end
188
+
189
+ api_instance = CityPayApiClient::DirectPostApi.new
190
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
191
+
192
+ begin
193
+ # Direct Post Auth Request
194
+ result = api_instance.direct_post_auth_request(direct_post_request)
195
+ p result
196
+ rescue CityPayApiClient::ApiError => e
197
+ puts "Error when calling DirectPostApi->direct_post_auth_request: #{e}"
198
+ end
199
+ ```
200
+
201
+ #### Using the direct_post_auth_request_with_http_info variant
202
+
203
+ This returns an Array which contains the response data, status code and headers.
204
+
205
+ > <Array(<AuthResponse>, Integer, Hash)> direct_post_auth_request_with_http_info(direct_post_request)
206
+
207
+ ```ruby
208
+ begin
209
+ # Direct Post Auth Request
210
+ data, status_code, headers = api_instance.direct_post_auth_request_with_http_info(direct_post_request)
211
+ p status_code # => 2xx
212
+ p headers # => { ... }
213
+ p data # => <AuthResponse>
214
+ rescue CityPayApiClient::ApiError => e
215
+ puts "Error when calling DirectPostApi->direct_post_auth_request_with_http_info: #{e}"
216
+ end
217
+ ```
218
+
219
+ ### Parameters
220
+
221
+ | Name | Type | Description | Notes |
222
+ | ---- | ---- | ----------- | ----- |
223
+ | **direct_post_request** | [**DirectPostRequest**](DirectPostRequest.md) | | |
224
+
225
+ ### Return type
226
+
227
+ [**AuthResponse**](AuthResponse.md)
228
+
229
+ ### Authorization
230
+
231
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
232
+
233
+ ### HTTP request headers
234
+
235
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
236
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
237
+
238
+
239
+ ## direct_post_tokenise_request
240
+
241
+ > <AuthResponse> direct_post_tokenise_request(direct_post_request)
242
+
243
+ Direct Post Tokenise Request
244
+
245
+ Used to initiate a direct post request transaction flow.
246
+
247
+ <pre class="inline-code language-bash">
248
+ <code>
249
+ curl https://api.citypay.com/v6/direct?cp-domain-key=n834ytqp84y... \
250
+ -d "amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW
251
+ </code>
252
+ </pre>.
253
+
254
+
255
+ ### Examples
256
+
257
+ ```ruby
258
+ require 'time'
259
+ require 'citypay_api_client'
260
+ # setup authorization
261
+ CityPayApiClient.configure do |config|
262
+ # Configure API key authorization: cp-domain-key
263
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
264
+
265
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
266
+ end
267
+
268
+ api_instance = CityPayApiClient::DirectPostApi.new
269
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
270
+
271
+ begin
272
+ # Direct Post Tokenise Request
273
+ result = api_instance.direct_post_tokenise_request(direct_post_request)
274
+ p result
275
+ rescue CityPayApiClient::ApiError => e
276
+ puts "Error when calling DirectPostApi->direct_post_tokenise_request: #{e}"
277
+ end
278
+ ```
279
+
280
+ #### Using the direct_post_tokenise_request_with_http_info variant
281
+
282
+ This returns an Array which contains the response data, status code and headers.
283
+
284
+ > <Array(<AuthResponse>, Integer, Hash)> direct_post_tokenise_request_with_http_info(direct_post_request)
285
+
286
+ ```ruby
287
+ begin
288
+ # Direct Post Tokenise Request
289
+ data, status_code, headers = api_instance.direct_post_tokenise_request_with_http_info(direct_post_request)
290
+ p status_code # => 2xx
291
+ p headers # => { ... }
292
+ p data # => <AuthResponse>
293
+ rescue CityPayApiClient::ApiError => e
294
+ puts "Error when calling DirectPostApi->direct_post_tokenise_request_with_http_info: #{e}"
295
+ end
296
+ ```
297
+
298
+ ### Parameters
299
+
300
+ | Name | Type | Description | Notes |
301
+ | ---- | ---- | ----------- | ----- |
302
+ | **direct_post_request** | [**DirectPostRequest**](DirectPostRequest.md) | | |
303
+
304
+ ### Return type
305
+
306
+ [**AuthResponse**](AuthResponse.md)
307
+
308
+ ### Authorization
309
+
310
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
311
+
312
+ ### HTTP request headers
313
+
314
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
315
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
316
+
317
+
318
+ ## token_request
319
+
320
+ > <AuthResponse> token_request(direct_token_auth_request)
321
+
322
+ Direct Post Token Request
323
+
324
+ Perform a request for authorisation for a previously generated token. This flow will return an authorisation
325
+ response stating that the transaction was approved or declined.
326
+
327
+
328
+ ### Examples
329
+
330
+ ```ruby
331
+ require 'time'
332
+ require 'citypay_api_client'
333
+ # setup authorization
334
+ CityPayApiClient.configure do |config|
335
+ # Configure API key authorization: cp-domain-key
336
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
337
+
338
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
339
+ end
340
+
341
+ api_instance = CityPayApiClient::DirectPostApi.new
342
+ direct_token_auth_request = CityPayApiClient::DirectTokenAuthRequest.new # DirectTokenAuthRequest |
343
+
344
+ begin
345
+ # Direct Post Token Request
346
+ result = api_instance.token_request(direct_token_auth_request)
347
+ p result
348
+ rescue CityPayApiClient::ApiError => e
349
+ puts "Error when calling DirectPostApi->token_request: #{e}"
350
+ end
351
+ ```
352
+
353
+ #### Using the token_request_with_http_info variant
354
+
355
+ This returns an Array which contains the response data, status code and headers.
356
+
357
+ > <Array(<AuthResponse>, Integer, Hash)> token_request_with_http_info(direct_token_auth_request)
358
+
359
+ ```ruby
360
+ begin
361
+ # Direct Post Token Request
362
+ data, status_code, headers = api_instance.token_request_with_http_info(direct_token_auth_request)
363
+ p status_code # => 2xx
364
+ p headers # => { ... }
365
+ p data # => <AuthResponse>
366
+ rescue CityPayApiClient::ApiError => e
367
+ puts "Error when calling DirectPostApi->token_request_with_http_info: #{e}"
368
+ end
369
+ ```
370
+
371
+ ### Parameters
372
+
373
+ | Name | Type | Description | Notes |
374
+ | ---- | ---- | ----------- | ----- |
375
+ | **direct_token_auth_request** | [**DirectTokenAuthRequest**](DirectTokenAuthRequest.md) | | |
376
+
377
+ ### Return type
378
+
379
+ [**AuthResponse**](AuthResponse.md)
380
+
381
+ ### Authorization
382
+
383
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
384
+
385
+ ### HTTP request headers
386
+
387
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
388
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
389
+
@@ -0,0 +1,60 @@
1
+ # CityPayApiClient::DirectPostRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **Integer** | The amount to authorise in the lowest unit of currency with a variable length to a maximum of 12 digits. No decimal points are to be included and no divisional characters such as 1,024. The amount should be the total amount required for the transaction. For example with GBP £1,021.95 the amount value is 102195. | |
8
+ | **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
9
+ | **bill_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
10
+ | **cardnumber** | **String** | The card number (PAN) with a variable length to a maximum of 21 digits in numerical form. Any non numeric characters will be stripped out of the card number, this includes whitespace or separators internal of the provided value. The card number must be treated as sensitive data. We only provide an obfuscated value in logging and reporting. The plaintext value is encrypted in our database using AES 256 GMC bit encryption for settlement or refund purposes. When providing the card number to our gateway through the authorisation API you will be handling the card data on your application. This will require further PCI controls to be in place and this value must never be stored. | |
11
+ | **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify posession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
12
+ | **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
13
+ | **currency** | **String** | The processing currency for the transaction. Will default to the merchant account currency. | [optional] |
14
+ | **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. &#x60;2&#x60; to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. &#x60;3&#x60; to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
15
+ | **expmonth** | **Integer** | The month of expiry of the card. The month value should be a numerical value between 1 and 12. | |
16
+ | **expyear** | **Integer** | The year of expiry of the card. | |
17
+ | **identifier** | **String** | The identifier of the transaction to process. The value should be a valid reference and may be used to perform post processing actions and to aid in reconciliation of transactions. The value should be a valid printable string with ASCII character ranges from 0x32 to 0x127. The identifier is recommended to be distinct for each transaction such as a [random unique identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier) this will aid in ensuring each transaction is identifiable. When transactions are processed they are also checked for duplicate requests. Changing the identifier on a subsequent request will ensure that a transaction is considered as different. | |
18
+ | **mac** | **String** | A message authentication code ensures the data is authentic and that the intended amount has not been tampered with. The mac value is generated using a hash-based mac value. The following algorithm is used. - A key (k) is derived from your licence key - A value (v) is produced by concatenating the nonce, amount value and identifier, such as a purchase with nonce &#x60;0123456789ABCDEF&#x60; an amount of £275.95 and an identifier of OD-12345678 would become &#x60;0123456789ABCDEF27595OD-12345678&#x60; and extracting the UTF-8 byte values - The result from HMAC_SHA256(k, v) is hex-encoded (upper-case) - For instance, a licence key of &#x60;LK123456789&#x60;, a nonce of &#x60;0123456789ABCDEF&#x60;, an amount of &#x60;27595&#x60; and an identifier of &#x60;OD-12345678&#x60; would generate a MAC of &#x60;163DBAB194D743866A9BCC7FC9C8A88FCD99C6BBBF08D619291212D1B91EE12E&#x60;. | |
19
+ | **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the address did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
20
+ | **name_on_card** | **String** | The card holder name as appears on the card such as MR N E BODY. Required for some acquirers. | [optional] |
21
+ | **nonce** | **String** | A random value Hex string (uppercase) which is provided to the API to perform a digest. The value will be used in any digest function. | [optional] |
22
+ | **redirect_failure** | **String** | The URL used to redirect back to your site when a transaction has been rejected or declined. Required if a url-encoded request. | [optional] |
23
+ | **redirect_success** | **String** | The URL used to redirect back to your site when a transaction has been tokenised or authorised. Required if a url-encoded request. | [optional] |
24
+ | **ship_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
25
+ | **tag** | **String** | A \&quot;tag\&quot; is a label that you can attach to a payment authorization. Tags can help you group transactions together based on certain criteria, like a work job or a ticket number. They can also assist in filtering transactions when you&#39;re generating reports. Multiple Tags You can add more than one tag to a transaction by separating them with commas. Limitations There is a maximum limit of 3 tags that can be added to a single transaction. Each tag can be no longer than 20 characters and alphanumeric with no spaces. Example: Let&#39;s say you&#39;re a software company and you have different teams working on various projects. When a team makes a purchase or incurs an expense, they can tag the transaction with the project name, the team name, and the type of expense. Project Name: Project_X Team Name: Team_A Type of Expense: Hardware So, the tag for a transaction might look like: Project_X,Team_A,Hardware This way, when you&#39;re looking at your financial reports, you can easily filter transactions based on these tags to see how much each project or team is spending on different types of expenses. | [optional] |
26
+ | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
27
+ | **trans_info** | **String** | Further information that can be added to the transaction will display in reporting. Can be used for flexible values such as operator id. | [optional] |
28
+ | **trans_type** | **String** | The type of transaction being submitted. Normally this value is not required and your account manager may request that you set this field. | [optional] |
29
+
30
+ ## Example
31
+
32
+ ```ruby
33
+ require 'citypay_api_client'
34
+
35
+ instance = CityPayApiClient::DirectPostRequest.new(
36
+ amount: 3600,
37
+ avs_postcode_policy: null,
38
+ bill_to: null,
39
+ cardnumber: 4000 0000 0000 0002,
40
+ csc: 10,
41
+ csc_policy: null,
42
+ currency: GBP,
43
+ duplicate_policy: null,
44
+ expmonth: 9,
45
+ expyear: 2027,
46
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
47
+ mac: 3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D,
48
+ match_avsa: null,
49
+ name_on_card: MR NE BODY,
50
+ nonce: 0123456789ABCDEF,
51
+ redirect_failure: https://pay.mystore.com/continue_failure,
52
+ redirect_success: https://pay.mystore.com/continue_success,
53
+ ship_to: null,
54
+ tag: null,
55
+ threedsecure: null,
56
+ trans_info: null,
57
+ trans_type: null
58
+ )
59
+ ```
60
+
@@ -0,0 +1,24 @@
1
+ # CityPayApiClient::DirectTokenAuthRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **nonce** | **String** | A random value string which is provided to the API to perform a digest. The value will be used by its UTF-8 byte representation of any digest function. | [optional] |
8
+ | **redirect_failure** | **String** | The URL used to redirect back to your site when a transaction has been rejected or declined. Required if a url-encoded request. | [optional] |
9
+ | **redirect_success** | **String** | The URL used to redirect back to your site when a transaction has been authorised. Required if a url-encoded request. | [optional] |
10
+ | **token** | **String** | The token required to process the transaction as presented by the direct post methodology. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'citypay_api_client'
16
+
17
+ instance = CityPayApiClient::DirectTokenAuthRequest.new(
18
+ nonce: 0123456789ABCDEF,
19
+ redirect_failure: https://pay.mystore.com/continue_failure,
20
+ redirect_success: https://pay.mystore.com/continue_success,
21
+ token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr
22
+ )
23
+ ```
24
+
@@ -0,0 +1,18 @@
1
+ # CityPayApiClient::DomainKeyCheckRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain_key** | **String** | The domain key to check. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'citypay_api_client'
13
+
14
+ instance = CityPayApiClient::DomainKeyCheckRequest.new(
15
+ domain_key: 3MEcU8cEf...QMeebACxcQVejmT1Wi
16
+ )
17
+ ```
18
+
@@ -0,0 +1,22 @@
1
+ # CityPayApiClient::DomainKeyRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **domain** | **Array&lt;String&gt;** | | |
8
+ | **live** | **Boolean** | Specifies if the key is to be used for production. Defaults to false. | [optional] |
9
+ | **merchantid** | **Integer** | The merchant id the domain key is to be used for. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'citypay_api_client'
15
+
16
+ instance = CityPayApiClient::DomainKeyRequest.new(
17
+ domain: null,
18
+ live: true,
19
+ merchantid: 11223344
20
+ )
21
+ ```
22
+
@@ -0,0 +1,26 @@
1
+ # CityPayApiClient::DomainKeyResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **date_created** | **Time** | The date the domain key was generated. | [optional] |
8
+ | **domain** | **Array&lt;String&gt;** | | |
9
+ | **domain_key** | **String** | The domain key generated. | [optional] |
10
+ | **live** | **Boolean** | true if this key is a production key. | [optional] |
11
+ | **merchantid** | **Integer** | The merchant id the domain key is to be used for. | |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'citypay_api_client'
17
+
18
+ instance = CityPayApiClient::DomainKeyResponse.new(
19
+ date_created: 2020-01-02T18:32:28Z,
20
+ domain: null,
21
+ domain_key: 3MEcU8cEf...QMeebACxcQVejmT1Wi,
22
+ live: true,
23
+ merchantid: 11223344
24
+ )
25
+ ```
26
+
data/docs/Error.md CHANGED
@@ -2,22 +2,25 @@
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
+ | **response_dt** | **Time** | The ISO-8601 UTC date and time of the response data. | [optional] |
11
12
 
12
- ## Code Sample
13
+ ## Example
13
14
 
14
15
  ```ruby
15
- require 'CityPayApiClient'
16
+ require 'citypay_api_client'
16
17
 
17
- instance = CityPayApiClient::Error.new(code: 0,
18
- context: aspiu352908ns47n343598bads,
19
- identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
20
- message: Approved 044332)
18
+ instance = CityPayApiClient::Error.new(
19
+ code: 0,
20
+ context: aspiu352908ns47n343598bads,
21
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
22
+ message: Approved 044332,
23
+ response_dt: 2020-01-02T18:32:28Z
24
+ )
21
25
  ```
22
26
 
23
-
@@ -0,0 +1,26 @@
1
+ # CityPayApiClient::EventDataModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **event_end_date** | **Date** | The date when the event ends in ISO format (yyyy-MM-dd). | [optional] |
8
+ | **event_id** | **String** | An id of the event. | [optional] |
9
+ | **event_organiser_id** | **String** | An id of the event organiser. | [optional] |
10
+ | **event_start_date** | **Date** | The date when the event starts in ISO format (yyyy-MM-dd). | [optional] |
11
+ | **payment_type** | **String** | The type of payment such as &#x60;deposit&#x60; or &#x60;balance&#x60;. | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'citypay_api_client'
17
+
18
+ instance = CityPayApiClient::EventDataModel.new(
19
+ event_end_date: null,
20
+ event_id: null,
21
+ event_organiser_id: null,
22
+ event_start_date: null,
23
+ payment_type: null
24
+ )
25
+ ```
26
+
data/docs/Exists.md ADDED
@@ -0,0 +1,22 @@
1
+ # CityPayApiClient::Exists
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **active** | **Boolean** | Boolean value whether the entity is active. | [optional] |
8
+ | **exists** | **Boolean** | Boolean value whether the entity exists. | |
9
+ | **last_modified** | **Time** | The last modified date of the entity. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'citypay_api_client'
15
+
16
+ instance = CityPayApiClient::Exists.new(
17
+ active: true,
18
+ exists: true,
19
+ last_modified: 2020-01-02T18:32:28Z
20
+ )
21
+ ```
22
+