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
@@ -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
-
@@ -2,25 +2,93 @@
2
2
 
3
3
  All URIs are relative to *https://api.citypay.com/v6*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**list_merchants_request**](OperationalApi.md#list_merchants_request) | **GET** /merchants/{clientid} | List Merchants Request
8
- [**ping_request**](OperationalApi.md#ping_request) | **POST** /ping | Ping Request
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**acl_check_request**](OperationalApi.md#acl_check_request) | **POST** /acl/check | ACL Check Request |
8
+ | [**list_merchants_request**](OperationalApi.md#list_merchants_request) | **GET** /merchants/{clientid} | List Merchants Request |
9
+ | [**ping_request**](OperationalApi.md#ping_request) | **POST** /ping | Ping Request |
9
10
 
10
11
 
12
+ ## acl_check_request
13
+
14
+ > <AclCheckResponseModel> acl_check_request(acl_check_request)
15
+
16
+ ACL Check Request
17
+
18
+ Allows the checking of IP addresses against configured ACLs. Requests can perform a lookup of addresses in subnets and services such as AWS or Azure to check that those addresses are listed in the ACLs.
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::OperationalApi.new
31
+ acl_check_request = CityPayApiClient::AclCheckRequest.new # AclCheckRequest |
32
+
33
+ begin
34
+ # ACL Check Request
35
+ result = api_instance.acl_check_request(acl_check_request)
36
+ p result
37
+ rescue CityPayApiClient::ApiError => e
38
+ puts "Error when calling OperationalApi->acl_check_request: #{e}"
39
+ end
40
+ ```
41
+
42
+ #### Using the acl_check_request_with_http_info variant
43
+
44
+ This returns an Array which contains the response data, status code and headers.
45
+
46
+ > <Array(<AclCheckResponseModel>, Integer, Hash)> acl_check_request_with_http_info(acl_check_request)
47
+
48
+ ```ruby
49
+ begin
50
+ # ACL Check Request
51
+ data, status_code, headers = api_instance.acl_check_request_with_http_info(acl_check_request)
52
+ p status_code # => 2xx
53
+ p headers # => { ... }
54
+ p data # => <AclCheckResponseModel>
55
+ rescue CityPayApiClient::ApiError => e
56
+ puts "Error when calling OperationalApi->acl_check_request_with_http_info: #{e}"
57
+ end
58
+ ```
59
+
60
+ ### Parameters
61
+
62
+ | Name | Type | Description | Notes |
63
+ | ---- | ---- | ----------- | ----- |
64
+ | **acl_check_request** | [**AclCheckRequest**](AclCheckRequest.md) | | |
65
+
66
+ ### Return type
67
+
68
+ [**AclCheckResponseModel**](AclCheckResponseModel.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
+
11
79
 
12
80
  ## list_merchants_request
13
81
 
14
- > ListMerchantsResponse list_merchants_request(clientid)
82
+ > <ListMerchantsResponse> list_merchants_request(clientid)
15
83
 
16
84
  List Merchants Request
17
85
 
18
86
  An operational request to list current merchants for a client. ### Sorting Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid` Fields that can be sorted are `merchantid` or `name`.
19
87
 
20
- ### Example
88
+ ### Examples
21
89
 
22
90
  ```ruby
23
- # load the gem
91
+ require 'time'
24
92
  require 'citypay_api_client'
25
93
  # setup authorization
26
94
  CityPayApiClient.configure do |config|
@@ -31,20 +99,37 @@ api_instance = CityPayApiClient::OperationalApi.new
31
99
  clientid = 'clientid_example' # String | The client id to return merchants for, specifying \"default\" will use the value in your api key.
32
100
 
33
101
  begin
34
- #List Merchants Request
102
+ # List Merchants Request
35
103
  result = api_instance.list_merchants_request(clientid)
36
104
  p result
37
105
  rescue CityPayApiClient::ApiError => e
38
- puts "Exception when calling OperationalApi->list_merchants_request: #{e}"
106
+ puts "Error when calling OperationalApi->list_merchants_request: #{e}"
39
107
  end
40
108
  ```
41
109
 
42
- ### Parameters
110
+ #### Using the list_merchants_request_with_http_info variant
111
+
112
+ This returns an Array which contains the response data, status code and headers.
113
+
114
+ > <Array(<ListMerchantsResponse>, Integer, Hash)> list_merchants_request_with_http_info(clientid)
115
+
116
+ ```ruby
117
+ begin
118
+ # List Merchants Request
119
+ data, status_code, headers = api_instance.list_merchants_request_with_http_info(clientid)
120
+ p status_code # => 2xx
121
+ p headers # => { ... }
122
+ p data # => <ListMerchantsResponse>
123
+ rescue CityPayApiClient::ApiError => e
124
+ puts "Error when calling OperationalApi->list_merchants_request_with_http_info: #{e}"
125
+ end
126
+ ```
43
127
 
128
+ ### Parameters
44
129
 
45
- Name | Type | Description | Notes
46
- ------------- | ------------- | ------------- | -------------
47
- **clientid** | **String**| The client id to return merchants for, specifying \&quot;default\&quot; will use the value in your api key. |
130
+ | Name | Type | Description | Notes |
131
+ | ---- | ---- | ----------- | ----- |
132
+ | **clientid** | **String** | The client id to return merchants for, specifying \&quot;default\&quot; will use the value in your api key. | |
48
133
 
49
134
  ### Return type
50
135
 
@@ -62,16 +147,16 @@ Name | Type | Description | Notes
62
147
 
63
148
  ## ping_request
64
149
 
65
- > Acknowledgement ping_request(ping)
150
+ > <Acknowledgement> ping_request(ping)
66
151
 
67
152
  Ping Request
68
153
 
69
154
  A ping request which performs a connection and authentication test to the CityPay API server. The request will return a standard Acknowledgement with a response code `044` to signify a successful ping. The ping call is useful to confirm that you will be able to access the API from behind any firewalls and that the permission model is granting access from your source.
70
155
 
71
- ### Example
156
+ ### Examples
72
157
 
73
158
  ```ruby
74
- # load the gem
159
+ require 'time'
75
160
  require 'citypay_api_client'
76
161
  # setup authorization
77
162
  CityPayApiClient.configure do |config|
@@ -82,20 +167,37 @@ api_instance = CityPayApiClient::OperationalApi.new
82
167
  ping = CityPayApiClient::Ping.new # Ping |
83
168
 
84
169
  begin
85
- #Ping Request
170
+ # Ping Request
86
171
  result = api_instance.ping_request(ping)
87
172
  p result
88
173
  rescue CityPayApiClient::ApiError => e
89
- puts "Exception when calling OperationalApi->ping_request: #{e}"
174
+ puts "Error when calling OperationalApi->ping_request: #{e}"
90
175
  end
91
176
  ```
92
177
 
93
- ### Parameters
178
+ #### Using the ping_request_with_http_info variant
179
+
180
+ This returns an Array which contains the response data, status code and headers.
94
181
 
182
+ > <Array(<Acknowledgement>, Integer, Hash)> ping_request_with_http_info(ping)
183
+
184
+ ```ruby
185
+ begin
186
+ # Ping Request
187
+ data, status_code, headers = api_instance.ping_request_with_http_info(ping)
188
+ p status_code # => 2xx
189
+ p headers # => { ... }
190
+ p data # => <Acknowledgement>
191
+ rescue CityPayApiClient::ApiError => e
192
+ puts "Error when calling OperationalApi->ping_request_with_http_info: #{e}"
193
+ end
194
+ ```
195
+
196
+ ### Parameters
95
197
 
96
- Name | Type | Description | Notes
97
- ------------- | ------------- | ------------- | -------------
98
- **ping** | [**Ping**](Ping.md)| |
198
+ | Name | Type | Description | Notes |
199
+ | ---- | ---- | ----------- | ----- |
200
+ | **ping** | [**Ping**](Ping.md) | | |
99
201
 
100
202
  ### Return type
101
203
 
@@ -0,0 +1,355 @@
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 services such as AWS or Azure to check that those addresses are listed in the ACLs.
21
+
22
+ ### Examples
23
+
24
+ ```ruby
25
+ require 'time'
26
+ require 'citypay_api_client'
27
+ # setup authorization
28
+ CityPayApiClient.configure do |config|
29
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
30
+ end
31
+
32
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
33
+ acl_check_request = CityPayApiClient::AclCheckRequest.new({ip: '8.8.8.8'}) # AclCheckRequest |
34
+
35
+ begin
36
+ # ACL Check Request
37
+ result = api_instance.acl_check_request(acl_check_request)
38
+ p result
39
+ rescue CityPayApiClient::ApiError => e
40
+ puts "Error when calling OperationalFunctionsApi->acl_check_request: #{e}"
41
+ end
42
+ ```
43
+
44
+ #### Using the acl_check_request_with_http_info variant
45
+
46
+ This returns an Array which contains the response data, status code and headers.
47
+
48
+ > <Array(<AclCheckResponseModel>, Integer, Hash)> acl_check_request_with_http_info(acl_check_request)
49
+
50
+ ```ruby
51
+ begin
52
+ # ACL Check Request
53
+ data, status_code, headers = api_instance.acl_check_request_with_http_info(acl_check_request)
54
+ p status_code # => 2xx
55
+ p headers # => { ... }
56
+ p data # => <AclCheckResponseModel>
57
+ rescue CityPayApiClient::ApiError => e
58
+ puts "Error when calling OperationalFunctionsApi->acl_check_request_with_http_info: #{e}"
59
+ end
60
+ ```
61
+
62
+ ### Parameters
63
+
64
+ | Name | Type | Description | Notes |
65
+ | ---- | ---- | ----------- | ----- |
66
+ | **acl_check_request** | [**AclCheckRequest**](AclCheckRequest.md) | | |
67
+
68
+ ### Return type
69
+
70
+ [**AclCheckResponseModel**](AclCheckResponseModel.md)
71
+
72
+ ### Authorization
73
+
74
+ [cp-api-key](../README.md#cp-api-key)
75
+
76
+ ### HTTP request headers
77
+
78
+ - **Content-Type**: application/json, text/xml
79
+ - **Accept**: application/json, text/xml
80
+
81
+
82
+ ## domain_key_check_request
83
+
84
+ > <DomainKeyResponse> domain_key_check_request(domain_key_check_request)
85
+
86
+ Domain Key Check Request
87
+
88
+ Checks the contents of a `domain key`. Can be used for operational processes to ensure that the properties of a domain key meet their expectations.
89
+
90
+ ### Examples
91
+
92
+ ```ruby
93
+ require 'time'
94
+ require 'citypay_api_client'
95
+ # setup authorization
96
+ CityPayApiClient.configure do |config|
97
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
98
+ end
99
+
100
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
101
+ domain_key_check_request = CityPayApiClient::DomainKeyCheckRequest.new({domain_key: '3MEcU8cEf...QMeebACxcQVejmT1Wi'}) # DomainKeyCheckRequest |
102
+
103
+ begin
104
+ # Domain Key Check Request
105
+ result = api_instance.domain_key_check_request(domain_key_check_request)
106
+ p result
107
+ rescue CityPayApiClient::ApiError => e
108
+ puts "Error when calling OperationalFunctionsApi->domain_key_check_request: #{e}"
109
+ end
110
+ ```
111
+
112
+ #### Using the domain_key_check_request_with_http_info variant
113
+
114
+ This returns an Array which contains the response data, status code and headers.
115
+
116
+ > <Array(<DomainKeyResponse>, Integer, Hash)> domain_key_check_request_with_http_info(domain_key_check_request)
117
+
118
+ ```ruby
119
+ begin
120
+ # Domain Key Check Request
121
+ data, status_code, headers = api_instance.domain_key_check_request_with_http_info(domain_key_check_request)
122
+ p status_code # => 2xx
123
+ p headers # => { ... }
124
+ p data # => <DomainKeyResponse>
125
+ rescue CityPayApiClient::ApiError => e
126
+ puts "Error when calling OperationalFunctionsApi->domain_key_check_request_with_http_info: #{e}"
127
+ end
128
+ ```
129
+
130
+ ### Parameters
131
+
132
+ | Name | Type | Description | Notes |
133
+ | ---- | ---- | ----------- | ----- |
134
+ | **domain_key_check_request** | [**DomainKeyCheckRequest**](DomainKeyCheckRequest.md) | | |
135
+
136
+ ### Return type
137
+
138
+ [**DomainKeyResponse**](DomainKeyResponse.md)
139
+
140
+ ### Authorization
141
+
142
+ [cp-api-key](../README.md#cp-api-key)
143
+
144
+ ### HTTP request headers
145
+
146
+ - **Content-Type**: application/json, text/xml
147
+ - **Accept**: application/json, text/xml
148
+
149
+
150
+ ## domain_key_gen_request
151
+
152
+ > <DomainKeyResponse> domain_key_gen_request(domain_key_request)
153
+
154
+ Domain Key Generation Request
155
+
156
+ Generates a domain key based on the permissions of the calling `api-key`. Domain keys can be used in _Direct Post_ and `XHR` calls to the API services.
157
+
158
+ ### Examples
159
+
160
+ ```ruby
161
+ require 'time'
162
+ require 'citypay_api_client'
163
+ # setup authorization
164
+ CityPayApiClient.configure do |config|
165
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
166
+ end
167
+
168
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
169
+ domain_key_request = CityPayApiClient::DomainKeyRequest.new({domain: ['domain_example'], merchantid: 11223344}) # DomainKeyRequest |
170
+
171
+ begin
172
+ # Domain Key Generation Request
173
+ result = api_instance.domain_key_gen_request(domain_key_request)
174
+ p result
175
+ rescue CityPayApiClient::ApiError => e
176
+ puts "Error when calling OperationalFunctionsApi->domain_key_gen_request: #{e}"
177
+ end
178
+ ```
179
+
180
+ #### Using the domain_key_gen_request_with_http_info variant
181
+
182
+ This returns an Array which contains the response data, status code and headers.
183
+
184
+ > <Array(<DomainKeyResponse>, Integer, Hash)> domain_key_gen_request_with_http_info(domain_key_request)
185
+
186
+ ```ruby
187
+ begin
188
+ # Domain Key Generation Request
189
+ data, status_code, headers = api_instance.domain_key_gen_request_with_http_info(domain_key_request)
190
+ p status_code # => 2xx
191
+ p headers # => { ... }
192
+ p data # => <DomainKeyResponse>
193
+ rescue CityPayApiClient::ApiError => e
194
+ puts "Error when calling OperationalFunctionsApi->domain_key_gen_request_with_http_info: #{e}"
195
+ end
196
+ ```
197
+
198
+ ### Parameters
199
+
200
+ | Name | Type | Description | Notes |
201
+ | ---- | ---- | ----------- | ----- |
202
+ | **domain_key_request** | [**DomainKeyRequest**](DomainKeyRequest.md) | | |
203
+
204
+ ### Return type
205
+
206
+ [**DomainKeyResponse**](DomainKeyResponse.md)
207
+
208
+ ### Authorization
209
+
210
+ [cp-api-key](../README.md#cp-api-key)
211
+
212
+ ### HTTP request headers
213
+
214
+ - **Content-Type**: application/json, text/xml
215
+ - **Accept**: application/json, text/xml
216
+
217
+
218
+ ## list_merchants_request
219
+
220
+ > <ListMerchantsResponse> list_merchants_request(clientid)
221
+
222
+ List Merchants Request
223
+
224
+ An operational request to list current merchants for a client. ### Sorting Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid` Fields that can be sorted are `merchantid` or `name`.
225
+
226
+ ### Examples
227
+
228
+ ```ruby
229
+ require 'time'
230
+ require 'citypay_api_client'
231
+ # setup authorization
232
+ CityPayApiClient.configure do |config|
233
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
234
+ end
235
+
236
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
237
+ clientid = 'clientid_example' # String | The client id to return merchants for, specifying \"default\" will use the value in your api key.
238
+
239
+ begin
240
+ # List Merchants Request
241
+ result = api_instance.list_merchants_request(clientid)
242
+ p result
243
+ rescue CityPayApiClient::ApiError => e
244
+ puts "Error when calling OperationalFunctionsApi->list_merchants_request: #{e}"
245
+ end
246
+ ```
247
+
248
+ #### Using the list_merchants_request_with_http_info variant
249
+
250
+ This returns an Array which contains the response data, status code and headers.
251
+
252
+ > <Array(<ListMerchantsResponse>, Integer, Hash)> list_merchants_request_with_http_info(clientid)
253
+
254
+ ```ruby
255
+ begin
256
+ # List Merchants Request
257
+ data, status_code, headers = api_instance.list_merchants_request_with_http_info(clientid)
258
+ p status_code # => 2xx
259
+ p headers # => { ... }
260
+ p data # => <ListMerchantsResponse>
261
+ rescue CityPayApiClient::ApiError => e
262
+ puts "Error when calling OperationalFunctionsApi->list_merchants_request_with_http_info: #{e}"
263
+ end
264
+ ```
265
+
266
+ ### Parameters
267
+
268
+ | Name | Type | Description | Notes |
269
+ | ---- | ---- | ----------- | ----- |
270
+ | **clientid** | **String** | The client id to return merchants for, specifying \&quot;default\&quot; will use the value in your api key. | |
271
+
272
+ ### Return type
273
+
274
+ [**ListMerchantsResponse**](ListMerchantsResponse.md)
275
+
276
+ ### Authorization
277
+
278
+ [cp-api-key](../README.md#cp-api-key)
279
+
280
+ ### HTTP request headers
281
+
282
+ - **Content-Type**: Not defined
283
+ - **Accept**: application/json, text/xml
284
+
285
+
286
+ ## ping_request
287
+
288
+ > <Acknowledgement> ping_request(ping)
289
+
290
+ Ping Request
291
+
292
+ A ping request which performs a connection and authentication test to the CityPay API server. The request will return a standard Acknowledgement with a response code `044` to signify a successful ping. The ping call is useful to confirm that you will be able to access the API from behind any firewalls and that the permission model is granting access from your source.
293
+
294
+ ### Examples
295
+
296
+ ```ruby
297
+ require 'time'
298
+ require 'citypay_api_client'
299
+ # setup authorization
300
+ CityPayApiClient.configure do |config|
301
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
302
+
303
+ # Configure API key authorization: cp-domain-key
304
+ config.api_key['cp-domain-key'] = 'YOUR API KEY'
305
+ end
306
+
307
+ api_instance = CityPayApiClient::OperationalFunctionsApi.new
308
+ ping = CityPayApiClient::Ping.new # Ping |
309
+
310
+ begin
311
+ # Ping Request
312
+ result = api_instance.ping_request(ping)
313
+ p result
314
+ rescue CityPayApiClient::ApiError => e
315
+ puts "Error when calling OperationalFunctionsApi->ping_request: #{e}"
316
+ end
317
+ ```
318
+
319
+ #### Using the ping_request_with_http_info variant
320
+
321
+ This returns an Array which contains the response data, status code and headers.
322
+
323
+ > <Array(<Acknowledgement>, Integer, Hash)> ping_request_with_http_info(ping)
324
+
325
+ ```ruby
326
+ begin
327
+ # Ping Request
328
+ data, status_code, headers = api_instance.ping_request_with_http_info(ping)
329
+ p status_code # => 2xx
330
+ p headers # => { ... }
331
+ p data # => <Acknowledgement>
332
+ rescue CityPayApiClient::ApiError => e
333
+ puts "Error when calling OperationalFunctionsApi->ping_request_with_http_info: #{e}"
334
+ end
335
+ ```
336
+
337
+ ### Parameters
338
+
339
+ | Name | Type | Description | Notes |
340
+ | ---- | ---- | ----------- | ----- |
341
+ | **ping** | [**Ping**](Ping.md) | | |
342
+
343
+ ### Return type
344
+
345
+ [**Acknowledgement**](Acknowledgement.md)
346
+
347
+ ### Authorization
348
+
349
+ [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
350
+
351
+ ### HTTP request headers
352
+
353
+ - **Content-Type**: application/json, application/x-www-form-urlencoded, text/xml
354
+ - **Accept**: application/x-www-form-urlencoded, application/json, text/xml
355
+