From 4dcc2a550522c55f3011b62afbda5dec54c48176 Mon Sep 17 00:00:00 2001 From: sys-001 Date: Sun, 7 Jul 2024 12:00:29 +0000 Subject: [PATCH] deploy: 3eb29c5427d3c5bb3475039b7e00d16ba42ef393 --- schemas/botapi.json | 57 ++++++++++++++++++++++++++++++++++++- schemas/botapi.yaml | 43 +++++++++++++++++++++++++++- schemas/botapi_openapi.json | 32 ++++++++++++++++++++- schemas/botapi_openapi.yaml | 23 ++++++++++++++- schemas/botapi_postman.json | 2 +- 5 files changed, 152 insertions(+), 5 deletions(-) diff --git a/schemas/botapi.json b/schemas/botapi.json index 0745729..7c7c036 100644 --- a/schemas/botapi.json +++ b/schemas/botapi.json @@ -1,5 +1,5 @@ { - "version": "7.6.0", + "version": "7.7.0", "types": [ { "name": "Update", @@ -1304,6 +1304,14 @@ "optional": true, "description": "Optional. Message is a service message about a successful payment, information about the payment. More about payments »" }, + { + "name": "refunded_payment", + "types": [ + "RefundedPayment" + ], + "optional": true, + "description": "Optional. Message is a service message about a refunded payment, information about the payment. More about payments »" + }, { "name": "users_shared", "types": [ @@ -10132,6 +10140,53 @@ ], "extended_by": [] }, + { + "name": "RefundedPayment", + "description": "This object contains basic information about a refunded payment.", + "fields": [ + { + "name": "currency", + "types": [ + "string" + ], + "optional": false, + "description": "Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”" + }, + { + "name": "total_amount", + "types": [ + "int" + ], + "optional": false, + "description": "Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies)." + }, + { + "name": "invoice_payload", + "types": [ + "string" + ], + "optional": false, + "description": "Bot-specified invoice payload" + }, + { + "name": "telegram_payment_charge_id", + "types": [ + "string" + ], + "optional": false, + "description": "Telegram payment identifier" + }, + { + "name": "provider_payment_charge_id", + "types": [ + "string" + ], + "optional": true, + "description": "Optional. Provider payment identifier" + } + ], + "extended_by": [] + }, { "name": "ShippingQuery", "description": "This object contains information about an incoming shipping query.", diff --git a/schemas/botapi.yaml b/schemas/botapi.yaml index 38ed7f4..d3e2f78 100644 --- a/schemas/botapi.yaml +++ b/schemas/botapi.yaml @@ -1,4 +1,4 @@ -version: 7.6.0 +version: 7.7.0 types: - name: Update @@ -983,6 +983,12 @@ types: - SuccessfulPayment optional: true description: 'Optional. Message is a service message about a successful payment, information about the payment. More about payments »' + - + name: refunded_payment + types: + - RefundedPayment + optional: true + description: 'Optional. Message is a service message about a refunded payment, information about the payment. More about payments »' - name: users_shared types: @@ -7596,6 +7602,41 @@ types: optional: false description: 'Provider payment identifier' extended_by: { } + - + name: RefundedPayment + description: 'This object contains basic information about a refunded payment.' + fields: + - + name: currency + types: + - string + optional: false + description: 'Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars. Currently, always “XTR”' + - + name: total_amount + types: + - int + optional: false + description: 'Total refunded price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45, total_amount = 145. See the exp parameter in currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).' + - + name: invoice_payload + types: + - string + optional: false + description: 'Bot-specified invoice payload' + - + name: telegram_payment_charge_id + types: + - string + optional: false + description: 'Telegram payment identifier' + - + name: provider_payment_charge_id + types: + - string + optional: true + description: 'Optional. Provider payment identifier' + extended_by: { } - name: ShippingQuery description: 'This object contains information about an incoming shipping query.' diff --git a/schemas/botapi_openapi.json b/schemas/botapi_openapi.json index d64555c..fbf8bc7 100644 --- a/schemas/botapi_openapi.json +++ b/schemas/botapi_openapi.json @@ -3,7 +3,7 @@ "info": { "title": "Telegram Bot API", "description": "Auto-generated OpenAPI schema by TGScraper.", - "version": "7.6.0" + "version": "7.7.0" }, "servers": [ { @@ -735,6 +735,9 @@ "successful_payment": { "$ref": "#/components/schemas/SuccessfulPayment" }, + "refunded_payment": { + "$ref": "#/components/schemas/RefundedPayment" + }, "users_shared": { "$ref": "#/components/schemas/UsersShared" }, @@ -5851,6 +5854,33 @@ }, "type": "object" }, + "RefundedPayment": { + "description": "This object contains basic information about a refunded payment.", + "required": [ + "currency", + "total_amount", + "invoice_payload", + "telegram_payment_charge_id" + ], + "properties": { + "currency": { + "type": "string" + }, + "total_amount": { + "type": "integer" + }, + "invoice_payload": { + "type": "string" + }, + "telegram_payment_charge_id": { + "type": "string" + }, + "provider_payment_charge_id": { + "type": "string" + } + }, + "type": "object" + }, "ShippingQuery": { "description": "This object contains information about an incoming shipping query.", "required": [ diff --git a/schemas/botapi_openapi.yaml b/schemas/botapi_openapi.yaml index 7060b6b..8742c8f 100644 --- a/schemas/botapi_openapi.yaml +++ b/schemas/botapi_openapi.yaml @@ -2,7 +2,7 @@ openapi: 3.0.0 info: title: 'Telegram Bot API' description: 'Auto-generated OpenAPI schema by TGScraper.' - version: 7.6.0 + version: 7.7.0 servers: - url: 'https://api.telegram.org/bot{token}' @@ -496,6 +496,8 @@ components: $ref: '#/components/schemas/Invoice' successful_payment: $ref: '#/components/schemas/SuccessfulPayment' + refunded_payment: + $ref: '#/components/schemas/RefundedPayment' users_shared: $ref: '#/components/schemas/UsersShared' chat_shared: @@ -4012,6 +4014,25 @@ components: provider_payment_charge_id: type: string type: object + RefundedPayment: + description: 'This object contains basic information about a refunded payment.' + required: + - currency + - total_amount + - invoice_payload + - telegram_payment_charge_id + properties: + currency: + type: string + total_amount: + type: integer + invoice_payload: + type: string + telegram_payment_charge_id: + type: string + provider_payment_charge_id: + type: string + type: object ShippingQuery: description: 'This object contains information about an incoming shipping query.' required: diff --git a/schemas/botapi_postman.json b/schemas/botapi_postman.json index 78b055e..62dd3e2 100644 --- a/schemas/botapi_postman.json +++ b/schemas/botapi_postman.json @@ -3,7 +3,7 @@ "name": "Telegram Bot API", "description": "Auto-generated Postman collection by TGScraper.", "schema": "https://schema.getpostman.com/json/collection/v2.1.0/collection.json", - "version": "7.6.0" + "version": "7.7.0" }, "variable": { "key": "token",