Sha256: 36ae62e214e179210e7ff7efa8e11e8362dc7a1b1c36d2d92a3f9797d90ae5a9

Contents?: true

Size: 440 Bytes

Versions: 2

Compression:

Stored size: 440 Bytes

Contents

# frozen_string_literal: true

# PaymentMethod objects represent a payment method of a user.
class EasyPost::PaymentMethod < EasyPost::Resource
  # <b>DEPRECATED:</b> Please use <tt>Billing class</tt> instead.
  # Deprecated: v4.5.0 - v6.0.0
  def self.all(api_key = nil)
    warn '[DEPRECATION] `all` is deprecated.  Please use `Billing.retrieve_payment_methods` instead.'
    EasyPost::Billing.retrieve_payment_methods(api_key)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
easypost-4.7.0 lib/easypost/payment_method.rb
easypost-4.6.0 lib/easypost/payment_method.rb