class Twilio::BalanceApi

Defined in:

twilio/api/balance_api.cr

Constant Summary

FETCH_BALANCE_MAX_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_BALANCE_MIN_LENGTH_FOR_ACCOUNT_SID = 34
FETCH_BALANCE_PATTERN_FOR_ACCOUNT_SID = /^AC[0-9a-fA-F]{32}$/

Constructors

Instance Method Summary

Constructor Detail

def self.new(api_client : Twilio::ApiClient = ApiClient.default) #

[View source]

Instance Method Detail

def account_sid : String #

[View source]
def account_sid=(account_sid : String) #

[View source]
def api_client : ApiClient #

[View source]
def api_client=(api_client : ApiClient) #

[View source]
def build_api_request_for_fetch_balance(*, account_sid : String | Nil = @account_sid) : Crest::Request #

@return Crest::Request


[View source]
def client_side_validation?(*args, **options) #

[View source]
def client_side_validation?(*args, **options, &) #

[View source]
def debugging?(*args, **options) #

[View source]
def debugging?(*args, **options, &) #

[View source]
def fetch_balance(*, account_sid : String | Nil = @account_sid) : Twilio::Balance #

Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information @required @param account_sid [String?] The unique SID identifier of the Account. @return [Twilio::Balance]


[View source]
def fetch_balance(*, account_sid : String | Nil = @account_sid, &block : Crest::Response -> ) : Nil #

Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information @required @param account_sid [String?] The unique SID identifier of the Account. @return nil


[View source]
def fetch_balance_with_http_info(*, account_sid : String | Nil = @account_sid) : Tuple(Twilio::Balance, Int32, Hash(String, Array(String) | String)) #

Fetch the balance for an Account based on Account Sid. Balance changes may not be reflected immediately. Child accounts do not contain balance information @required @param account_sid [String?] The unique SID identifier of the Account. @return [Tuple(Twilio::Balance, Integer, Hash)] Twilio::Balance, response status code and response headers


[View source]