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.
Files changed (212) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +73 -0
  3. data/README.md +65 -37
  4. data/citypay_api_client.gemspec +4 -3
  5. data/docs/Acknowledgement.md +2 -2
  6. data/docs/AclCheckResponseModel.md +3 -3
  7. data/docs/AirlineAdvice.md +1 -1
  8. data/docs/AuthRequest.md +9 -7
  9. data/docs/AuthResponse.md +9 -5
  10. data/docs/AuthorisationAndPaymentApi.md +145 -10
  11. data/docs/Batch.md +1 -1
  12. data/docs/BatchProcessingApi.md +24 -20
  13. data/docs/BatchReportResponseModel.md +2 -2
  14. data/docs/BatchTransaction.md +1 -1
  15. data/docs/BatchTransactionReportRequest.md +22 -0
  16. data/docs/BatchTransactionReportResponse.md +24 -0
  17. data/docs/BatchTransactionResultModel.md +6 -2
  18. data/docs/Bin.md +2 -2
  19. data/docs/CaptureRequest.md +1 -1
  20. data/docs/Card.md +3 -3
  21. data/docs/CardHolderAccountApi.md +73 -14
  22. data/docs/ChargeRequest.md +8 -6
  23. data/docs/ContactDetails.md +11 -11
  24. data/docs/Decision.md +0 -2
  25. data/docs/DirectPostApi.md +26 -16
  26. data/docs/DirectPostRequest.md +9 -7
  27. data/docs/EventDataModel.md +2 -2
  28. data/docs/MerchantBatchReportRequest.md +28 -0
  29. data/docs/MerchantBatchReportResponse.md +24 -0
  30. data/docs/MerchantBatchResponse.md +30 -0
  31. data/docs/NetSummaryResponse.md +32 -0
  32. data/docs/OperationalFunctionsApi.md +28 -8
  33. data/docs/PaylinkAdjustmentRequest.md +1 -1
  34. data/docs/PaylinkApi.md +337 -21
  35. data/docs/PaylinkBillPaymentTokenRequest.md +1 -1
  36. data/docs/PaylinkCustomParam.md +3 -1
  37. data/docs/PaylinkErrorCode.md +2 -2
  38. data/docs/PaylinkFieldGuardModel.md +1 -1
  39. data/docs/PaylinkResendNotificationRequest.md +20 -0
  40. data/docs/PaylinkStateEvent.md +4 -4
  41. data/docs/PaylinkTokenCreated.md +11 -11
  42. data/docs/PaylinkTokenRequestModel.md +4 -0
  43. data/docs/PaylinkTokenStatus.md +7 -7
  44. data/docs/PaylinkTokenStatusChangeRequest.md +7 -7
  45. data/docs/PaylinkTokenStatusChangeResponse.md +6 -2
  46. data/docs/PaymentIntent.md +42 -0
  47. data/docs/PaymentIntentReference.md +18 -0
  48. data/docs/RefundRequest.md +1 -1
  49. data/docs/RegisterCard.md +1 -1
  50. data/docs/RemittanceData.md +28 -0
  51. data/docs/RemittanceReportRequest.md +28 -0
  52. data/docs/RemittanceReportResponse.md +24 -0
  53. data/docs/RemittedClientData.md +44 -0
  54. data/docs/ReportingApi.md +378 -0
  55. data/docs/ThreeDSecure.md +1 -1
  56. data/docs/TokenisationResponseModel.md +3 -3
  57. data/docs/images/3dsv1-challenge.png +0 -0
  58. data/docs/images/3dsv2-challenge.png +0 -0
  59. data/docs/images/3dsv2-frictionless.png +0 -0
  60. data/docs/images/3dsv2-method-challenge.png +0 -0
  61. data/docs/images/3dsv2-method-frictionless.png +0 -0
  62. data/docs/images/3dsv2-no3d.png +0 -0
  63. data/docs/images/citypay-logo.svg +1 -0
  64. data/docs/images/direct-post-flow.png +0 -0
  65. data/docs/images/favicon.ico +0 -0
  66. data/docs/images/header.png +0 -0
  67. data/docs/images/logo.ai +1913 -4
  68. data/docs/images/logo.png +0 -0
  69. data/docs/images/logo.svg +1 -0
  70. data/docs/images/merchant-BPS-workflow.png +0 -0
  71. data/docs/images/paylink-field-guards.png +0 -0
  72. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +72 -4
  73. data/lib/citypay_api_client/api/batch_processing_api__.rb +15 -15
  74. data/lib/citypay_api_client/api/card_holder_account_api__.rb +5 -2
  75. data/lib/citypay_api_client/api/direct_post_api__.rb +9 -9
  76. data/lib/citypay_api_client/api/operational_functions_api__.rb +3 -3
  77. data/lib/citypay_api_client/api/paylink_api__.rb +163 -26
  78. data/lib/citypay_api_client/api/reporting_api__.rb +381 -0
  79. data/lib/citypay_api_client/api_client.rb +24 -22
  80. data/lib/citypay_api_client/api_error.rb +3 -2
  81. data/lib/citypay_api_client/configuration.rb +28 -9
  82. data/lib/citypay_api_client/models/account_create.rb +17 -20
  83. data/lib/citypay_api_client/models/account_status.rb +15 -20
  84. data/lib/citypay_api_client/models/acknowledgement.rb +21 -46
  85. data/lib/citypay_api_client/models/acl_check_request.rb +17 -20
  86. data/lib/citypay_api_client/models/acl_check_response_model.rb +16 -21
  87. data/lib/citypay_api_client/models/airline_advice.rb +45 -29
  88. data/lib/citypay_api_client/models/airline_segment.rb +35 -22
  89. data/lib/citypay_api_client/models/auth_reference.rb +41 -26
  90. data/lib/citypay_api_client/models/auth_references.rb +15 -20
  91. data/lib/citypay_api_client/models/auth_request.rb +72 -34
  92. data/lib/citypay_api_client/models/auth_response.rb +46 -23
  93. data/lib/citypay_api_client/models/authen_required.rb +15 -20
  94. data/lib/citypay_api_client/models/batch.rb +25 -22
  95. data/lib/citypay_api_client/models/batch_report_request.rb +23 -22
  96. data/lib/citypay_api_client/models/batch_report_response_model.rb +28 -21
  97. data/lib/citypay_api_client/models/batch_transaction.rb +25 -22
  98. data/lib/citypay_api_client/models/batch_transaction_report_request.rb +234 -0
  99. data/lib/citypay_api_client/models/batch_transaction_report_response.rb +252 -0
  100. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +53 -22
  101. data/lib/citypay_api_client/models/bin.rb +15 -20
  102. data/lib/citypay_api_client/models/bin_lookup.rb +17 -20
  103. data/lib/citypay_api_client/models/c_res_auth_request.rb +15 -20
  104. data/lib/citypay_api_client/models/capture_request.rb +27 -22
  105. data/lib/citypay_api_client/models/card.rb +33 -26
  106. data/lib/citypay_api_client/models/card_holder_account.rb +19 -20
  107. data/lib/citypay_api_client/models/card_status.rb +15 -20
  108. data/lib/citypay_api_client/models/charge_request.rb +72 -34
  109. data/lib/citypay_api_client/models/check_batch_status.rb +23 -22
  110. data/lib/citypay_api_client/models/check_batch_status_response.rb +15 -20
  111. data/lib/citypay_api_client/models/contact_details.rb +77 -42
  112. data/lib/citypay_api_client/models/decision.rb +16 -30
  113. data/lib/citypay_api_client/models/direct_post_request.rb +72 -34
  114. data/lib/citypay_api_client/models/direct_token_auth_request.rb +15 -20
  115. data/lib/citypay_api_client/models/domain_key_check_request.rb +17 -20
  116. data/lib/citypay_api_client/models/domain_key_request.rb +19 -20
  117. data/lib/citypay_api_client/models/domain_key_response.rb +25 -22
  118. data/lib/citypay_api_client/models/error.rb +27 -24
  119. data/lib/citypay_api_client/models/event_data_model.rb +15 -20
  120. data/lib/citypay_api_client/models/exists.rb +17 -20
  121. data/lib/citypay_api_client/models/external_mpi.rb +39 -24
  122. data/lib/citypay_api_client/models/list_merchants_response.rb +21 -22
  123. data/lib/citypay_api_client/models/mcc6012.rb +15 -20
  124. data/lib/citypay_api_client/models/merchant.rb +15 -20
  125. data/lib/citypay_api_client/models/merchant_batch_report_request.rb +265 -0
  126. data/lib/citypay_api_client/models/merchant_batch_report_response.rb +252 -0
  127. data/lib/citypay_api_client/models/merchant_batch_response.rb +301 -0
  128. data/lib/citypay_api_client/models/net_summary_response.rb +472 -0
  129. data/lib/citypay_api_client/models/pa_res_auth_request.rb +19 -20
  130. data/lib/citypay_api_client/models/paylink_address.rb +52 -29
  131. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +25 -22
  132. data/lib/citypay_api_client/models/paylink_attachment_request.rb +19 -20
  133. data/lib/citypay_api_client/models/paylink_attachment_result.rb +19 -20
  134. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +17 -20
  135. data/lib/citypay_api_client/models/paylink_card_holder.rb +30 -23
  136. data/lib/citypay_api_client/models/paylink_cart.rb +15 -20
  137. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +15 -20
  138. data/lib/citypay_api_client/models/paylink_config.rb +15 -20
  139. data/lib/citypay_api_client/models/paylink_custom_param.rb +29 -22
  140. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +17 -20
  141. data/lib/citypay_api_client/models/paylink_error_code.rb +19 -20
  142. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +16 -21
  143. data/lib/citypay_api_client/models/paylink_part_payments.rb +15 -20
  144. data/lib/citypay_api_client/models/paylink_resend_notification_request.rb +224 -0
  145. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +17 -20
  146. data/lib/citypay_api_client/models/paylink_state_event.rb +16 -21
  147. data/lib/citypay_api_client/models/paylink_token_created.rb +56 -27
  148. data/lib/citypay_api_client/models/paylink_token_request_model.rb +75 -22
  149. data/lib/citypay_api_client/models/paylink_token_status.rb +44 -21
  150. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +24 -26
  151. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +39 -22
  152. data/lib/citypay_api_client/models/paylink_ui.rb +15 -20
  153. data/lib/citypay_api_client/models/payment_intent.rb +479 -0
  154. data/lib/citypay_api_client/models/payment_intent_reference.rb +221 -0
  155. data/lib/citypay_api_client/models/ping.rb +21 -22
  156. data/lib/citypay_api_client/models/process_batch_request.rb +27 -22
  157. data/lib/citypay_api_client/models/process_batch_response.rb +17 -20
  158. data/lib/citypay_api_client/models/refund_request.rb +28 -21
  159. data/lib/citypay_api_client/models/register_card.rb +27 -22
  160. data/lib/citypay_api_client/models/remittance_data.rb +404 -0
  161. data/lib/citypay_api_client/models/remittance_report_request.rb +265 -0
  162. data/lib/citypay_api_client/models/remittance_report_response.rb +252 -0
  163. data/lib/citypay_api_client/models/remitted_client_data.rb +612 -0
  164. data/lib/citypay_api_client/models/request_challenged.rb +15 -20
  165. data/lib/citypay_api_client/models/retrieve_request.rb +23 -22
  166. data/lib/citypay_api_client/models/three_d_secure.rb +16 -21
  167. data/lib/citypay_api_client/models/tokenisation_response_model.rb +23 -24
  168. data/lib/citypay_api_client/models/void_request.rb +23 -22
  169. data/lib/citypay_api_client/version.rb +3 -3
  170. data/lib/citypay_api_client.rb +16 -3
  171. data/spec/api/reporting_api___spec.rb +99 -0
  172. data/spec/it_api_sandbox_spec.rb +5 -14
  173. data/spec/models/account_create_spec.rb +1 -2
  174. data/spec/models/account_status_spec.rb +2 -2
  175. data/spec/models/airline_advice_spec.rb +0 -2
  176. data/spec/models/airline_segment_spec.rb +0 -2
  177. data/spec/models/auth_request_spec.rb +0 -2
  178. data/spec/models/auth_response_spec.rb +75 -30
  179. data/spec/models/batch_report_request_spec.rb +0 -2
  180. data/spec/models/batch_report_response_model_spec.rb +0 -2
  181. data/spec/models/batch_spec.rb +0 -2
  182. data/spec/models/batch_transaction_report_request_spec.rb +47 -0
  183. data/spec/models/batch_transaction_report_response_spec.rb +53 -0
  184. data/spec/models/batch_transaction_result_model_spec.rb +0 -2
  185. data/spec/models/batch_transaction_spec.rb +0 -2
  186. data/spec/models/bin_lookup_spec.rb +0 -2
  187. data/spec/models/capture_request_spec.rb +0 -2
  188. data/spec/models/card_holder_account_spec.rb +0 -2
  189. data/spec/models/charge_request_spec.rb +0 -2
  190. data/spec/models/decision_spec.rb +0 -26
  191. data/spec/models/direct_post_request_spec.rb +0 -2
  192. data/spec/models/domain_key_check_request_spec.rb +0 -2
  193. data/spec/models/merchant_batch_report_request_spec.rb +65 -0
  194. data/spec/models/merchant_batch_report_response_spec.rb +53 -0
  195. data/spec/models/merchant_batch_response_spec.rb +71 -0
  196. data/spec/models/net_summary_response_spec.rb +77 -0
  197. data/spec/models/paylink_resend_notification_request_spec.rb +41 -0
  198. data/spec/models/paylink_token_request_model_spec.rb +0 -2
  199. data/spec/models/payment_intent_reference_spec.rb +35 -0
  200. data/spec/models/payment_intent_spec.rb +107 -0
  201. data/spec/models/process_batch_request_spec.rb +0 -2
  202. data/spec/models/refund_request_spec.rb +0 -2
  203. data/spec/models/register_card_spec.rb +0 -2
  204. data/spec/models/remittance_data_spec.rb +65 -0
  205. data/spec/models/remittance_report_request_spec.rb +65 -0
  206. data/spec/models/remittance_report_response_spec.rb +53 -0
  207. data/spec/models/remitted_client_data_spec.rb +113 -0
  208. data/spec/spec_helper.rb +2 -2
  209. metadata +146 -78
  210. data/docs/OperationalApi.md +0 -214
  211. data/docs/PaymentProcessingApi.md +0 -559
  212. data/spec/models/authen_required_spec.rb +0 -52
