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
@@ -18,11 +18,13 @@ All URIs are relative to *https://api.citypay.com*
|
|
18
18
|
|
19
19
|
## account_card_delete_request
|
20
20
|
|
21
|
-
> <Acknowledgement> account_card_delete_request(accountid, card_id)
|
21
|
+
> <Acknowledgement> account_card_delete_request(accountid, card_id, opts)
|
22
22
|
|
23
23
|
Card Deletion
|
24
24
|
|
25
|
-
Deletes a card from the account. The card will be marked for deletion before a subsequent
|
25
|
+
Deletes a card from the account. The card will be marked for deletion before a subsequent
|
26
|
+
purge will clear the card permanently.
|
27
|
+
|
26
28
|
|
27
29
|
### Examples
|
28
30
|
|
@@ -37,10 +39,13 @@ end
|
|
37
39
|
api_instance = CityPayApiClient::CardHolderAccountApi.new
|
38
40
|
accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
|
39
41
|
card_id = 'card_id_example' # String | The id of the card that is presented by a call to retrieve a card holder account.
|
42
|
+
opts = {
|
43
|
+
force: true # Boolean | Requests that the item is forced immediately.
|
44
|
+
}
|
40
45
|
|
41
46
|
begin
|
42
47
|
# Card Deletion
|
43
|
-
result = api_instance.account_card_delete_request(accountid, card_id)
|
48
|
+
result = api_instance.account_card_delete_request(accountid, card_id, opts)
|
44
49
|
p result
|
45
50
|
rescue CityPayApiClient::ApiError => e
|
46
51
|
puts "Error when calling CardHolderAccountApi->account_card_delete_request: #{e}"
|
@@ -51,12 +56,12 @@ end
|
|
51
56
|
|
52
57
|
This returns an Array which contains the response data, status code and headers.
|
53
58
|
|
54
|
-
> <Array(<Acknowledgement>, Integer, Hash)> account_card_delete_request_with_http_info(accountid, card_id)
|
59
|
+
> <Array(<Acknowledgement>, Integer, Hash)> account_card_delete_request_with_http_info(accountid, card_id, opts)
|
55
60
|
|
56
61
|
```ruby
|
57
62
|
begin
|
58
63
|
# Card Deletion
|
59
|
-
data, status_code, headers = api_instance.account_card_delete_request_with_http_info(accountid, card_id)
|
64
|
+
data, status_code, headers = api_instance.account_card_delete_request_with_http_info(accountid, card_id, opts)
|
60
65
|
p status_code # => 2xx
|
61
66
|
p headers # => { ... }
|
62
67
|
p data # => <Acknowledgement>
|
@@ -71,6 +76,7 @@ end
|
|
71
76
|
| ---- | ---- | ----------- | ----- |
|
72
77
|
| **accountid** | **String** | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account. | |
|
73
78
|
| **card_id** | **String** | The id of the card that is presented by a call to retrieve a card holder account. | |
|
79
|
+
| **force** | **Boolean** | Requests that the item is forced immediately. | [optional] |
|
74
80
|
|
75
81
|
### Return type
|
76
82
|
|
@@ -92,7 +98,15 @@ end
|
|
92
98
|
|
93
99
|
Card Registration
|
94
100
|
|
95
|
-
Allows for a card to be registered for the account. The card will be added for future
|
101
|
+
Allows for a card to be registered for the account. The card will be added for future
|
102
|
+
processing and will be available as a tokenised value for future processing.
|
103
|
+
|
104
|
+
The card will be validated for
|
105
|
+
|
106
|
+
0. Being a valid card number (luhn check)
|
107
|
+
0. Having a valid expiry date
|
108
|
+
0. Being a valid bin value.
|
109
|
+
|
96
110
|
|
97
111
|
### Examples
|
98
112
|
|
@@ -106,7 +120,7 @@ end
|
|
106
120
|
|
107
121
|
api_instance = CityPayApiClient::CardHolderAccountApi.new
|
108
122
|
accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
|
109
|
-
register_card = CityPayApiClient::RegisterCard.new({cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear:
|
123
|
+
register_card = CityPayApiClient::RegisterCard.new({cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027}) # RegisterCard |
|
110
124
|
|
111
125
|
begin
|
112
126
|
# Card Registration
|
@@ -162,7 +176,14 @@ end
|
|
162
176
|
|
163
177
|
Card Status
|
164
178
|
|
165
|
-
Updates the status of a card for processing. The following values are available
|
179
|
+
Updates the status of a card for processing. The following values are available
|
180
|
+
|
181
|
+
| Status | Description |
|
182
|
+
|--------|-------------|
|
183
|
+
| Active | The card is active for processing and can be used for charging against with a valid token |
|
184
|
+
| Inactive | The card is inactive for processing and cannot be used for processing, it will require reactivation before being used to charge |
|
185
|
+
| Expired | The card has expired either due to the expiry date no longer being valid or due to a replacement card being issued |
|
186
|
+
|
166
187
|
|
167
188
|
### Examples
|
168
189
|
|
@@ -372,7 +393,9 @@ end
|
|
372
393
|
|
373
394
|
Account Deletion
|
374
395
|
|
375
|
-
Allows for the deletion of an account. The account will marked for deletion and subsequent purging. No further
|
396
|
+
Allows for the deletion of an account. The account will marked for deletion and subsequent purging. No further
|
397
|
+
transactions will be alowed to be processed or actioned against this account.
|
398
|
+
|
376
399
|
|
377
400
|
### Examples
|
378
401
|
|
@@ -440,7 +463,8 @@ end
|
|
440
463
|
|
441
464
|
Account Exists
|
442
465
|
|
443
|
-
Checks that an account exists and is active by providing the account id as a url parameter.
|
466
|
+
Checks that an account exists and is active by providing the account id as a url parameter.
|
467
|
+
|
444
468
|
|
445
469
|
### Examples
|
446
470
|
|
@@ -508,7 +532,13 @@ end
|
|
508
532
|
|
509
533
|
Account Retrieval
|
510
534
|
|
511
|
-
Allows for the retrieval of a card holder account for the given `id`. Should duplicate accounts exist
|
535
|
+
Allows for the retrieval of a card holder account for the given `id`. Should duplicate accounts exist
|
536
|
+
for the same `id`, the first account created with that `id` will be returned.
|
537
|
+
|
538
|
+
The account can be used for tokenisation processing by listing all cards assigned to the account.
|
539
|
+
The returned cards will include all `active`, `inactive` and `expired` cards. This can be used to
|
540
|
+
enable a card holder to view their wallet and make constructive choices on which card to use.
|
541
|
+
|
512
542
|
|
513
543
|
### Examples
|
514
544
|
|
@@ -576,7 +606,13 @@ end
|
|
576
606
|
|
577
607
|
Account Status
|
578
608
|
|
579
|
-
Updates the status of an account. An account can have the following statuses applied
|
609
|
+
Updates the status of an account. An account can have the following statuses applied
|
610
|
+
|
611
|
+
| Status | Description |
|
612
|
+
|--------|-------------|
|
613
|
+
| Active | The account is active for processing |
|
614
|
+
| Disabled | The account has been disabled and cannot be used for processing. The account will require reactivation to continue procesing |
|
615
|
+
|
580
616
|
|
581
617
|
### Examples
|
582
618
|
|
@@ -646,7 +682,30 @@ end
|
|
646
682
|
|
647
683
|
Charge
|
648
684
|
|
649
|
-
A charge process obtains an authorisation using a tokenised value which represents a stored card
|
685
|
+
A charge process obtains an authorisation using a tokenised value which represents a stored card
|
686
|
+
on a card holder account.
|
687
|
+
A card must previously be registered by calling `/account-register-card` with the card details
|
688
|
+
or retrieved using `/account-retrieve`
|
689
|
+
|
690
|
+
Tokens are generated whenever a previously registered list of cards are retrieved. Each token has, by design a
|
691
|
+
relatively short time to live of 30 minutes. This is both to safe guard the merchant and card holder from
|
692
|
+
replay attacks. Tokens are also restricted to your account, preventing malicious actors from stealing details
|
693
|
+
for use elsewhere.
|
694
|
+
|
695
|
+
If a token is reused after it has expired it will be rejected and a new token will be required.
|
696
|
+
|
697
|
+
Tokenisation can be used for
|
698
|
+
|
699
|
+
- repeat authorisations on a previously stored card
|
700
|
+
- easy authorisations just requiring CSC values to be entered
|
701
|
+
- can be used for credential on file style payments
|
702
|
+
- can require full 3-D Secure authentication to retain the liability shift
|
703
|
+
- wallet style usage
|
704
|
+
|
705
|
+
|
706
|
+
_Should an account be used with 3DSv2, the card holder name should also be stored alongside the card as this is a
|
707
|
+
required field with both Visa and MasterCard for risk analysis._.
|
708
|
+
|
650
709
|
|
651
710
|
### Examples
|
652
711
|
|
@@ -659,7 +718,7 @@ CityPayApiClient.configure do |config|
|
|
659
718
|
end
|
660
719
|
|
661
720
|
api_instance = CityPayApiClient::CardHolderAccountApi.new
|
662
|
-
charge_request = CityPayApiClient::ChargeRequest.new({amount:
|
721
|
+
charge_request = CityPayApiClient::ChargeRequest.new({amount: 19995, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344, token: 'ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr'}) # ChargeRequest |
|
663
722
|
|
664
723
|
begin
|
665
724
|
# Charge
|
data/docs/ChargeRequest.md
CHANGED
@@ -5,16 +5,17 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
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
|
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
9
|
| **cardholder_agreement** | **String** | Merchant-initiated transactions (MITs) are payments you trigger, where the cardholder has previously consented to you carrying out such payments. These may be scheduled (such as recurring payments and installments) or unscheduled (like account top-ups triggered by balance thresholds and no-show charges). Scheduled --- These are regular payments using stored card details, like installments or a monthly subscription fee. - `I` Instalment - A single purchase of goods or services billed to a cardholder in multiple transactions, over a period of time agreed by the cardholder and you. - `R` Recurring - Transactions processed at fixed, regular intervals not to exceed one year between transactions, representing an agreement between a cardholder and you to purchase goods or services provided over a period of time. Unscheduled --- These are payments using stored card details that do not occur on a regular schedule, like top-ups for a digital wallet triggered by the balance falling below a certain threshold. - `A` Reauthorisation - a purchase made after the original purchase. A common scenario is delayed/split shipments. - `C` Unscheduled Payment - A transaction using a stored credential for a fixed or variable amount that does not occur on a scheduled or regularly occurring transaction date. This includes account top-ups triggered by balance thresholds. - `D` Delayed Charge - A delayed charge is typically used in hotel, cruise lines and vehicle rental environments to perform a supplemental account charge after original services are rendered. - `L` Incremental - An incremental authorisation is typically found in hotel and car rental environments, where the cardholder has agreed to pay for any service incurred during the duration of the contract. An incremental authorisation is where you need to seek authorisation of further funds in addition to what you have originally requested. A common scenario is additional services charged to the contract, such as extending a stay in a hotel. - `S` Resubmission - When the original purchase occurred, but you were not able to get authorisation at the time the goods or services were provided. It should be only used where the goods or services have already been provided, but the authorisation request is declined for insufficient funds. - `X` No-show - A no-show is a transaction where you are enabled to charge for services which the cardholder entered into an agreement to purchase, but the cardholder did not meet the terms of the agreement. | [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
|
11
|
-
| **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are
|
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
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
|
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
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
15
|
| **initiation** | **String** | Transactions charged using the API are defined as: **Cardholder Initiated**: A _cardholder initiated transaction_ (CIT) is where the cardholder selects the card for use for a purchase using previously stored details. An example would be a customer buying an item from your website after being present with their saved card details at checkout. **Merchant Intiated**: A _merchant initiated transaction_ (MIT) is an authorisation initiated where you as the merchant submit a cardholders previously stored details without the cardholder's participation. An example would be a subscription to a membership scheme to debit their card monthly. MITs have different reasons such as reauthorisation, delayed, unscheduled, incremental, recurring, instalment, no-show or resubmission. The following values apply - `M` - specifies that the transaction is initiated by the merchant - `C` - specifies that the transaction is initiated by the cardholder Where transactions are merchant initiated, a valid cardholder agreement must be defined. | [optional] |
|
16
|
-
| **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are
|
16
|
+
| **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] |
|
17
17
|
| **merchantid** | **Integer** | Identifies the merchant account to perform processing for. | |
|
18
|
+
| **tag** | **Array<String>** | | [optional] |
|
18
19
|
| **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
|
19
20
|
| **token** | **String** | A tokenised form of a card that belongs to a card holder's account and that has been previously registered. The token is time based and will only be active for a short duration. The value is therefore designed not to be stored remotely for future use. Tokens will start with ct and are resiliently tamper proof using HMacSHA-256. No sensitive card data is stored internally within the token. Each card will contain a different token and the value may be different on any retrieval call. The value can be presented for payment as a selection value to an end user in a web application. | |
|
20
21
|
| **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] |
|
@@ -26,7 +27,7 @@
|
|
26
27
|
require 'citypay_api_client'
|
27
28
|
|
28
29
|
instance = CityPayApiClient::ChargeRequest.new(
|
29
|
-
amount:
|
30
|
+
amount: 19995,
|
30
31
|
avs_postcode_policy: null,
|
31
32
|
cardholder_agreement: null,
|
32
33
|
csc: 10,
|
@@ -37,6 +38,7 @@ instance = CityPayApiClient::ChargeRequest.new(
|
|
37
38
|
initiation: null,
|
38
39
|
match_avsa: null,
|
39
40
|
merchantid: 11223344,
|
41
|
+
tag: null,
|
40
42
|
threedsecure: null,
|
41
43
|
token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr,
|
42
44
|
trans_info: null,
|
data/docs/ContactDetails.md
CHANGED
@@ -4,19 +4,19 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **address1** | **String** | The first line of the address for the
|
8
|
-
| **address2** | **String** | The second line of the address for the
|
9
|
-
| **address3** | **String** | The third line of the address for the
|
10
|
-
| **area** | **String** | The area such as city, department, parish for the
|
11
|
-
| **company** | **String** | The company name for the
|
7
|
+
| **address1** | **String** | The first line of the address for the card holder. | [optional] |
|
8
|
+
| **address2** | **String** | The second line of the address for the card holder. | [optional] |
|
9
|
+
| **address3** | **String** | The third line of the address for the card holder. | [optional] |
|
10
|
+
| **area** | **String** | The area such as city, department, parish for the card holder. | [optional] |
|
11
|
+
| **company** | **String** | The company name for the card holder if the contact is a corporate contact. | [optional] |
|
12
12
|
| **country** | **String** | The country code in ISO 3166 format. The country value may be used for fraud analysis and for acceptance of the transaction. | [optional] |
|
13
|
-
| **email** | **String** | An email address for the
|
14
|
-
| **firstname** | **String** | The first name of the
|
15
|
-
| **lastname** | **String** | The last name or surname of the
|
16
|
-
| **mobile_no** | **String** | A mobile number for the
|
13
|
+
| **email** | **String** | An email address for the card holder which may be used for correspondence. | [optional] |
|
14
|
+
| **firstname** | **String** | The first name of the card holder. | [optional] |
|
15
|
+
| **lastname** | **String** | The last name or surname of the card holder. | [optional] |
|
16
|
+
| **mobile_no** | **String** | A mobile number for the card holder the mobile number is often required by delivery companies to ensure they are able to be in contact when required. | [optional] |
|
17
17
|
| **postcode** | **String** | The postcode or zip code of the address which may be used for fraud analysis. | [optional] |
|
18
|
-
| **telephone_no** | **String** | A telephone number for the
|
19
|
-
| **title** | **String** | A title for the
|
18
|
+
| **telephone_no** | **String** | A telephone number for the card holder. | [optional] |
|
19
|
+
| **title** | **String** | A title for the card holder such as Mr, Mrs, Ms, M. Mme. etc. | [optional] |
|
20
20
|
|
21
21
|
## Example
|
22
22
|
|
data/docs/Decision.md
CHANGED
@@ -4,7 +4,6 @@
|
|
4
4
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
|
-
| **authen_required** | [**AuthenRequired**](AuthenRequired.md) | | [optional] |
|
8
7
|
| **auth_response** | [**AuthResponse**](AuthResponse.md) | | [optional] |
|
9
8
|
| **request_challenged** | [**RequestChallenged**](RequestChallenged.md) | | [optional] |
|
10
9
|
|
@@ -14,7 +13,6 @@
|
|
14
13
|
require 'citypay_api_client'
|
15
14
|
|
16
15
|
instance = CityPayApiClient::Decision.new(
|
17
|
-
authen_required: null,
|
18
16
|
auth_response: null,
|
19
17
|
request_challenged: null
|
20
18
|
)
|
data/docs/DirectPostApi.md
CHANGED
@@ -17,7 +17,10 @@ All URIs are relative to *https://api.citypay.com*
|
|
17
17
|
|
18
18
|
Handles a CRes response from ACS, returning back the result of authorisation
|
19
19
|
|
20
|
-
Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
|
20
|
+
Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
|
21
|
+
value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
|
22
|
+
perform a `Direct Post` integration who wish to handle the challenge flow themselves.
|
23
|
+
|
21
24
|
|
22
25
|
### Examples
|
23
26
|
|
@@ -87,7 +90,10 @@ No authorization required
|
|
87
90
|
|
88
91
|
Handles a CRes response from ACS, returning back a token for future authorisation
|
89
92
|
|
90
|
-
Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
|
93
|
+
Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
|
94
|
+
value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
|
95
|
+
perform a `Direct Post` integration who wish to handle the challenge flow themselves.
|
96
|
+
|
91
97
|
|
92
98
|
### Examples
|
93
99
|
|
@@ -157,7 +163,8 @@ No authorization required
|
|
157
163
|
|
158
164
|
Direct Post Auth Request
|
159
165
|
|
160
|
-
Used to initiate a direct post request transaction flow.
|
166
|
+
Used to initiate a direct post request transaction flow.
|
167
|
+
|
161
168
|
|
162
169
|
### Examples
|
163
170
|
|
@@ -166,14 +173,14 @@ require 'time'
|
|
166
173
|
require 'citypay_api_client'
|
167
174
|
# setup authorization
|
168
175
|
CityPayApiClient.configure do |config|
|
169
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
170
|
-
|
171
176
|
# Configure API key authorization: cp-domain-key
|
172
177
|
config.api_key['cp-domain-key'] = 'YOUR API KEY'
|
178
|
+
|
179
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
173
180
|
end
|
174
181
|
|
175
182
|
api_instance = CityPayApiClient::DirectPostApi.new
|
176
|
-
direct_post_request = CityPayApiClient::DirectPostRequest.new({amount:
|
183
|
+
direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 19995, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
|
177
184
|
|
178
185
|
begin
|
179
186
|
# Direct Post Auth Request
|
@@ -214,7 +221,7 @@ end
|
|
214
221
|
|
215
222
|
### Authorization
|
216
223
|
|
217
|
-
[cp-
|
224
|
+
[cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
|
218
225
|
|
219
226
|
### HTTP request headers
|
220
227
|
|
@@ -228,7 +235,8 @@ end
|
|
228
235
|
|
229
236
|
Direct Post Tokenise Request
|
230
237
|
|
231
|
-
Used to initiate a direct post request transaction flow.
|
238
|
+
Used to initiate a direct post request transaction flow.
|
239
|
+
|
232
240
|
|
233
241
|
### Examples
|
234
242
|
|
@@ -237,14 +245,14 @@ require 'time'
|
|
237
245
|
require 'citypay_api_client'
|
238
246
|
# setup authorization
|
239
247
|
CityPayApiClient.configure do |config|
|
240
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
241
|
-
|
242
248
|
# Configure API key authorization: cp-domain-key
|
243
249
|
config.api_key['cp-domain-key'] = 'YOUR API KEY'
|
250
|
+
|
251
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
244
252
|
end
|
245
253
|
|
246
254
|
api_instance = CityPayApiClient::DirectPostApi.new
|
247
|
-
direct_post_request = CityPayApiClient::DirectPostRequest.new({amount:
|
255
|
+
direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 19995, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
|
248
256
|
|
249
257
|
begin
|
250
258
|
# Direct Post Tokenise Request
|
@@ -285,7 +293,7 @@ end
|
|
285
293
|
|
286
294
|
### Authorization
|
287
295
|
|
288
|
-
[cp-
|
296
|
+
[cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
|
289
297
|
|
290
298
|
### HTTP request headers
|
291
299
|
|
@@ -299,7 +307,9 @@ end
|
|
299
307
|
|
300
308
|
Direct Post Token Request
|
301
309
|
|
302
|
-
Perform a request for authorisation for a previously generated token. This flow will return an authorisation
|
310
|
+
Perform a request for authorisation for a previously generated token. This flow will return an authorisation
|
311
|
+
response stating that the transaction was approved or declined.
|
312
|
+
|
303
313
|
|
304
314
|
### Examples
|
305
315
|
|
@@ -308,10 +318,10 @@ require 'time'
|
|
308
318
|
require 'citypay_api_client'
|
309
319
|
# setup authorization
|
310
320
|
CityPayApiClient.configure do |config|
|
311
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
312
|
-
|
313
321
|
# Configure API key authorization: cp-domain-key
|
314
322
|
config.api_key['cp-domain-key'] = 'YOUR API KEY'
|
323
|
+
|
324
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
315
325
|
end
|
316
326
|
|
317
327
|
api_instance = CityPayApiClient::DirectPostApi.new
|
@@ -356,7 +366,7 @@ end
|
|
356
366
|
|
357
367
|
### Authorization
|
358
368
|
|
359
|
-
[cp-
|
369
|
+
[cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
|
360
370
|
|
361
371
|
### HTTP request headers
|
362
372
|
|
data/docs/DirectPostRequest.md
CHANGED
@@ -5,23 +5,24 @@
|
|
5
5
|
| Name | Type | Description | Notes |
|
6
6
|
| ---- | ---- | ----------- | ----- |
|
7
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
|
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
9
|
| **bill_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
|
10
10
|
| **cardnumber** | **String** | The card number (PAN) with a variable length to a maximum of 21 digits in numerical form. Any non numeric characters will be stripped out of the card number, this includes whitespace or separators internal of the provided value. The card number must be treated as sensitive data. We only provide an obfuscated value in logging and reporting. The plaintext value is encrypted in our database using AES 256 GMC bit encryption for settlement or refund purposes. When providing the card number to our gateway through the authorisation API you will be handling the card data on your application. This will require further PCI controls to be in place and this value must never be stored. | |
|
11
|
-
| **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
|
12
|
-
| **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are
|
11
|
+
| **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] |
|
12
|
+
| **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] |
|
13
13
|
| **currency** | **String** | The processing currency for the transaction. Will default to the merchant account currency. | [optional] |
|
14
|
-
| **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
|
14
|
+
| **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] |
|
15
15
|
| **expmonth** | **Integer** | The month of expiry of the card. The month value should be a numerical value between 1 and 12. | |
|
16
16
|
| **expyear** | **Integer** | The year of expiry of the card. | |
|
17
17
|
| **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. | |
|
18
18
|
| **mac** | **String** | A message authentication code ensures the data is authentic and that the intended amount has not been tampered with. The mac value is generated using a hash-based mac value. The following algorithm is used. - A key (k) is derived from your licence key - A value (v) is produced by concatenating the nonce, amount value and identifier, such as a purchase with nonce `0123456789ABCDEF` an amount of £275.95 and an identifier of OD-12345678 would become `0123456789ABCDEF27595OD-12345678` and extracting the UTF-8 byte values - The result from HMAC_SHA256(k, v) is hex-encoded (upper-case) - For instance, a licence key of `LK123456789`, a nonce of `0123456789ABCDEF`, an amount of `27595` and an identifier of `OD-12345678` would generate a MAC of `163DBAB194D743866A9BCC7FC9C8A88FCD99C6BBBF08D619291212D1B91EE12E`. | |
|
19
|
-
| **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are
|
19
|
+
| **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] |
|
20
20
|
| **name_on_card** | **String** | The card holder name as appears on the card such as MR N E BODY. Required for some acquirers. | [optional] |
|
21
21
|
| **nonce** | **String** | A random value Hex string (uppercase) which is provided to the API to perform a digest. The value will be used in any digest function. | [optional] |
|
22
22
|
| **redirect_failure** | **String** | The URL used to redirect back to your site when a transaction has been rejected or declined. Required if a url-encoded request. | [optional] |
|
23
23
|
| **redirect_success** | **String** | The URL used to redirect back to your site when a transaction has been tokenised or authorised. Required if a url-encoded request. | [optional] |
|
24
24
|
| **ship_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
|
25
|
+
| **tag** | **Array<String>** | | [optional] |
|
25
26
|
| **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
|
26
27
|
| **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] |
|
27
28
|
| **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] |
|
@@ -32,7 +33,7 @@
|
|
32
33
|
require 'citypay_api_client'
|
33
34
|
|
34
35
|
instance = CityPayApiClient::DirectPostRequest.new(
|
35
|
-
amount:
|
36
|
+
amount: 19995,
|
36
37
|
avs_postcode_policy: null,
|
37
38
|
bill_to: null,
|
38
39
|
cardnumber: 4000 0000 0000 0002,
|
@@ -41,7 +42,7 @@ instance = CityPayApiClient::DirectPostRequest.new(
|
|
41
42
|
currency: GBP,
|
42
43
|
duplicate_policy: null,
|
43
44
|
expmonth: 9,
|
44
|
-
expyear:
|
45
|
+
expyear: 2027,
|
45
46
|
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
46
47
|
mac: 3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D,
|
47
48
|
match_avsa: null,
|
@@ -50,6 +51,7 @@ instance = CityPayApiClient::DirectPostRequest.new(
|
|
50
51
|
redirect_failure: https://pay.mystore.com/continue_failure,
|
51
52
|
redirect_success: https://pay.mystore.com/continue_success,
|
52
53
|
ship_to: null,
|
54
|
+
tag: null,
|
53
55
|
threedsecure: null,
|
54
56
|
trans_info: null,
|
55
57
|
trans_type: null
|
data/docs/EventDataModel.md
CHANGED
@@ -16,10 +16,10 @@
|
|
16
16
|
require 'citypay_api_client'
|
17
17
|
|
18
18
|
instance = CityPayApiClient::EventDataModel.new(
|
19
|
-
event_end_date:
|
19
|
+
event_end_date: Mon Apr 22 00:00:00 UTC 2024,
|
20
20
|
event_id: null,
|
21
21
|
event_organiser_id: null,
|
22
|
-
event_start_date:
|
22
|
+
event_start_date: Mon Apr 22 00:00:00 UTC 2024,
|
23
23
|
payment_type: null
|
24
24
|
)
|
25
25
|
```
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# CityPayApiClient::MerchantBatchReportRequest
|
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 [merchant_id,batch_no,net_amount]. By default, fields are ordered by OrderByExpression(merchant_id,ASC),OrderByExpression(batch_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::MerchantBatchReportRequest.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::MerchantBatchReportResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **batches** | [**Array<MerchantBatchResponse>**](MerchantBatchResponse.md) | | |
|
8
|
+
| **count** | **Integer** | The count of items returned in this page. | [optional] |
|
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::MerchantBatchReportResponse.new(
|
18
|
+
batches: null,
|
19
|
+
count: 25,
|
20
|
+
max_results: 50,
|
21
|
+
next_token: n34liuwn435tUAGFNg34yn...
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,30 @@
|
|
1
|
+
# CityPayApiClient::MerchantBatchResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **batch_closed** | **Time** | The date and time when the batch was closed. This is represented in ISO 8601 format (e.g., YYYY-MM-DDTHH:MM:SSZ) and indicates when the batch processing was completed. | [optional] |
|
8
|
+
| **batch_no** | **String** | The incremental identifier of the batch. This number is used to track and reference the batch in subsequent operations or inquiries. | [optional] |
|
9
|
+
| **batch_status** | **String** | A descriptive string detailing the current status of the batch. This status provides a human-readable explanation of the batch's processing state. | [optional] |
|
10
|
+
| **batch_status_code** | **String** | A batch status code that represents the processing state of the batch. Batches will be one of - 'O' defining the batch is open for settlement and not yet settled - 'X' defines that the batch is external to our systems and managed elsewhere - 'C' defines that the batch is cancelled and not settled - 'S' defines that the batch has been settled and remitted. | [optional] |
|
11
|
+
| **currency** | **String** | The currency of the batch. | [optional] |
|
12
|
+
| **merchantid** | **Integer** | The Merchant ID (MID) associated with the batch. This identifier specifies which merchant account the batch was processed for, linking transactions to the merchant. | [optional] |
|
13
|
+
| **net_summary** | [**NetSummaryResponse**](NetSummaryResponse.md) | | [optional] |
|
14
|
+
|
15
|
+
## Example
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
require 'citypay_api_client'
|
19
|
+
|
20
|
+
instance = CityPayApiClient::MerchantBatchResponse.new(
|
21
|
+
batch_closed: 2024-04-22T13:29:14Z,
|
22
|
+
batch_no: null,
|
23
|
+
batch_status: null,
|
24
|
+
batch_status_code: null,
|
25
|
+
currency: GBP,
|
26
|
+
merchantid: 11223344,
|
27
|
+
net_summary: null
|
28
|
+
)
|
29
|
+
```
|
30
|
+
|
@@ -0,0 +1,32 @@
|
|
1
|
+
# CityPayApiClient::NetSummaryResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **credit_items_amount** | **String** | The total value of refund (credit) transaction items. Represents the sum of funds returned to customers. | [optional] |
|
8
|
+
| **credit_items_count** | **Integer** | The count of refund (credit) transaction items. Reflects the number of refund transactions processed. | [optional] |
|
9
|
+
| **credit_items_value** | **Integer** | The total value of refund (credit) transaction items. Represents the sum of funds returned to customers. | [optional] |
|
10
|
+
| **debit_items_amount** | **String** | The total value of charge (debit) transaction items. Represents the sum of funds received from charges. | [optional] |
|
11
|
+
| **debit_items_count** | **Integer** | The count of charge (debit) transaction items. Indicates the number of charge transactions processed. | [optional] |
|
12
|
+
| **debit_items_value** | **Integer** | The total value of charge (debit) transaction items. Represents the sum of funds received from charges. | [optional] |
|
13
|
+
| **net_amount** | **Integer** | The absolute net value, reflecting the net gain or loss from transactions. | [optional] |
|
14
|
+
| **total_count** | **Integer** | The total count of all transaction items. | [optional] |
|
15
|
+
|
16
|
+
## Example
|
17
|
+
|
18
|
+
```ruby
|
19
|
+
require 'citypay_api_client'
|
20
|
+
|
21
|
+
instance = CityPayApiClient::NetSummaryResponse.new(
|
22
|
+
credit_items_amount: £75.89,
|
23
|
+
credit_items_count: 12345,
|
24
|
+
credit_items_value: 11874500,
|
25
|
+
debit_items_amount: £75.89,
|
26
|
+
debit_items_count: 12345,
|
27
|
+
debit_items_value: 11874500,
|
28
|
+
net_amount: 11874500,
|
29
|
+
total_count: 12345
|
30
|
+
)
|
31
|
+
```
|
32
|
+
|