citypay_api_client 1.0.3 → 1.1.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (265) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +111 -39
  3. data/citypay_api_client.gemspec +5 -5
  4. data/docs/AccountCreate.md +10 -9
  5. data/docs/AccountStatus.md +8 -7
  6. data/docs/Acknowledgement.md +14 -13
  7. data/docs/AclCheckRequest.md +18 -0
  8. data/docs/AclCheckResponseModel.md +24 -0
  9. data/docs/AirlineAdvice.md +38 -37
  10. data/docs/AirlineSegment.md +22 -21
  11. data/docs/AuthReference.md +34 -33
  12. data/docs/AuthReferences.md +8 -7
  13. data/docs/AuthRequest.md +52 -49
  14. data/docs/AuthResponse.md +64 -59
  15. data/docs/AuthenRequired.md +12 -11
  16. data/docs/AuthorisationAndPaymentApi.md +850 -0
  17. data/docs/Batch.md +22 -0
  18. data/docs/BatchProcessingApi.md +218 -0
  19. data/docs/BatchReportRequest.md +20 -0
  20. data/docs/BatchReportResponseModel.md +28 -0
  21. data/docs/BatchTransaction.md +24 -0
  22. data/docs/BatchTransactionResultModel.md +44 -0
  23. data/docs/Bin.md +34 -0
  24. data/docs/BinLookup.md +18 -0
  25. data/docs/CResAuthRequest.md +8 -7
  26. data/docs/CaptureRequest.md +18 -17
  27. data/docs/Card.md +46 -41
  28. data/docs/CardHolderAccount.md +24 -21
  29. data/docs/CardHolderAccountApi.md +387 -111
  30. data/docs/CardStatus.md +10 -9
  31. data/docs/ChargeRequest.md +38 -31
  32. data/docs/CheckBatchStatus.md +20 -0
  33. data/docs/CheckBatchStatusResponse.md +18 -0
  34. data/docs/ContactDetails.md +32 -31
  35. data/docs/Decision.md +12 -11
  36. data/docs/DirectPostApi.md +389 -0
  37. data/docs/DirectPostRequest.md +60 -0
  38. data/docs/DirectTokenAuthRequest.md +24 -0
  39. data/docs/DomainKeyCheckRequest.md +18 -0
  40. data/docs/DomainKeyRequest.md +22 -0
  41. data/docs/DomainKeyResponse.md +26 -0
  42. data/docs/Error.md +16 -13
  43. data/docs/EventDataModel.md +26 -0
  44. data/docs/Exists.md +22 -0
  45. data/docs/ExternalMPI.md +16 -15
  46. data/docs/ListMerchantsResponse.md +12 -11
  47. data/docs/MCC6012.md +14 -13
  48. data/docs/Merchant.md +16 -15
  49. data/docs/OperationalFunctionsApi.md +375 -0
  50. data/docs/PaResAuthRequest.md +10 -9
  51. data/docs/PaylinkAddress.md +30 -0
  52. data/docs/PaylinkAdjustmentRequest.md +22 -0
  53. data/docs/PaylinkApi.md +806 -0
  54. data/docs/PaylinkAttachmentRequest.md +26 -0
  55. data/docs/PaylinkAttachmentResult.md +22 -0
  56. data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
  57. data/docs/PaylinkCardHolder.md +36 -0
  58. data/docs/PaylinkCart.md +30 -0
  59. data/docs/PaylinkCartItemModel.md +32 -0
  60. data/docs/PaylinkConfig.md +60 -0
  61. data/docs/PaylinkCustomParam.md +38 -0
  62. data/docs/PaylinkEmailNotificationPath.md +26 -0
  63. data/docs/PaylinkErrorCode.md +20 -0
  64. data/docs/PaylinkFieldGuardModel.md +30 -0
  65. data/docs/PaylinkPartPayments.md +28 -0
  66. data/docs/PaylinkSMSNotificationPath.md +20 -0
  67. data/docs/PaylinkStateEvent.md +22 -0
  68. data/docs/PaylinkTokenCreated.md +44 -0
  69. data/docs/PaylinkTokenRequestModel.md +42 -0
  70. data/docs/PaylinkTokenStatus.md +72 -0
  71. data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
  72. data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
  73. data/docs/PaylinkUI.md +24 -0
  74. data/docs/Ping.md +8 -7
  75. data/docs/ProcessBatchRequest.md +24 -0
  76. data/docs/ProcessBatchResponse.md +20 -0
  77. data/docs/RefundRequest.md +26 -0
  78. data/docs/RegisterCard.md +16 -13
  79. data/docs/RequestChallenged.md +16 -15
  80. data/docs/RetrieveRequest.md +12 -11
  81. data/docs/ThreeDSecure.md +32 -15
  82. data/docs/TokenisationResponseModel.md +36 -0
  83. data/docs/VoidRequest.md +12 -13
  84. data/docs/images/3dsv1-challenge.png +0 -0
  85. data/docs/images/3dsv2-challenge.png +0 -0
  86. data/docs/images/3dsv2-frictionless.png +0 -0
  87. data/docs/images/3dsv2-method-challenge.png +0 -0
  88. data/docs/images/3dsv2-method-frictionless.png +0 -0
  89. data/docs/images/3dsv2-no3d.png +0 -0
  90. data/docs/images/citypay-logo.svg +1 -0
  91. data/docs/images/direct-post-flow.png +0 -0
  92. data/docs/images/favicon.ico +0 -0
  93. data/docs/images/header.png +0 -0
  94. data/docs/images/logo.ai +1913 -4
  95. data/docs/images/logo.png +0 -0
  96. data/docs/images/logo.svg +1 -0
  97. data/docs/images/merchant-BPS-workflow.png +0 -0
  98. data/docs/images/paylink-field-guards.png +0 -0
  99. data/lib/.DS_Store +0 -0
  100. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
  101. data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
  102. data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
  103. data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
  104. data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
  105. data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
  106. data/lib/citypay_api_client/api_client.rb +72 -70
  107. data/lib/citypay_api_client/api_error.rb +3 -2
  108. data/lib/citypay_api_client/configuration.rb +74 -17
  109. data/lib/citypay_api_client/models/account_create.rb +33 -23
  110. data/lib/citypay_api_client/models/account_status.rb +31 -23
  111. data/lib/citypay_api_client/models/acknowledgement.rb +43 -27
  112. data/lib/citypay_api_client/models/acl_check_request.rb +221 -0
  113. data/lib/citypay_api_client/models/acl_check_response_model.rb +244 -0
  114. data/lib/citypay_api_client/models/airline_advice.rb +63 -34
  115. data/lib/citypay_api_client/models/airline_segment.rb +51 -25
  116. data/lib/citypay_api_client/models/auth_reference.rb +80 -31
  117. data/lib/citypay_api_client/models/auth_references.rb +31 -23
  118. data/lib/citypay_api_client/models/auth_request.rb +137 -56
  119. data/lib/citypay_api_client/models/auth_response.rb +83 -123
  120. data/lib/citypay_api_client/models/authen_required.rb +31 -23
  121. data/lib/citypay_api_client/models/batch.rb +267 -0
  122. data/lib/citypay_api_client/models/batch_report_request.rb +278 -0
  123. data/lib/citypay_api_client/models/batch_report_response_model.rb +364 -0
  124. data/lib/citypay_api_client/models/batch_transaction.rb +324 -0
  125. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +452 -0
  126. data/lib/citypay_api_client/models/bin.rb +294 -0
  127. data/lib/citypay_api_client/models/bin_lookup.rb +231 -0
  128. data/lib/citypay_api_client/models/c_res_auth_request.rb +31 -23
  129. data/lib/citypay_api_client/models/capture_request.rb +59 -38
  130. data/lib/citypay_api_client/models/card.rb +93 -29
  131. data/lib/citypay_api_client/models/card_holder_account.rb +49 -27
  132. data/lib/citypay_api_client/models/card_status.rb +31 -23
  133. data/lib/citypay_api_client/models/charge_request.rb +154 -47
  134. data/lib/citypay_api_client/models/check_batch_status.rb +260 -0
  135. data/lib/citypay_api_client/models/check_batch_status_response.rb +215 -0
  136. data/lib/citypay_api_client/models/contact_details.rb +130 -52
  137. data/lib/citypay_api_client/models/decision.rb +31 -23
  138. data/lib/citypay_api_client/models/direct_post_request.rb +707 -0
  139. data/lib/citypay_api_client/models/direct_token_auth_request.rb +244 -0
  140. data/lib/citypay_api_client/models/domain_key_check_request.rb +249 -0
  141. data/lib/citypay_api_client/models/domain_key_request.rb +249 -0
  142. data/lib/citypay_api_client/models/domain_key_response.rb +297 -0
  143. data/lib/citypay_api_client/models/error.rb +57 -31
  144. data/lib/citypay_api_client/models/event_data_model.rb +254 -0
  145. data/lib/citypay_api_client/models/exists.rb +241 -0
  146. data/lib/citypay_api_client/models/external_mpi.rb +61 -27
  147. data/lib/citypay_api_client/models/list_merchants_response.rb +37 -25
  148. data/lib/citypay_api_client/models/mcc6012.rb +31 -23
  149. data/lib/citypay_api_client/models/merchant.rb +31 -23
  150. data/lib/citypay_api_client/models/pa_res_auth_request.rb +36 -24
  151. data/lib/citypay_api_client/models/paylink_address.rb +425 -0
  152. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +272 -0
  153. data/lib/citypay_api_client/models/paylink_attachment_request.rb +268 -0
  154. data/lib/citypay_api_client/models/paylink_attachment_result.rb +248 -0
  155. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +289 -0
  156. data/lib/citypay_api_client/models/paylink_card_holder.rb +360 -0
  157. data/lib/citypay_api_client/models/paylink_cart.rb +275 -0
  158. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +284 -0
  159. data/lib/citypay_api_client/models/paylink_config.rb +428 -0
  160. data/lib/citypay_api_client/models/paylink_custom_param.rb +321 -0
  161. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +265 -0
  162. data/lib/citypay_api_client/models/paylink_error_code.rb +238 -0
  163. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +274 -0
  164. data/lib/citypay_api_client/models/paylink_part_payments.rb +264 -0
  165. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +231 -0
  166. data/lib/citypay_api_client/models/paylink_state_event.rb +234 -0
  167. data/lib/citypay_api_client/models/paylink_token_created.rb +365 -0
  168. data/lib/citypay_api_client/models/paylink_token_request_model.rb +427 -0
  169. data/lib/citypay_api_client/models/paylink_token_status.rb +485 -0
  170. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +269 -0
  171. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +232 -0
  172. data/lib/citypay_api_client/models/paylink_ui.rb +244 -0
  173. data/lib/citypay_api_client/models/ping.rb +37 -25
  174. data/lib/citypay_api_client/models/process_batch_request.rb +313 -0
  175. data/lib/citypay_api_client/models/process_batch_response.rb +231 -0
  176. data/lib/citypay_api_client/models/refund_request.rb +339 -0
  177. data/lib/citypay_api_client/models/register_card.rb +79 -27
  178. data/lib/citypay_api_client/models/request_challenged.rb +39 -31
  179. data/lib/citypay_api_client/models/retrieve_request.rb +39 -25
  180. data/lib/citypay_api_client/models/three_d_secure.rb +116 -28
  181. data/lib/citypay_api_client/models/tokenisation_response_model.rb +332 -0
  182. data/lib/citypay_api_client/models/void_request.rb +39 -37
  183. data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
  184. data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
  185. data/lib/citypay_api_client/version.rb +3 -4
  186. data/lib/citypay_api_client.rb +53 -6
  187. data/spec/.DS_Store +0 -0
  188. data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
  189. data/spec/api/batch_processing_api___spec.rb +70 -0
  190. data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
  191. data/spec/api/direct_post_api___spec.rb +98 -0
  192. data/spec/api/operational_functions_api___spec.rb +94 -0
  193. data/spec/api/paylink_api___spec.rb +131 -0
  194. data/spec/api_client_spec.rb +4 -4
  195. data/spec/configuration_spec.rb +5 -5
  196. data/spec/it_api_sandbox_spec.rb +117 -55
  197. data/spec/models/account_create_spec.rb +1 -2
  198. data/spec/models/account_status_spec.rb +2 -2
  199. data/spec/models/acknowledgement_spec.rb +7 -22
  200. data/spec/models/acl_check_request_spec.rb +33 -0
  201. data/spec/models/acl_check_response_model_spec.rb +51 -0
  202. data/spec/models/airline_advice_spec.rb +0 -2
  203. data/spec/models/airline_segment_spec.rb +0 -2
  204. data/spec/models/auth_references_spec.rb +7 -8
  205. data/spec/models/auth_request_spec.rb +0 -2
  206. data/spec/models/auth_response_spec.rb +77 -33
  207. data/spec/models/batch_report_request_spec.rb +37 -0
  208. data/spec/models/batch_report_response_model_spec.rb +61 -0
  209. data/spec/models/batch_spec.rb +43 -0
  210. data/spec/models/batch_transaction_result_model_spec.rb +85 -0
  211. data/spec/models/batch_transaction_spec.rb +49 -0
  212. data/spec/models/bin_lookup_spec.rb +31 -0
  213. data/spec/models/bin_spec.rb +81 -0
  214. data/spec/models/capture_request_spec.rb +0 -2
  215. data/spec/models/card_holder_account_spec.rb +8 -7
  216. data/spec/models/charge_request_spec.rb +0 -2
  217. data/spec/models/check_batch_status_response_spec.rb +45 -0
  218. data/spec/models/check_batch_status_spec.rb +39 -0
  219. data/spec/models/decision_spec.rb +1 -1
  220. data/spec/models/direct_post_request_spec.rb +151 -0
  221. data/spec/models/direct_token_auth_request_spec.rb +51 -0
  222. data/spec/models/domain_key_check_request_spec.rb +31 -0
  223. data/spec/models/domain_key_request_spec.rb +45 -0
  224. data/spec/models/domain_key_response_spec.rb +57 -0
  225. data/spec/models/event_data_model_spec.rb +57 -0
  226. data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
  227. data/spec/models/list_merchants_response_spec.rb +2 -2
  228. data/spec/models/paylink_address_spec.rb +69 -0
  229. data/spec/models/paylink_adjustment_request_spec.rb +45 -0
  230. data/spec/models/paylink_attachment_request_spec.rb +45 -0
  231. data/spec/models/paylink_attachment_result_spec.rb +45 -0
  232. data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
  233. data/spec/models/paylink_card_holder_spec.rb +87 -0
  234. data/spec/models/paylink_cart_item_model_spec.rb +75 -0
  235. data/spec/models/paylink_cart_spec.rb +69 -0
  236. data/spec/models/paylink_config_spec.rb +159 -0
  237. data/spec/models/paylink_custom_param_spec.rb +87 -0
  238. data/spec/models/paylink_email_notification_path_spec.rb +57 -0
  239. data/spec/models/paylink_error_code_spec.rb +39 -0
  240. data/spec/models/paylink_field_guard_model_spec.rb +45 -0
  241. data/spec/models/paylink_part_payments_spec.rb +63 -0
  242. data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
  243. data/spec/models/paylink_state_event_spec.rb +45 -0
  244. data/spec/models/paylink_token_created_spec.rb +111 -0
  245. data/spec/models/paylink_token_request_model_spec.rb +91 -0
  246. data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
  247. data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
  248. data/spec/models/paylink_token_status_spec.rb +195 -0
  249. data/spec/models/paylink_ui_spec.rb +51 -0
  250. data/spec/models/process_batch_request_spec.rb +49 -0
  251. data/spec/models/process_batch_response_spec.rb +39 -0
  252. data/spec/models/refund_request_spec.rb +62 -0
  253. data/spec/models/register_card_spec.rb +0 -2
  254. data/spec/models/tokenisation_response_model_spec.rb +87 -0
  255. data/spec/spec_helper.rb +2 -2
  256. data/spec/utils/direct_post_mac_spec.rb +13 -0
  257. metadata +230 -44
  258. data/Gemfile.lock +0 -70
  259. data/docs/OperationalApi.md +0 -112
  260. data/docs/PaymentProcessingApi.md +0 -320
  261. data/git_push.sh +0 -58
  262. data/lib/citypay_api_client/api/operational_api.rb +0 -147
  263. data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
  264. data/lib/citypay_api_client/test.rb +0 -20
  265. data/spec/api/payment_processing_api_spec.rb +0 -106