@@ -18,11 +18,13 @@ All URIs are relative to *https://api.citypay.com*
18
18
 
19
19
  ## account_card_delete_request
20
20
 
21
- > <Acknowledgement> account_card_delete_request(accountid, card_id)
21
+ > <Acknowledgement> account_card_delete_request(accountid, card_id, opts)
22
22
 
23
23
  Card Deletion
24
24
 
25
- Deletes a card from the account. The card will be marked for deletion before a subsequent purge will clear the card permanently.
25
+ Deletes a card from the account. The card will be marked for deletion before a subsequent
26
+ purge will clear the card permanently.
27
+
26
28
 
27
29
  ### Examples
28
30
 
@@ -37,10 +39,13 @@ end
37
39
  api_instance = CityPayApiClient::CardHolderAccountApi.new
38
40
  accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
39
41
  card_id = 'card_id_example' # String | The id of the card that is presented by a call to retrieve a card holder account.
42
+ opts = {
43
+ force: true # Boolean | Requests that the item is forced immediately.
44
+ }
40
45
 
41
46
  begin
42
47
  # Card Deletion
43
- result = api_instance.account_card_delete_request(accountid, card_id)
48
+ result = api_instance.account_card_delete_request(accountid, card_id, opts)
44
49
  p result
45
50
  rescue CityPayApiClient::ApiError => e
46
51
  puts "Error when calling CardHolderAccountApi->account_card_delete_request: #{e}"
@@ -51,12 +56,12 @@ end
51
56
 
52
57
  This returns an Array which contains the response data, status code and headers.
53
58
 
54
- > <Array(<Acknowledgement>, Integer, Hash)> account_card_delete_request_with_http_info(accountid, card_id)
59
+ > <Array(<Acknowledgement>, Integer, Hash)> account_card_delete_request_with_http_info(accountid, card_id, opts)
55
60
 
56
61
  ```ruby
57
62
  begin
58
63
  # Card Deletion
59
- data, status_code, headers = api_instance.account_card_delete_request_with_http_info(accountid, card_id)
64
+ data, status_code, headers = api_instance.account_card_delete_request_with_http_info(accountid, card_id, opts)
60
65
  p status_code # => 2xx
61
66
  p headers # => { ... }
62
67
  p data # => <Acknowledgement>
@@ -71,6 +76,7 @@ end
71
76
  | ---- | ---- | ----------- | ----- |
72
77
  | **accountid** | **String** | The account id that refers to the customer&#39;s account no. This value will have been provided when setting up the card holder account. | |
73
78
  | **card_id** | **String** | The id of the card that is presented by a call to retrieve a card holder account. | |
79
+ | **force** | **Boolean** | Requests that the item is forced immediately. | [optional] |
74
80
 
75
81
  ### Return type
76
82
 
@@ -92,7 +98,15 @@ end
92
98
 
93
99
  Card Registration
94
100
 
95
- Allows for a card to be registered for the account. The card will be added for future processing and will be available as a tokenised value for future processing. The card will be validated for 0. Being a valid card number (luhn check) 0. Having a valid expiry date 0. Being a valid bin value.
101
+ Allows for a card to be registered for the account. The card will be added for future
102
+ processing and will be available as a tokenised value for future processing.
103
+
104
+ The card will be validated for
105
+
106
+ 0. Being a valid card number (luhn check)
107
+ 0. Having a valid expiry date
108
+ 0. Being a valid bin value.
109
+
96
110
 
97
111
  ### Examples
98
112
 
@@ -106,7 +120,7 @@ end
106
120
 
107
121
  api_instance = CityPayApiClient::CardHolderAccountApi.new
108
122
  accountid = 'accountid_example' # String | The account id that refers to the customer's account no. This value will have been provided when setting up the card holder account.
109
- register_card = CityPayApiClient::RegisterCard.new({cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025}) # RegisterCard |
123
+ register_card = CityPayApiClient::RegisterCard.new({cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027}) # RegisterCard |
110
124
 
111
125
  begin
112
126
  # Card Registration
@@ -162,7 +176,14 @@ end
162
176
 
163
177
  Card Status
164
178
 
165
- Updates the status of a card for processing. The following values are available | Status | Description | |--------|-------------| | Active | The card is active for processing and can be used for charging against with a valid token | | Inactive | The card is inactive for processing and cannot be used for processing, it will require reactivation before being used to charge | | Expired | The card has expired either due to the expiry date no longer being valid or due to a replacement card being issued |
179
+ Updates the status of a card for processing. The following values are available
180
+
181
+ | Status | Description |
182
+ |--------|-------------|
183
+ | Active | The card is active for processing and can be used for charging against with a valid token |
184
+ | Inactive | The card is inactive for processing and cannot be used for processing, it will require reactivation before being used to charge |
185
+ | Expired | The card has expired either due to the expiry date no longer being valid or due to a replacement card being issued |
186
+
166
187
 
167
188
  ### Examples
168
189
 
@@ -372,7 +393,9 @@ end
372
393
 
373
394
  Account Deletion
374
395
 
375
- Allows for the deletion of an account. The account will marked for deletion and subsequent purging. No further transactions will be alowed to be processed or actioned against this account.
396
+ Allows for the deletion of an account. The account will marked for deletion and subsequent purging. No further
397
+ transactions will be alowed to be processed or actioned against this account.
398
+
376
399
 
377
400
  ### Examples
378
401
 
@@ -440,7 +463,8 @@ end
440
463
 
441
464
  Account Exists
442
465
 
443
- Checks that an account exists and is active by providing the account id as a url parameter.
466
+ Checks that an account exists and is active by providing the account id as a url parameter.
467
+
444
468
 
445
469
  ### Examples
446
470
 
@@ -508,7 +532,13 @@ end
508
532
 
509
533
  Account Retrieval
510
534
 
511
- Allows for the retrieval of a card holder account for the given `id`. Should duplicate accounts exist for the same `id`, the first account created with that `id` will be returned. The account can be used for tokenisation processing by listing all cards assigned to the account. The returned cards will include all `active`, `inactive` and `expired` cards. This can be used to enable a card holder to view their wallet and make constructive choices on which card to use.
535
+ Allows for the retrieval of a card holder account for the given `id`. Should duplicate accounts exist
536
+ for the same `id`, the first account created with that `id` will be returned.
537
+
538
+ The account can be used for tokenisation processing by listing all cards assigned to the account.
539
+ The returned cards will include all `active`, `inactive` and `expired` cards. This can be used to
540
+ enable a card holder to view their wallet and make constructive choices on which card to use.
541
+
512
542
 
513
543
  ### Examples
514
544
 
@@ -576,7 +606,13 @@ end
576
606
 
577
607
  Account Status
578
608
 
579
- Updates the status of an account. An account can have the following statuses applied | Status | Description | |--------|-------------| | Active | The account is active for processing | | Disabled | The account has been disabled and cannot be used for processing. The account will require reactivation to continue procesing |
609
+ Updates the status of an account. An account can have the following statuses applied
610
+
611
+ | Status | Description |
612
+ |--------|-------------|
613
+ | Active | The account is active for processing |
614
+ | Disabled | The account has been disabled and cannot be used for processing. The account will require reactivation to continue procesing |
615
+
580
616
 
581
617
  ### Examples
582
618
 
@@ -646,7 +682,30 @@ end
646
682
 
647
683
  Charge
648
684
 
649
- A charge process obtains an authorisation using a tokenised value which represents a stored card on a card holder account. A card must previously be registered by calling `/account-register-card` with the card details or retrieved using `/account-retrieve` Tokens are generated whenever a previously registered list of cards are retrieved. Each token has, by design a relatively short time to live of 30 minutes. This is both to safe guard the merchant and card holder from replay attacks. Tokens are also restricted to your account, preventing malicious actors from stealing details for use elsewhere. If a token is reused after it has expired it will be rejected and a new token will be required. Tokenisation can be used for - repeat authorisations on a previously stored card - easy authorisations just requiring CSC values to be entered - can be used for credential on file style payments - can require full 3-D Secure authentication to retain the liability shift - wallet style usage _Should an account be used with 3DSv2, the card holder name should also be stored alongside the card as this is a required field with both Visa and MasterCard for risk analysis._.
685
+ A charge process obtains an authorisation using a tokenised value which represents a stored card
686
+ on a card holder account.
687
+ A card must previously be registered by calling `/account-register-card` with the card details
688
+ or retrieved using `/account-retrieve`
689
+
690
+ Tokens are generated whenever a previously registered list of cards are retrieved. Each token has, by design a
691
+ relatively short time to live of 30 minutes. This is both to safe guard the merchant and card holder from
692
+ replay attacks. Tokens are also restricted to your account, preventing malicious actors from stealing details
693
+ for use elsewhere.
694
+
695
+ If a token is reused after it has expired it will be rejected and a new token will be required.
696
+
697
+ Tokenisation can be used for
698
+
699
+ - repeat authorisations on a previously stored card
700
+ - easy authorisations just requiring CSC values to be entered
701
+ - can be used for credential on file style payments
702
+ - can require full 3-D Secure authentication to retain the liability shift
703
+ - wallet style usage
704
+
705
+
706
+ _Should an account be used with 3DSv2, the card holder name should also be stored alongside the card as this is a
707
+ required field with both Visa and MasterCard for risk analysis._.
708
+
650
709
 
651
710
  ### Examples
652
711
 
@@ -659,7 +718,7 @@ CityPayApiClient.configure do |config|
659
718
  end
660
719
 
661
720
  api_instance = CityPayApiClient::CardHolderAccountApi.new
662
- charge_request = CityPayApiClient::ChargeRequest.new({amount: 3600, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344, token: 'ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr'}) # ChargeRequest |
721
+ charge_request = CityPayApiClient::ChargeRequest.new({amount: 19995, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', merchantid: 11223344, token: 'ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr'}) # ChargeRequest |
663
722
 
664
723
  begin
665
724
  # Charge
@@ -5,16 +5,17 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **amount** | **Integer** | The amount to authorise in the lowest unit of currency with a variable length to a maximum of 12 digits. No decimal points are to be included and no divisional characters such as 1,024. The amount should be the total amount required for the transaction. For example with GBP £1,021.95 the amount value is 102195. | |
8
- | **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
8
+ | **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
9
9
  | **cardholder_agreement** | **String** | Merchant-initiated transactions (MITs) are payments you trigger, where the cardholder has previously consented to you carrying out such payments. These may be scheduled (such as recurring payments and installments) or unscheduled (like account top-ups triggered by balance thresholds and no-show charges). Scheduled --- These are regular payments using stored card details, like installments or a monthly subscription fee. - &#x60;I&#x60; Instalment - A single purchase of goods or services billed to a cardholder in multiple transactions, over a period of time agreed by the cardholder and you. - &#x60;R&#x60; Recurring - Transactions processed at fixed, regular intervals not to exceed one year between transactions, representing an agreement between a cardholder and you to purchase goods or services provided over a period of time. Unscheduled --- These are payments using stored card details that do not occur on a regular schedule, like top-ups for a digital wallet triggered by the balance falling below a certain threshold. - &#x60;A&#x60; Reauthorisation - a purchase made after the original purchase. A common scenario is delayed/split shipments. - &#x60;C&#x60; Unscheduled Payment - A transaction using a stored credential for a fixed or variable amount that does not occur on a scheduled or regularly occurring transaction date. This includes account top-ups triggered by balance thresholds. - &#x60;D&#x60; Delayed Charge - A delayed charge is typically used in hotel, cruise lines and vehicle rental environments to perform a supplemental account charge after original services are rendered. - &#x60;L&#x60; Incremental - An incremental authorisation is typically found in hotel and car rental environments, where the cardholder has agreed to pay for any service incurred during the duration of the contract. An incremental authorisation is where you need to seek authorisation of further funds in addition to what you have originally requested. A common scenario is additional services charged to the contract, such as extending a stay in a hotel. - &#x60;S&#x60; Resubmission - When the original purchase occurred, but you were not able to get authorisation at the time the goods or services were provided. It should be only used where the goods or services have already been provided, but the authorisation request is declined for insufficient funds. - &#x60;X&#x60; No-show - A no-show is a transaction where you are enabled to charge for services which the cardholder entered into an agreement to purchase, but the cardholder did not meet the terms of the agreement. | [optional] |
10
- | **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify posession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
11
- | **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
10
+ | **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify possession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
11
+ | **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
12
12
  | **currency** | **String** | The processing currency for the transaction. Will default to the merchant account currency. | [optional] |
13
- | **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. &#x60;2&#x60; to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. &#x60;3&#x60; to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
13
+ | **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. &#x60;2&#x60; to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. &#x60;3&#x60; to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
14
14
  | **identifier** | **String** | The identifier of the transaction to process. The value should be a valid reference and may be used to perform post processing actions and to aid in reconciliation of transactions. The value should be a valid printable string with ASCII character ranges from 0x32 to 0x127. The identifier is recommended to be distinct for each transaction such as a [random unique identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier) this will aid in ensuring each transaction is identifiable. When transactions are processed they are also checked for duplicate requests. Changing the identifier on a subsequent request will ensure that a transaction is considered as different. | |
15
15
  | **initiation** | **String** | Transactions charged using the API are defined as: **Cardholder Initiated**: A _cardholder initiated transaction_ (CIT) is where the cardholder selects the card for use for a purchase using previously stored details. An example would be a customer buying an item from your website after being present with their saved card details at checkout. **Merchant Intiated**: A _merchant initiated transaction_ (MIT) is an authorisation initiated where you as the merchant submit a cardholders previously stored details without the cardholder&#39;s participation. An example would be a subscription to a membership scheme to debit their card monthly. MITs have different reasons such as reauthorisation, delayed, unscheduled, incremental, recurring, instalment, no-show or resubmission. The following values apply - &#x60;M&#x60; - specifies that the transaction is initiated by the merchant - &#x60;C&#x60; - specifies that the transaction is initiated by the cardholder Where transactions are merchant initiated, a valid cardholder agreement must be defined. | [optional] |
16
- | **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the address did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
16
+ | **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the address did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
17
17
  | **merchantid** | **Integer** | Identifies the merchant account to perform processing for. | |
18
+ | **tag** | **Array&lt;String&gt;** | | [optional] |
18
19
  | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
19
20
  | **token** | **String** | A tokenised form of a card that belongs to a card holder&#39;s account and that has been previously registered. The token is time based and will only be active for a short duration. The value is therefore designed not to be stored remotely for future use. Tokens will start with ct and are resiliently tamper proof using HMacSHA-256. No sensitive card data is stored internally within the token. Each card will contain a different token and the value may be different on any retrieval call. The value can be presented for payment as a selection value to an end user in a web application. | |
20
21
  | **trans_info** | **String** | Further information that can be added to the transaction will display in reporting. Can be used for flexible values such as operator id. | [optional] |
@@ -26,7 +27,7 @@
26
27
  require 'citypay_api_client'
27
28
 
28
29
  instance = CityPayApiClient::ChargeRequest.new(
29
- amount: 3600,
30
+ amount: 19995,
30
31
  avs_postcode_policy: null,
31
32
  cardholder_agreement: null,
32
33
  csc: 10,
@@ -37,6 +38,7 @@ instance = CityPayApiClient::ChargeRequest.new(
37
38
  initiation: null,
38
39
  match_avsa: null,
39
40
  merchantid: 11223344,
41
+ tag: null,
40
42
  threedsecure: null,
41
43
  token: ctPCAPyNyCkx3Ry8wGyv8khC3ch2hUSB3Db..Qzr,
42
44
  trans_info: null,
@@ -4,19 +4,19 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **address1** | **String** | The first line of the address for the shipping contact. | [optional] |
8
- | **address2** | **String** | The second line of the address for the shipping contact. | [optional] |
9
- | **address3** | **String** | The third line of the address for the shipping contact. | [optional] |
10
- | **area** | **String** | The area such as city, department, parish for the shipping contact. | [optional] |
11
- | **company** | **String** | The company name for the shipping contact if the contact is a corporate contact. | [optional] |
7
+ | **address1** | **String** | The first line of the address for the card holder. | [optional] |
8
+ | **address2** | **String** | The second line of the address for the card holder. | [optional] |
9
+ | **address3** | **String** | The third line of the address for the card holder. | [optional] |
10
+ | **area** | **String** | The area such as city, department, parish for the card holder. | [optional] |
11
+ | **company** | **String** | The company name for the card holder if the contact is a corporate contact. | [optional] |
12
12
  | **country** | **String** | The country code in ISO 3166 format. The country value may be used for fraud analysis and for acceptance of the transaction. | [optional] |
13
- | **email** | **String** | An email address for the shipping contact which may be used for correspondence. | [optional] |
14
- | **firstname** | **String** | The first name of the shipping contact. | [optional] |
15
- | **lastname** | **String** | The last name or surname of the shipping contact. | [optional] |
16
- | **mobile_no** | **String** | A mobile number for the shipping contact the mobile number is often required by delivery companies to ensure they are able to be in contact when required. | [optional] |
13
+ | **email** | **String** | An email address for the card holder which may be used for correspondence. | [optional] |
14
+ | **firstname** | **String** | The first name of the card holder. | [optional] |
15
+ | **lastname** | **String** | The last name or surname of the card holder. | [optional] |
16
+ | **mobile_no** | **String** | A mobile number for the card holder the mobile number is often required by delivery companies to ensure they are able to be in contact when required. | [optional] |
17
17
  | **postcode** | **String** | The postcode or zip code of the address which may be used for fraud analysis. | [optional] |
18
- | **telephone_no** | **String** | A telephone number for the shipping contact. | [optional] |
19
- | **title** | **String** | A title for the shipping contact such as Mr, Mrs, Ms, M. Mme. etc. | [optional] |
18
+ | **telephone_no** | **String** | A telephone number for the card holder. | [optional] |
19
+ | **title** | **String** | A title for the card holder such as Mr, Mrs, Ms, M. Mme. etc. | [optional] |
20
20
 
21
21
  ## Example
22
22
 
data/docs/Decision.md CHANGED
@@ -4,7 +4,6 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **authen_required** | [**AuthenRequired**](AuthenRequired.md) | | [optional] |
8
7
  | **auth_response** | [**AuthResponse**](AuthResponse.md) | | [optional] |
9
8
  | **request_challenged** | [**RequestChallenged**](RequestChallenged.md) | | [optional] |
10
9
 
@@ -14,7 +13,6 @@
14
13
  require 'citypay_api_client'
15
14
 
16
15
  instance = CityPayApiClient::Decision.new(
17
- authen_required: null,
18
16
  auth_response: null,
19
17
  request_challenged: null
20
18
  )
@@ -17,7 +17,10 @@ All URIs are relative to *https://api.citypay.com*
17
17
 
18
18
  Handles a CRes response from ACS, returning back the result of authorisation
19
19
 
20
- Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData` value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to perform a `Direct Post` integration who wish to handle the challenge flow themselves.
20
+ Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
21
+ value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
22
+ perform a `Direct Post` integration who wish to handle the challenge flow themselves.
23
+
21
24
 
