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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/account.rb +6 -0
- data/lib/recurly/add_on.rb +1 -0
- data/lib/recurly/customer_permission.rb +10 -0
- data/lib/recurly/entitlement.rb +19 -0
- data/lib/recurly/external_subscription.rb +20 -0
- data/lib/recurly/subscription_add_on.rb +1 -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: 00ef0f64d98e6f057e8e93baf83bc549e4c0802ad6c0f6f2abeaf293840f9899
|
4
|
+
data.tar.gz: 6d3845739b9eb6692d9870e57e85f3f59cc3afbbb8c666aa62ac61b2044b8125
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
17
|
+
gem 'recurly', '~> 2.18.29'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/account.rb
CHANGED
@@ -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
|
|
data/lib/recurly/add_on.rb
CHANGED
@@ -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
|
data/lib/recurly/version.rb
CHANGED
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.
|
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
|
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
|