data/docs/ExternalMPI.md CHANGED
@@ -2,24 +2,25 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **authen_result** | **String** | The authentication result available from the MPI. | [optional]
8
- **cavv** | **String** | A value determining the cardholder verification value supplied by the card scheme. | [optional]
9
- **eci** | **Integer** | The obtained e-commerce indicator from the MPI. | [optional]
10
- **enrolled** | **String** | A value determining whether the card holder was enrolled. | [optional]
11
- **xid** | **String** | The XID used for processing with the MPI. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **authen_result** | **String** | The authentication result available from the MPI. | [optional] |
8
+ | **cavv** | **String** | A value determining the cardholder verification value supplied by the card scheme. | [optional] |
9
+ | **eci** | **Integer** | The obtained e-commerce indicator from the MPI. | [optional] |
10
+ | **enrolled** | **String** | A value determining whether the card holder was enrolled. | [optional] |
11
+ | **xid** | **String** | The XID used for processing with the MPI. | [optional] |
12
12
 
13
- ## Code Sample
13
+ ## Example
14
14
 
15
15
  ```ruby
16
- require 'CityPayApiClient'
16
+ require 'citypay_api_client'
17
17
 
18
- instance = CityPayApiClient::ExternalMPI.new(authen_result: null,
19
- cavv: null,
20
- eci: null,
21
- enrolled: null,
22
- xid: null)
18
+ instance = CityPayApiClient::ExternalMPI.new(
19
+ authen_result: null,
20
+ cavv: null,
21
+ eci: null,
22
+ enrolled: null,
23
+ xid: null
24
+ )
23
25
  ```
