citypay_api_client 1.0.2 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (243) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +105 -34
  3. data/citypay_api_client.gemspec +4 -5
  4. data/docs/AccountCreate.md +10 -9
  5. data/docs/AccountStatus.md +8 -7
  6. data/docs/Acknowledgement.md +14 -13
  7. data/docs/AclCheckRequest.md +18 -0
  8. data/docs/AclCheckResponseModel.md +24 -0
  9. data/docs/AirlineAdvice.md +38 -37
  10. data/docs/AirlineSegment.md +22 -21
  11. data/docs/AuthReference.md +34 -33
  12. data/docs/AuthReferences.md +8 -7
  13. data/docs/AuthRequest.md +50 -49
  14. data/docs/AuthResponse.md +60 -59
  15. data/docs/AuthenRequired.md +12 -11
  16. data/docs/AuthorisationAndPaymentApi.md +559 -0
  17. data/docs/Batch.md +22 -0
  18. data/docs/BatchProcessingApi.md +214 -0
  19. data/docs/BatchReportRequest.md +20 -0
  20. data/docs/BatchReportResponseModel.md +28 -0
  21. data/docs/BatchTransaction.md +24 -0
  22. data/docs/BatchTransactionResultModel.md +40 -0
  23. data/docs/Bin.md +34 -0
  24. data/docs/BinLookup.md +18 -0
  25. data/docs/CResAuthRequest.md +8 -7
  26. data/docs/CaptureRequest.md +18 -17
  27. data/docs/Card.md +46 -41
  28. data/docs/CardHolderAccount.md +24 -21
  29. data/docs/CardHolderAccountApi.md +326 -105
  30. data/docs/CardStatus.md +10 -9
  31. data/docs/ChargeRequest.md +36 -31
  32. data/docs/CheckBatchStatus.md +20 -0
  33. data/docs/CheckBatchStatusResponse.md +18 -0
  34. data/docs/ContactDetails.md +32 -31
  35. data/docs/Decision.md +12 -11
  36. data/docs/DirectPostApi.md +365 -0
  37. data/docs/DirectPostRequest.md +58 -0
  38. data/docs/DirectTokenAuthRequest.md +24 -0
  39. data/docs/DomainKeyCheckRequest.md +18 -0
  40. data/docs/DomainKeyRequest.md +22 -0
  41. data/docs/DomainKeyResponse.md +26 -0
  42. data/docs/Error.md +16 -13
  43. data/docs/EventDataModel.md +26 -0
  44. data/docs/Exists.md +22 -0
  45. data/docs/ExternalMPI.md +16 -15
  46. data/docs/ListMerchantsResponse.md +12 -11
  47. data/docs/MCC6012.md +14 -13
  48. data/docs/Merchant.md +16 -15
  49. data/docs/OperationalApi.md +124 -22
  50. data/docs/OperationalFunctionsApi.md +355 -0
  51. data/docs/PaResAuthRequest.md +10 -9
  52. data/docs/PaylinkAddress.md +30 -0
  53. data/docs/PaylinkAdjustmentRequest.md +22 -0
  54. data/docs/PaylinkApi.md +630 -0
  55. data/docs/PaylinkAttachmentRequest.md +26 -0
  56. data/docs/PaylinkAttachmentResult.md +22 -0
  57. data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
  58. data/docs/PaylinkCardHolder.md +36 -0
  59. data/docs/PaylinkCart.md +30 -0
  60. data/docs/PaylinkCartItemModel.md +32 -0
  61. data/docs/PaylinkConfig.md +60 -0
  62. data/docs/PaylinkCustomParam.md +36 -0
  63. data/docs/PaylinkEmailNotificationPath.md +26 -0
  64. data/docs/PaylinkErrorCode.md +20 -0
  65. data/docs/PaylinkFieldGuardModel.md +30 -0
  66. data/docs/PaylinkPartPayments.md +28 -0
  67. data/docs/PaylinkSMSNotificationPath.md +20 -0
  68. data/docs/PaylinkStateEvent.md +22 -0
  69. data/docs/PaylinkTokenCreated.md +44 -0
  70. data/docs/PaylinkTokenRequestModel.md +38 -0
  71. data/docs/PaylinkTokenStatus.md +72 -0
  72. data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
  73. data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
  74. data/docs/PaylinkUI.md +24 -0
  75. data/docs/PaymentProcessingApi.md +307 -68
  76. data/docs/Ping.md +8 -7
  77. data/docs/ProcessBatchRequest.md +24 -0
  78. data/docs/ProcessBatchResponse.md +20 -0
  79. data/docs/RefundRequest.md +26 -0
  80. data/docs/RegisterCard.md +16 -13
  81. data/docs/RequestChallenged.md +16 -15
  82. data/docs/RetrieveRequest.md +12 -11
  83. data/docs/ThreeDSecure.md +32 -15
  84. data/docs/TokenisationResponseModel.md +36 -0
  85. data/docs/VoidRequest.md +12 -13
  86. data/lib/.DS_Store +0 -0
  87. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
  88. data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
  89. data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
  90. data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
  91. data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
  92. data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
  93. data/lib/citypay_api_client/api_client.rb +59 -59
  94. data/lib/citypay_api_client/api_error.rb +2 -2
  95. data/lib/citypay_api_client/configuration.rb +53 -15
  96. data/lib/citypay_api_client/models/account_create.rb +21 -8
  97. data/lib/citypay_api_client/models/account_status.rb +21 -8
  98. data/lib/citypay_api_client/models/acknowledgement.rb +21 -8
  99. data/lib/citypay_api_client/models/acl_check_request.rb +224 -0
  100. data/lib/citypay_api_client/models/acl_check_response_model.rb +249 -0
  101. data/lib/citypay_api_client/models/airline_advice.rb +23 -10
  102. data/lib/citypay_api_client/models/airline_segment.rb +21 -8
  103. data/lib/citypay_api_client/models/api_key.rb +16 -0
  104. data/lib/citypay_api_client/models/auth_reference.rb +45 -11
  105. data/lib/citypay_api_client/models/auth_references.rb +21 -8
  106. data/lib/citypay_api_client/models/auth_request.rb +79 -33
  107. data/lib/citypay_api_client/models/auth_response.rb +43 -106
  108. data/lib/citypay_api_client/models/authen_required.rb +21 -8
  109. data/lib/citypay_api_client/models/batch.rb +264 -0
  110. data/lib/citypay_api_client/models/batch_report_request.rb +277 -0
  111. data/lib/citypay_api_client/models/batch_report_response_model.rb +357 -0
  112. data/lib/citypay_api_client/models/batch_transaction.rb +321 -0
  113. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +421 -0
  114. data/lib/citypay_api_client/models/bin.rb +299 -0
  115. data/lib/citypay_api_client/models/bin_lookup.rb +234 -0
  116. data/lib/citypay_api_client/models/c_res_auth_request.rb +21 -8
  117. data/lib/citypay_api_client/models/capture_request.rb +38 -20
  118. data/lib/citypay_api_client/models/card.rb +67 -10
  119. data/lib/citypay_api_client/models/card_holder_account.rb +35 -12
  120. data/lib/citypay_api_client/models/card_status.rb +21 -8
  121. data/lib/citypay_api_client/models/charge_request.rb +96 -24
  122. data/lib/citypay_api_client/models/check_batch_status.rb +259 -0
  123. data/lib/citypay_api_client/models/check_batch_status_response.rb +220 -0
  124. data/lib/citypay_api_client/models/contact_details.rb +87 -44
  125. data/lib/citypay_api_client/models/decision.rb +21 -8
  126. data/lib/citypay_api_client/models/direct_post_request.rb +670 -0
  127. data/lib/citypay_api_client/models/direct_token_auth_request.rb +249 -0
  128. data/lib/citypay_api_client/models/domain_key_check_request.rb +252 -0
  129. data/lib/citypay_api_client/models/domain_key_request.rb +250 -0
  130. data/lib/citypay_api_client/models/domain_key_response.rb +294 -0
  131. data/lib/citypay_api_client/models/error.rb +35 -12
  132. data/lib/citypay_api_client/models/event_data_model.rb +259 -0
  133. data/lib/citypay_api_client/models/exists.rb +244 -0
  134. data/lib/citypay_api_client/models/external_mpi.rb +27 -8
  135. data/lib/citypay_api_client/models/list_merchants_response.rb +21 -8
  136. data/lib/citypay_api_client/models/mcc6012.rb +21 -8
  137. data/lib/citypay_api_client/models/merchant.rb +21 -8
  138. data/lib/citypay_api_client/models/pa_res_auth_request.rb +22 -9
  139. data/lib/citypay_api_client/models/paylink_address.rb +402 -0
  140. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +269 -0
  141. data/lib/citypay_api_client/models/paylink_attachment_request.rb +269 -0
  142. data/lib/citypay_api_client/models/paylink_attachment_result.rb +249 -0
  143. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +292 -0
  144. data/lib/citypay_api_client/models/paylink_card_holder.rb +353 -0
  145. data/lib/citypay_api_client/models/paylink_cart.rb +280 -0
  146. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +289 -0
  147. data/lib/citypay_api_client/models/paylink_config.rb +433 -0
  148. data/lib/citypay_api_client/models/paylink_custom_param.rb +314 -0
  149. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +268 -0
  150. data/lib/citypay_api_client/models/paylink_error_code.rb +239 -0
  151. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +279 -0
  152. data/lib/citypay_api_client/models/paylink_part_payments.rb +269 -0
  153. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +234 -0
  154. data/lib/citypay_api_client/models/paylink_state_event.rb +239 -0
  155. data/lib/citypay_api_client/models/paylink_token_created.rb +364 -0
  156. data/lib/citypay_api_client/models/paylink_token_request_model.rb +374 -0
  157. data/lib/citypay_api_client/models/paylink_token_status.rb +490 -0
  158. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +270 -0
  159. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +235 -0
  160. data/lib/citypay_api_client/models/paylink_ui.rb +249 -0
  161. data/lib/citypay_api_client/models/ping.rb +21 -8
  162. data/lib/citypay_api_client/models/process_batch_request.rb +308 -0
  163. data/lib/citypay_api_client/models/process_batch_response.rb +234 -0
  164. data/lib/citypay_api_client/models/refund_request.rb +332 -0
  165. data/lib/citypay_api_client/models/register_card.rb +59 -12
  166. data/lib/citypay_api_client/models/request_challenged.rb +29 -16
  167. data/lib/citypay_api_client/models/retrieve_request.rb +21 -8
  168. data/lib/citypay_api_client/models/three_d_secure.rb +106 -13
  169. data/lib/citypay_api_client/models/tokenisation_response_model.rb +333 -0
  170. data/lib/citypay_api_client/models/void_request.rb +22 -19
  171. data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
  172. data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
  173. data/lib/citypay_api_client/version.rb +3 -3
  174. data/lib/citypay_api_client.rb +53 -6
  175. data/spec/.DS_Store +0 -0
  176. data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
  177. data/spec/api/batch_processing_api___spec.rb +70 -0
  178. data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
  179. data/spec/api/direct_post_api___spec.rb +98 -0
  180. data/spec/api/operational_functions_api___spec.rb +94 -0
  181. data/spec/api/paylink_api___spec.rb +131 -0
  182. data/spec/api_client_spec.rb +4 -4
  183. data/spec/configuration_spec.rb +5 -5
  184. data/spec/it_api_sandbox_spec.rb +222 -0
  185. data/spec/models/acknowledgement_spec.rb +6 -8
  186. data/spec/models/acl_check_request_spec.rb +33 -0
  187. data/spec/models/acl_check_response_model_spec.rb +51 -0
  188. data/spec/models/auth_references_spec.rb +7 -8
  189. data/spec/models/auth_response_spec.rb +29 -30
  190. data/spec/models/batch_report_request_spec.rb +39 -0
  191. data/spec/models/batch_report_response_model_spec.rb +63 -0
  192. data/spec/models/batch_spec.rb +45 -0
  193. data/spec/models/batch_transaction_result_model_spec.rb +87 -0
  194. data/spec/models/batch_transaction_spec.rb +51 -0
  195. data/spec/models/bin_lookup_spec.rb +33 -0
  196. data/spec/models/bin_spec.rb +81 -0
  197. data/spec/models/card_holder_account_spec.rb +8 -5
  198. data/spec/models/check_batch_status_response_spec.rb +45 -0
  199. data/spec/models/check_batch_status_spec.rb +39 -0
  200. data/spec/models/decision_spec.rb +1 -1
  201. data/spec/models/direct_post_request_spec.rb +153 -0
  202. data/spec/models/direct_token_auth_request_spec.rb +51 -0
  203. data/spec/models/domain_key_check_request_spec.rb +33 -0
  204. data/spec/models/domain_key_request_spec.rb +45 -0
  205. data/spec/models/domain_key_response_spec.rb +57 -0
  206. data/spec/models/event_data_model_spec.rb +57 -0
  207. data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
  208. data/spec/models/list_merchants_response_spec.rb +2 -2
  209. data/spec/models/paylink_address_spec.rb +69 -0
  210. data/spec/models/paylink_adjustment_request_spec.rb +45 -0
  211. data/spec/models/paylink_attachment_request_spec.rb +45 -0
  212. data/spec/models/paylink_attachment_result_spec.rb +45 -0
  213. data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
  214. data/spec/models/paylink_card_holder_spec.rb +87 -0
  215. data/spec/models/paylink_cart_item_model_spec.rb +75 -0
  216. data/spec/models/paylink_cart_spec.rb +69 -0
  217. data/spec/models/paylink_config_spec.rb +159 -0
  218. data/spec/models/paylink_custom_param_spec.rb +87 -0
  219. data/spec/models/paylink_email_notification_path_spec.rb +57 -0
  220. data/spec/models/paylink_error_code_spec.rb +39 -0
  221. data/spec/models/paylink_field_guard_model_spec.rb +45 -0
  222. data/spec/models/paylink_part_payments_spec.rb +63 -0
  223. data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
  224. data/spec/models/paylink_state_event_spec.rb +45 -0
  225. data/spec/models/paylink_token_created_spec.rb +111 -0
  226. data/spec/models/paylink_token_request_model_spec.rb +93 -0
  227. data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
  228. data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
  229. data/spec/models/paylink_token_status_spec.rb +195 -0
  230. data/spec/models/paylink_ui_spec.rb +51 -0
  231. data/spec/models/process_batch_request_spec.rb +51 -0
  232. data/spec/models/process_batch_response_spec.rb +39 -0
  233. data/spec/models/refund_request_spec.rb +64 -0
  234. data/spec/models/tokenisation_response_model_spec.rb +87 -0
  235. data/spec/spec_helper.rb +2 -2
  236. data/spec/utils/direct_post_mac_spec.rb +13 -0
  237. metadata +212 -37
  238. data/Gemfile.lock +0 -70
  239. data/git_push.sh +0 -58
  240. data/lib/citypay_api_client/api/operational_api.rb +0 -147
  241. data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
  242. data/lib/citypay_api_client/test.rb +0 -20
  243. data/spec/api/payment_processing_api_spec.rb +0 -106
