citypay_api_client 1.1.1 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +15 -14
- data/citypay_api_client.gemspec +4 -3
- data/docs/AirlineAdvice.md +1 -1
- data/docs/AuthRequest.md +3 -1
- data/docs/AuthResponse.md +5 -1
- data/docs/AuthorisationAndPaymentApi.md +300 -9
- data/docs/BatchProcessingApi.md +15 -11
- data/docs/BatchTransactionResultModel.md +5 -1
- data/docs/Card.md +1 -1
- data/docs/CardHolderAccountApi.md +64 -9
- data/docs/ChargeRequest.md +2 -0
- data/docs/ContactDetails.md +11 -11
- data/docs/DirectPostApi.md +40 -16
- data/docs/DirectPostRequest.md +3 -1
- data/docs/OperationalFunctionsApi.md +28 -8
- data/docs/PaylinkApi.md +249 -73
- data/docs/PaylinkCustomParam.md +3 -1
- data/docs/PaylinkFieldGuardModel.md +1 -1
- data/docs/PaylinkTokenRequestModel.md +4 -0
- data/docs/RegisterCard.md +1 -1
- data/docs/ThreeDSecure.md +1 -1
- data/docs/TokenisationResponseModel.md +2 -2
- data/docs/images/3dsv1-challenge.png +0 -0
- data/docs/images/3dsv2-challenge.png +0 -0
- data/docs/images/3dsv2-frictionless.png +0 -0
- data/docs/images/3dsv2-method-challenge.png +0 -0
- data/docs/images/3dsv2-method-frictionless.png +0 -0
- data/docs/images/3dsv2-no3d.png +0 -0
- data/docs/images/citypay-logo.svg +1 -0
- data/docs/images/direct-post-flow.png +0 -0
- data/docs/images/favicon.ico +0 -0
- data/docs/images/header.png +0 -0
- data/docs/images/logo.ai +1913 -4
- data/docs/images/logo.png +0 -0
- data/docs/images/logo.svg +1 -0
- data/docs/images/merchant-BPS-workflow.png +0 -0
- data/docs/images/paylink-field-guards.png +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +4 -4
- data/lib/citypay_api_client/api/batch_processing_api__.rb +11 -11
- data/lib/citypay_api_client/api/card_holder_account_api__.rb +2 -2
- data/lib/citypay_api_client/api/direct_post_api__.rb +5 -5
- data/lib/citypay_api_client/api/operational_functions_api__.rb +3 -3
- data/lib/citypay_api_client/api/paylink_api__.rb +74 -74
- 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 +27 -24
- data/lib/citypay_api_client/models/acl_check_request.rb +17 -20
- data/lib/citypay_api_client/models/acl_check_response_model.rb +15 -20
- 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 +66 -29
- data/lib/citypay_api_client/models/auth_response.rb +45 -22
- data/lib/citypay_api_client/models/authen_required.rb +15 -20
- data/lib/citypay_api_client/models/batch.rb +24 -21
- data/lib/citypay_api_client/models/batch_report_request.rb +23 -22
- data/lib/citypay_api_client/models/batch_report_response_model.rb +27 -20
- data/lib/citypay_api_client/models/batch_transaction.rb +25 -22
- 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 +66 -29
- 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 +15 -20
- data/lib/citypay_api_client/models/direct_post_request.rb +66 -29
- 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/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_sms_notification_path.rb +17 -20
- data/lib/citypay_api_client/models/paylink_state_event.rb +15 -20
- data/lib/citypay_api_client/models/paylink_token_created.rb +21 -20
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +75 -22
- data/lib/citypay_api_client/models/paylink_token_status.rb +15 -20
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +19 -20
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +17 -20
- data/lib/citypay_api_client/models/paylink_ui.rb +15 -20
- 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/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 +2 -2
- data/spec/.DS_Store +0 -0
- data/spec/it_api_sandbox_spec.rb +5 -11
- 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_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/direct_post_request_spec.rb +0 -2
- data/spec/models/domain_key_check_request_spec.rb +0 -2
- data/spec/models/paylink_token_request_model_spec.rb +0 -2
- 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/spec_helper.rb +2 -2
- metadata +25 -12
- data/docs/OperationalApi.md +0 -214
- data/docs/PaymentProcessingApi.md +0 -559
data/docs/OperationalApi.md
DELETED
@@ -1,214 +0,0 @@
|
|
1
|
-
# CityPayApiClient::OperationalApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://api.citypay.com/v6*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**acl_check_request**](OperationalApi.md#acl_check_request) | **POST** /acl/check | ACL Check Request |
|
8
|
-
| [**list_merchants_request**](OperationalApi.md#list_merchants_request) | **GET** /merchants/{clientid} | List Merchants Request |
|
9
|
-
| [**ping_request**](OperationalApi.md#ping_request) | **POST** /ping | Ping Request |
|
10
|
-
|
11
|
-
|
12
|
-
## acl_check_request
|
13
|
-
|
14
|
-
> <AclCheckResponseModel> acl_check_request(acl_check_request)
|
15
|
-
|
16
|
-
ACL Check Request
|
17
|
-
|
18
|
-
Allows the checking of IP addresses against configured ACLs. Requests can perform a lookup of addresses in subnets and services such as AWS or Azure to check that those addresses are listed in the ACLs.
|
19
|
-
|
20
|
-
### Examples
|
21
|
-
|
22
|
-
```ruby
|
23
|
-
require 'time'
|
24
|
-
require 'citypay_api_client'
|
25
|
-
# setup authorization
|
26
|
-
CityPayApiClient.configure do |config|
|
27
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
28
|
-
end
|
29
|
-
|
30
|
-
api_instance = CityPayApiClient::OperationalApi.new
|
31
|
-
acl_check_request = CityPayApiClient::AclCheckRequest.new # AclCheckRequest |
|
32
|
-
|
33
|
-
begin
|
34
|
-
# ACL Check Request
|
35
|
-
result = api_instance.acl_check_request(acl_check_request)
|
36
|
-
p result
|
37
|
-
rescue CityPayApiClient::ApiError => e
|
38
|
-
puts "Error when calling OperationalApi->acl_check_request: #{e}"
|
39
|
-
end
|
40
|
-
```
|
41
|
-
|
42
|
-
#### Using the acl_check_request_with_http_info variant
|
43
|
-
|
44
|
-
This returns an Array which contains the response data, status code and headers.
|
45
|
-
|
46
|
-
> <Array(<AclCheckResponseModel>, Integer, Hash)> acl_check_request_with_http_info(acl_check_request)
|
47
|
-
|
48
|
-
```ruby
|
49
|
-
begin
|
50
|
-
# ACL Check Request
|
51
|
-
data, status_code, headers = api_instance.acl_check_request_with_http_info(acl_check_request)
|
52
|
-
p status_code # => 2xx
|
53
|
-
p headers # => { ... }
|
54
|
-
p data # => <AclCheckResponseModel>
|
55
|
-
rescue CityPayApiClient::ApiError => e
|
56
|
-
puts "Error when calling OperationalApi->acl_check_request_with_http_info: #{e}"
|
57
|
-
end
|
58
|
-
```
|
59
|
-
|
60
|
-
### Parameters
|
61
|
-
|
62
|
-
| Name | Type | Description | Notes |
|
63
|
-
| ---- | ---- | ----------- | ----- |
|
64
|
-
| **acl_check_request** | [**AclCheckRequest**](AclCheckRequest.md) | | |
|
65
|
-
|
66
|
-
### Return type
|
67
|
-
|
68
|
-
[**AclCheckResponseModel**](AclCheckResponseModel.md)
|
69
|
-
|
70
|
-
### Authorization
|
71
|
-
|
72
|
-
[cp-api-key](../README.md#cp-api-key)
|
73
|
-
|
74
|
-
### HTTP request headers
|
75
|
-
|
76
|
-
- **Content-Type**: application/json, text/xml
|
77
|
-
- **Accept**: application/json, text/xml
|
78
|
-
|
79
|
-
|
80
|
-
## list_merchants_request
|
81
|
-
|
82
|
-
> <ListMerchantsResponse> list_merchants_request(clientid)
|
83
|
-
|
84
|
-
List Merchants Request
|
85
|
-
|
86
|
-
An operational request to list current merchants for a client. ### Sorting Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid` Fields that can be sorted are `merchantid` or `name`.
|
87
|
-
|
88
|
-
### Examples
|
89
|
-
|
90
|
-
```ruby
|
91
|
-
require 'time'
|
92
|
-
require 'citypay_api_client'
|
93
|
-
# setup authorization
|
94
|
-
CityPayApiClient.configure do |config|
|
95
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
96
|
-
end
|
97
|
-
|
98
|
-
api_instance = CityPayApiClient::OperationalApi.new
|
99
|
-
clientid = 'clientid_example' # String | The client id to return merchants for, specifying \"default\" will use the value in your api key.
|
100
|
-
|
101
|
-
begin
|
102
|
-
# List Merchants Request
|
103
|
-
result = api_instance.list_merchants_request(clientid)
|
104
|
-
p result
|
105
|
-
rescue CityPayApiClient::ApiError => e
|
106
|
-
puts "Error when calling OperationalApi->list_merchants_request: #{e}"
|
107
|
-
end
|
108
|
-
```
|
109
|
-
|
110
|
-
#### Using the list_merchants_request_with_http_info variant
|
111
|
-
|
112
|
-
This returns an Array which contains the response data, status code and headers.
|
113
|
-
|
114
|
-
> <Array(<ListMerchantsResponse>, Integer, Hash)> list_merchants_request_with_http_info(clientid)
|
115
|
-
|
116
|
-
```ruby
|
117
|
-
begin
|
118
|
-
# List Merchants Request
|
119
|
-
data, status_code, headers = api_instance.list_merchants_request_with_http_info(clientid)
|
120
|
-
p status_code # => 2xx
|
121
|
-
p headers # => { ... }
|
122
|
-
p data # => <ListMerchantsResponse>
|
123
|
-
rescue CityPayApiClient::ApiError => e
|
124
|
-
puts "Error when calling OperationalApi->list_merchants_request_with_http_info: #{e}"
|
125
|
-
end
|
126
|
-
```
|
127
|
-
|
128
|
-
### Parameters
|
129
|
-
|
130
|
-
| Name | Type | Description | Notes |
|
131
|
-
| ---- | ---- | ----------- | ----- |
|
132
|
-
| **clientid** | **String** | The client id to return merchants for, specifying \"default\" will use the value in your api key. | |
|
133
|
-
|
134
|
-
### Return type
|
135
|
-
|
136
|
-
[**ListMerchantsResponse**](ListMerchantsResponse.md)
|
137
|
-
|
138
|
-
### Authorization
|
139
|
-
|
140
|
-
[cp-api-key](../README.md#cp-api-key)
|
141
|
-
|
142
|
-
### HTTP request headers
|
143
|
-
|
144
|
-
- **Content-Type**: Not defined
|
145
|
-
- **Accept**: application/json, text/xml
|
146
|
-
|
147
|
-
|
148
|
-
## ping_request
|
149
|
-
|
150
|
-
> <Acknowledgement> ping_request(ping)
|
151
|
-
|
152
|
-
Ping Request
|
153
|
-
|
154
|
-
A ping request which performs a connection and authentication test to the CityPay API server. The request will return a standard Acknowledgement with a response code `044` to signify a successful ping. The ping call is useful to confirm that you will be able to access the API from behind any firewalls and that the permission model is granting access from your source.
|
155
|
-
|
156
|
-
### Examples
|
157
|
-
|
158
|
-
```ruby
|
159
|
-
require 'time'
|
160
|
-
require 'citypay_api_client'
|
161
|
-
# setup authorization
|
162
|
-
CityPayApiClient.configure do |config|
|
163
|
-
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
164
|
-
end
|
165
|
-
|
166
|
-
api_instance = CityPayApiClient::OperationalApi.new
|
167
|
-
ping = CityPayApiClient::Ping.new # Ping |
|
168
|
-
|
169
|
-
begin
|
170
|
-
# Ping Request
|
171
|
-
result = api_instance.ping_request(ping)
|
172
|
-
p result
|
173
|
-
rescue CityPayApiClient::ApiError => e
|
174
|
-
puts "Error when calling OperationalApi->ping_request: #{e}"
|
175
|
-
end
|
176
|
-
```
|
177
|
-
|
178
|
-
#### Using the ping_request_with_http_info variant
|
179
|
-
|
180
|
-
This returns an Array which contains the response data, status code and headers.
|
181
|
-
|
182
|
-
> <Array(<Acknowledgement>, Integer, Hash)> ping_request_with_http_info(ping)
|
183
|
-
|
184
|
-
```ruby
|
185
|
-
begin
|
186
|
-
# Ping Request
|
187
|
-
data, status_code, headers = api_instance.ping_request_with_http_info(ping)
|
188
|
-
p status_code # => 2xx
|
189
|
-
p headers # => { ... }
|
190
|
-
p data # => <Acknowledgement>
|
191
|
-
rescue CityPayApiClient::ApiError => e
|
192
|
-
puts "Error when calling OperationalApi->ping_request_with_http_info: #{e}"
|
193
|
-
end
|
194
|
-
```
|
195
|
-
|
196
|
-
### Parameters
|
197
|
-
|
198
|
-
| Name | Type | Description | Notes |
|
199
|
-
| ---- | ---- | ----------- | ----- |
|
200
|
-
| **ping** | [**Ping**](Ping.md) | | |
|
201
|
-
|
202
|
-
### Return type
|
203
|
-
|
204
|
-
[**Acknowledgement**](Acknowledgement.md)
|
205
|
-
|
206
|
-
### Authorization
|
207
|
-
|
208
|
-
[cp-api-key](../README.md#cp-api-key)
|
209
|
-
|
210
|
-
### HTTP request headers
|
211
|
-
|
212
|
-
- **Content-Type**: application/json, text/xml
|
213
|
-
- **Accept**: application/json, text/xml
|
214
|
-
|