24
26
 
25
-
@@ -2,20 +2,21 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **client_name** | **String** | The client name that was requested. | [optional]
8
- **clientid** | **String** | The client id requested. | [optional]
9
- **merchants** | [**Array<Merchant>**](Merchant.md) | | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **client_name** | **String** | The client name that was requested. | [optional] |
8
+ | **clientid** | **String** | The client id requested. | [optional] |
9
+ | **merchants** | [**Array<Merchant>**](Merchant.md) | | [optional] |
10
10
 
11
- ## Code Sample
11
+ ## Example
12
12
 
13
13
  ```ruby
14
- require 'CityPayApiClient'
14
+ require 'citypay_api_client'
15
15
 
16
- instance = CityPayApiClient::ListMerchantsResponse.new(client_name: null,
17
- clientid: PC12345,
18
- merchants: null)
16
+ instance = CityPayApiClient::ListMerchantsResponse.new(
17
+ client_name: null,
18
+ clientid: PC12345,
19
+ merchants: null
20
+ )
19
21
  ```
20
22
 
21
-
data/docs/MCC6012.md CHANGED
@@ -2,22 +2,23 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **recipient_account** | **String** | The account number of the recipient. | [optional]
8
- **recipient_dob** | **String** | The date of birth of the recipient. | [optional]
9
- **recipient_lastname** | **String** | The lastname of ther recepient. | [optional]
10
- **recipient_postcode** | **String** | The postcode of the recipient. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **recipient_account** | **String** | The account number of the recipient. | [optional] |
8
+ | **recipient_dob** | **String** | The date of birth of the recipient. | [optional] |
9
+ | **recipient_lastname** | **String** | The lastname of ther recepient. | [optional] |
10
+ | **recipient_postcode** | **String** | The postcode of the recipient. | [optional] |
11
11
 