@@ -1,33 +1,33 @@
1
1
  # CityPayApiClient::CardHolderAccountApi
2
2
 
3
- All URIs are relative to *https://api.citypay.com/v6*
4
-
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**account_card_delete_request**](CardHolderAccountApi.md#account_card_delete_request) | **DELETE** /account/{accountid}/card/{cardId} | Card Deletion
8
- [**account_card_register_request**](CardHolderAccountApi.md#account_card_register_request) | **POST** /account/{accountid}/register | Card Registration
9
- [**account_card_status_request**](CardHolderAccountApi.md#account_card_status_request) | **POST** /account/{accountid}/card/{cardId}/status | Card Status
10
- [**account_change_contact_request**](CardHolderAccountApi.md#account_change_contact_request) | **POST** /account/{accountid}/contact | Contact Details Update
11
- [**account_create**](CardHolderAccountApi.md#account_create) | **POST** /account/create | Account Create
12
- [**account_delete_request**](CardHolderAccountApi.md#account_delete_request) | **DELETE** /account/{accountid} | Account Deletion
13
- [**account_retrieve_request**](CardHolderAccountApi.md#account_retrieve_request) | **GET** /account/{accountid} | Account Retrieval
14
- [**account_status_request**](CardHolderAccountApi.md#account_status_request) | **POST** /account/{accountid}/status | Account Status
15
- [**charge_request**](CardHolderAccountApi.md#charge_request) | **POST** /charge | Charge
16
-
3
+ All URIs are relative to *https://api.citypay.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**account_card_delete_request**](CardHolderAccountApi.md#account_card_delete_request) | **DELETE** /v6/account/{accountid}/card/{cardId} | Card Deletion |
8
+ | [**account_card_register_request**](CardHolderAccountApi.md#account_card_register_request) | **POST** /v6/account/{accountid}/register | Card Registration |
9
+ | [**account_card_status_request**](CardHolderAccountApi.md#account_card_status_request) | **POST** /v6/account/{accountid}/card/{cardId}/status | Card Status |
10
+ | [**account_change_contact_request**](CardHolderAccountApi.md#account_change_contact_request) | **POST** /v6/account/{accountid}/contact | Contact Details Update |
11
+ | [**account_create**](CardHolderAccountApi.md#account_create) | **POST** /v6/account/create | Account Create |
12
+ | [**account_delete_request**](CardHolderAccountApi.md#account_delete_request) | **DELETE** /v6/account/{accountid} | Account Deletion |
13
+ | [**account_exists_request**](CardHolderAccountApi.md#account_exists_request) | **GET** /v6/account-exists/{accountid} | Account Exists |
14
+ | [**account_retrieve_request**](CardHolderAccountApi.md#account_retrieve_request) | **GET** /v6/account/{accountid} | Account Retrieval |
15
+ | [**account_status_request**](CardHolderAccountApi.md#account_status_request) | **POST** /v6/account/{accountid}/status | Account Status |
16
+ | [**charge_request**](CardHolderAccountApi.md#charge_request) | **POST** /v6/charge | Charge |
17
17
 
18
18
 
19
19
  ## account_card_delete_request
20
20
 
21
- > Acknowledgement account_card_delete_request(accountid, card_id)
21
+ > <Acknowledgement> account_card_delete_request(accountid, card_id)
22
22
 
23
23
  Card Deletion
24
24
 
25
25
  Deletes a card from the account. The card will be marked for deletion before a subsequent purge will clear the card permanently.
26
26
 
27
- ### Example
27
+ ### Examples
28
28
 
29
29
  ```ruby
30
- # load the gem
30
+ require 'time'
31
31
  require 'citypay_api_client'
32
32
  # setup authorization
33
33
  CityPayApiClient.configure do |config|
@@ -39,21 +39,38 @@ accountid = 'accountid_example' # String | The account id that refers to the cus
39
39
  card_id = 'card_id_example' # String | The id of the card that is presented by a call to retrieve a card holder account.
40
40
 
41
41
  begin
42
- #Card Deletion
42
+ # Card Deletion
43
43
  result = api_instance.account_card_delete_request(accountid, card_id)
44
44
  p result
45
45
  rescue CityPayApiClient::ApiError => e
46
- puts "Exception when calling CardHolderAccountApi->account_card_delete_request: #{e}"
46
+ puts "Error when calling CardHolderAccountApi->account_card_delete_request: #{e}"
47
47
  end
48
48
  ```
49
49
 
50
- ### Parameters
50
+ #### Using the account_card_delete_request_with_http_info variant
51
+
52
+ This returns an Array which contains the response data, status code and headers.
53
+
54
+ > <Array(<Acknowledgement>, Integer, Hash)> account_card_delete_request_with_http_info(accountid, card_id)
55
+
56
+ ```ruby
57
+ begin
58
+ # Card Deletion
59
+ data, status_code, headers = api_instance.account_card_delete_request_with_http_info(accountid, card_id)
60
+ p status_code # => 2xx
61
+ p headers # => { ... }
62
+ p data # => <Acknowledgement>
63
+ rescue CityPayApiClient::ApiError => e
64
+ puts "Error when calling CardHolderAccountApi->account_card_delete_request_with_http_info: #{e}"
65
+ end
66
+ ```
51
67
 
68
+ ### Parameters
52
69
 
53
- Name | Type | Description | Notes
54
- ------------- | ------------- | ------------- | -------------
55
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
56
- **card_id** | **String**| The id of the card that is presented by a call to retrieve a card holder account. |
70
+ | Name | Type | Description | Notes |
71
+ | ---- | ---- | ----------- | ----- |
72
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
73
+ | **card_id** | **String** | The id of the card that is presented by a call to retrieve a card holder account. | |
57
74
 
58
75
  ### Return type
59
76
 
@@ -71,16 +88,16 @@ Name | Type | Description | Notes
71
88
 
72
89
  ## account_card_register_request
73
90
 
74
- > CardHolderAccount account_card_register_request(accountid, register_card)
91
+ > <CardHolderAccount> account_card_register_request(accountid, register_card)
75
92
 
76
93
  Card Registration
77
94
 
78
95
  Allows for a card to be registered for the account. The card will be added for future processing and will be available as a tokenised value for future processing. The card will be validated for 0. Being a valid card number (luhn check) 0. Having a valid expiry date 0. Being a valid bin value.
79
96
 
80
- ### Example
97
+ ### Examples
81
98
 
82
99
  ```ruby
83
- # load the gem
100
+ require 'time'
84
101
  require 'citypay_api_client'
85
102
  # setup authorization
86
103
  CityPayApiClient.configure do |config|
@@ -89,24 +106,41 @@ end
89
106
 
90
107
  api_instance = CityPayApiClient::CardHolderAccountApi.new
91
108
  accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
92
- register_card = CityPayApiClient::RegisterCard.new # RegisterCard |
109
+ register_card = CityPayApiClient::RegisterCard.new({cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025}) # RegisterCard |
93
110
 
94
111
  begin
95
- #Card Registration
112
+ # Card Registration
96
113
  result = api_instance.account_card_register_request(accountid, register_card)
97
114
  p result
98
115
  rescue CityPayApiClient::ApiError => e
99
- puts "Exception when calling CardHolderAccountApi->account_card_register_request: #{e}"
116
+ puts "Error when calling CardHolderAccountApi->account_card_register_request: #{e}"
100
117
  end
101
118
  ```
102
119
 
103
- ### Parameters
120
+ #### Using the account_card_register_request_with_http_info variant
104
121
 
122
+ This returns an Array which contains the response data, status code and headers.
105
123
 
106
- Name | Type | Description | Notes
107
- ------------- | ------------- | ------------- | -------------
108
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
109
- **register_card** | [**RegisterCard**](RegisterCard.md)| |
124
+ > <Array(<CardHolderAccount>, Integer, Hash)> account_card_register_request_with_http_info(accountid, register_card)
125
+
126
+ ```ruby
127
+ begin
128
+ # Card Registration
129
+ data, status_code, headers = api_instance.account_card_register_request_with_http_info(accountid, register_card)
130
+ p status_code # => 2xx
131
+ p headers # => { ... }
132
+ p data # => <CardHolderAccount>
133
+ rescue CityPayApiClient::ApiError => e
134
+ puts "Error when calling CardHolderAccountApi->account_card_register_request_with_http_info: #{e}"
135
+ end
136
+ ```
137
+
138
+ ### Parameters
139
+
140
+ | Name | Type | Description | Notes |
141
+ | ---- | ---- | ----------- | ----- |
142
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
143
+ | **register_card** | [**RegisterCard**](RegisterCard.md) | | |
110
144
 
111
145
  ### Return type
112
146
 
@@ -124,16 +158,16 @@ Name | Type | Description | Notes
124
158
 
125
159
  ## account_card_status_request
126
160
 
127
- > Acknowledgement account_card_status_request(accountid, card_id, card_status)
161
+ > <Acknowledgement> account_card_status_request(accountid, card_id, card_status)
128
162
 
129
163
  Card Status
130
164
 
131
165
  Updates the status of a card for processing. The following values are available | Status | Description | |--------|-------------| | Active | The card is active for processing and can be used for charging against with a valid token | | Inactive | The card is inactive for processing and cannot be used for processing, it will require reactivation before being used to charge | | Expired | The card has expired either due to the expiry date no longer being valid or due to a replacement card being issued |
132
166
 
133
- ### Example
167
+ ### Examples
134
168
 
135
169
  ```ruby
136
- # load the gem
170
+ require 'time'
137
171
  require 'citypay_api_client'
138
172
  # setup authorization
139
173
  CityPayApiClient.configure do |config|
@@ -146,22 +180,39 @@ card_id = 'card_id_example' # String | The id of the card that is presented by a
146
180
  card_status = CityPayApiClient::CardStatus.new # CardStatus |
147
181
 
148
182
  begin
149
- #Card Status
183
+ # Card Status
150
184
  result = api_instance.account_card_status_request(accountid, card_id, card_status)
151
185
  p result
152
186
  rescue CityPayApiClient::ApiError => e
153
- puts "Exception when calling CardHolderAccountApi->account_card_status_request: #{e}"
187
+ puts "Error when calling CardHolderAccountApi->account_card_status_request: #{e}"
154
188
  end
155
189
  ```
156
190
 
157
- ### Parameters
191
+ #### Using the account_card_status_request_with_http_info variant
158
192
 
193
+ This returns an Array which contains the response data, status code and headers.
159
194
 
160
- Name | Type | Description | Notes
161
- ------------- | ------------- | ------------- | -------------
162
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
163
- **card_id** | **String**| The id of the card that is presented by a call to retrieve a card holder account. |
164
- **card_status** | [**CardStatus**](CardStatus.md)| |
195
+ > <Array(<Acknowledgement>, Integer, Hash)> account_card_status_request_with_http_info(accountid, card_id, card_status)
196
+
197
+ ```ruby
198
+ begin
199
+ # Card Status
200
+ data, status_code, headers = api_instance.account_card_status_request_with_http_info(accountid, card_id, card_status)
201
+ p status_code # => 2xx
202
+ p headers # => { ... }
203
+ p data # => <Acknowledgement>
204
+ rescue CityPayApiClient::ApiError => e
205
+ puts "Error when calling CardHolderAccountApi->account_card_status_request_with_http_info: #{e}"
206
+ end
207
+ ```
208
+
209
+ ### Parameters
210
+
211
+ | Name | Type | Description | Notes |
212
+ | ---- | ---- | ----------- | ----- |
213
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
214
+ | **card_id** | **String** | The id of the card that is presented by a call to retrieve a card holder account. | |
215
+ | **card_status** | [**CardStatus**](CardStatus.md) | | |
165
216
 
166
217
  ### Return type
167
218
 
@@ -179,16 +230,16 @@ Name | Type | Description | Notes
179
230
 
180
231
  ## account_change_contact_request
181
232
 
182
- > CardHolderAccount account_change_contact_request(accountid, contact_details)
233
+ > <CardHolderAccount> account_change_contact_request(accountid, contact_details)
183
234
 
184
235
  Contact Details Update
185
236
 
186
237
  Allows for the ability to change the contact details for an account.
187
238
 
188
- ### Example
239
+ ### Examples
189
240
 
190
241
  ```ruby
191
- # load the gem
242
+ require 'time'
192
243
  require 'citypay_api_client'
193
244
  # setup authorization
194
245
  CityPayApiClient.configure do |config|
@@ -200,21 +251,38 @@ accountid = 'accountid_example' # String | The account id that refers to the cus
200
251
  contact_details = CityPayApiClient::ContactDetails.new # ContactDetails |
201
252
 
202
253
  begin
203
- #Contact Details Update
254
+ # Contact Details Update
204
255
  result = api_instance.account_change_contact_request(accountid, contact_details)
205
256
  p result
206
257
  rescue CityPayApiClient::ApiError => e
207
- puts "Exception when calling CardHolderAccountApi->account_change_contact_request: #{e}"
258
+ puts "Error when calling CardHolderAccountApi->account_change_contact_request: #{e}"
208
259
  end
209
260
  ```
210
261
 
211
- ### Parameters
262
+ #### Using the account_change_contact_request_with_http_info variant
212
263
 
264
+ This returns an Array which contains the response data, status code and headers.
213
265
 
214
- Name | Type | Description | Notes
215
- ------------- | ------------- | ------------- | -------------
216
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
217
- **contact_details** | [**ContactDetails**](ContactDetails.md)| |
266
+ > <Array(<CardHolderAccount>, Integer, Hash)> account_change_contact_request_with_http_info(accountid, contact_details)
267
+
268
+ ```ruby
269
+ begin
270
+ # Contact Details Update
271
+ data, status_code, headers = api_instance.account_change_contact_request_with_http_info(accountid, contact_details)
272
+ p status_code # => 2xx
273
+ p headers # => { ... }
274
+ p data # => <CardHolderAccount>
275
+ rescue CityPayApiClient::ApiError => e
276
+ puts "Error when calling CardHolderAccountApi->account_change_contact_request_with_http_info: #{e}"
277
+ end
278
+ ```
279
+
280
+ ### Parameters
281
+
282
+ | Name | Type | Description | Notes |
283
+ | ---- | ---- | ----------- | ----- |
284
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
285
+ | **contact_details** | [**ContactDetails**](ContactDetails.md) | | |
218
286
 
219
287
  ### Return type
220
288
 
@@ -232,16 +300,16 @@ Name | Type | Description | Notes
232
300
 
233
301
  ## account_create
234
302
 
235
- > CardHolderAccount account_create(account_create)
303
+ > <CardHolderAccount> account_create(account_create)
236
304
 
237
305
  Account Create
238
306
 
239
307
  Creates a new card holder account and initialises the account ready for adding cards.
240
308
 
241
- ### Example
309
+ ### Examples
242
310
 
243
311
  ```ruby
244
- # load the gem
312
+ require 'time'
245
313
  require 'citypay_api_client'
246
314
  # setup authorization
247
315
  CityPayApiClient.configure do |config|
@@ -249,23 +317,40 @@ CityPayApiClient.configure do |config|
249
317
  end
250
318
 
251
319
  api_instance = CityPayApiClient::CardHolderAccountApi.new
252
- account_create = CityPayApiClient::AccountCreate.new # AccountCreate |
320
+ account_create = CityPayApiClient::AccountCreate.new({account_id: 'aaabbb-cccddd-eee'}) # AccountCreate |
253
321
 
254
322
  begin
255
- #Account Create
323
+ # Account Create
256
324
  result = api_instance.account_create(account_create)
257
325
  p result
258
326
  rescue CityPayApiClient::ApiError => e
259
- puts "Exception when calling CardHolderAccountApi->account_create: #{e}"
327
+ puts "Error when calling CardHolderAccountApi->account_create: #{e}"
260
328
  end
261
329
  ```
262
330
 
263
- ### Parameters
331
+ #### Using the account_create_with_http_info variant
332
+
333
+ This returns an Array which contains the response data, status code and headers.
264
334
 
335
+ > <Array(<CardHolderAccount>, Integer, Hash)> account_create_with_http_info(account_create)
336
+
337
+ ```ruby
338
+ begin
339
+ # Account Create
340
+ data, status_code, headers = api_instance.account_create_with_http_info(account_create)
341
+ p status_code # => 2xx
342
+ p headers # => { ... }
343
+ p data # => <CardHolderAccount>
344
+ rescue CityPayApiClient::ApiError => e
345
+ puts "Error when calling CardHolderAccountApi->account_create_with_http_info: #{e}"
346
+ end
347
+ ```
348
+
349
+ ### Parameters
265
350
 
266
- Name | Type | Description | Notes
267
- ------------- | ------------- | ------------- | -------------
268
- **account_create** | [**AccountCreate**](AccountCreate.md)| |
351
+ | Name | Type | Description | Notes |
352
+ | ---- | ---- | ----------- | ----- |
353
+ | **account_create** | [**AccountCreate**](AccountCreate.md) | | |
269
354
 
270
355
  ### Return type
271
356
 
@@ -283,16 +368,16 @@ Name | Type | Description | Notes
283
368
 
284
369
  ## account_delete_request
285
370
 
286
- > Acknowledgement account_delete_request(accountid)
371
+ > <Acknowledgement> account_delete_request(accountid)
287
372
 
288
373
  Account Deletion
289
374
 
290
375
  Allows for the deletion of an account. The account will marked for deletion and subsequent purging. No further transactions will be alowed to be processed or actioned against this account.
291
376
 
292
- ### Example
377
+ ### Examples
293
378
 
294
379
  ```ruby
295
- # load the gem
380
+ require 'time'
296
381
  require 'citypay_api_client'
297
382
  # setup authorization
298
383
  CityPayApiClient.configure do |config|
@@ -303,20 +388,37 @@ api_instance = CityPayApiClient::CardHolderAccountApi.new
303
388
  accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
304
389
 
305
390
  begin
306
- #Account Deletion
391
+ # Account Deletion
307
392
  result = api_instance.account_delete_request(accountid)
308
393
  p result
309
394
  rescue CityPayApiClient::ApiError => e
310
- puts "Exception when calling CardHolderAccountApi->account_delete_request: #{e}"
395
+ puts "Error when calling CardHolderAccountApi->account_delete_request: #{e}"
311
396
  end
312
397
  ```
313
398
 
314
- ### Parameters
399
+ #### Using the account_delete_request_with_http_info variant
400
+
401
+ This returns an Array which contains the response data, status code and headers.
315
402
 
403
+ > <Array(<Acknowledgement>, Integer, Hash)> account_delete_request_with_http_info(accountid)
316
404
 
317
- Name | Type | Description | Notes
318
- ------------- | ------------- | ------------- | -------------
319
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
405
+ ```ruby
406
+ begin
407
+ # Account Deletion
408
+ data, status_code, headers = api_instance.account_delete_request_with_http_info(accountid)
409
+ p status_code # => 2xx
410
+ p headers # => { ... }
411
+ p data # => <Acknowledgement>
412
+ rescue CityPayApiClient::ApiError => e
413
+ puts "Error when calling CardHolderAccountApi->account_delete_request_with_http_info: #{e}"
414
+ end
415
+ ```
416
+
417
+ ### Parameters
418
+
419
+ | Name | Type | Description | Notes |
420
+ | ---- | ---- | ----------- | ----- |
421
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
320
422
 
321
423
  ### Return type
322
424
 
@@ -332,18 +434,86 @@ Name | Type | Description | Notes
332
434
  - **Accept**: application/json, text/xml
333
435
 
334
436
 
437
+ ## account_exists_request
438
+
439
+ > <Exists> account_exists_request(accountid)
440
+
441
+ Account Exists
442
+
443
+ Checks that an account exists and is active by providing the account id as a url parameter.
444
+
445
+ ### Examples
446
+
447
+ ```ruby
448
+ require 'time'
449
+ require 'citypay_api_client'
450
+ # setup authorization
451
+ CityPayApiClient.configure do |config|
452
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
453
+ end
454
+
455
+ api_instance = CityPayApiClient::CardHolderAccountApi.new
456
+ accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
457
+
458
+ begin
459
+ # Account Exists
460
+ result = api_instance.account_exists_request(accountid)
461
+ p result
462
+ rescue CityPayApiClient::ApiError => e
463
+ puts "Error when calling CardHolderAccountApi->account_exists_request: #{e}"
464
+ end
465
+ ```
466
+
467
+ #### Using the account_exists_request_with_http_info variant
468
+
469
+ This returns an Array which contains the response data, status code and headers.
470
+
471
+ > <Array(<Exists>, Integer, Hash)> account_exists_request_with_http_info(accountid)
472
+
473
+ ```ruby
474
+ begin
475
+ # Account Exists
476
+ data, status_code, headers = api_instance.account_exists_request_with_http_info(accountid)
477
+ p status_code # => 2xx
478
+ p headers # => { ... }
479
+ p data # => <Exists>
480
+ rescue CityPayApiClient::ApiError => e
481
+ puts "Error when calling CardHolderAccountApi->account_exists_request_with_http_info: #{e}"
482
+ end
483
+ ```
484
+
485
+ ### Parameters
486
+
487
+ | Name | Type | Description | Notes |
488
+ | ---- | ---- | ----------- | ----- |
489
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
490
+
491
+ ### Return type
492
+
493
+ [**Exists**](Exists.md)
494
+
495
+ ### Authorization
496
+
497
+ [cp-api-key](../README.md#cp-api-key)
498
+
499
+ ### HTTP request headers
500
+
501
+ - **Content-Type**: Not defined
502
+ - **Accept**: application/json, text/xml
503
+
504
+
335
505
  ## account_retrieve_request
336
506
 
337
- > CardHolderAccount account_retrieve_request(accountid)
507
+ > <CardHolderAccount> account_retrieve_request(accountid)
338
508
 
339
509
  Account Retrieval
340
510
 
341
511
  Allows for the retrieval of a card holder account for the given `id`. Should duplicate accounts exist for the same `id`, the first account created with that `id` will be returned. The account can be used for tokenisation processing by listing all cards assigned to the account. The returned cards will include all `active`, `inactive` and `expired` cards. This can be used to enable a card holder to view their wallet and make constructive choices on which card to use.
342
512
 
343
- ### Example
513
+ ### Examples
344
514
 
345
515
  ```ruby
346
- # load the gem
516
+ require 'time'
347
517
  require 'citypay_api_client'
348
518
  # setup authorization
349
519
  CityPayApiClient.configure do |config|
@@ -354,20 +524,37 @@ api_instance = CityPayApiClient::CardHolderAccountApi.new
354
524
  accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
355
525
 
356
526
  begin
357
- #Account Retrieval
527
+ # Account Retrieval
358
528
  result = api_instance.account_retrieve_request(accountid)
359
529
  p result
360
530
  rescue CityPayApiClient::ApiError => e
361
- puts "Exception when calling CardHolderAccountApi->account_retrieve_request: #{e}"
531
+ puts "Error when calling CardHolderAccountApi->account_retrieve_request: #{e}"
362
532
  end
363
533
  ```
364
534
 
365
- ### Parameters
535
+ #### Using the account_retrieve_request_with_http_info variant
366
536
 
537
+ This returns an Array which contains the response data, status code and headers.
367
538
 
368
- Name | Type | Description | Notes
369
- ------------- | ------------- | ------------- | -------------
370
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
539
+ > <Array(<CardHolderAccount>, Integer, Hash)> account_retrieve_request_with_http_info(accountid)
540
+
541
+ ```ruby
542
+ begin
543
+ # Account Retrieval
544
+ data, status_code, headers = api_instance.account_retrieve_request_with_http_info(accountid)
545
+ p status_code # => 2xx
546
+ p headers # => { ... }
547
+ p data # => <CardHolderAccount>
548
+ rescue CityPayApiClient::ApiError => e
549
+ puts "Error when calling CardHolderAccountApi->account_retrieve_request_with_http_info: #{e}"
550
+ end
551
+ ```
552
+
553
+ ### Parameters
554
+
555
+ | Name | Type | Description | Notes |
556
+ | ---- | ---- | ----------- | ----- |
557
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
371
558
 
372
559
  ### Return type
373
560
 
@@ -385,16 +572,16 @@ Name | Type | Description | Notes
385
572
 
386
573
  ## account_status_request
387
574
 
388
- > Acknowledgement account_status_request(accountid, account_status)
575
+ > <Acknowledgement> account_status_request(accountid, account_status)
389
576
 
390
577
  Account Status
391
578
 
392
579
  Updates the status of an account. An account can have the following statuses applied | Status | Description | |--------|-------------| | Active | The account is active for processing | | Disabled | The account has been disabled and cannot be used for processing. The account will require reactivation to continue procesing |
393
580
 
394
- ### Example
581
+ ### Examples
395
582
 
396
583
  ```ruby
397
- # load the gem
584
+ require 'time'
398
585
  require 'citypay_api_client'
399
586
  # setup authorization
400
587
  CityPayApiClient.configure do |config|
@@ -406,21 +593,38 @@ accountid = 'accountid_example' # String | The account id that refers to the cus
406
593
  account_status = CityPayApiClient::AccountStatus.new # AccountStatus |
407
594
 
408
595
  begin
409
- #Account Status
596
+ # Account Status
410
597
  result = api_instance.account_status_request(accountid, account_status)
411
598
  p result
412
599
  rescue CityPayApiClient::ApiError => e
413
- puts "Exception when calling CardHolderAccountApi->account_status_request: #{e}"
600
+ puts "Error when calling CardHolderAccountApi->account_status_request: #{e}"
414
601
  end
415
602
  ```
416
603
 
417
- ### Parameters
604
+ #### Using the account_status_request_with_http_info variant
605
+
606
+ This returns an Array which contains the response data, status code and headers.
607
+
608
+ > <Array(<Acknowledgement>, Integer, Hash)> account_status_request_with_http_info(accountid, account_status)
418
609
 
610
+ ```ruby
611
+ begin
612
+ # Account Status
613
+ data, status_code, headers = api_instance.account_status_request_with_http_info(accountid, account_status)
614
+ p status_code # => 2xx
615
+ p headers # => { ... }
616
+ p data # => <Acknowledgement>
617
+ rescue CityPayApiClient::ApiError => e
618
+ puts "Error when calling CardHolderAccountApi->account_status_request_with_http_info: #{e}"
619
+ end
620
+ ```
419
621
 
420
- Name | Type | Description | Notes
421
- ------------- | ------------- | ------------- | -------------
422
- **accountid** | **String**| The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. |
423
- **account_status** | [**AccountStatus**](AccountStatus.md)| |
622
+ ### Parameters
623
+
624
+ | Name | Type | Description | Notes |
625
+ | ---- | ---- | ----------- | ----- |
626
+ | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
627
+ | **account_status** | [**AccountStatus**](AccountStatus.md) | | |
424
628
 
425
629
  ### Return type
426
630
 
@@ -438,16 +642,16 @@ Name | Type | Description | Notes
438
642
 
439
643
  ## charge_request
440
644
 
441
- > Decision charge_request(charge_request)
645
+ > <Decision> charge_request(charge_request)
442
646
 
443
647
  Charge
444
648
 
445
- A charge process obtains an authorisation using a tokenised value which represents a stored card on a card holder account. A card must previously be registered by calling `/account-register-card` with the card details or retrieved using `/account-retrieve` Tokens are generated whenever a previously registered list of cards are retrieved. Each token has, by design a relatively short time to live of 30 minutes. This is both to safe guard the merchant and card holder from replay attacks. Tokens are also restricted to your account, preventing malicious actors from stealing details for use elsewhere. If a token is reused after it has expired it will be rejected and a new token will be required. Tokenisation can be used for - repeat authorisations on a previously stored card - easy authorisations just requiring CSC values to be entered - can be used for credential on file style payments - can require full 3-D Secure authentication to retain the liability shift - wallet style usage.
649
+ A charge process obtains an authorisation using a tokenised value which represents a stored card on a card holder account. A card must previously be registered by calling `/account-register-card` with the card details or retrieved using `/account-retrieve` Tokens are generated whenever a previously registered list of cards are retrieved. Each token has, by design a relatively short time to live of 30 minutes. This is both to safe guard the merchant and card holder from replay attacks. Tokens are also restricted to your account, preventing malicious actors from stealing details for use elsewhere. If a token is reused after it has expired it will be rejected and a new token will be required. Tokenisation can be used for - repeat authorisations on a previously stored card - easy authorisations just requiring CSC values to be entered - can be used for credential on file style payments - can require full 3-D Secure authentication to retain the liability shift - wallet style usage _Should an account be used with 3DSv2, the card holder name should also be stored alongside the card as this is a required field with both Visa and MasterCard for risk analysis._.
446
650
 
447
- ### Example
651
+ ### Examples
448
652
 
449
653
  ```ruby
450
- # load the gem
654
+ require 'time'
451
655
  require 'citypay_api_client'
452
656
  # setup authorization
453
657
  CityPayApiClient.configure do |config|
@@ -455,23 +659,40 @@ CityPayApiClient.configure do |config|
455
659
  end
456
660
 
457
661
  api_instance = CityPayApiClient::CardHolderAccountApi.new
458
- charge_request = CityPayApiClient::ChargeRequest.new # ChargeRequest |
662
+ charge_request = CityPayApiClient::ChargeRequest.new({amount: 3600, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344, token: 'ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr'}) # ChargeRequest |
459
663
 
460
664
  begin
461
- #Charge
665
+ # Charge
462
666
  result = api_instance.charge_request(charge_request)
463
667
  p result
464
668
  rescue CityPayApiClient::ApiError => e
465
- puts "Exception when calling CardHolderAccountApi->charge_request: #{e}"
669
+ puts "Error when calling CardHolderAccountApi->charge_request: #{e}"
466
670
  end
467
671
  ```
468
672
 
469
- ### Parameters
673
+ #### Using the charge_request_with_http_info variant
674
+
675
+ This returns an Array which contains the response data, status code and headers.
470
676
 
677
+ > <Array(<Decision>, Integer, Hash)> charge_request_with_http_info(charge_request)
678
+
679
+ ```ruby
680
+ begin
681
+ # Charge
682
+ data, status_code, headers = api_instance.charge_request_with_http_info(charge_request)
683
+ p status_code # => 2xx
684
+ p headers # => { ... }
685
+ p data # => <Decision>
686
+ rescue CityPayApiClient::ApiError => e
687
+ puts "Error when calling CardHolderAccountApi->charge_request_with_http_info: #{e}"
688
+ end
689
+ ```
690
+
691
+ ### Parameters
471
692
 
472
- Name | Type | Description | Notes
473
- ------------- | ------------- | ------------- | -------------
474
- **charge_request** | [**ChargeRequest**](ChargeRequest.md)| |
693
+ | Name | Type | Description | Notes |
694
+ | ---- | ---- | ----------- | ----- |
695
+ | **charge_request** | [**ChargeRequest**](ChargeRequest.md) | | |
475
696
 
476
697
  ### Return type
477
698