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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/external_product.rb +17 -3
- data/lib/recurly/external_product_reference.rb +2 -2
- data/lib/recurly/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 407de8a9fa1cb28bcfa93e81ffac582abe4676f29f37444d082882ecee4e6439
|
4
|
+
data.tar.gz: 9e0dc994281c96b1e21296872074ffc882a91b4e0f57988462e4245511742a5d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
-
|
17
|
-
|
18
|
-
|
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
|
-
|
16
|
-
|
15
|
+
# ExternalProductReferences are only writeable and readable through {ExternalProduct} instances.
|
16
|
+
embedded! true
|
17
17
|
end
|
18
18
|
end
|
data/lib/recurly/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2023-05-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|