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
@@ -17,7 +17,9 @@ All URIs are relative to *https://api.citypay.com*
17
17
 
18
18
  ACL Check Request
19
19
 
20
- Allows the checking of IP addresses against configured ACLs. Requests can perform a lookup of addresses in subnets and services such as AWS or Azure to check that those addresses are listed in the ACLs.
20
+ Allows the checking of IP addresses against configured ACLs. Requests can perform a lookup of addresses in subnets and
21
+ services such as AWS or Azure to check that those addresses are listed in the ACLs.
22
+
21
23
 
22
24
  ### Examples
23
25
 
@@ -85,7 +87,9 @@ end
85
87
 
86
88
  Domain Key Check Request
87
89
 
88
- Checks the contents of a `domain key`. Can be used for operational processes to ensure that the properties of a domain key meet their expectations.
90
+ Checks the contents of a `domain key`. Can be used for operational processes to ensure that the properties of a
91
+ domain key meet their expectations.
92
+
89
93
 
90
94
  ### Examples
91
95
 
@@ -153,7 +157,9 @@ end
153
157
 
154
158
  Domain Key Generation Request
155
159
 
156
- Generates a domain key based on the permissions of the calling `api-key`. Domain keys can be used in _Direct Post_ and `XHR` calls to the API services.
160
+ Generates a domain key based on the permissions of the calling `api-key`. Domain keys can be used in _Direct Post_ and
161
+ `XHR` calls to the API services.
162
+
157
163
 
158
164
  ### Examples
159
165
 
@@ -221,7 +227,14 @@ end
221
227
 
222
228
  List Merchants Request
223
229
 
224
- An operational request to list current merchants for a client. ### Sorting Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid` Fields that can be sorted are `merchantid` or `name`.
230
+ An operational request to list current merchants for a client.
231
+
232
+ ### Sorting
233
+
234
+ Sorting can be performed by include a query parameter i.e. `/merchants/?sort=merchantid`
235
+
236
+ Fields that can be sorted are `merchantid` or `name`.
237
+
225
238
 
226
239
  ### Examples
227
240
 
@@ -289,7 +302,14 @@ end
289
302
 
290
303
  Ping Request
291
304
 
292
- A ping request which performs a connection and authentication test to the CityPay API server. The request will return a standard Acknowledgement with a response code `044` to signify a successful ping. The ping call is useful to confirm that you will be able to access the API from behind any firewalls and that the permission model is granting access from your source.
305
+ A ping request which performs a connection and authentication test to the CityPay API server. The request
306
+ will return a standard Acknowledgement with a response code `044` to signify a successful
307
+ ping.
308
+
309
+ The ping call is useful to confirm that you will be able to access
310
+ the API from behind any firewalls and that the permission
311
+ model is granting access from your source.
312
+
293
313
 
294
314
  ### Examples
295
315
 
@@ -298,10 +318,10 @@ require 'time'
298
318
  require 'citypay_api_client'
299
319
  # setup authorization
300
320
  CityPayApiClient.configure do |config|
301
- config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
302
-
303
321
  # Configure API key authorization: cp-domain-key
304
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
305
325
  end
306
326
 
307
327
  api_instance = CityPayApiClient::OperationalFunctionsApi.new
@@ -346,7 +366,7 @@ end
346
366
 
347
367
  ### Authorization
348
368
 
349
- [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)
350
370
 
351
371
  ### HTTP request headers
352
372
 
@@ -14,7 +14,7 @@
14
14
  require 'citypay_api_client'
15
15
 
16
16
  instance = CityPayApiClient::PaylinkAdjustmentRequest.new(
17
- amount: 3600,
17
+ amount: 19995,
18
18
  identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
19
19
  reason: null
20
20
  )
data/docs/PaylinkApi.md CHANGED
@@ -5,13 +5,15 @@ All URIs are relative to *https://api.citypay.com*
5
5
  | Method | HTTP request | Description |
6
6
  | ------ | ------------ | ----------- |
