citypay_api_client 1.0.3 → 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 (242) 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/auth_reference.rb +45 -11
  104. data/lib/citypay_api_client/models/auth_references.rb +21 -8
  105. data/lib/citypay_api_client/models/auth_request.rb +79 -35
  106. data/lib/citypay_api_client/models/auth_response.rb +43 -106
  107. data/lib/citypay_api_client/models/authen_required.rb +21 -8
  108. data/lib/citypay_api_client/models/batch.rb +264 -0
  109. data/lib/citypay_api_client/models/batch_report_request.rb +277 -0
  110. data/lib/citypay_api_client/models/batch_report_response_model.rb +357 -0
  111. data/lib/citypay_api_client/models/batch_transaction.rb +321 -0
  112. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +421 -0
  113. data/lib/citypay_api_client/models/bin.rb +299 -0
  114. data/lib/citypay_api_client/models/bin_lookup.rb +234 -0
  115. data/lib/citypay_api_client/models/c_res_auth_request.rb +21 -8
  116. data/lib/citypay_api_client/models/capture_request.rb +38 -22
  117. data/lib/citypay_api_client/models/card.rb +67 -10
  118. data/lib/citypay_api_client/models/card_holder_account.rb +35 -12
  119. data/lib/citypay_api_client/models/card_status.rb +21 -8
  120. data/lib/citypay_api_client/models/charge_request.rb +96 -26
  121. data/lib/citypay_api_client/models/check_batch_status.rb +259 -0
  122. data/lib/citypay_api_client/models/check_batch_status_response.rb +220 -0
  123. data/lib/citypay_api_client/models/contact_details.rb +87 -44
  124. data/lib/citypay_api_client/models/decision.rb +21 -8
  125. data/lib/citypay_api_client/models/direct_post_request.rb +670 -0
  126. data/lib/citypay_api_client/models/direct_token_auth_request.rb +249 -0
  127. data/lib/citypay_api_client/models/domain_key_check_request.rb +252 -0
  128. data/lib/citypay_api_client/models/domain_key_request.rb +250 -0
  129. data/lib/citypay_api_client/models/domain_key_response.rb +294 -0
  130. data/lib/citypay_api_client/models/error.rb +35 -12
  131. data/lib/citypay_api_client/models/event_data_model.rb +259 -0
  132. data/lib/citypay_api_client/models/exists.rb +244 -0
  133. data/lib/citypay_api_client/models/external_mpi.rb +27 -8
  134. data/lib/citypay_api_client/models/list_merchants_response.rb +21 -8
  135. data/lib/citypay_api_client/models/mcc6012.rb +21 -8
  136. data/lib/citypay_api_client/models/merchant.rb +21 -8
  137. data/lib/citypay_api_client/models/pa_res_auth_request.rb +22 -9
  138. data/lib/citypay_api_client/models/paylink_address.rb +402 -0
  139. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +269 -0
  140. data/lib/citypay_api_client/models/paylink_attachment_request.rb +269 -0
  141. data/lib/citypay_api_client/models/paylink_attachment_result.rb +249 -0
  142. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +292 -0
  143. data/lib/citypay_api_client/models/paylink_card_holder.rb +353 -0
  144. data/lib/citypay_api_client/models/paylink_cart.rb +280 -0
  145. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +289 -0
  146. data/lib/citypay_api_client/models/paylink_config.rb +433 -0
  147. data/lib/citypay_api_client/models/paylink_custom_param.rb +314 -0
  148. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +268 -0
  149. data/lib/citypay_api_client/models/paylink_error_code.rb +239 -0
  150. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +279 -0
  151. data/lib/citypay_api_client/models/paylink_part_payments.rb +269 -0
  152. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +234 -0
  153. data/lib/citypay_api_client/models/paylink_state_event.rb +239 -0
  154. data/lib/citypay_api_client/models/paylink_token_created.rb +364 -0
  155. data/lib/citypay_api_client/models/paylink_token_request_model.rb +374 -0
  156. data/lib/citypay_api_client/models/paylink_token_status.rb +490 -0
  157. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +270 -0
  158. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +235 -0
  159. data/lib/citypay_api_client/models/paylink_ui.rb +249 -0
  160. data/lib/citypay_api_client/models/ping.rb +21 -8
  161. data/lib/citypay_api_client/models/process_batch_request.rb +308 -0
  162. data/lib/citypay_api_client/models/process_batch_response.rb +234 -0
  163. data/lib/citypay_api_client/models/refund_request.rb +332 -0
  164. data/lib/citypay_api_client/models/register_card.rb +59 -12
  165. data/lib/citypay_api_client/models/request_challenged.rb +29 -16
  166. data/lib/citypay_api_client/models/retrieve_request.rb +21 -8
  167. data/lib/citypay_api_client/models/three_d_secure.rb +106 -13
  168. data/lib/citypay_api_client/models/tokenisation_response_model.rb +333 -0
  169. data/lib/citypay_api_client/models/void_request.rb +22 -21
  170. data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
  171. data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
  172. data/lib/citypay_api_client/version.rb +3 -4
  173. data/lib/citypay_api_client.rb +53 -6
  174. data/spec/.DS_Store +0 -0
  175. data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
  176. data/spec/api/batch_processing_api___spec.rb +70 -0
  177. data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
  178. data/spec/api/direct_post_api___spec.rb +98 -0
  179. data/spec/api/operational_functions_api___spec.rb +94 -0
  180. data/spec/api/paylink_api___spec.rb +131 -0
  181. data/spec/api_client_spec.rb +4 -4
  182. data/spec/configuration_spec.rb +5 -5
  183. data/spec/it_api_sandbox_spec.rb +126 -58
  184. data/spec/models/acknowledgement_spec.rb +7 -22
  185. data/spec/models/acl_check_request_spec.rb +33 -0
  186. data/spec/models/acl_check_response_model_spec.rb +51 -0
  187. data/spec/models/auth_references_spec.rb +7 -8
  188. data/spec/models/auth_response_spec.rb +29 -30
  189. data/spec/models/batch_report_request_spec.rb +39 -0
  190. data/spec/models/batch_report_response_model_spec.rb +63 -0
  191. data/spec/models/batch_spec.rb +45 -0
  192. data/spec/models/batch_transaction_result_model_spec.rb +87 -0
  193. data/spec/models/batch_transaction_spec.rb +51 -0
  194. data/spec/models/bin_lookup_spec.rb +33 -0
  195. data/spec/models/bin_spec.rb +81 -0
  196. data/spec/models/card_holder_account_spec.rb +8 -5
  197. data/spec/models/check_batch_status_response_spec.rb +45 -0
  198. data/spec/models/check_batch_status_spec.rb +39 -0
  199. data/spec/models/decision_spec.rb +1 -1
  200. data/spec/models/direct_post_request_spec.rb +153 -0
  201. data/spec/models/direct_token_auth_request_spec.rb +51 -0
  202. data/spec/models/domain_key_check_request_spec.rb +33 -0
  203. data/spec/models/domain_key_request_spec.rb +45 -0
  204. data/spec/models/domain_key_response_spec.rb +57 -0
  205. data/spec/models/event_data_model_spec.rb +57 -0
  206. data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
  207. data/spec/models/list_merchants_response_spec.rb +2 -2
  208. data/spec/models/paylink_address_spec.rb +69 -0
  209. data/spec/models/paylink_adjustment_request_spec.rb +45 -0
  210. data/spec/models/paylink_attachment_request_spec.rb +45 -0
  211. data/spec/models/paylink_attachment_result_spec.rb +45 -0
  212. data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
  213. data/spec/models/paylink_card_holder_spec.rb +87 -0
  214. data/spec/models/paylink_cart_item_model_spec.rb +75 -0
  215. data/spec/models/paylink_cart_spec.rb +69 -0
  216. data/spec/models/paylink_config_spec.rb +159 -0
  217. data/spec/models/paylink_custom_param_spec.rb +87 -0
  218. data/spec/models/paylink_email_notification_path_spec.rb +57 -0
  219. data/spec/models/paylink_error_code_spec.rb +39 -0
  220. data/spec/models/paylink_field_guard_model_spec.rb +45 -0
  221. data/spec/models/paylink_part_payments_spec.rb +63 -0
  222. data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
  223. data/spec/models/paylink_state_event_spec.rb +45 -0
  224. data/spec/models/paylink_token_created_spec.rb +111 -0
  225. data/spec/models/paylink_token_request_model_spec.rb +93 -0
  226. data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
  227. data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
  228. data/spec/models/paylink_token_status_spec.rb +195 -0
  229. data/spec/models/paylink_ui_spec.rb +51 -0
  230. data/spec/models/process_batch_request_spec.rb +51 -0
  231. data/spec/models/process_batch_response_spec.rb +39 -0
  232. data/spec/models/refund_request_spec.rb +64 -0
  233. data/spec/models/tokenisation_response_model_spec.rb +87 -0
  234. data/spec/spec_helper.rb +2 -2
  235. data/spec/utils/direct_post_mac_spec.rb +13 -0
  236. metadata +210 -37
  237. data/Gemfile.lock +0 -70
  238. data/git_push.sh +0 -58
  239. data/lib/citypay_api_client/api/operational_api.rb +0 -147
  240. data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
  241. data/lib/citypay_api_client/test.rb +0 -20
  242. data/spec/api/payment_processing_api_spec.rb +0 -106
