Class: EasyPost::PaymentMethod

Inherits:
Resource show all
Defined in:
lib/easypost/payment_method.rb

Overview

PaymentMethod objects represent a payment method of a user.

Instance Attribute Summary

Attributes inherited from EasyPostObject

#api_key, #name, #parent, #unsaved_values

Class Method Summary collapse

Methods inherited from Resource

class_name, create, #delete, each, #refresh, retrieve, #save, url, #url

Methods inherited from EasyPostObject

#[], #[]=, #as_json, construct_from, #deconstruct_keys, #each, #id, #id=, #initialize, #inspect, #keys, #refresh_from, #to_hash, #to_json, #to_s, #values

Constructor Details

This class inherits a constructor from EasyPost::EasyPostObject

Class Method Details

.all(_filters = {}, api_key = nil) ⇒ Object

DEPRECATED: Please use Billing class instead. Deprecated: v4.5.0 - v6.0.0



7
8
9
10
# File 'lib/easypost/payment_method.rb', line 7

def self.all(_filters = {}, api_key = nil)
  warn '[DEPRECATION] `all` is deprecated.  Please use `Billing.retrieve_payment_methods` instead.'
  EasyPost::Billing.retrieve_payment_methods(api_key)
end