ultracart_api 4.1.12 → 4.1.14
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +4 -2
- data/docs/AffiliateApi.md +123 -167
- data/docs/AutoOrderApi.md +1250 -903
- data/docs/ChannelPartnerApi.md +1678 -1121
- data/docs/ChargebackApi.md +297 -405
- data/docs/CheckoutApi.md +1622 -1424
- data/docs/Conversation.md +4 -0
- data/docs/ConversationApi.md +4820 -6315
- data/docs/CouponApi.md +1522 -1443
- data/docs/CustomerApi.md +2570 -1845
- data/docs/DatawarehouseApi.md +555 -723
- data/docs/FulfillmentApi.md +567 -441
- data/docs/GiftCertificateApi.md +617 -598
- data/docs/IntegrationLogApi.md +290 -385
- data/docs/ItemApi.md +2174 -1746
- data/docs/ItemRestriction.md +2 -0
- data/docs/OauthApi.md +203 -163
- data/docs/OrderApi.md +2774 -2177
- data/docs/SsoApi.md +223 -288
- data/docs/StorefrontApi.md +9692 -12967
- data/docs/TaxApi.md +1541 -2017
- data/docs/UserApi.md +606 -790
- data/docs/WebhookApi.md +787 -628
- data/docs/WorkflowApi.md +666 -879
- data/lib/ultracart_api/models/conversation.rb +21 -1
- data/lib/ultracart_api/models/item_restriction.rb +11 -1
- data/lib/ultracart_api/version.rb +1 -1
- metadata +2 -2
data/docs/ChargebackApi.md
CHANGED
@@ -1,405 +1,297 @@
|
|
1
|
-
# UltracartClient::ChargebackApi
|
2
|
-
|
3
|
-
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
4
|
-
|
5
|
-
| Method | HTTP request | Description |
|
6
|
-
| ------ | ------------ | ----------- |
|
7
|
-
| [**delete_chargeback**](ChargebackApi.md#delete_chargeback) | **DELETE** /chargeback/chargebacks/{chargeback_dispute_oid} | Delete a chargeback |
|
8
|
-
| [**get_chargeback_dispute**](ChargebackApi.md#get_chargeback_dispute) | **GET** /chargeback/chargebacks/{chargeback_dispute_oid} | Retrieve a chargeback |
|
9
|
-
| [**get_chargeback_disputes**](ChargebackApi.md#get_chargeback_disputes) | **GET** /chargeback/chargebacks | Retrieve chargebacks |
|
10
|
-
| [**insert_chargeback**](ChargebackApi.md#insert_chargeback) | **POST** /chargeback/chargebacks | Insert a chargeback |
|
11
|
-
| [**update_chargeback**](ChargebackApi.md#update_chargeback) | **PUT** /chargeback/chargebacks/{chargeback_dispute_oid} | Update a chargeback |
|
12
|
-
|
13
|
-
|
14
|
-
## delete_chargeback
|
15
|
-
|
16
|
-
> <ChargebackDisputeResponse> delete_chargeback(chargeback_dispute_oid)
|
17
|
-
|
18
|
-
Delete a chargeback
|
19
|
-
|
20
|
-
Delete a chargeback on the UltraCart account.
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
p
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
|
46
|
-
|
47
|
-
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
-
|
59
|
-
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
|
65
|
-
|
66
|
-
|
67
|
-
|
68
|
-
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
|
76
|
-
|
77
|
-
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
82
|
-
|
83
|
-
|
84
|
-
|
85
|
-
|
86
|
-
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
|
95
|
-
|
96
|
-
|
97
|
-
|
98
|
-
|
99
|
-
|
100
|
-
|
101
|
-
|
102
|
-
|
103
|
-
|
104
|
-
|
105
|
-
|
106
|
-
|
107
|
-
|
108
|
-
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
|
113
|
-
|
114
|
-
|
115
|
-
|
116
|
-
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
|
121
|
-
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
> <
|
126
|
-
|
127
|
-
|
128
|
-
|
129
|
-
|
130
|
-
|
131
|
-
|
132
|
-
|
133
|
-
|
134
|
-
|
135
|
-
|
136
|
-
|
137
|
-
|
138
|
-
|
139
|
-
|
140
|
-
|
141
|
-
|
142
|
-
|
143
|
-
|
144
|
-
|
145
|
-
|
146
|
-
|
147
|
-
|
148
|
-
|
149
|
-
|
150
|
-
|
151
|
-
|
152
|
-
|
153
|
-
|
154
|
-
|
155
|
-
|
156
|
-
|
157
|
-
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
165
|
-
|
166
|
-
|
167
|
-
|
168
|
-
|
169
|
-
|
170
|
-
|
171
|
-
|
172
|
-
|
173
|
-
|
174
|
-
|
175
|
-
|
176
|
-
|
177
|
-
|
178
|
-
|
179
|
-
|
180
|
-
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
|
185
|
-
|
186
|
-
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
191
|
-
|
192
|
-
|
193
|
-
|
194
|
-
|
195
|
-
|
196
|
-
|
197
|
-
|
198
|
-
|
199
|
-
|
200
|
-
|
201
|
-
|
202
|
-
|
203
|
-
|
204
|
-
|
205
|
-
|
206
|
-
|
207
|
-
|
208
|
-
|
209
|
-
|
210
|
-
|
211
|
-
|
212
|
-
|
213
|
-
|
214
|
-
#
|
215
|
-
|
216
|
-
p
|
217
|
-
|
218
|
-
|
219
|
-
|
220
|
-
|
221
|
-
|
222
|
-
|
223
|
-
|
224
|
-
|
225
|
-
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
229
|
-
|
230
|
-
|
231
|
-
|
232
|
-
|
233
|
-
|
234
|
-
|
235
|
-
|
236
|
-
|
237
|
-
|
238
|
-
|
239
|
-
|
240
|
-
|
241
|
-
|
242
|
-
|
243
|
-
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
250
|
-
|
251
|
-
|
252
|
-
|
253
|
-
|
254
|
-
|
255
|
-
|
256
|
-
|
257
|
-
|
258
|
-
|
259
|
-
|
260
|
-
|
261
|
-
|
262
|
-
|
263
|
-
|
264
|
-
|
265
|
-
```ruby
|
266
|
-
|
267
|
-
|
268
|
-
|
269
|
-
|
270
|
-
|
271
|
-
|
272
|
-
|
273
|
-
|
274
|
-
|
275
|
-
|
276
|
-
|
277
|
-
|
278
|
-
|
279
|
-
|
280
|
-
|
281
|
-
|
282
|
-
|
283
|
-
|
284
|
-
|
285
|
-
|
286
|
-
|
287
|
-
|
288
|
-
|
289
|
-
|
290
|
-
|
291
|
-
|
292
|
-
|
293
|
-
|
294
|
-
|
295
|
-
|
296
|
-
|
297
|
-
|
298
|
-
begin
|
299
|
-
# Insert a chargeback
|
300
|
-
data, status_code, headers = api_instance.insert_chargeback_with_http_info(chargeback, opts)
|
301
|
-
p status_code # => 2xx
|
302
|
-
p headers # => { ... }
|
303
|
-
p data # => <ChargebackDisputeResponse>
|
304
|
-
rescue UltracartClient::ApiError => e
|
305
|
-
puts "Error when calling ChargebackApi->insert_chargeback_with_http_info: #{e}"
|
306
|
-
end
|
307
|
-
```
|
308
|
-
|
309
|
-
### Parameters
|
310
|
-
|
311
|
-
| Name | Type | Description | Notes |
|
312
|
-
| ---- | ---- | ----------- | ----- |
|
313
|
-
| **chargeback** | [**ChargebackDispute**](ChargebackDispute.md) | Chargeback to insert | |
|
314
|
-
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
315
|
-
|
316
|
-
### Return type
|
317
|
-
|
318
|
-
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
319
|
-
|
320
|
-
### Authorization
|
321
|
-
|
322
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
323
|
-
|
324
|
-
### HTTP request headers
|
325
|
-
|
326
|
-
- **Content-Type**: application/json; charset=UTF-8
|
327
|
-
- **Accept**: application/json
|
328
|
-
|
329
|
-
|
330
|
-
## update_chargeback
|
331
|
-
|
332
|
-
> <ChargebackDisputeResponse> update_chargeback(chargeback_dispute_oid, chargeback, opts)
|
333
|
-
|
334
|
-
Update a chargeback
|
335
|
-
|
336
|
-
Update a chargeback on the UltraCart account.
|
337
|
-
|
338
|
-
### Examples
|
339
|
-
|
340
|
-
```ruby
|
341
|
-
require 'time'
|
342
|
-
require 'ultracart_api'
|
343
|
-
require 'json'
|
344
|
-
require 'yaml'
|
345
|
-
require_relative '../constants' # https://github.com/UltraCart/sdk_samples/blob/master/ruby/constants.rb
|
346
|
-
|
347
|
-
# This example is based on our samples_sdk project, but still contains auto-generated content from our sdk generators.
|
348
|
-
# As such, this might not be the best way to use this object.
|
349
|
-
# Please see https://github.com/UltraCart/sdk_samples for working examples.
|
350
|
-
|
351
|
-
api = UltracartClient::ChargebackApi.new_using_api_key(Constants::API_KEY, Constants::VERIFY_SSL, Constants::DEBUG_MODE)
|
352
|
-
chargeback_dispute_oid = 56 # Integer | The chargeback_dispute_oid to update.
|
353
|
-
chargeback = UltracartClient::ChargebackDispute.new # ChargebackDispute | Chargeback to update
|
354
|
-
opts = {
|
355
|
-
_expand: '_expand_example' # String | The object expansion to perform on the result. See documentation for examples
|
356
|
-
}
|
357
|
-
|
358
|
-
begin
|
359
|
-
# Update a chargeback
|
360
|
-
result = api_instance.update_chargeback(chargeback_dispute_oid, chargeback, opts)
|
361
|
-
p result
|
362
|
-
rescue UltracartClient::ApiError => e
|
363
|
-
puts "Error when calling ChargebackApi->update_chargeback: #{e}"
|
364
|
-
end
|
365
|
-
```
|
366
|
-
|
367
|
-
#### Using the update_chargeback_with_http_info variant
|
368
|
-
|
369
|
-
This returns an Array which contains the response data, status code and headers.
|
370
|
-
|
371
|
-
> <Array(<ChargebackDisputeResponse>, Integer, Hash)> update_chargeback_with_http_info(chargeback_dispute_oid, chargeback, opts)
|
372
|
-
|
373
|
-
```ruby
|
374
|
-
begin
|
375
|
-
# Update a chargeback
|
376
|
-
data, status_code, headers = api_instance.update_chargeback_with_http_info(chargeback_dispute_oid, chargeback, opts)
|
377
|
-
p status_code # => 2xx
|
378
|
-
p headers # => { ... }
|
379
|
-
p data # => <ChargebackDisputeResponse>
|
380
|
-
rescue UltracartClient::ApiError => e
|
381
|
-
puts "Error when calling ChargebackApi->update_chargeback_with_http_info: #{e}"
|
382
|
-
end
|
383
|
-
```
|
384
|
-
|
385
|
-
### Parameters
|
386
|
-
|
387
|
-
| Name | Type | Description | Notes |
|
388
|
-
| ---- | ---- | ----------- | ----- |
|
389
|
-
| **chargeback_dispute_oid** | **Integer** | The chargeback_dispute_oid to update. | |
|
390
|
-
| **chargeback** | [**ChargebackDispute**](ChargebackDispute.md) | Chargeback to update | |
|
391
|
-
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
392
|
-
|
393
|
-
### Return type
|
394
|
-
|
395
|
-
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
396
|
-
|
397
|
-
### Authorization
|
398
|
-
|
399
|
-
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
400
|
-
|
401
|
-
### HTTP request headers
|
402
|
-
|
403
|
-
- **Content-Type**: application/json; charset=UTF-8
|
404
|
-
- **Accept**: application/json
|
405
|
-
|
1
|
+
# UltracartClient::ChargebackApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://secure.ultracart.com/rest/v2*
|
4
|
+
|
5
|
+
| Method | HTTP request | Description |
|
6
|
+
| ------ | ------------ | ----------- |
|
7
|
+
| [**delete_chargeback**](ChargebackApi.md#delete_chargeback) | **DELETE** /chargeback/chargebacks/{chargeback_dispute_oid} | Delete a chargeback |
|
8
|
+
| [**get_chargeback_dispute**](ChargebackApi.md#get_chargeback_dispute) | **GET** /chargeback/chargebacks/{chargeback_dispute_oid} | Retrieve a chargeback |
|
9
|
+
| [**get_chargeback_disputes**](ChargebackApi.md#get_chargeback_disputes) | **GET** /chargeback/chargebacks | Retrieve chargebacks |
|
10
|
+
| [**insert_chargeback**](ChargebackApi.md#insert_chargeback) | **POST** /chargeback/chargebacks | Insert a chargeback |
|
11
|
+
| [**update_chargeback**](ChargebackApi.md#update_chargeback) | **PUT** /chargeback/chargebacks/{chargeback_dispute_oid} | Update a chargeback |
|
12
|
+
|
13
|
+
|
14
|
+
## delete_chargeback
|
15
|
+
|
16
|
+
> <ChargebackDisputeResponse> delete_chargeback(chargeback_dispute_oid)
|
17
|
+
|
18
|
+
Delete a chargeback
|
19
|
+
|
20
|
+
Delete a chargeback on the UltraCart account.
|
21
|
+
|
22
|
+
|
23
|
+
### Examples
|
24
|
+
|
25
|
+
```ruby
|
26
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
27
|
+
```
|
28
|
+
|
29
|
+
|
30
|
+
#### Using the delete_chargeback_with_http_info variant
|
31
|
+
|
32
|
+
This returns an Array which contains the response data, status code and headers.
|
33
|
+
|
34
|
+
> <Array(<ChargebackDisputeResponse>, Integer, Hash)> delete_chargeback_with_http_info(chargeback_dispute_oid)
|
35
|
+
|
36
|
+
```ruby
|
37
|
+
begin
|
38
|
+
# Delete a chargeback
|
39
|
+
data, status_code, headers = api_instance.delete_chargeback_with_http_info(chargeback_dispute_oid)
|
40
|
+
p status_code # => 2xx
|
41
|
+
p headers # => { ... }
|
42
|
+
p data # => <ChargebackDisputeResponse>
|
43
|
+
rescue UltracartClient::ApiError => e
|
44
|
+
puts "Error when calling ChargebackApi->delete_chargeback_with_http_info: #{e}"
|
45
|
+
end
|
46
|
+
```
|
47
|
+
|
48
|
+
### Parameters
|
49
|
+
|
50
|
+
| Name | Type | Description | Notes |
|
51
|
+
| ---- | ---- | ----------- | ----- |
|
52
|
+
| **chargeback_dispute_oid** | **Integer** | The chargeback_dispute_oid to delete. | |
|
53
|
+
|
54
|
+
### Return type
|
55
|
+
|
56
|
+
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
57
|
+
|
58
|
+
### Authorization
|
59
|
+
|
60
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
61
|
+
|
62
|
+
### HTTP request headers
|
63
|
+
|
64
|
+
- **Content-Type**: Not defined
|
65
|
+
- **Accept**: application/json
|
66
|
+
|
67
|
+
|
68
|
+
## get_chargeback_dispute
|
69
|
+
|
70
|
+
> <ChargebackDisputeResponse> get_chargeback_dispute(chargeback_dispute_oid, opts)
|
71
|
+
|
72
|
+
Retrieve a chargeback
|
73
|
+
|
74
|
+
Retrieves a single chargeback using the specified chargeback dispute oid.
|
75
|
+
|
76
|
+
|
77
|
+
### Examples
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
81
|
+
```
|
82
|
+
|
83
|
+
|
84
|
+
#### Using the get_chargeback_dispute_with_http_info variant
|
85
|
+
|
86
|
+
This returns an Array which contains the response data, status code and headers.
|
87
|
+
|
88
|
+
> <Array(<ChargebackDisputeResponse>, Integer, Hash)> get_chargeback_dispute_with_http_info(chargeback_dispute_oid, opts)
|
89
|
+
|
90
|
+
```ruby
|
91
|
+
begin
|
92
|
+
# Retrieve a chargeback
|
93
|
+
data, status_code, headers = api_instance.get_chargeback_dispute_with_http_info(chargeback_dispute_oid, opts)
|
94
|
+
p status_code # => 2xx
|
95
|
+
p headers # => { ... }
|
96
|
+
p data # => <ChargebackDisputeResponse>
|
97
|
+
rescue UltracartClient::ApiError => e
|
98
|
+
puts "Error when calling ChargebackApi->get_chargeback_dispute_with_http_info: #{e}"
|
99
|
+
end
|
100
|
+
```
|
101
|
+
|
102
|
+
### Parameters
|
103
|
+
|
104
|
+
| Name | Type | Description | Notes |
|
105
|
+
| ---- | ---- | ----------- | ----- |
|
106
|
+
| **chargeback_dispute_oid** | **Integer** | The chargeback dispute oid to retrieve. | |
|
107
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
108
|
+
|
109
|
+
### Return type
|
110
|
+
|
111
|
+
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
112
|
+
|
113
|
+
### Authorization
|
114
|
+
|
115
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
116
|
+
|
117
|
+
### HTTP request headers
|
118
|
+
|
119
|
+
- **Content-Type**: Not defined
|
120
|
+
- **Accept**: application/json
|
121
|
+
|
122
|
+
|
123
|
+
## get_chargeback_disputes
|
124
|
+
|
125
|
+
> <ChargebackDisputesResponse> get_chargeback_disputes(opts)
|
126
|
+
|
127
|
+
Retrieve chargebacks
|
128
|
+
|
129
|
+
Retrieves chargebacks from the account. If no parameters are specified, all chargebacks will be returned. You will need to make multiple API calls in order to retrieve the entire result set since this API performs result set pagination.
|
130
|
+
|
131
|
+
|
132
|
+
### Examples
|
133
|
+
|
134
|
+
```ruby
|
135
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
136
|
+
```
|
137
|
+
|
138
|
+
|
139
|
+
#### Using the get_chargeback_disputes_with_http_info variant
|
140
|
+
|
141
|
+
This returns an Array which contains the response data, status code and headers.
|
142
|
+
|
143
|
+
> <Array(<ChargebackDisputesResponse>, Integer, Hash)> get_chargeback_disputes_with_http_info(opts)
|
144
|
+
|
145
|
+
```ruby
|
146
|
+
begin
|
147
|
+
# Retrieve chargebacks
|
148
|
+
data, status_code, headers = api_instance.get_chargeback_disputes_with_http_info(opts)
|
149
|
+
p status_code # => 2xx
|
150
|
+
p headers # => { ... }
|
151
|
+
p data # => <ChargebackDisputesResponse>
|
152
|
+
rescue UltracartClient::ApiError => e
|
153
|
+
puts "Error when calling ChargebackApi->get_chargeback_disputes_with_http_info: #{e}"
|
154
|
+
end
|
155
|
+
```
|
156
|
+
|
157
|
+
### Parameters
|
158
|
+
|
159
|
+
| Name | Type | Description | Notes |
|
160
|
+
| ---- | ---- | ----------- | ----- |
|
161
|
+
| **order_id** | **String** | Order Id | [optional] |
|
162
|
+
| **case_number** | **String** | Case number | [optional] |
|
163
|
+
| **status** | **String** | Status | [optional] |
|
164
|
+
| **expiration_dts_start** | **String** | Expiration dts start | [optional] |
|
165
|
+
| **expiration_dts_end** | **String** | Expiration dts end | [optional] |
|
166
|
+
| **chargeback_dts_start** | **String** | Chargeback dts start | [optional] |
|
167
|
+
| **chargeback_dts_end** | **String** | Chargeback dts end | [optional] |
|
168
|
+
| **_limit** | **Integer** | The maximum number of records to return on this one API call. (Max 200) | [optional][default to 100] |
|
169
|
+
| **_offset** | **Integer** | Pagination of the record set. Offset is a zero based index. | [optional][default to 0] |
|
170
|
+
| **_since** | **String** | Fetch chargebacks that have been created/modified since this date/time. | [optional] |
|
171
|
+
| **_sort** | **String** | The sort order of the chargebacks. See Sorting documentation for examples of using multiple values and sorting by ascending and descending. | [optional] |
|
172
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
173
|
+
|
174
|
+
### Return type
|
175
|
+
|
176
|
+
[**ChargebackDisputesResponse**](ChargebackDisputesResponse.md)
|
177
|
+
|
178
|
+
### Authorization
|
179
|
+
|
180
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
181
|
+
|
182
|
+
### HTTP request headers
|
183
|
+
|
184
|
+
- **Content-Type**: Not defined
|
185
|
+
- **Accept**: application/json
|
186
|
+
|
187
|
+
|
188
|
+
## insert_chargeback
|
189
|
+
|
190
|
+
> <ChargebackDisputeResponse> insert_chargeback(chargeback, opts)
|
191
|
+
|
192
|
+
Insert a chargeback
|
193
|
+
|
194
|
+
Insert a chargeback on the UltraCart account.
|
195
|
+
|
196
|
+
|
197
|
+
### Examples
|
198
|
+
|
199
|
+
```ruby
|
200
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
201
|
+
```
|
202
|
+
|
203
|
+
|
204
|
+
#### Using the insert_chargeback_with_http_info variant
|
205
|
+
|
206
|
+
This returns an Array which contains the response data, status code and headers.
|
207
|
+
|
208
|
+
> <Array(<ChargebackDisputeResponse>, Integer, Hash)> insert_chargeback_with_http_info(chargeback, opts)
|
209
|
+
|
210
|
+
```ruby
|
211
|
+
begin
|
212
|
+
# Insert a chargeback
|
213
|
+
data, status_code, headers = api_instance.insert_chargeback_with_http_info(chargeback, opts)
|
214
|
+
p status_code # => 2xx
|
215
|
+
p headers # => { ... }
|
216
|
+
p data # => <ChargebackDisputeResponse>
|
217
|
+
rescue UltracartClient::ApiError => e
|
218
|
+
puts "Error when calling ChargebackApi->insert_chargeback_with_http_info: #{e}"
|
219
|
+
end
|
220
|
+
```
|
221
|
+
|
222
|
+
### Parameters
|
223
|
+
|
224
|
+
| Name | Type | Description | Notes |
|
225
|
+
| ---- | ---- | ----------- | ----- |
|
226
|
+
| **chargeback** | [**ChargebackDispute**](ChargebackDispute.md) | Chargeback to insert | |
|
227
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
228
|
+
|
229
|
+
### Return type
|
230
|
+
|
231
|
+
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
232
|
+
|
233
|
+
### Authorization
|
234
|
+
|
235
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
236
|
+
|
237
|
+
### HTTP request headers
|
238
|
+
|
239
|
+
- **Content-Type**: application/json; charset=UTF-8
|
240
|
+
- **Accept**: application/json
|
241
|
+
|
242
|
+
|
243
|
+
## update_chargeback
|
244
|
+
|
245
|
+
> <ChargebackDisputeResponse> update_chargeback(chargeback_dispute_oid, chargeback, opts)
|
246
|
+
|
247
|
+
Update a chargeback
|
248
|
+
|
249
|
+
Update a chargeback on the UltraCart account.
|
250
|
+
|
251
|
+
|
252
|
+
### Examples
|
253
|
+
|
254
|
+
```ruby
|
255
|
+
# Internal API. No samples are provided as merchants will never need this api method
|
256
|
+
```
|
257
|
+
|
258
|
+
|
259
|
+
#### Using the update_chargeback_with_http_info variant
|
260
|
+
|
261
|
+
This returns an Array which contains the response data, status code and headers.
|
262
|
+
|
263
|
+
> <Array(<ChargebackDisputeResponse>, Integer, Hash)> update_chargeback_with_http_info(chargeback_dispute_oid, chargeback, opts)
|
264
|
+
|
265
|
+
```ruby
|
266
|
+
begin
|
267
|
+
# Update a chargeback
|
268
|
+
data, status_code, headers = api_instance.update_chargeback_with_http_info(chargeback_dispute_oid, chargeback, opts)
|
269
|
+
p status_code # => 2xx
|
270
|
+
p headers # => { ... }
|
271
|
+
p data # => <ChargebackDisputeResponse>
|
272
|
+
rescue UltracartClient::ApiError => e
|
273
|
+
puts "Error when calling ChargebackApi->update_chargeback_with_http_info: #{e}"
|
274
|
+
end
|
275
|
+
```
|
276
|
+
|
277
|
+
### Parameters
|
278
|
+
|
279
|
+
| Name | Type | Description | Notes |
|
280
|
+
| ---- | ---- | ----------- | ----- |
|
281
|
+
| **chargeback_dispute_oid** | **Integer** | The chargeback_dispute_oid to update. | |
|
282
|
+
| **chargeback** | [**ChargebackDispute**](ChargebackDispute.md) | Chargeback to update | |
|
283
|
+
| **_expand** | **String** | The object expansion to perform on the result. See documentation for examples | [optional] |
|
284
|
+
|
285
|
+
### Return type
|
286
|
+
|
287
|
+
[**ChargebackDisputeResponse**](ChargebackDisputeResponse.md)
|
288
|
+
|
289
|
+
### Authorization
|
290
|
+
|
291
|
+
[ultraCartOauth](../README.md#ultraCartOauth), [ultraCartSimpleApiKey](../README.md#ultraCartSimpleApiKey)
|
292
|
+
|
293
|
+
### HTTP request headers
|
294
|
+
|
295
|
+
- **Content-Type**: application/json; charset=UTF-8
|
296
|
+
- **Accept**: application/json
|
297
|
+
|