recurly 2.19.3 → 2.19.5
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/billing_info.rb +2 -0
- data/lib/recurly/external_product.rb +17 -3
- data/lib/recurly/external_product_reference.rb +2 -2
- data/lib/recurly/gateway_attribute.rb +10 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a23c382033fbf492c9175a8523147ecd76f81c177e54d5d5c5e72b88e0ce6314
|
4
|
+
data.tar.gz: 4c5df1f86a7ac02f1b4ca1dfd03dead40fb94266dbc8fc2a00e10f042dfe2d96
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 796b43f639d6a13a9d6f063f7718fba79488e3f1131c2657ae01534d52205ff36fe24c43908275a2d3741a39a3fd1b4b9becbe06da10d63294859829ee258e62
|
7
|
+
data.tar.gz: 3fa5125171b3bf9f5d75315fd4091a930aa532f931d393291ca1d956de6fcb1db28d85a525995885bbe292393d94738f8ec26faf6a45988b9c50911c44a2cc10
|
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.5'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/billing_info.rb
CHANGED
@@ -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
data/lib/recurly.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.5
|
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-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -154,6 +154,7 @@ files:
|
|
154
154
|
- lib/recurly/external_product.rb
|
155
155
|
- lib/recurly/external_product_reference.rb
|
156
156
|
- lib/recurly/external_subscription.rb
|
157
|
+
- lib/recurly/gateway_attribute.rb
|
157
158
|
- lib/recurly/gift_card.rb
|
158
159
|
- lib/recurly/helper.rb
|
159
160
|
- lib/recurly/invoice.rb
|