Class: Frame::MerchantBalance

Inherits:
APIResource show all
Defined in:
lib/frame/resources/merchant_balance.rb

Overview

Top-level singleton: the authenticated merchant's balance (available funds, reserved amounts, pending payouts). GET /v1/merchant_balance — no id.

Constant Summary collapse

OBJECT_NAME =
"merchant_balance"

Instance Attribute Summary

Attributes inherited from FrameObject

#id, #original_values

Class Method Summary collapse

Methods inherited from APIResource

class_name, #refresh, resource_url, #resource_url

Methods included from APIOperations::Request

included

Methods inherited from FrameObject

#[], #[]=, construct_from, #each, #initialize, #initialize_from, #inspect, #keys, #serialize_params, #to_hash, #to_s, #update_attributes, #values

Constructor Details

This class inherits a constructor from Frame::FrameObject

Class Method Details

.object_nameObject



9
10
11
# File 'lib/frame/resources/merchant_balance.rb', line 9

def self.object_name
  OBJECT_NAME
end

.retrieve(opts = {}) ⇒ Object



13
14
15
# File 'lib/frame/resources/merchant_balance.rb', line 13

def self.retrieve(opts = {})
  request_object(:get, "/v1/merchant_balance", {}, opts)
end