class Hamilton::Types::RefundedPayment

Overview

This object contains basic information about a refunded payment.

Included Modules

Defined in:

types/refunded_payment.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. Currently, always “XTR”.


def currency=(currency : String) #

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


def invoice_payload : String #

Bot-specified invoice payload.


def invoice_payload=(invoice_payload : String) #

Bot-specified invoice payload.


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 provider_payment_charge_id : String | Nil #

Provider payment identifier.


def provider_payment_charge_id=(provider_payment_charge_id : String | Nil) #

Provider payment identifier.


def telegram_payment_charge_id : String #

Telegram payment identifier.


def telegram_payment_charge_id=(telegram_payment_charge_id : String) #

Telegram payment identifier.


def total_amount : Int32 #

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


def total_amount=(total_amount : Int32) #

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