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
data/docs/Batch.md ADDED
@@ -0,0 +1,22 @@
1
+ # CityPayApiClient::Batch
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **batch_date** | **Date** | The date that the file was created in ISO-8601 format. | |
8
+ | **batch_id** | **Integer** | The batch id requested. | [optional] |
9
+ | **batch_status** | **String** | The status of the batch. Possible values are - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'citypay_api_client'
15
+
16
+ instance = CityPayApiClient::Batch.new(
17
+ batch_date: Thu Jan 02 00:00:00 UTC 2020,
18
+ batch_id: 35,
19
+ batch_status: COMPLETE
20
+ )
21
+ ```
22
+
@@ -0,0 +1,218 @@
1
+ # CityPayApiClient::BatchProcessingApi
2
+
3
+ All URIs are relative to *https://api.citypay.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**batch_process_request**](BatchProcessingApi.md#batch_process_request) | **POST** /v6/batch/process | Batch Process Request |
8
+ | [**batch_retrieve_request**](BatchProcessingApi.md#batch_retrieve_request) | **POST** /v6/batch/retrieve | BatchReportRequest |
9
+ | [**check_batch_status_request**](BatchProcessingApi.md#check_batch_status_request) | **POST** /v6/batch/status | CheckBatchStatus |
10
+
11
+
12
+ ## batch_process_request
13
+
14
+ > <ProcessBatchResponse> batch_process_request(process_batch_request)
15
+
16
+ Batch Process Request
17
+
18
+ A batch process request is used to start the batch process workflow by uploading batch
19
+ data and initialising a new batch for processing. Once validated the batch will be queued
20
+ for processing and further updates can be received by a subsequent call to retrieve the batch
21
+ status.
22
+
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'citypay_api_client'
29
+ # setup authorization
30
+ CityPayApiClient.configure do |config|
31
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
32
+ end
33
+
34
+ api_instance = CityPayApiClient::BatchProcessingApi.new
35
+ process_batch_request = CityPayApiClient::ProcessBatchRequest.new({batch_date: Date.parse('Thu Jan 02 00:00:00 UTC 2020'), batch_id: 35, transactions: [CityPayApiClient::BatchTransaction.new({account_id: 'aaabbb-cccddd-eee', amount: 3600})]}) # ProcessBatchRequest |
36
+
37
+ begin
38
+ # Batch Process Request
39
+ result = api_instance.batch_process_request(process_batch_request)
40
+ p result
41
+ rescue CityPayApiClient::ApiError => e
42
+ puts "Error when calling BatchProcessingApi->batch_process_request: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the batch_process_request_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<ProcessBatchResponse>, Integer, Hash)> batch_process_request_with_http_info(process_batch_request)
51
+
52
+ ```ruby
53
+ begin
54
+ # Batch Process Request
55
+ data, status_code, headers = api_instance.batch_process_request_with_http_info(process_batch_request)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <ProcessBatchResponse>
59
+ rescue CityPayApiClient::ApiError => e
60
+ puts "Error when calling BatchProcessingApi->batch_process_request_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **process_batch_request** | [**ProcessBatchRequest**](ProcessBatchRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**ProcessBatchResponse**](ProcessBatchResponse.md)
73
+
74
+ ### Authorization
75
+
76
+ [cp-api-key](../README.md#cp-api-key)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json, text/xml
81
+ - **Accept**: application/json, text/xml
82
+
83
+
84
+ ## batch_retrieve_request
85
+
86
+ > <BatchReportResponseModel> batch_retrieve_request(batch_report_request)
87
+
88
+ BatchReportRequest
89
+
90
+ The report for a given batch.
91
+
92
+ ### Examples
93
+
94
+ ```ruby
95
+ require 'time'
96
+ require 'citypay_api_client'
97
+ # setup authorization
98
+ CityPayApiClient.configure do |config|
99
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
100
+ end
101
+
102
+ api_instance = CityPayApiClient::BatchProcessingApi.new
103
+ batch_report_request = CityPayApiClient::BatchReportRequest.new({batch_id: 35}) # BatchReportRequest |
104
+
105
+ begin
106
+ # BatchReportRequest
107
+ result = api_instance.batch_retrieve_request(batch_report_request)
108
+ p result
109
+ rescue CityPayApiClient::ApiError => e
110
+ puts "Error when calling BatchProcessingApi->batch_retrieve_request: #{e}"
111
+ end
112
+ ```
113
+
114
+ #### Using the batch_retrieve_request_with_http_info variant
115
+
116
+ This returns an Array which contains the response data, status code and headers.
117
+
118
+ > <Array(<BatchReportResponseModel>, Integer, Hash)> batch_retrieve_request_with_http_info(batch_report_request)
119
+
120
+ ```ruby
121
+ begin
122
+ # BatchReportRequest
123
+ data, status_code, headers = api_instance.batch_retrieve_request_with_http_info(batch_report_request)
124
+ p status_code # => 2xx
125
+ p headers # => { ... }
126
+ p data # => <BatchReportResponseModel>
127
+ rescue CityPayApiClient::ApiError => e
128
+ puts "Error when calling BatchProcessingApi->batch_retrieve_request_with_http_info: #{e}"
129
+ end
130
+ ```
131
+
132
+ ### Parameters
133
+
134
+ | Name | Type | Description | Notes |
135
+ | ---- | ---- | ----------- | ----- |
136
+ | **batch_report_request** | [**BatchReportRequest**](BatchReportRequest.md) | | |
137
+
138
+ ### Return type
139
+
140
+ [**BatchReportResponseModel**](BatchReportResponseModel.md)
141
+
142
+ ### Authorization
143
+
144
+ [cp-api-key](../README.md#cp-api-key)
145
+
146
+ ### HTTP request headers
147
+
148
+ - **Content-Type**: application/json, text/xml
149
+ - **Accept**: application/json, text/xml
150
+
151
+
152
+ ## check_batch_status_request
153
+
154
+ > <CheckBatchStatusResponse> check_batch_status_request(check_batch_status)
155
+
156
+ CheckBatchStatus
157
+
158
+ The operation is used to retrieve the status of a batch process.
159
+
160
+ ### Examples
161
+
162
+ ```ruby
163
+ require 'time'
164
+ require 'citypay_api_client'
165
+ # setup authorization
166
+ CityPayApiClient.configure do |config|
167
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
168
+ end
169
+
170
+ api_instance = CityPayApiClient::BatchProcessingApi.new
171
+ check_batch_status = CityPayApiClient::CheckBatchStatus.new({batch_id: [78]}) # CheckBatchStatus |
172
+
173
+ begin
174
+ # CheckBatchStatus
175
+ result = api_instance.check_batch_status_request(check_batch_status)
176
+ p result
177
+ rescue CityPayApiClient::ApiError => e
178
+ puts "Error when calling BatchProcessingApi->check_batch_status_request: #{e}"
179
+ end
180
+ ```
181
+
182
+ #### Using the check_batch_status_request_with_http_info variant
183
+
184
+ This returns an Array which contains the response data, status code and headers.
185
+
186
+ > <Array(<CheckBatchStatusResponse>, Integer, Hash)> check_batch_status_request_with_http_info(check_batch_status)
187
+
188
+ ```ruby
189
+ begin
190
+ # CheckBatchStatus
191
+ data, status_code, headers = api_instance.check_batch_status_request_with_http_info(check_batch_status)
192
+ p status_code # => 2xx
193
+ p headers # => { ... }
194
+ p data # => <CheckBatchStatusResponse>
195
+ rescue CityPayApiClient::ApiError => e
196
+ puts "Error when calling BatchProcessingApi->check_batch_status_request_with_http_info: #{e}"
197
+ end
198
+ ```
199
+
200
+ ### Parameters
201
+
202
+ | Name | Type | Description | Notes |
203
+ | ---- | ---- | ----------- | ----- |
204
+ | **check_batch_status** | [**CheckBatchStatus**](CheckBatchStatus.md) | | |
205
+
206
+ ### Return type
207
+
208
+ [**CheckBatchStatusResponse**](CheckBatchStatusResponse.md)
209
+
210
+ ### Authorization
211
+
212
+ [cp-api-key](../README.md#cp-api-key)
213
+
214
+ ### HTTP request headers
215
+
216
+ - **Content-Type**: application/json, text/xml
217
+ - **Accept**: application/json, text/xml
218
+
@@ -0,0 +1,20 @@
1
+ # CityPayApiClient::BatchReportRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **batch_id** | **Integer** | The batch id specified in the batch processing request. | |
8
+ | **client_account_id** | **String** | The batch account id that the batch was processed for. Defaults to your client id if not provided. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'citypay_api_client'
14
+
15
+ instance = CityPayApiClient::BatchReportRequest.new(
16
+ batch_id: 35,
17
+ client_account_id: AC1
18
+ )
19
+ ```
20
+
@@ -0,0 +1,28 @@
1
+ # CityPayApiClient::BatchReportResponseModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **Integer** | The total amount that the batch contains. | |
8
+ | **batch_date** | **Date** | The date and time of the batch in ISO-8601 format. | |
9
+ | **batch_id** | **Integer** | The batch id specified in the batch processing request. | |
10
+ | **batch_status** | **String** | The status of the batch. Possible values are - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
11
+ | **client_account_id** | **String** | The batch account id that the batch was processed with. | |
12
+ | **transactions** | [**Array&lt;BatchTransactionResultModel&gt;**](BatchTransactionResultModel.md) | | |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'citypay_api_client'
18
+
19
+ instance = CityPayApiClient::BatchReportResponseModel.new(
20
+ amount: 3600,
21
+ batch_date: Thu Jan 02 00:00:00 UTC 2020,
22
+ batch_id: 35,
23
+ batch_status: COMPLETE,
24
+ client_account_id: AC1,
25
+ transactions: null
26
+ )
27
+ ```
28
+
@@ -0,0 +1,24 @@
1
+ # CityPayApiClient::BatchTransaction
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_id** | **String** | The card holder account id to process against. | |
8
+ | **amount** | **Integer** | The amount required to process in the lowest denomination. | |
9
+ | **identifier** | **String** | An identifier used to reference the transaction set by your integration. The value should be used to refer to the transaction in future calls. | [optional] |
10
+ | **merchantid** | **Integer** | The CityPay merchant id used to process the transaction. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'citypay_api_client'
16
+
17
+ instance = CityPayApiClient::BatchTransaction.new(
18
+ account_id: aaabbb-cccddd-eee,
19
+ amount: 3600,
20
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
21
+ merchantid: 11223344
22
+ )
23
+ ```
24
+
@@ -0,0 +1,44 @@
1
+ # CityPayApiClient::BatchTransactionResultModel
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_id** | **String** | The card holder account id used for the transaction. | |
8
+ | **amount** | **Integer** | The amount of the transaction processed. | [optional] |
9
+ | **authcode** | **String** | The authorisation code of a successful transaction. | [optional] |
10
+ | **datetime** | **Time** | The datetime that the transaction was processed. | [optional] |
11
+ | **identifier** | **String** | The identifier of the transaction. | |
12
+ | **maskedpan** | **String** | A masked value of the card number used for processing displaying limited values that can be used on a receipt. | [optional] |
13
+ | **merchantid** | **Integer** | The merchant id of the transaction. | |
14
+ | **message** | **String** | A response message pertaining to the transaction. | |
15
+ | **result** | **Integer** | An integer result that indicates the outcome of the transaction. The Code value below maps to the result value &lt;table&gt; &lt;tr&gt; &lt;th&gt;Code&lt;/th&gt; &lt;th&gt;Abbrev&lt;/th&gt; &lt;th&gt;Description&lt;/th&gt; &lt;/tr&gt; &lt;tr&gt;&lt;td&gt;0&lt;/td&gt;&lt;td&gt;Declined&lt;/td&gt;&lt;td&gt;Declined&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;1&lt;/td&gt;&lt;td&gt;Accepted&lt;/td&gt;&lt;td&gt;Accepted&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;2&lt;/td&gt;&lt;td&gt;Rejected&lt;/td&gt;&lt;td&gt;Rejected&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;3&lt;/td&gt;&lt;td&gt;Not Attempted&lt;/td&gt;&lt;td&gt;Not Attempted&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;4&lt;/td&gt;&lt;td&gt;Referred&lt;/td&gt;&lt;td&gt;Referred&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;5&lt;/td&gt;&lt;td&gt;PinRetry&lt;/td&gt;&lt;td&gt;Perform PIN Retry&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;6&lt;/td&gt;&lt;td&gt;ForSigVer&lt;/td&gt;&lt;td&gt;Force Signature Verification&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;7&lt;/td&gt;&lt;td&gt;Hold&lt;/td&gt;&lt;td&gt;Hold&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;8&lt;/td&gt;&lt;td&gt;SecErr&lt;/td&gt;&lt;td&gt;Security Error&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;9&lt;/td&gt;&lt;td&gt;CallAcq&lt;/td&gt;&lt;td&gt;Call Acquirer&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;10&lt;/td&gt;&lt;td&gt;DNH&lt;/td&gt;&lt;td&gt;Do Not Honour&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;11&lt;/td&gt;&lt;td&gt;RtnCrd&lt;/td&gt;&lt;td&gt;Retain Card&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;12&lt;/td&gt;&lt;td&gt;ExprdCrd&lt;/td&gt;&lt;td&gt;Expired Card&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;13&lt;/td&gt;&lt;td&gt;InvldCrd&lt;/td&gt;&lt;td&gt;Invalid Card No&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;14&lt;/td&gt;&lt;td&gt;PinExcd&lt;/td&gt;&lt;td&gt;Pin Tries Exceeded&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;15&lt;/td&gt;&lt;td&gt;PinInvld&lt;/td&gt;&lt;td&gt;Pin Invalid&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;16&lt;/td&gt;&lt;td&gt;AuthReq&lt;/td&gt;&lt;td&gt;Authentication Required&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;17&lt;/td&gt;&lt;td&gt;AuthenFail&lt;/td&gt;&lt;td&gt;Authentication Failed&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;18&lt;/td&gt;&lt;td&gt;Verified&lt;/td&gt;&lt;td&gt;Card Verified&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;19&lt;/td&gt;&lt;td&gt;Cancelled&lt;/td&gt;&lt;td&gt;Cancelled&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;20&lt;/td&gt;&lt;td&gt;Un&lt;/td&gt;&lt;td&gt;Unknown&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;21&lt;/td&gt;&lt;td&gt;Challenged&lt;/td&gt;&lt;td&gt;Challenged&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;22&lt;/td&gt;&lt;td&gt;Decoupled&lt;/td&gt;&lt;td&gt;Decoupled&lt;/td&gt;&lt;/tr&gt; &lt;tr&gt;&lt;td&gt;23&lt;/td&gt;&lt;td&gt;Denied&lt;/td&gt;&lt;td&gt;Permission Denied&lt;/td&gt;&lt;/tr&gt; &lt;/table&gt; | |
16
+ | **result_code** | **String** | A result code of the transaction identifying the result of the transaction for success, rejection or decline. | |
17
+ | **scheme** | **String** | The name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard. | [optional] |
18
+ | **scheme_id** | **String** | The name of the card scheme of the transaction such as VI or MC. | [optional] |
19
+ | **scheme_logo** | **String** | A url containing a logo of the card scheme. | [optional] |
20
+ | **transno** | **Integer** | The resulting transaction number, ordered incrementally from 1 for every merchant_id. The value will default to less than 1 for transactions that do not have a transaction number issued. | [optional] |
21
+
22
+ ## Example
23
+
24
+ ```ruby
25
+ require 'citypay_api_client'
26
+
27
+ instance = CityPayApiClient::BatchTransactionResultModel.new(
28
+ account_id: aaabbb-cccddd-eee,
29
+ amount: 3600,
30
+ authcode: 001245A,
31
+ datetime: 2020-01-02T18:32:28Z,
32
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
33
+ maskedpan: 4***********0002,
34
+ merchantid: 11223344,
35
+ message: Approved 044332,
36
+ result: 1,
37
+ result_code: 0,
38
+ scheme: Visa,
39
+ scheme_id: MC,
40
+ scheme_logo: https://cdn.citypay.com/img/cs/visa-logo.svg,
41
+ transno: 78416
42
+ )
43
+ ```
44
+
data/docs/Bin.md ADDED
@@ -0,0 +1,34 @@
1
+ # CityPayApiClient::Bin
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional] |
8
+ | **bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional] |
9
+ | **bin_country_issued** | **String** | The determined country where the card was issued. | [optional] |
10
+ | **bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional] |
11
+ | **bin_currency** | **String** | The default currency determined for the card. | [optional] |
12
+ | **bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional] |
13
+ | **bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional] |
14
+ | **bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional] |
15
+ | **scheme** | **String** | The scheme that issued the card. | [optional] |
16
+
17
+ ## Example
18
+
19
+ ```ruby
20
+ require 'citypay_api_client'
21
+
22
+ instance = CityPayApiClient::Bin.new(
23
+ bin_commercial: null,
24
+ bin_corporate: null,
25
+ bin_country_issued: null,
26
+ bin_credit: null,
27
+ bin_currency: null,
28
+ bin_debit: null,
29
+ bin_description: Platinum Card,
30
+ bin_eu: null,
31
+ scheme: Visa
32
+ )
33
+ ```
34
+
data/docs/BinLookup.md ADDED
@@ -0,0 +1,18 @@
1
+ # CityPayApiClient::BinLookup
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bin** | **Integer** | A bin value to use for lookup. | |
8
+
9
+ ## Example
10
+
11
+ ```ruby
12
+ require 'citypay_api_client'
13
+
14
+ instance = CityPayApiClient::BinLookup.new(
15
+ bin: 543712
16
+ )
17
+ ```
18
+
@@ -2,16 +2,17 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **cres** | **String** | The challenge response data forwarded by the ACS in 3D-Secure V2 processing. Data should be forwarded to CityPay unchanged for subsequent authorisation and processing. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **cres** | **String** | The challenge response data forwarded by the ACS in 3D-Secure V2 processing. Data should be forwarded to CityPay unchanged for subsequent authorisation and processing. | [optional] |
8
8
 
9
- ## Code Sample
9
+ ## Example
10
10
 
11
11
  ```ruby
12
- require 'CityPayApiClient'
12
+ require 'citypay_api_client'
13
13
 
14
- instance = CityPayApiClient::CResAuthRequest.new(cres: x90+vZ/7Ll05Vid/jPfQn8adw+4D/vRDUGT19kndW97Hfirbv66ycfSp8jNlvy7PkHbx44NEt3vo...)
14
+ instance = CityPayApiClient::CResAuthRequest.new(
15
+ cres: x90+vZ/7Ll05Vid/jPfQn8adw+4D/vRDUGT19kndW97Hfirbv66ycfSp8jNlvy7PkHbx44NEt3vo...
16
+ )
15
17
  ```
16
18
 
17
-
@@ -2,26 +2,27 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **airline_data** | [**AirlineAdvice**](AirlineAdvice.md) | | [optional]
8
- **amount** | **Integer** | The completion amount provided in the lowest unit of currency for the specific currency of the merchant, with a variable length to a maximum of 12 digits. No decimal points to be included. For example with GBP 75.45 use the value 7545. Please check that you do not supply divisional characters such as 1,024 in the request which may be caused by some number formatters. If no amount is supplied, the original processing amount is used. | [optional]
9
- **identifier** | **String** | The identifier of the transaction to capture. If an empty value is supplied then a &#x60;trans_no&#x60; value must be supplied. | [optional]
10
- **merchantid** | **Integer** | Identifies the merchant account to perform the capture for. |
11
- **sdk** | **String** | An optional reference value for the calling client such as a version number i.e. | [optional]
12
- **transno** | **Integer** | The transaction number of the transaction to look up and capture. If an empty value is supplied then an identifier value must be supplied. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **airline_data** | [**AirlineAdvice**](AirlineAdvice.md) | | [optional] |
8
+ | **amount** | **Integer** | The completion amount provided in the lowest unit of currency for the specific currency of the merchant, with a variable length to a maximum of 12 digits. No decimal points to be included. For example with GBP 75.45 use the value 7545. Please check that you do not supply divisional characters such as 1,024 in the request which may be caused by some number formatters. If no amount is supplied, the original processing amount is used. | [optional] |
9
+ | **event_management** | [**EventDataModel**](EventDataModel.md) | | [optional] |
10
+ | **identifier** | **String** | The identifier of the transaction to capture. If an empty value is supplied then a &#x60;trans_no&#x60; value must be supplied. | [optional] |
11
+ | **merchantid** | **Integer** | Identifies the merchant account to perform the capture for. | |
12
+ | **transno** | **Integer** | The transaction number of the transaction to look up and capture. If an empty value is supplied then an identifier value must be supplied. | [optional] |
13
13
 
14
- ## Code Sample
14
+ ## Example
15
15
 
16
16
  ```ruby
17
- require 'CityPayApiClient'
17
+ require 'citypay_api_client'
18
18
 
19
- instance = CityPayApiClient::CaptureRequest.new(airline_data: null,
20
- amount: 3600,
21
- identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
22
- merchantid: 11223344,
23
- sdk: MyClient 1.3.0,
24
- transno: 78416)
19
+ instance = CityPayApiClient::CaptureRequest.new(
20
+ airline_data: null,
21
+ amount: 3600,
22
+ event_management: null,
23
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
24
+ merchantid: 11223344,
25
+ transno: 78416
26
+ )
25
27
  ```
26
28
 
27
-
data/docs/Card.md CHANGED
@@ -2,50 +2,55 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional]
8
- **bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional]
9
- **bin_country_issued** | **String** | The determined country where the card was issued. | [optional]
10
- **bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional]
11
- **bin_currency** | **String** | The default currency determined for the card. | [optional]
12
- **bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional]
13
- **bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional]
14
- **bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional]
15
- **card_id** | **String** | The id of the card that is returned. Should be used for referencing the card when perform any changes. | [optional]
16
- **card_status** | **String** | The status of the card such, valid values are - ACTIVE the card is active for processing - INACTIVE the card is not active for processing - EXPIRED for cards that have passed their expiry date. | [optional]
17
- **default** | **Boolean** | Determines if the card is the default card for the account and should be regarded as the first option to be used for processing. | [optional]
18
- **expmonth** | **Integer** | The expiry month of the card. | [optional]
19
- **expyear** | **Integer** | The expiry year of the card. | [optional]
20
- **label** | **String** | A label which identifies this card. | [optional]
21
- **label2** | **String** | A label which also provides the expiry date of the card. | [optional]
22
- **last4digits** | **String** | The last 4 digits of the card to aid in identification. | [optional]
23
- **scheme** | **String** | The scheme that issued the card. | [optional]
24
- **token** | **String** | A token that can be used to process against the card. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional] |
8
+ | **bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional] |
9
+ | **bin_country_issued** | **String** | The determined country where the card was issued. | [optional] |
10
+ | **bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional] |
11
+ | **bin_currency** | **String** | The default currency determined for the card. | [optional] |
12
+ | **bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional] |
13
+ | **bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional] |
14
+ | **bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional] |
15
+ | **card_id** | **String** | The id of the card that is returned. Should be used for referencing the card when perform any changes. | [optional] |
16
+ | **card_status** | **String** | The status of the card such, valid values are - ACTIVE the card is active for processing - INACTIVE the card is not active for processing - EXPIRED for cards that have passed their expiry date. | [optional] |
17
+ | **date_created** | **Time** | The date time of when the card was created. | [optional] |
18
+ | **default** | **Boolean** | Determines if the card is the default card for the account and should be regarded as the first option to be used for processing. | [optional] |
19
+ | **expmonth** | **Integer** | The expiry month of the card. | [optional] |
20
+ | **expyear** | **Integer** | The expiry year of the card. | [optional] |
21
+ | **label** | **String** | A label which identifies this card. | [optional] |
22
+ | **label2** | **String** | A label which also provides the expiry date of the card. | [optional] |
23
+ | **last4digits** | **String** | The last 4 digits of the card to aid in identification. | [optional] |
24
+ | **name_on_card** | **String** | The name on the card. | [optional] |
25
+ | **scheme** | **String** | The scheme that issued the card. | [optional] |
26
+ | **token** | **String** | A token that can be used to process against the card. | [optional] |
25
27
 
26
- ## Code Sample
28
+ ## Example
27
29
 
28
30
  ```ruby
29
- require 'CityPayApiClient'
31
+ require 'citypay_api_client'
30
32
 
31
- instance = CityPayApiClient::Card.new(bin_commercial: null,
32
- bin_corporate: null,
33
- bin_country_issued: null,
34
- bin_credit: null,
35
- bin_currency: null,
36
- bin_debit: null,
37
- bin_description: null,
38
- bin_eu: null,
39
- card_id: null,
40
- card_status: null,
41
- default: null,
42
- expmonth: 9,
43
- expyear: 2023,
44
- label: Visa/0002,
45
- label2: Visa/0002,Exp:2304,
46
- last4digits: 2,
47
- scheme: Visa,
48
- token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr)
33
+ instance = CityPayApiClient::Card.new(
34
+ bin_commercial: null,
35
+ bin_corporate: null,
36
+ bin_country_issued: null,
37
+ bin_credit: null,
38
+ bin_currency: null,
39
+ bin_debit: null,
40
+ bin_description: Platinum Card,
41
+ bin_eu: null,
42
+ card_id: null,
43
+ card_status: null,
44
+ date_created: 2020-01-02T18:32:28Z,
45
+ default: null,
46
+ expmonth: 9,
47
+ expyear: 2027,
48
+ label: Visa/0002,
49
+ label2: Visa/0002,Exp:2304,
50
+ last4digits: 2,
51
+ name_on_card: MR NE BODY,
52
+ scheme: Visa,
53
+ token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr
54
+ )
49
55
  ```
50
56
 
51
-
@@ -2,30 +2,33 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **account_id** | **String** | The account id of the card holder account provided by the merchant which uniquely identifies the account. |
8
- **cards** | [**Array&lt;Card&gt;**](Card.md) | | [optional]
9
- **contact** | [**ContactDetails**](ContactDetails.md) | |
10
- **date_created** | **DateTime** | The date and time the account was created. | [optional]
11
- **default_card_id** | **String** | The id of the default card. | [optional]
12
- **default_card_index** | **String** | The index in the array of the default card. | [optional]
13
- **status** | **String** | Defines the status of the account for processing valid values are - ACTIVE for active accounts that are able to process - DISABLED for accounts that are currently disabled for processing. | [optional]
14
- **unique_id** | **String** | A unique id of the card holder account which uniquely identifies the stored account. This value is not searchable. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **account_id** | **String** | The account id of the card holder account provided by the merchant which uniquely identifies the account. | |
8
+ | **cards** | [**Array&lt;Card&gt;**](Card.md) | | [optional] |
9
+ | **contact** | [**ContactDetails**](ContactDetails.md) | | |
10
+ | **date_created** | **Time** | The date and time the account was created. | [optional] |
11
+ | **default_card_id** | **String** | The id of the default card. | [optional] |
12
+ | **default_card_index** | **Integer** | The index in the array of the default card. | [optional] |
13
+ | **last_modified** | **Time** | The date and time the account was last modified. | [optional] |
14
+ | **status** | **String** | Defines the status of the account for processing valid values are - ACTIVE for active accounts that are able to process - DISABLED for accounts that are currently disabled for processing. | [optional] |
15
+ | **unique_id** | **String** | A unique id of the card holder account which uniquely identifies the stored account. This value is not searchable. | [optional] |
15
16
 
16
- ## Code Sample
17
+ ## Example
17
18
 
18
19
  ```ruby
19
- require 'CityPayApiClient'
20
+ require 'citypay_api_client'
20
21
 
21
- instance = CityPayApiClient::CardHolderAccount.new(account_id: aaabbb-cccddd-eee,
22
- cards: null,
23
- contact: null,
24
- date_created: 2020-01-02T18:32:28Z,
25
- default_card_id: null,
26
- default_card_index: null,
27
- status: null,
28
- unique_id: null)
22
+ instance = CityPayApiClient::CardHolderAccount.new(
23
+ account_id: aaabbb-cccddd-eee,
24
+ cards: null,
25
+ contact: null,
26
+ date_created: 2020-01-02T18:32:28Z,
27
+ default_card_id: null,
28
+ default_card_index: null,
29
+ last_modified: 2020-01-02T18:32:28Z,
30
+ status: null,
31
+ unique_id: null
32
+ )
29
33
  ```
30
34
 
31
-