class Stripe::BalanceApi

Defined in:

stripe/api/balance_api.cr

Constructors

Instance Method Summary

Constructor Detail

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

[View source]

Instance Method Detail

def api_client : ApiClient #

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

[View source]
def build_api_request_for_get_balance(*, expand : Array(Array(String)) | Nil = nil) : 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 get_balance(*, expand : Array(Array(String)) | Nil = nil) : Stripe::Balance #

Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see Accounting for negative balances.

@optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Stripe::Balance]

[View source]
def get_balance(*, expand : Array(Array(String)) | Nil = nil, &block : Crest::Response -> ) : Nil #

<p>Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see <a href=&quot;/docs/connect/account-balances#accounting-for-negative-balances&quot;>Accounting for negative balances</a>.</p> @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return nil


[View source]
def get_balance_with_http_info(*, expand : Array(Array(String)) | Nil = nil) : Tuple(Stripe::Balance, Int32, Hash(String, Array(String) | String)) #

<p>Retrieves the current account balance, based on the authentication that was used to make the request. For a sample request, see <a href=&quot;/docs/connect/account-balances#accounting-for-negative-balances&quot;>Accounting for negative balances</a>.</p> @optional @param expand [Array(Array(String))?] Specifies which fields in the response should be expanded. @return [Tuple(Stripe::Balance, Integer, Hash)] Stripe::Balance, response status code and response headers


[View source]