citypay_api_client 1.0.3 → 1.1.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +111 -39
- data/citypay_api_client.gemspec +5 -5
- data/docs/AccountCreate.md +10 -9
- data/docs/AccountStatus.md +8 -7
- data/docs/Acknowledgement.md +14 -13
- data/docs/AclCheckRequest.md +18 -0
- data/docs/AclCheckResponseModel.md +24 -0
- data/docs/AirlineAdvice.md +38 -37
- data/docs/AirlineSegment.md +22 -21
- data/docs/AuthReference.md +34 -33
- data/docs/AuthReferences.md +8 -7
- data/docs/AuthRequest.md +52 -49
- data/docs/AuthResponse.md +64 -59
- data/docs/AuthenRequired.md +12 -11
- data/docs/AuthorisationAndPaymentApi.md +850 -0
- data/docs/Batch.md +22 -0
- data/docs/BatchProcessingApi.md +218 -0
- data/docs/BatchReportRequest.md +20 -0
- data/docs/BatchReportResponseModel.md +28 -0
- data/docs/BatchTransaction.md +24 -0
- data/docs/BatchTransactionResultModel.md +44 -0
- data/docs/Bin.md +34 -0
- data/docs/BinLookup.md +18 -0
- data/docs/CResAuthRequest.md +8 -7
- data/docs/CaptureRequest.md +18 -17
- data/docs/Card.md +46 -41
- data/docs/CardHolderAccount.md +24 -21
- data/docs/CardHolderAccountApi.md +387 -111
- data/docs/CardStatus.md +10 -9
- data/docs/ChargeRequest.md +38 -31
- data/docs/CheckBatchStatus.md +20 -0
- data/docs/CheckBatchStatusResponse.md +18 -0
- data/docs/ContactDetails.md +32 -31
- data/docs/Decision.md +12 -11
- data/docs/DirectPostApi.md +389 -0
- data/docs/DirectPostRequest.md +60 -0
- data/docs/DirectTokenAuthRequest.md +24 -0
- data/docs/DomainKeyCheckRequest.md +18 -0
- data/docs/DomainKeyRequest.md +22 -0
- data/docs/DomainKeyResponse.md +26 -0
- data/docs/Error.md +16 -13
- data/docs/EventDataModel.md +26 -0
- data/docs/Exists.md +22 -0
- data/docs/ExternalMPI.md +16 -15
- data/docs/ListMerchantsResponse.md +12 -11
- data/docs/MCC6012.md +14 -13
- data/docs/Merchant.md +16 -15
- data/docs/OperationalFunctionsApi.md +375 -0
- data/docs/PaResAuthRequest.md +10 -9
- data/docs/PaylinkAddress.md +30 -0
- data/docs/PaylinkAdjustmentRequest.md +22 -0
- data/docs/PaylinkApi.md +806 -0
- data/docs/PaylinkAttachmentRequest.md +26 -0
- data/docs/PaylinkAttachmentResult.md +22 -0
- data/docs/PaylinkBillPaymentTokenRequest.md +32 -0
- data/docs/PaylinkCardHolder.md +36 -0
- data/docs/PaylinkCart.md +30 -0
- data/docs/PaylinkCartItemModel.md +32 -0
- data/docs/PaylinkConfig.md +60 -0
- data/docs/PaylinkCustomParam.md +38 -0
- data/docs/PaylinkEmailNotificationPath.md +26 -0
- data/docs/PaylinkErrorCode.md +20 -0
- data/docs/PaylinkFieldGuardModel.md +30 -0
- data/docs/PaylinkPartPayments.md +28 -0
- data/docs/PaylinkSMSNotificationPath.md +20 -0
- data/docs/PaylinkStateEvent.md +22 -0
- data/docs/PaylinkTokenCreated.md +44 -0
- data/docs/PaylinkTokenRequestModel.md +42 -0
- data/docs/PaylinkTokenStatus.md +72 -0
- data/docs/PaylinkTokenStatusChangeRequest.md +26 -0
- data/docs/PaylinkTokenStatusChangeResponse.md +20 -0
- data/docs/PaylinkUI.md +24 -0
- data/docs/Ping.md +8 -7
- data/docs/ProcessBatchRequest.md +24 -0
- data/docs/ProcessBatchResponse.md +20 -0
- data/docs/RefundRequest.md +26 -0
- data/docs/RegisterCard.md +16 -13
- data/docs/RequestChallenged.md +16 -15
- data/docs/RetrieveRequest.md +12 -11
- data/docs/ThreeDSecure.md +32 -15
- data/docs/TokenisationResponseModel.md +36 -0
- data/docs/VoidRequest.md +12 -13
- data/docs/images/3dsv1-challenge.png +0 -0
- data/docs/images/3dsv2-challenge.png +0 -0
- data/docs/images/3dsv2-frictionless.png +0 -0
- data/docs/images/3dsv2-method-challenge.png +0 -0
- data/docs/images/3dsv2-method-frictionless.png +0 -0
- data/docs/images/3dsv2-no3d.png +0 -0
- data/docs/images/citypay-logo.svg +1 -0
- data/docs/images/direct-post-flow.png +0 -0
- data/docs/images/favicon.ico +0 -0
- data/docs/images/header.png +0 -0
- data/docs/images/logo.ai +1913 -4
- data/docs/images/logo.png +0 -0
- data/docs/images/logo.svg +1 -0
- data/docs/images/merchant-BPS-workflow.png +0 -0
- data/docs/images/paylink-field-guards.png +0 -0
- data/lib/.DS_Store +0 -0
- data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +565 -0
- data/lib/citypay_api_client/api/batch_processing_api__.rb +225 -0
- data/lib/citypay_api_client/api/{card_holder_account_api.rb → card_holder_account_api__.rb} +136 -46
- data/lib/citypay_api_client/api/direct_post_api__.rb +373 -0
- data/lib/citypay_api_client/api/operational_functions_api__.rb +356 -0
- data/lib/citypay_api_client/api/paylink_api__.rb +614 -0
- data/lib/citypay_api_client/api_client.rb +72 -70
- data/lib/citypay_api_client/api_error.rb +3 -2
- data/lib/citypay_api_client/configuration.rb +74 -17
- data/lib/citypay_api_client/models/account_create.rb +33 -23
- data/lib/citypay_api_client/models/account_status.rb +31 -23
- data/lib/citypay_api_client/models/acknowledgement.rb +43 -27
- data/lib/citypay_api_client/models/acl_check_request.rb +221 -0
- data/lib/citypay_api_client/models/acl_check_response_model.rb +244 -0
- data/lib/citypay_api_client/models/airline_advice.rb +63 -34
- data/lib/citypay_api_client/models/airline_segment.rb +51 -25
- data/lib/citypay_api_client/models/auth_reference.rb +80 -31
- data/lib/citypay_api_client/models/auth_references.rb +31 -23
- data/lib/citypay_api_client/models/auth_request.rb +137 -56
- data/lib/citypay_api_client/models/auth_response.rb +83 -123
- data/lib/citypay_api_client/models/authen_required.rb +31 -23
- data/lib/citypay_api_client/models/batch.rb +267 -0
- data/lib/citypay_api_client/models/batch_report_request.rb +278 -0
- data/lib/citypay_api_client/models/batch_report_response_model.rb +364 -0
- data/lib/citypay_api_client/models/batch_transaction.rb +324 -0
- data/lib/citypay_api_client/models/batch_transaction_result_model.rb +452 -0
- data/lib/citypay_api_client/models/bin.rb +294 -0
- data/lib/citypay_api_client/models/bin_lookup.rb +231 -0
- data/lib/citypay_api_client/models/c_res_auth_request.rb +31 -23
- data/lib/citypay_api_client/models/capture_request.rb +59 -38
- data/lib/citypay_api_client/models/card.rb +93 -29
- data/lib/citypay_api_client/models/card_holder_account.rb +49 -27
- data/lib/citypay_api_client/models/card_status.rb +31 -23
- data/lib/citypay_api_client/models/charge_request.rb +154 -47
- data/lib/citypay_api_client/models/check_batch_status.rb +260 -0
- data/lib/citypay_api_client/models/check_batch_status_response.rb +215 -0
- data/lib/citypay_api_client/models/contact_details.rb +130 -52
- data/lib/citypay_api_client/models/decision.rb +31 -23
- data/lib/citypay_api_client/models/direct_post_request.rb +707 -0
- data/lib/citypay_api_client/models/direct_token_auth_request.rb +244 -0
- data/lib/citypay_api_client/models/domain_key_check_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_request.rb +249 -0
- data/lib/citypay_api_client/models/domain_key_response.rb +297 -0
- data/lib/citypay_api_client/models/error.rb +57 -31
- data/lib/citypay_api_client/models/event_data_model.rb +254 -0
- data/lib/citypay_api_client/models/exists.rb +241 -0
- data/lib/citypay_api_client/models/external_mpi.rb +61 -27
- data/lib/citypay_api_client/models/list_merchants_response.rb +37 -25
- data/lib/citypay_api_client/models/mcc6012.rb +31 -23
- data/lib/citypay_api_client/models/merchant.rb +31 -23
- data/lib/citypay_api_client/models/pa_res_auth_request.rb +36 -24
- data/lib/citypay_api_client/models/paylink_address.rb +425 -0
- data/lib/citypay_api_client/models/paylink_adjustment_request.rb +272 -0
- data/lib/citypay_api_client/models/paylink_attachment_request.rb +268 -0
- data/lib/citypay_api_client/models/paylink_attachment_result.rb +248 -0
- data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +289 -0
- data/lib/citypay_api_client/models/paylink_card_holder.rb +360 -0
- data/lib/citypay_api_client/models/paylink_cart.rb +275 -0
- data/lib/citypay_api_client/models/paylink_cart_item_model.rb +284 -0
- data/lib/citypay_api_client/models/paylink_config.rb +428 -0
- data/lib/citypay_api_client/models/paylink_custom_param.rb +321 -0
- data/lib/citypay_api_client/models/paylink_email_notification_path.rb +265 -0
- data/lib/citypay_api_client/models/paylink_error_code.rb +238 -0
- data/lib/citypay_api_client/models/paylink_field_guard_model.rb +274 -0
- data/lib/citypay_api_client/models/paylink_part_payments.rb +264 -0
- data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +231 -0
- data/lib/citypay_api_client/models/paylink_state_event.rb +234 -0
- data/lib/citypay_api_client/models/paylink_token_created.rb +365 -0
- data/lib/citypay_api_client/models/paylink_token_request_model.rb +427 -0
- data/lib/citypay_api_client/models/paylink_token_status.rb +485 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +269 -0
- data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +232 -0
- data/lib/citypay_api_client/models/paylink_ui.rb +244 -0
- data/lib/citypay_api_client/models/ping.rb +37 -25
- data/lib/citypay_api_client/models/process_batch_request.rb +313 -0
- data/lib/citypay_api_client/models/process_batch_response.rb +231 -0
- data/lib/citypay_api_client/models/refund_request.rb +339 -0
- data/lib/citypay_api_client/models/register_card.rb +79 -27
- data/lib/citypay_api_client/models/request_challenged.rb +39 -31
- data/lib/citypay_api_client/models/retrieve_request.rb +39 -25
- data/lib/citypay_api_client/models/three_d_secure.rb +116 -28
- data/lib/citypay_api_client/models/tokenisation_response_model.rb +332 -0
- data/lib/citypay_api_client/models/void_request.rb +39 -37
- data/lib/citypay_api_client/utils/digest_utils.rb +18 -0
- data/lib/citypay_api_client/utils/direct_post_mac.rb +22 -0
- data/lib/citypay_api_client/version.rb +3 -4
- data/lib/citypay_api_client.rb +53 -6
- data/spec/.DS_Store +0 -0
- data/spec/api/authorisation_and_payment_api___spec.rb +130 -0
- data/spec/api/batch_processing_api___spec.rb +70 -0
- data/spec/api/{card_holder_account_api_spec.rb → card_holder_account_api___spec.rb} +15 -3
- data/spec/api/direct_post_api___spec.rb +98 -0
- data/spec/api/operational_functions_api___spec.rb +94 -0
- data/spec/api/paylink_api___spec.rb +131 -0
- data/spec/api_client_spec.rb +4 -4
- data/spec/configuration_spec.rb +5 -5
- data/spec/it_api_sandbox_spec.rb +117 -55
- data/spec/models/account_create_spec.rb +1 -2
- data/spec/models/account_status_spec.rb +2 -2
- data/spec/models/acknowledgement_spec.rb +7 -22
- data/spec/models/acl_check_request_spec.rb +33 -0
- data/spec/models/acl_check_response_model_spec.rb +51 -0
- data/spec/models/airline_advice_spec.rb +0 -2
- data/spec/models/airline_segment_spec.rb +0 -2
- data/spec/models/auth_references_spec.rb +7 -8
- data/spec/models/auth_request_spec.rb +0 -2
- data/spec/models/auth_response_spec.rb +77 -33
- data/spec/models/batch_report_request_spec.rb +37 -0
- data/spec/models/batch_report_response_model_spec.rb +61 -0
- data/spec/models/batch_spec.rb +43 -0
- data/spec/models/batch_transaction_result_model_spec.rb +85 -0
- data/spec/models/batch_transaction_spec.rb +49 -0
- data/spec/models/bin_lookup_spec.rb +31 -0
- data/spec/models/bin_spec.rb +81 -0
- data/spec/models/capture_request_spec.rb +0 -2
- data/spec/models/card_holder_account_spec.rb +8 -7
- data/spec/models/charge_request_spec.rb +0 -2
- data/spec/models/check_batch_status_response_spec.rb +45 -0
- data/spec/models/check_batch_status_spec.rb +39 -0
- data/spec/models/decision_spec.rb +1 -1
- data/spec/models/direct_post_request_spec.rb +151 -0
- data/spec/models/direct_token_auth_request_spec.rb +51 -0
- data/spec/models/domain_key_check_request_spec.rb +31 -0
- data/spec/models/domain_key_request_spec.rb +45 -0
- data/spec/models/domain_key_response_spec.rb +57 -0
- data/spec/models/event_data_model_spec.rb +57 -0
- data/spec/{api/operational_api_spec.rb → models/exists_spec.rb} +14 -20
- data/spec/models/list_merchants_response_spec.rb +2 -2
- data/spec/models/paylink_address_spec.rb +69 -0
- data/spec/models/paylink_adjustment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_request_spec.rb +45 -0
- data/spec/models/paylink_attachment_result_spec.rb +45 -0
- data/spec/models/paylink_bill_payment_token_request_spec.rb +63 -0
- data/spec/models/paylink_card_holder_spec.rb +87 -0
- data/spec/models/paylink_cart_item_model_spec.rb +75 -0
- data/spec/models/paylink_cart_spec.rb +69 -0
- data/spec/models/paylink_config_spec.rb +159 -0
- data/spec/models/paylink_custom_param_spec.rb +87 -0
- data/spec/models/paylink_email_notification_path_spec.rb +57 -0
- data/spec/models/paylink_error_code_spec.rb +39 -0
- data/spec/models/paylink_field_guard_model_spec.rb +45 -0
- data/spec/models/paylink_part_payments_spec.rb +63 -0
- data/spec/models/paylink_sms_notification_path_spec.rb +39 -0
- data/spec/models/paylink_state_event_spec.rb +45 -0
- data/spec/models/paylink_token_created_spec.rb +111 -0
- data/spec/models/paylink_token_request_model_spec.rb +91 -0
- data/spec/models/paylink_token_status_change_request_spec.rb +57 -0
- data/spec/models/paylink_token_status_change_response_spec.rb +39 -0
- data/spec/models/paylink_token_status_spec.rb +195 -0
- data/spec/models/paylink_ui_spec.rb +51 -0
- data/spec/models/process_batch_request_spec.rb +49 -0
- data/spec/models/process_batch_response_spec.rb +39 -0
- data/spec/models/refund_request_spec.rb +62 -0
- data/spec/models/register_card_spec.rb +0 -2
- data/spec/models/tokenisation_response_model_spec.rb +87 -0
- data/spec/spec_helper.rb +2 -2
- data/spec/utils/direct_post_mac_spec.rb +13 -0
- metadata +230 -44
- data/Gemfile.lock +0 -70
- data/docs/OperationalApi.md +0 -112
- data/docs/PaymentProcessingApi.md +0 -320
- data/git_push.sh +0 -58
- data/lib/citypay_api_client/api/operational_api.rb +0 -147
- data/lib/citypay_api_client/api/payment_processing_api.rb +0 -405
- data/lib/citypay_api_client/test.rb +0 -20
- data/spec/api/payment_processing_api_spec.rb +0 -106
data/docs/Batch.md
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
# CityPayApiClient::Batch
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **batch_date** | **Date** | The date that the file was created in ISO-8601 format. | |
|
8
|
+
| **batch_id** | **Integer** | The batch id requested. | [optional] |
|
9
|
+
| **batch_status** | **String** | The status of the batch. Possible values are - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
|
10
|
+
|
11
|
+
## Example
|
12
|
+
|
13
|
+
```ruby
|
14
|
+
require 'citypay_api_client'
|
15
|
+
|
16
|
+
instance = CityPayApiClient::Batch.new(
|
17
|
+
batch_date: Thu Jan 02 00:00:00 UTC 2020,
|
18
|
+
batch_id: 35,
|
19
|
+
batch_status: COMPLETE
|
20
|
+
)
|
21
|
+
```
|
22
|
+
|
@@ -0,0 +1,218 @@
|
|
1
|
+
# CityPayApiClient::BatchProcessingApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.citypay.com*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**batch_process_request**](BatchProcessingApi.md#batch_process_request) | **POST** /v6/batch/process | Batch Process Request |
|
8
|
+
| [**batch_retrieve_request**](BatchProcessingApi.md#batch_retrieve_request) | **POST** /v6/batch/retrieve | BatchReportRequest |
|
9
|
+
| [**check_batch_status_request**](BatchProcessingApi.md#check_batch_status_request) | **POST** /v6/batch/status | CheckBatchStatus |
|
10
|
+
|
11
|
+
|
12
|
+
## batch_process_request
|
13
|
+
|
14
|
+
> <ProcessBatchResponse> batch_process_request(process_batch_request)
|
15
|
+
|
16
|
+
Batch Process Request
|
17
|
+
|
18
|
+
A batch process request is used to start the batch process workflow by uploading batch
|
19
|
+
data and initialising a new batch for processing. Once validated the batch will be queued
|
20
|
+
for processing and further updates can be received by a subsequent call to retrieve the batch
|
21
|
+
status.
|
22
|
+
|
23
|
+
|
24
|
+
### Examples
|
25
|
+
|
26
|
+
```ruby
|
27
|
+
require 'time'
|
28
|
+
require 'citypay_api_client'
|
29
|
+
# setup authorization
|
30
|
+
CityPayApiClient.configure do |config|
|
31
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
32
|
+
end
|
33
|
+
|
34
|
+
api_instance = CityPayApiClient::BatchProcessingApi.new
|
35
|
+
process_batch_request = CityPayApiClient::ProcessBatchRequest.new({batch_date: Date.parse('Thu Jan 02 00:00:00 UTC 2020'), batch_id: 35, transactions: [CityPayApiClient::BatchTransaction.new({account_id: 'aaabbb-cccddd-eee', amount: 3600})]}) # ProcessBatchRequest |
|
36
|
+
|
37
|
+
begin
|
38
|
+
# Batch Process Request
|
39
|
+
result = api_instance.batch_process_request(process_batch_request)
|
40
|
+
p result
|
41
|
+
rescue CityPayApiClient::ApiError => e
|
42
|
+
puts "Error when calling BatchProcessingApi->batch_process_request: #{e}"
|
43
|
+
end
|
44
|
+
```
|
45
|
+
|
46
|
+
#### Using the batch_process_request_with_http_info variant
|
47
|
+
|
48
|
+
This returns an Array which contains the response data, status code and headers.
|
49
|
+
|
50
|
+
> <Array(<ProcessBatchResponse>, Integer, Hash)> batch_process_request_with_http_info(process_batch_request)
|
51
|
+
|
52
|
+
```ruby
|
53
|
+
begin
|
54
|
+
# Batch Process Request
|
55
|
+
data, status_code, headers = api_instance.batch_process_request_with_http_info(process_batch_request)
|
56
|
+
p status_code # => 2xx
|
57
|
+
p headers # => { ... }
|
58
|
+
p data # => <ProcessBatchResponse>
|
59
|
+
rescue CityPayApiClient::ApiError => e
|
60
|
+
puts "Error when calling BatchProcessingApi->batch_process_request_with_http_info: #{e}"
|
61
|
+
end
|
62
|
+
```
|
63
|
+
|
64
|
+
### Parameters
|
65
|
+
|
66
|
+
| Name | Type | Description | Notes |
|
67
|
+
| ---- | ---- | ----------- | ----- |
|
68
|
+
| **process_batch_request** | [**ProcessBatchRequest**](ProcessBatchRequest.md) | | |
|
69
|
+
|
70
|
+
### Return type
|
71
|
+
|
72
|
+
[**ProcessBatchResponse**](ProcessBatchResponse.md)
|
73
|
+
|
74
|
+
### Authorization
|
75
|
+
|
76
|
+
[cp-api-key](../README.md#cp-api-key)
|
77
|
+
|
78
|
+
### HTTP request headers
|
79
|
+
|
80
|
+
- **Content-Type**: application/json, text/xml
|
81
|
+
- **Accept**: application/json, text/xml
|
82
|
+
|
83
|
+
|
84
|
+
## batch_retrieve_request
|
85
|
+
|
86
|
+
> <BatchReportResponseModel> batch_retrieve_request(batch_report_request)
|
87
|
+
|
88
|
+
BatchReportRequest
|
89
|
+
|
90
|
+
The report for a given batch.
|
91
|
+
|
92
|
+
### Examples
|
93
|
+
|
94
|
+
```ruby
|
95
|
+
require 'time'
|
96
|
+
require 'citypay_api_client'
|
97
|
+
# setup authorization
|
98
|
+
CityPayApiClient.configure do |config|
|
99
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
100
|
+
end
|
101
|
+
|
102
|
+
api_instance = CityPayApiClient::BatchProcessingApi.new
|
103
|
+
batch_report_request = CityPayApiClient::BatchReportRequest.new({batch_id: 35}) # BatchReportRequest |
|
104
|
+
|
105
|
+
begin
|
106
|
+
# BatchReportRequest
|
107
|
+
result = api_instance.batch_retrieve_request(batch_report_request)
|
108
|
+
p result
|
109
|
+
rescue CityPayApiClient::ApiError => e
|
110
|
+
puts "Error when calling BatchProcessingApi->batch_retrieve_request: #{e}"
|
111
|
+
end
|
112
|
+
```
|
113
|
+
|
114
|
+
#### Using the batch_retrieve_request_with_http_info variant
|
115
|
+
|
116
|
+
This returns an Array which contains the response data, status code and headers.
|
117
|
+
|
118
|
+
> <Array(<BatchReportResponseModel>, Integer, Hash)> batch_retrieve_request_with_http_info(batch_report_request)
|
119
|
+
|
120
|
+
```ruby
|
121
|
+
begin
|
122
|
+
# BatchReportRequest
|
123
|
+
data, status_code, headers = api_instance.batch_retrieve_request_with_http_info(batch_report_request)
|
124
|
+
p status_code # => 2xx
|
125
|
+
p headers # => { ... }
|
126
|
+
p data # => <BatchReportResponseModel>
|
127
|
+
rescue CityPayApiClient::ApiError => e
|
128
|
+
puts "Error when calling BatchProcessingApi->batch_retrieve_request_with_http_info: #{e}"
|
129
|
+
end
|
130
|
+
```
|
131
|
+
|
132
|
+
### Parameters
|
133
|
+
|
134
|
+
| Name | Type | Description | Notes |
|
135
|
+
| ---- | ---- | ----------- | ----- |
|
136
|
+
| **batch_report_request** | [**BatchReportRequest**](BatchReportRequest.md) | | |
|
137
|
+
|
138
|
+
### Return type
|
139
|
+
|
140
|
+
[**BatchReportResponseModel**](BatchReportResponseModel.md)
|
141
|
+
|
142
|
+
### Authorization
|
143
|
+
|
144
|
+
[cp-api-key](../README.md#cp-api-key)
|
145
|
+
|
146
|
+
### HTTP request headers
|
147
|
+
|
148
|
+
- **Content-Type**: application/json, text/xml
|
149
|
+
- **Accept**: application/json, text/xml
|
150
|
+
|
151
|
+
|
152
|
+
## check_batch_status_request
|
153
|
+
|
154
|
+
> <CheckBatchStatusResponse> check_batch_status_request(check_batch_status)
|
155
|
+
|
156
|
+
CheckBatchStatus
|
157
|
+
|
158
|
+
The operation is used to retrieve the status of a batch process.
|
159
|
+
|
160
|
+
### Examples
|
161
|
+
|
162
|
+
```ruby
|
163
|
+
require 'time'
|
164
|
+
require 'citypay_api_client'
|
165
|
+
# setup authorization
|
166
|
+
CityPayApiClient.configure do |config|
|
167
|
+
config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
|
168
|
+
end
|
169
|
+
|
170
|
+
api_instance = CityPayApiClient::BatchProcessingApi.new
|
171
|
+
check_batch_status = CityPayApiClient::CheckBatchStatus.new({batch_id: [78]}) # CheckBatchStatus |
|
172
|
+
|
173
|
+
begin
|
174
|
+
# CheckBatchStatus
|
175
|
+
result = api_instance.check_batch_status_request(check_batch_status)
|
176
|
+
p result
|
177
|
+
rescue CityPayApiClient::ApiError => e
|
178
|
+
puts "Error when calling BatchProcessingApi->check_batch_status_request: #{e}"
|
179
|
+
end
|
180
|
+
```
|
181
|
+
|
182
|
+
#### Using the check_batch_status_request_with_http_info variant
|
183
|
+
|
184
|
+
This returns an Array which contains the response data, status code and headers.
|
185
|
+
|
186
|
+
> <Array(<CheckBatchStatusResponse>, Integer, Hash)> check_batch_status_request_with_http_info(check_batch_status)
|
187
|
+
|
188
|
+
```ruby
|
189
|
+
begin
|
190
|
+
# CheckBatchStatus
|
191
|
+
data, status_code, headers = api_instance.check_batch_status_request_with_http_info(check_batch_status)
|
192
|
+
p status_code # => 2xx
|
193
|
+
p headers # => { ... }
|
194
|
+
p data # => <CheckBatchStatusResponse>
|
195
|
+
rescue CityPayApiClient::ApiError => e
|
196
|
+
puts "Error when calling BatchProcessingApi->check_batch_status_request_with_http_info: #{e}"
|
197
|
+
end
|
198
|
+
```
|
199
|
+
|
200
|
+
### Parameters
|
201
|
+
|
202
|
+
| Name | Type | Description | Notes |
|
203
|
+
| ---- | ---- | ----------- | ----- |
|
204
|
+
| **check_batch_status** | [**CheckBatchStatus**](CheckBatchStatus.md) | | |
|
205
|
+
|
206
|
+
### Return type
|
207
|
+
|
208
|
+
[**CheckBatchStatusResponse**](CheckBatchStatusResponse.md)
|
209
|
+
|
210
|
+
### Authorization
|
211
|
+
|
212
|
+
[cp-api-key](../README.md#cp-api-key)
|
213
|
+
|
214
|
+
### HTTP request headers
|
215
|
+
|
216
|
+
- **Content-Type**: application/json, text/xml
|
217
|
+
- **Accept**: application/json, text/xml
|
218
|
+
|
@@ -0,0 +1,20 @@
|
|
1
|
+
# CityPayApiClient::BatchReportRequest
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **batch_id** | **Integer** | The batch id specified in the batch processing request. | |
|
8
|
+
| **client_account_id** | **String** | The batch account id that the batch was processed for. Defaults to your client id if not provided. | [optional] |
|
9
|
+
|
10
|
+
## Example
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
require 'citypay_api_client'
|
14
|
+
|
15
|
+
instance = CityPayApiClient::BatchReportRequest.new(
|
16
|
+
batch_id: 35,
|
17
|
+
client_account_id: AC1
|
18
|
+
)
|
19
|
+
```
|
20
|
+
|
@@ -0,0 +1,28 @@
|
|
1
|
+
# CityPayApiClient::BatchReportResponseModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **amount** | **Integer** | The total amount that the batch contains. | |
|
8
|
+
| **batch_date** | **Date** | The date and time of the batch in ISO-8601 format. | |
|
9
|
+
| **batch_id** | **Integer** | The batch id specified in the batch processing request. | |
|
10
|
+
| **batch_status** | **String** | The status of the batch. Possible values are - CANCELLED. The file has been cancelled by an administrator or server process. - COMPLETE. The file has passed through the processing cycle and is determined as being complete further information should be obtained on the results of the processing - ERROR_IN_PROCESSING. Errors have occurred in the processing that has deemed that processing can not continue. - INITIALISED. The file has been initialised and no action has yet been performed - LOCKED. The file has been locked for processing - QUEUED. The file has been queued for processing yet no processing has yet been performed - UNKNOWN. The file is of an unknown status, that is the file can either not be determined by the information requested of the file has not yet been received. | |
|
11
|
+
| **client_account_id** | **String** | The batch account id that the batch was processed with. | |
|
12
|
+
| **transactions** | [**Array<BatchTransactionResultModel>**](BatchTransactionResultModel.md) | | |
|
13
|
+
|
14
|
+
## Example
|
15
|
+
|
16
|
+
```ruby
|
17
|
+
require 'citypay_api_client'
|
18
|
+
|
19
|
+
instance = CityPayApiClient::BatchReportResponseModel.new(
|
20
|
+
amount: 3600,
|
21
|
+
batch_date: Thu Jan 02 00:00:00 UTC 2020,
|
22
|
+
batch_id: 35,
|
23
|
+
batch_status: COMPLETE,
|
24
|
+
client_account_id: AC1,
|
25
|
+
transactions: null
|
26
|
+
)
|
27
|
+
```
|
28
|
+
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# CityPayApiClient::BatchTransaction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_id** | **String** | The card holder account id to process against. | |
|
8
|
+
| **amount** | **Integer** | The amount required to process in the lowest denomination. | |
|
9
|
+
| **identifier** | **String** | An identifier used to reference the transaction set by your integration. The value should be used to refer to the transaction in future calls. | [optional] |
|
10
|
+
| **merchantid** | **Integer** | The CityPay merchant id used to process the transaction. | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'citypay_api_client'
|
16
|
+
|
17
|
+
instance = CityPayApiClient::BatchTransaction.new(
|
18
|
+
account_id: aaabbb-cccddd-eee,
|
19
|
+
amount: 3600,
|
20
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
21
|
+
merchantid: 11223344
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,44 @@
|
|
1
|
+
# CityPayApiClient::BatchTransactionResultModel
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_id** | **String** | The card holder account id used for the transaction. | |
|
8
|
+
| **amount** | **Integer** | The amount of the transaction processed. | [optional] |
|
9
|
+
| **authcode** | **String** | The authorisation code of a successful transaction. | [optional] |
|
10
|
+
| **datetime** | **Time** | The datetime that the transaction was processed. | [optional] |
|
11
|
+
| **identifier** | **String** | The identifier of the transaction. | |
|
12
|
+
| **maskedpan** | **String** | A masked value of the card number used for processing displaying limited values that can be used on a receipt. | [optional] |
|
13
|
+
| **merchantid** | **Integer** | The merchant id of the transaction. | |
|
14
|
+
| **message** | **String** | A response message pertaining to the transaction. | |
|
15
|
+
| **result** | **Integer** | An integer result that indicates the outcome of the transaction. The Code value below maps to the result value <table> <tr> <th>Code</th> <th>Abbrev</th> <th>Description</th> </tr> <tr><td>0</td><td>Declined</td><td>Declined</td></tr> <tr><td>1</td><td>Accepted</td><td>Accepted</td></tr> <tr><td>2</td><td>Rejected</td><td>Rejected</td></tr> <tr><td>3</td><td>Not Attempted</td><td>Not Attempted</td></tr> <tr><td>4</td><td>Referred</td><td>Referred</td></tr> <tr><td>5</td><td>PinRetry</td><td>Perform PIN Retry</td></tr> <tr><td>6</td><td>ForSigVer</td><td>Force Signature Verification</td></tr> <tr><td>7</td><td>Hold</td><td>Hold</td></tr> <tr><td>8</td><td>SecErr</td><td>Security Error</td></tr> <tr><td>9</td><td>CallAcq</td><td>Call Acquirer</td></tr> <tr><td>10</td><td>DNH</td><td>Do Not Honour</td></tr> <tr><td>11</td><td>RtnCrd</td><td>Retain Card</td></tr> <tr><td>12</td><td>ExprdCrd</td><td>Expired Card</td></tr> <tr><td>13</td><td>InvldCrd</td><td>Invalid Card No</td></tr> <tr><td>14</td><td>PinExcd</td><td>Pin Tries Exceeded</td></tr> <tr><td>15</td><td>PinInvld</td><td>Pin Invalid</td></tr> <tr><td>16</td><td>AuthReq</td><td>Authentication Required</td></tr> <tr><td>17</td><td>AuthenFail</td><td>Authentication Failed</td></tr> <tr><td>18</td><td>Verified</td><td>Card Verified</td></tr> <tr><td>19</td><td>Cancelled</td><td>Cancelled</td></tr> <tr><td>20</td><td>Un</td><td>Unknown</td></tr> <tr><td>21</td><td>Challenged</td><td>Challenged</td></tr> <tr><td>22</td><td>Decoupled</td><td>Decoupled</td></tr> <tr><td>23</td><td>Denied</td><td>Permission Denied</td></tr> </table> | |
|
16
|
+
| **result_code** | **String** | A result code of the transaction identifying the result of the transaction for success, rejection or decline. | |
|
17
|
+
| **scheme** | **String** | The name of the card scheme of the transaction that processed the transaction such as Visa or MasterCard. | [optional] |
|
18
|
+
| **scheme_id** | **String** | The name of the card scheme of the transaction such as VI or MC. | [optional] |
|
19
|
+
| **scheme_logo** | **String** | A url containing a logo of the card scheme. | [optional] |
|
20
|
+
| **transno** | **Integer** | The resulting transaction number, ordered incrementally from 1 for every merchant_id. The value will default to less than 1 for transactions that do not have a transaction number issued. | [optional] |
|
21
|
+
|
22
|
+
## Example
|
23
|
+
|
24
|
+
```ruby
|
25
|
+
require 'citypay_api_client'
|
26
|
+
|
27
|
+
instance = CityPayApiClient::BatchTransactionResultModel.new(
|
28
|
+
account_id: aaabbb-cccddd-eee,
|
29
|
+
amount: 3600,
|
30
|
+
authcode: 001245A,
|
31
|
+
datetime: 2020-01-02T18:32:28Z,
|
32
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
33
|
+
maskedpan: 4***********0002,
|
34
|
+
merchantid: 11223344,
|
35
|
+
message: Approved 044332,
|
36
|
+
result: 1,
|
37
|
+
result_code: 0,
|
38
|
+
scheme: Visa,
|
39
|
+
scheme_id: MC,
|
40
|
+
scheme_logo: https://cdn.citypay.com/img/cs/visa-logo.svg,
|
41
|
+
transno: 78416
|
42
|
+
)
|
43
|
+
```
|
44
|
+
|
data/docs/Bin.md
ADDED
@@ -0,0 +1,34 @@
|
|
1
|
+
# CityPayApiClient::Bin
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional] |
|
8
|
+
| **bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional] |
|
9
|
+
| **bin_country_issued** | **String** | The determined country where the card was issued. | [optional] |
|
10
|
+
| **bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional] |
|
11
|
+
| **bin_currency** | **String** | The default currency determined for the card. | [optional] |
|
12
|
+
| **bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional] |
|
13
|
+
| **bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional] |
|
14
|
+
| **bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional] |
|
15
|
+
| **scheme** | **String** | The scheme that issued the card. | [optional] |
|
16
|
+
|
17
|
+
## Example
|
18
|
+
|
19
|
+
```ruby
|
20
|
+
require 'citypay_api_client'
|
21
|
+
|
22
|
+
instance = CityPayApiClient::Bin.new(
|
23
|
+
bin_commercial: null,
|
24
|
+
bin_corporate: null,
|
25
|
+
bin_country_issued: null,
|
26
|
+
bin_credit: null,
|
27
|
+
bin_currency: null,
|
28
|
+
bin_debit: null,
|
29
|
+
bin_description: Platinum Card,
|
30
|
+
bin_eu: null,
|
31
|
+
scheme: Visa
|
32
|
+
)
|
33
|
+
```
|
34
|
+
|
data/docs/BinLookup.md
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
# CityPayApiClient::BinLookup
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bin** | **Integer** | A bin value to use for lookup. | |
|
8
|
+
|
9
|
+
## Example
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
require 'citypay_api_client'
|
13
|
+
|
14
|
+
instance = CityPayApiClient::BinLookup.new(
|
15
|
+
bin: 543712
|
16
|
+
)
|
17
|
+
```
|
18
|
+
|
data/docs/CResAuthRequest.md
CHANGED
@@ -2,16 +2,17 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**cres** | **String** | The challenge response data forwarded by the ACS in 3D-Secure V2 processing. Data should be forwarded to CityPay unchanged for subsequent authorisation and processing. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **cres** | **String** | The challenge response data forwarded by the ACS in 3D-Secure V2 processing. Data should be forwarded to CityPay unchanged for subsequent authorisation and processing. | [optional] |
|
8
8
|
|
9
|
-
##
|
9
|
+
## Example
|
10
10
|
|
11
11
|
```ruby
|
12
|
-
require '
|
12
|
+
require 'citypay_api_client'
|
13
13
|
|
14
|
-
instance = CityPayApiClient::CResAuthRequest.new(
|
14
|
+
instance = CityPayApiClient::CResAuthRequest.new(
|
15
|
+
cres: x90+vZ/7Ll05Vid/jPfQn8adw+4D/vRDUGT19kndW97Hfirbv66ycfSp8jNlvy7PkHbx44NEt3vo...
|
16
|
+
)
|
15
17
|
```
|
16
18
|
|
17
|
-
|
data/docs/CaptureRequest.md
CHANGED
@@ -2,26 +2,27 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**airline_data** | [**AirlineAdvice**](AirlineAdvice.md) | | [optional]
|
8
|
-
**amount** | **Integer** | The completion amount provided in the lowest unit of currency for the specific currency of the merchant, with a variable length to a maximum of 12 digits. No decimal points to be included. For example with GBP 75.45 use the value 7545. Please check that you do not supply divisional characters such as 1,024 in the request which may be caused by some number formatters.
|
9
|
-
**
|
10
|
-
**
|
11
|
-
**
|
12
|
-
**transno** | **Integer** | The transaction number of the transaction to look up and capture. If an empty value is supplied then an identifier value must be supplied. | [optional]
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **airline_data** | [**AirlineAdvice**](AirlineAdvice.md) | | [optional] |
|
8
|
+
| **amount** | **Integer** | The completion amount provided in the lowest unit of currency for the specific currency of the merchant, with a variable length to a maximum of 12 digits. No decimal points to be included. For example with GBP 75.45 use the value 7545. Please check that you do not supply divisional characters such as 1,024 in the request which may be caused by some number formatters. If no amount is supplied, the original processing amount is used. | [optional] |
|
9
|
+
| **event_management** | [**EventDataModel**](EventDataModel.md) | | [optional] |
|
10
|
+
| **identifier** | **String** | The identifier of the transaction to capture. If an empty value is supplied then a `trans_no` value must be supplied. | [optional] |
|
11
|
+
| **merchantid** | **Integer** | Identifies the merchant account to perform the capture for. | |
|
12
|
+
| **transno** | **Integer** | The transaction number of the transaction to look up and capture. If an empty value is supplied then an identifier value must be supplied. | [optional] |
|
13
13
|
|
14
|
-
##
|
14
|
+
## Example
|
15
15
|
|
16
16
|
```ruby
|
17
|
-
require '
|
17
|
+
require 'citypay_api_client'
|
18
18
|
|
19
|
-
instance = CityPayApiClient::CaptureRequest.new(
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
19
|
+
instance = CityPayApiClient::CaptureRequest.new(
|
20
|
+
airline_data: null,
|
21
|
+
amount: 3600,
|
22
|
+
event_management: null,
|
23
|
+
identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
|
24
|
+
merchantid: 11223344,
|
25
|
+
transno: 78416
|
26
|
+
)
|
25
27
|
```
|
26
28
|
|
27
|
-
|
data/docs/Card.md
CHANGED
@@ -2,50 +2,55 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional]
|
8
|
-
**bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional]
|
9
|
-
**bin_country_issued** | **String** | The determined country where the card was issued. | [optional]
|
10
|
-
**bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional]
|
11
|
-
**bin_currency** | **String** | The default currency determined for the card. | [optional]
|
12
|
-
**bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional]
|
13
|
-
**bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional]
|
14
|
-
**bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional]
|
15
|
-
**card_id** | **String** | The id of the card that is returned. Should be used for referencing the card when perform any changes. | [optional]
|
16
|
-
**card_status** | **String** | The status of the card such, valid values are
|
17
|
-
**
|
18
|
-
**
|
19
|
-
**
|
20
|
-
**
|
21
|
-
**
|
22
|
-
**
|
23
|
-
**
|
24
|
-
**
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **bin_commercial** | **Boolean** | Defines whether the card is a commercial card. | [optional] |
|
8
|
+
| **bin_corporate** | **Boolean** | Defines whether the card is a corporate business card. | [optional] |
|
9
|
+
| **bin_country_issued** | **String** | The determined country where the card was issued. | [optional] |
|
10
|
+
| **bin_credit** | **Boolean** | Defines whether the card is a credit card. | [optional] |
|
11
|
+
| **bin_currency** | **String** | The default currency determined for the card. | [optional] |
|
12
|
+
| **bin_debit** | **Boolean** | Defines whether the card is a debit card. | [optional] |
|
13
|
+
| **bin_description** | **String** | A description of the bin on the card to identify what type of product the card is. | [optional] |
|
14
|
+
| **bin_eu** | **Boolean** | Defines whether the card is regulated within the EU. | [optional] |
|
15
|
+
| **card_id** | **String** | The id of the card that is returned. Should be used for referencing the card when perform any changes. | [optional] |
|
16
|
+
| **card_status** | **String** | The status of the card such, valid values are - ACTIVE the card is active for processing - INACTIVE the card is not active for processing - EXPIRED for cards that have passed their expiry date. | [optional] |
|
17
|
+
| **date_created** | **Time** | The date time of when the card was created. | [optional] |
|
18
|
+
| **default** | **Boolean** | Determines if the card is the default card for the account and should be regarded as the first option to be used for processing. | [optional] |
|
19
|
+
| **expmonth** | **Integer** | The expiry month of the card. | [optional] |
|
20
|
+
| **expyear** | **Integer** | The expiry year of the card. | [optional] |
|
21
|
+
| **label** | **String** | A label which identifies this card. | [optional] |
|
22
|
+
| **label2** | **String** | A label which also provides the expiry date of the card. | [optional] |
|
23
|
+
| **last4digits** | **String** | The last 4 digits of the card to aid in identification. | [optional] |
|
24
|
+
| **name_on_card** | **String** | The name on the card. | [optional] |
|
25
|
+
| **scheme** | **String** | The scheme that issued the card. | [optional] |
|
26
|
+
| **token** | **String** | A token that can be used to process against the card. | [optional] |
|
25
27
|
|
26
|
-
##
|
28
|
+
## Example
|
27
29
|
|
28
30
|
```ruby
|
29
|
-
require '
|
31
|
+
require 'citypay_api_client'
|
30
32
|
|
31
|
-
instance = CityPayApiClient::Card.new(
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
33
|
+
instance = CityPayApiClient::Card.new(
|
34
|
+
bin_commercial: null,
|
35
|
+
bin_corporate: null,
|
36
|
+
bin_country_issued: null,
|
37
|
+
bin_credit: null,
|
38
|
+
bin_currency: null,
|
39
|
+
bin_debit: null,
|
40
|
+
bin_description: Platinum Card,
|
41
|
+
bin_eu: null,
|
42
|
+
card_id: null,
|
43
|
+
card_status: null,
|
44
|
+
date_created: 2020-01-02T18:32:28Z,
|
45
|
+
default: null,
|
46
|
+
expmonth: 9,
|
47
|
+
expyear: 2027,
|
48
|
+
label: Visa/0002,
|
49
|
+
label2: Visa/0002,Exp:2304,
|
50
|
+
last4digits: 2,
|
51
|
+
name_on_card: MR NE BODY,
|
52
|
+
scheme: Visa,
|
53
|
+
token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr
|
54
|
+
)
|
49
55
|
```
|
50
56
|
|
51
|
-
|
data/docs/CardHolderAccount.md
CHANGED
@@ -2,30 +2,33 @@
|
|
2
2
|
|
3
3
|
## Properties
|
4
4
|
|
5
|
-
Name | Type | Description | Notes
|
6
|
-
|
7
|
-
**account_id** | **String** | The account id of the card holder account provided by the merchant which uniquely identifies the account. |
|
8
|
-
**cards** | [**Array<Card>**](Card.md) | | [optional]
|
9
|
-
**contact** | [**ContactDetails**](ContactDetails.md) | |
|
10
|
-
**date_created** | **
|
11
|
-
**default_card_id** | **String** | The id of the default card. | [optional]
|
12
|
-
**default_card_index** | **
|
13
|
-
**
|
14
|
-
**
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **account_id** | **String** | The account id of the card holder account provided by the merchant which uniquely identifies the account. | |
|
8
|
+
| **cards** | [**Array<Card>**](Card.md) | | [optional] |
|
9
|
+
| **contact** | [**ContactDetails**](ContactDetails.md) | | |
|
10
|
+
| **date_created** | **Time** | The date and time the account was created. | [optional] |
|
11
|
+
| **default_card_id** | **String** | The id of the default card. | [optional] |
|
12
|
+
| **default_card_index** | **Integer** | The index in the array of the default card. | [optional] |
|
13
|
+
| **last_modified** | **Time** | The date and time the account was last modified. | [optional] |
|
14
|
+
| **status** | **String** | Defines the status of the account for processing valid values are - ACTIVE for active accounts that are able to process - DISABLED for accounts that are currently disabled for processing. | [optional] |
|
15
|
+
| **unique_id** | **String** | A unique id of the card holder account which uniquely identifies the stored account. This value is not searchable. | [optional] |
|
15
16
|
|
16
|
-
##
|
17
|
+
## Example
|
17
18
|
|
18
19
|
```ruby
|
19
|
-
require '
|
20
|
+
require 'citypay_api_client'
|
20
21
|
|
21
|
-
instance = CityPayApiClient::CardHolderAccount.new(
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
22
|
+
instance = CityPayApiClient::CardHolderAccount.new(
|
23
|
+
account_id: aaabbb-cccddd-eee,
|
24
|
+
cards: null,
|
25
|
+
contact: null,
|
26
|
+
date_created: 2020-01-02T18:32:28Z,
|
27
|
+
default_card_id: null,
|
28
|
+
default_card_index: null,
|
29
|
+
last_modified: 2020-01-02T18:32:28Z,
|
30
|
+
status: null,
|
31
|
+
unique_id: null
|
32
|
+
)
|
29
33
|
```
|
30
34
|
|
31
|
-
|