12
- ## Code Sample
12
+ ## Example
13
13
 
14
14
  ```ruby
15
- require 'CityPayApiClient'
15
+ require 'citypay_api_client'
16
16
 
17
- instance = CityPayApiClient::MCC6012.new(recipient_account: null,
18
- recipient_dob: null,
19
- recipient_lastname: null,
20
- recipient_postcode: null)
17
+ instance = CityPayApiClient::MCC6012.new(
18
+ recipient_account: null,
19
+ recipient_dob: null,
20
+ recipient_lastname: null,
21
+ recipient_postcode: null
22
+ )
21
23
  ```
22
24
 
23
-
data/docs/Merchant.md CHANGED
@@ -2,24 +2,25 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **currency** | **String** | The currency of the merchant. | [optional]
8
- **merchantid** | **Integer** | The merchant id which uniquely identifies the merchant account. | [optional]
9
- **name** | **String** | The name of the merchant. | [optional]
10
- **status** | **String** | The status of the account. | [optional]
11
- **status_label** | **String** | The status label of the account. | [optional]
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **currency** | **String** | The currency of the merchant. | [optional] |
8
+ | **merchantid** | **Integer** | The merchant id which uniquely identifies the merchant account. | [optional] |
9
+ | **name** | **String** | The name of the merchant. | [optional] |
10
+ | **status** | **String** | The status of the account. | [optional] |
11
+ | **status_label** | **String** | The status label of the account. | [optional] |
12
12
 
