Class: Airwallex::Charge

Inherits:
APIResource show all
Extended by:
APIOperations::Create, APIOperations::List, APIOperations::Retrieve
Defined in:
lib/airwallex/resources/charge.rb

Overview

Represents a Charge (Scale product) — funds attributed to a Connected Account, tracked before payout.

Examples:

Retrieve a charge

charge = Airwallex::Charge.retrieve("chg_123")

Instance Attribute Summary

Attributes inherited from APIResource

#attributes, #id

Class Method Summary collapse

Methods included from APIOperations::Create

create

Methods included from APIOperations::Retrieve

retrieve

Methods included from APIOperations::List

list

Methods inherited from APIResource

#changed_attributes, #dirty?, #initialize, #inspect, #method_missing, #refresh, #refresh_from, resource_name, #respond_to_missing?, #to_hash, #to_json, #to_s

Constructor Details

This class inherits a constructor from Airwallex::APIResource

Dynamic Method Handling

This class handles dynamic methods through the method_missing method in the class Airwallex::APIResource

Class Method Details

.resource_pathString

Returns API resource path for charges.

Returns:

  • (String)

    API resource path for charges



15
16
17
# File 'lib/airwallex/resources/charge.rb', line 15

def self.resource_path
  "/api/v1/charges"
end