|
3265 | 3265 | ]
|
3266 | 3266 | }
|
3267 | 3267 | },
|
| 3268 | + "/v2/refunds/{id}/update_metadata": { |
| 3269 | + "put": { |
| 3270 | + "tags": [ |
| 3271 | + "Refunds" |
| 3272 | + ], |
| 3273 | + "summary": "Refunds - Metadata Update", |
| 3274 | + "description": "Updates the properties of a Refund object. This API can be used to attach a reason for the refund or metadata fields", |
| 3275 | + "operationId": "Update Refund Metadata and Reason", |
| 3276 | + "parameters": [ |
| 3277 | + { |
| 3278 | + "name": "id", |
| 3279 | + "in": "path", |
| 3280 | + "description": "The identifier for refund", |
| 3281 | + "required": true, |
| 3282 | + "schema": { |
| 3283 | + "type": "string" |
| 3284 | + } |
| 3285 | + } |
| 3286 | + ], |
| 3287 | + "requestBody": { |
| 3288 | + "content": { |
| 3289 | + "application/json": { |
| 3290 | + "schema": { |
| 3291 | + "$ref": "#/components/schemas/RefundMetadataUpdateRequest" |
| 3292 | + }, |
| 3293 | + "examples": { |
| 3294 | + "Update refund reason": { |
| 3295 | + "value": { |
| 3296 | + "reason": "Paid by mistake" |
| 3297 | + } |
| 3298 | + } |
| 3299 | + } |
| 3300 | + } |
| 3301 | + }, |
| 3302 | + "required": true |
| 3303 | + }, |
| 3304 | + "responses": { |
| 3305 | + "200": { |
| 3306 | + "description": "Refund updated", |
| 3307 | + "content": { |
| 3308 | + "application/json": { |
| 3309 | + "schema": { |
| 3310 | + "$ref": "#/components/schemas/RefundResponse" |
| 3311 | + } |
| 3312 | + } |
| 3313 | + } |
| 3314 | + }, |
| 3315 | + "400": { |
| 3316 | + "description": "Missing Mandatory fields" |
| 3317 | + } |
| 3318 | + }, |
| 3319 | + "security": [ |
| 3320 | + { |
| 3321 | + "api_key": [] |
| 3322 | + } |
| 3323 | + ] |
| 3324 | + } |
| 3325 | + }, |
3268 | 3326 | "/v2/refunds/{id}": {
|
3269 | 3327 | "get": {
|
3270 | 3328 | "tags": [
|
|
20629 | 20687 | }
|
20630 | 20688 | }
|
20631 | 20689 | },
|
| 20690 | + "RefundMetadataUpdateRequest": { |
| 20691 | + "type": "object", |
| 20692 | + "properties": { |
| 20693 | + "reason": { |
| 20694 | + "type": "string", |
| 20695 | + "description": "An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive", |
| 20696 | + "example": "Customer returned the product", |
| 20697 | + "nullable": true, |
| 20698 | + "maxLength": 255 |
| 20699 | + }, |
| 20700 | + "metadata": { |
| 20701 | + "type": "object", |
| 20702 | + "description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.", |
| 20703 | + "nullable": true |
| 20704 | + } |
| 20705 | + }, |
| 20706 | + "additionalProperties": false |
| 20707 | + }, |
20632 | 20708 | "RefundResponse": {
|
20633 | 20709 | "type": "object",
|
20634 | 20710 | "required": [
|
|
20737 | 20813 | "instant"
|
20738 | 20814 | ]
|
20739 | 20815 | },
|
20740 |
| - "RefundUpdateRequest": { |
20741 |
| - "type": "object", |
20742 |
| - "properties": { |
20743 |
| - "reason": { |
20744 |
| - "type": "string", |
20745 |
| - "description": "An arbitrary string attached to the object. Often useful for displaying to users and your customer support executive", |
20746 |
| - "example": "Customer returned the product", |
20747 |
| - "nullable": true, |
20748 |
| - "maxLength": 255 |
20749 |
| - }, |
20750 |
| - "metadata": { |
20751 |
| - "type": "object", |
20752 |
| - "description": "You can specify up to 50 keys, with key names up to 40 characters long and values up to 500 characters long. Metadata is useful for storing additional, structured information on an object.", |
20753 |
| - "nullable": true |
20754 |
| - } |
20755 |
| - }, |
20756 |
| - "additionalProperties": false |
20757 |
| - }, |
20758 | 20816 | "RefundsCreateRequest": {
|
20759 | 20817 | "type": "object",
|
20760 | 20818 | "required": [
|
|
0 commit comments