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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 00ef0f64d98e6f057e8e93baf83bc549e4c0802ad6c0f6f2abeaf293840f9899
4
- data.tar.gz: 6d3845739b9eb6692d9870e57e85f3f59cc3afbbb8c666aa62ac61b2044b8125
3
+ metadata.gz: 63b45df3d697d743004d55e95af8e1cb4b66fee91ede7dc6bde8b4a46bca4d92
4
+ data.tar.gz: 52277814f16660e4a03010ad417455cd7d25be74afef6af3a201f638198185e7
5
5
  SHA512:
6
- metadata.gz: 5e78bbc6921661896d0f1b00ff40b743448b9a0dfefcd8e7a73c0ca8c621d1fb08a93b09bf61ae4ffad02f56737da54fa588f5836346195b900fbe958b16aeee
7
- data.tar.gz: 6f29bec682688450dd80f45b69ccdb1b93ea2502ff315d91f9f07057b34cd6a33e14404c99980439217b60abcc5455aa814111001722970dc77690746b539f30
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.29'
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
@@ -0,0 +1,11 @@
1
+ module Recurly
2
+ class ExternalResource < Resource
3
+
4
+ define_attribute_methods %w(
5
+ external_object_reference
6
+ )
7
+
8
+ protected(*%w(save save!))
9
+ private_class_method(*%w(all first paginate scoped where create create!))
10
+ end
11
+ 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
- # This object does not represent a model on the server side
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(all find_each first paginate scoped where create! create))
29
+ private_class_method(*%w(create! create))
19
30
  end
20
- end
31
+ end
data/lib/recurly/plan.rb CHANGED
@@ -4,6 +4,9 @@ module Recurly
4
4
  # @return [Pager<AddOn>, []]
5
5
  has_many :add_ons
6
6
 
7
+ # @return <ExternalProduct>
8
+ has_one :external_product
9
+
7
10
  # @return [[PlanRampInterval], nil]
8
11
  has_many :ramp_intervals, class_name: :PlanRampInterval
9
12
 
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.18.29"
3
+ VERSION = "2.18.30"
4
4
 
5
5
  class << self
6
6
  def inspect
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.29
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-10 00:00:00.000000000 Z
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