22
25
  ### Examples
23
26
 
@@ -87,7 +90,10 @@ No authorization required
87
90
 
88
91
  Handles a CRes response from ACS, returning back a token for future authorisation
89
92
 
90
- Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData` value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to perform a `Direct Post` integration who wish to handle the challenge flow themselves.
93
+ Used to post from an ACS during a ThreeDSecure direct flow process. The endpoint requires a valid `threeDSSessionData`
94
+ value which defines the unique transaction through its workflow. This endpoint may be used by merchants wishing to
95
+ perform a `Direct Post` integration who wish to handle the challenge flow themselves.
96
+
91
97
 
92
98
  ### Examples
93
99
 
@@ -157,7 +163,8 @@ No authorization required
157
163
 
158
164
  Direct Post Auth Request
159
165
 
160
- Used to initiate a direct post request transaction flow. <pre class=\"inline-code language-bash\"> <code> curl https://api.citypay.com/direct/auth?cp-domain-key=n834ytqp84y... \\ -d \"amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW </code> </pre>.
166
+ Used to initiate a direct post request transaction flow.
167
+
161
168
 
162
169
  ### Examples
163
170
 
@@ -166,14 +173,14 @@ require 'time'
166
173
  require 'citypay_api_client'
167
174
  # setup authorization
168
175
  CityPayApiClient.configure do |config|
169
- config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
170
-
171
176
  # Configure API key authorization: cp-domain-key
172
177
  config.api_key['cp-domain-key'] = 'YOUR API KEY'
178
+
179
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
173
180
  end
174
181
 
175
182
  api_instance = CityPayApiClient::DirectPostApi.new
176
- direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
183
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 19995, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
177
184
 
178
185
  begin
179
186
  # Direct Post Auth Request
@@ -214,7 +221,7 @@ end
214
221
 
215
222
  ### Authorization
216
223
 
217
- [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
224
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
218
225
 
219
226
  ### HTTP request headers
220
227
 
@@ -228,7 +235,8 @@ end
228
235
 
229
236
  Direct Post Tokenise Request
230
237
 
231
- Used to initiate a direct post request transaction flow. <pre class=\"inline-code language-bash\"> <code> curl https://api.citypay.com/v6/direct?cp-domain-key=n834ytqp84y... \\ -d \"amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW </code> </pre>.
238
+ Used to initiate a direct post request transaction flow.
239
+
232
240
 
233
241
  ### Examples
234
242
 
@@ -237,14 +245,14 @@ require 'time'
237
245
  require 'citypay_api_client'
238
246
  # setup authorization
239
247
  CityPayApiClient.configure do |config|
240
- config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
241
-
242
248
  # Configure API key authorization: cp-domain-key
243
249
  config.api_key['cp-domain-key'] = 'YOUR API KEY'
250
+
251
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
244
252
  end
245
253
 
246
254
  api_instance = CityPayApiClient::DirectPostApi.new
247
- direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2025, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
255
+ direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 19995, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, identifier: '95b857a1-5955-4b86-963c-5a6dbfc4fb95', mac: '3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D'}) # DirectPostRequest |
248
256
 
249
257
  begin
250
258
  # Direct Post Tokenise Request
@@ -285,7 +293,7 @@ end
285
293
 
286
294
  ### Authorization
287
295
 
288
- [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
296
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
289
297
 
290
298
  ### HTTP request headers
291
299
 
@@ -299,7 +307,9 @@ end
299
307
 
300
308
  Direct Post Token Request
301
309
 
302
- Perform a request for authorisation for a previously generated token. This flow will return an authorisation response stating that the transaction was approved or declined.
310
+ Perform a request for authorisation for a previously generated token. This flow will return an authorisation
311
+ response stating that the transaction was approved or declined.
312
+
303
313
 
304
314
  ### Examples
305
315
 
@@ -308,10 +318,10 @@ require 'time'
308
318
  require 'citypay_api_client'
309
319
  # setup authorization
310
320
  CityPayApiClient.configure do |config|
311
- config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
312
-
313
321
  # Configure API key authorization: cp-domain-key
314
322
  config.api_key['cp-domain-key'] = 'YOUR API KEY'
323
+
324
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
315
325
  end
316
326
 
317
327
  api_instance = CityPayApiClient::DirectPostApi.new
@@ -356,7 +366,7 @@ end
356
366
 
357
367
  ### Authorization
358
368
 
359
- [cp-api-key](../README.md#cp-api-key), [cp-domain-key](../README.md#cp-domain-key)
369
+ [cp-domain-key](../README.md#cp-domain-key), [cp-api-key](../README.md#cp-api-key)
360
370
 
361
371
  ### HTTP request headers
362
372
 
@@ -5,23 +5,24 @@
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **amount** | **Integer** | The amount to authorise in the lowest unit of currency with a variable length to a maximum of 12 digits. No decimal points are to be included and no divisional characters such as 1,024. The amount should be the total amount required for the transaction. For example with GBP £1,021.95 the amount value is 102195. | |
8
- | **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
8
+ | **avs_postcode_policy** | **String** | A policy value which determines whether an AVS postcode policy is enforced or bypassed. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send postcode details for authorisation. | [optional] |
9
9
  | **bill_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
10
10
  | **cardnumber** | **String** | The card number (PAN) with a variable length to a maximum of 21 digits in numerical form. Any non numeric characters will be stripped out of the card number, this includes whitespace or separators internal of the provided value. The card number must be treated as sensitive data. We only provide an obfuscated value in logging and reporting. The plaintext value is encrypted in our database using AES 256 GMC bit encryption for settlement or refund purposes. When providing the card number to our gateway through the authorisation API you will be handling the card data on your application. This will require further PCI controls to be in place and this value must never be stored. | |
11
- | **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify posession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
12
- | **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
11
+ | **csc** | **String** | The Card Security Code (CSC) (also known as CV2/CVV2) is normally found on the back of the card (American Express has it on the front). The value helps to identify possession of the card as it is not available within the chip or magnetic swipe. When forwarding the CSC, please ensure the value is a string as some values start with 0 and this will be stripped out by any integer parsing. The CSC number aids fraud prevention in Mail Order and Internet payments. Business rules are available on your account to identify whether to accept or decline transactions based on mismatched results of the CSC. The Payment Card Industry (PCI) requires that at no stage of a transaction should the CSC be stored. This applies to all entities handling card data. It should also not be used in any hashing process. CityPay do not store the value and have no method of retrieving the value once the transaction has been processed. For this reason, duplicate checking is unable to determine the CSC in its duplication check algorithm. | [optional] |
12
+ | **csc_policy** | **String** | A policy value which determines whether a CSC policy is enforced or bypassed. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send the CSC details for authorisation. | [optional] |
13
13
  | **currency** | **String** | The processing currency for the transaction. Will default to the merchant account currency. | [optional] |
14
- | **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. &#x60;2&#x60; to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. &#x60;3&#x60; to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
14
+ | **duplicate_policy** | **String** | A policy value which determines whether a duplication policy is enforced or bypassed. A duplication check has a window of time set against your account within which it can action. If a previous transaction with matching values occurred within the window, any subsequent transaction will result in a T001 result. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. &#x60;2&#x60; to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. &#x60;3&#x60; to ignore. Transactions that are ignored will have the same affect as bypass. | [optional] |
15
15
  | **expmonth** | **Integer** | The month of expiry of the card. The month value should be a numerical value between 1 and 12. | |
16
16
  | **expyear** | **Integer** | The year of expiry of the card. | |
17
17
  | **identifier** | **String** | The identifier of the transaction to process. The value should be a valid reference and may be used to perform post processing actions and to aid in reconciliation of transactions. The value should be a valid printable string with ASCII character ranges from 0x32 to 0x127. The identifier is recommended to be distinct for each transaction such as a [random unique identifier](https://en.wikipedia.org/wiki/Universally_unique_identifier) this will aid in ensuring each transaction is identifiable. When transactions are processed they are also checked for duplicate requests. Changing the identifier on a subsequent request will ensure that a transaction is considered as different. | |
18
18
  | **mac** | **String** | A message authentication code ensures the data is authentic and that the intended amount has not been tampered with. The mac value is generated using a hash-based mac value. The following algorithm is used. - A key (k) is derived from your licence key - A value (v) is produced by concatenating the nonce, amount value and identifier, such as a purchase with nonce &#x60;0123456789ABCDEF&#x60; an amount of £275.95 and an identifier of OD-12345678 would become &#x60;0123456789ABCDEF27595OD-12345678&#x60; and extracting the UTF-8 byte values - The result from HMAC_SHA256(k, v) is hex-encoded (upper-case) - For instance, a licence key of &#x60;LK123456789&#x60;, a nonce of &#x60;0123456789ABCDEF&#x60;, an amount of &#x60;27595&#x60; and an identifier of &#x60;OD-12345678&#x60; would generate a MAC of &#x60;163DBAB194D743866A9BCC7FC9C8A88FCD99C6BBBF08D619291212D1B91EE12E&#x60;. | |
19
- | **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the address did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
19
+ | **match_avsa** | **String** | A policy value which determines whether an AVS address policy is enforced, bypassed or ignored. Values are: &#x60;0&#x60; for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. &#x60;1&#x60; for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. &#x60;2&#x60; to bypass. Transactions that are bypassed will be allowed through even if the address did not match. &#x60;3&#x60; to ignore. Transactions that are ignored will bypass the result and not send address numeric details for authorisation. | [optional] |
20
20
  | **name_on_card** | **String** | The card holder name as appears on the card such as MR N E BODY. Required for some acquirers. | [optional] |
21
21
  | **nonce** | **String** | A random value Hex string (uppercase) which is provided to the API to perform a digest. The value will be used in any digest function. | [optional] |
22
22
  | **redirect_failure** | **String** | The URL used to redirect back to your site when a transaction has been rejected or declined. Required if a url-encoded request. | [optional] |
23
23
  | **redirect_success** | **String** | The URL used to redirect back to your site when a transaction has been tokenised or authorised. Required if a url-encoded request. | [optional] |
24
24
  | **ship_to** | [**ContactDetails**](ContactDetails.md) | | [optional] |
25
+ | **tag** | **Array&lt;String&gt;** | | [optional] |
25
26
  | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
26
27
  | **trans_info** | **String** | Further information that can be added to the transaction will display in reporting. Can be used for flexible values such as operator id. | [optional] |
27
28
  | **trans_type** | **String** | The type of transaction being submitted. Normally this value is not required and your account manager may request that you set this field. | [optional] |
@@ -32,7 +33,7 @@
32
33
  require 'citypay_api_client'
33
34
 
34
35
  instance = CityPayApiClient::DirectPostRequest.new(
35
- amount: 3600,
36
+ amount: 19995,
36
37
  avs_postcode_policy: null,
37
38
  bill_to: null,
38
39
  cardnumber: 4000 0000 0000 0002,
@@ -41,7 +42,7 @@ instance = CityPayApiClient::DirectPostRequest.new(
41
42
  currency: GBP,
42
43
  duplicate_policy: null,
43
44
  expmonth: 9,
44
- expyear: 2025,
45
+ expyear: 2027,
45
46
  identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
46
47
  mac: 3896FBC43674AF59478DAF7F546FA4D4CB89981A936E6AAE997E43B55DF6C39D,
47
48
  match_avsa: null,
@@ -50,6 +51,7 @@ instance = CityPayApiClient::DirectPostRequest.new(
50
51
  redirect_failure: https://pay.mystore.com/continue_failure,
51
52
  redirect_success: https://pay.mystore.com/continue_success,
52
53
  ship_to: null,
54
+ tag: null,
53
55
  threedsecure: null,
54
56
  trans_info: null,
55
57
  trans_type: null
@@ -16,10 +16,10 @@
16
16
  require 'citypay_api_client'
17
17
 
18
18
  instance = CityPayApiClient::EventDataModel.new(
19
- event_end_date: null,
19
+ event_end_date: Mon Apr 22 00:00:00 UTC 2024,
20
20
  event_id: null,
21
21
  event_organiser_id: null,
22
- event_start_date: null,
22
+ event_start_date: Mon Apr 22 00:00:00 UTC 2024,
23
23
  payment_type: null
24
24
  )
25
25
  ```
