class PrintfulAPI::TaxRate
Public Class Methods
get( recipient = {}, opts = {} )
click to toggle source
PrintfulAPI::TaxRate.get
( country_code: 'US', state_code: 'CA', city: 'San Diego', zip: 92130 )
# File lib/printful_api/tax_rate.rb, line 8 def self.get( recipient = {}, opts = {} ) data = PrintfulAPI.request( :POST, "/tax/rates", data: { recipient: recipient }, params: opts ) model = self.new model.load_data( data ) model end