mirror of
https://github.com/aiogram/aiogram.git
synced 2025-12-14 19:00:23 +00:00
Adding new code-generator (Butcher) (#1069)
* Re-generate types * Re-generate methods (only attributes) * Added enums * Base init generator * Added butcher configs * Fixed tests, bump butcher * Added changelog * Added enum docs * Added templates for docs index * Re-generate bot class, remove deprecated methods
This commit is contained in:
parent
c7779abc50
commit
d034c1ba9f
387 changed files with 32036 additions and 3144 deletions
75
.butcher/types/SuccessfulPayment/entity.json
Normal file
75
.butcher/types/SuccessfulPayment/entity.json
Normal file
|
|
@ -0,0 +1,75 @@
|
|||
{
|
||||
"meta": {
|
||||
"deprecated": false
|
||||
},
|
||||
"group": {
|
||||
"title": "Payments",
|
||||
"anchor": "payments"
|
||||
},
|
||||
"object": {
|
||||
"anchor": "successfulpayment",
|
||||
"name": "SuccessfulPayment",
|
||||
"description": "This object contains basic information about a successful payment.",
|
||||
"html_description": "<p>This object contains basic information about a successful payment.</p>",
|
||||
"rst_description": "This object contains basic information about a successful payment.",
|
||||
"annotations": [
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Three-letter ISO 4217 currency code",
|
||||
"html_description": "<td>Three-letter ISO 4217 <a href=\"/bots/payments#supported-currencies\">currency</a> code</td>",
|
||||
"rst_description": "Three-letter ISO 4217 `currency <https://core.telegram.org/bots/payments#supported-currencies>`_ code\n",
|
||||
"name": "currency",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "Integer",
|
||||
"description": "Total price in the smallest units of the currency (integer, not float/double). For example, for a price of US$ 1.45 pass 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).",
|
||||
"html_description": "<td>Total price in the <em>smallest units</em> of the currency (integer, <strong>not</strong> float/double). For example, for a price of <code>US$ 1.45</code> pass <code>amount = 145</code>. See the <em>exp</em> parameter in <a href=\"/bots/payments/currencies.json\">currencies.json</a>, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).</td>",
|
||||
"rst_description": "Total price in the *smallest units* of the currency (integer, **not** float/double). For example, for a price of :code:`US$ 1.45` pass :code:`amount = 145`. See the *exp* parameter in `currencies.json <https://core.telegram.org/bots/payments/currencies.json>`_, it shows the number of digits past the decimal point for each currency (2 for the majority of currencies).\n",
|
||||
"name": "total_amount",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Bot specified invoice payload",
|
||||
"html_description": "<td>Bot specified invoice payload</td>",
|
||||
"rst_description": "Bot specified invoice payload\n",
|
||||
"name": "invoice_payload",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Identifier of the shipping option chosen by the user",
|
||||
"html_description": "<td><em>Optional</em>. Identifier of the shipping option chosen by the user</td>",
|
||||
"rst_description": "*Optional*. Identifier of the shipping option chosen by the user\n",
|
||||
"name": "shipping_option_id",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "OrderInfo",
|
||||
"description": "Order information provided by the user",
|
||||
"html_description": "<td><em>Optional</em>. Order information provided by the user</td>",
|
||||
"rst_description": "*Optional*. Order information provided by the user\n",
|
||||
"name": "order_info",
|
||||
"required": false
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Telegram payment identifier",
|
||||
"html_description": "<td>Telegram payment identifier</td>",
|
||||
"rst_description": "Telegram payment identifier\n",
|
||||
"name": "telegram_payment_charge_id",
|
||||
"required": true
|
||||
},
|
||||
{
|
||||
"type": "String",
|
||||
"description": "Provider payment identifier",
|
||||
"html_description": "<td>Provider payment identifier</td>",
|
||||
"rst_description": "Provider payment identifier\n",
|
||||
"name": "provider_payment_charge_id",
|
||||
"required": true
|
||||
}
|
||||
],
|
||||
"category": "types"
|
||||
}
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue