citypay_api_client 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -34
  3. data/citypay_api_client.gemspec +4 -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 +50 -49
  14. data/docs/AuthResponse.md +60 -59
  15. data/docs/AuthenRequired.md +12 -11
  16. data/docs/AuthorisationAndPaymentApi.md +559 -0
  17. data/docs/Batch.md +22 -0
  18. data/docs/BatchProcessingApi.md +214 -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 +40 -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 +326 -105
  30. data/docs/CardStatus.md +10 -9
  31. data/docs/ChargeRequest.md +36 -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 +365 -0
  37. data/docs/DirectPostRequest.md +58 -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/OperationalApi.md +124 -22
  50. data/docs/OperationalFunctionsApi.md +355 -0
  51. data/docs/PaResAuthRequest.md +10 -9
  52. data/docs/PaylinkAddress.md +30 -0
  53. data/docs/PaylinkAdjustmentRequest.md +22 -0
  54. data/docs/PaylinkApi.md +630 -0
  55. data/docs/PaylinkAttachmentRequest.md +26 -0
  56. data/docs/PaylinkAttachmentResult.md +22 -0
  57. data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
  58. data/docs/PaylinkCardHolder.md +36 -0
  59. data/docs/PaylinkCart.md +30 -0
  60. data/docs/PaylinkCartItemModel.md +32 -0
  61. data/docs/PaylinkConfig.md +60 -0
  62. data/docs/PaylinkCustomParam.md +36 -0
  63. data/docs/PaylinkEmailNotificationPath.md +26 -0
  64. data/docs/PaylinkErrorCode.md +20 -0
  65. data/docs/PaylinkFieldGuardModel.md +30 -0
  66. data/docs/PaylinkPartPayments.md +28 -0
  67. data/docs/PaylinkSMSNotificationPath.md +20 -0
  68. data/docs/PaylinkStateEvent.md +22 -0
  69. data/docs/PaylinkTokenCreated.md +44 -0
  70. data/docs/PaylinkTokenRequestModel.md +38 -0
  71. data/docs/PaylinkTokenStatus.md +72 -0
  72. data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
  73. data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
  74. data/docs/PaylinkUI.md +24 -0
  75. data/docs/PaymentProcessingApi.md +307 -68
  76. data/docs/Ping.md +8 -7
  77. data/docs/ProcessBatchRequest.md +24 -0
  78. data/docs/ProcessBatchResponse.md +20 -0
  79. data/docs/RefundRequest.md +26 -0
  80. data/docs/RegisterCard.md +16 -13
  81. data/docs/RequestChallenged.md +16 -15
  82. data/docs/RetrieveRequest.md +12 -11
  83. data/docs/ThreeDSecure.md +32 -15
  84. data/docs/TokenisationResponseModel.md +36 -0
  85. data/docs/VoidRequest.md +12 -13
  86. data/lib/.DS_Store +0 -0
  87. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
  88. data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
  89. data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
  90. data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
  91. data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
  92. data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
  93. data/lib/citypay_api_client/api_client.rb +59 -59
  94. data/lib/citypay_api_client/api_error.rb +2 -2
  95. data/lib/citypay_api_client/configuration.rb +53 -15
  96. data/lib/citypay_api_client/models/account_create.rb +21 -8
  97. data/lib/citypay_api_client/models/account_status.rb +21 -8
  98. data/lib/citypay_api_client/models/acknowledgement.rb +21 -8
  99. data/lib/citypay_api_client/models/acl_check_request.rb +224 -0
  100. data/lib/citypay_api_client/models/acl_check_response_model.rb +249 -0
  101. data/lib/citypay_api_client/models/airline_advice.rb +23 -10
  102. data/lib/citypay_api_client/models/airline_segment.rb +21 -8
  103. data/lib/citypay_api_client/models/api_key.rb +16 -0
  104. data/lib/citypay_api_client/models/auth_reference.rb +45 -11
  105. data/lib/citypay_api_client/models/auth_references.rb +21 -8
  106. data/lib/citypay_api_client/models/auth_request.rb +79 -33
  107. data/lib/citypay_api_client/models/auth_response.rb +43 -106
  108. data/lib/citypay_api_client/models/authen_required.rb +21 -8
  109. data/lib/citypay_api_client/models/batch.rb +264 -0
  110. data/lib/citypay_api_client/models/batch_report_request.rb +277 -0
  111. data/lib/citypay_api_client/models/batch_report_response_model.rb +357 -0
  112. data/lib/citypay_api_client/models/batch_transaction.rb +321 -0
  113. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +421 -0
  114. data/lib/citypay_api_client/models/bin.rb +299 -0
  115. data/lib/citypay_api_client/models/bin_lookup.rb +234 -0
  116. data/lib/citypay_api_client/models/c_res_auth_request.rb +21 -8
  117. data/lib/citypay_api_client/models/capture_request.rb +38 -20
  118. data/lib/citypay_api_client/models/card.rb +67 -10
  119. data/lib/citypay_api_client/models/card_holder_account.rb +35 -12
  120. data/lib/citypay_api_client/models/card_status.rb +21 -8
  121. data/lib/citypay_api_client/models/charge_request.rb +96 -24
  122. data/lib/citypay_api_client/models/check_batch_status.rb +259 -0
  123. data/lib/citypay_api_client/models/check_batch_status_response.rb +220 -0
  124. data/lib/citypay_api_client/models/contact_details.rb +87 -44
  125. data/lib/citypay_api_client/models/decision.rb +21 -8
  126. data/lib/citypay_api_client/models/direct_post_request.rb +670 -0
  127. data/lib/citypay_api_client/models/direct_token_auth_request.rb +249 -0
  128. data/lib/citypay_api_client/models/domain_key_check_request.rb +252 -0
  129. data/lib/citypay_api_client/models/domain_key_request.rb +250 -0
  130. data/lib/citypay_api_client/models/domain_key_response.rb +294 -0
  131. data/lib/citypay_api_client/models/error.rb +35 -12
  132. data/lib/citypay_api_client/models/event_data_model.rb +259 -0
  133. data/lib/citypay_api_client/models/exists.rb +244 -0
  134. data/lib/citypay_api_client/models/external_mpi.rb +27 -8
  135. data/lib/citypay_api_client/models/list_merchants_response.rb +21 -8
  136. data/lib/citypay_api_client/models/mcc6012.rb +21 -8
  137. data/lib/citypay_api_client/models/merchant.rb +21 -8
  138. data/lib/citypay_api_client/models/pa_res_auth_request.rb +22 -9
  139. data/lib/citypay_api_client/models/paylink_address.rb +402 -0
  140. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +269 -0
  141. data/lib/citypay_api_client/models/paylink_attachment_request.rb +269 -0
  142. data/lib/citypay_api_client/models/paylink_attachment_result.rb +249 -0
  143. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +292 -0
  144. data/lib/citypay_api_client/models/paylink_card_holder.rb +353 -0
  145. data/lib/citypay_api_client/models/paylink_cart.rb +280 -0
  146. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +289 -0
  147. data/lib/citypay_api_client/models/paylink_config.rb +433 -0
  148. data/lib/citypay_api_client/models/paylink_custom_param.rb +314 -0
  149. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +268 -0
  150. data/lib/citypay_api_client/models/paylink_error_code.rb +239 -0
  151. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +279 -0
  152. data/lib/citypay_api_client/models/paylink_part_payments.rb +269 -0
  153. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +234 -0
  154. data/lib/citypay_api_client/models/paylink_state_event.rb +239 -0
  155. data/lib/citypay_api_client/models/paylink_token_created.rb +364 -0
  156. data/lib/citypay_api_client/models/paylink_token_request_model.rb +374 -0
  157. data/lib/citypay_api_client/models/paylink_token_status.rb +490 -0
  158. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +270 -0
  159. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +235 -0
  160. data/lib/citypay_api_client/models/paylink_ui.rb +249 -0
  161. data/lib/citypay_api_client/models/ping.rb +21 -8
  162. data/lib/citypay_api_client/models/process_batch_request.rb +308 -0
  163. data/lib/citypay_api_client/models/process_batch_response.rb +234 -0
  164. data/lib/citypay_api_client/models/refund_request.rb +332 -0
  165. data/lib/citypay_api_client/models/register_card.rb +59 -12
  166. data/lib/citypay_api_client/models/request_challenged.rb +29 -16
  167. data/lib/citypay_api_client/models/retrieve_request.rb +21 -8
  168. data/lib/citypay_api_client/models/three_d_secure.rb +106 -13
  169. data/lib/citypay_api_client/models/tokenisation_response_model.rb +333 -0
  170. data/lib/citypay_api_client/models/void_request.rb +22 -19
  171. data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
  172. data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
  173. data/lib/citypay_api_client/version.rb +3 -3
  174. data/lib/citypay_api_client.rb +53 -6
  175. data/spec/.DS_Store +0 -0
  176. data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
  177. data/spec/api/batch_processing_api___spec.rb +70 -0
  178. data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
  179. data/spec/api/direct_post_api___spec.rb +98 -0
  180. data/spec/api/operational_functions_api___spec.rb +94 -0
  181. data/spec/api/paylink_api___spec.rb +131 -0
  182. data/spec/api_client_spec.rb +4 -4
  183. data/spec/configuration_spec.rb +5 -5
  184. data/spec/it_api_sandbox_spec.rb +222 -0
  185. data/spec/models/acknowledgement_spec.rb +6 -8
  186. data/spec/models/acl_check_request_spec.rb +33 -0
  187. data/spec/models/acl_check_response_model_spec.rb +51 -0
  188. data/spec/models/auth_references_spec.rb +7 -8
  189. data/spec/models/auth_response_spec.rb +29 -30
  190. data/spec/models/batch_report_request_spec.rb +39 -0
  191. data/spec/models/batch_report_response_model_spec.rb +63 -0
  192. data/spec/models/batch_spec.rb +45 -0
  193. data/spec/models/batch_transaction_result_model_spec.rb +87 -0
  194. data/spec/models/batch_transaction_spec.rb +51 -0
  195. data/spec/models/bin_lookup_spec.rb +33 -0
  196. data/spec/models/bin_spec.rb +81 -0
  197. data/spec/models/card_holder_account_spec.rb +8 -5
  198. data/spec/models/check_batch_status_response_spec.rb +45 -0
  199. data/spec/models/check_batch_status_spec.rb +39 -0
  200. data/spec/models/decision_spec.rb +1 -1
  201. data/spec/models/direct_post_request_spec.rb +153 -0
  202. data/spec/models/direct_token_auth_request_spec.rb +51 -0
  203. data/spec/models/domain_key_check_request_spec.rb +33 -0
  204. data/spec/models/domain_key_request_spec.rb +45 -0
  205. data/spec/models/domain_key_response_spec.rb +57 -0
  206. data/spec/models/event_data_model_spec.rb +57 -0
  207. data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
  208. data/spec/models/list_merchants_response_spec.rb +2 -2
  209. data/spec/models/paylink_address_spec.rb +69 -0
  210. data/spec/models/paylink_adjustment_request_spec.rb +45 -0
  211. data/spec/models/paylink_attachment_request_spec.rb +45 -0
  212. data/spec/models/paylink_attachment_result_spec.rb +45 -0
  213. data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
  214. data/spec/models/paylink_card_holder_spec.rb +87 -0
  215. data/spec/models/paylink_cart_item_model_spec.rb +75 -0
  216. data/spec/models/paylink_cart_spec.rb +69 -0
  217. data/spec/models/paylink_config_spec.rb +159 -0
  218. data/spec/models/paylink_custom_param_spec.rb +87 -0
  219. data/spec/models/paylink_email_notification_path_spec.rb +57 -0
  220. data/spec/models/paylink_error_code_spec.rb +39 -0
  221. data/spec/models/paylink_field_guard_model_spec.rb +45 -0
  222. data/spec/models/paylink_part_payments_spec.rb +63 -0
  223. data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
  224. data/spec/models/paylink_state_event_spec.rb +45 -0
  225. data/spec/models/paylink_token_created_spec.rb +111 -0
  226. data/spec/models/paylink_token_request_model_spec.rb +93 -0
  227. data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
  228. data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
  229. data/spec/models/paylink_token_status_spec.rb +195 -0
  230. data/spec/models/paylink_ui_spec.rb +51 -0
  231. data/spec/models/process_batch_request_spec.rb +51 -0
  232. data/spec/models/process_batch_response_spec.rb +39 -0
  233. data/spec/models/refund_request_spec.rb +64 -0
  234. data/spec/models/tokenisation_response_model_spec.rb +87 -0
  235. data/spec/spec_helper.rb +2 -2
  236. data/spec/utils/direct_post_mac_spec.rb +13 -0
  237. metadata +212 -37
  238. data/Gemfile.lock +0 -70
  239. data/git_push.sh +0 -58
  240. data/lib/citypay_api_client/api/operational_api.rb +0 -147
  241. data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
  242. data/lib/citypay_api_client/test.rb +0 -20
  243. data/spec/api/payment_processing_api_spec.rb +0 -106
