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
@@ -0,0 +1,378 @@
|
|
1
|
+
# CityPayApiClient::ReportingApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.citypay.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**batched_transaction_report_request**](ReportingApi.md#batched_transaction_report_request) | **POST** /v6/merchant-batch/{merchantid}/{batch_no}/transactions | Batch Transaction Report Request |
|
8
|
+
| [**merchant_batch_report_request**](ReportingApi.md#merchant_batch_report_request) | **POST** /v6/merchant-batch/report | Merchant Batch Report Request |
|
9
|
+
| [**merchant_batch_request**](ReportingApi.md#merchant_batch_request) | **GET** /v6/merchant-batch/{merchantid}/{batch_no} | Merchant Batch Request |
|
10
|
+
| [**remittance_range_report**](ReportingApi.md#remittance_range_report) | **POST** /v6/remittance/report/{clientid} | Remittance Report Request |
|
11
|
+
| [**remittance_report_request**](ReportingApi.md#remittance_report_request) | **GET** /v6/remittance/report/{clientid}/{date} | Remittance Date Report Request |
|
12
|
+
|
13
|
+
|
14
|
+
## batched_transaction_report_request
|
15
|
+
|
16
|
+
> <BatchTransactionReportResponse> batched_transaction_report_request(merchantid, batch_no, batch_transaction_report_request)
|
17
|
+
|
18
|
+
Batch Transaction Report Request
|
19
|
+
|
20
|
+
Retrieves transactions available on a given batch.
|
21
|
+
|
22
|
+
### Examples
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'time'
|
26
|
+
require 'citypay_api_client'
|
27
|
+
# setup authorization
|
28
|
+
CityPayApiClient.configure do |config|
|
29
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = CityPayApiClient::ReportingApi.new
|
33
|
+
merchantid = 56 # Integer | A merchant ID (MID) for which data is requested. This field allows for filtering of the request by a specific merchant account.
|
34
|
+
batch_no = 'batch_no_example' # String | The batch number that is being requested.
|
35
|
+
batch_transaction_report_request = CityPayApiClient::BatchTransactionReportRequest.new # BatchTransactionReportRequest |
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Batch Transaction Report Request
|
39
|
+
result = api_instance.batched_transaction_report_request(merchantid, batch_no, batch_transaction_report_request)
|
40
|
+
p result
|
41
|
+
rescue CityPayApiClient::ApiError => e
|
42
|
+
puts "Error when calling ReportingApi->batched_transaction_report_request: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the batched_transaction_report_request_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<BatchTransactionReportResponse>, Integer, Hash)> batched_transaction_report_request_with_http_info(merchantid, batch_no, batch_transaction_report_request)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Batch Transaction Report Request
|
55
|
+
data, status_code, headers = api_instance.batched_transaction_report_request_with_http_info(merchantid, batch_no, batch_transaction_report_request)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <BatchTransactionReportResponse>
|
59
|
+
rescue CityPayApiClient::ApiError => e
|
60
|
+
puts "Error when calling ReportingApi->batched_transaction_report_request_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **merchantid** | **Integer** | A merchant ID (MID) for which data is requested. This field allows for filtering of the request by a specific merchant account. | |
|
69
|
+
| **batch_no** | **String** | The batch number that is being requested. | |
|
70
|
+
| **batch_transaction_report_request** | [**BatchTransactionReportRequest**](BatchTransactionReportRequest.md) | | |
|
71
|
+
|
72
|
+
### Return type
|
73
|
+
|
74
|
+
[**BatchTransactionReportResponse**](BatchTransactionReportResponse.md)
|
75
|
+
|
76
|
+
### Authorization
|
77
|
+
|
78
|
+
[cp-api-key](../README.md#cp-api-key)
|
79
|
+
|
80
|
+
### HTTP request headers
|
81
|
+
|
82
|
+
- **Content-Type**: application/json, text/xml
|
83
|
+
- **Accept**: application/json, text/xml
|
84
|
+
|
85
|
+
|
86
|
+
## merchant_batch_report_request
|
87
|
+
|
88
|
+
> <MerchantBatchReportResponse> merchant_batch_report_request(merchant_batch_report_request)
|
89
|
+
|
90
|
+
Merchant Batch Report Request
|
91
|
+
|
92
|
+
Retrieves a report of merchant batches within a specified date range.
|
93
|
+
Batches, which aggregate daily processing activities, are typically generated at `00:00` each day.
|
94
|
+
These batches play a crucial role in the settlement of funds by summarising daily transactions.
|
95
|
+
|
96
|
+
|
97
|
+
### Examples
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
require 'time'
|
101
|
+
require 'citypay_api_client'
|
102
|
+
# setup authorization
|
103
|
+
CityPayApiClient.configure do |config|
|
104
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
105
|
+
end
|
106
|
+
|
107
|
+
api_instance = CityPayApiClient::ReportingApi.new
|
108
|
+
merchant_batch_report_request = CityPayApiClient::MerchantBatchReportRequest.new # MerchantBatchReportRequest |
|
109
|
+
|
110
|
+
begin
|
111
|
+
# Merchant Batch Report Request
|
112
|
+
result = api_instance.merchant_batch_report_request(merchant_batch_report_request)
|
113
|
+
p result
|
114
|
+
rescue CityPayApiClient::ApiError => e
|
115
|
+
puts "Error when calling ReportingApi->merchant_batch_report_request: #{e}"
|
116
|
+
end
|
117
|
+
```
|
118
|
+
|
119
|
+
#### Using the merchant_batch_report_request_with_http_info variant
|
120
|
+
|
121
|
+
This returns an Array which contains the response data, status code and headers.
|
122
|
+
|
123
|
+
> <Array(<MerchantBatchReportResponse>, Integer, Hash)> merchant_batch_report_request_with_http_info(merchant_batch_report_request)
|
124
|
+
|
125
|
+
```ruby
|
126
|
+
begin
|
127
|
+
# Merchant Batch Report Request
|
128
|
+
data, status_code, headers = api_instance.merchant_batch_report_request_with_http_info(merchant_batch_report_request)
|
129
|
+
p status_code # => 2xx
|
130
|
+
p headers # => { ... }
|
131
|
+
p data # => <MerchantBatchReportResponse>
|
132
|
+
rescue CityPayApiClient::ApiError => e
|
133
|
+
puts "Error when calling ReportingApi->merchant_batch_report_request_with_http_info: #{e}"
|
134
|
+
end
|
135
|
+
```
|
136
|
+
|
137
|
+
### Parameters
|
138
|
+
|
139
|
+
| Name | Type | Description | Notes |
|
140
|
+
| ---- | ---- | ----------- | ----- |
|
141
|
+
| **merchant_batch_report_request** | [**MerchantBatchReportRequest**](MerchantBatchReportRequest.md) | | |
|
142
|
+
|
143
|
+
### Return type
|
144
|
+
|
145
|
+
[**MerchantBatchReportResponse**](MerchantBatchReportResponse.md)
|
146
|
+
|
147
|
+
### Authorization
|
148
|
+
|
149
|
+
[cp-api-key](../README.md#cp-api-key)
|
150
|
+
|
151
|
+
### HTTP request headers
|
152
|
+
|
153
|
+
- **Content-Type**: application/json, text/xml
|
154
|
+
- **Accept**: application/json, text/xml
|
155
|
+
|
156
|
+
|
157
|
+
## merchant_batch_request
|
158
|
+
|
159
|
+
> <MerchantBatchResponse> merchant_batch_request(merchantid, batch_no)
|
160
|
+
|
161
|
+
Merchant Batch Request
|
162
|
+
|
163
|
+
Retrieves a report of merchant a merchant batch for a specified batch number.
|
164
|
+
|
165
|
+
### Examples
|
166
|
+
|
167
|
+
```ruby
|
168
|
+
require 'time'
|
169
|
+
require 'citypay_api_client'
|
170
|
+
# setup authorization
|
171
|
+
CityPayApiClient.configure do |config|
|
172
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
173
|
+
end
|
174
|
+
|
175
|
+
api_instance = CityPayApiClient::ReportingApi.new
|
176
|
+
merchantid = 56 # Integer | A merchant ID (MID) for which data is requested. This field allows for filtering of the request by a specific merchant account.
|
177
|
+
batch_no = 'batch_no_example' # String | The batch number that is being requested.
|
178
|
+
|
179
|
+
begin
|
180
|
+
# Merchant Batch Request
|
181
|
+
result = api_instance.merchant_batch_request(merchantid, batch_no)
|
182
|
+
p result
|
183
|
+
rescue CityPayApiClient::ApiError => e
|
184
|
+
puts "Error when calling ReportingApi->merchant_batch_request: #{e}"
|
185
|
+
end
|
186
|
+
```
|
187
|
+
|
188
|
+
#### Using the merchant_batch_request_with_http_info variant
|
189
|
+
|
190
|
+
This returns an Array which contains the response data, status code and headers.
|
191
|
+
|
192
|
+
> <Array(<MerchantBatchResponse>, Integer, Hash)> merchant_batch_request_with_http_info(merchantid, batch_no)
|
193
|
+
|
194
|
+
```ruby
|
195
|
+
begin
|
196
|
+
# Merchant Batch Request
|
197
|
+
data, status_code, headers = api_instance.merchant_batch_request_with_http_info(merchantid, batch_no)
|
198
|
+
p status_code # => 2xx
|
199
|
+
p headers # => { ... }
|
200
|
+
p data # => <MerchantBatchResponse>
|
201
|
+
rescue CityPayApiClient::ApiError => e
|
202
|
+
puts "Error when calling ReportingApi->merchant_batch_request_with_http_info: #{e}"
|
203
|
+
end
|
204
|
+
```
|
205
|
+
|
206
|
+
### Parameters
|
207
|
+
|
208
|
+
| Name | Type | Description | Notes |
|
209
|
+
| ---- | ---- | ----------- | ----- |
|
210
|
+
| **merchantid** | **Integer** | A merchant ID (MID) for which data is requested. This field allows for filtering of the request by a specific merchant account. | |
|
211
|
+
| **batch_no** | **String** | The batch number that is being requested. | |
|
212
|
+
|
213
|
+
### Return type
|
214
|
+
|
215
|
+
[**MerchantBatchResponse**](MerchantBatchResponse.md)
|
216
|
+
|
217
|
+
### Authorization
|
218
|
+
|
219
|
+
[cp-api-key](../README.md#cp-api-key)
|
220
|
+
|
221
|
+
### HTTP request headers
|
222
|
+
|
223
|
+
- **Content-Type**: Not defined
|
224
|
+
- **Accept**: application/json, text/xml
|
225
|
+
|
226
|
+
|
227
|
+
## remittance_range_report
|
228
|
+
|
229
|
+
> <RemittanceReportResponse> remittance_range_report(clientid, remittance_report_request)
|
230
|
+
|
231
|
+
Remittance Report Request
|
232
|
+
|
233
|
+
Fetches remittance reports for financial transactions within a specified date range,
|
234
|
+
covering all client-related activities. This report consolidates all batches disbursed to a
|
235
|
+
client, with each remittance summarising the aggregation of batches leading up to settlement.
|
236
|
+
Additionally, the net remittance amount presented in the final settlement will reflect any
|
237
|
+
deductions made by the acquirer.
|
238
|
+
|
239
|
+
|
240
|
+
### Examples
|
241
|
+
|
242
|
+
```ruby
|
243
|
+
require 'time'
|
244
|
+
require 'citypay_api_client'
|
245
|
+
# setup authorization
|
246
|
+
CityPayApiClient.configure do |config|
|
247
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
248
|
+
end
|
249
|
+
|
250
|
+
api_instance = CityPayApiClient::ReportingApi.new
|
251
|
+
clientid = 'clientid_example' # String | A client Id for which data is requested.
|
252
|
+
remittance_report_request = CityPayApiClient::RemittanceReportRequest.new # RemittanceReportRequest |
|
253
|
+
|
254
|
+
begin
|
255
|
+
# Remittance Report Request
|
256
|
+
result = api_instance.remittance_range_report(clientid, remittance_report_request)
|
257
|
+
p result
|
258
|
+
rescue CityPayApiClient::ApiError => e
|
259
|
+
puts "Error when calling ReportingApi->remittance_range_report: #{e}"
|
260
|
+
end
|
261
|
+
```
|
262
|
+
|
263
|
+
#### Using the remittance_range_report_with_http_info variant
|
264
|
+
|
265
|
+
This returns an Array which contains the response data, status code and headers.
|
266
|
+
|
267
|
+
> <Array(<RemittanceReportResponse>, Integer, Hash)> remittance_range_report_with_http_info(clientid, remittance_report_request)
|
268
|
+
|
269
|
+
```ruby
|
270
|
+
begin
|
271
|
+
# Remittance Report Request
|
272
|
+
data, status_code, headers = api_instance.remittance_range_report_with_http_info(clientid, remittance_report_request)
|
273
|
+
p status_code # => 2xx
|
274
|
+
p headers # => { ... }
|
275
|
+
p data # => <RemittanceReportResponse>
|
276
|
+
rescue CityPayApiClient::ApiError => e
|
277
|
+
puts "Error when calling ReportingApi->remittance_range_report_with_http_info: #{e}"
|
278
|
+
end
|
279
|
+
```
|
280
|
+
|
281
|
+
### Parameters
|
282
|
+
|
283
|
+
| Name | Type | Description | Notes |
|
284
|
+
| ---- | ---- | ----------- | ----- |
|
285
|
+
| **clientid** | **String** | A client Id for which data is requested. | |
|
286
|
+
| **remittance_report_request** | [**RemittanceReportRequest**](RemittanceReportRequest.md) | | |
|
287
|
+
|
288
|
+
### Return type
|
289
|
+
|
290
|
+
[**RemittanceReportResponse**](RemittanceReportResponse.md)
|
291
|
+
|
292
|
+
### Authorization
|
293
|
+
|
294
|
+
[cp-api-key](../README.md#cp-api-key)
|
295
|
+
|
296
|
+
### HTTP request headers
|
297
|
+
|
298
|
+
- **Content-Type**: application/json, text/xml
|
299
|
+
- **Accept**: application/json, text/xml
|
300
|
+
|
301
|
+
|
302
|
+
## remittance_report_request
|
303
|
+
|
304
|
+
> <RemittedClientData> remittance_report_request(clientid, date)
|
305
|
+
|
306
|
+
Remittance Date Report Request
|
307
|
+
|
308
|
+
Fetches remittance reports for financial transactions for a given date,
|
309
|
+
covering all client-related activities. This report consolidates all batches disbursed to a
|
310
|
+
client, with each remittance summarising the aggregation of batches leading up to settlement.
|
311
|
+
Additionally, the net remittance amount presented in the final settlement will reflect any
|
312
|
+
deductions made by the acquirer.
|
313
|
+
|
314
|
+
The process also supports the notion of *today* deferring the date to today's date or *latest* reflecting the
|
315
|
+
latest remittance date available.
|
316
|
+
|
317
|
+
|
318
|
+
### Examples
|
319
|
+
|
320
|
+
```ruby
|
321
|
+
require 'time'
|
322
|
+
require 'citypay_api_client'
|
323
|
+
# setup authorization
|
324
|
+
CityPayApiClient.configure do |config|
|
325
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
326
|
+
end
|
327
|
+
|
328
|
+
api_instance = CityPayApiClient::ReportingApi.new
|
329
|
+
clientid = 'clientid_example' # String | A client Id for which data is requested.
|
330
|
+
date = 'date_example' # String | Date (YYYY-MM-DD) to filter the request for.
|
331
|
+
|
332
|
+
begin
|
333
|
+
# Remittance Date Report Request
|
334
|
+
result = api_instance.remittance_report_request(clientid, date)
|
335
|
+
p result
|
336
|
+
rescue CityPayApiClient::ApiError => e
|
337
|
+
puts "Error when calling ReportingApi->remittance_report_request: #{e}"
|
338
|
+
end
|
339
|
+
```
|
340
|
+
|
341
|
+
#### Using the remittance_report_request_with_http_info variant
|
342
|
+
|
343
|
+
This returns an Array which contains the response data, status code and headers.
|
344
|
+
|
345
|
+
> <Array(<RemittedClientData>, Integer, Hash)> remittance_report_request_with_http_info(clientid, date)
|
346
|
+
|
347
|
+
```ruby
|
348
|
+
begin
|
349
|
+
# Remittance Date Report Request
|
350
|
+
data, status_code, headers = api_instance.remittance_report_request_with_http_info(clientid, date)
|
351
|
+
p status_code # => 2xx
|
352
|
+
p headers # => { ... }
|
353
|
+
p data # => <RemittedClientData>
|
354
|
+
rescue CityPayApiClient::ApiError => e
|
355
|
+
puts "Error when calling ReportingApi->remittance_report_request_with_http_info: #{e}"
|
356
|
+
end
|
357
|
+
```
|
358
|
+
|
359
|
+
### Parameters
|
360
|
+
|
361
|
+
| Name | Type | Description | Notes |
|
362
|
+
| ---- | ---- | ----------- | ----- |
|
363
|
+
| **clientid** | **String** | A client Id for which data is requested. | |
|
364
|
+
| **date** | **String** | Date (YYYY-MM-DD) to filter the request for. | |
|
365
|
+
|
366
|
+
### Return type
|
367
|
+
|
368
|
+
[**RemittedClientData**](RemittedClientData.md)
|
369
|
+
|
370
|
+
### Authorization
|
371
|
+
|
372
|
+
[cp-api-key](../README.md#cp-api-key)
|
373
|
+
|
374
|
+
### HTTP request headers
|
375
|
+
|
376
|
+
- **Content-Type**: Not defined
|
377
|
+
- **Accept**: application/json, text/xml
|
378
|
+
|
data/docs/ThreeDSecure.md
CHANGED
@@ -11,7 +11,7 @@
|
|
11
11
|
| **browser_language** | **String** | BrowserLanguage field used for 3DSv2 browser enablement. Recommendation is to use citypay.js and the `bx` function to gather this value. | [optional] |
|
12
12
|
| **browser_screen_height** | **String** | BrowserScreenHeight field used for 3DSv2 browser enablement. Recommendation is to use citypay.js and the `bx` function to gather this value. | [optional] |
|
13
13
|
| **browser_screen_width** | **String** | BrowserScreenWidth field used for 3DSv2 browser enablement. Recommendation is to use citypay.js and the `bx` function to gather this value. | [optional] |
|
14
|
-
| **browser_tz** | **String** | BrowserTZ field used for 3DSv2 browser enablement. Recommendation is to use citypay.js and the `bx` function to gather this value. | [optional] |
|
14
|
+
| **browser_tz** | **String** | BrowserTZ offset field used for 3DSv2 browser enablement. Recommendation is to use citypay.js and the `bx` function to gather this value. | [optional] |
|
15
15
|
| **cp_bx** | **String** | Required for 3DSv2. Browser extension value produced by the citypay.js `bx` function. See [https://sandbox.citypay.com/3dsv2/bx](https://sandbox.citypay.com/3dsv2/bx) for details. | [optional] |
|
16
16
|
| **downgrade1** | **Boolean** | Where a merchant is configured for 3DSv2, setting this option will attempt to downgrade the transaction to 3DSv1. | [optional] |
|
17
17
|
| **merchant_termurl** | **String** | A controller URL for 3D-Secure processing that any response from an authentication request or challenge request should be sent to. The controller should forward on the response from the URL back via this API for subsequent processing. | [optional] |
|
@@ -11,9 +11,9 @@
|
|
11
11
|
| **eci** | **String** | An Electronic Commerce Indicator (ECI) used to identify the result of authentication using 3DSecure. | [optional] |
|
12
12
|
| **identifier** | **String** | The identifier provided within the request. | [optional] |
|
13
13
|
| **maskedpan** | **String** | A masked value of the card number used for processing displaying limited values that can be used on a receipt. | [optional] |
|
14
|
-
| **scheme** | **String** |
|
14
|
+
| **scheme** | **String** | The name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard. | [optional] |
|
15
15
|
| **sig_id** | **String** | A Base58 encoded SHA-256 digest generated from the token value Base58 decoded and appended with the nonce value UTF-8 decoded. | [optional] |
|
16
|
-
| **token** | **String** | The token used for presentment to authorisation later in the
|
16
|
+
| **token** | **String** | The token used for presentment to authorisation later in the processing flow. | [optional] |
|
17
17
|
|
18
18
|
## Example
|
19
19
|
|
@@ -25,7 +25,7 @@ instance = CityPayApiClient::TokenisationResponseModel.new(
|
|
25
25
|
bin_commercial: null,
|
26
26
|
bin_debit: null,
|
27
27
|
bin_description: Platinum Card,
|
28
|
-
eci:
|
28
|
+
eci: 5,
|
29
29
|
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
30
30
|
maskedpan: 4***********0002,
|
31
31
|
scheme: Visa,
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 520.89 113.5"><defs><style>.cls-1{fill:#003b71;}.cls-2{fill:#d7c724;}</style></defs><title>citypay-logo</title><g id="Layer_2" data-name="Layer 2"><g id="Standard"><path class="cls-1" d="M139,27a45.23,45.23,0,0,1,18.67,4L156.33,44.7a39.52,39.52,0,0,0-15.57-3.22c-10.82,0-19.11,5.56-19.11,16.26,0,10.14,7.85,16.44,18.61,16.44a37.32,37.32,0,0,0,16.32-3.89l1.86,14.09a44.68,44.68,0,0,1-19.23,4.39c-19.54,0-33.44-12.61-33.44-31C105.77,38.51,119.86,27,139,27Z"/><path class="cls-2" d="M168.15,9.15a9.12,9.12,0,1,1,18.24,0,9.12,9.12,0,0,1-18.24,0Z"/><rect class="cls-1" x="169.33" y="28.19" width="15.89" height="59.35"/><path class="cls-1" d="M220.58,41.36V65.78c0,6.18,3.46,8.9,8.78,8.9a40.29,40.29,0,0,0,10.07-1.42l1.49,13.16a44.2,44.2,0,0,1-14.35,2.35c-13,0-21.82-6.74-21.82-20.71V41.36h-10V28.19h10.07v-19h15.4v19h17.18V41.36Z"/><path class="cls-1" d="M292.17,28.19h17.62l-28,67.45C277,107,269.73,113.5,257,113.5a25.67,25.67,0,0,1-11.32-2.6l2-12.73a20,20,0,0,0,7.48,1.55c6.62,0,11.32-4.64,13.17-12.12L243.77,28.19h17.55L276.84,71.4Z"/><path class="cls-1" d="M378,58.11c0,17.93-11.93,30.66-28.74,30.66-8.72,0-15.33-3-19.29-7.48v31H314.13V28.19H329.4l.31,7.17c3.9-4.94,10-8.41,19.54-8.41C366.06,27,378,40.06,378,58.11ZM346,74.55c9.4,0,16.08-7.1,16.08-16.5,0-9.58-6.62-16.88-16.08-16.88S329.9,48.59,329.9,58.05,336.7,74.55,346,74.55Z"/><path class="cls-1" d="M384.35,57.74c0-18,12.3-30.79,28.62-30.79,9.21,0,15.45,3.53,19.35,8.41l.31-7.17h15.51V87.54H432.63l-.31-7.17c-3.9,4.94-10.14,8.4-19.35,8.4C396.65,88.77,384.35,75.73,384.35,57.74Zm31.71-16.63c-9.52,0-15.95,7.17-15.95,16.63s6.43,16.94,15.95,16.94,16.2-7.42,16.2-16.94S425.52,41.11,416.06,41.11Z"/><path class="cls-1" d="M503.27,28.19h17.62l-28,67.45c-4.76,11.37-12.05,17.86-24.79,17.86a25.62,25.62,0,0,1-11.31-2.6l2-12.73a20,20,0,0,0,7.48,1.55c6.61,0,11.31-4.64,13.17-12.12L454.86,28.19h17.56L487.94,71.4Z"/><path class="cls-2" d="M51.29,80l1.32-.26a30.92,30.92,0,0,0,0-60.65l-1.32-.27v-16l1.87.27A46.84,46.84,0,0,1,93.53,49.4a46.37,46.37,0,0,1-8.21,26.41A47.05,47.05,0,0,1,64.79,92.52L54.33,108.71l-3,4.79Z"/><path class="cls-1" d="M40.28,95.68C17.31,92.3,0,72.41,0,49.4A47.13,47.13,0,0,1,40.16,3.13l2.28-.25v16l-1.63.25a30.87,30.87,0,0,0-.07,60.57l1.7.24v16Z"/><path class="cls-1" d="M46.55,69.05C35.24,69.05,26,60.27,26,49.47S35.24,29.9,46.55,29.9s20.52,8.78,20.52,19.57S57.87,69.05,46.55,69.05Z"/></g></g></svg>
|
Binary file
|
Binary file
|
Binary file
|