recurly 2.18.21 → 2.18.22
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 +1 -0
- data/lib/recurly/adjustment.rb +2 -0
- data/lib/recurly/dunning_campaign.rb +30 -0
- data/lib/recurly/dunning_cycle.rb +18 -0
- data/lib/recurly/invoice.rb +1 -0
- data/lib/recurly/plan.rb +1 -0
- data/lib/recurly/resource.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +2 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89370fbc69e2a1dc5dc317f45c0b3be37fad9b22d7fd0186416312f6cdfbe68c
|
4
|
+
data.tar.gz: 34a070a7121166d2e810bbf27313d792e657f681c74ce9139938e52cc4924f85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56882820ac3dd3cc339e5d9e0d23ab3d17c425754199f6ed7e39b8cddb75ab5c4760a5ccc4b948552f85005ce8ea1256b5e4dd29bd57747bc7e5b2476081e71
|
7
|
+
data.tar.gz: 89dde5248e08a6f9b2d521df965c5de159fd73d5e96518a8d4e78e878de50b44f464aebbef0aaf3aa493622bb1919de18f7ab48b98bae29615267a0575688152
|
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.22'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/account.rb
CHANGED
data/lib/recurly/adjustment.rb
CHANGED
@@ -0,0 +1,30 @@
|
|
1
|
+
module Recurly
|
2
|
+
# Recurly Documentation: https://developers.recurly.com/api-v2/latest/index.html#tag/dunning-campaigns
|
3
|
+
class DunningCampaign < Resource
|
4
|
+
# @return [[DunningCycle], []]
|
5
|
+
has_many :dunning_cycles
|
6
|
+
|
7
|
+
define_attribute_methods %w(
|
8
|
+
id
|
9
|
+
name
|
10
|
+
code
|
11
|
+
description
|
12
|
+
default_campaign
|
13
|
+
dunning_cycles
|
14
|
+
created_at
|
15
|
+
updated_at
|
16
|
+
deleted_at
|
17
|
+
)
|
18
|
+
|
19
|
+
def bulk_update(plan_codes)
|
20
|
+
return false unless link? :bulk_update
|
21
|
+
|
22
|
+
builder = XML.new("<dunning_campaign/>")
|
23
|
+
node = builder.add_element("plan_codes")
|
24
|
+
plan_codes.each { |plan_code| node.add_element "plan_code", plan_code }
|
25
|
+
|
26
|
+
reload follow_link(:bulk_update, :body => builder.to_s)
|
27
|
+
true
|
28
|
+
end
|
29
|
+
end
|
30
|
+
end
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module Recurly
|
2
|
+
class DunningCycle < Resource
|
3
|
+
define_attribute_methods %w(
|
4
|
+
type
|
5
|
+
applies_to_manual_trial
|
6
|
+
first_communication_interval
|
7
|
+
send_immediately_on_hard_decline
|
8
|
+
intervals
|
9
|
+
expire_subscription
|
10
|
+
fail_invoice
|
11
|
+
total_dunning_days
|
12
|
+
total_recycling_days
|
13
|
+
version
|
14
|
+
created_at
|
15
|
+
updated_at
|
16
|
+
)
|
17
|
+
end
|
18
|
+
end
|
data/lib/recurly/invoice.rb
CHANGED
data/lib/recurly/plan.rb
CHANGED
data/lib/recurly/resource.rb
CHANGED
@@ -608,7 +608,7 @@ module Recurly
|
|
608
608
|
|
609
609
|
def find_resource_class(name)
|
610
610
|
resource_name = Helper.classify(name)
|
611
|
-
if Recurly.const_defined?(resource_name, false)
|
611
|
+
if Recurly.const_defined?(resource_name, false) && Recurly.const_get(resource_name, false).instance_of?(Class)
|
612
612
|
Recurly.const_get(resource_name, false)
|
613
613
|
end
|
614
614
|
end
|
data/lib/recurly/version.rb
CHANGED
data/lib/recurly.rb
CHANGED
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.22
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-
|
11
|
+
date: 2021-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -141,6 +141,8 @@ files:
|
|
141
141
|
- lib/recurly/credit_payment.rb
|
142
142
|
- lib/recurly/custom_field.rb
|
143
143
|
- lib/recurly/delivery.rb
|
144
|
+
- lib/recurly/dunning_campaign.rb
|
145
|
+
- lib/recurly/dunning_cycle.rb
|
144
146
|
- lib/recurly/error.rb
|
145
147
|
- lib/recurly/gift_card.rb
|
146
148
|
- lib/recurly/helper.rb
|