recurly 2.18.29 → 2.18.30
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/recurly/external_product.rb +20 -0
- data/lib/recurly/external_product_reference.rb +18 -0
- data/lib/recurly/external_resource.rb +11 -0
- data/lib/recurly/external_subscription.rb +15 -4
- data/lib/recurly/plan.rb +3 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +3 -0
- metadata +5 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 63b45df3d697d743004d55e95af8e1cb4b66fee91ede7dc6bde8b4a46bca4d92
|
4
|
+
data.tar.gz: 52277814f16660e4a03010ad417455cd7d25be74afef6af3a201f638198185e7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a044fba0b706a2287fcc22a6d033c805667e596b487319eacc2f841fa7518fa5e86239be5449722f31c58f729694d9a8a29609dacd6a221711d0277b272459fd
|
7
|
+
data.tar.gz: 69934d6d213780d2aa8de76ba95622895990cae1bb24e783abf5f2be6afffbe7713c612d76c8790188f7bec948e71f2fc992f89c035705bd28f0563581f8c875
|
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.18.
|
17
|
+
gem 'recurly', '~> 2.18.30'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
@@ -0,0 +1,20 @@
|
|
1
|
+
module Recurly
|
2
|
+
class ExternalProduct < Resource
|
3
|
+
|
4
|
+
# @return [Plan]
|
5
|
+
belongs_to :plan
|
6
|
+
|
7
|
+
# @return array [ExternalProductReference]
|
8
|
+
has_many :external_product_references
|
9
|
+
|
10
|
+
define_attribute_methods %w(
|
11
|
+
name
|
12
|
+
created_at
|
13
|
+
updated_at
|
14
|
+
)
|
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))
|
19
|
+
end
|
20
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Recurly
|
2
|
+
class ExternalProductReference < Resource
|
3
|
+
|
4
|
+
# @return [ExternalProduct]
|
5
|
+
belongs_to :external_product
|
6
|
+
|
7
|
+
define_attribute_methods %w(
|
8
|
+
id
|
9
|
+
reference_code
|
10
|
+
external_connection_type
|
11
|
+
created_at
|
12
|
+
updated_at
|
13
|
+
)
|
14
|
+
|
15
|
+
protected(*%w(save save!))
|
16
|
+
private_class_method(*%w(all first paginate scoped where create create!))
|
17
|
+
end
|
18
|
+
end
|
@@ -1,7 +1,19 @@
|
|
1
1
|
module Recurly
|
2
2
|
class ExternalSubscription < Resource
|
3
3
|
|
4
|
+
# @return [Account]
|
5
|
+
belongs_to :account
|
6
|
+
|
7
|
+
# @return [ExternalResource]
|
8
|
+
has_one :external_resource
|
9
|
+
|
10
|
+
# @return [ExternalProductReference]
|
11
|
+
belongs_to :external_product_reference
|
12
|
+
|
4
13
|
define_attribute_methods %w(
|
14
|
+
account
|
15
|
+
external_resource
|
16
|
+
external_product_reference
|
5
17
|
quantity
|
6
18
|
activated_at
|
7
19
|
expires_at
|
@@ -12,9 +24,8 @@ module Recurly
|
|
12
24
|
app_identifier
|
13
25
|
)
|
14
26
|
|
15
|
-
#
|
16
|
-
# so we do not need to expose these methods.
|
27
|
+
# We do not expose PUT or POST in the v2 API.
|
17
28
|
protected(*%w(save save!))
|
18
|
-
private_class_method(*%w(
|
29
|
+
private_class_method(*%w(create! create))
|
19
30
|
end
|
20
|
-
end
|
31
|
+
end
|
data/lib/recurly/plan.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/lib/recurly.rb
CHANGED
@@ -20,6 +20,9 @@ module Recurly
|
|
20
20
|
require 'recurly/credit_payment'
|
21
21
|
require 'recurly/customer_permission'
|
22
22
|
require 'recurly/entitlement'
|
23
|
+
require 'recurly/external_product'
|
24
|
+
require 'recurly/external_product_reference'
|
25
|
+
require 'recurly/external_resource'
|
23
26
|
require 'recurly/external_subscription'
|
24
27
|
require 'recurly/helper'
|
25
28
|
require 'recurly/invoice'
|
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.18.
|
4
|
+
version: 2.18.30
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-11-
|
11
|
+
date: 2022-11-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -147,6 +147,9 @@ files:
|
|
147
147
|
- lib/recurly/dunning_cycle.rb
|
148
148
|
- lib/recurly/entitlement.rb
|
149
149
|
- lib/recurly/error.rb
|
150
|
+
- lib/recurly/external_product.rb
|
151
|
+
- lib/recurly/external_product_reference.rb
|
152
|
+
- lib/recurly/external_resource.rb
|
150
153
|
- lib/recurly/external_subscription.rb
|
151
154
|
- lib/recurly/gift_card.rb
|
152
155
|
- lib/recurly/helper.rb
|