@@ -0,0 +1,28 @@
1
+ # CityPayApiClient::MerchantBatchReportRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **date_from** | **Date** | Start date (YYYY-MM-DD) for batch retrieval range, inclusive. Maximum value is 3 years ago. | [optional] |
8
+ | **date_until** | **Date** | End date (YYYY-MM-DD) for batch retrieval range, inclusive. | [optional] |
9
+ | **max_results** | **Integer** | The maximum number of results to return in a single response. This value is used to limit the size of data returned by the API, enhancing performance and manageability. Values should be between 5 and 250. | [optional] |
10
+ | **merchant_id** | **Array&lt;Integer&gt;** | | [optional] |
11
+ | **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
12
+ | **order_by** | **String** | Specifies the field by which results are ordered. Available fields are [merchant_id,batch_no,net_amount]. By default, fields are ordered by OrderByExpression(merchant_id,ASC),OrderByExpression(batch_no,ASC). To order in descending order, prefix with &#39;-&#39; or suffix with &#39; DESC&#39;. | [optional] |
13
+
14
+ ## Example
15
+
16
+ ```ruby
17
+ require 'citypay_api_client'
18
+
19
+ instance = CityPayApiClient::MerchantBatchReportRequest.new(
20
+ date_from: Wed Jan 24 00:00:00 UTC 2024,
21
+ date_until: Wed Jan 31 00:00:00 UTC 2024,
22
+ max_results: 50,
23
+ merchant_id: null,
24
+ next_token: n34liuwn435tUAGFNg34yn...,
25
+ order_by: date
26
+ )
27
+ ```
28
+
@@ -0,0 +1,24 @@
1
+ # CityPayApiClient::MerchantBatchReportResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **batches** | [**Array&lt;MerchantBatchResponse&gt;**](MerchantBatchResponse.md) | | |
8
+ | **count** | **Integer** | The count of items returned in this page. | [optional] |
9
+ | **max_results** | **Integer** | The max results requested in this page. | [optional] |
10
+ | **next_token** | **String** | A token that identifies the starting point of the page of results to be returned. An empty value indicates the start of the dataset. When supplied, it is validated and used to fetch the subsequent page of results. This token is typically obtained from the response of a previous pagination request. | [optional] |
11
+
12
+ ## Example
13
+
14
+ ```ruby
15
+ require 'citypay_api_client'
16
+
17
+ instance = CityPayApiClient::MerchantBatchReportResponse.new(
18
+ batches: null,
19
+ count: 25,
20
+ max_results: 50,
21
+ next_token: n34liuwn435tUAGFNg34yn...
22
+ )
23
+ ```
24
+
@@ -0,0 +1,30 @@
1
+ # CityPayApiClient::MerchantBatchResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **batch_closed** | **Time** | The date and time when the batch was closed. This is represented in ISO 8601 format (e.g., YYYY-MM-DDTHH:MM:SSZ) and indicates when the batch processing was completed. | [optional] |
8
+ | **batch_no** | **String** | The incremental identifier of the batch. This number is used to track and reference the batch in subsequent operations or inquiries. | [optional] |
9
+ | **batch_status** | **String** | A descriptive string detailing the current status of the batch. This status provides a human-readable explanation of the batch&#39;s processing state. | [optional] |
10
+ | **batch_status_code** | **String** | A batch status code that represents the processing state of the batch. Batches will be one of - &#39;O&#39; defining the batch is open for settlement and not yet settled - &#39;X&#39; defines that the batch is external to our systems and managed elsewhere - &#39;C&#39; defines that the batch is cancelled and not settled - &#39;S&#39; defines that the batch has been settled and remitted. | [optional] |
11
+ | **currency** | **String** | The currency of the batch. | [optional] |
12
+ | **merchantid** | **Integer** | The Merchant ID (MID) associated with the batch. This identifier specifies which merchant account the batch was processed for, linking transactions to the merchant. | [optional] |
13
+ | **net_summary** | [**NetSummaryResponse**](NetSummaryResponse.md) | | [optional] |
14
+
15
+ ## Example
16
+
17
+ ```ruby
18
+ require 'citypay_api_client'
19
+
20
+ instance = CityPayApiClient::MerchantBatchResponse.new(
21
+ batch_closed: 2024-04-22T13:29:14Z,
22
+ batch_no: null,
23
+ batch_status: null,
24
+ batch_status_code: null,
25
+ currency: GBP,
26
+ merchantid: 11223344,
27
+ net_summary: null
28
+ )
29
+ ```
30
+
@@ -0,0 +1,32 @@
1
+ # CityPayApiClient::NetSummaryResponse
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **credit_items_amount** | **String** | The total value of refund (credit) transaction items. Represents the sum of funds returned to customers. | [optional] |
8
+ | **credit_items_count** | **Integer** | The count of refund (credit) transaction items. Reflects the number of refund transactions processed. | [optional] |
9
+ | **credit_items_value** | **Integer** | The total value of refund (credit) transaction items. Represents the sum of funds returned to customers. | [optional] |
10
+ | **debit_items_amount** | **String** | The total value of charge (debit) transaction items. Represents the sum of funds received from charges. | [optional] |
11
+ | **debit_items_count** | **Integer** | The count of charge (debit) transaction items. Indicates the number of charge transactions processed. | [optional] |
12
+ | **debit_items_value** | **Integer** | The total value of charge (debit) transaction items. Represents the sum of funds received from charges. | [optional] |
13
+ | **net_amount** | **Integer** | The absolute net value, reflecting the net gain or loss from transactions. | [optional] |
14
+ | **total_count** | **Integer** | The total count of all transaction items. | [optional] |
15
+
16
+ ## Example
17
+
18
+ ```ruby
19
+ require 'citypay_api_client'
20
+
21
+ instance = CityPayApiClient::NetSummaryResponse.new(
22
+ credit_items_amount: £75.89,
23
+ credit_items_count: 12345,
24
+ credit_items_value: 11874500,
25
+ debit_items_amount: £75.89,
26
+ debit_items_count: 12345,
27
+ debit_items_value: 11874500,
28
+ net_amount: 11874500,
29
+ total_count: 12345
30
+ )
31
+ ```
32
+