7
7
  | [**token_adjustment_request**](PaylinkApi.md#token_adjustment_request) | **POST** /paylink/{token}/adjustment | Paylink Token Adjustment |
8
+ | [**token_cancel_request**](PaylinkApi.md#token_cancel_request) | **PUT** /paylink/{token}/cancel | Cancel a Paylink Token |
9
+ | [**token_changes_request**](PaylinkApi.md#token_changes_request) | **POST** /paylink/token/changes | Paylink Token Audit |
8
10
  | [**token_close_request**](PaylinkApi.md#token_close_request) | **PUT** /paylink/{token}/close | Close Paylink Token |
9
11
  | [**token_create_bill_payment_request**](PaylinkApi.md#token_create_bill_payment_request) | **POST** /paylink/bill-payment | Create Bill Payment Paylink Token |
10
12
  | [**token_create_request**](PaylinkApi.md#token_create_request) | **POST** /paylink/create | Create Paylink Token |
11
13
  | [**token_purge_attachments_request**](PaylinkApi.md#token_purge_attachments_request) | **PUT** /paylink/{token}/purge-attachments | Purges any attachments for a Paylink Token |
12
14
  | [**token_reconciled_request**](PaylinkApi.md#token_reconciled_request) | **PUT** /paylink/{token}/reconciled | Reconcile Paylink Token |
13
15
  | [**token_reopen_request**](PaylinkApi.md#token_reopen_request) | **PUT** /paylink/{token}/reopen | Reopen Paylink Token |
14
- | [**token_status_changes_request**](PaylinkApi.md#token_status_changes_request) | **POST** /paylink/token/changes | Paylink Token Audit |
16
+ | [**token_resend_notification_request**](PaylinkApi.md#token_resend_notification_request) | **POST** /paylink/{token}/resend-notification | Resend a notification for Paylink Token |
15
17
  | [**token_status_request**](PaylinkApi.md#token_status_request) | **GET** /paylink/{token}/status | Paylink Token Status |
16
18
 
17
19
 
@@ -21,7 +23,11 @@ All URIs are relative to *https://api.citypay.com*
21
23
 
22
24
  Paylink Token Adjustment
23
25
 
24
- Adjusts a TokenRequest's amount value when for instance 1. a Token is created and the shopping cart is updated 2. an invoice is adjusted either due to part payment or due to increased incurred costs.
26
+ Adjusts a TokenRequest's amount value when for instance
27
+
28
+ 1. a Token is created and the shopping cart is updated
29
+ 2. an invoice is adjusted either due to part payment or due to increased incurred costs.
30
+
25
31
 
26
32
  ### Examples
27
33
 
@@ -85,13 +91,151 @@ end
85
91
  - **Accept**: application/json, text/xml
86
92
 
87
93
 
94
+ ## token_cancel_request
95
+
96
+ > <Acknowledgement> token_cancel_request(token)
97
+
98
+ Cancel a Paylink Token
99
+
100
+ Marks a Paylink Token as cancelled. This cancels the Token for any future request for processing.
101
+
102
+ ### Examples
103
+
104
+ ```ruby
105
+ require 'time'
106
+ require 'citypay_api_client'
107
+ # setup authorization
108
+ CityPayApiClient.configure do |config|
109
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
110
+ end
111
+
112
+ api_instance = CityPayApiClient::PaylinkApi.new
113
+ token = 'token_example' # String | The token returned by the create token process.
114
+
115
+ begin
116
+ # Cancel a Paylink Token
117
+ result = api_instance.token_cancel_request(token)
118
+ p result
119
+ rescue CityPayApiClient::ApiError => e
120
+ puts "Error when calling PaylinkApi->token_cancel_request: #{e}"
121
+ end
122
+ ```
123
+
124
+ #### Using the token_cancel_request_with_http_info variant
125
+
126
+ This returns an Array which contains the response data, status code and headers.
127
+
128
+ > <Array(<Acknowledgement>, Integer, Hash)> token_cancel_request_with_http_info(token)
129
+
130
+ ```ruby
131
+ begin
132
+ # Cancel a Paylink Token
133
+ data, status_code, headers = api_instance.token_cancel_request_with_http_info(token)
134
+ p status_code # => 2xx
135
+ p headers # => { ... }
136
+ p data # => <Acknowledgement>
137
+ rescue CityPayApiClient::ApiError => e
138
+ puts "Error when calling PaylinkApi->token_cancel_request_with_http_info: #{e}"
139
+ end
140
+ ```
141
+
142
+ ### Parameters
143
+
144
+ | Name | Type | Description | Notes |
145
+ | ---- | ---- | ----------- | ----- |
146
+ | **token** | **String** | The token returned by the create token process. | |
147
+
148
+ ### Return type
149
+
150
+ [**Acknowledgement**](Acknowledgement.md)
151
+
152
+ ### Authorization
153
+
154
+ [cp-api-key](../README.md#cp-api-key)
155
+
156
+ ### HTTP request headers
157
+
158
+ - **Content-Type**: Not defined
159
+ - **Accept**: application/json, text/xml
160
+
161
+
162
+ ## token_changes_request
163
+
164
+ > <PaylinkTokenStatusChangeResponse> token_changes_request(paylink_token_status_change_request)
165
+
166
+ Paylink Token Audit
167
+
168
+ Allows for the changes to a pre-existing token.
169
+
170
+ ### Examples
171
+
172
+ ```ruby
173
+ require 'time'
174
+ require 'citypay_api_client'
175
+ # setup authorization
176
+ CityPayApiClient.configure do |config|
177
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
178
+ end
179
+
180
+ api_instance = CityPayApiClient::PaylinkApi.new
181
+ paylink_token_status_change_request = CityPayApiClient::PaylinkTokenStatusChangeRequest.new({after: Time.parse('2024-04-22T13:29:14Z'), merchantid: 11223344}) # PaylinkTokenStatusChangeRequest |
182
+
183
+ begin
184
+ # Paylink Token Audit
185
+ result = api_instance.token_changes_request(paylink_token_status_change_request)
186
+ p result
187
+ rescue CityPayApiClient::ApiError => e
188
+ puts "Error when calling PaylinkApi->token_changes_request: #{e}"
189
+ end
190
+ ```
191
+
192
+ #### Using the token_changes_request_with_http_info variant
193
+
194
+ This returns an Array which contains the response data, status code and headers.
195
+
196
+ > <Array(<PaylinkTokenStatusChangeResponse>, Integer, Hash)> token_changes_request_with_http_info(paylink_token_status_change_request)
197
+
198
+ ```ruby
199
+ begin
200
+ # Paylink Token Audit
201
+ data, status_code, headers = api_instance.token_changes_request_with_http_info(paylink_token_status_change_request)
202
+ p status_code # => 2xx
203
+ p headers # => { ... }
204
+ p data # => <PaylinkTokenStatusChangeResponse>
205
+ rescue CityPayApiClient::ApiError => e
206
+ puts "Error when calling PaylinkApi->token_changes_request_with_http_info: #{e}"
207
+ end
208
+ ```
209
+
210
+ ### Parameters
211
+
212
+ | Name | Type | Description | Notes |
213
+ | ---- | ---- | ----------- | ----- |
214
+ | **paylink_token_status_change_request** | [**PaylinkTokenStatusChangeRequest**](PaylinkTokenStatusChangeRequest.md) | | |
215
+
216
+ ### Return type
217
+
218
+ [**PaylinkTokenStatusChangeResponse**](PaylinkTokenStatusChangeResponse.md)
219
+
220
+ ### Authorization
221
+
222
+ [cp-api-key](../README.md#cp-api-key)
223
+
224
+ ### HTTP request headers
225
+
226
+ - **Content-Type**: application/json, text/xml
227
+ - **Accept**: application/json, text/xml
228
+
229
+
88
230
  ## token_close_request
89
231
 
90
232
  > <Acknowledgement> token_close_request(token)
91
233
 
92
234
  Close Paylink Token
93
235
 
94
- Marks a Paylink Token as closed. This closes the Token for any future action and the Token will not appear in any status request calls.
236
+ Marks a Paylink Token as closed. This closes the Token for any future action and the Token will not appear in any status
237
+ request calls.
238
+
95
239
 
96
240
  ### Examples
97
241
 
@@ -159,7 +303,177 @@ end
159
303
 
160
304
  Create Bill Payment Paylink Token
161
305
 
162
- CityPay Paylink supports invoice and bill payment services by allowing merchants to raise an invoice in their systems and associate the invoice with a Paylink checkout token. CityPay will co-ordinate the checkout flow in relationship with your customer. Our bill payment solution may be used to streamline the payment flow with cardholders to allow your invoice to be paid promptly and via multiple payment channels such as Card Payment, Apple Pay or Google Pay. The bill payment service allows 1. setting up notification paths to an end customer, such as SMS or Email 2. enabling attachments to be included with Paylink tokens 3. produce chaser notifications for unpaid invoices 4. provide callbacks for notification of the payment of an invoice 5. support part payments against an invoice 6. support of field guards to protect the payment screen 7. support of status reporting on tokens 8. URL short codes for SMS notifications <img src=\"../images/merchant-BPS-workflow.png\" alt=\"Paylink BPSv2 Overview\" width=\"50%\"/> ### Notification Paths Notification paths can be provided which identify the channels for communication of the invoice availability. Up to 3 notification paths may be provided per request. Each notification uses a template to generate the body of the message. This allows for variable text to be sent out and customised for each call. SMS messages use URL Short Codes (USC) as a payment link to the invoice payment page. This allows for a standard payment URL to be shortened for optimised usage in SMS. For instance a URL of `https://checkout.citypay.com/PL1234/s348yb8yna4a48n2f8nq2f3msgyng-psn348ynaw8ynaw/en` becomes `citypay.com/Za48na3x`. Each USC is unique however it is a requirement that each USC generated is protected with Field Guards to ensure that sensitive data (such as customer contact details and GDPR) is protected. To send a notification path, append a `notification-path` property to the request. ```json { \"sms_notification_path\": { \"to\": \"+441534884000\" }, \"email_notification_path\": { \"to\": [\"help-desk@citypay.com\"], \"cc\": [\"third-party@citypay.com\"], \"reply\": [\"help@my-company.com\"] } } ``` Notification paths trigger a number of events which are stored as part of the timeline of events of a Paylink token - `BillPaymentSmsNotificationQueued` - identifies when an SMS notification has been queued for delivery - `BillPaymentSmsNotificationSent` - identifies when an SMS notification has been sent to the upstream network - `BillPaymentSmsNotificationDelivered` - identifies when an SMS notification has been delivered as notified by the upstream network - `BillPaymentSmsNotificationUndelivered` - identifies when an SMS notification has undelivered notification is provided by the upstream network - `BillPaymentSmsNotificationFailure` - identifies when an SMS notification has failed - `BillPaymentEmailNotificationQueued` - identifies when an email notification has been queued for delivery - `BillPaymentEmailNotificationSent` - identifies when an email notification has been accepted by our SMS forwarder - `BillPaymentEmailNotificationFailure` - identifies when an email notification has failed delivery #### SMS Notification Path SMS originated from a CityPay pool of numbers and by default only sends to country codes where the service is registered. SMSs may contain a From field which is configured as part of you onboarding and have a name associated to identify the service origin. For example if your business is titled `Health Surgery Ltd` the SMS may be sent to originate from `Health Surgery`. SMS is also configured for a \"polite mode\". This mode ensures that SMSs aren't sent in the middle of the night when backend services ordinarily run. SMSs will be queued until the time range is deemed as polite. Normally this is between 8am and 9pm. | Field | Type | Usage | Description | |----------|----------|----------|-------------------------------------------------------------------------------------------------| | template | string | Reserved | An optional template name to use a template other than the default. | | to | string | Reserved | The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format to send the message to. | #### Email Notification Paths | Field | Type | Usage | Description | |----------|----------|----------|-------------------------------------------------------------------------------------------------| | template | string | Reserved | An optional template name to use a template other than the default. | | to | string[] | Required | An array of email addresses to be used for delivery. A maximum of 5 addresses can be added. | | cc | string[] | Required | An array of email addresses to be used for cc delivery. A maximum of 5 addresses can be added. | | bcc | string[] | Required | An array of email addresses to be used for bcc delivery. A maximum of 5 addresses can be added. | | reply_to | string[] | Required | An array of email addresses to be used for the Reply-To header of an email. | ### Field Guards To ensure that invoices are paid by the intended recipient, Paylink supports the addition of Field Guards. A Field Guard is an intended field which is to be used as a form of guarded authentication. More than 1 field can be requested. <img src=\"../images/paylink-field-guards.png\" alt=\"Paylink Field Guards\" width=\"50%\"/> To determine the source value of the field, each field name is searched in the order of - identifier - cardholder data such as name - custom parameters - pass through data If no field values are found, the token request returns a D041 validation error. #### Authentication and Validation When values are entered by the user, resultant comparisons are performed by 1. Transliteration of both the source value and entered value. For example, names with accents (e.g. é will become e) 2. Only Alphanumeric values are retained any whitespace or special characters are ignored 3. Case is ignored Should all values match, the user is authenticated and can continue to the payment form rendered by the Paylink server. On successful login, an event will be added to include that the access guard validated access. #### Access-Key To ensure that a user does not need to re-enter these values multiple times, a cookie is pushed to the user’s browser with an access-key digest value. This value will be presented to the server on each refresh therefore allowing the guard to accept the call. Each value is uniquely stored per merchant account and cannot be shared cross merchant. The lifetime of the cookie is set to 24 hours. #### Brute Force Prevention To prevent multiple calls hitting the server, attempting a brute force attack, the login process 1. is fronted by a contemporary web application firewall 2. creates an event for each token when access was denied 3. should the number of failed events breach more than 5 in 30 minutes, the token is locked for an hour 4. should the number of events breach more than 20 the token is fully locked ### Attachments Attachments can be included in the request in 2 ways 1. Via a data element direct in the request 2. Via a URL upload to a provided pre-signed URL The decision of which option is dependent on the size of the attachments. Should the attachment size be greater than 32kb a URL upload is required. Small attachments can be included in the JSON request. This is to prevent our web firewall from blocking your request and to also ensure efficiency of larger file uploads. There is a maximum of 3 attachments that can be added to a request. ```json [{ \"filename\": \"invoice1.pdf\", \"mime-type\": \"application/pdf\" },{ \"filename\": \"invoice2.pdf\", \"data\": \"b4sE64Enc0dEd...=\", \"mime-type\": \"application/pdf\" }] ``` | Field | Type | Usage | Description | |-----------|--------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------| | filename | string | Required | The name of the attachment normally taken from the filename. You should not include the filename path as appropriate | | data | string | Optional | base64 encoding of the file if less than 32kb in size | | mime-type | string | Required | The mime type of the attachment as defined in [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html). Currently only `application/pdf` is supported | #### Attachment Result A result of an attachment specifies whether the attachment was successfully added or whether a further upload is requried | Field | Type | Usage | Description | |--------|--------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------| | result | string | Required | `OK` should the file have uploaded or `UPLOAD` if the file is required to be uploaded. | | name | string | Required | The filename that was specified in the upload process | | url | string | Optional | Should an upload be required, this URL is available for an upload to be issued. The URL is only available for uploads for 24 hours from creation. |
306
+ CityPay Paylink supports invoice and bill payment services by allowing merchants to raise an invoice in their systems and
307
+ associate the invoice with a Paylink checkout token. CityPay will co-ordinate the checkout flow in relationship with
308
+ your customer. Our bill payment solution may be used to streamline the payment flow with cardholders to allow your
309
+ invoice to be paid promptly and via multiple payment channels such as Card Payment, Apple Pay or Google Pay.
310
+
311
+ The bill payment service allows
312
+
313
+ 1. setting up notification paths to an end customer, such as SMS or Email
314
+ 2. enabling attachments to be included with Paylink tokens
315
+ 3. produce chaser notifications for unpaid invoices
316
+ 4. provide callbacks for notification of the payment of an invoice
317
+ 5. support part payments against an invoice
318
+ 6. support of field guards to protect the payment screen
319
+ 7. support of status reporting on tokens
320
+ 8. URL short codes for SMS notifications
321
+
322
+ <img src="images/merchant-BPS-workflow.png" alt="Paylink BPSv2 Overview" width="50%"/>
323
+
324
+
325
+ ### Notification Paths
326
+
327
+ Notification paths can be provided which identify the channels for communication of the invoice availability.
328
+ Up to 3 notification paths may be provided per request.
329
+
330
+ Each notification uses a template to generate the body of the message. This allows for variable text to be sent out and
331
+ customised for each call.
332
+
333
+ SMS messages use URL Short Codes (USC) as a payment link to the invoice payment page. This allows for a standard payment
334
+ URL to be shortened for optimised usage in SMS. For instance a URL of `https://checkout.citypay.com/PL1234/s348yb8yna4a48n2f8nq2f3msgyng-psn348ynaw8ynaw/en`
335
+ becomes `citypay.com/Za48na3x`. Each USC is unique however it is a requirement that each USC generated is protected
336
+ with Field Guards to ensure that sensitive data (such as customer contact details and GDPR) is protected.
337
+
338
+ To send a notification path, append a `notification-path` property to the request.
339
+
340
+ ```json
341
+ {
342
+ "sms_notification_path": {
343
+ "to": "+441534884000"
344
+ },
345
+ "email_notification_path": {
346
+ "to": ["help-desk@citypay.com"],
347
+ "cc": ["third-party@citypay.com"],
348
+ "reply": ["help@my-company.com"]
349
+ }
350
+ }
351
+ ```
352
+
353
+ Notification paths trigger a number of events which are stored as part of the timeline of events of a Paylink token
354
+
355
+ - `BillPaymentSmsNotificationQueued` - identifies when an SMS notification has been queued for delivery
356
+ - `BillPaymentSmsNotificationSent` - identifies when an SMS notification has been sent to the upstream network
357
+ - `BillPaymentSmsNotificationDelivered` - identifies when an SMS notification has been delivered as notified by the upstream network
358
+ - `BillPaymentSmsNotificationUndelivered` - identifies when an SMS notification has undelivered notification is provided by the upstream network
359
+ - `BillPaymentSmsNotificationFailure` - identifies when an SMS notification has failed
360
+ - `BillPaymentEmailNotificationQueued` - identifies when an email notification has been queued for delivery
361
+ - `BillPaymentEmailNotificationSent` - identifies when an email notification has been accepted by our SMS forwarder
362
+ - `BillPaymentEmailNotificationFailure` - identifies when an email notification has failed delivery
363
+
364
+
365
+ #### SMS Notification Path
366
+
367
+ SMS originated from a CityPay pool of numbers and by default only sends to country codes where the service is registered.
368
+ SMSs may contain a From field which is configured as part of you onboarding and have a name associated to identify the service
369
+ origin. For example if your business is titled `Health Surgery Ltd` the SMS may be sent to originate from `Health Surgery`.
370
+
371
+ SMS is also configured for a "polite mode". This mode ensures that SMSs aren't sent in the middle of the night when backend
372
+ services ordinarily run. SMSs will be queued until the time range is deemed as polite. Normally this is between 8am and 9pm.
373
+
374
+ | Field | Type | Usage | Description |
375
+ |----------|----------|----------|-------------------------------------------------------------------------------------------------|
376
+ | template | string | Reserved | An optional template name to use a template other than the default. |
377
+ | to | string | Reserved | The phone number in [E.164](https://en.wikipedia.org/wiki/E.164) format to send the message to. |
378
+
379
+ #### Email Notification Paths
380
+
381
+ | Field | Type | Usage | Description |
382
+ |----------|----------|----------|-------------------------------------------------------------------------------------------------|
383
+ | template | string | Reserved | An optional template name to use a template other than the default. |
384
+ | to | string[] | Required | An array of email addresses to be used for delivery. A maximum of 5 addresses can be added. |
385
+ | cc | string[] | Required | An array of email addresses to be used for cc delivery. A maximum of 5 addresses can be added. |
386
+ | bcc | string[] | Required | An array of email addresses to be used for bcc delivery. A maximum of 5 addresses can be added. |
387
+ | reply_to | string[] | Required | An array of email addresses to be used for the Reply-To header of an email. |
388
+
389
+
390
+ ### Field Guards
391
+
392
+ To ensure that invoices are paid by the intended recipient, Paylink supports the addition of Field Guards.
393
+
394
+ A Field Guard is an intended field which is to be used as a form of guarded authentication. More than 1 field can be
395
+ requested.
396
+
397
+ <img src="images/paylink-field-guards.png" alt="Paylink Field Guards" width="50%"/>
398
+
399
+ To determine the source value of the field, each field name is searched in the order of
400
+
401
+ - identifier
402
+ - cardholder data such as name
403
+ - custom parameters
404
+ - pass through data
405
+
406
+ If no field values are found, the token request returns a D041 validation error.
407
+
408
+ #### Authentication and Validation
409
+
410
+ When values are entered by the user, resultant comparisons are performed by
411
+
412
+ 1. Transliteration of both the source value and entered value. For example, names with accents (e.g. é will become e)
413
+ 2. Only Alphanumeric values are retained any whitespace or special characters are ignored
414
+ 3. Case is ignored
415
+
416
+ Should all values match, the user is authenticated and can continue to the payment form rendered by the Paylink server.
417
+
418
+ On successful login, an event will be added to include that the access guard validated access.
419
+
420
+ #### Access-Key
421
+
422
+ To ensure that a user does not need to re-enter these values multiple times, a cookie is pushed to the user’s
423
+ browser with an access-key digest value. This value will be presented to the server on each refresh therefore
424
+ allowing the guard to accept the call. Each value is uniquely stored per merchant account and cannot be shared cross
425
+ merchant. The lifetime of the cookie is set to 24 hours.
426
+
427
+ #### Brute Force Prevention
428
+
429
+ To prevent multiple calls hitting the server, attempting a brute force attack, the login process
430
+
431
+ 1. is fronted by a contemporary web application firewall
432
+ 2. creates an event for each token when access was denied
433
+ 3. should the number of failed events breach more than 5 in 30 minutes, the token is locked for an hour
434
+ 4. should the number of events breach more than 20 the token is fully locked
435
+
436
+ ### Attachments
437
+
438
+ Attachments can be included in the request in 2 ways
439
+
440
+ 1. Via a data element direct in the request
441
+ 2. Via a URL upload to a provided pre-signed URL
442
+
443
+ The decision of which option is dependent on the size of the attachments. Should the attachment size be greater than
444
+ 32kb a URL upload is required. Small attachments can be included in the JSON request. This is to prevent our web
445
+ firewall from blocking your request and to also ensure efficiency of larger file uploads.
446
+
447
+ There is a maximum of 3 attachments that can be added to a request.
448
+
449
+ ```json
450
+ [{
451
+ "filename": "invoice1.pdf",
452
+ "mime-type": "application/pdf"
453
+ },{
454
+ "filename": "invoice2.pdf",
455
+ "data": "b4sE64Enc0dEd...=",
456
+ "mime-type": "application/pdf"
457
+ }]
458
+ ```
459
+
460
+ | Field | Type | Usage | Description |
461
+ |-----------|--------|----------|------------------------------------------------------------------------------------------------------------------------------------------------------|
462
+ | filename | string | Required | The name of the attachment normally taken from the filename. You should not include the filename path as appropriate |
463
+ | data | string | Optional | base64 encoding of the file if less than 32kb in size |
464
+ | mime-type | string | Required | The mime type of the attachment as defined in [RFC 9110](https://www.rfc-editor.org/rfc/rfc9110.html). Currently only `application/pdf` is supported |
465
+
466
+
467
+ #### Attachment Result
468
+
469
+ A result of an attachment specifies whether the attachment was successfully added or whether a further upload is requried
470
+
471
+ | Field | Type | Usage | Description |
472
+ |--------|--------|----------|---------------------------------------------------------------------------------------------------------------------------------------------------|
473
+ | result | string | Required | `OK` should the file have uploaded or `UPLOAD` if the file is required to be uploaded. |
474
+ | name | string | Required | The filename that was specified in the upload process |
475
+ | url | string | Optional | Should an upload be required, this URL is available for an upload to be issued. The URL is only available for uploads for 24 hours from creation. |
476
+
163
477
 
164
478
  ### Examples
165
479
 
@@ -363,7 +677,7 @@ end
363
677
 
364
678
  Reconcile Paylink Token
365
679
 
366
- Marks a Paylink Token as reconciled when reconcilation is performed on the merchant's side.
680
+ Marks a Paylink Token as reconciled when reconciliation is performed on the merchant's side.
367
681
 
368
682
  ### Examples
369
683
 
@@ -493,13 +807,13 @@ end
493
807
  - **Accept**: application/json, text/xml
494
808
 
495
809
 
496
- ## token_status_changes_request
810
+ ## token_resend_notification_request
497
811
 
498
- > <PaylinkTokenStatusChangeResponse> token_status_changes_request(paylink_token_status_change_request)
812
+ > <Acknowledgement> token_resend_notification_request(token, paylink_resend_notification_request)
499
813
 
500
- Paylink Token Audit
814
+ Resend a notification for Paylink Token
501
815
 
502
- Obtains any changes on Paylink Tokens since a given date and time. This allows for a merchant to regularly check on activity over a collection of Paylink Tokens and to check on any events that may have occurred. If a Token is `Closed` it is not considered. Only statuses that have been appended since the given date and time is returned.
816
+ Resend a notification for Paylink Token.
503
817
 
504
818
  ### Examples
505
819
 
@@ -512,32 +826,33 @@ CityPayApiClient.configure do |config|
512
826
  end
513
827
 
514
828
  api_instance = CityPayApiClient::PaylinkApi.new
515
- paylink_token_status_change_request = CityPayApiClient::PaylinkTokenStatusChangeRequest.new({after: Time.now, merchantid: 11223344}) # PaylinkTokenStatusChangeRequest |
829
+ token = 'token_example' # String | The token returned by the create token process.
830
+ paylink_resend_notification_request = CityPayApiClient::PaylinkResendNotificationRequest.new # PaylinkResendNotificationRequest |
516
831
 
517
832
  begin
518
- # Paylink Token Audit
519
- result = api_instance.token_status_changes_request(paylink_token_status_change_request)
833
+ # Resend a notification for Paylink Token
834
+ result = api_instance.token_resend_notification_request(token, paylink_resend_notification_request)
520
835
  p result
521
836
  rescue CityPayApiClient::ApiError => e
522
- puts "Error when calling PaylinkApi->token_status_changes_request: #{e}"
837
+ puts "Error when calling PaylinkApi->token_resend_notification_request: #{e}"
523
838
  end
524
839
  ```
525
840
 
526
- #### Using the token_status_changes_request_with_http_info variant
841
+ #### Using the token_resend_notification_request_with_http_info variant
527
842
 
528
843
  This returns an Array which contains the response data, status code and headers.
529
844
 
530
- > <Array(<PaylinkTokenStatusChangeResponse>, Integer, Hash)> token_status_changes_request_with_http_info(paylink_token_status_change_request)
845
+ > <Array(<Acknowledgement>, Integer, Hash)> token_resend_notification_request_with_http_info(token, paylink_resend_notification_request)
531
846
 
532
847
  ```ruby
533
848
  begin
534
- # Paylink Token Audit
535
- data, status_code, headers = api_instance.token_status_changes_request_with_http_info(paylink_token_status_change_request)
849
+ # Resend a notification for Paylink Token
850
+ data, status_code, headers = api_instance.token_resend_notification_request_with_http_info(token, paylink_resend_notification_request)
536
851
  p status_code # => 2xx
537
852
  p headers # => { ... }
538
- p data # => <PaylinkTokenStatusChangeResponse>
853
+ p data # => <Acknowledgement>
539
854
  rescue CityPayApiClient::ApiError => e
540
- puts "Error when calling PaylinkApi->token_status_changes_request_with_http_info: #{e}"
855
+ puts "Error when calling PaylinkApi->token_resend_notification_request_with_http_info: #{e}"
541
856
  end
542
857
  ```
543
858
 
@@ -545,11 +860,12 @@ end
545
860
 
546
861
  | Name | Type | Description | Notes |
547
862
  | ---- | ---- | ----------- | ----- |
548
- | **paylink_token_status_change_request** | [**PaylinkTokenStatusChangeRequest**](PaylinkTokenStatusChangeRequest.md) | | |
863
+ | **token** | **String** | The token returned by the create token process. | |
864
+ | **paylink_resend_notification_request** | [**PaylinkResendNotificationRequest**](PaylinkResendNotificationRequest.md) | | |
549
865
 
550
866
  ### Return type
551
867
 
552
- [**PaylinkTokenStatusChangeResponse**](PaylinkTokenStatusChangeResponse.md)
868
+ [**Acknowledgement**](Acknowledgement.md)
553
869
 
554
870
  ### Authorization
555
871
 
@@ -22,7 +22,7 @@ instance = CityPayApiClient::PaylinkBillPaymentTokenRequest.new(
22
22
  addressee: null,
23
23
  attachments: null,
24
24
  descriptor: null,
25
- due: null,
25
+ due: Mon Apr 22 00:00:00 UTC 2024,
26
26
  email_notification_path: null,
27
27
  memo: null,
28
28
  request: null,
@@ -4,7 +4,8 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **field_type** | **String** | the type of html5 field, defaults to &#39;text&#39;. | [optional] |
7
+ | **entry_mode** | **String** | The type of entry mode. A value of &#39;pre&#39; will pre-render the custom parameter before the payment screen. Any other value will result in the custom parameter being displayed on the payment screen. | [optional] |
8
+ | **field_type** | **String** | the type of html5 field, defaults to &#39;text&#39;. Other options are &#39;dob&#39; for a date of birth series of select list entry. | [optional] |
8
9
  | **group** | **String** | a group the parameter is linked with, allows for grouping with a title. | [optional] |
9
10
  | **label** | **String** | a label to show alongside the input. | [optional] |
10
11
  | **locked** | **Boolean** | whether the parameter is locked from entry. | [optional] |
@@ -21,6 +22,7 @@
21
22
  require 'citypay_api_client'
22
23
 
23
24
  instance = CityPayApiClient::PaylinkCustomParam.new(
25
+ entry_mode: null,
24
26
  field_type: null,
25
27
  group: null,
26
28
  label: null,
@@ -13,8 +13,8 @@
13
13
  require 'citypay_api_client'
14
14
 
15
15
  instance = CityPayApiClient::PaylinkErrorCode.new(
16
- code: null,
17
- msg: null
16
+ code: 1,
17
+ msg: An example error response
18
18
  )
19
19
  ```
20
20
 
@@ -4,7 +4,7 @@
4
4
 
5
5
  | Name | Type | Description | Notes |
6
6
  | ---- | ---- | ----------- | ----- |
7
- | **field_type** | **String** | A type of HTML element that should be displayed such as text, password, url. Any HTML5 input type value may be supplied. | [optional] |
7
+ | **field_type** | **String** | A type of HTML element that should be displayed such as text, password, url. Any HTML5 input type value may be supplied. If a value of &#x60;date&#x60; is supplied the value format should be an ISO format YYYY-MM-DD format date i.e. 2024-03-01 If a value of &#x60;datetime-local&#x60; is supplied, the value format should be an ISO format YYYY-MM-DDTHH:mm i.e. 2024-06-01T19:30. | [optional] |
8
8
  | **label** | **String** | A label for the field guard to display on the authentication page. | [optional] |
9
9
  | **maxlen** | **Integer** | A maximum length of any value supplied in the field guard form. Used for validating entry. | [optional] |
10
10
  | **minlen** | **Integer** | A minimum length of any value supplied in the field guard form. Used for validating entry. | [optional] |
@@ -0,0 +1,20 @@
1
+ # CityPayApiClient::PaylinkResendNotificationRequest
2
+
3
+ ## Properties
4
+
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **email** | **Boolean** | Resends the bill payment email provided on the Paylink create token notification path. Emails can be sent up to 5 times per token. | [optional] |
8
+ | **sms** | **Boolean** | Resends the bill payment SMS provided on the Paylink create token notification path. An SMS cannot be resent if it was previously sent less than 1 minute ago. There is a limit of 3 retries per token. | [optional] |
9
+
10
+ ## Example
11
+
12
+ ```ruby
13
+ require 'citypay_api_client'
14
+
15
+ instance = CityPayApiClient::PaylinkResendNotificationRequest.new(
16
+ email: null,
17
+ sms: null
18
+ )
19
+ ```
20
+
@@ -6,7 +6,7 @@
6
6
  | ---- | ---- | ----------- | ----- |
7
7
  | **datetime** | **Time** | the date and time of the event. | [optional] |
8
8
  | **message** | **String** | a message associated with the event. | [optional] |
9
- | **state** | **Time** | The name of the event that was actioned. | [optional] |
9
+ | **state** | **String** | The name of the event that was actioned. | [optional] |
10
10
 
11
11
  ## Example
12
12
 
@@ -14,9 +14,9 @@
14
14
  require 'citypay_api_client'
15
15
 
16
16
  instance = CityPayApiClient::PaylinkStateEvent.new(
17
- datetime: null,
18
- message: null,
19
- state: null
17
+ datetime: 2024-04-22T13:29:14Z,
18
+ message: message on this state,
19
+ state: FormInput
20
20
  )
21
21
  ```
22
22