Exception: Pago::V2026_04::Errors::PaymentMethodInUseByActiveSubscription
- Inherits:
-
BadRequestError
- Object
- StandardError
- Error
- APIError
- ClientError
- BadRequestError
- Pago::V2026_04::Errors::PaymentMethodInUseByActiveSubscription
- Defined in:
- lib/pago/v2026_04/errors.rb,
sig/pago/v2026_04/generated.rbs
Overview
Payment method is used by active subscription(s). Raised on HTTP 400.
Constant Summary collapse
- STATUS_CODE =
400
Instance Attribute Summary
Attributes inherited from APIError
#body, #data, #response, #status_code
Class Method Summary collapse
-
.from_response(status_code:, body:, response:) ⇒ Models::PaymentMethodInUseByActiveSubscription
The deserialized error payload.
Methods inherited from APIError
Constructor Details
This class inherits a constructor from Pago::APIError
Class Method Details
.from_response(status_code:, body:, response:) ⇒ Models::PaymentMethodInUseByActiveSubscription
Returns the deserialized error payload.
683 684 685 686 687 688 689 690 691 |
# File 'lib/pago/v2026_04/errors.rb', line 683 def self.from_response(status_code:, body:, response:) new( "Pago API returned an error: #{status_code} - PaymentMethodInUseByActiveSubscription", status_code: status_code, data: Models::PaymentMethodInUseByActiveSubscription.from_json(body), body: body, response: response ) end |