Created
July 21, 2017 20:43
-
-
Save tristansokol/6c3bd1bdeca9702fafba62ca4c579330 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
"CreateRefundResponse": { | |
"type": "object", | |
"properties": { | |
"errors": { | |
"type": "array", | |
"items": { | |
"$ref": "#/definitions/Error" | |
}, | |
"description": "Any errors that occurred during the request." | |
}, | |
"refund": { | |
"$ref": "#/definitions/Refund", | |
"description": "The created refund." | |
} | |
}, | |
"description": "Defines the fields that are included in the response body of\na request to the [CreateRefund](#endpoint-createrefund) endpoint.\n\nOne of `errors` or `refund` is present in a given response (never both).", | |
"example": { | |
"refund": { | |
"id": "b27436d1-7f8e-5610-45c6-417ef71434b4-SW", | |
"location_id": "18YC4JDH91E1H", | |
"transaction_id": "TRANSACTION_ID", | |
"tender_id": "TENDER_ID", | |
"created_at": "2016-02-12T00:28:18Z", | |
"reason": "some reason", | |
"amount_money": { | |
"amount": 100, | |
"currency": "USD" | |
}, | |
"status": "PENDING" | |
} | |
}, | |
"x-sq-sdk-sample-code": { | |
"python": "/sdk_samples/CreateRefund/CreateRefundResponse.python", | |
"csharp": "/sdk_samples/CreateRefund/CreateRefundResponse.csharp", | |
"php": "/sdk_samples/CreateRefund/CreateRefundResponse.php", | |
"ruby": "/sdk_samples/CreateRefund/CreateRefundResponse.ruby" | |
} | |
}, |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment