citypay_api_client 1.1.2 → 1.1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (167) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +73 -0
  3. data/README.md +59 -32
  4. data/citypay_api_client.gemspec +1 -1
  5. data/docs/Acknowledgement.md +2 -2
  6. data/docs/AclCheckResponseModel.md +3 -3
  7. data/docs/AuthRequest.md +7 -7
  8. data/docs/AuthResponse.md +4 -4
  9. data/docs/AuthorisationAndPaymentApi.md +75 -231
  10. data/docs/Batch.md +1 -1
  11. data/docs/BatchProcessingApi.md +11 -11
  12. data/docs/BatchReportResponseModel.md +2 -2
  13. data/docs/BatchTransaction.md +1 -1
  14. data/docs/BatchTransactionReportRequest.md +22 -0
  15. data/docs/BatchTransactionReportResponse.md +24 -0
  16. data/docs/BatchTransactionResultModel.md +1 -1
  17. data/docs/Bin.md +2 -2
  18. data/docs/CaptureRequest.md +1 -1
  19. data/docs/Card.md +2 -2
  20. data/docs/CardHolderAccountApi.md +9 -5
  21. data/docs/ChargeRequest.md +7 -7
  22. data/docs/Decision.md +0 -2
  23. data/docs/DirectPostApi.md +2 -16
  24. data/docs/DirectPostRequest.md +7 -7
  25. data/docs/EventDataModel.md +2 -2
  26. data/docs/MerchantBatchReportRequest.md +28 -0
  27. data/docs/MerchantBatchReportResponse.md +24 -0
  28. data/docs/MerchantBatchResponse.md +30 -0
  29. data/docs/NetSummaryResponse.md +32 -0
  30. data/docs/PaylinkAdjustmentRequest.md +1 -1
  31. data/docs/PaylinkApi.md +141 -1
  32. data/docs/PaylinkBillPaymentTokenRequest.md +1 -1
  33. data/docs/PaylinkErrorCode.md +2 -2
  34. data/docs/PaylinkResendNotificationRequest.md +20 -0
  35. data/docs/PaylinkStateEvent.md +4 -4
  36. data/docs/PaylinkTokenCreated.md +11 -11
  37. data/docs/PaylinkTokenStatus.md +7 -7
  38. data/docs/PaylinkTokenStatusChangeRequest.md +7 -7
  39. data/docs/PaylinkTokenStatusChangeResponse.md +6 -2
  40. data/docs/PaymentIntent.md +42 -0
  41. data/docs/PaymentIntentReference.md +18 -0
  42. data/docs/RefundRequest.md +1 -1
  43. data/docs/RemittanceData.md +28 -0
  44. data/docs/RemittanceReportRequest.md +28 -0
  45. data/docs/RemittanceReportResponse.md +24 -0
  46. data/docs/RemittedClientData.md +44 -0
  47. data/docs/ReportingApi.md +378 -0
  48. data/docs/TokenisationResponseModel.md +1 -1
  49. data/lib/.DS_Store +0 -0
  50. data/lib/citypay_api_client/api/authorisation_and_payment_api__.rb +71 -3
  51. data/lib/citypay_api_client/api/batch_processing_api__.rb +7 -7
  52. data/lib/citypay_api_client/api/card_holder_account_api__.rb +4 -1
  53. data/lib/citypay_api_client/api/direct_post_api__.rb +5 -5
  54. data/lib/citypay_api_client/api/operational_functions_api__.rb +1 -1
  55. data/lib/citypay_api_client/api/paylink_api__.rb +138 -1
  56. data/lib/citypay_api_client/api/reporting_api__.rb +381 -0
  57. data/lib/citypay_api_client/api_client.rb +1 -1
  58. data/lib/citypay_api_client/api_error.rb +1 -1
  59. data/lib/citypay_api_client/configuration.rb +1 -1
  60. data/lib/citypay_api_client/models/account_create.rb +1 -1
  61. data/lib/citypay_api_client/models/account_status.rb +1 -1
  62. data/lib/citypay_api_client/models/acknowledgement.rb +1 -29
  63. data/lib/citypay_api_client/models/acl_check_request.rb +1 -1
  64. data/lib/citypay_api_client/models/acl_check_response_model.rb +2 -2
  65. data/lib/citypay_api_client/models/airline_advice.rb +1 -1
  66. data/lib/citypay_api_client/models/airline_segment.rb +1 -1
  67. data/lib/citypay_api_client/models/auth_reference.rb +1 -1
  68. data/lib/citypay_api_client/models/auth_references.rb +1 -1
  69. data/lib/citypay_api_client/models/auth_request.rb +10 -9
  70. data/lib/citypay_api_client/models/auth_response.rb +2 -2
  71. data/lib/citypay_api_client/models/batch.rb +2 -2
  72. data/lib/citypay_api_client/models/batch_report_request.rb +1 -1
  73. data/lib/citypay_api_client/models/batch_report_response_model.rb +2 -2
  74. data/lib/citypay_api_client/models/batch_transaction.rb +1 -1
  75. data/lib/citypay_api_client/models/batch_transaction_report_request.rb +234 -0
  76. data/lib/citypay_api_client/models/batch_transaction_report_response.rb +252 -0
  77. data/lib/citypay_api_client/models/batch_transaction_result_model.rb +1 -1
  78. data/lib/citypay_api_client/models/bin.rb +1 -1
  79. data/lib/citypay_api_client/models/bin_lookup.rb +1 -1
  80. data/lib/citypay_api_client/models/c_res_auth_request.rb +1 -1
  81. data/lib/citypay_api_client/models/capture_request.rb +1 -1
  82. data/lib/citypay_api_client/models/card.rb +1 -1
  83. data/lib/citypay_api_client/models/card_holder_account.rb +1 -1
  84. data/lib/citypay_api_client/models/card_status.rb +1 -1
  85. data/lib/citypay_api_client/models/charge_request.rb +10 -9
  86. data/lib/citypay_api_client/models/check_batch_status.rb +1 -1
  87. data/lib/citypay_api_client/models/check_batch_status_response.rb +1 -1
  88. data/lib/citypay_api_client/models/contact_details.rb +1 -1
  89. data/lib/citypay_api_client/models/decision.rb +2 -11
  90. data/lib/citypay_api_client/models/direct_post_request.rb +10 -9
  91. data/lib/citypay_api_client/models/direct_token_auth_request.rb +1 -1
  92. data/lib/citypay_api_client/models/domain_key_check_request.rb +1 -1
  93. data/lib/citypay_api_client/models/domain_key_request.rb +1 -1
  94. data/lib/citypay_api_client/models/domain_key_response.rb +1 -1
  95. data/lib/citypay_api_client/models/error.rb +1 -1
  96. data/lib/citypay_api_client/models/event_data_model.rb +1 -1
  97. data/lib/citypay_api_client/models/exists.rb +1 -1
  98. data/lib/citypay_api_client/models/external_mpi.rb +1 -1
  99. data/lib/citypay_api_client/models/list_merchants_response.rb +1 -1
  100. data/lib/citypay_api_client/models/mcc6012.rb +1 -1
  101. data/lib/citypay_api_client/models/merchant.rb +1 -1
  102. data/lib/citypay_api_client/models/merchant_batch_report_request.rb +265 -0
  103. data/lib/citypay_api_client/models/merchant_batch_report_response.rb +252 -0
  104. data/lib/citypay_api_client/models/merchant_batch_response.rb +301 -0
  105. data/lib/citypay_api_client/models/net_summary_response.rb +472 -0
  106. data/lib/citypay_api_client/models/pa_res_auth_request.rb +1 -1
  107. data/lib/citypay_api_client/models/paylink_address.rb +1 -1
  108. data/lib/citypay_api_client/models/paylink_adjustment_request.rb +1 -1
  109. data/lib/citypay_api_client/models/paylink_attachment_request.rb +1 -1
  110. data/lib/citypay_api_client/models/paylink_attachment_result.rb +1 -1
  111. data/lib/citypay_api_client/models/paylink_bill_payment_token_request.rb +1 -1
  112. data/lib/citypay_api_client/models/paylink_card_holder.rb +1 -1
  113. data/lib/citypay_api_client/models/paylink_cart.rb +1 -1
  114. data/lib/citypay_api_client/models/paylink_cart_item_model.rb +1 -1
  115. data/lib/citypay_api_client/models/paylink_config.rb +1 -1
  116. data/lib/citypay_api_client/models/paylink_custom_param.rb +1 -1
  117. data/lib/citypay_api_client/models/paylink_email_notification_path.rb +1 -1
  118. data/lib/citypay_api_client/models/paylink_error_code.rb +1 -1
  119. data/lib/citypay_api_client/models/paylink_field_guard_model.rb +1 -1
  120. data/lib/citypay_api_client/models/paylink_part_payments.rb +1 -1
  121. data/lib/citypay_api_client/models/paylink_resend_notification_request.rb +224 -0
  122. data/lib/citypay_api_client/models/paylink_sms_notification_path.rb +1 -1
  123. data/lib/citypay_api_client/models/paylink_state_event.rb +2 -2
  124. data/lib/citypay_api_client/models/paylink_token_created.rb +36 -8
  125. data/lib/citypay_api_client/models/paylink_token_request_model.rb +1 -1
  126. data/lib/citypay_api_client/models/paylink_token_status.rb +30 -2
  127. data/lib/citypay_api_client/models/paylink_token_status_change_request.rb +6 -7
  128. data/lib/citypay_api_client/models/paylink_token_status_change_response.rb +23 -3
  129. data/lib/citypay_api_client/models/paylink_ui.rb +1 -1
  130. data/lib/citypay_api_client/models/payment_intent.rb +479 -0
  131. data/lib/citypay_api_client/models/payment_intent_reference.rb +221 -0
  132. data/lib/citypay_api_client/models/ping.rb +1 -1
  133. data/lib/citypay_api_client/models/process_batch_request.rb +1 -1
  134. data/lib/citypay_api_client/models/process_batch_response.rb +1 -1
  135. data/lib/citypay_api_client/models/refund_request.rb +1 -1
  136. data/lib/citypay_api_client/models/register_card.rb +1 -1
  137. data/lib/citypay_api_client/models/remittance_data.rb +404 -0
  138. data/lib/citypay_api_client/models/remittance_report_request.rb +265 -0
  139. data/lib/citypay_api_client/models/remittance_report_response.rb +252 -0
  140. data/lib/citypay_api_client/models/remitted_client_data.rb +612 -0
  141. data/lib/citypay_api_client/models/request_challenged.rb +1 -1
  142. data/lib/citypay_api_client/models/retrieve_request.rb +1 -1
  143. data/lib/citypay_api_client/models/three_d_secure.rb +1 -1
  144. data/lib/citypay_api_client/models/tokenisation_response_model.rb +1 -1
  145. data/lib/citypay_api_client/models/void_request.rb +1 -1
  146. data/lib/citypay_api_client/version.rb +2 -2
  147. data/lib/citypay_api_client.rb +15 -2
  148. data/spec/.DS_Store +0 -0
  149. data/spec/api/reporting_api___spec.rb +99 -0
  150. data/spec/it_api_sandbox_spec.rb +0 -3
  151. data/spec/models/batch_transaction_report_request_spec.rb +47 -0
  152. data/spec/models/batch_transaction_report_response_spec.rb +53 -0
  153. data/spec/models/decision_spec.rb +0 -26
  154. data/spec/models/merchant_batch_report_request_spec.rb +65 -0
  155. data/spec/models/merchant_batch_report_response_spec.rb +53 -0
  156. data/spec/models/merchant_batch_response_spec.rb +71 -0
  157. data/spec/models/net_summary_response_spec.rb +77 -0
  158. data/spec/models/paylink_resend_notification_request_spec.rb +41 -0
  159. data/spec/models/payment_intent_reference_spec.rb +35 -0
  160. data/spec/models/payment_intent_spec.rb +107 -0
  161. data/spec/models/remittance_data_spec.rb +65 -0
  162. data/spec/models/remittance_report_request_spec.rb +65 -0
  163. data/spec/models/remittance_report_response_spec.rb +53 -0
  164. data/spec/models/remitted_client_data_spec.rb +113 -0
  165. data/spec/spec_helper.rb +1 -1
  166. metadata +124 -69
  167. data/spec/models/authen_required_spec.rb +0 -52
