recurly 2.19.3 → 2.19.4

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: 73e765e7fb0fa735ee41b355d7e9b0a3fcde3780e573d7638cfaf739fe04ccee
4
- data.tar.gz: a30b8b38329f53e35e2a71ef4a93cec81debe8f13ecdf3479b67909c0f74bc0f
3
+ metadata.gz: 407de8a9fa1cb28bcfa93e81ffac582abe4676f29f37444d082882ecee4e6439
4
+ data.tar.gz: 9e0dc994281c96b1e21296872074ffc882a91b4e0f57988462e4245511742a5d
5
5
  SHA512:
6
- metadata.gz: 1eff4bb945aef93f5263efcf0b338396437eb2c7c506ad786cc4d5e690827f81568a307d49943ae5fd32e89c0434d7e7af83e47eefd47182de543a6bc43de90c
7
- data.tar.gz: 4bc5a3f62806f23c889f3c98905d381ec0e22968ec1ff2a687fd34391ab9e80d2f755bde854fd1a41c09f0394a0b31b7b276291d5fc43add0caefe19d1c801dc
6
+ metadata.gz: 6a80728e4a314b0e18dc550cdbd3ae01c5a76642b4b61c8810b154d5b01cf8b2b559c0801a10b9ebb9addd3ec275f32584741c146ed041b5f295d325dbb2092d
7
+ data.tar.gz: 27b1acd0e26837419f77f000c64456c4d8622690365b17308b07bc541d84b3edab6c54a90920358dfb83ee33e58697af62c908e0b16b7ca12fd3d456a613fcf8
data/README.md CHANGED
@@ -14,7 +14,7 @@ Recurly is packaged as a Ruby gem. We recommend you install it with
14
14
  [Bundler](http://gembundler.com/) by adding the following line to your Gemfile:
15
15
 
16
16
  ``` ruby
17
- gem 'recurly', '~> 2.19.3'
17
+ gem 'recurly', '~> 2.19.4'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -13,8 +13,22 @@ module Recurly
13
13
  updated_at
14
14
  )
15
15
 
16
- # We do not expose POST or PUT via the v2 API
17
- protected(*%w(save save!))
18
- private_class_method(*%w(create! create))
16
+ def create_external_product_reference(external_product_reference)
17
+ external_product_reference.uri = "#{path}/external_product_references"
18
+ external_product_reference.save!
19
+ external_product_reference
20
+ end
21
+
22
+ def get_external_product_references
23
+ Pager.new(Recurly::ExternalProductReference, uri: "#{path}/external_product_references", parent: self)
24
+ rescue Recurly::API::UnprocessableEntity => e
25
+ raise Invalid, e.message
26
+ end
27
+
28
+ def get_external_product_reference(external_product_reference_uuid)
29
+ ExternalProductReference.from_response API.get("#{path}/external_product_references/#{external_product_reference_uuid}")
30
+ rescue Recurly::API::UnprocessableEntity => e
31
+ raise Invalid, e.message
32
+ end
19
33
  end
20
34
  end
@@ -12,7 +12,7 @@ module Recurly
12
12
  updated_at
13
13
  )
14
14
 
15
- protected(*%w(save save!))
16
- private_class_method(*%w(all first paginate scoped where create create!))
15
+ # ExternalProductReferences are only writeable and readable through {ExternalProduct} instances.
16
+ embedded! true
17
17
  end
18
18
  end
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.19.3"
3
+ VERSION = "2.19.4"
4
4
 
5
5
  class << self
6
6
  def inspect
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: recurly
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.19.3
4
+ version: 2.19.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-04-26 00:00:00.000000000 Z
11
+ date: 2023-05-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri