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
@@ -0,0 +1,26 @@
|
|
1
|
+
# CityPayApiClient::PaylinkAttachmentRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **data** | **String** | base64 encoding of the file if less than 32kb in size. | [optional] |
|
8
|
+
| **filename** | **String** | The name of the attachment normally taken from the filename. You should not include the filename path as appropriate. | |
|
9
|
+
| **mime_type** | **String** | 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. | |
|
10
|
+
| **name** | **String** | A name for the file to identify it to the card holder when it is displayed in the payment form. For example Invoice, Statement. | [optional] |
|
11
|
+
| **retention** | **Integer** | The retention period in days of the attachment. Defaults to 180 days. | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'citypay_api_client'
|
17
|
+
|
18
|
+
instance = CityPayApiClient::PaylinkAttachmentRequest.new(
|
19
|
+
data: null,
|
20
|
+
filename: null,
|
21
|
+
mime_type: null,
|
22
|
+
name: null,
|
23
|
+
retention: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# CityPayApiClient::PaylinkAttachmentResult
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **name** | **String** | The name of the attachment. | |
|
8
|
+
| **result** | **String** | The result of an uploaded attachment such as `OK` or `UPLOAD`. | |
|
9
|
+
| **url** | **String** | If the attachment is to be uploaded, a URL that can be used for Multipart upload of the attachment. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'citypay_api_client'
|
15
|
+
|
16
|
+
instance = CityPayApiClient::PaylinkAttachmentResult.new(
|
17
|
+
name: null,
|
18
|
+
result: null,
|
19
|
+
url: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# CityPayApiClient::PaylinkBillPaymentTokenRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **addressee** | **String** | Who the bill payment request intended for. This should be a readable name such as a person or company. | [optional] |
|
8
|
+
| **attachments** | [**Array<PaylinkAttachmentRequest>**](PaylinkAttachmentRequest.md) | | [optional] |
|
9
|
+
| **descriptor** | **String** | A descriptor for the bill payment used to describe what the payment request is for for instance \"Invoice\". The descriptor can be used as descriptive text on emails or the payment page. For instance an invoice may have a button saying \"View Invoice\" or an email may say \"to pay your Invoice online\". | [optional] |
|
10
|
+
| **due** | **Date** | A date that the invoice is due. This can be displayed on the payment page. | [optional] |
|
11
|
+
| **email_notification_path** | [**PaylinkEmailNotificationPath**](PaylinkEmailNotificationPath.md) | | [optional] |
|
12
|
+
| **memo** | **String** | A memo that can be added to the payment page and email to provide to the customer. | [optional] |
|
13
|
+
| **request** | [**PaylinkTokenRequestModel**](PaylinkTokenRequestModel.md) | | |
|
14
|
+
| **sms_notification_path** | [**PaylinkSMSNotificationPath**](PaylinkSMSNotificationPath.md) | | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'citypay_api_client'
|
20
|
+
|
21
|
+
instance = CityPayApiClient::PaylinkBillPaymentTokenRequest.new(
|
22
|
+
addressee: null,
|
23
|
+
attachments: null,
|
24
|
+
descriptor: null,
|
25
|
+
due: null,
|
26
|
+
email_notification_path: null,
|
27
|
+
memo: null,
|
28
|
+
request: null,
|
29
|
+
sms_notification_path: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# CityPayApiClient::PaylinkCardHolder
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accept_headers** | **String** | The accept headers string generated by the Customer Browser. This field may be used to lock the payment process to the customer's browser. If the customer were to attempt to use a different browser an error will be generated. | [optional] |
|
8
|
+
| **address** | [**PaylinkAddress**](PaylinkAddress.md) | | [optional] |
|
9
|
+
| **company** | **String** | The company name for the card holder. | [optional] |
|
10
|
+
| **email** | **String** | The cardholder's email address. This field can be used to send a receipt to the payment cardholder. If this value is not supplied, no email will be sent. | [optional] |
|
11
|
+
| **firstname** | **String** | The first name of the card holder. | [optional] |
|
12
|
+
| **lastname** | **String** | The last name or surname of the card holder. | [optional] |
|
13
|
+
| **mobile_no** | **String** | The mobile number of the cardholder. This can be used for data collection via the Paylink Payment Form or to send an SMS on completion of a transaction. This feature is a licensable option and is not configured by default. | [optional] |
|
14
|
+
| **remote_addr** | **String** | Specifies the remote IP address of the customer's browser. This field may be used to lock the payment form to the customer's IP address. Should the address change or a malicious third party attempted to hijack the transaction, an error will be generated. | [optional] |
|
15
|
+
| **title** | **String** | A title for the card holder such as Mr, Mrs, Ms, M. Mme. etc. | [optional] |
|
16
|
+
| **user_agent** | **String** | Specifies the user agent string of the Customer Browser. This field may be used to lock the payment form to the browser. Should a different user agent attempt to process the transaction or a malicious third party attempted to hijack the transaction, an error is generated. | [optional] |
|
17
|
+
|
18
|
+
## Example
|
19
|
+
|
20
|
+
```ruby
|
21
|
+
require 'citypay_api_client'
|
22
|
+
|
23
|
+
instance = CityPayApiClient::PaylinkCardHolder.new(
|
24
|
+
accept_headers: null,
|
25
|
+
address: null,
|
26
|
+
company: Acme Ltd,
|
27
|
+
email: card.holder@citypay.com,
|
28
|
+
firstname: John,
|
29
|
+
lastname: Smith,
|
30
|
+
mobile_no: 447790123456,
|
31
|
+
remote_addr: null,
|
32
|
+
title: Mr,
|
33
|
+
user_agent: null
|
34
|
+
)
|
35
|
+
```
|
36
|
+
|
data/docs/PaylinkCart.md
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
# CityPayApiClient::PaylinkCart
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **contents** | [**Array<PaylinkCartItemModel>**](PaylinkCartItemModel.md) | | [optional] |
|
8
|
+
| **coupon** | **String** | A coupon redeemed with the transaction. | [optional] |
|
9
|
+
| **mode** | **Integer** | The mode field specifies the behaviour or functionality of the cart. Valid values are: 0 - No cart - No cart is shown 1 - Read-only - The cart is shown with a breakdown of the item details provided by objects in the contents array. 2 - Selection cart - The cart is shown as a drop-down box of available cart items that the customer can a single item select from. 3 - Dynamic cart - a text box is rendered to enable the operator to input an amount. 4 - Multi cart - The cart is displayed with items rendered with selectable quantities. | [optional] |
|
10
|
+
| **product_description** | **String** | Specifies a description about the product or service that is the subject of the transaction. It will be rendered in the header of the page with no labels. | [optional] |
|
11
|
+
| **product_information** | **String** | Specifies information about the product or service that is the subject of the transaction. It will be rendered in the header of the page. | [optional] |
|
12
|
+
| **shipping** | **Integer** | The shipping amount of the transaction in the lowest denomination of currency. | [optional] |
|
13
|
+
| **tax** | **Integer** | The tax amount of the transaction in the lowest denomination of currency. | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'citypay_api_client'
|
19
|
+
|
20
|
+
instance = CityPayApiClient::PaylinkCart.new(
|
21
|
+
contents: null,
|
22
|
+
coupon: null,
|
23
|
+
mode: null,
|
24
|
+
product_description: null,
|
25
|
+
product_information: null,
|
26
|
+
shipping: null,
|
27
|
+
tax: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# CityPayApiClient::PaylinkCartItemModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount** | **Integer** | The net amount of the item. The Paylink Payment Form does not multiply this figure by the value provided by the count value for the cart item, this is principally to avoid rounding errors to introduce discrepancies between the value of the goods charged for and the total amount represented by the collection of cart items. | [optional] |
|
8
|
+
| **brand** | **String** | The brand of the item such as Nike. | [optional] |
|
9
|
+
| **category** | **String** | The category of the item such as shoes. | [optional] |
|
10
|
+
| **count** | **Integer** | The count of how many of this item is being purchased, should the cart be editable, this value should be the default count required. The Paylink Payment Form assumes a count of 1 in the event that no value for the count field is provided for a cart item. | [optional] |
|
11
|
+
| **label** | **String** | The label which describes the item. | [optional] |
|
12
|
+
| **max** | **Integer** | For an editable cart, the maximum number of items that can be purchased, defaults to 5. | [optional] |
|
13
|
+
| **sku** | **String** | The stock control unit value. | [optional] |
|
14
|
+
| **variant** | **String** | The variant field refers to the variant of the cart item to enable similar items to be distinguished according to certain criteria. For example, similar items may be distinguished in terms of size, weight and power. The Paylink Payment Form does not constrain the value of the variant field to a particular set of metrics. | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'citypay_api_client'
|
20
|
+
|
21
|
+
instance = CityPayApiClient::PaylinkCartItemModel.new(
|
22
|
+
amount: null,
|
23
|
+
brand: null,
|
24
|
+
category: null,
|
25
|
+
count: null,
|
26
|
+
label: null,
|
27
|
+
max: null,
|
28
|
+
sku: null,
|
29
|
+
variant: null
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# CityPayApiClient::PaylinkConfig
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **acs_mode** | **String** | Specifies the approach to be adopted by the Paylink form when displaying a 3-D Secure challenge window. The values may be iframe: shows the 3-D Secure ACS in an iframe dialog, neatly embedding it in Paylink. This provides a more seamless flow for the cardholder who is able to validate and authenticate their card using a dialog provided by their card issuer. inline: an inline mode transfers the full browser window to the authentication server, allowing the payment cardholder to see their payment card issuer's URL and the certificate status in the browser. If you request an iframe mode and the browser width is deemed as being small (< 768px) then an inline mode will be enforced. This is to ensure that mobile users have an improved user experience. | [optional] |
|
8
|
+
| **custom_params** | [**Array<PaylinkCustomParam>**](PaylinkCustomParam.md) | | [optional] |
|
9
|
+
| **descriptor** | **String** | Directly specify the merchant descriptor used for the transaction to be displayed on the payment page. | [optional] |
|
10
|
+
| **expire_in** | **String** | Specifies a period of time in seconds after which the token cannot be used. A value of 0 defines that the token will never expire. The API will convert an expiry time based on a string value. For instance: s - Time in seconds, for example 90s. m - Time in minutes, for example 20m. h - Time in hours, for example 4h. w - Time in weeks, for example 4w. M - Time in months, for example 6M. y - Time in years, for example 1y. Defaults to 30 minutes. | [optional] |
|
11
|
+
| **field_guard** | [**Array<PaylinkFieldGuardModel>**](PaylinkFieldGuardModel.md) | | [optional] |
|
12
|
+
| **lock_params** | **Array<String>** | | [optional] |
|
13
|
+
| **merch_logo** | **String** | A URL of a logo to include in the form. The URL should be delivered using HTTPS. | [optional] |
|
14
|
+
| **merch_terms** | **String** | A URL of the merchant terms and conditions for payment. If a value is supplied, a checkbox will be required to be completed to confirm that the cardholder agrees to these conditions before payment. A modal dialogue is displayed with the content of the conditions displayed. | [optional] |
|
15
|
+
| **options** | **Array<String>** | | [optional] |
|
16
|
+
| **part_payments** | [**PaylinkPartPayments**](PaylinkPartPayments.md) | | [optional] |
|
17
|
+
| **pass_through_data** | **Hash<String, String>** | | [optional] |
|
18
|
+
| **pass_through_headers** | **Hash<String, String>** | | [optional] |
|
19
|
+
| **postback** | **String** | Specifies a URL to use for a call back when the payment is completed. see Postback Handling }. | [optional] |
|
20
|
+
| **postback_password** | **String** | A password to be added to the postback for HTTP Basic Authentication. | [optional] |
|
21
|
+
| **postback_policy** | **String** | The policy setting for the postback see Postback Handling. | [optional] |
|
22
|
+
| **postback_username** | **String** | A username to be added to the postback for HTTP Basic Authentication. | [optional] |
|
23
|
+
| **redirect_delay** | **Integer** | A value which can delay the redirection in seconds. A value of 0 will redirect immediately. | [optional] |
|
24
|
+
| **redirect_failure** | **String** | A URL which the browser is redirected to on non-completion of a transaction. | [optional] |
|
25
|
+
| **redirect_success** | **String** | A URL which the browser is redirected to on authorisation of a transaction. | [optional] |
|
26
|
+
| **renderer** | **String** | The Paylink renderer engine to use. | [optional] |
|
27
|
+
| **return_params** | **Boolean** | If a value of true is specified, any redirection will include the transaction result in parameters. It is recommended to use the postback integration rather than redirection parameters. | [optional] |
|
28
|
+
| **ui** | [**PaylinkUI**](PaylinkUI.md) | | [optional] |
|
29
|
+
|
30
|
+
## Example
|
31
|
+
|
32
|
+
```ruby
|
33
|
+
require 'citypay_api_client'
|
34
|
+
|
35
|
+
instance = CityPayApiClient::PaylinkConfig.new(
|
36
|
+
acs_mode: null,
|
37
|
+
custom_params: null,
|
38
|
+
descriptor: null,
|
39
|
+
expire_in: null,
|
40
|
+
field_guard: null,
|
41
|
+
lock_params: null,
|
42
|
+
merch_logo: null,
|
43
|
+
merch_terms: null,
|
44
|
+
options: null,
|
45
|
+
part_payments: null,
|
46
|
+
pass_through_data: null,
|
47
|
+
pass_through_headers: null,
|
48
|
+
postback: null,
|
49
|
+
postback_password: null,
|
50
|
+
postback_policy: null,
|
51
|
+
postback_username: null,
|
52
|
+
redirect_delay: null,
|
53
|
+
redirect_failure: null,
|
54
|
+
redirect_success: null,
|
55
|
+
renderer: null,
|
56
|
+
return_params: null,
|
57
|
+
ui: null
|
58
|
+
)
|
59
|
+
```
|
60
|
+
|
@@ -0,0 +1,38 @@
|
|
1
|
+
# CityPayApiClient::PaylinkCustomParam
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **entry_mode** | **String** | The type of entry mode. A value of 'pre' will pre-render the custom parameter before the payment screen. Any other value will result in the custom parameter being displayed on the payment screen. | [optional] |
|
8
|
+
| **field_type** | **String** | the type of html5 field, defaults to 'text'. Other options are 'dob' for a date of birth series of select list entry. | [optional] |
|
9
|
+
| **group** | **String** | a group the parameter is linked with, allows for grouping with a title. | [optional] |
|
10
|
+
| **label** | **String** | a label to show alongside the input. | [optional] |
|
11
|
+
| **locked** | **Boolean** | whether the parameter is locked from entry. | [optional] |
|
12
|
+
| **name** | **String** | the name of the custom parameter used to converse with the submitter. | |
|
13
|
+
| **order** | **Integer** | an index order for the parameter. | [optional] |
|
14
|
+
| **pattern** | **String** | a regex pattern to validate the custom parameter with. | [optional] |
|
15
|
+
| **placeholder** | **String** | a placehold value to display in the input. | [optional] |
|
16
|
+
| **required** | **Boolean** | whether the field is required. | [optional] |
|
17
|
+
| **value** | **String** | a default value for the field. | [optional] |
|
18
|
+
|
19
|
+
## Example
|
20
|
+
|
21
|
+
```ruby
|
22
|
+
require 'citypay_api_client'
|
23
|
+
|
24
|
+
instance = CityPayApiClient::PaylinkCustomParam.new(
|
25
|
+
entry_mode: null,
|
26
|
+
field_type: null,
|
27
|
+
group: null,
|
28
|
+
label: null,
|
29
|
+
locked: null,
|
30
|
+
name: null,
|
31
|
+
order: null,
|
32
|
+
pattern: null,
|
33
|
+
placeholder: null,
|
34
|
+
required: null,
|
35
|
+
value: null
|
36
|
+
)
|
37
|
+
```
|
38
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# CityPayApiClient::PaylinkEmailNotificationPath
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bcc** | **Array<String>** | | [optional] |
|
8
|
+
| **cc** | **Array<String>** | | [optional] |
|
9
|
+
| **reply_to** | **Array<String>** | | [optional] |
|
10
|
+
| **template** | **String** | An optional template name to use a template other than the default. | [optional] |
|
11
|
+
| **to** | **Array<String>** | | |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'citypay_api_client'
|
17
|
+
|
18
|
+
instance = CityPayApiClient::PaylinkEmailNotificationPath.new(
|
19
|
+
bcc: null,
|
20
|
+
cc: null,
|
21
|
+
reply_to: null,
|
22
|
+
template: null,
|
23
|
+
to: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# CityPayApiClient::PaylinkErrorCode
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **code** | **String** | An error code identifying the error. | |
|
8
|
+
| **msg** | **String** | An error message describing the error. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'citypay_api_client'
|
14
|
+
|
15
|
+
instance = CityPayApiClient::PaylinkErrorCode.new(
|
16
|
+
code: null,
|
17
|
+
msg: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# CityPayApiClient::PaylinkFieldGuardModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **field_type** | **String** | A type of HTML element that should be displayed such as text, password, url. Any HTML5 input type value may be supplied. If a value of `date` is supplied the value format should be an ISO format YYYY-MM-DD format date i.e. 2024-03-01 If a value of `datetime-local` is supplied, the value format should be an ISO format YYYY-MM-DDTHH:mm i.e. 2024-06-01T19:30. | [optional] |
|
8
|
+
| **label** | **String** | A label for the field guard to display on the authentication page. | [optional] |
|
9
|
+
| **maxlen** | **Integer** | A maximum length of any value supplied in the field guard form. Used for validating entry. | [optional] |
|
10
|
+
| **minlen** | **Integer** | A minimum length of any value supplied in the field guard form. Used for validating entry. | [optional] |
|
11
|
+
| **name** | **String** | A field name which is used to refer to a field which is guarded. | [optional] |
|
12
|
+
| **regex** | **String** | A JavaScript regular expression value which can be used to validate the data provided in the field guard entry form. Used for validating entry. | [optional] |
|
13
|
+
| **value** | **String** | A value directly associated with the field guard. Any value provided at this level will be considered as sensitive and not logged. | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'citypay_api_client'
|
19
|
+
|
20
|
+
instance = CityPayApiClient::PaylinkFieldGuardModel.new(
|
21
|
+
field_type: null,
|
22
|
+
label: null,
|
23
|
+
maxlen: null,
|
24
|
+
minlen: null,
|
25
|
+
name: null,
|
26
|
+
regex: null,
|
27
|
+
value: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# CityPayApiClient::PaylinkPartPayments
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **enabled** | **String** | Determines if part payments is enabled. Default is false. | [optional] |
|
8
|
+
| **floor** | **String** | The floor amount specifies a value that the minimum rate cannot go under. If 0 the amount of min rate is applied. | [optional] |
|
9
|
+
| **max** | **String** | a maximum percentage to charge i.e. 90%. | [optional] |
|
10
|
+
| **max_rate** | **String** | a rate as fixed or percentage. | [optional] |
|
11
|
+
| **min** | **String** | a minimum percentage to charge i.e. 10. | [optional] |
|
12
|
+
| **min_rate** | **String** | a rate as fixed or percentage. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'citypay_api_client'
|
18
|
+
|
19
|
+
instance = CityPayApiClient::PaylinkPartPayments.new(
|
20
|
+
enabled: null,
|
21
|
+
floor: null,
|
22
|
+
max: null,
|
23
|
+
max_rate: null,
|
24
|
+
min: null,
|
25
|
+
min_rate: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# CityPayApiClient::PaylinkSMSNotificationPath
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **template** | **String** | An optional template name to use a template other than the default. | [optional] |
|
8
|
+
| **to** | **String** | The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format to send the message to. | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'citypay_api_client'
|
14
|
+
|
15
|
+
instance = CityPayApiClient::PaylinkSMSNotificationPath.new(
|
16
|
+
template: null,
|
17
|
+
to: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,22 @@
|
|
1
|
+
# CityPayApiClient::PaylinkStateEvent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **datetime** | **Time** | the date and time of the event. | [optional] |
|
8
|
+
| **message** | **String** | a message associated with the event. | [optional] |
|
9
|
+
| **state** | **Time** | The name of the event that was actioned. | [optional] |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'citypay_api_client'
|
15
|
+
|
16
|
+
instance = CityPayApiClient::PaylinkStateEvent.new(
|
17
|
+
datetime: null,
|
18
|
+
message: null,
|
19
|
+
state: null
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# CityPayApiClient::PaylinkTokenCreated
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **attachments** | [**PaylinkAttachmentResult**](PaylinkAttachmentResult.md) | | [optional] |
|
8
|
+
| **bps** | **String** | true if BPS has been enabled on this token. | [optional] |
|
9
|
+
| **date_created** | **Time** | Date and time the token was generated. | [optional] |
|
10
|
+
| **errors** | [**Array<PaylinkErrorCode>**](PaylinkErrorCode.md) | | [optional] |
|
11
|
+
| **id** | **String** | A unique id of the request. | |
|
12
|
+
| **identifier** | **String** | The identifier as presented in the TokenRequest. | [optional] |
|
13
|
+
| **mode** | **String** | Determines whether the token is `live` or `test`. | [optional] |
|
14
|
+
| **qr_code** | **String** | A URL of a qrcode which can be used to refer to the token URL. | [optional] |
|
15
|
+
| **result** | **Integer** | The result field contains the result for the Paylink Token Request. 0 - indicates that an error was encountered while creating the token. 1 - which indicates that a Token was successfully created. | |
|
16
|
+
| **server_version** | **String** | the version of the server performing the call. | [optional] |
|
17
|
+
| **source** | **String** | The incoming IP address of the call. | [optional] |
|
18
|
+
| **token** | **String** | A token generated for the request used to refer to the transaction in consequential calls. | |
|
19
|
+
| **url** | **String** | The Paylink token URL used to checkout by the card holder. | [optional] |
|
20
|
+
| **usc** | **String** | A UrlShortCode (USC) used for short links. | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'citypay_api_client'
|
26
|
+
|
27
|
+
instance = CityPayApiClient::PaylinkTokenCreated.new(
|
28
|
+
attachments: null,
|
29
|
+
bps: null,
|
30
|
+
date_created: null,
|
31
|
+
errors: null,
|
32
|
+
id: null,
|
33
|
+
identifier: null,
|
34
|
+
mode: null,
|
35
|
+
qr_code: null,
|
36
|
+
result: null,
|
37
|
+
server_version: null,
|
38
|
+
source: null,
|
39
|
+
token: null,
|
40
|
+
url: null,
|
41
|
+
usc: null
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# CityPayApiClient::PaylinkTokenRequestModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **accountno** | **String** | Specifies an alpha-numeric account number that the Paylink service uses when creating a Cardholder Account. The value should be no longer than 20 characters in length. | [optional] |
|
8
|
+
| **amount** | **Integer** | Specifies the intended value of the transaction in the lowest denomination with no spacing characters or decimal point. This is the net total to be processed. An example of £74.95 would be presented as 7495. | |
|
9
|
+
| **cardholder** | [**PaylinkCardHolder**](PaylinkCardHolder.md) | | [optional] |
|
10
|
+
| **cart** | [**PaylinkCart**](PaylinkCart.md) | | [optional] |
|
11
|
+
| **client_version** | **String** | The clientVersion field is used to specify the version of your application that has invoked the Paylink payment process. This feature is typically used for tracing issues relating to application deployments, or any Paylink integration module or plugin. | [optional] |
|
12
|
+
| **config** | [**PaylinkConfig**](PaylinkConfig.md) | | [optional] |
|
13
|
+
| **currency** | **String** | A currency for the token. This value should be only used on multi-currency accounts and be an appropriate currency which the account is configured for. | [optional] |
|
14
|
+
| **email** | **String** | The email field is used for the Merchant to be notified on completion of the transaction . The value may be supplied to override the default stored value. Emails sent to this address by the Paylink service should not be forwarded on to the cardholder as it may contain certain information that is used by the Paylink service to validate and authenticate Paylink Token Requests: for example, the Merchant ID and the licence key. | [optional] |
|
15
|
+
| **identifier** | **String** | Identifies a particular transaction linked to a Merchant account. It enables accurate duplicate checking within a pre-configured time period, as well as transaction reporting and tracing. The identifier should be unique to prevent payment card processing attempts from being rejected due to duplication. | |
|
16
|
+
| **merchantid** | **Integer** | The merchant id you wish to process this transaction with. | |
|
17
|
+
| **recurring** | **Boolean** | True if the intent of this cardholder initiated transaction is to establish a recurring payment model, processable as merchant initiated transactions. | [optional] |
|
18
|
+
| **subscription_id** | **String** | an id associated with a subscription to link the token request against. | [optional] |
|
19
|
+
| **tx_type** | **String** | A value to override the transaction type if requested by your account manager. | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'citypay_api_client'
|
25
|
+
|
26
|
+
instance = CityPayApiClient::PaylinkTokenRequestModel.new(
|
27
|
+
accountno: null,
|
28
|
+
amount: null,
|
29
|
+
cardholder: null,
|
30
|
+
cart: null,
|
31
|
+
client_version: null,
|
32
|
+
config: null,
|
33
|
+
currency: GBP,
|
34
|
+
email: card.holder@citypay.com,
|
35
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
36
|
+
merchantid: 11223344,
|
37
|
+
recurring: null,
|
38
|
+
subscription_id: null,
|
39
|
+
tx_type: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,72 @@
|
|
1
|
+
# CityPayApiClient::PaylinkTokenStatus
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount_paid** | **Integer** | the amount that has been paid against the session. | [optional] |
|
8
|
+
| **auth_code** | **String** | an authorisation code if the transaction was processed and isPaid is true. | [optional] |
|
9
|
+
| **card** | **String** | a description of the card that was used for payment if paid. | [optional] |
|
10
|
+
| **created** | **Time** | the date and time that the session was created. | [optional] |
|
11
|
+
| **datetime** | **Time** | the date and time of the current status. | [optional] |
|
12
|
+
| **identifier** | **String** | the merchant identifier, to help identifying the token. | [optional] |
|
13
|
+
| **is_attachment** | **Boolean** | true if an attachment exists. | [optional] |
|
14
|
+
| **is_cancelled** | **Boolean** | true if the session was cancelled either by the user or by a system request. | [optional] |
|
15
|
+
| **is_closed** | **Boolean** | true if the token has been closed. | [optional] |
|
16
|
+
| **is_customer_receipt_email_sent** | **Boolean** | true if a customer receipt has been sent. | [optional] |
|
17
|
+
| **is_email_sent** | **Boolean** | true if an email was sent. | [optional] |
|
18
|
+
| **is_expired** | **Boolean** | true if the session has expired. | [optional] |
|
19
|
+
| **is_form_viewed** | **Boolean** | true if the form was ever displayed to the addressee. | [optional] |
|
20
|
+
| **is_merchant_notification_email_sent** | **Boolean** | true if a merchant notification receipt was sent. | [optional] |
|
21
|
+
| **is_open_for_payment** | **Boolean** | true if the session is still open for payment or false if it has been closed. | [optional] |
|
22
|
+
| **is_paid** | **Boolean** | whether the session has been paid and therefore can be considered as complete. | [optional] |
|
23
|
+
| **is_payment_attempted** | **Boolean** | true if payment has been attempted. | [optional] |
|
24
|
+
| **is_postback_ok** | **Boolean** | true if a post back was executed successfully. | [optional] |
|
25
|
+
| **is_request_challenged** | **Boolean** | true if the request has been challenged using 3-D Secure. | [optional] |
|
26
|
+
| **is_sms_sent** | **Boolean** | true if an SMS was sent. | [optional] |
|
27
|
+
| **is_validated** | **Boolean** | whether the token generation was successfully validated. | [optional] |
|
28
|
+
| **last_event_date_time** | **Time** | the date and time that the session last had an event actioned against it. | [optional] |
|
29
|
+
| **last_payment_result** | **String** | the result of the last payment if one exists. | [optional] |
|
30
|
+
| **mid** | **String** | identifies the merchant account. | [optional] |
|
31
|
+
| **payment_attempts_count** | **Integer** | the number of attempts made to pay. | [optional] |
|
32
|
+
| **state_history** | [**Array<PaylinkStateEvent>**](PaylinkStateEvent.md) | | [optional] |
|
33
|
+
| **token** | **String** | the token value which uniquely identifies the session. | [optional] |
|
34
|
+
| **trans_no** | **Integer** | a transaction number if the transacstion was processed and isPaid is true. | [optional] |
|
35
|
+
|
36
|
+
## Example
|
37
|
+
|
38
|
+
```ruby
|
39
|
+
require 'citypay_api_client'
|
40
|
+
|
41
|
+
instance = CityPayApiClient::PaylinkTokenStatus.new(
|
42
|
+
amount_paid: null,
|
43
|
+
auth_code: null,
|
44
|
+
card: null,
|
45
|
+
created: null,
|
46
|
+
datetime: null,
|
47
|
+
identifier: null,
|
48
|
+
is_attachment: null,
|
49
|
+
is_cancelled: null,
|
50
|
+
is_closed: null,
|
51
|
+
is_customer_receipt_email_sent: null,
|
52
|
+
is_email_sent: null,
|
53
|
+
is_expired: null,
|
54
|
+
is_form_viewed: null,
|
55
|
+
is_merchant_notification_email_sent: null,
|
56
|
+
is_open_for_payment: null,
|
57
|
+
is_paid: null,
|
58
|
+
is_payment_attempted: null,
|
59
|
+
is_postback_ok: null,
|
60
|
+
is_request_challenged: null,
|
61
|
+
is_sms_sent: null,
|
62
|
+
is_validated: null,
|
63
|
+
last_event_date_time: null,
|
64
|
+
last_payment_result: null,
|
65
|
+
mid: null,
|
66
|
+
payment_attempts_count: null,
|
67
|
+
state_history: null,
|
68
|
+
token: null,
|
69
|
+
trans_no: null
|
70
|
+
)
|
71
|
+
```
|
72
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
# CityPayApiClient::PaylinkTokenStatusChangeRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **after** | **Time** | identifies the date and time to lookup changes after. | |
|
8
|
+
| **max_results** | **Integer** | the maximum number of results between 5 and 250 to return. Default is 50. | [optional] |
|
9
|
+
| **merchantid** | **Integer** | the merchant id to review tokens for. | |
|
10
|
+
| **next_token** | **String** | the next token value when more results are available. | [optional] |
|
11
|
+
| **order_by** | **Array<String>** | | [optional] |
|
12
|
+
|
13
|
+
## Example
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'citypay_api_client'
|
17
|
+
|
18
|
+
instance = CityPayApiClient::PaylinkTokenStatusChangeRequest.new(
|
19
|
+
after: null,
|
20
|
+
max_results: null,
|
21
|
+
merchantid: 11223344,
|
22
|
+
next_token: null,
|
23
|
+
order_by: null
|
24
|
+
)
|
25
|
+
```
|
26
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# CityPayApiClient::PaylinkTokenStatusChangeResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **next_token** | **String** | If nextToken is returned, there are more results available. The value of nextToken is a unique pagination token for each page. Make the call again using the returned token to retrieve the next page. Keep all other arguments unchanged. | [optional] |
|
8
|
+
| **tokens** | [**Array<PaylinkTokenStatus>**](PaylinkTokenStatus.md) | | |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'citypay_api_client'
|
14
|
+
|
15
|
+
instance = CityPayApiClient::PaylinkTokenStatusChangeResponse.new(
|
16
|
+
next_token: null,
|
17
|
+
tokens: null
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|