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.
- checksums.yaml +4 -4
- data/README.md +111 -39
- data/citypay_api_client.gemspec +5 -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 +52 -49
- data/docs/AuthResponse.md +64 -59
- data/docs/AuthenRequired.md +12 -11
- data/docs/AuthorisationAndPaymentApi.md +850 -0
- data/docs/Batch.md +22 -0
- data/docs/BatchProcessingApi.md +218 -0
- data/docs/BatchReportRequest.md +20 -0
- data/docs/BatchReportResponseModel.md +28 -0
- data/docs/BatchTransaction.md +24 -0
- data/docs/BatchTransactionResultModel.md +44 -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 +387 -111
- data/docs/CardStatus.md +10 -9
- data/docs/ChargeRequest.md +38 -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 +389 -0
- data/docs/DirectPostRequest.md +60 -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/OperationalFunctionsApi.md +375 -0
- data/docs/PaResAuthRequest.md +10 -9
- data/docs/PaylinkAddress.md +30 -0
- data/docs/PaylinkAdjustmentRequest.md +22 -0
- data/docs/PaylinkApi.md +806 -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 +38 -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 +42 -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/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/docs/images/3dsv1-challenge.png +0 -0
- data/docs/images/3dsv2-challenge.png +0 -0
- data/docs/images/3dsv2-frictionless.png +0 -0
- data/docs/images/3dsv2-method-challenge.png +0 -0
- data/docs/images/3dsv2-method-frictionless.png +0 -0
- data/docs/images/3dsv2-no3d.png +0 -0
- data/docs/images/citypay-logo.svg +1 -0
- data/docs/images/direct-post-flow.png +0 -0
- data/docs/images/favicon.ico +0 -0
- data/docs/images/header.png +0 -0
- data/docs/images/logo.ai +1913 -4
- data/docs/images/logo.png +0 -0
- data/docs/images/logo.svg +1 -0
- data/docs/images/merchant-BPS-workflow.png +0 -0
- data/docs/images/paylink-field-guards.png +0 -0
- 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 +72 -70
- data/lib/citypay_api_client/api_error.rb +3 -2
- data/lib/citypay_api_client/configuration.rb +74 -17
- data/lib/citypay_api_client/models/account_create.rb +33 -23
- data/lib/citypay_api_client/models/account_status.rb +31 -23
- data/lib/citypay_api_client/models/acknowledgement.rb +43 -27
- data/lib/citypay_api_client/models/acl_check_request.rb +221 -0
- data/lib/citypay_api_client/models/acl_check_response_model.rb +244 -0
- data/lib/citypay_api_client/models/airline_advice.rb +63 -34
- data/lib/citypay_api_client/models/airline_segment.rb +51 -25
- data/lib/citypay_api_client/models/auth_reference.rb +80 -31
- data/lib/citypay_api_client/models/auth_references.rb +31 -23
- data/lib/citypay_api_client/models/auth_request.rb +137 -56
- data/lib/citypay_api_client/models/auth_response.rb +83 -123
- data/lib/citypay_api_client/models/authen_required.rb +31 -23
- data/lib/citypay_api_client/models/batch.rb +267 -0
- data/lib/citypay_api_client/models/batch_report_request.rb +278 -0
- data/lib/citypay_api_client/models/batch_report_response_model.rb +364 -0
- data/lib/citypay_api_client/models/batch_transaction.rb +324 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +452 -0
- data/lib/citypay_api_client/models/bin.rb +294 -0
- data/lib/citypay_api_client/models/bin_lookup.rb +231 -0
- data/lib/citypay_api_client/models/c_res_auth_request.rb +31 -23
- data/lib/citypay_api_client/models/capture_request.rb +59 -38
- data/lib/citypay_api_client/models/card.rb +93 -29
- data/lib/citypay_api_client/models/card_holder_account.rb +49 -27
- data/lib/citypay_api_client/models/card_status.rb +31 -23
- data/lib/citypay_api_client/models/charge_request.rb +154 -47
- data/lib/citypay_api_client/models/check_batch_status.rb +260 -0
- data/lib/citypay_api_client/models/check_batch_status_response.rb +215 -0
- data/lib/citypay_api_client/models/contact_details.rb +130 -52
- data/lib/citypay_api_client/models/decision.rb +31 -23
- data/lib/citypay_api_client/models/direct_post_request.rb +707 -0
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +244 -0
- data/lib/citypay_api_client/models/domain_key_check_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_response.rb +297 -0
- data/lib/citypay_api_client/models/error.rb +57 -31
- data/lib/citypay_api_client/models/event_data_model.rb +254 -0
- data/lib/citypay_api_client/models/exists.rb +241 -0
- data/lib/citypay_api_client/models/external_mpi.rb +61 -27
- data/lib/citypay_api_client/models/list_merchants_response.rb +37 -25
- data/lib/citypay_api_client/models/mcc6012.rb +31 -23
- data/lib/citypay_api_client/models/merchant.rb +31 -23
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +36 -24
- data/lib/citypay_api_client/models/paylink_address.rb +425 -0
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +272 -0
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +268 -0
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +248 -0
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +289 -0
- data/lib/citypay_api_client/models/paylink_card_holder.rb +360 -0
- data/lib/citypay_api_client/models/paylink_cart.rb +275 -0
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +284 -0
- data/lib/citypay_api_client/models/paylink_config.rb +428 -0
- data/lib/citypay_api_client/models/paylink_custom_param.rb +321 -0
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +265 -0
- data/lib/citypay_api_client/models/paylink_error_code.rb +238 -0
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +274 -0
- data/lib/citypay_api_client/models/paylink_part_payments.rb +264 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +231 -0
- data/lib/citypay_api_client/models/paylink_state_event.rb +234 -0
- data/lib/citypay_api_client/models/paylink_token_created.rb +365 -0
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +427 -0
- data/lib/citypay_api_client/models/paylink_token_status.rb +485 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +232 -0
- data/lib/citypay_api_client/models/paylink_ui.rb +244 -0
- data/lib/citypay_api_client/models/ping.rb +37 -25
- data/lib/citypay_api_client/models/process_batch_request.rb +313 -0
- data/lib/citypay_api_client/models/process_batch_response.rb +231 -0
- data/lib/citypay_api_client/models/refund_request.rb +339 -0
- data/lib/citypay_api_client/models/register_card.rb +79 -27
- data/lib/citypay_api_client/models/request_challenged.rb +39 -31
- data/lib/citypay_api_client/models/retrieve_request.rb +39 -25
- data/lib/citypay_api_client/models/three_d_secure.rb +116 -28
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +332 -0
- data/lib/citypay_api_client/models/void_request.rb +39 -37
- 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 -4
- 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 +117 -55
- data/spec/models/account_create_spec.rb +1 -2
- data/spec/models/account_status_spec.rb +2 -2
- data/spec/models/acknowledgement_spec.rb +7 -22
- data/spec/models/acl_check_request_spec.rb +33 -0
- data/spec/models/acl_check_response_model_spec.rb +51 -0
- data/spec/models/airline_advice_spec.rb +0 -2
- data/spec/models/airline_segment_spec.rb +0 -2
- data/spec/models/auth_references_spec.rb +7 -8
- data/spec/models/auth_request_spec.rb +0 -2
- data/spec/models/auth_response_spec.rb +77 -33
- data/spec/models/batch_report_request_spec.rb +37 -0
- data/spec/models/batch_report_response_model_spec.rb +61 -0
- data/spec/models/batch_spec.rb +43 -0
- data/spec/models/batch_transaction_result_model_spec.rb +85 -0
- data/spec/models/batch_transaction_spec.rb +49 -0
- data/spec/models/bin_lookup_spec.rb +31 -0
- data/spec/models/bin_spec.rb +81 -0
- data/spec/models/capture_request_spec.rb +0 -2
- data/spec/models/card_holder_account_spec.rb +8 -7
- data/spec/models/charge_request_spec.rb +0 -2
- 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 +151 -0
- data/spec/models/direct_token_auth_request_spec.rb +51 -0
- data/spec/models/domain_key_check_request_spec.rb +31 -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 +91 -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 +49 -0
- data/spec/models/process_batch_response_spec.rb +39 -0
- data/spec/models/refund_request_spec.rb +62 -0
- data/spec/models/register_card_spec.rb +0 -2
- 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 +230 -44
- data/Gemfile.lock +0 -70
- data/docs/OperationalApi.md +0 -112
- data/docs/PaymentProcessingApi.md +0 -320
- 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
data/docs/PaylinkApi.md
ADDED
@@ -0,0 +1,806 @@
|
|
1
|
+
# CityPayApiClient::PaylinkApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.citypay.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**token_adjustment_request**](PaylinkApi.md#token_adjustment_request) | **POST** /paylink/{token}/adjustment | Paylink Token Adjustment |
|
8
|
+
| [**token_changes_request**](PaylinkApi.md#token_changes_request) | **POST** /paylink/token/changes | Paylink Token Audit |
|
9
|
+
| [**token_close_request**](PaylinkApi.md#token_close_request) | **PUT** /paylink/{token}/close | Close Paylink Token |
|
10
|
+
| [**token_create_bill_payment_request**](PaylinkApi.md#token_create_bill_payment_request) | **POST** /paylink/bill-payment | Create Bill Payment Paylink Token |
|
11
|
+
| [**token_create_request**](PaylinkApi.md#token_create_request) | **POST** /paylink/create | Create Paylink Token |
|
12
|
+
| [**token_purge_attachments_request**](PaylinkApi.md#token_purge_attachments_request) | **PUT** /paylink/{token}/purge-attachments | Purges any attachments for a Paylink Token |
|
13
|
+
| [**token_reconciled_request**](PaylinkApi.md#token_reconciled_request) | **PUT** /paylink/{token}/reconciled | Reconcile Paylink Token |
|
14
|
+
| [**token_reopen_request**](PaylinkApi.md#token_reopen_request) | **PUT** /paylink/{token}/reopen | Reopen Paylink Token |
|
15
|
+
| [**token_status_request**](PaylinkApi.md#token_status_request) | **GET** /paylink/{token}/status | Paylink Token Status |
|
16
|
+
|
17
|
+
|
18
|
+
## token_adjustment_request
|
19
|
+
|
20
|
+
> <Acknowledgement> token_adjustment_request(token, paylink_adjustment_request)
|
21
|
+
|
22
|
+
Paylink Token Adjustment
|
23
|
+
|
24
|
+
Adjusts a TokenRequest's amount value when for instance
|
25
|
+
|
26
|
+
1. a Token is created and the shopping cart is updated
|
27
|
+
2. an invoice is adjusted either due to part payment or due to increased incurred costs.
|
28
|
+
|
29
|
+
|
30
|
+
### Examples
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'time'
|
34
|
+
require 'citypay_api_client'
|
35
|
+
# setup authorization
|
36
|
+
CityPayApiClient.configure do |config|
|
37
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
38
|
+
end
|
39
|
+
|
40
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
41
|
+
token = 'token_example' # String | The token returned by the create token process.
|
42
|
+
paylink_adjustment_request = CityPayApiClient::PaylinkAdjustmentRequest.new # PaylinkAdjustmentRequest |
|
43
|
+
|
44
|
+
begin
|
45
|
+
# Paylink Token Adjustment
|
46
|
+
result = api_instance.token_adjustment_request(token, paylink_adjustment_request)
|
47
|
+
p result
|
48
|
+
rescue CityPayApiClient::ApiError => e
|
49
|
+
puts "Error when calling PaylinkApi->token_adjustment_request: #{e}"
|
50
|
+
end
|
51
|
+
```
|
52
|
+
|
53
|
+
#### Using the token_adjustment_request_with_http_info variant
|
54
|
+
|
55
|
+
This returns an Array which contains the response data, status code and headers.
|
56
|
+
|
57
|
+
> <Array(<Acknowledgement>, Integer, Hash)> token_adjustment_request_with_http_info(token, paylink_adjustment_request)
|
58
|
+
|
59
|
+
```ruby
|
60
|
+
begin
|
61
|
+
# Paylink Token Adjustment
|
62
|
+
data, status_code, headers = api_instance.token_adjustment_request_with_http_info(token, paylink_adjustment_request)
|
63
|
+
p status_code # => 2xx
|
64
|
+
p headers # => { ... }
|
65
|
+
p data # => <Acknowledgement>
|
66
|
+
rescue CityPayApiClient::ApiError => e
|
67
|
+
puts "Error when calling PaylinkApi->token_adjustment_request_with_http_info: #{e}"
|
68
|
+
end
|
69
|
+
```
|
70
|
+
|
71
|
+
### Parameters
|
72
|
+
|
73
|
+
| Name | Type | Description | Notes |
|
74
|
+
| ---- | ---- | ----------- | ----- |
|
75
|
+
| **token** | **String** | The token returned by the create token process. | |
|
76
|
+
| **paylink_adjustment_request** | [**PaylinkAdjustmentRequest**](PaylinkAdjustmentRequest.md) | | |
|
77
|
+
|
78
|
+
### Return type
|
79
|
+
|
80
|
+
[**Acknowledgement**](Acknowledgement.md)
|
81
|
+
|
82
|
+
### Authorization
|
83
|
+
|
84
|
+
[cp-api-key](../README.md#cp-api-key)
|
85
|
+
|
86
|
+
### HTTP request headers
|
87
|
+
|
88
|
+
- **Content-Type**: application/json, text/xml
|
89
|
+
- **Accept**: application/json, text/xml
|
90
|
+
|
91
|
+
|
92
|
+
## token_changes_request
|
93
|
+
|
94
|
+
> <PaylinkTokenStatusChangeResponse> token_changes_request(paylink_token_status_change_request)
|
95
|
+
|
96
|
+
Paylink Token Audit
|
97
|
+
|
98
|
+
Allows for the changes to a pre-existing token.
|
99
|
+
|
100
|
+
### Examples
|
101
|
+
|
102
|
+
```ruby
|
103
|
+
require 'time'
|
104
|
+
require 'citypay_api_client'
|
105
|
+
# setup authorization
|
106
|
+
CityPayApiClient.configure do |config|
|
107
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
108
|
+
end
|
109
|
+
|
110
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
111
|
+
paylink_token_status_change_request = CityPayApiClient::PaylinkTokenStatusChangeRequest.new({after: Time.now, merchantid: 11223344}) # PaylinkTokenStatusChangeRequest |
|
112
|
+
|
113
|
+
begin
|
114
|
+
# Paylink Token Audit
|
115
|
+
result = api_instance.token_changes_request(paylink_token_status_change_request)
|
116
|
+
p result
|
117
|
+
rescue CityPayApiClient::ApiError => e
|
118
|
+
puts "Error when calling PaylinkApi->token_changes_request: #{e}"
|
119
|
+
end
|
120
|
+
```
|
121
|
+
|
122
|
+
#### Using the token_changes_request_with_http_info variant
|
123
|
+
|
124
|
+
This returns an Array which contains the response data, status code and headers.
|
125
|
+
|
126
|
+
> <Array(<PaylinkTokenStatusChangeResponse>, Integer, Hash)> token_changes_request_with_http_info(paylink_token_status_change_request)
|
127
|
+
|
128
|
+
```ruby
|
129
|
+
begin
|
130
|
+
# Paylink Token Audit
|
131
|
+
data, status_code, headers = api_instance.token_changes_request_with_http_info(paylink_token_status_change_request)
|
132
|
+
p status_code # => 2xx
|
133
|
+
p headers # => { ... }
|
134
|
+
p data # => <PaylinkTokenStatusChangeResponse>
|
135
|
+
rescue CityPayApiClient::ApiError => e
|
136
|
+
puts "Error when calling PaylinkApi->token_changes_request_with_http_info: #{e}"
|
137
|
+
end
|
138
|
+
```
|
139
|
+
|
140
|
+
### Parameters
|
141
|
+
|
142
|
+
| Name | Type | Description | Notes |
|
143
|
+
| ---- | ---- | ----------- | ----- |
|
144
|
+
| **paylink_token_status_change_request** | [**PaylinkTokenStatusChangeRequest**](PaylinkTokenStatusChangeRequest.md) | | |
|
145
|
+
|
146
|
+
### Return type
|
147
|
+
|
148
|
+
[**PaylinkTokenStatusChangeResponse**](PaylinkTokenStatusChangeResponse.md)
|
149
|
+
|
150
|
+
### Authorization
|
151
|
+
|
152
|
+
[cp-api-key](../README.md#cp-api-key)
|
153
|
+
|
154
|
+
### HTTP request headers
|
155
|
+
|
156
|
+
- **Content-Type**: application/json, text/xml
|
157
|
+
- **Accept**: application/json, text/xml
|
158
|
+
|
159
|
+
|
160
|
+
## token_close_request
|
161
|
+
|
162
|
+
> <Acknowledgement> token_close_request(token)
|
163
|
+
|
164
|
+
Close Paylink Token
|
165
|
+
|
166
|
+
Marks a Paylink Token as closed. This closes the Token for any future action and the Token will not appear in any status
|
167
|
+
request calls.
|
168
|
+
|
169
|
+
|
170
|
+
### Examples
|
171
|
+
|
172
|
+
```ruby
|
173
|
+
require 'time'
|
174
|
+
require 'citypay_api_client'
|
175
|
+
# setup authorization
|
176
|
+
CityPayApiClient.configure do |config|
|
177
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
178
|
+
end
|
179
|
+
|
180
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
181
|
+
token = 'token_example' # String | The token returned by the create token process.
|
182
|
+
|
183
|
+
begin
|
184
|
+
# Close Paylink Token
|
185
|
+
result = api_instance.token_close_request(token)
|
186
|
+
p result
|
187
|
+
rescue CityPayApiClient::ApiError => e
|
188
|
+
puts "Error when calling PaylinkApi->token_close_request: #{e}"
|
189
|
+
end
|
190
|
+
```
|
191
|
+
|
192
|
+
#### Using the token_close_request_with_http_info variant
|
193
|
+
|
194
|
+
This returns an Array which contains the response data, status code and headers.
|
195
|
+
|
196
|
+
> <Array(<Acknowledgement>, Integer, Hash)> token_close_request_with_http_info(token)
|
197
|
+
|
198
|
+
```ruby
|
199
|
+
begin
|
200
|
+
# Close Paylink Token
|
201
|
+
data, status_code, headers = api_instance.token_close_request_with_http_info(token)
|
202
|
+
p status_code # => 2xx
|
203
|
+
p headers # => { ... }
|
204
|
+
p data # => <Acknowledgement>
|
205
|
+
rescue CityPayApiClient::ApiError => e
|
206
|
+
puts "Error when calling PaylinkApi->token_close_request_with_http_info: #{e}"
|
207
|
+
end
|
208
|
+
```
|
209
|
+
|
210
|
+
### Parameters
|
211
|
+
|
212
|
+
| Name | Type | Description | Notes |
|
213
|
+
| ---- | ---- | ----------- | ----- |
|
214
|
+
| **token** | **String** | The token returned by the create token process. | |
|
215
|
+
|
216
|
+
### Return type
|
217
|
+
|
218
|
+
[**Acknowledgement**](Acknowledgement.md)
|
219
|
+
|
220
|
+
### Authorization
|
221
|
+
|
222
|
+
[cp-api-key](../README.md#cp-api-key)
|
223
|
+
|
224
|
+
### HTTP request headers
|
225
|
+
|
226
|
+
- **Content-Type**: Not defined
|
227
|
+
- **Accept**: application/json, text/xml
|
228
|
+
|
229
|
+
|
230
|
+
## token_create_bill_payment_request
|
231
|
+
|
232
|
+
> <PaylinkTokenCreated> token_create_bill_payment_request(paylink_bill_payment_token_request)
|
233
|
+
|
234
|
+
Create Bill Payment Paylink Token
|
235
|
+
|
236
|
+
CityPay Paylink supports invoice and bill payment services by allowing merchants to raise an invoice in their systems and
|
237
|
+
associate the invoice with a Paylink checkout token. CityPay will co-ordinate the checkout flow in relationship with
|
238
|
+
your customer. Our bill payment solution may be used to streamline the payment flow with cardholders to allow your
|
239
|
+
invoice to be paid promptly and via multiple payment channels such as Card Payment, Apple Pay or Google Pay.
|
240
|
+
|
241
|
+
The bill payment service allows
|
242
|
+
|
243
|
+
1. setting up notification paths to an end customer, such as SMS or Email
|
244
|
+
2. enabling attachments to be included with Paylink tokens
|
245
|
+
3. produce chaser notifications for unpaid invoices
|
246
|
+
4. provide callbacks for notification of the payment of an invoice
|
247
|
+
5. support part payments against an invoice
|
248
|
+
6. support of field guards to protect the payment screen
|
249
|
+
7. support of status reporting on tokens
|
250
|
+
8. URL short codes for SMS notifications
|
251
|
+
|
252
|
+
<img src="images/merchant-BPS-workflow.png" alt="Paylink BPSv2 Overview" width="50%"/>
|
253
|
+
|
254
|
+
|
255
|
+
### Notification Paths
|
256
|
+
|
257
|
+
Notification paths can be provided which identify the channels for communication of the invoice availability.
|
258
|
+
Up to 3 notification paths may be provided per request.
|
259
|
+
|
260
|
+
Each notification uses a template to generate the body of the message. This allows for variable text to be sent out and
|
261
|
+
customised for each call.
|
262
|
+
|
263
|
+
SMS messages use URL Short Codes (USC) as a payment link to the invoice payment page. This allows for a standard payment
|
264
|
+
URL to be shortened for optimised usage in SMS. For instance a URL of `https://checkout.citypay.com/PL1234/s348yb8yna4a48n2f8nq2f3msgyng-psn348ynaw8ynaw/en`
|
265
|
+
becomes `citypay.com/Za48na3x`. Each USC is unique however it is a requirement that each USC generated is protected
|
266
|
+
with Field Guards to ensure that sensitive data (such as customer contact details and GDPR) is protected.
|
267
|
+
|
268
|
+
To send a notification path, append a `notification-path` property to the request.
|
269
|
+
|
270
|
+
```json
|
271
|
+
{
|
272
|
+
"sms_notification_path": {
|
273
|
+
"to": "+441534884000"
|
274
|
+
},
|
275
|
+
"email_notification_path": {
|
276
|
+
"to": ["help-desk@citypay.com"],
|
277
|
+
"cc": ["third-party@citypay.com"],
|
278
|
+
"reply": ["help@my-company.com"]
|
279
|
+
}
|
280
|
+
}
|
281
|
+
```
|
282
|
+
|
283
|
+
Notification paths trigger a number of events which are stored as part of the timeline of events of a Paylink token
|
284
|
+
|
285
|
+
- `BillPaymentSmsNotificationQueued` - identifies when an SMS notification has been queued for delivery
|
286
|
+
- `BillPaymentSmsNotificationSent` - identifies when an SMS notification has been sent to the upstream network
|
287
|
+
- `BillPaymentSmsNotificationDelivered` - identifies when an SMS notification has been delivered as notified by the upstream network
|
288
|
+
- `BillPaymentSmsNotificationUndelivered` - identifies when an SMS notification has undelivered notification is provided by the upstream network
|
289
|
+
- `BillPaymentSmsNotificationFailure` - identifies when an SMS notification has failed
|
290
|
+
- `BillPaymentEmailNotificationQueued` - identifies when an email notification has been queued for delivery
|
291
|
+
- `BillPaymentEmailNotificationSent` - identifies when an email notification has been accepted by our SMS forwarder
|
292
|
+
- `BillPaymentEmailNotificationFailure` - identifies when an email notification has failed delivery
|
293
|
+
|
294
|
+
|
295
|
+
#### SMS Notification Path
|
296
|
+
|
297
|
+
SMS originated from a CityPay pool of numbers and by default only sends to country codes where the service is registered.
|
298
|
+
SMSs may contain a From field which is configured as part of you onboarding and have a name associated to identify the service
|
299
|
+
origin. For example if your business is titled `Health Surgery Ltd` the SMS may be sent to originate from `Health Surgery`.
|
300
|
+
|
301
|
+
SMS is also configured for a "polite mode". This mode ensures that SMSs aren't sent in the middle of the night when backend
|
302
|
+
services ordinarily run. SMSs will be queued until the time range is deemed as polite. Normally this is between 8am and 9pm.
|
303
|
+
|
304
|
+
| Field | Type | Usage | Description |
|
305
|
+
|----------|----------|----------|-------------------------------------------------------------------------------------------------|
|
306
|
+
| template | string | Reserved | An optional template name to use a template other than the default. |
|
307
|
+
| to | string | Reserved | The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format to send the message to. |
|
308
|
+
|
309
|
+
#### Email Notification Paths
|
310
|
+
|
311
|
+
| Field | Type | Usage | Description |
|
312
|
+
|----------|----------|----------|-------------------------------------------------------------------------------------------------|
|
313
|
+
| template | string | Reserved | An optional template name to use a template other than the default. |
|
314
|
+
| to | string[] | Required | An array of email addresses to be used for delivery. A maximum of 5 addresses can be added. |
|
315
|
+
| cc | string[] | Required | An array of email addresses to be used for cc delivery. A maximum of 5 addresses can be added. |
|
316
|
+
| bcc | string[] | Required | An array of email addresses to be used for bcc delivery. A maximum of 5 addresses can be added. |
|
317
|
+
| reply_to | string[] | Required | An array of email addresses to be used for the Reply-To header of an email. |
|
318
|
+
|
319
|
+
|
320
|
+
### Field Guards
|
321
|
+
|
322
|
+
To ensure that invoices are paid by the intended recipient, Paylink supports the addition of Field Guards.
|
323
|
+
|
324
|
+
A Field Guard is an intended field which is to be used as a form of guarded authentication. More than 1 field can be
|
325
|
+
requested.
|
326
|
+
|
327
|
+
<img src="images/paylink-field-guards.png" alt="Paylink Field Guards" width="50%"/>
|
328
|
+
|
329
|
+
To determine the source value of the field, each field name is searched in the order of
|
330
|
+
|
331
|
+
- identifier
|
332
|
+
- cardholder data such as name
|
333
|
+
- custom parameters
|
334
|
+
- pass through data
|
335
|
+
|
336
|
+
If no field values are found, the token request returns a D041 validation error.
|
337
|
+
|
338
|
+
#### Authentication and Validation
|
339
|
+
|
340
|
+
When values are entered by the user, resultant comparisons are performed by
|
341
|
+
|
342
|
+
1. Transliteration of both the source value and entered value. For example, names with accents (e.g. é will become e)
|
343
|
+
2. Only Alphanumeric values are retained any whitespace or special characters are ignored
|
344
|
+
3. Case is ignored
|
345
|
+
|
346
|
+
Should all values match, the user is authenticated and can continue to the payment form rendered by the Paylink server.
|
347
|
+
|
348
|
+
On successful login, an event will be added to include that the access guard validated access.
|
349
|
+
|
350
|
+
#### Access-Key
|
351
|
+
|
352
|
+
To ensure that a user does not need to re-enter these values multiple times, a cookie is pushed to the user’s
|
353
|
+
browser with an access-key digest value. This value will be presented to the server on each refresh therefore
|
354
|
+
allowing the guard to accept the call. Each value is uniquely stored per merchant account and cannot be shared cross
|
355
|
+
merchant. The lifetime of the cookie is set to 24 hours.
|
356
|
+
|
357
|
+
#### Brute Force Prevention
|
358
|
+
|
359
|
+
To prevent multiple calls hitting the server, attempting a brute force attack, the login process
|
360
|
+
|
361
|
+
1. is fronted by a contemporary web application firewall
|
362
|
+
2. creates an event for each token when access was denied
|
363
|
+
3. should the number of failed events breach more than 5 in 30 minutes, the token is locked for an hour
|
364
|
+
4. should the number of events breach more than 20 the token is fully locked
|
365
|
+
|
366
|
+
### Attachments
|
367
|
+
|
368
|
+
Attachments can be included in the request in 2 ways
|
369
|
+
|
370
|
+
1. Via a data element direct in the request
|
371
|
+
2. Via a URL upload to a provided pre-signed URL
|
372
|
+
|
373
|
+
The decision of which option is dependent on the size of the attachments. Should the attachment size be greater than
|
374
|
+
32kb a URL upload is required. Small attachments can be included in the JSON request. This is to prevent our web
|
375
|
+
firewall from blocking your request and to also ensure efficiency of larger file uploads.
|
376
|
+
|
377
|
+
There is a maximum of 3 attachments that can be added to a request.
|
378
|
+
|
379
|
+
```json
|
380
|
+
[{
|
381
|
+
"filename": "invoice1.pdf",
|
382
|
+
"mime-type": "application/pdf"
|
383
|
+
},{
|
384
|
+
"filename": "invoice2.pdf",
|
385
|
+
"data": "b4sE64Enc0dEd...=",
|
386
|
+
"mime-type": "application/pdf"
|
387
|
+
}]
|
388
|
+
```
|
389
|
+
|
390
|
+
| Field | Type | Usage | Description |
|
391
|
+
|-----------|--------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------|
|
392
|
+
| filename | string | Required | The name of the attachment normally taken from the filename. You should not include the filename path as appropriate |
|
393
|
+
| data | string | Optional | base64 encoding of the file if less than 32kb in size |
|
394
|
+
| mime-type | string | Required | The mime type of the attachment as defined in [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html). Currently only `application/pdf` is supported |
|
395
|
+
|
396
|
+
|
397
|
+
#### Attachment Result
|
398
|
+
|
399
|
+
A result of an attachment specifies whether the attachment was successfully added or whether a further upload is requried
|
400
|
+
|
401
|
+
| Field | Type | Usage | Description |
|
402
|
+
|--------|--------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------|
|
403
|
+
| result | string | Required | `OK` should the file have uploaded or `UPLOAD` if the file is required to be uploaded. |
|
404
|
+
| name | string | Required | The filename that was specified in the upload process |
|
405
|
+
| url | string | Optional | Should an upload be required, this URL is available for an upload to be issued. The URL is only available for uploads for 24 hours from creation. |
|
406
|
+
|
407
|
+
|
408
|
+
### Examples
|
409
|
+
|
410
|
+
```ruby
|
411
|
+
require 'time'
|
412
|
+
require 'citypay_api_client'
|
413
|
+
# setup authorization
|
414
|
+
CityPayApiClient.configure do |config|
|
415
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
416
|
+
end
|
417
|
+
|
418
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
419
|
+
paylink_bill_payment_token_request = CityPayApiClient::PaylinkBillPaymentTokenRequest.new({request: CityPayApiClient::PaylinkTokenRequestModel.new({amount: 37, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344})}) # PaylinkBillPaymentTokenRequest |
|
420
|
+
|
421
|
+
begin
|
422
|
+
# Create Bill Payment Paylink Token
|
423
|
+
result = api_instance.token_create_bill_payment_request(paylink_bill_payment_token_request)
|
424
|
+
p result
|
425
|
+
rescue CityPayApiClient::ApiError => e
|
426
|
+
puts "Error when calling PaylinkApi->token_create_bill_payment_request: #{e}"
|
427
|
+
end
|
428
|
+
```
|
429
|
+
|
430
|
+
#### Using the token_create_bill_payment_request_with_http_info variant
|
431
|
+
|
432
|
+
This returns an Array which contains the response data, status code and headers.
|
433
|
+
|
434
|
+
> <Array(<PaylinkTokenCreated>, Integer, Hash)> token_create_bill_payment_request_with_http_info(paylink_bill_payment_token_request)
|
435
|
+
|
436
|
+
```ruby
|
437
|
+
begin
|
438
|
+
# Create Bill Payment Paylink Token
|
439
|
+
data, status_code, headers = api_instance.token_create_bill_payment_request_with_http_info(paylink_bill_payment_token_request)
|
440
|
+
p status_code # => 2xx
|
441
|
+
p headers # => { ... }
|
442
|
+
p data # => <PaylinkTokenCreated>
|
443
|
+
rescue CityPayApiClient::ApiError => e
|
444
|
+
puts "Error when calling PaylinkApi->token_create_bill_payment_request_with_http_info: #{e}"
|
445
|
+
end
|
446
|
+
```
|
447
|
+
|
448
|
+
### Parameters
|
449
|
+
|
450
|
+
| Name | Type | Description | Notes |
|
451
|
+
| ---- | ---- | ----------- | ----- |
|
452
|
+
| **paylink_bill_payment_token_request** | [**PaylinkBillPaymentTokenRequest**](PaylinkBillPaymentTokenRequest.md) | | |
|
453
|
+
|
454
|
+
### Return type
|
455
|
+
|
456
|
+
[**PaylinkTokenCreated**](PaylinkTokenCreated.md)
|
457
|
+
|
458
|
+
### Authorization
|
459
|
+
|
460
|
+
[cp-api-key](../README.md#cp-api-key)
|
461
|
+
|
462
|
+
### HTTP request headers
|
463
|
+
|
464
|
+
- **Content-Type**: application/json, text/xml
|
465
|
+
- **Accept**: application/json, text/xml
|
466
|
+
|
467
|
+
|
468
|
+
## token_create_request
|
469
|
+
|
470
|
+
> <PaylinkTokenCreated> token_create_request(paylink_token_request_model)
|
471
|
+
|
472
|
+
Create Paylink Token
|
473
|
+
|
474
|
+
Creates a Paylink token from the CityPay API.
|
475
|
+
|
476
|
+
### Examples
|
477
|
+
|
478
|
+
```ruby
|
479
|
+
require 'time'
|
480
|
+
require 'citypay_api_client'
|
481
|
+
# setup authorization
|
482
|
+
CityPayApiClient.configure do |config|
|
483
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
484
|
+
end
|
485
|
+
|
486
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
487
|
+
paylink_token_request_model = CityPayApiClient::PaylinkTokenRequestModel.new({amount: 37, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344}) # PaylinkTokenRequestModel |
|
488
|
+
|
489
|
+
begin
|
490
|
+
# Create Paylink Token
|
491
|
+
result = api_instance.token_create_request(paylink_token_request_model)
|
492
|
+
p result
|
493
|
+
rescue CityPayApiClient::ApiError => e
|
494
|
+
puts "Error when calling PaylinkApi->token_create_request: #{e}"
|
495
|
+
end
|
496
|
+
```
|
497
|
+
|
498
|
+
#### Using the token_create_request_with_http_info variant
|
499
|
+
|
500
|
+
This returns an Array which contains the response data, status code and headers.
|
501
|
+
|
502
|
+
> <Array(<PaylinkTokenCreated>, Integer, Hash)> token_create_request_with_http_info(paylink_token_request_model)
|
503
|
+
|
504
|
+
```ruby
|
505
|
+
begin
|
506
|
+
# Create Paylink Token
|
507
|
+
data, status_code, headers = api_instance.token_create_request_with_http_info(paylink_token_request_model)
|
508
|
+
p status_code # => 2xx
|
509
|
+
p headers # => { ... }
|
510
|
+
p data # => <PaylinkTokenCreated>
|
511
|
+
rescue CityPayApiClient::ApiError => e
|
512
|
+
puts "Error when calling PaylinkApi->token_create_request_with_http_info: #{e}"
|
513
|
+
end
|
514
|
+
```
|
515
|
+
|
516
|
+
### Parameters
|
517
|
+
|
518
|
+
| Name | Type | Description | Notes |
|
519
|
+
| ---- | ---- | ----------- | ----- |
|
520
|
+
| **paylink_token_request_model** | [**PaylinkTokenRequestModel**](PaylinkTokenRequestModel.md) | | |
|
521
|
+
|
522
|
+
### Return type
|
523
|
+
|
524
|
+
[**PaylinkTokenCreated**](PaylinkTokenCreated.md)
|
525
|
+
|
526
|
+
### Authorization
|
527
|
+
|
528
|
+
[cp-api-key](../README.md#cp-api-key)
|
529
|
+
|
530
|
+
### HTTP request headers
|
531
|
+
|
532
|
+
- **Content-Type**: application/json, text/xml
|
533
|
+
- **Accept**: application/json, text/xml
|
534
|
+
|
535
|
+
|
536
|
+
## token_purge_attachments_request
|
537
|
+
|
538
|
+
> <Acknowledgement> token_purge_attachments_request(token)
|
539
|
+
|
540
|
+
Purges any attachments for a Paylink Token
|
541
|
+
|
542
|
+
Purges any attachments for a token for GDPR or DP reasons.
|
543
|
+
|
544
|
+
### Examples
|
545
|
+
|
546
|
+
```ruby
|
547
|
+
require 'time'
|
548
|
+
require 'citypay_api_client'
|
549
|
+
# setup authorization
|
550
|
+
CityPayApiClient.configure do |config|
|
551
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
552
|
+
end
|
553
|
+
|
554
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
555
|
+
token = 'token_example' # String | The token returned by the create token process.
|
556
|
+
|
557
|
+
begin
|
558
|
+
# Purges any attachments for a Paylink Token
|
559
|
+
result = api_instance.token_purge_attachments_request(token)
|
560
|
+
p result
|
561
|
+
rescue CityPayApiClient::ApiError => e
|
562
|
+
puts "Error when calling PaylinkApi->token_purge_attachments_request: #{e}"
|
563
|
+
end
|
564
|
+
```
|
565
|
+
|
566
|
+
#### Using the token_purge_attachments_request_with_http_info variant
|
567
|
+
|
568
|
+
This returns an Array which contains the response data, status code and headers.
|
569
|
+
|
570
|
+
> <Array(<Acknowledgement>, Integer, Hash)> token_purge_attachments_request_with_http_info(token)
|
571
|
+
|
572
|
+
```ruby
|
573
|
+
begin
|
574
|
+
# Purges any attachments for a Paylink Token
|
575
|
+
data, status_code, headers = api_instance.token_purge_attachments_request_with_http_info(token)
|
576
|
+
p status_code # => 2xx
|
577
|
+
p headers # => { ... }
|
578
|
+
p data # => <Acknowledgement>
|
579
|
+
rescue CityPayApiClient::ApiError => e
|
580
|
+
puts "Error when calling PaylinkApi->token_purge_attachments_request_with_http_info: #{e}"
|
581
|
+
end
|
582
|
+
```
|
583
|
+
|
584
|
+
### Parameters
|
585
|
+
|
586
|
+
| Name | Type | Description | Notes |
|
587
|
+
| ---- | ---- | ----------- | ----- |
|
588
|
+
| **token** | **String** | The token returned by the create token process. | |
|
589
|
+
|
590
|
+
### Return type
|
591
|
+
|
592
|
+
[**Acknowledgement**](Acknowledgement.md)
|
593
|
+
|
594
|
+
### Authorization
|
595
|
+
|
596
|
+
[cp-api-key](../README.md#cp-api-key)
|
597
|
+
|
598
|
+
### HTTP request headers
|
599
|
+
|
600
|
+
- **Content-Type**: Not defined
|
601
|
+
- **Accept**: application/json, text/xml
|
602
|
+
|
603
|
+
|
604
|
+
## token_reconciled_request
|
605
|
+
|
606
|
+
> <Acknowledgement> token_reconciled_request(token)
|
607
|
+
|
608
|
+
Reconcile Paylink Token
|
609
|
+
|
610
|
+
Marks a Paylink Token as reconciled when reconciliation is performed on the merchant's side.
|
611
|
+
|
612
|
+
### Examples
|
613
|
+
|
614
|
+
```ruby
|
615
|
+
require 'time'
|
616
|
+
require 'citypay_api_client'
|
617
|
+
# setup authorization
|
618
|
+
CityPayApiClient.configure do |config|
|
619
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
620
|
+
end
|
621
|
+
|
622
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
623
|
+
token = 'token_example' # String | The token returned by the create token process.
|
624
|
+
|
625
|
+
begin
|
626
|
+
# Reconcile Paylink Token
|
627
|
+
result = api_instance.token_reconciled_request(token)
|
628
|
+
p result
|
629
|
+
rescue CityPayApiClient::ApiError => e
|
630
|
+
puts "Error when calling PaylinkApi->token_reconciled_request: #{e}"
|
631
|
+
end
|
632
|
+
```
|
633
|
+
|
634
|
+
#### Using the token_reconciled_request_with_http_info variant
|
635
|
+
|
636
|
+
This returns an Array which contains the response data, status code and headers.
|
637
|
+
|
638
|
+
> <Array(<Acknowledgement>, Integer, Hash)> token_reconciled_request_with_http_info(token)
|
639
|
+
|
640
|
+
```ruby
|
641
|
+
begin
|
642
|
+
# Reconcile Paylink Token
|
643
|
+
data, status_code, headers = api_instance.token_reconciled_request_with_http_info(token)
|
644
|
+
p status_code # => 2xx
|
645
|
+
p headers # => { ... }
|
646
|
+
p data # => <Acknowledgement>
|
647
|
+
rescue CityPayApiClient::ApiError => e
|
648
|
+
puts "Error when calling PaylinkApi->token_reconciled_request_with_http_info: #{e}"
|
649
|
+
end
|
650
|
+
```
|
651
|
+
|
652
|
+
### Parameters
|
653
|
+
|
654
|
+
| Name | Type | Description | Notes |
|
655
|
+
| ---- | ---- | ----------- | ----- |
|
656
|
+
| **token** | **String** | The token returned by the create token process. | |
|
657
|
+
|
658
|
+
### Return type
|
659
|
+
|
660
|
+
[**Acknowledgement**](Acknowledgement.md)
|
661
|
+
|
662
|
+
### Authorization
|
663
|
+
|
664
|
+
[cp-api-key](../README.md#cp-api-key)
|
665
|
+
|
666
|
+
### HTTP request headers
|
667
|
+
|
668
|
+
- **Content-Type**: Not defined
|
669
|
+
- **Accept**: application/json, text/xml
|
670
|
+
|
671
|
+
|
672
|
+
## token_reopen_request
|
673
|
+
|
674
|
+
> <Acknowledgement> token_reopen_request(token)
|
675
|
+
|
676
|
+
Reopen Paylink Token
|
677
|
+
|
678
|
+
Allows for a Paylink Token to be reopened if a Token has been previously closed and payment has not yet been made.
|
679
|
+
|
680
|
+
### Examples
|
681
|
+
|
682
|
+
```ruby
|
683
|
+
require 'time'
|
684
|
+
require 'citypay_api_client'
|
685
|
+
# setup authorization
|
686
|
+
CityPayApiClient.configure do |config|
|
687
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
688
|
+
end
|
689
|
+
|
690
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
691
|
+
token = 'token_example' # String | The token returned by the create token process.
|
692
|
+
|
693
|
+
begin
|
694
|
+
# Reopen Paylink Token
|
695
|
+
result = api_instance.token_reopen_request(token)
|
696
|
+
p result
|
697
|
+
rescue CityPayApiClient::ApiError => e
|
698
|
+
puts "Error when calling PaylinkApi->token_reopen_request: #{e}"
|
699
|
+
end
|
700
|
+
```
|
701
|
+
|
702
|
+
#### Using the token_reopen_request_with_http_info variant
|
703
|
+
|
704
|
+
This returns an Array which contains the response data, status code and headers.
|
705
|
+
|
706
|
+
> <Array(<Acknowledgement>, Integer, Hash)> token_reopen_request_with_http_info(token)
|
707
|
+
|
708
|
+
```ruby
|
709
|
+
begin
|
710
|
+
# Reopen Paylink Token
|
711
|
+
data, status_code, headers = api_instance.token_reopen_request_with_http_info(token)
|
712
|
+
p status_code # => 2xx
|
713
|
+
p headers # => { ... }
|
714
|
+
p data # => <Acknowledgement>
|
715
|
+
rescue CityPayApiClient::ApiError => e
|
716
|
+
puts "Error when calling PaylinkApi->token_reopen_request_with_http_info: #{e}"
|
717
|
+
end
|
718
|
+
```
|
719
|
+
|
720
|
+
### Parameters
|
721
|
+
|
722
|
+
| Name | Type | Description | Notes |
|
723
|
+
| ---- | ---- | ----------- | ----- |
|
724
|
+
| **token** | **String** | The token returned by the create token process. | |
|
725
|
+
|
726
|
+
### Return type
|
727
|
+
|
728
|
+
[**Acknowledgement**](Acknowledgement.md)
|
729
|
+
|
730
|
+
### Authorization
|
731
|
+
|
732
|
+
[cp-api-key](../README.md#cp-api-key)
|
733
|
+
|
734
|
+
### HTTP request headers
|
735
|
+
|
736
|
+
- **Content-Type**: Not defined
|
737
|
+
- **Accept**: application/json, text/xml
|
738
|
+
|
739
|
+
|
740
|
+
## token_status_request
|
741
|
+
|
742
|
+
> <PaylinkTokenStatus> token_status_request(token)
|
743
|
+
|
744
|
+
Paylink Token Status
|
745
|
+
|
746
|
+
Obtains the full status of a given Paylink Token.
|
747
|
+
|
748
|
+
### Examples
|
749
|
+
|
750
|
+
```ruby
|
751
|
+
require 'time'
|
752
|
+
require 'citypay_api_client'
|
753
|
+
# setup authorization
|
754
|
+
CityPayApiClient.configure do |config|
|
755
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
756
|
+
end
|
757
|
+
|
758
|
+
api_instance = CityPayApiClient::PaylinkApi.new
|
759
|
+
token = 'token_example' # String | The token returned by the create token process.
|
760
|
+
|
761
|
+
begin
|
762
|
+
# Paylink Token Status
|
763
|
+
result = api_instance.token_status_request(token)
|
764
|
+
p result
|
765
|
+
rescue CityPayApiClient::ApiError => e
|
766
|
+
puts "Error when calling PaylinkApi->token_status_request: #{e}"
|
767
|
+
end
|
768
|
+
```
|
769
|
+
|
770
|
+
#### Using the token_status_request_with_http_info variant
|
771
|
+
|
772
|
+
This returns an Array which contains the response data, status code and headers.
|
773
|
+
|
774
|
+
> <Array(<PaylinkTokenStatus>, Integer, Hash)> token_status_request_with_http_info(token)
|
775
|
+
|
776
|
+
```ruby
|
777
|
+
begin
|
778
|
+
# Paylink Token Status
|
779
|
+
data, status_code, headers = api_instance.token_status_request_with_http_info(token)
|
780
|
+
p status_code # => 2xx
|
781
|
+
p headers # => { ... }
|
782
|
+
p data # => <PaylinkTokenStatus>
|
783
|
+
rescue CityPayApiClient::ApiError => e
|
784
|
+
puts "Error when calling PaylinkApi->token_status_request_with_http_info: #{e}"
|
785
|
+
end
|
786
|
+
```
|
787
|
+
|
788
|
+
### Parameters
|
789
|
+
|
790
|
+
| Name | Type | Description | Notes |
|
791
|
+
| ---- | ---- | ----------- | ----- |
|
792
|
+
| **token** | **String** | The token returned by the create token process. | |
|
793
|
+
|
794
|
+
### Return type
|
795
|
+
|
796
|
+
[**PaylinkTokenStatus**](PaylinkTokenStatus.md)
|
797
|
+
|
798
|
+
### Authorization
|
799
|
+
|
800
|
+
[cp-api-key](../README.md#cp-api-key)
|
801
|
+
|
802
|
+
### HTTP request headers
|
803
|
+
|
804
|
+
- **Content-Type**: Not defined
|
805
|
+
- **Accept**: application/json, text/xml
|
806
|
+
|