recurly 2.18.26 → 2.18.28
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/adjustment.rb +2 -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/invoice.rb +1 -0
- data/lib/recurly/usage.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: 7cd40950b9c134357179d16d3eab6b3a14c102e74404f7280cc6175802bf58bf
|
4
|
+
data.tar.gz: '0738d0cc1f5dcc3ba2c25d4645acf557c035855854812fe3be3ff91db5876b03'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a0a469b955fd5601c92384e6bf420f0fbcd4f4ecb5e10e351fa7f9f084c1197e59e4fc59ca309e8aeaf1ed76785873165dba2101e0991f141039d1f83d9fc66d
|
7
|
+
data.tar.gz: 02c62699c06e3d078932e17ac5c8265baac3c8c4e5543ade40efcd48ae51cb1bd1ccc55ed3767596db80478a3016f8db96dd9529e3841187a0e2be7f60b459e0
|
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.28'
|
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/adjustment.rb
CHANGED
@@ -34,6 +34,7 @@ module Recurly
|
|
34
34
|
origin
|
35
35
|
unit_amount_in_cents
|
36
36
|
quantity
|
37
|
+
quantity_decimal
|
37
38
|
discount_in_cents
|
38
39
|
total_in_cents
|
39
40
|
currency
|
@@ -45,6 +46,7 @@ module Recurly
|
|
45
46
|
created_at
|
46
47
|
updated_at
|
47
48
|
quantity_remaining
|
49
|
+
quantity_decimal_remaining
|
48
50
|
revenue_schedule_type
|
49
51
|
tax_in_cents
|
50
52
|
tax_type
|
@@ -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/invoice.rb
CHANGED
@@ -281,6 +281,7 @@ module Recurly
|
|
281
281
|
adj_node = node.add_element 'adjustment'
|
282
282
|
adj_node.add_element 'uuid', line_item[:adjustment].uuid
|
283
283
|
adj_node.add_element 'quantity', line_item[:quantity]
|
284
|
+
adj_node.add_element('quantity_decimal', line_item[:quantity_decimal]) if line_item.key?(:quantity_decimal)
|
284
285
|
adj_node.add_element 'prorate', line_item[:prorate]
|
285
286
|
end
|
286
287
|
builder.to_s
|
data/lib/recurly/usage.rb
CHANGED
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.28
|
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
|
+
date: 2022-10-27 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
|