@@ -5,17 +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 `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. `3` 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: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS postcode numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the postcode did not match. `3` 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. - `I` 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. - `R` 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. - `A` Reauthorisation - a purchase made after the original purchase. A common scenario is delayed/split shipments. - `C` 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. - `D` 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. - `L` 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. - `S` 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. - `X` 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 `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. `3` 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: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the CSC value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the CSC did not match. `3` 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 `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. `2` to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. `3` 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 `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be checked for duplication within the duplication window. `2` to bypass. Transactions that are bypassed will not be checked for duplication within the duplication window. `3` 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'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 - `M` - specifies that the transaction is initiated by the merchant - `C` - 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 `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the address did not match. `3` 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: `0` for the default policy (default value if not supplied). Your default values are determined by your account manager on setup of the account. `1` for an enforced policy. Transactions that are enforced will be rejected if the AVS address numeric value does not match. `2` to bypass. Transactions that are bypassed will be allowed through even if the address did not match. `3` 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** | **String** | A \"tag\" is a label that you can attach to a payment authorization. Tags can help you group transactions together based on certain criteria, like a work job or a ticket number. They can also assist in filtering transactions when you're generating reports. Multiple Tags You can add more than one tag to a transaction by separating them with commas. Limitations There is a maximum limit of 3 tags that can be added to a single transaction. Each tag can be no longer than 20 characters and alphanumeric with no spaces. Example: Let's say you're a software company and you have different teams working on various projects. When a team makes a purchase or incurs an expense, they can tag the transaction with the project name, the team name, and the type of expense. Project Name: Project_X Team Name: Team_A Type of Expense: Hardware So, the tag for a transaction might look like: Project_X,Team_A,Hardware This way, when you're looking at your financial reports, you can easily filter transactions based on these tags to see how much each project or team is spending on different types of expenses. | [optional] |
18
+ | **tag** | **Array<String>** | | [optional] |
19
19
  | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