@@ -0,0 +1,214 @@
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_report_request**](BatchProcessingApi.md#batch_report_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 data and initialising a new batch for processing. Once validated the batch will be queued for processing and further updates can be received by a subsequent call to retrieve the batch status.
19
+
20
+ ### Examples
21
+
22
+ ```ruby
23
+ require 'time'
24
+ require 'citypay_api_client'
25
+ # setup authorization
26
+ CityPayApiClient.configure do |config|
27
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
28
+ end
29
+
30
+ api_instance = CityPayApiClient::BatchProcessingApi.new
31
+ 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 |
32
+
33
+ begin
34
+ # Batch Process Request
35
+ result = api_instance.batch_process_request(process_batch_request)
36
+ p result
37
+ rescue CityPayApiClient::ApiError => e
38
+ puts "Error when calling BatchProcessingApi->batch_process_request: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the batch_process_request_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<ProcessBatchResponse>, Integer, Hash)> batch_process_request_with_http_info(process_batch_request)
47
+
48
+ ```ruby
49
+ begin
50
+ # Batch Process Request
51
+ data, status_code, headers = api_instance.batch_process_request_with_http_info(process_batch_request)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <ProcessBatchResponse>
55
+ rescue CityPayApiClient::ApiError => e
56
+ puts "Error when calling BatchProcessingApi->batch_process_request_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **process_batch_request** | [**ProcessBatchRequest**](ProcessBatchRequest.md) | | |
65
+
66
+ ### Return type
67
+
68
+ [**ProcessBatchResponse**](ProcessBatchResponse.md)
69
+
70
+ ### Authorization
71
+
72
+ [cp-api-key](../README.md#cp-api-key)
73
+
74
+ ### HTTP request headers
75
+
76
+ - **Content-Type**: application/json, text/xml
77
+ - **Accept**: application/json, text/xml
78
+
79
+
80
+ ## batch_report_request
81
+
82
+ > <BatchReportResponseModel> batch_report_request(batch_report_request)
83
+
84
+ BatchReportRequest
85
+
86
+ The operation is used to retrieve a report of the result of a batch process.
87
+
88
+ ### Examples
89
+
90
+ ```ruby
91
+ require 'time'
92
+ require 'citypay_api_client'
93
+ # setup authorization
94
+ CityPayApiClient.configure do |config|
95
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
96
+ end
97
+
98
+ api_instance = CityPayApiClient::BatchProcessingApi.new
99
+ batch_report_request = CityPayApiClient::BatchReportRequest.new({batch_id: 35}) # BatchReportRequest |
100
+
101
+ begin
102
+ # BatchReportRequest
103
+ result = api_instance.batch_report_request(batch_report_request)
104
+ p result
105
+ rescue CityPayApiClient::ApiError => e
106
+ puts "Error when calling BatchProcessingApi->batch_report_request: #{e}"
107
+ end
108
+ ```
109
+
110
+ #### Using the batch_report_request_with_http_info variant
111
+
112
+ This returns an Array which contains the response data, status code and headers.
113
+
114
+ > <Array(<BatchReportResponseModel>, Integer, Hash)> batch_report_request_with_http_info(batch_report_request)
115
+
116
+ ```ruby
117
+ begin
118
+ # BatchReportRequest
119
+ data, status_code, headers = api_instance.batch_report_request_with_http_info(batch_report_request)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => <BatchReportResponseModel>
123
+ rescue CityPayApiClient::ApiError => e
124
+ puts "Error when calling BatchProcessingApi->batch_report_request_with_http_info: #{e}"
125
+ end
126
+ ```
127
+
128
+ ### Parameters
129
+
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **batch_report_request** | [**BatchReportRequest**](BatchReportRequest.md) | | |
133
+
134
+ ### Return type
135
+
136
+ [**BatchReportResponseModel**](BatchReportResponseModel.md)
137
+
138
+ ### Authorization
139
+
140
+ [cp-api-key](../README.md#cp-api-key)
141
+
142
+ ### HTTP request headers
143
+
144
+ - **Content-Type**: application/json, text/xml
145
+ - **Accept**: application/json, text/xml
146
+
147
+
148
+ ## check_batch_status_request
149
+
150
+ > <CheckBatchStatusResponse> check_batch_status_request(check_batch_status)
151
+
152
+ CheckBatchStatus
153
+
154
+ The operation is used to retrieve the status of a batch process.
155
+
156
+ ### Examples
157
+
158
+ ```ruby
159
+ require 'time'
160
+ require 'citypay_api_client'
161
+ # setup authorization
162
+ CityPayApiClient.configure do |config|
163
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
164
+ end
165
+
166
+ api_instance = CityPayApiClient::BatchProcessingApi.new
167
+ check_batch_status = CityPayApiClient::CheckBatchStatus.new({batch_id: [78]}) # CheckBatchStatus |
168
+
169
+ begin
170
+ # CheckBatchStatus
171
+ result = api_instance.check_batch_status_request(check_batch_status)
172
+ p result
173
+ rescue CityPayApiClient::ApiError => e
174
+ puts "Error when calling BatchProcessingApi->check_batch_status_request: #{e}"
175
+ end
176
+ ```
177
+
178
+ #### Using the check_batch_status_request_with_http_info variant
179
+
180
+ This returns an Array which contains the response data, status code and headers.
181
+
182
+ > <Array(<CheckBatchStatusResponse>, Integer, Hash)> check_batch_status_request_with_http_info(check_batch_status)
183
+
184
+ ```ruby
185
+ begin
186
+ # CheckBatchStatus
187
+ data, status_code, headers = api_instance.check_batch_status_request_with_http_info(check_batch_status)
188
+ p status_code # => 2xx
189
+ p headers # => { ... }
190
+ p data # => <CheckBatchStatusResponse>
191
+ rescue CityPayApiClient::ApiError => e
192
+ puts "Error when calling BatchProcessingApi->check_batch_status_request_with_http_info: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
197
+
198
+ | Name | Type | Description | Notes |
199
+ | ---- | ---- | ----------- | ----- |
200
+ | **check_batch_status** | [**CheckBatchStatus**](CheckBatchStatus.md) | | |
201
+
202
+ ### Return type
203
+
204
+ [**CheckBatchStatusResponse**](CheckBatchStatusResponse.md)
205
+
206
+ ### Authorization
207
+
208
+ [cp-api-key](../README.md#cp-api-key)
209
+
210
+ ### HTTP request headers
211
+
212
+ - **Content-Type**: application/json, text/xml
213
+ - **Accept**: application/json, text/xml
214
+
@@ -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,40 @@
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** | A name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard. | [optional] |
18
+ | **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] |
19
+
20
+ ## Example
21
+
22
+ ```ruby
23
+ require 'citypay_api_client'
24
+
25
+ instance = CityPayApiClient::BatchTransactionResultModel.new(
26
+ account_id: aaabbb-cccddd-eee,
27
+ amount: 3600,
28
+ authcode: 001245A,
29
+ datetime: 2020-01-02T18:32:28Z,
30
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
31
+ maskedpan: 4***********0002,
32
+ merchantid: 11223344,
33
+ message: Approved 044332,
34
+ result: 1,
35
+ result_code: 0,
36
+ scheme: Visa,
37
+ transno: 78416
38
+ )
39
+ ```
40
+
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: 2025,
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
-