Class: AbacatePay::Clients::BillingClient Deprecated
- Defined in:
- lib/abacate_pay/clients/billing_client.rb
Overview
Deprecated.
Use CheckoutClient instead.
Deprecated client for the v1 billing endpoints.
The endpoints this class calls (/billings/create, /billings/list) do
not exist on either API version, v2 replaced them with /checkouts/*,
and v1 uses the singular /billing/*. Every call raises ApiError.
Kept only so existing code keeps loading; it will be removed in 2.0.0.
Constant Summary collapse
- URI =
API endpoint for billing-related operations
"billings"
Constants inherited from Client
Client::RETRIABLE_EXCEPTIONS, Client::RETRIABLE_METHODS, Client::RETRIABLE_STATUSES
Instance Method Summary collapse
-
#create(data) ⇒ Resources::Billing
Creates a new billing.
-
#initialize(client = nil) ⇒ BillingClient
constructor
deprecated
Deprecated.
Use CheckoutClient instead
-
#list ⇒ Array<Resources::Billing>
Retrieves a list of billings.
Methods inherited from Client
Constructor Details
#initialize(client = nil) ⇒ BillingClient
Deprecated.
Use CheckoutClient instead
Returns a new instance of BillingClient.
20 21 22 23 24 25 |
# File 'lib/abacate_pay/clients/billing_client.rb', line 20 def initialize(client = nil) warn "[DEPRECATION] BillingClient calls /billings/* endpoints that do not exist on the " \ "AbacatePay API, so every request fails. Use AbacatePay.checkouts instead. " \ "This class will be removed in 2.0.0." super(URI, client) end |