20
20
  | **token** | **String** | A tokenised form of a card that belongs to a card holder'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. | |
21
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] |
@@ -27,7 +27,7 @@
27
27
  require 'citypay_api_client'
28
28
 
29
29
  instance = CityPayApiClient::ChargeRequest.new(
30
- amount: 3600,
30
+ amount: 19995,
31
31
  avs_postcode_policy: null,
32
32
  cardholder_agreement: null,
33
33
  csc: 10,
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
  )
@@ -165,13 +165,6 @@ Direct Post Auth Request
165
165
 
166
166
  Used to initiate a direct post request transaction flow.
167
167
 
168
- <pre class="inline-code language-bash">
169
- <code>
170
- curl https://api.citypay.com/direct/auth?cp-domain-key=n834ytqp84y... \
171
- -d "amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW
172
- </code>
173
- </pre>.
174
-
175
168
 
176
169
  ### Examples
177
170
 
@@ -187,7 +180,7 @@ CityPayApiClient.configure do |config|
187
180
  end
188
181
 
189
182
  api_instance = CityPayApiClient::DirectPostApi.new
190
- direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, 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 |
191
184
 
192
185
  begin
193
186
  # Direct Post Auth Request
@@ -244,13 +237,6 @@ Direct Post Tokenise Request
244
237
 
