hmunoz-stripe

Untitled

Sep 25th, 2020
167
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
JSON 3.37 KB | None | 0 0
  1.       "post": {
  2.         "description": "<p>Create a refund.</p>",
  3.         "operationId": "PostRefunds",
  4.         "requestBody": {
  5.           "content": {
  6.             "application/x-www-form-urlencoded": {
  7.               "encoding": {
  8.                 "expand": {
  9.                   "explode": true,
  10.                   "style": "deepObject"
  11.                 },
  12.                 "metadata": {
  13.                   "explode": true,
  14.                   "style": "deepObject"
  15.                 }
  16.               },
  17.               "schema": {
  18.                 "additionalProperties": false,
  19.                 "properties": {
  20.                   "amount": {
  21.                     "type": "integer"
  22.                   },
  23.                   "charge": {
  24.                     "maxLength": 5000,
  25.                     "type": "string"
  26.                   },
  27.                   "expand": {
  28.                     "description": "Specifies which fields in the response should be expanded.",
  29.                     "items": {
  30.                       "maxLength": 5000,
  31.                       "type": "string"
  32.                     },
  33.                     "type": "array"
  34.                   },
  35.                   "metadata": {
  36.                     "anyOf": [
  37.                       {
  38.                         "additionalProperties": {
  39.                           "type": "string"
  40.                         },
  41.                         "type": "object"
  42.                       },
  43.                       {
  44.                         "enum": [
  45.                           ""
  46.                         ],
  47.                         "type": "string"
  48.                       }
  49.                     ],
  50.                     "description": "Set of [key-value pairs](https://stripe.com/docs/api/metadata) that you can attach to an object. This can be useful for storing additional information about the object in a structured format. Individual keys can be unset by posting an empty value to them. All keys can be unset by posting an empty value to `metadata`."
  51.                   },
  52.                   "payment_intent": {
  53.                     "maxLength": 5000,
  54.                     "type": "string"
  55.                   },
  56.                   "reason": {
  57.                     "enum": [
  58.                       "duplicate",
  59.                       "fraudulent",
  60.                       "requested_by_customer"
  61.                     ],
  62.                     "maxLength": 5000,
  63.                     "type": "string"
  64.                   },
  65.                   "refund_application_fee": {
  66.                     "type": "boolean"
  67.                   },
  68.                   "reverse_transfer": {
  69.                     "type": "boolean"
  70.                   }
  71.                 },
  72.                 "type": "object"
  73.               }
  74.             }
  75.           },
  76.           "required": false
  77.         },
  78.         "responses": {
  79.           "200": {
  80.             "content": {
  81.               "application/json": {
  82.                 "schema": {
  83.                   "$ref": "#/components/schemas/refund"
  84.                 }
  85.               }
  86.             },
  87.             "description": "Successful response."
  88.           },
  89.           "default": {
  90.             "content": {
  91.               "application/json": {
  92.                 "schema": {
  93.                   "$ref": "#/components/schemas/error"
  94.                 }
  95.               }
  96.             },
  97.             "description": "Error response."
  98.           }
  99.         }
  100.       }
  101.     },
Add Comment
Please, Sign In to add comment