@@ -0,0 +1,365 @@
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` value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to perform a `Direct Post` integration who wish to handle the challenge flow themselves.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'citypay_api_client'
27
+
28
+ api_instance = CityPayApiClient::DirectPostApi.new
29
+ uuid = 'uuid_example' # String | An identifier used to track the CReq/CRes cycle.
30
+ opts = {
31
+ cres: 'cres_example', # String | The CRES from the ACS.
32
+ three_ds_session_data: 'three_ds_session_data_example' # String | The session data from the ACS.
33
+ }
34
+
35
+ begin
36
+ # Handles a CRes response from ACS, returning back the result of authorisation
37
+ result = api_instance.direct_c_res_auth_request(uuid, opts)
38
+ p result
39
+ rescue CityPayApiClient::ApiError => e
40
+ puts "Error when calling DirectPostApi->direct_c_res_auth_request: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the direct_c_res_auth_request_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<AuthResponse>, Integer, Hash)> direct_c_res_auth_request_with_http_info(uuid, opts)
49
+
50
+ ```ruby
51
+ begin
52
+ # Handles a CRes response from ACS, returning back the result of authorisation
53
+ data, status_code, headers = api_instance.direct_c_res_auth_request_with_http_info(uuid, opts)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <AuthResponse>
57
+ rescue CityPayApiClient::ApiError => e
58
+ puts "Error when calling DirectPostApi->direct_c_res_auth_request_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **uuid** | **String** | An identifier used to track the CReq/CRes cycle. | |
67
+ | **cres** | **String** | The CRES from the ACS. | [optional] |
68
+ | **three_ds_session_data** | **String** | The session data from the ACS. | [optional] |
69
+
70
+ ### Return type
71
+
72
+ [**AuthResponse**](AuthResponse.md)
73
+
74
+ ### Authorization
75
+
76
+ No authorization required
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/x-www-form-urlencoded
81
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded
82
+
83
+
84
+ ## direct_c_res_tokenise_request
85
+
86
+ > <TokenisationResponseModel> direct_c_res_tokenise_request(uuid, opts)
87
+
88
+ Handles a CRes response from ACS, returning back a token for future authorisation
89
+
90
+ Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData` value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to perform a `Direct Post` integration who wish to handle the challenge flow themselves.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'citypay_api_client'
97
+
98
+ api_instance = CityPayApiClient::DirectPostApi.new
99
+ uuid = 'uuid_example' # String | An identifier used to track the CReq/CRes cycle.
100
+ opts = {
101
+ cres: 'cres_example', # String | The CRES from the ACS.
102
+ three_ds_session_data: 'three_ds_session_data_example' # String | The session data from the ACS.
103
+ }
104
+
105
+ begin
106
+ # Handles a CRes response from ACS, returning back a token for future authorisation
107
+ result = api_instance.direct_c_res_tokenise_request(uuid, opts)
108
+ p result
109
+ rescue CityPayApiClient::ApiError => e
110
+ puts "Error when calling DirectPostApi->direct_c_res_tokenise_request: #{e}"
111
+ end
112
+ ```
113
+
114
+ #### Using the direct_c_res_tokenise_request_with_http_info variant
115
+
116
+ This returns an Array which contains the response data, status code and headers.
117
+
118
+ > <Array(<TokenisationResponseModel>, Integer, Hash)> direct_c_res_tokenise_request_with_http_info(uuid, opts)
119
+
120
+ ```ruby
121
+ begin
122
+ # Handles a CRes response from ACS, returning back a token for future authorisation
123
+ data, status_code, headers = api_instance.direct_c_res_tokenise_request_with_http_info(uuid, opts)
124
+ p status_code # => 2xx
125
+ p headers # => { ... }
126
+ p data # => <TokenisationResponseModel>
127
+ rescue CityPayApiClient::ApiError => e
128
+ puts "Error when calling DirectPostApi->direct_c_res_tokenise_request_with_http_info: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Name | Type | Description | Notes |
135
+ | ---- | ---- | ----------- | ----- |
136
+ | **uuid** | **String** | An identifier used to track the CReq/CRes cycle. | |
137
+ | **cres** | **String** | The CRES from the ACS. | [optional] |
138
+ | **three_ds_session_data** | **String** | The session data from the ACS. | [optional] |
139
+
140
+ ### Return type
141
+
142
+ [**TokenisationResponseModel**](TokenisationResponseModel.md)
143
+
144
+ ### Authorization
145
+
146
+ No authorization required
147
+
148
+ ### HTTP request headers
149
+
150
+ - **Content-Type**: application/x-www-form-urlencoded
151
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded
152
+
153
+
154
+ ## direct_post_auth_request
155
+
156
+ > <AuthResponse> direct_post_auth_request(direct_post_request)
157
+
158
+ Direct Post Auth Request
159
+
160
+ Used to initiate a direct post request transaction flow. <pre class=\"inline-code language-bash\"> <code> curl https://api.citypay.com/direct/auth?cp-domain-key=n834ytqp84y... \\ -d \"amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW </code> </pre>.
161
+
162
+ ### Examples
163
+
164
+ ```ruby
165
+ require 'time'
166
+ require 'citypay_api_client'
167
+ # setup authorization
168
+ CityPayApiClient.configure do |config|
169
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
170
+
171
+ # Configure API key authorization: cp-domain-key
172
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
173
+ end
174
+
175
+ api_instance = CityPayApiClient::DirectPostApi.new
176
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
177
+
178
+ begin
179
+ # Direct Post Auth Request
180
+ result = api_instance.direct_post_auth_request(direct_post_request)
181
+ p result
182
+ rescue CityPayApiClient::ApiError => e
183
+ puts "Error when calling DirectPostApi->direct_post_auth_request: #{e}"
184
+ end
185
+ ```
186
+
187
+ #### Using the direct_post_auth_request_with_http_info variant
188
+
189
+ This returns an Array which contains the response data, status code and headers.
190
+
191
+ > <Array(<AuthResponse>, Integer, Hash)> direct_post_auth_request_with_http_info(direct_post_request)
192
+
193
+ ```ruby
194
+ begin
195
+ # Direct Post Auth Request
196
+ data, status_code, headers = api_instance.direct_post_auth_request_with_http_info(direct_post_request)
197
+ p status_code # => 2xx
198
+ p headers # => { ... }
199
+ p data # => <AuthResponse>
200
+ rescue CityPayApiClient::ApiError => e
201
+ puts "Error when calling DirectPostApi->direct_post_auth_request_with_http_info: #{e}"
202
+ end
203
+ ```
204
+
205
+ ### Parameters
206
+
207
+ | Name | Type | Description | Notes |
208
+ | ---- | ---- | ----------- | ----- |
209
+ | **direct_post_request** | [**DirectPostRequest**](DirectPostRequest.md) | | |
210
+
211
+ ### Return type
212
+
213
+ [**AuthResponse**](AuthResponse.md)
214
+
215
+ ### Authorization
216
+
217
+ [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
218
+
219
+ ### HTTP request headers
220
+
221
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
222
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
223
+
224
+
225
+ ## direct_post_tokenise_request
226
+
227
+ > <AuthResponse> direct_post_tokenise_request(direct_post_request)
228
+
229
+ Direct Post Tokenise Request
230
+
231
+ Used to initiate a direct post request transaction flow. <pre class=\"inline-code language-bash\"> <code> curl https://api.citypay.com/v6/direct?cp-domain-key=n834ytqp84y... \\ -d \"amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW </code> </pre>.
232
+
233
+ ### Examples
234
+
235
+ ```ruby
236
+ require 'time'
237
+ require 'citypay_api_client'
238
+ # setup authorization
239
+ CityPayApiClient.configure do |config|
240
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
241
+
242
+ # Configure API key authorization: cp-domain-key
243
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
244
+ end
245
+
246
+ api_instance = CityPayApiClient::DirectPostApi.new
247
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
248
+
249
+ begin
250
+ # Direct Post Tokenise Request
251
+ result = api_instance.direct_post_tokenise_request(direct_post_request)
252
+ p result
253
+ rescue CityPayApiClient::ApiError => e
254
+ puts "Error when calling DirectPostApi->direct_post_tokenise_request: #{e}"
255
+ end
256
+ ```
257
+
258
+ #### Using the direct_post_tokenise_request_with_http_info variant
259
+
260
+ This returns an Array which contains the response data, status code and headers.
261
+
262
+ > <Array(<AuthResponse>, Integer, Hash)> direct_post_tokenise_request_with_http_info(direct_post_request)
263
+
264
+ ```ruby
265
+ begin
266
+ # Direct Post Tokenise Request
267
+ data, status_code, headers = api_instance.direct_post_tokenise_request_with_http_info(direct_post_request)
268
+ p status_code # => 2xx
269
+ p headers # => { ... }
270
+ p data # => <AuthResponse>
271
+ rescue CityPayApiClient::ApiError => e
272
+ puts "Error when calling DirectPostApi->direct_post_tokenise_request_with_http_info: #{e}"
273
+ end
274
+ ```
275
+
276
+ ### Parameters
277
+
278
+ | Name | Type | Description | Notes |
279
+ | ---- | ---- | ----------- | ----- |
280
+ | **direct_post_request** | [**DirectPostRequest**](DirectPostRequest.md) | | |
281
+
282
+ ### Return type
283
+
284
+ [**AuthResponse**](AuthResponse.md)
285
+
286
+ ### Authorization
287
+
288
+ [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
289
+
290
+ ### HTTP request headers
291
+
292
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
293
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
294
+
295
+
296
+ ## token_request
297
+
298
+ > <AuthResponse> token_request(direct_token_auth_request)
299
+
300
+ Direct Post Token Request
301
+
302
+ Perform a request for authorisation for a previously generated token. This flow will return an authorisation response stating that the transaction was approved or declined.
303
+
304
+ ### Examples
305
+
306
+ ```ruby
307
+ require 'time'
308
+ require 'citypay_api_client'
309
+ # setup authorization
310
+ CityPayApiClient.configure do |config|
311
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
312
+
313
+ # Configure API key authorization: cp-domain-key
314
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
315
+ end
316
+
317
+ api_instance = CityPayApiClient::DirectPostApi.new
318
+ direct_token_auth_request = CityPayApiClient::DirectTokenAuthRequest.new # DirectTokenAuthRequest |
319
+
320
+ begin
321
+ # Direct Post Token Request
322
+ result = api_instance.token_request(direct_token_auth_request)
323
+ p result
324
+ rescue CityPayApiClient::ApiError => e
325
+ puts "Error when calling DirectPostApi->token_request: #{e}"
326
+ end
327
+ ```
328
+
329
+ #### Using the token_request_with_http_info variant
330
+
331
+ This returns an Array which contains the response data, status code and headers.
332
+
333
+ > <Array(<AuthResponse>, Integer, Hash)> token_request_with_http_info(direct_token_auth_request)
334
+
335
+ ```ruby
336
+ begin
337
+ # Direct Post Token Request
338
+ data, status_code, headers = api_instance.token_request_with_http_info(direct_token_auth_request)
339
+ p status_code # => 2xx
340
+ p headers # => { ... }
341
+ p data # => <AuthResponse>
342
+ rescue CityPayApiClient::ApiError => e
343
+ puts "Error when calling DirectPostApi->token_request_with_http_info: #{e}"
344
+ end
345
+ ```
346
+
347
+ ### Parameters
348
+
349
+ | Name | Type | Description | Notes |
350
+ | ---- | ---- | ----------- | ----- |
351
+ | **direct_token_auth_request** | [**DirectTokenAuthRequest**](DirectTokenAuthRequest.md) | | |
352
+
353
+ ### Return type
354
+
355
+ [**AuthResponse**](AuthResponse.md)
356
+
357
+ ### Authorization
358
+
359
+ [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
360
+
361
+ ### HTTP request headers
362
+
363
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
364
+ - **Accept**: application/json, application/xml, application/x-www-form-urlencoded, text/xml
365
+
@@ -0,0 +1,58 @@
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
+ | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
26
+ | **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] |
27
+ | **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] |
28
+
29
+ ## Example
30
+
31
+ ```ruby
32
+ require 'citypay_api_client'
33
+
34
+ instance = CityPayApiClient::DirectPostRequest.new(
35
+ amount: 3600,
36
+ avs_postcode_policy: null,
37
+ bill_to: null,
38
+ cardnumber: 4000 0000 0000 0002,
39
+ csc: 10,
40
+ csc_policy: null,
41
+ currency: GBP,
42
+ duplicate_policy: null,
43
+ expmonth: 9,
44
+ expyear: 2025,
45
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
46
+ mac: 3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D,
47
+ match_avsa: null,
48
+ name_on_card: MR NE BODY,
49
+ nonce: 0123456789ABCDEF,
50
+ redirect_failure: https://pay.mystore.com/continue_failure,
51
+ redirect_success: https://pay.mystore.com/continue_success,
52
+ ship_to: null,
53
+ threedsecure: null,
54
+ trans_info: null,
55
+ trans_type: null
56
+ )
57
+ ```
58
+
@@ -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
+
data/docs/ExternalMPI.md CHANGED
@@ -2,24 +2,25 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **authen_result** | **String** | The authentication result available from the MPI. | [optional]
8
- **cavv** | **String** | A value determining the cardholder verification value supplied by the card scheme. | [optional]
9
- **eci** | **Integer** | The obtained e-commerce indicator from the MPI. | [optional]
10
- **enrolled** | **String** | A value determining whether the card holder was enrolled. | [optional]
11
- **xid** | **String** | The XID used for processing with the MPI. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **authen_result** | **String** | The authentication result available from the MPI. | [optional] |
8
+ | **cavv** | **String** | A value determining the cardholder verification value supplied by the card scheme. | [optional] |
9
+ | **eci** | **Integer** | The obtained e-commerce indicator from the MPI. | [optional] |
10
+ | **enrolled** | **String** | A value determining whether the card holder was enrolled. | [optional] |
11
+ | **xid** | **String** | The XID used for processing with the MPI. | [optional] |
12
12
 
13
- ## Code Sample
13
+ ## Example
14
14
 
15
15
  ```ruby
16
- require 'CityPayApiClient'
16
+ require 'citypay_api_client'
17
17
 
18
- instance = CityPayApiClient::ExternalMPI.new(authen_result: null,
19
- cavv: null,
20
- eci: null,
21
- enrolled: null,
22
- xid: null)
18
+ instance = CityPayApiClient::ExternalMPI.new(
19
+ authen_result: null,
20
+ cavv: null,
21
+ eci: null,
22
+ enrolled: null,
23
+ xid: null
24
+ )
23
25
  ```
24
26
 
25
-