245
238
  Used to initiate a direct post request transaction flow.
246
239
 
247
- <pre class="inline-code language-bash">
248
- <code>
249
- curl https://api.citypay.com/v6/direct?cp-domain-key=n834ytqp84y... \
250
- -d "amount=7500&identifier=example_trans&cardnumber=4000000000000002&expmonth=9&expyear=2028&bill_to_postcode=L1+7ZW
251
- </code>
252
- </pre>.
253
-
254
240
 
255
241
  ### Examples
256
242
 
@@ -266,7 +252,7 @@ CityPayApiClient.configure do |config|
266
252
  end
267
253
 
268
254
  api_instance = CityPayApiClient::DirectPostApi.new
269
- direct_post_request = CityPayApiClient::DirectPostRequest.new({amount: 3600, cardnumber: '4000 0000 0000 0002', expmonth: 9, expyear: 2027, 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 |
270
256
 
271
257
  begin
272
258
  # Direct Post Tokenise Request
@@ -5,24 +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** | **String** | A \&quot;tag\&quot; is a label that you can attach to a payment authorization. Tags can help you group transactions together based on certain criteria, like a work job or a ticket number. They can also assist in filtering transactions when you&#39;re generating reports. Multiple Tags You can add more than one tag to a transaction by separating them with commas. Limitations There is a maximum limit of 3 tags that can be added to a single transaction. Each tag can be no longer than 20 characters and alphanumeric with no spaces. Example: Let&#39;s say you&#39;re a software company and you have different teams working on various projects. When a team makes a purchase or incurs an expense, they can tag the transaction with the project name, the team name, and the type of expense. Project Name: Project_X Team Name: Team_A Type of Expense: Hardware So, the tag for a transaction might look like: Project_X,Team_A,Hardware This way, when you&#39;re looking at your financial reports, you can easily filter transactions based on these tags to see how much each project or team is spending on different types of expenses. | [optional] |
25
+ | **tag** | **Array&lt;String&gt;** | | [optional] |
26
26
  | **threedsecure** | [**ThreeDSecure**](ThreeDSecure.md) | | [optional] |
27
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] |
28
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] |
@@ -33,7 +33,7 @@
33
33
  require 'citypay_api_client'
