recurly 2.18.27 → 2.18.29

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: a4cbb0efbc5939f0cbf777eac1753057d60b7d19a1da8e65ab7c6a2eb5c44423
4
- data.tar.gz: 041b8ac3990008c0ed3c370d9ac3f064f72a93c70c493dd22866fb3d70a529da
3
+ metadata.gz: 00ef0f64d98e6f057e8e93baf83bc549e4c0802ad6c0f6f2abeaf293840f9899
4
+ data.tar.gz: 6d3845739b9eb6692d9870e57e85f3f59cc3afbbb8c666aa62ac61b2044b8125
5
5
  SHA512:
6
- metadata.gz: 077d9dfc05e903e0943107b22b5c31e3039fe650ab79936199fd176c4608baaeb9a7027ccbd496a51136b793cc10cf135ca87d8056d8500c4e39e63cbd6d8733
7
- data.tar.gz: cc4da6e59da4f6a9c4ca2ea9d08259b7570e172252d6232af41c9c068ba2559e8a2ebf298dd677cceb34456c1c06a53f3b2e42e6ecafaeadba715dc71a7686a7
6
+ metadata.gz: 5e78bbc6921661896d0f1b00ff40b743448b9a0dfefcd8e7a73c0ca8c621d1fb08a93b09bf61ae4ffad02f56737da54fa588f5836346195b900fbe958b16aeee
7
+ data.tar.gz: 6f29bec682688450dd80f45b69ccdb1b93ea2502ff315d91f9f07057b34cd6a33e14404c99980439217b60abcc5455aa814111001722970dc77690746b539f30
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.27'
17
+ gem 'recurly', '~> 2.18.29'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -26,6 +26,12 @@ module Recurly
26
26
  # @return [Pager<Transaction>, []] A pager that yields Transaction for persisted
27
27
  has_many :transactions
28
28
 
29
+ # @return [Pager<ExternalSubscription>, []] A pager that yields External Subscriptions for persisted
30
+ has_many :external_subscriptions
31
+
32
+ # @return [Pager<Entitlement>, []] A pager that yields Entitlement for persisted
33
+ has_many :entitlements
34
+
29
35
  # @return [Pager<Note>, []] A pager that yields Note for persisted
30
36
  has_many :notes
31
37
 
@@ -27,6 +27,7 @@ module Recurly
27
27
  updated_at
28
28
  tier_type
29
29
  usage_timeframe
30
+ usage_calculation_type
30
31
  external_sku
31
32
  avalara_service_type
32
33
  avalara_transaction_type
@@ -0,0 +1,10 @@
1
+ module Recurly
2
+ class CustomerPermission < Resource
3
+ define_attribute_methods %w(
4
+ id
5
+ code
6
+ name
7
+ description
8
+ )
9
+ end
10
+ end
@@ -0,0 +1,19 @@
1
+ module Recurly
2
+ class Entitlement < Resource
3
+ # @return [Account]
4
+ belongs_to :account
5
+
6
+ define_attribute_methods %w(
7
+ account
8
+ customer_permission
9
+ granted_by
10
+ created_at
11
+ updated_at
12
+ )
13
+
14
+ # This object does not represent a model on the server side
15
+ # so we do not need to expose these methods.
16
+ protected(*%w(save save!))
17
+ private_class_method(*%w(all find_each first paginate scoped where create! create))
18
+ end
19
+ end
@@ -0,0 +1,20 @@
1
+ module Recurly
2
+ class ExternalSubscription < Resource
3
+
4
+ define_attribute_methods %w(
5
+ quantity
6
+ activated_at
7
+ expires_at
8
+ created_at
9
+ updated_at
10
+ last_purchased
11
+ auto_renew
12
+ app_identifier
13
+ )
14
+
15
+ # This object does not represent a model on the server side
16
+ # so we do not need to expose these methods.
17
+ protected(*%w(save save!))
18
+ private_class_method(*%w(all find_each first paginate scoped where create! create))
19
+ end
20
+ end
@@ -20,6 +20,7 @@ module Recurly
20
20
  usage_type
21
21
  usage_percentage
22
22
  usage_timeframe
23
+ usage_calculation_type
23
24
  add_on_source
24
25
  )
25
26
 
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.18.27"
3
+ VERSION = "2.18.29"
4
4
 
5
5
  class << self
6
6
  def inspect
data/lib/recurly.rb CHANGED
@@ -18,6 +18,9 @@ module Recurly
18
18
  require 'recurly/adjustment'
19
19
  require 'recurly/coupon'
20
20
  require 'recurly/credit_payment'
21
+ require 'recurly/customer_permission'
22
+ require 'recurly/entitlement'
23
+ require 'recurly/external_subscription'
21
24
  require 'recurly/helper'
22
25
  require 'recurly/invoice'
23
26
  require 'recurly/invoice_collection'
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.27
4
+ version: 2.18.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-10-20 00:00:00.000000000 Z
11
+ date: 2022-11-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -141,10 +141,13 @@ files:
141
141
  - lib/recurly/credit_payment.rb
142
142
  - lib/recurly/currency_percentage_tier.rb
143
143
  - lib/recurly/custom_field.rb
144
+ - lib/recurly/customer_permission.rb
144
145
  - lib/recurly/delivery.rb
145
146
  - lib/recurly/dunning_campaign.rb
146
147
  - lib/recurly/dunning_cycle.rb
148
+ - lib/recurly/entitlement.rb
147
149
  - lib/recurly/error.rb
150
+ - lib/recurly/external_subscription.rb
148
151
  - lib/recurly/gift_card.rb
149
152
  - lib/recurly/helper.rb
150
153
  - lib/recurly/invoice.rb