Class: Airwallex::BillingProduct

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

Overview

Represents a Billing product — the thing being sold on a subscription (distinct from Payment Acceptance's Customer/PaymentMethod resources).

Examples:

Create a product

product = Airwallex::BillingProduct.create(name: "Instalment Plan")

Update a product

product.update(name: "Instalment Plan (v2)")

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 included from APIOperations::Update

included, #save, #update

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 billing products.

Returns:

  • (String)

    API resource path for billing products



19
20
21
# File 'lib/airwallex/resources/billing_product.rb', line 19

def self.resource_path
  "/api/v1/billing/products"
end