|
| 1 | +# CyberSource::VoidApi |
| 2 | + |
| 3 | +All URIs are relative to *https://apitest.cybersource.com* |
| 4 | + |
| 5 | +Method | HTTP request | Description |
| 6 | +------------- | ------------- | ------------- |
| 7 | +[**void_capture**](VoidApi.md#void_capture) | **POST** /pts/v2/captures/{id}/voids | Void a Capture |
| 8 | +[**void_credit**](VoidApi.md#void_credit) | **POST** /pts/v2/credits/{id}/voids | Void a Credit |
| 9 | +[**void_payment**](VoidApi.md#void_payment) | **POST** /pts/v2/payments/{id}/voids | Void a Payment |
| 10 | +[**void_refund**](VoidApi.md#void_refund) | **POST** /pts/v2/refunds/{id}/voids | Void a Refund |
| 11 | + |
| 12 | + |
| 13 | +# **void_capture** |
| 14 | +> PtsV2PaymentsVoidsPost201Response void_capture(void_capture_request, id) |
| 15 | +
|
| 16 | +Void a Capture |
| 17 | + |
| 18 | +Include the capture ID in the POST request to cancel the capture. |
| 19 | + |
| 20 | +### Example |
| 21 | +```ruby |
| 22 | +# load the gem |
| 23 | +require 'cybersource_rest_client' |
| 24 | + |
| 25 | +api_instance = CyberSource::VoidApi.new |
| 26 | + |
| 27 | +void_capture_request = CyberSource::VoidCaptureRequest.new # VoidCaptureRequest | |
| 28 | + |
| 29 | +id = "id_example" # String | The capture ID returned from a previous capture request. |
| 30 | + |
| 31 | + |
| 32 | +begin |
| 33 | + #Void a Capture |
| 34 | + result = api_instance.void_capture(void_capture_request, id) |
| 35 | + p result |
| 36 | +rescue CyberSource::ApiError => e |
| 37 | + puts "Exception when calling VoidApi->void_capture: #{e}" |
| 38 | +end |
| 39 | +``` |
| 40 | + |
| 41 | +### Parameters |
| 42 | + |
| 43 | +Name | Type | Description | Notes |
| 44 | +------------- | ------------- | ------------- | ------------- |
| 45 | + **void_capture_request** | [**VoidCaptureRequest**](VoidCaptureRequest.md)| | |
| 46 | + **id** | **String**| The capture ID returned from a previous capture request. | |
| 47 | + |
| 48 | +### Return type |
| 49 | + |
| 50 | +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) |
| 51 | + |
| 52 | +### Authorization |
| 53 | + |
| 54 | +No authorization required |
| 55 | + |
| 56 | +### HTTP request headers |
| 57 | + |
| 58 | + - **Content-Type**: application/json;charset=utf-8 |
| 59 | + - **Accept**: application/json;charset=utf-8 |
| 60 | + |
| 61 | + |
| 62 | + |
| 63 | +# **void_credit** |
| 64 | +> PtsV2PaymentsVoidsPost201Response void_credit(void_credit_request, id) |
| 65 | +
|
| 66 | +Void a Credit |
| 67 | + |
| 68 | +Include the credit ID in the POST request to cancel the credit. |
| 69 | + |
| 70 | +### Example |
| 71 | +```ruby |
| 72 | +# load the gem |
| 73 | +require 'cybersource_rest_client' |
| 74 | + |
| 75 | +api_instance = CyberSource::VoidApi.new |
| 76 | + |
| 77 | +void_credit_request = CyberSource::VoidCreditRequest.new # VoidCreditRequest | |
| 78 | + |
| 79 | +id = "id_example" # String | The credit ID returned from a previous credit request. |
| 80 | + |
| 81 | + |
| 82 | +begin |
| 83 | + #Void a Credit |
| 84 | + result = api_instance.void_credit(void_credit_request, id) |
| 85 | + p result |
| 86 | +rescue CyberSource::ApiError => e |
| 87 | + puts "Exception when calling VoidApi->void_credit: #{e}" |
| 88 | +end |
| 89 | +``` |
| 90 | + |
| 91 | +### Parameters |
| 92 | + |
| 93 | +Name | Type | Description | Notes |
| 94 | +------------- | ------------- | ------------- | ------------- |
| 95 | + **void_credit_request** | [**VoidCreditRequest**](VoidCreditRequest.md)| | |
| 96 | + **id** | **String**| The credit ID returned from a previous credit request. | |
| 97 | + |
| 98 | +### Return type |
| 99 | + |
| 100 | +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) |
| 101 | + |
| 102 | +### Authorization |
| 103 | + |
| 104 | +No authorization required |
| 105 | + |
| 106 | +### HTTP request headers |
| 107 | + |
| 108 | + - **Content-Type**: application/json;charset=utf-8 |
| 109 | + - **Accept**: application/json;charset=utf-8 |
| 110 | + |
| 111 | + |
| 112 | + |
| 113 | +# **void_payment** |
| 114 | +> PtsV2PaymentsVoidsPost201Response void_payment(void_payment_request, id) |
| 115 | +
|
| 116 | +Void a Payment |
| 117 | + |
| 118 | +Include the payment ID in the POST request to cancel the payment. |
| 119 | + |
| 120 | +### Example |
| 121 | +```ruby |
| 122 | +# load the gem |
| 123 | +require 'cybersource_rest_client' |
| 124 | + |
| 125 | +api_instance = CyberSource::VoidApi.new |
| 126 | + |
| 127 | +void_payment_request = CyberSource::VoidPaymentRequest.new # VoidPaymentRequest | |
| 128 | + |
| 129 | +id = "id_example" # String | The payment ID returned from a previous payment request. |
| 130 | + |
| 131 | + |
| 132 | +begin |
| 133 | + #Void a Payment |
| 134 | + result = api_instance.void_payment(void_payment_request, id) |
| 135 | + p result |
| 136 | +rescue CyberSource::ApiError => e |
| 137 | + puts "Exception when calling VoidApi->void_payment: #{e}" |
| 138 | +end |
| 139 | +``` |
| 140 | + |
| 141 | +### Parameters |
| 142 | + |
| 143 | +Name | Type | Description | Notes |
| 144 | +------------- | ------------- | ------------- | ------------- |
| 145 | + **void_payment_request** | [**VoidPaymentRequest**](VoidPaymentRequest.md)| | |
| 146 | + **id** | **String**| The payment ID returned from a previous payment request. | |
| 147 | + |
| 148 | +### Return type |
| 149 | + |
| 150 | +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) |
| 151 | + |
| 152 | +### Authorization |
| 153 | + |
| 154 | +No authorization required |
| 155 | + |
| 156 | +### HTTP request headers |
| 157 | + |
| 158 | + - **Content-Type**: application/json;charset=utf-8 |
| 159 | + - **Accept**: application/json;charset=utf-8 |
| 160 | + |
| 161 | + |
| 162 | + |
| 163 | +# **void_refund** |
| 164 | +> PtsV2PaymentsVoidsPost201Response void_refund(void_refund_request, id) |
| 165 | +
|
| 166 | +Void a Refund |
| 167 | + |
| 168 | +Include the refund ID in the POST request to cancel the refund. |
| 169 | + |
| 170 | +### Example |
| 171 | +```ruby |
| 172 | +# load the gem |
| 173 | +require 'cybersource_rest_client' |
| 174 | + |
| 175 | +api_instance = CyberSource::VoidApi.new |
| 176 | + |
| 177 | +void_refund_request = CyberSource::VoidRefundRequest.new # VoidRefundRequest | |
| 178 | + |
| 179 | +id = "id_example" # String | The refund ID returned from a previous refund request. |
| 180 | + |
| 181 | + |
| 182 | +begin |
| 183 | + #Void a Refund |
| 184 | + result = api_instance.void_refund(void_refund_request, id) |
| 185 | + p result |
| 186 | +rescue CyberSource::ApiError => e |
| 187 | + puts "Exception when calling VoidApi->void_refund: #{e}" |
| 188 | +end |
| 189 | +``` |
| 190 | + |
| 191 | +### Parameters |
| 192 | + |
| 193 | +Name | Type | Description | Notes |
| 194 | +------------- | ------------- | ------------- | ------------- |
| 195 | + **void_refund_request** | [**VoidRefundRequest**](VoidRefundRequest.md)| | |
| 196 | + **id** | **String**| The refund ID returned from a previous refund request. | |
| 197 | + |
| 198 | +### Return type |
| 199 | + |
| 200 | +[**PtsV2PaymentsVoidsPost201Response**](PtsV2PaymentsVoidsPost201Response.md) |
| 201 | + |
| 202 | +### Authorization |
| 203 | + |
| 204 | +No authorization required |
| 205 | + |
| 206 | +### HTTP request headers |
| 207 | + |
| 208 | + - **Content-Type**: application/json;charset=utf-8 |
| 209 | + - **Accept**: application/json;charset=utf-8 |
| 210 | + |
| 211 | + |
| 212 | + |
0 commit comments