class Hamilton::Types::Invoice

Overview

This object contains basic information about an invoice.

Included Modules

Defined in:

types/invoice.cr

Constructors

Instance Method Summary

Instance methods inherited from class Reference

==(other : Hamilton::Any) ==

Instance methods inherited from class Object

===(other : Hamilton::Any) ===

Constructor Detail

def self.new(pull : JSON::PullParser) #

def self.new(params) #

def self.new(*, __pull_for_json_serializable pull : JSON::PullParser) #

def self.new(**params) #

Instance Method Detail

def currency : String #

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.


def currency=(currency : String) #

Three-letter ISO 4217 currency code, or “XTR” for payments in Telegram Stars.


def decription : String #

Product description.


def decription=(decription : String) #

Product description.


def non_nil_fields : Array(String) #

List of available non-nil fields.


def non_nil_fields=(non_nil_fields : Array(String)) #

List of available non-nil fields.


def start_parameter : String #

Unique bot deep-linking parameter that can be used to generate this invoice.


def start_parameter=(start_parameter : String) #

Unique bot deep-linking parameter that can be used to generate this invoice.


def title : String #

Product name.


def title=(title : String) #

Product name.


def total_amount : Int32 #

Total price in the smallest units of the currency (integer, not float/double).


def total_amount=(total_amount : Int32) #

Total price in the smallest units of the currency (integer, not float/double).