This repository has been archived by the owner on Sep 7, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
19 changed files
with
373 additions
and
49 deletions.
There are no files selected for viewing
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
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
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
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
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** This object contains basic information about an invoice. */ | ||
class Invoice | ||
{ | ||
/** @var string Product name */ | ||
public $title; | ||
|
||
/** @var string Product description */ | ||
public $description; | ||
|
||
/** @var string Unique bot deep-linking parameter that can be used to generate this invoice */ | ||
public $start_parameter; | ||
|
||
/** @var string Three-letter ISO 4217 currency code */ | ||
public $currency; | ||
|
||
/** @var int 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 | ||
* (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). */ | ||
public $total_amount; | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** This object represents a portion of the price for goods or services. */ | ||
class LabeledPrice | ||
{ | ||
/** @var string Portion label */ | ||
public $label; | ||
|
||
/** | ||
* @var int | ||
* Price of the product 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 | ||
* (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). */ | ||
public $amount; | ||
} |
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
<?php | ||
|
||
namespace TelegramBot\Types; | ||
|
||
/** This object represents information about an order. */ | ||
class OrderInfo | ||
{ | ||
/** @var string Optional. User name */ | ||
public $name; | ||
|
||
/** @var string Optional. User's phone number */ | ||
public $phone_number; | ||
|
||
/** @var string Optional. User email */ | ||
public $email; | ||
|
||
/** @var ShippingAddress Optional. User shipping address */ | ||
public $shipping_address; | ||
} |
Oops, something went wrong.