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.
- checksums.yaml +4 -4
- data/README.md +105 -34
- data/citypay_api_client.gemspec +4 -5
- data/docs/AccountCreate.md +10 -9
- data/docs/AccountStatus.md +8 -7
- data/docs/Acknowledgement.md +14 -13
- data/docs/AclCheckRequest.md +18 -0
- data/docs/AclCheckResponseModel.md +24 -0
- data/docs/AirlineAdvice.md +38 -37
- data/docs/AirlineSegment.md +22 -21
- data/docs/AuthReference.md +34 -33
- data/docs/AuthReferences.md +8 -7
- data/docs/AuthRequest.md +50 -49
- data/docs/AuthResponse.md +60 -59
- data/docs/AuthenRequired.md +12 -11
- data/docs/AuthorisationAndPaymentApi.md +559 -0
- data/docs/Batch.md +22 -0
- data/docs/BatchProcessingApi.md +214 -0
- data/docs/BatchReportRequest.md +20 -0
- data/docs/BatchReportResponseModel.md +28 -0
- data/docs/BatchTransaction.md +24 -0
- data/docs/BatchTransactionResultModel.md +40 -0
- data/docs/Bin.md +34 -0
- data/docs/BinLookup.md +18 -0
- data/docs/CResAuthRequest.md +8 -7
- data/docs/CaptureRequest.md +18 -17
- data/docs/Card.md +46 -41
- data/docs/CardHolderAccount.md +24 -21
- data/docs/CardHolderAccountApi.md +326 -105
- data/docs/CardStatus.md +10 -9
- data/docs/ChargeRequest.md +36 -31
- data/docs/CheckBatchStatus.md +20 -0
- data/docs/CheckBatchStatusResponse.md +18 -0
- data/docs/ContactDetails.md +32 -31
- data/docs/Decision.md +12 -11
- data/docs/DirectPostApi.md +365 -0
- data/docs/DirectPostRequest.md +58 -0
- data/docs/DirectTokenAuthRequest.md +24 -0
- data/docs/DomainKeyCheckRequest.md +18 -0
- data/docs/DomainKeyRequest.md +22 -0
- data/docs/DomainKeyResponse.md +26 -0
- data/docs/Error.md +16 -13
- data/docs/EventDataModel.md +26 -0
- data/docs/Exists.md +22 -0
- data/docs/ExternalMPI.md +16 -15
- data/docs/ListMerchantsResponse.md +12 -11
- data/docs/MCC6012.md +14 -13
- data/docs/Merchant.md +16 -15
- data/docs/OperationalApi.md +124 -22
- data/docs/OperationalFunctionsApi.md +355 -0
- data/docs/PaResAuthRequest.md +10 -9
- data/docs/PaylinkAddress.md +30 -0
- data/docs/PaylinkAdjustmentRequest.md +22 -0
- data/docs/PaylinkApi.md +630 -0
- data/docs/PaylinkAttachmentRequest.md +26 -0
- data/docs/PaylinkAttachmentResult.md +22 -0
- data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
- data/docs/PaylinkCardHolder.md +36 -0
- data/docs/PaylinkCart.md +30 -0
- data/docs/PaylinkCartItemModel.md +32 -0
- data/docs/PaylinkConfig.md +60 -0
- data/docs/PaylinkCustomParam.md +36 -0
- data/docs/PaylinkEmailNotificationPath.md +26 -0
- data/docs/PaylinkErrorCode.md +20 -0
- data/docs/PaylinkFieldGuardModel.md +30 -0
- data/docs/PaylinkPartPayments.md +28 -0
- data/docs/PaylinkSMSNotificationPath.md +20 -0
- data/docs/PaylinkStateEvent.md +22 -0
- data/docs/PaylinkTokenCreated.md +44 -0
- data/docs/PaylinkTokenRequestModel.md +38 -0
- data/docs/PaylinkTokenStatus.md +72 -0
- data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
- data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
- data/docs/PaylinkUI.md +24 -0
- data/docs/PaymentProcessingApi.md +307 -68
- data/docs/Ping.md +8 -7
- data/docs/ProcessBatchRequest.md +24 -0
- data/docs/ProcessBatchResponse.md +20 -0
- data/docs/RefundRequest.md +26 -0
- data/docs/RegisterCard.md +16 -13
- data/docs/RequestChallenged.md +16 -15
- data/docs/RetrieveRequest.md +12 -11
- data/docs/ThreeDSecure.md +32 -15
- data/docs/TokenisationResponseModel.md +36 -0
- data/docs/VoidRequest.md +12 -13
- data/lib/.DS_Store +0 -0
- data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
- data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
- data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
- data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
- data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
- data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
- data/lib/citypay_api_client/api_client.rb +59 -59
- data/lib/citypay_api_client/api_error.rb +2 -2
- data/lib/citypay_api_client/configuration.rb +53 -15
- data/lib/citypay_api_client/models/account_create.rb +21 -8
- data/lib/citypay_api_client/models/account_status.rb +21 -8
- data/lib/citypay_api_client/models/acknowledgement.rb +21 -8
- data/lib/citypay_api_client/models/acl_check_request.rb +224 -0
- data/lib/citypay_api_client/models/acl_check_response_model.rb +249 -0
- data/lib/citypay_api_client/models/airline_advice.rb +23 -10
- data/lib/citypay_api_client/models/airline_segment.rb +21 -8
- data/lib/citypay_api_client/models/api_key.rb +16 -0
- data/lib/citypay_api_client/models/auth_reference.rb +45 -11
- data/lib/citypay_api_client/models/auth_references.rb +21 -8
- data/lib/citypay_api_client/models/auth_request.rb +79 -33
- data/lib/citypay_api_client/models/auth_response.rb +43 -106
- data/lib/citypay_api_client/models/authen_required.rb +21 -8
- data/lib/citypay_api_client/models/batch.rb +264 -0
- data/lib/citypay_api_client/models/batch_report_request.rb +277 -0
- data/lib/citypay_api_client/models/batch_report_response_model.rb +357 -0
- data/lib/citypay_api_client/models/batch_transaction.rb +321 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +421 -0
- data/lib/citypay_api_client/models/bin.rb +299 -0
- data/lib/citypay_api_client/models/bin_lookup.rb +234 -0
- data/lib/citypay_api_client/models/c_res_auth_request.rb +21 -8
- data/lib/citypay_api_client/models/capture_request.rb +38 -20
- data/lib/citypay_api_client/models/card.rb +67 -10
- data/lib/citypay_api_client/models/card_holder_account.rb +35 -12
- data/lib/citypay_api_client/models/card_status.rb +21 -8
- data/lib/citypay_api_client/models/charge_request.rb +96 -24
- data/lib/citypay_api_client/models/check_batch_status.rb +259 -0
- data/lib/citypay_api_client/models/check_batch_status_response.rb +220 -0
- data/lib/citypay_api_client/models/contact_details.rb +87 -44
- data/lib/citypay_api_client/models/decision.rb +21 -8
- data/lib/citypay_api_client/models/direct_post_request.rb +670 -0
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_check_request.rb +252 -0
- data/lib/citypay_api_client/models/domain_key_request.rb +250 -0
- data/lib/citypay_api_client/models/domain_key_response.rb +294 -0
- data/lib/citypay_api_client/models/error.rb +35 -12
- data/lib/citypay_api_client/models/event_data_model.rb +259 -0
- data/lib/citypay_api_client/models/exists.rb +244 -0
- data/lib/citypay_api_client/models/external_mpi.rb +27 -8
- data/lib/citypay_api_client/models/list_merchants_response.rb +21 -8
- data/lib/citypay_api_client/models/mcc6012.rb +21 -8
- data/lib/citypay_api_client/models/merchant.rb +21 -8
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +22 -9
- data/lib/citypay_api_client/models/paylink_address.rb +402 -0
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +249 -0
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +292 -0
- data/lib/citypay_api_client/models/paylink_card_holder.rb +353 -0
- data/lib/citypay_api_client/models/paylink_cart.rb +280 -0
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +289 -0
- data/lib/citypay_api_client/models/paylink_config.rb +433 -0
- data/lib/citypay_api_client/models/paylink_custom_param.rb +314 -0
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +268 -0
- data/lib/citypay_api_client/models/paylink_error_code.rb +239 -0
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +279 -0
- data/lib/citypay_api_client/models/paylink_part_payments.rb +269 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +234 -0
- data/lib/citypay_api_client/models/paylink_state_event.rb +239 -0
- data/lib/citypay_api_client/models/paylink_token_created.rb +364 -0
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +374 -0
- data/lib/citypay_api_client/models/paylink_token_status.rb +490 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +270 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +235 -0
- data/lib/citypay_api_client/models/paylink_ui.rb +249 -0
- data/lib/citypay_api_client/models/ping.rb +21 -8
- data/lib/citypay_api_client/models/process_batch_request.rb +308 -0
- data/lib/citypay_api_client/models/process_batch_response.rb +234 -0
- data/lib/citypay_api_client/models/refund_request.rb +332 -0
- data/lib/citypay_api_client/models/register_card.rb +59 -12
- data/lib/citypay_api_client/models/request_challenged.rb +29 -16
- data/lib/citypay_api_client/models/retrieve_request.rb +21 -8
- data/lib/citypay_api_client/models/three_d_secure.rb +106 -13
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +333 -0
- data/lib/citypay_api_client/models/void_request.rb +22 -19
- data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
- data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
- data/lib/citypay_api_client/version.rb +3 -3
- data/lib/citypay_api_client.rb +53 -6
- data/spec/.DS_Store +0 -0
- data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
- data/spec/api/batch_processing_api___spec.rb +70 -0
- data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
- data/spec/api/direct_post_api___spec.rb +98 -0
- data/spec/api/operational_functions_api___spec.rb +94 -0
- data/spec/api/paylink_api___spec.rb +131 -0
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +5 -5
- data/spec/it_api_sandbox_spec.rb +222 -0
- data/spec/models/acknowledgement_spec.rb +6 -8
- data/spec/models/acl_check_request_spec.rb +33 -0
- data/spec/models/acl_check_response_model_spec.rb +51 -0
- data/spec/models/auth_references_spec.rb +7 -8
- data/spec/models/auth_response_spec.rb +29 -30
- data/spec/models/batch_report_request_spec.rb +39 -0
- data/spec/models/batch_report_response_model_spec.rb +63 -0
- data/spec/models/batch_spec.rb +45 -0
- data/spec/models/batch_transaction_result_model_spec.rb +87 -0
- data/spec/models/batch_transaction_spec.rb +51 -0
- data/spec/models/bin_lookup_spec.rb +33 -0
- data/spec/models/bin_spec.rb +81 -0
- data/spec/models/card_holder_account_spec.rb +8 -5
- data/spec/models/check_batch_status_response_spec.rb +45 -0
- data/spec/models/check_batch_status_spec.rb +39 -0
- data/spec/models/decision_spec.rb +1 -1
- data/spec/models/direct_post_request_spec.rb +153 -0
- data/spec/models/direct_token_auth_request_spec.rb +51 -0
- data/spec/models/domain_key_check_request_spec.rb +33 -0
- data/spec/models/domain_key_request_spec.rb +45 -0
- data/spec/models/domain_key_response_spec.rb +57 -0
- data/spec/models/event_data_model_spec.rb +57 -0
- data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
- data/spec/models/list_merchants_response_spec.rb +2 -2
- data/spec/models/paylink_address_spec.rb +69 -0
- data/spec/models/paylink_adjustment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_result_spec.rb +45 -0
- data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
- data/spec/models/paylink_card_holder_spec.rb +87 -0
- data/spec/models/paylink_cart_item_model_spec.rb +75 -0
- data/spec/models/paylink_cart_spec.rb +69 -0
- data/spec/models/paylink_config_spec.rb +159 -0
- data/spec/models/paylink_custom_param_spec.rb +87 -0
- data/spec/models/paylink_email_notification_path_spec.rb +57 -0
- data/spec/models/paylink_error_code_spec.rb +39 -0
- data/spec/models/paylink_field_guard_model_spec.rb +45 -0
- data/spec/models/paylink_part_payments_spec.rb +63 -0
- data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
- data/spec/models/paylink_state_event_spec.rb +45 -0
- data/spec/models/paylink_token_created_spec.rb +111 -0
- data/spec/models/paylink_token_request_model_spec.rb +93 -0
- data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
- data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
- data/spec/models/paylink_token_status_spec.rb +195 -0
- data/spec/models/paylink_ui_spec.rb +51 -0
- data/spec/models/process_batch_request_spec.rb +51 -0
- data/spec/models/process_batch_response_spec.rb +39 -0
- data/spec/models/refund_request_spec.rb +64 -0
- data/spec/models/tokenisation_response_model_spec.rb +87 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/utils/direct_post_mac_spec.rb +13 -0
- metadata +212 -37
- data/Gemfile.lock +0 -70
- data/git_push.sh +0 -58
- data/lib/citypay_api_client/api/operational_api.rb +0 -147
- data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
- data/lib/citypay_api_client/test.rb +0 -20
- 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
|
-
##
|
11
|
+
## Example
|
12
12
|
|
13
13
|
```ruby
|
14
|
-
require '
|
14
|
+
require 'citypay_api_client'
|
15
15
|
|
16
|
-
instance = CityPayApiClient::ListMerchantsResponse.new(
|
17
|
-
|
18
|
-
|
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
|
-
##
|
12
|
+
## Example
|
13
13
|
|
14
14
|
```ruby
|
15
|
-
require '
|
15
|
+
require 'citypay_api_client'
|
16
16
|
|
17
|
-
instance = CityPayApiClient::MCC6012.new(
|
18
|
-
|
19
|
-
|
20
|
-
|
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
|
-
##
|
13
|
+
## Example
|
14
14
|
|
15
15
|
```ruby
|
16
|
-
require '
|
16
|
+
require 'citypay_api_client'
|
17
17
|
|
18
|
-
instance = CityPayApiClient::Merchant.new(
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
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
|
-
|
data/docs/OperationalApi.md
CHANGED
@@ -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
|
-
[**
|
8
|
-
[**
|
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
|
-
###
|
88
|
+
### Examples
|
21
89
|
|
22
90
|
```ruby
|
23
|
-
|
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 "
|
106
|
+
puts "Error when calling OperationalApi->list_merchants_request: #{e}"
|
39
107
|
end
|
40
108
|
```
|
41
109
|
|
42
|
-
|
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
|
46
|
-
|
47
|
-
**clientid** | **String
|
130
|
+
| Name | Type | Description | Notes |
|
131
|
+
| ---- | ---- | ----------- | ----- |
|
132
|
+
| **clientid** | **String** | The client id to return merchants for, specifying \"default\" 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
|
-
###
|
156
|
+
### Examples
|
72
157
|
|
73
158
|
```ruby
|
74
|
-
|
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 "
|
174
|
+
puts "Error when calling OperationalApi->ping_request: #{e}"
|
90
175
|
end
|
91
176
|
```
|
92
177
|
|
93
|
-
|
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
|
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 \"default\" 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
|
+
|