Sha256: 1df1d4d19b4d98f109faf2433908c732de1f01a4cc1505709615a66b08ca518c
Contents?: true
Size: 990 Bytes
Versions: 21
Compression:
Stored size: 990 Bytes
Contents
module Etsy class PaymentTemplate include Etsy::Model attribute :id, :from => :payment_template_id attributes :allow_check, :allow_mo, :allow_other, :allow_paypal, :allow_cc attributes :paypal_email, :name, :first_line, :second_line, :city, :state attributes :zip, :country_id def self.create(options = {}) options.merge!(:require_secure => true) post("/payments/templates", options) end def self.find(id, credentials = {}) options = { :access_token => credentials[:access_token], :access_secret => credentials[:access_secret], :require_secure => true } get("/payments/templates/#{id}", options) end def self.find_by_user(user, credentials = {}) options = { :access_token => credentials[:access_token], :access_secret => credentials[:access_secret], :require_secure => true } get("/users/#{user.id}/payments/templates", options) end end end
Version data entries
21 entries across 21 versions & 3 rubygems