34
34
 
35
35
  instance = CityPayApiClient::DirectPostRequest.new(
36
- amount: 3600,
36
+ amount: 19995,
37
37
  avs_postcode_policy: null,
38
38
  bill_to: null,
39
39
  cardnumber: 4000 0000 0000 0002,
@@ -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
+
@@ -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,6 +5,7 @@ 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 |
8
9
  | [**token_changes_request**](PaylinkApi.md#token_changes_request) | **POST** /paylink/token/changes | Paylink Token Audit |
9
10
  | [**token_close_request**](PaylinkApi.md#token_close_request) | **PUT** /paylink/{token}/close | Close Paylink Token |
10
11
  | [**token_create_bill_payment_request**](PaylinkApi.md#token_create_bill_payment_request) | **POST** /paylink/bill-payment | Create Bill Payment Paylink Token |
@@ -12,6 +13,7 @@ All URIs are relative to *https://api.citypay.com*
12
13
  | [**token_purge_attachments_request**](PaylinkApi.md#token_purge_attachments_request) | **PUT** /paylink/{token}/purge-attachments | Purges any attachments for a Paylink Token |
13
14
  | [**token_reconciled_request**](PaylinkApi.md#token_reconciled_request) | **PUT** /paylink/{token}/reconciled | Reconcile Paylink Token |
14
15
  | [**token_reopen_request**](PaylinkApi.md#token_reopen_request) | **PUT** /paylink/{token}/reopen | Reopen Paylink Token |
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
 
@@ -89,6 +91,74 @@ end
89
91
  - **Accept**: application/json, text/xml
90
92
 
91
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
+
92
162
  ## token_changes_request
93
163
 
94
164
  > <PaylinkTokenStatusChangeResponse> token_changes_request(paylink_token_status_change_request)
@@ -108,7 +178,7 @@ CityPayApiClient.configure do |config|
108
178
  end
109
179
 
110
180
  api_instance = CityPayApiClient::PaylinkApi.new
111
- paylink_token_status_change_request = CityPayApiClient::PaylinkTokenStatusChangeRequest.new({after: Time.now, merchantid: 11223344}) # PaylinkTokenStatusChangeRequest |
181
+ paylink_token_status_change_request = CityPayApiClient::PaylinkTokenStatusChangeRequest.new({after: Time.parse('2024-04-22T13:29:14Z'), merchantid: 11223344}) # PaylinkTokenStatusChangeRequest |
112
182
 
113
183
  begin
114
184
  # Paylink Token Audit
@@ -737,6 +807,76 @@ end
737
807
  - **Accept**: application/json, text/xml
738
808
 
739
809
 
810
+ ## token_resend_notification_request
811
+
812
+ > <Acknowledgement> token_resend_notification_request(token, paylink_resend_notification_request)
813
+
814
+ Resend a notification for Paylink Token
815
+
816
+ Resend a notification for Paylink Token.
817
+
818
+ ### Examples
819
+
820
+ ```ruby
821
+ require 'time'
822
+ require 'citypay_api_client'
823
+ # setup authorization
824
+ CityPayApiClient.configure do |config|
825
+ config.api_key['cp-api-key'] = CityPayApiClient::ApiKey.new(client_id: 'YourClientId', licence_key: 'YourLicenceKey').generate
826
+ end
827
+
828
+ api_instance = CityPayApiClient::PaylinkApi.new
829
+ token = 'token_example' # String | The token returned by the create token process.
830
+ paylink_resend_notification_request = CityPayApiClient::PaylinkResendNotificationRequest.new # PaylinkResendNotificationRequest |
831
+
832
+ begin
833
+ # Resend a notification for Paylink Token
834
+ result = api_instance.token_resend_notification_request(token, paylink_resend_notification_request)
835
+ p result
836
+ rescue CityPayApiClient::ApiError => e
837
+ puts "Error when calling PaylinkApi->token_resend_notification_request: #{e}"
838
+ end
839
+ ```
840
+
841
+ #### Using the token_resend_notification_request_with_http_info variant
842
+
843
+ This returns an Array which contains the response data, status code and headers.
844
+
845
+ > <Array(<Acknowledgement>, Integer, Hash)> token_resend_notification_request_with_http_info(token, paylink_resend_notification_request)
846
+
847
+ ```ruby
848
+ begin
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)
851
+ p status_code # => 2xx
852
+ p headers # => { ... }
853
+ p data # => <Acknowledgement>
854
+ rescue CityPayApiClient::ApiError => e
855
+ puts "Error when calling PaylinkApi->token_resend_notification_request_with_http_info: #{e}"
856
+ end
857
+ ```
858
+
859
+ ### Parameters
860
+
861
+ | Name | Type | Description | Notes |
862
+ | ---- | ---- | ----------- | ----- |
863
+ | **token** | **String** | The token returned by the create token process. | |
864
+ | **paylink_resend_notification_request** | [**PaylinkResendNotificationRequest**](PaylinkResendNotificationRequest.md) | | |
865
+
866
+ ### Return type
867
+
868
+ [**Acknowledgement**](Acknowledgement.md)
869
+
870
+ ### Authorization
871
+
872
+ [cp-api-key](../README.md#cp-api-key)
873
+
874
+ ### HTTP request headers
875
+
876
+ - **Content-Type**: application/json, text/xml
877
+ - **Accept**: application/json, text/xml
878
+
879
+
740
880
  ## token_status_request
741
881
 
742
882
  > <PaylinkTokenStatus> token_status_request(token)
@@ -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,
@@ -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
 
@@ -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
 
@@ -11,7 +11,7 @@
11
11
  | **id** | **String** | A unique id of the request. | |
12
12
  | **identifier** | **String** | The identifier as presented in the TokenRequest. | [optional] |
13
13
  | **mode** | **String** | Determines whether the token is &#x60;live&#x60; or &#x60;test&#x60;. | [optional] |
14
- | **qr_code** | **String** | A URL of a qrcode which can be used to refer to the token URL. | [optional] |
14
+ | **qrcode** | **String** | A URL of a qrcode which can be used to refer to the token URL. | [optional] |
15
15
  | **result** | **Integer** | The result field contains the result for the Paylink Token Request. 0 - indicates that an error was encountered while creating the token. 1 - which indicates that a Token was successfully created. | |
16
16
  | **server_version** | **String** | the version of the server performing the call. | [optional] |
17
17
  | **source** | **String** | The incoming IP address of the call. | [optional] |
@@ -27,17 +27,17 @@ require 'citypay_api_client'
27
27
  instance = CityPayApiClient::PaylinkTokenCreated.new(
28
28
  attachments: null,
29
29
  bps: null,
30
- date_created: null,
30
+ date_created: 2024-04-22T13:29:14Z,
31
31
  errors: null,
32
- id: null,
33
- identifier: null,
34
- mode: null,
35
- qr_code: null,
36
- result: null,
37
- server_version: null,
38
- source: null,
39
- token: null,
40
- url: null,
32
+ id: 00000000-0000-0000-0000-000000000000,
33
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
34
+ mode: test,
35
+ qrcode: https://payments.citypay.com/AAAAAAA/AAAZZZCCCDDDEEE/qrcode,
36
+ result: 0,
37
+ server_version: x.x.x,
38
+ source: x.x.x.x,
39
+ token: AAAZZZCCCDDDEEE,
40
+ url: https://payments.citypay.com/AAAAAAA/AAAZZZCCCDDDEEE,
41
41
  usc: null
42
42
  )
43
43
  ```
@@ -27,7 +27,7 @@
27
27
  | **is_validated** | **Boolean** | whether the token generation was successfully validated. | [optional] |
28
28
  | **last_event_date_time** | **Time** | the date and time that the session last had an event actioned against it. | [optional] |
29
29
  | **last_payment_result** | **String** | the result of the last payment if one exists. | [optional] |
30
- | **mid** | **String** | identifies the merchant account. | [optional] |
30
+ | **mid** | **Integer** | identifies the merchant account. | [optional] |
31
31
  | **payment_attempts_count** | **Integer** | the number of attempts made to pay. | [optional] |
32
32
  | **state_history** | [**Array&lt;PaylinkStateEvent&gt;**](PaylinkStateEvent.md) | | [optional] |
33
33
  | **token** | **String** | the token value which uniquely identifies the session. | [optional] |
@@ -41,10 +41,10 @@ require 'citypay_api_client'
41
41
  instance = CityPayApiClient::PaylinkTokenStatus.new(
42
42
  amount_paid: null,
43
43
  auth_code: null,
44
- card: null,
45
- created: null,
46
- datetime: null,
47
- identifier: null,
44
+ card: Visa/0002,
45
+ created: 2024-04-22T13:29:14Z,
46
+ datetime: 2024-04-22T13:29:14Z,
47
+ identifier: 95b857a1-5955-4b86-963c-5a6dbfc4fb95,
48
48
  is_attachment: null,
49
49
  is_cancelled: null,
50
50
  is_closed: null,
@@ -60,9 +60,9 @@ instance = CityPayApiClient::PaylinkTokenStatus.new(
60
60
  is_request_challenged: null,
61
61
  is_sms_sent: null,
62
62
  is_validated: null,
63
- last_event_date_time: null,
63
+ last_event_date_time: 2024-04-22T13:29:14Z,
64
64
  last_payment_result: null,
65
- mid: null,
65
+ mid: 11223344,
66
66
  payment_attempts_count: null,
67
67
  state_history: null,
68
68
  token: null,