13
- ## Code Sample
13
+ ## Example
14
14
 
15
15
  ```ruby
16
- require 'CityPayApiClient'
16
+ require 'citypay_api_client'
17
17
 
18
- instance = CityPayApiClient::Merchant.new(currency: GBP,
19
- merchantid: 11223344,
20
- name: Merchant 1,
21
- status: A,
22
- status_label: Active)
18
+ instance = CityPayApiClient::Merchant.new(
19
+ currency: GBP,
20
+ merchantid: 11223344,
21
+ name: Merchant 1,
22
+ status: A,
23
+ status_label: Active
24
+ )
23
25
  ```
24
26
 
25
-
@@ -0,0 +1,375 @@
1
+ # CityPayApiClient::OperationalFunctionsApi
2
+
3
+ All URIs are relative to *https://api.citypay.com*
4
+
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**acl_check_request**](OperationalFunctionsApi.md#acl_check_request) | **POST** /v6/acl/check | ACL Check Request |
8
+ | [**domain_key_check_request**](OperationalFunctionsApi.md#domain_key_check_request) | **POST** /dk/check | Domain Key Check Request |
9
+ | [**domain_key_gen_request**](OperationalFunctionsApi.md#domain_key_gen_request) | **POST** /dk/gen | Domain Key Generation Request |
10
+ | [**list_merchants_request**](OperationalFunctionsApi.md#list_merchants_request) | **GET** /v6/merchants/{clientid} | List Merchants Request |
11
+ | [**ping_request**](OperationalFunctionsApi.md#ping_request) | **POST** /v6/ping | Ping Request |
12
+
13
+
14
+ ## acl_check_request
15
+
16
+ > <AclCheckResponseModel> acl_check_request(acl_check_request)
17
+
18
+ ACL Check Request
19
+
20
+ Allows the checking of IP addresses against configured ACLs. Requests can perform a lookup of addresses in subnets and
21
+ services such as AWS or Azure to check that those addresses are listed in the ACLs.
22
+
23
+
24
+ ### Examples
25
+
26
+ ```ruby
27
+ require 'time'
28
+ require 'citypay_api_client'
29
+ # setup authorization
30
+ CityPayApiClient.configure do |config|
31
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
32
+ end
33
+
34
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
35
+ acl_check_request = CityPayApiClient::AclCheckRequest.new({ip: '8.8.8.8'}) # AclCheckRequest |
36
+
37
+ begin
38
+ # ACL Check Request
39
+ result = api_instance.acl_check_request(acl_check_request)
40
+ p result
41
+ rescue CityPayApiClient::ApiError => e
42
+ puts "Error when calling OperationalFunctionsApi->acl_check_request: #{e}"
43
+ end
44
+ ```
45
+
46
+ #### Using the acl_check_request_with_http_info variant
47
+
48
+ This returns an Array which contains the response data, status code and headers.
49
+
50
+ > <Array(<AclCheckResponseModel>, Integer, Hash)> acl_check_request_with_http_info(acl_check_request)
51
+
52
+ ```ruby
53
+ begin
54
+ # ACL Check Request
55
+ data, status_code, headers = api_instance.acl_check_request_with_http_info(acl_check_request)
56
+ p status_code # => 2xx
57
+ p headers # => { ... }
58
+ p data # => <AclCheckResponseModel>
59
+ rescue CityPayApiClient::ApiError => e
60
+ puts "Error when calling OperationalFunctionsApi->acl_check_request_with_http_info: #{e}"
61
+ end
62
+ ```
63
+
64
+ ### Parameters
65
+
66
+ | Name | Type | Description | Notes |
67
+ | ---- | ---- | ----------- | ----- |
68
+ | **acl_check_request** | [**AclCheckRequest**](AclCheckRequest.md) | | |
69
+
70
+ ### Return type
71
+
72
+ [**AclCheckResponseModel**](AclCheckResponseModel.md)
73
+
74
+ ### Authorization
75
+
76
+ [cp-api-key](../README.md#cp-api-key)
77
+
78
+ ### HTTP request headers
79
+
80
+ - **Content-Type**: application/json, text/xml
81
+ - **Accept**: application/json, text/xml
82
+
83
+
84
+ ## domain_key_check_request
85
+
86
+ > <DomainKeyResponse> domain_key_check_request(domain_key_check_request)
87
+
88
+ Domain Key Check Request
89
+
90
+ Checks the contents of a `domain key`. Can be used for operational processes to ensure that the properties of a
91
+ domain key meet their expectations.
92
+
93
+
94
+ ### Examples
95
+
96
+ ```ruby
97
+ require 'time'
98
+ require 'citypay_api_client'
99
+ # setup authorization
100
+ CityPayApiClient.configure do |config|
101
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
102
+ end
103
+
104
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
105
+ domain_key_check_request = CityPayApiClient::DomainKeyCheckRequest.new({domain_key: '3MEcU8cEf...QMeebACxcQVejmT1Wi'}) # DomainKeyCheckRequest |
106
+
107
+ begin
108
+ # Domain Key Check Request
109
+ result = api_instance.domain_key_check_request(domain_key_check_request)
110
+ p result
111
+ rescue CityPayApiClient::ApiError => e
112
+ puts "Error when calling OperationalFunctionsApi->domain_key_check_request: #{e}"
113
+ end
114
+ ```
115
+
116
+ #### Using the domain_key_check_request_with_http_info variant
117
+
118
+ This returns an Array which contains the response data, status code and headers.
119
+
120
+ > <Array(<DomainKeyResponse>, Integer, Hash)> domain_key_check_request_with_http_info(domain_key_check_request)
121
+
122
+ ```ruby
123
+ begin
124
+ # Domain Key Check Request
125
+ data, status_code, headers = api_instance.domain_key_check_request_with_http_info(domain_key_check_request)
126
+ p status_code # => 2xx
127
+ p headers # => { ... }
128
+ p data # => <DomainKeyResponse>
129
+ rescue CityPayApiClient::ApiError => e
130
+ puts "Error when calling OperationalFunctionsApi->domain_key_check_request_with_http_info: #{e}"
131
+ end
132
+ ```
133
+
134
+ ### Parameters
135
+
136
+ | Name | Type | Description | Notes |
137
+ | ---- | ---- | ----------- | ----- |
138
+ | **domain_key_check_request** | [**DomainKeyCheckRequest**](DomainKeyCheckRequest.md) | | |
139
+
140
+ ### Return type
141
+
142
+ [**DomainKeyResponse**](DomainKeyResponse.md)
143
+
144
+ ### Authorization
145
+
146
+ [cp-api-key](../README.md#cp-api-key)
147
+
148
+ ### HTTP request headers
149
+
150
+ - **Content-Type**: application/json, text/xml
151
+ - **Accept**: application/json, text/xml
152
+
153
+
154
+ ## domain_key_gen_request
155
+
156
+ > <DomainKeyResponse> domain_key_gen_request(domain_key_request)
157
+
158
+ Domain Key Generation Request
159
+
160
+ Generates a domain key based on the permissions of the calling `api-key`. Domain keys can be used in _Direct Post_ and
161
+ `XHR` calls to the API services.
162
+
163
+
164
+ ### Examples
165
+
166
+ ```ruby
167
+ require 'time'
168
+ require 'citypay_api_client'
169
+ # setup authorization
170
+ CityPayApiClient.configure do |config|
171
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
172
+ end
173
+
174
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
175
+ domain_key_request = CityPayApiClient::DomainKeyRequest.new({domain: ['domain_example'], merchantid: 11223344}) # DomainKeyRequest |
176
+
177
+ begin
178
+ # Domain Key Generation Request
179
+ result = api_instance.domain_key_gen_request(domain_key_request)
180
+ p result
181
+ rescue CityPayApiClient::ApiError => e
182
+ puts "Error when calling OperationalFunctionsApi->domain_key_gen_request: #{e}"
183
+ end
184
+ ```
185
+
186
+ #### Using the domain_key_gen_request_with_http_info variant
187
+
188
+ This returns an Array which contains the response data, status code and headers.
189
+
190
+ > <Array(<DomainKeyResponse>, Integer, Hash)> domain_key_gen_request_with_http_info(domain_key_request)
191
+
192
+ ```ruby
193
+ begin
194
+ # Domain Key Generation Request
195
+ data, status_code, headers = api_instance.domain_key_gen_request_with_http_info(domain_key_request)
196
+ p status_code # => 2xx
197
+ p headers # => { ... }
198
+ p data # => <DomainKeyResponse>
199
+ rescue CityPayApiClient::ApiError => e
200
+ puts "Error when calling OperationalFunctionsApi->domain_key_gen_request_with_http_info: #{e}"
201
+ end
202
+ ```
203
+
204
+ ### Parameters
205
+
206
+ | Name | Type | Description | Notes |
207
+ | ---- | ---- | ----------- | ----- |
208
+ | **domain_key_request** | [**DomainKeyRequest**](DomainKeyRequest.md) | | |
209
+
210
+ ### Return type
211
+
212
+ [**DomainKeyResponse**](DomainKeyResponse.md)
213
+
214
+ ### Authorization
215
+
216
+ [cp-api-key](../README.md#cp-api-key)
217
+
218
+ ### HTTP request headers
219
+
220
+ - **Content-Type**: application/json, text/xml
221
+ - **Accept**: application/json, text/xml
222
+
223
+
224
+ ## list_merchants_request
225
+
226
+ > <ListMerchantsResponse> list_merchants_request(clientid)
227
+
228
+ List Merchants Request
229
+
230
+ An operational request to list current merchants for a client.
231
+
232
+ ### Sorting
233
+
234
+ Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid`
235
+
236
+ Fields that can be sorted are `merchantid` or `name`.
237
+
238
+
239
+ ### Examples
240
+
241
+ ```ruby
242
+ require 'time'
243
+ require 'citypay_api_client'
244
+ # setup authorization
245
+ CityPayApiClient.configure do |config|
246
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
247
+ end
248
+
249
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
250
+ clientid = 'clientid_example' # String | The client id to return merchants for, specifying \"default\" will use the value in your api key.
251
+
252
+ begin
253
+ # List Merchants Request
254
+ result = api_instance.list_merchants_request(clientid)
255
+ p result
256
+ rescue CityPayApiClient::ApiError => e
257
+ puts "Error when calling OperationalFunctionsApi->list_merchants_request: #{e}"
258
+ end
259
+ ```
260
+
261
+ #### Using the list_merchants_request_with_http_info variant
262
+
263
+ This returns an Array which contains the response data, status code and headers.
264
+
265
+ > <Array(<ListMerchantsResponse>, Integer, Hash)> list_merchants_request_with_http_info(clientid)
266
+
267
+ ```ruby
268
+ begin
269
+ # List Merchants Request
270
+ data, status_code, headers = api_instance.list_merchants_request_with_http_info(clientid)
271
+ p status_code # => 2xx
272
+ p headers # => { ... }
273
+ p data # => <ListMerchantsResponse>
274
+ rescue CityPayApiClient::ApiError => e
275
+ puts "Error when calling OperationalFunctionsApi->list_merchants_request_with_http_info: #{e}"
276
+ end
277
+ ```
278
+
279
+ ### Parameters
280
+
281
+ | Name | Type | Description | Notes |
282
+ | ---- | ---- | ----------- | ----- |
283
+ | **clientid** | **String** | The client id to return merchants for, specifying \&quot;default\&quot; will use the value in your api key. | |
284
+
285
+ ### Return type
286
+
287
+ [**ListMerchantsResponse**](ListMerchantsResponse.md)
288
+
289
+ ### Authorization
290
+
291
+ [cp-api-key](../README.md#cp-api-key)
292
+
293
+ ### HTTP request headers
294
+
295
+ - **Content-Type**: Not defined
296
+ - **Accept**: application/json, text/xml
297
+
298
+
299
+ ## ping_request
300
+
301
+ > <Acknowledgement> ping_request(ping)
302
+
303
+ Ping Request
304
+
305
+ A ping request which performs a connection and authentication test to the CityPay API server. The request
306
+ will return a standard Acknowledgement with a response code `044` to signify a successful
307
+ ping.
308
+
309
+ The ping call is useful to confirm that you will be able to access
310
+ the API from behind any firewalls and that the permission
311
+ model is granting access from your source.
312
+
313
+
314
+ ### Examples
315
+
316
+ ```ruby
317
+ require 'time'
318
+ require 'citypay_api_client'
319
+ # setup authorization
320
+ CityPayApiClient.configure do |config|
321
+ # Configure API key authorization: cp-domain-key
322
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
323
+
324
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
325
+ end
326
+
327
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
328
+ ping = CityPayApiClient::Ping.new # Ping |
329
+
330
+ begin
331
+ # Ping Request
332
+ result = api_instance.ping_request(ping)
333
+ p result
334
+ rescue CityPayApiClient::ApiError => e
335
+ puts "Error when calling OperationalFunctionsApi->ping_request: #{e}"
336
+ end
337
+ ```
338
+
339
+ #### Using the ping_request_with_http_info variant
340
+
341
+ This returns an Array which contains the response data, status code and headers.
342
+
343
+ > <Array(<Acknowledgement>, Integer, Hash)> ping_request_with_http_info(ping)
344
+
345
+ ```ruby
346
+ begin
347
+ # Ping Request
348
+ data, status_code, headers = api_instance.ping_request_with_http_info(ping)
349
+ p status_code # => 2xx
350
+ p headers # => { ... }
351
+ p data # => <Acknowledgement>
352
+ rescue CityPayApiClient::ApiError => e
353
+ puts "Error when calling OperationalFunctionsApi->ping_request_with_http_info: #{e}"
354
+ end
355
+ ```
356
+
357
+ ### Parameters
358
+
359
+ | Name | Type | Description | Notes |
360
+ | ---- | ---- | ----------- | ----- |
361
+ | **ping** | [**Ping**](Ping.md) | | |
362
+
363
+ ### Return type
364
+
365
+ [**Acknowledgement**](Acknowledgement.md)
366
+
367
+ ### Authorization
368
+
369
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
370
+
371
+ ### HTTP request headers
372
+
373
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
374
+ - **Accept**: application/x-www-form-urlencoded, application/json, text/xml
375
+
@@ -2,18 +2,19 @@
2
2
 
3
3
  ## Properties
4
4
 
5
- Name | Type | Description | Notes
6
- ------------ | ------------- | ------------- | -------------
7
- **md** | **String** | The Merchant Data (MD) which is a unique ID to reference the authentication session. This value will be created by CityPay when required. When responding from the ACS, this value will be returned by the ACS. |
8
- **pares** | **String** | The Payer Authentication Response packet which is returned by the ACS containing the response of the authentication session including verification values. The response is a base64 encoded packet and should be forwarded to CityPay untouched. |
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **md** | **String** | The Merchant Data (MD) which is a unique ID to reference the authentication session. This value will be created by CityPay when required. When responding from the ACS, this value will be returned by the ACS. | |
8
+ | **pares** | **String** | The Payer Authentication Response packet which is returned by the ACS containing the response of the authentication session including verification values. The response is a base64 encoded packet and should be forwarded to CityPay untouched. | |
9
9
 
10
- ## Code Sample
10
+ ## Example
11
11
 
12
12
  ```ruby
13
- require 'CityPayApiClient'
13
+ require 'citypay_api_client'
14
14
 
15
- instance = CityPayApiClient::PaResAuthRequest.new(md: null,
16
- pares: v66ycfSp8jNlvy7PkHbx44NEt3vox90+vZ/7Ll05Vid/jPfQn8adw+4D/vRDUGT19kndW97Hfirb...)
15
+ instance = CityPayApiClient::PaResAuthRequest.new(
16
+ md: null,
17
+ pares: v66ycfSp8jNlvy7PkHbx44NEt3vox90+vZ/7Ll05Vid/jPfQn8adw+4D/vRDUGT19kndW97Hfirb...
18
+ )
17
19
  ```
18
20
 
19
-
@@ -0,0 +1,30 @@
1
+ # CityPayApiClient::PaylinkAddress
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **address1** | **String** | The first line of the address. | [optional] |
8
+ | **address2** | **String** | The second line of the address. | [optional] |
9
+ | **address3** | **String** | The third line of the address. | [optional] |
10
+ | **area** | **String** | The area such as city, department, town or parish. | [optional] |
11
+ | **country** | **String** | The country code in ISO 3166 format. The country code should be an ISO-3166 2 or 3 digit country code. | [optional] |
12
+ | **label** | **String** | A label for the address such as Head Office, Home Address. | [optional] |
13
+ | **postcode** | **String** | The postcode or zip code of the address. | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'citypay_api_client'
19
+
20
+ instance = CityPayApiClient::PaylinkAddress.new(
21
+ address1: 79 Parliament St,
22
+ address2: Westminster,
23
+ address3: null,
24
+ area: London,
25
+ country: GB,
26
+ label: Head Office,
27
+ postcode: L1 789
28
+ )
29
+ ```
30
+
@@ -0,0 +1,22 @@
1
+ # CityPayApiClient::PaylinkAdjustmentRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **amount** | **Integer** | An amount to adjust to. | [optional] |
8
+ | **identifier** | **String** | An identifier of the original request. | [optional] |
9
+ | **reason** | **String** | A textual reason for the adjustment. | [optional] |
10
+
11
+ ## Example
12
+
13
+ ```ruby
14
+ require 'citypay_api_client'
15
+
16
+ instance = CityPayApiClient::PaylinkAdjustmentRequest.new(
17
+ amount: 3600,
18
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
19
+ reason: null
20
+ )
21
+ ```
22
+