citypay_api_client 1.1.1 → 1.1.3
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/Gemfile.lock +73 -0
- data/README.md +65 -37
- data/citypay_api_client.gemspec +4 -3
- data/docs/Acknowledgement.md +2 -2
- data/docs/AclCheckResponseModel.md +3 -3
- data/docs/AirlineAdvice.md +1 -1
- data/docs/AuthRequest.md +9 -7
- data/docs/AuthResponse.md +9 -5
- data/docs/AuthorisationAndPaymentApi.md +145 -10
- data/docs/Batch.md +1 -1
- data/docs/BatchProcessingApi.md +24 -20
- data/docs/BatchReportResponseModel.md +2 -2
- data/docs/BatchTransaction.md +1 -1
- data/docs/BatchTransactionReportRequest.md +22 -0
- data/docs/BatchTransactionReportResponse.md +24 -0
- data/docs/BatchTransactionResultModel.md +6 -2
- data/docs/Bin.md +2 -2
- data/docs/CaptureRequest.md +1 -1
- data/docs/Card.md +3 -3
- data/docs/CardHolderAccountApi.md +73 -14
- data/docs/ChargeRequest.md +8 -6
- data/docs/ContactDetails.md +11 -11
- data/docs/Decision.md +0 -2
- data/docs/DirectPostApi.md +26 -16
- data/docs/DirectPostRequest.md +9 -7
- data/docs/EventDataModel.md +2 -2
- data/docs/MerchantBatchReportRequest.md +28 -0
- data/docs/MerchantBatchReportResponse.md +24 -0
- data/docs/MerchantBatchResponse.md +30 -0
- data/docs/NetSummaryResponse.md +32 -0
- data/docs/OperationalFunctionsApi.md +28 -8
- data/docs/PaylinkAdjustmentRequest.md +1 -1
- data/docs/PaylinkApi.md +337 -21
- data/docs/PaylinkBillPaymentTokenRequest.md +1 -1
- data/docs/PaylinkCustomParam.md +3 -1
- data/docs/PaylinkErrorCode.md +2 -2
- data/docs/PaylinkFieldGuardModel.md +1 -1
- data/docs/PaylinkResendNotificationRequest.md +20 -0
- data/docs/PaylinkStateEvent.md +4 -4
- data/docs/PaylinkTokenCreated.md +11 -11
- data/docs/PaylinkTokenRequestModel.md +4 -0
- data/docs/PaylinkTokenStatus.md +7 -7
- data/docs/PaylinkTokenStatusChangeRequest.md +7 -7
- data/docs/PaylinkTokenStatusChangeResponse.md +6 -2
- data/docs/PaymentIntent.md +42 -0
- data/docs/PaymentIntentReference.md +18 -0
- data/docs/RefundRequest.md +1 -1
- data/docs/RegisterCard.md +1 -1
- data/docs/RemittanceData.md +28 -0
- data/docs/RemittanceReportRequest.md +28 -0
- data/docs/RemittanceReportResponse.md +24 -0
- data/docs/RemittedClientData.md +44 -0
- data/docs/ReportingApi.md +378 -0
- data/docs/ThreeDSecure.md +1 -1
- data/docs/TokenisationResponseModel.md +3 -3
- 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/citypay_api_client/api/authorisation_and_payment_api__.rb +72 -4
- data/lib/citypay_api_client/api/batch_processing_api__.rb +15 -15
- data/lib/citypay_api_client/api/card_holder_account_api__.rb +5 -2
- data/lib/citypay_api_client/api/direct_post_api__.rb +9 -9
- data/lib/citypay_api_client/api/operational_functions_api__.rb +3 -3
- data/lib/citypay_api_client/api/paylink_api__.rb +163 -26
- data/lib/citypay_api_client/api/reporting_api__.rb +381 -0
- data/lib/citypay_api_client/api_client.rb +24 -22
- data/lib/citypay_api_client/api_error.rb +3 -2
- data/lib/citypay_api_client/configuration.rb +28 -9
- data/lib/citypay_api_client/models/account_create.rb +17 -20
- data/lib/citypay_api_client/models/account_status.rb +15 -20
- data/lib/citypay_api_client/models/acknowledgement.rb +21 -46
- data/lib/citypay_api_client/models/acl_check_request.rb +17 -20
- data/lib/citypay_api_client/models/acl_check_response_model.rb +16 -21
- data/lib/citypay_api_client/models/airline_advice.rb +45 -29
- data/lib/citypay_api_client/models/airline_segment.rb +35 -22
- data/lib/citypay_api_client/models/auth_reference.rb +41 -26
- data/lib/citypay_api_client/models/auth_references.rb +15 -20
- data/lib/citypay_api_client/models/auth_request.rb +72 -34
- data/lib/citypay_api_client/models/auth_response.rb +46 -23
- data/lib/citypay_api_client/models/authen_required.rb +15 -20
- data/lib/citypay_api_client/models/batch.rb +25 -22
- data/lib/citypay_api_client/models/batch_report_request.rb +23 -22
- data/lib/citypay_api_client/models/batch_report_response_model.rb +28 -21
- data/lib/citypay_api_client/models/batch_transaction.rb +25 -22
- data/lib/citypay_api_client/models/batch_transaction_report_request.rb +234 -0
- data/lib/citypay_api_client/models/batch_transaction_report_response.rb +252 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +53 -22
- data/lib/citypay_api_client/models/bin.rb +15 -20
- data/lib/citypay_api_client/models/bin_lookup.rb +17 -20
- data/lib/citypay_api_client/models/c_res_auth_request.rb +15 -20
- data/lib/citypay_api_client/models/capture_request.rb +27 -22
- data/lib/citypay_api_client/models/card.rb +33 -26
- data/lib/citypay_api_client/models/card_holder_account.rb +19 -20
- data/lib/citypay_api_client/models/card_status.rb +15 -20
- data/lib/citypay_api_client/models/charge_request.rb +72 -34
- data/lib/citypay_api_client/models/check_batch_status.rb +23 -22
- data/lib/citypay_api_client/models/check_batch_status_response.rb +15 -20
- data/lib/citypay_api_client/models/contact_details.rb +77 -42
- data/lib/citypay_api_client/models/decision.rb +16 -30
- data/lib/citypay_api_client/models/direct_post_request.rb +72 -34
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +15 -20
- data/lib/citypay_api_client/models/domain_key_check_request.rb +17 -20
- data/lib/citypay_api_client/models/domain_key_request.rb +19 -20
- data/lib/citypay_api_client/models/domain_key_response.rb +25 -22
- data/lib/citypay_api_client/models/error.rb +27 -24
- data/lib/citypay_api_client/models/event_data_model.rb +15 -20
- data/lib/citypay_api_client/models/exists.rb +17 -20
- data/lib/citypay_api_client/models/external_mpi.rb +39 -24
- data/lib/citypay_api_client/models/list_merchants_response.rb +21 -22
- data/lib/citypay_api_client/models/mcc6012.rb +15 -20
- data/lib/citypay_api_client/models/merchant.rb +15 -20
- data/lib/citypay_api_client/models/merchant_batch_report_request.rb +265 -0
- data/lib/citypay_api_client/models/merchant_batch_report_response.rb +252 -0
- data/lib/citypay_api_client/models/merchant_batch_response.rb +301 -0
- data/lib/citypay_api_client/models/net_summary_response.rb +472 -0
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +19 -20
- data/lib/citypay_api_client/models/paylink_address.rb +52 -29
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +25 -22
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +19 -20
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +19 -20
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +17 -20
- data/lib/citypay_api_client/models/paylink_card_holder.rb +30 -23
- data/lib/citypay_api_client/models/paylink_cart.rb +15 -20
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +15 -20
- data/lib/citypay_api_client/models/paylink_config.rb +15 -20
- data/lib/citypay_api_client/models/paylink_custom_param.rb +29 -22
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +17 -20
- data/lib/citypay_api_client/models/paylink_error_code.rb +19 -20
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +16 -21
- data/lib/citypay_api_client/models/paylink_part_payments.rb +15 -20
- data/lib/citypay_api_client/models/paylink_resend_notification_request.rb +224 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +17 -20
- data/lib/citypay_api_client/models/paylink_state_event.rb +16 -21
- data/lib/citypay_api_client/models/paylink_token_created.rb +56 -27
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +75 -22
- data/lib/citypay_api_client/models/paylink_token_status.rb +44 -21
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +24 -26
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +39 -22
- data/lib/citypay_api_client/models/paylink_ui.rb +15 -20
- data/lib/citypay_api_client/models/payment_intent.rb +479 -0
- data/lib/citypay_api_client/models/payment_intent_reference.rb +221 -0
- data/lib/citypay_api_client/models/ping.rb +21 -22
- data/lib/citypay_api_client/models/process_batch_request.rb +27 -22
- data/lib/citypay_api_client/models/process_batch_response.rb +17 -20
- data/lib/citypay_api_client/models/refund_request.rb +28 -21
- data/lib/citypay_api_client/models/register_card.rb +27 -22
- data/lib/citypay_api_client/models/remittance_data.rb +404 -0
- data/lib/citypay_api_client/models/remittance_report_request.rb +265 -0
- data/lib/citypay_api_client/models/remittance_report_response.rb +252 -0
- data/lib/citypay_api_client/models/remitted_client_data.rb +612 -0
- data/lib/citypay_api_client/models/request_challenged.rb +15 -20
- data/lib/citypay_api_client/models/retrieve_request.rb +23 -22
- data/lib/citypay_api_client/models/three_d_secure.rb +16 -21
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +23 -24
- data/lib/citypay_api_client/models/void_request.rb +23 -22
- data/lib/citypay_api_client/version.rb +3 -3
- data/lib/citypay_api_client.rb +16 -3
- data/spec/api/reporting_api___spec.rb +99 -0
- data/spec/it_api_sandbox_spec.rb +5 -14
- data/spec/models/account_create_spec.rb +1 -2
- data/spec/models/account_status_spec.rb +2 -2
- data/spec/models/airline_advice_spec.rb +0 -2
- data/spec/models/airline_segment_spec.rb +0 -2
- data/spec/models/auth_request_spec.rb +0 -2
- data/spec/models/auth_response_spec.rb +75 -30
- data/spec/models/batch_report_request_spec.rb +0 -2
- data/spec/models/batch_report_response_model_spec.rb +0 -2
- data/spec/models/batch_spec.rb +0 -2
- data/spec/models/batch_transaction_report_request_spec.rb +47 -0
- data/spec/models/batch_transaction_report_response_spec.rb +53 -0
- data/spec/models/batch_transaction_result_model_spec.rb +0 -2
- data/spec/models/batch_transaction_spec.rb +0 -2
- data/spec/models/bin_lookup_spec.rb +0 -2
- data/spec/models/capture_request_spec.rb +0 -2
- data/spec/models/card_holder_account_spec.rb +0 -2
- data/spec/models/charge_request_spec.rb +0 -2
- data/spec/models/decision_spec.rb +0 -26
- data/spec/models/direct_post_request_spec.rb +0 -2
- data/spec/models/domain_key_check_request_spec.rb +0 -2
- data/spec/models/merchant_batch_report_request_spec.rb +65 -0
- data/spec/models/merchant_batch_report_response_spec.rb +53 -0
- data/spec/models/merchant_batch_response_spec.rb +71 -0
- data/spec/models/net_summary_response_spec.rb +77 -0
- data/spec/models/paylink_resend_notification_request_spec.rb +41 -0
- data/spec/models/paylink_token_request_model_spec.rb +0 -2
- data/spec/models/payment_intent_reference_spec.rb +35 -0
- data/spec/models/payment_intent_spec.rb +107 -0
- data/spec/models/process_batch_request_spec.rb +0 -2
- data/spec/models/refund_request_spec.rb +0 -2
- data/spec/models/register_card_spec.rb +0 -2
- data/spec/models/remittance_data_spec.rb +65 -0
- data/spec/models/remittance_report_request_spec.rb +65 -0
- data/spec/models/remittance_report_response_spec.rb +53 -0
- data/spec/models/remitted_client_data_spec.rb +113 -0
- data/spec/spec_helper.rb +2 -2
- metadata +146 -78
- data/docs/OperationalApi.md +0 -214
- data/docs/PaymentProcessingApi.md +0 -559
- data/spec/models/authen_required_spec.rb +0 -52
data/docs/PaylinkTokenCreated.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
| **id** | **String** | A unique id of the request. | |
|
12
12
|
| **identifier** | **String** | The identifier as presented in the TokenRequest. | [optional] |
|
13
13
|
| **mode** | **String** | Determines whether the token is `live` or `test`. | [optional] |
|
14
|
-
| **
|
14
|
+
| **qrcode** | **String** | A URL of a qrcode which can be used to refer to the token URL. | [optional] |
|
15
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
16
|
| **server_version** | **String** | the version of the server performing the call. | [optional] |
|
17
17
|
| **source** | **String** | The incoming IP address of the call. | [optional] |
|
@@ -27,17 +27,17 @@ require 'citypay_api_client'
|
|
27
27
|
instance = CityPayApiClient::PaylinkTokenCreated.new(
|
28
28
|
attachments: null,
|
29
29
|
bps: null,
|
30
|
-
date_created:
|
30
|
+
date_created: 2024-04-22T13:29:14Z,
|
31
31
|
errors: null,
|
32
|
-
id:
|
33
|
-
identifier:
|
34
|
-
mode:
|
35
|
-
|
36
|
-
result:
|
37
|
-
server_version:
|
38
|
-
source:
|
39
|
-
token:
|
40
|
-
url:
|
32
|
+
id: 00000000-0000-0000-0000-000000000000,
|
33
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
34
|
+
mode: test,
|
35
|
+
qrcode: https://payments.citypay.com/AAAAAAA/AAAZZZCCCDDDEEE/qrcode,
|
36
|
+
result: 0,
|
37
|
+
server_version: x.x.x,
|
38
|
+
source: x.x.x.x,
|
39
|
+
token: AAAZZZCCCDDDEEE,
|
40
|
+
url: https://payments.citypay.com/AAAAAAA/AAAZZZCCCDDDEEE,
|
41
41
|
usc: null
|
42
42
|
)
|
43
43
|
```
|
@@ -10,9 +10,11 @@
|
|
10
10
|
| **cart** | [**PaylinkCart**](PaylinkCart.md) | | [optional] |
|
11
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
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] |
|
13
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] |
|
14
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. | |
|
15
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] |
|
16
18
|
| **subscription_id** | **String** | an id associated with a subscription to link the token request against. | [optional] |
|
17
19
|
| **tx_type** | **String** | A value to override the transaction type if requested by your account manager. | [optional] |
|
18
20
|
|
@@ -28,9 +30,11 @@ instance = CityPayApiClient::PaylinkTokenRequestModel.new(
|
|
28
30
|
cart: null,
|
29
31
|
client_version: null,
|
30
32
|
config: null,
|
33
|
+
currency: GBP,
|
31
34
|
email: card.holder@citypay.com,
|
32
35
|
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
33
36
|
merchantid: 11223344,
|
37
|
+
recurring: null,
|
34
38
|
subscription_id: null,
|
35
39
|
tx_type: null
|
36
40
|
)
|
data/docs/PaylinkTokenStatus.md
CHANGED
@@ -27,7 +27,7 @@
|
|
27
27
|
| **is_validated** | **Boolean** | whether the token generation was successfully validated. | [optional] |
|
28
28
|
| **last_event_date_time** | **Time** | the date and time that the session last had an event actioned against it. | [optional] |
|
29
29
|
| **last_payment_result** | **String** | the result of the last payment if one exists. | [optional] |
|
30
|
-
| **mid** | **
|
30
|
+
| **mid** | **Integer** | identifies the merchant account. | [optional] |
|
31
31
|
| **payment_attempts_count** | **Integer** | the number of attempts made to pay. | [optional] |
|
32
32
|
| **state_history** | [**Array<PaylinkStateEvent>**](PaylinkStateEvent.md) | | [optional] |
|
33
33
|
| **token** | **String** | the token value which uniquely identifies the session. | [optional] |
|
@@ -41,10 +41,10 @@ require 'citypay_api_client'
|
|
41
41
|
instance = CityPayApiClient::PaylinkTokenStatus.new(
|
42
42
|
amount_paid: null,
|
43
43
|
auth_code: null,
|
44
|
-
card:
|
45
|
-
created:
|
46
|
-
datetime:
|
47
|
-
identifier:
|
44
|
+
card: Visa/0002,
|
45
|
+
created: 2024-04-22T13:29:14Z,
|
46
|
+
datetime: 2024-04-22T13:29:14Z,
|
47
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
48
48
|
is_attachment: null,
|
49
49
|
is_cancelled: null,
|
50
50
|
is_closed: null,
|
@@ -60,9 +60,9 @@ instance = CityPayApiClient::PaylinkTokenStatus.new(
|
|
60
60
|
is_request_challenged: null,
|
61
61
|
is_sms_sent: null,
|
62
62
|
is_validated: null,
|
63
|
-
last_event_date_time:
|
63
|
+
last_event_date_time: 2024-04-22T13:29:14Z,
|
64
64
|
last_payment_result: null,
|
65
|
-
mid:
|
65
|
+
mid: 11223344,
|
66
66
|
payment_attempts_count: null,
|
67
67
|
state_history: null,
|
68
68
|
token: null,
|
@@ -5,10 +5,10 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
7
|
| **after** | **Time** | identifies the date and time to lookup changes after. | |
|
8
|
-
| **max_results** | **Integer** |
|
8
|
+
| **max_results** | **Integer** | The maximum number of results to return in a single response. This value is used to limit the size of data returned by the API, enhancing performance and manageability. Values should be between 5 and 250. | [optional] |
|
9
9
|
| **merchantid** | **Integer** | the merchant id to review tokens for. | |
|
10
|
-
| **next_token** | **String** | the
|
11
|
-
| **order_by** | **
|
10
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
11
|
+
| **order_by** | **String** | Specifies the field by which results are ordered. Available fields are [p.id]. By default, fields are ordered by OrderByExpression(p.id,ASC). To order in descending order, prefix with '-' or suffix with ' DESC'. | [optional] |
|
12
12
|
|
13
13
|
## Example
|
14
14
|
|
@@ -16,11 +16,11 @@
|
|
16
16
|
require 'citypay_api_client'
|
17
17
|
|
18
18
|
instance = CityPayApiClient::PaylinkTokenStatusChangeRequest.new(
|
19
|
-
after:
|
20
|
-
max_results:
|
19
|
+
after: 2024-04-22T13:29:14Z,
|
20
|
+
max_results: 50,
|
21
21
|
merchantid: 11223344,
|
22
|
-
next_token:
|
23
|
-
order_by:
|
22
|
+
next_token: n34liuwn435tUAGFNg34yn...,
|
23
|
+
order_by: date
|
24
24
|
)
|
25
25
|
```
|
26
26
|
|
@@ -4,7 +4,9 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **
|
7
|
+
| **count** | **Integer** | The count of items returned in this page. | [optional] |
|
8
|
+
| **max_results** | **Integer** | The max results requested in this page. | [optional] |
|
9
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
8
10
|
| **tokens** | [**Array<PaylinkTokenStatus>**](PaylinkTokenStatus.md) | | |
|
9
11
|
|
10
12
|
## Example
|
@@ -13,7 +15,9 @@
|
|
13
15
|
require 'citypay_api_client'
|
14
16
|
|
15
17
|
instance = CityPayApiClient::PaylinkTokenStatusChangeResponse.new(
|
16
|
-
|
18
|
+
count: 25,
|
19
|
+
max_results: 50,
|
20
|
+
next_token: n34liuwn435tUAGFNg34yn...,
|
17
21
|
tokens: null
|
18
22
|
)
|
19
23
|
```
|
@@ -0,0 +1,42 @@
|
|
1
|
+
# CityPayApiClient::PaymentIntent
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount** | **Integer** | The amount to authorise in the lowest unit of currency with a variable length to a maximum of 12 digits. No decimal points are to be included and no divisional characters such as 1,024. The amount should be the total amount required for the transaction. For example with GBP £1,021.95 the amount value is 102195. | |
|
8
|
+
| **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. `3` to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
|
9
|
+
| **bill_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
|
10
|
+
| **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify possession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
|
11
|
+
| **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. `3` to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
|
12
|
+
| **currency** | **String** | The processing currency for the transaction. Will default to the merchant account currency. | [optional] |
|
13
|
+
| **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. `2` to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. `3` to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
|
14
|
+
| **identifier** | **String** | The identifier of the transaction to process. The value should be a valid reference and may be used to perform post processing actions and to aid in reconciliation of transactions. The value should be a valid printable string with ASCII character ranges from 0x32 to 0x127. The identifier is recommended to be distinct for each transaction such as a [random unique identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier) this will aid in ensuring each transaction is identifiable. When transactions are processed they are also checked for duplicate requests. Changing the identifier on a subsequent request will ensure that a transaction is considered as different. | |
|
15
|
+
| **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the address did not match. `3` to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
|
16
|
+
| **ship_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
|
17
|
+
| **tag** | **Array<String>** | | [optional] |
|
18
|
+
| **trans_info** | **String** | Further information that can be added to the transaction will display in reporting. Can be used for flexible values such as operator id. | [optional] |
|
19
|
+
| **trans_type** | **String** | The type of transaction being submitted. Normally this value is not required and your account manager may request that you set this field. | [optional] |
|
20
|
+
|
21
|
+
## Example
|
22
|
+
|
23
|
+
```ruby
|
24
|
+
require 'citypay_api_client'
|
25
|
+
|
26
|
+
instance = CityPayApiClient::PaymentIntent.new(
|
27
|
+
amount: 19995,
|
28
|
+
avs_postcode_policy: null,
|
29
|
+
bill_to: null,
|
30
|
+
csc: 10,
|
31
|
+
csc_policy: null,
|
32
|
+
currency: GBP,
|
33
|
+
duplicate_policy: null,
|
34
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
35
|
+
match_avsa: null,
|
36
|
+
ship_to: null,
|
37
|
+
tag: null,
|
38
|
+
trans_info: null,
|
39
|
+
trans_type: null
|
40
|
+
)
|
41
|
+
```
|
42
|
+
|
@@ -0,0 +1,18 @@
|
|
1
|
+
# CityPayApiClient::PaymentIntentReference
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **payment_intent_id** | **String** | The intent id used for future referencing of the intent. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'citypay_api_client'
|
13
|
+
|
14
|
+
instance = CityPayApiClient::PaymentIntentReference.new(
|
15
|
+
payment_intent_id: p13t1111222233334444
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/RefundRequest.md
CHANGED
data/docs/RegisterCard.md
CHANGED
@@ -0,0 +1,28 @@
|
|
1
|
+
# CityPayApiClient::RemittanceData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_created** | **Time** | Represents the date and time when the remittance was processed. This timestamp follows the ISO 8601 format for datetime representation. | [optional] |
|
8
|
+
| **net_amount** | **Integer** | Represents the net amount after accounting for refunds. This is calculated as SalesAmount - RefundAmount and expressed in the smallest currency unit. | [optional] |
|
9
|
+
| **refund_amount** | **Integer** | The total amount refunded to customers. | [optional] |
|
10
|
+
| **refund_count** | **Integer** | The total number of refund transactions processed. This figure helps in understanding the frequency of refunds relative to sales. | [optional] |
|
11
|
+
| **sales_amount** | **Integer** | The total monetary amount of sales transactions. | [optional] |
|
12
|
+
| **sales_count** | **Integer** | Indicates the total number of sales transactions that occurred. This count provides insight into the volume of sales. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'citypay_api_client'
|
18
|
+
|
19
|
+
instance = CityPayApiClient::RemittanceData.new(
|
20
|
+
date_created: 2020-01-02T18:32:28Z,
|
21
|
+
net_amount: 11874500,
|
22
|
+
refund_amount: 11874500,
|
23
|
+
refund_count: 11874500,
|
24
|
+
sales_amount: 11874500,
|
25
|
+
sales_count: 11874500
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# CityPayApiClient::RemittanceReportRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **date_from** | **Date** | Start date (YYYY-MM-DD) for batch Retrieval range, inclusive. Maximum value is 3 years ago. | [optional] |
|
8
|
+
| **date_until** | **Date** | End date (YYYY-MM-DD) for batch Retrieval range, inclusive. | [optional] |
|
9
|
+
| **max_results** | **Integer** | The maximum number of results to return in a single response. This value is used to limit the size of data returned by the API, enhancing performance and manageability. Values should be between 5 and 250. | [optional] |
|
10
|
+
| **merchant_id** | **Array<Integer>** | | [optional] |
|
11
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
12
|
+
| **order_by** | **String** | Specifies the field by which results are ordered. Available fields are [trans_no,date_when,amount]. By default, fields are ordered by OrderByExpression(trans_no,ASC). To order in descending order, prefix with '-' or suffix with ' DESC'. | [optional] |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'citypay_api_client'
|
18
|
+
|
19
|
+
instance = CityPayApiClient::RemittanceReportRequest.new(
|
20
|
+
date_from: Wed Jan 24 00:00:00 UTC 2024,
|
21
|
+
date_until: Wed Jan 31 00:00:00 UTC 2024,
|
22
|
+
max_results: 50,
|
23
|
+
merchant_id: null,
|
24
|
+
next_token: n34liuwn435tUAGFNg34yn...,
|
25
|
+
order_by: date
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# CityPayApiClient::RemittanceReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **count** | **Integer** | The count of items returned in this page. | [optional] |
|
8
|
+
| **data** | [**Array<RemittedClientData>**](RemittedClientData.md) | | |
|
9
|
+
| **max_results** | **Integer** | The max results requested in this page. | [optional] |
|
10
|
+
| **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'citypay_api_client'
|
16
|
+
|
17
|
+
instance = CityPayApiClient::RemittanceReportResponse.new(
|
18
|
+
count: 25,
|
19
|
+
data: null,
|
20
|
+
max_results: 50,
|
21
|
+
next_token: n34liuwn435tUAGFNg34yn...
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# CityPayApiClient::RemittedClientData
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **batches** | [**Array<MerchantBatchResponse>**](MerchantBatchResponse.md) | | |
|
8
|
+
| **clientid** | **String** | The client id that the remittance data is for. | [optional] |
|
9
|
+
| **date** | **Date** | The date of the remittance. | [optional] |
|
10
|
+
| **date_created** | **Time** | The date time that the remittance was created. | [optional] |
|
11
|
+
| **net_amount** | **Integer** | Represents the net amount after accounting for refunds. This is calculated as SalesAmount - RefundAmount and expressed in the smallest currency unit. | [optional] |
|
12
|
+
| **processed_amount** | **Integer** | The total monetary amount processed consisting of sale and refund transactions. | [optional] |
|
13
|
+
| **processed_count** | **Integer** | Indicates the total number of sales and refund transactions that occurred. This count provides insight into the volume of processing. | [optional] |
|
14
|
+
| **refund_amount** | **Integer** | The total amount refunded to customers. | [optional] |
|
15
|
+
| **refund_count** | **Integer** | The total number of refund transactions processed. This figure helps in understanding the frequency of refunds relative to sales. | [optional] |
|
16
|
+
| **remittances** | [**Array<RemittanceData>**](RemittanceData.md) | | |
|
17
|
+
| **sales_amount** | **Integer** | The total monetary amount of sales transactions. | [optional] |
|
18
|
+
| **sales_count** | **Integer** | Indicates the total number of sales transactions that occurred. This count provides insight into the volume of sales. | [optional] |
|
19
|
+
| **settlement_implementation** | **String** | The name of the implementation. | [optional] |
|
20
|
+
| **uuid** | **String** | The uuid of the settlement file processed on. | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'citypay_api_client'
|
26
|
+
|
27
|
+
instance = CityPayApiClient::RemittedClientData.new(
|
28
|
+
batches: null,
|
29
|
+
clientid: PC12345,
|
30
|
+
date: Thu Jan 02 00:00:00 UTC 2020,
|
31
|
+
date_created: 2020-01-02T18:32:28Z,
|
32
|
+
net_amount: 11874500,
|
33
|
+
processed_amount: 11874500,
|
34
|
+
processed_count: 11874500,
|
35
|
+
refund_amount: 11874500,
|
36
|
+
refund_count: 11874500,
|
37
|
+
remittances: null,
|
38
|
+
sales_amount: 11874500,
|
39
|
+
sales_count: 11874500,
|
40
|
+
settlement_implementation: null,
|
41
|
+
uuid: 123e4567-e89b-12d3-a456-426614174000
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|