cardmagic-etsy 0.3.6 → 0.3.7

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6f41bb7bc9d10fe76e2326b9478471e8696ee686f45125ce495b814e92ba9b64
4
- data.tar.gz: 28f7488b3300e7603a57ddf5695f36cd8140e1077ed93ed9cf89c29ed8c1e737
3
+ metadata.gz: 9327cd8dabfb0a88ec0635f3c09e226439ddf4888c66c6ec23efa73bb79e8fac
4
+ data.tar.gz: c44df1d148c1f3c93c41afd6b120c8b39f1481200eabba9c0ed819fe52deed10
5
5
  SHA512:
6
- metadata.gz: a1d5dfa7d63fca86ce47fd2f2461a217709c90c59016f3efce4faf42c45c4c250f1f74b2d0508ebc51e5f7a57176de22ab419f8d2a6ce5237a34be4bc2df1b7e
7
- data.tar.gz: aafd1bacedb4c95758d3dc4d05cb1169750d62d1117f0c7d297306d8c6c7ad83ea749c978ee4445f41db2502adf9f5ad6eaaed536f43ddbe4e4ffd3ca432fc94
6
+ metadata.gz: 52ee77b6f6dd92fd4e61b74758171c1a4e1babe62bb938d1ac3a05441a9e43b1ab10021488dfa7e28893fc24a204f9d840c13c0b98a99f6a0d839371e5e16e1e
7
+ data.tar.gz: 992b6aa09d8f22fb0b5b97b252e3d25ee4680f5db77f4229d89d7c9ca7cf731b5b2f1bca0b6422c2db6aabc2bb09b912fa0abe0094ee302b1b63671f1594e2a6
data/etsy.gemspec CHANGED
@@ -13,7 +13,7 @@ Gem::Specification.new do |gem|
13
13
  gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
14
14
  gem.name = "cardmagic-etsy"
15
15
  gem.require_paths = ["lib"]
16
- gem.version = "0.3.6"
16
+ gem.version = "0.3.7"
17
17
  gem.license = 'MIT'
18
18
 
19
19
  gem.required_rubygems_version = Gem::Requirement.new(">= 0") if gem.respond_to? :required_rubygems_version=
data/lib/etsy/listing.rb CHANGED
@@ -52,6 +52,10 @@ module Etsy
52
52
 
53
53
  association :image, :from => 'Images'
54
54
 
55
+ def transactions
56
+ @transactions ||= Transaction.find_all_by_listing_id(id)
57
+ end
58
+
55
59
  def self.create(options = {})
56
60
  options.merge!(:require_secure => true)
57
61
  post("/listings", options)
@@ -44,6 +44,10 @@ module Etsy
44
44
  get_all("/users/#{user_id}/transactions", options)
45
45
  end
46
46
 
47
+ def self.find_all_by_listing_id(listing_id, options = {})
48
+ get_all("/listings/#{listing_id}/transactions", options)
49
+ end
50
+
47
51
  def self.find_all_by_receipt_id(receipt_id, options = {})
48
52
  get_all("/receipts/#{receipt_id}/transactions", options)
49
53
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cardmagic-etsy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.6
4
+ version: 0.3.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Patrick Reagan