diff --git a/openapi/spec3.beta.sdk.json b/openapi/spec3.beta.sdk.json index 16ba511b..c00f8709 100644 --- a/openapi/spec3.beta.sdk.json +++ b/openapi/spec3.beta.sdk.json @@ -2621,6 +2621,7 @@ "taxes_calculation_failed", "terminal_location_country_unsupported", "terminal_reader_busy", + "terminal_reader_collected_data_invalid", "terminal_reader_hardware_fault", "terminal_reader_invalid_location_for_payment", "terminal_reader_offline", @@ -67472,6 +67473,75 @@ "type": "terminal.reader.action_updated" } }, + "terminal.reader_collected_data": { + "description": "Returns data collected by Terminal readers. This data is only stored for 24 hours.", + "properties": { + "created": { + "description": "Time at which the object was created. Measured in seconds since the Unix epoch.", + "format": "unix-time", + "type": "integer" + }, + "id": { + "description": "Unique identifier for the object.", + "maxLength": 5000, + "type": "string" + }, + "livemode": { + "description": "Has the value `true` if the object exists in live mode or the value `false` if the object exists in test mode.", + "type": "boolean" + }, + "magstripe": { + "anyOf": [ + { + "$ref": "#/components/schemas/terminal_reader_collected_data_resource_magstripe_data" + } + ], + "description": "The magstripe data collected by the reader.", + "nullable": true + }, + "object": { + "description": "String representing the object's type. Objects of the same type share the same value.", + "enum": [ + "terminal.reader_collected_data" + ], + "type": "string" + }, + "type": { + "description": "The type of data collected by the reader.", + "enum": [ + "magstripe" + ], + "type": "string" + } + }, + "required": [ + "created", + "id", + "livemode", + "magstripe", + "object", + "type" + ], + "title": "TerminalReaderCollectedData", + "type": "object", + "x-expandableFields": [ + "magstripe" + ], + "x-resourceId": "terminal.reader_collected_data", + "x-stripeOperations": [ + { + "method_name": "retrieve", + "method_on": "service", + "method_type": "retrieve", + "operation": "get", + "path": "/v1/terminal/reader_collected_data/{reader_collected_data}" + } + ], + "x-stripeResource": { + "class_name": "ReaderCollectedData", + "in_package": "Terminal" + } + }, "terminal_configuration_configuration_resource_currency_specific_config": { "description": "", "properties": { @@ -67630,6 +67700,23 @@ "usd" ] }, + "terminal_reader_collected_data_resource_magstripe_data": { + "description": "Represents magstripe data collected by the reader.", + "properties": { + "data": { + "description": "The raw magstripe data collected by the reader.", + "maxLength": 5000, + "nullable": true, + "type": "string" + } + }, + "required": [ + "data" + ], + "title": "TerminalReaderCollectedDataResourceMagstripeData", + "type": "object", + "x-expandableFields": [] + }, "terminal_reader_reader_resource_cart": { "description": "Represents a cart to be displayed on the reader", "properties": { @@ -196690,6 +196777,75 @@ } } }, + "/v1/terminal/reader_collected_data/{reader_collected_data}": { + "get": { + "description": "
Retrieve data collected using Reader hardware.
", + "operationId": "GetTerminalReaderCollectedDataReaderCollectedData", + "parameters": [ + { + "description": "Specifies which fields in the response should be expanded.", + "explode": true, + "in": "query", + "name": "expand", + "required": false, + "schema": { + "items": { + "maxLength": 5000, + "type": "string" + }, + "type": "array" + }, + "style": "deepObject" + }, + { + "description": "The ID of the ReaderCollectedData to retrieve.", + "in": "path", + "name": "reader_collected_data", + "required": true, + "schema": { + "maxLength": 5000, + "type": "string" + }, + "style": "simple" + } + ], + "requestBody": { + "content": { + "application/x-www-form-urlencoded": { + "encoding": {}, + "schema": { + "additionalProperties": false, + "properties": {}, + "type": "object" + } + } + }, + "required": false + }, + "responses": { + "200": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/terminal.reader_collected_data" + } + } + }, + "description": "Successful response." + }, + "default": { + "content": { + "application/json": { + "schema": { + "$ref": "#/components/schemas/error" + } + } + }, + "description": "Error response." + } + } + } + }, "/v1/terminal/readers": { "get": { "description": "Returns a list of Reader
objects.
Retrieve data collected using Reader hardware.
+ operationId: GetTerminalReaderCollectedDataReaderCollectedData + parameters: + - description: Specifies which fields in the response should be expanded. + explode: true + in: query + name: expand + required: false + schema: + items: + maxLength: 5000 + type: string + type: array + style: deepObject + - description: The ID of the ReaderCollectedData to retrieve. + in: path + name: reader_collected_data + required: true + schema: + maxLength: 5000 + type: string + style: simple + requestBody: + content: + application/x-www-form-urlencoded: + encoding: {} + schema: + additionalProperties: false + properties: {} + type: object + required: false + responses: + '200': + content: + application/json: + schema: + $ref: '#/components/schemas/terminal.reader_collected_data' + description: Successful response. + default: + content: + application/json: + schema: + $ref: '#/components/schemas/error' + description: Error response. /v1/terminal/readers: get: description:Returns a list of Reader
objects.