|
1
|
|
|
<?php |
|
2
|
|
|
|
|
3
|
|
|
namespace BPT\types; |
|
4
|
|
|
|
|
5
|
|
|
use stdClass; |
|
6
|
|
|
|
|
7
|
|
|
/** |
|
8
|
|
|
* Represents the content of an invoice message to be sent as the result of an inline query. |
|
9
|
|
|
*/ |
|
10
|
|
|
class inputInvoiceMessageContent extends types { |
|
|
|
|
|
|
11
|
|
|
/** Keep all of properties which has sub properties */ |
|
12
|
|
|
private const subs = []; |
|
13
|
|
|
|
|
14
|
|
|
/** Product name, 1-32 characters */ |
|
15
|
|
|
public string $title; |
|
16
|
|
|
|
|
17
|
|
|
/** Product description, 1-255 characters */ |
|
18
|
|
|
public string $description; |
|
19
|
|
|
|
|
20
|
|
|
/** |
|
21
|
|
|
* Bot-defined invoice payload, 1-128 bytes. This will not be displayed to the user, use for your internal |
|
22
|
|
|
* processes. |
|
23
|
|
|
*/ |
|
24
|
|
|
public string $payload; |
|
25
|
|
|
|
|
26
|
|
|
/** Payment provider token, obtained via Botfather */ |
|
27
|
|
|
public string $provider_token; |
|
28
|
|
|
|
|
29
|
|
|
/** Three-letter ISO 4217 currency code, see more on currencies */ |
|
30
|
|
|
public string $currency; |
|
31
|
|
|
|
|
32
|
|
|
/** |
|
33
|
|
|
* Price breakdown, a JSON-serialized list of components (e.g. product price, tax, discount, delivery cost, |
|
34
|
|
|
* delivery tax, bonus, etc.) |
|
35
|
|
|
*/ |
|
36
|
|
|
public array $prices; |
|
37
|
|
|
|
|
38
|
|
|
/** |
|
39
|
|
|
* Optional. The maximum accepted amount for tips in the smallest units of the currency (integer, not |
|
40
|
|
|
* float/double). For example, for a maximum tip of US$ 1.45 pass max_tip_amount = 145. See the exp parameter in |
|
41
|
|
|
* currencies.json, it shows the number of digits past the decimal point for each currency (2 for the majority of |
|
42
|
|
|
* currencies). Defaults to 0 |
|
43
|
|
|
*/ |
|
44
|
|
|
public int $max_tip_amount; |
|
45
|
|
|
|
|
46
|
|
|
/** |
|
47
|
|
|
* Optional. A JSON-serialized array of suggested amounts of tip in the smallest units of the currency (integer, |
|
48
|
|
|
* not float/double). At most 4 suggested tip amounts can be specified. The suggested tip amounts must be |
|
49
|
|
|
* positive, passed in a strictly increased order and must not exceed max_tip_amount. |
|
50
|
|
|
*/ |
|
51
|
|
|
public array $suggested_tip_amounts; |
|
52
|
|
|
|
|
53
|
|
|
/** |
|
54
|
|
|
* Optional. A JSON-serialized object for data about the invoice, which will be shared with the payment provider. |
|
55
|
|
|
* A detailed description of the required fields should be provided by the payment provider. |
|
56
|
|
|
*/ |
|
57
|
|
|
public string $provider_data; |
|
58
|
|
|
|
|
59
|
|
|
/** |
|
60
|
|
|
* Optional. URL of the product photo for the invoice. Can be a photo of the goods or a marketing image for a |
|
61
|
|
|
* service. People like it better when they see what they are paying for. |
|
62
|
|
|
*/ |
|
63
|
|
|
public string $photo_url; |
|
64
|
|
|
|
|
65
|
|
|
/** Optional. Photo size */ |
|
66
|
|
|
public int $photo_size; |
|
67
|
|
|
|
|
68
|
|
|
/** Optional. Photo width */ |
|
69
|
|
|
public int $photo_width; |
|
70
|
|
|
|
|
71
|
|
|
/** Optional. Photo height */ |
|
72
|
|
|
public int $photo_height; |
|
73
|
|
|
|
|
74
|
|
|
/** Optional. Pass True, if you require the user's full name to complete the order */ |
|
75
|
|
|
public bool $need_name; |
|
76
|
|
|
|
|
77
|
|
|
/** Optional. Pass True, if you require the user's phone number to complete the order */ |
|
78
|
|
|
public bool $need_phone_number; |
|
79
|
|
|
|
|
80
|
|
|
/** Optional. Pass True, if you require the user's email address to complete the order */ |
|
81
|
|
|
public bool $need_email; |
|
82
|
|
|
|
|
83
|
|
|
/** Optional. Pass True, if you require the user's shipping address to complete the order */ |
|
84
|
|
|
public bool $need_shipping_address; |
|
85
|
|
|
|
|
86
|
|
|
/** Optional. Pass True, if user's phone number should be sent to provider */ |
|
87
|
|
|
public bool $send_phone_number_to_provider; |
|
88
|
|
|
|
|
89
|
|
|
/** Optional. Pass True, if user's email address should be sent to provider */ |
|
90
|
|
|
public bool $send_email_to_provider; |
|
91
|
|
|
|
|
92
|
|
|
/** Optional. Pass True, if the final price depends on the shipping method */ |
|
93
|
|
|
public bool $is_flexible; |
|
94
|
|
|
|
|
95
|
|
|
|
|
96
|
|
|
public function __construct(stdClass $update) { |
|
97
|
|
|
parent::__construct($update, self::subs); |
|
98
|
|
|
} |
|
99
|
|
|
} |
|
100
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"], you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths