recurly 2.19.8 → 2.19.10
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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/external_invoice.rb +1 -0
- data/lib/recurly/external_payment_phase.rb +27 -0
- data/lib/recurly/external_subscription.rb +15 -0
- data/lib/recurly/subscription.rb +1 -0
- data/lib/recurly/transaction.rb +1 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +1 -0
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 26bec9d46599a315823b85423806564f155b1777efc09fa47fa32dd1894e0159
|
4
|
+
data.tar.gz: c0bf35d79d87a6e2e22f861c407a0526743fcc4ae8c90693bc395ed501abc0a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c02c83650818cf6cc5c04cd8cb222ec598000d3f4ca8ce5208adc51ef8dfbd60966e59fad9baada38b85a38b5a9ad6f89408d2e519ccb0d10994c717977e87db
|
7
|
+
data.tar.gz: f8d56a24d903654a9fcdd2a36dcdf178db3aa0e3b1611aff5c20a677060beb21f6e453c60a403a16cead98bb5305ef5abe50b1c8640633c76a3c57a2a300c13d
|
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.19.
|
17
|
+
gem 'recurly', '~> 2.19.10'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
@@ -0,0 +1,27 @@
|
|
1
|
+
module Recurly
|
2
|
+
class ExternalPaymentPhase < Resource
|
3
|
+
|
4
|
+
# @return [ExternalSubscription]
|
5
|
+
belongs_to :external_subscription
|
6
|
+
|
7
|
+
define_attribute_methods %w(
|
8
|
+
id
|
9
|
+
started_at
|
10
|
+
ends_at
|
11
|
+
starting_billing_period_index
|
12
|
+
ending_billing_period_index
|
13
|
+
offer_type
|
14
|
+
offer_name
|
15
|
+
period_count
|
16
|
+
period_length
|
17
|
+
amount
|
18
|
+
currency
|
19
|
+
created_at
|
20
|
+
updated_at
|
21
|
+
)
|
22
|
+
|
23
|
+
# We do not expose POST or PUT via the v2 API
|
24
|
+
protected(*%w(save save!))
|
25
|
+
private_class_method(*%w(create! create))
|
26
|
+
end
|
27
|
+
end
|
@@ -10,6 +10,9 @@ module Recurly
|
|
10
10
|
# @return [ExternalInvoice]
|
11
11
|
has_many :external_invoices
|
12
12
|
|
13
|
+
# @return [ExternalPaymentPhase]
|
14
|
+
has_many :external_payment_phases
|
15
|
+
|
13
16
|
define_attribute_methods %w(
|
14
17
|
account
|
15
18
|
external_id
|
@@ -32,5 +35,17 @@ module Recurly
|
|
32
35
|
# We do not expose PUT or POST in the v2 API.
|
33
36
|
protected(*%w(save save!))
|
34
37
|
private_class_method(*%w(create! create))
|
38
|
+
|
39
|
+
def get_external_payment_phases
|
40
|
+
Pager.new(Recurly::ExternalPaymentPhase, uri: "#{path}/external_payment_phases", parent: self)
|
41
|
+
rescue Recurly::API::UnprocessableEntity => e
|
42
|
+
raise Invalid, e.message
|
43
|
+
end
|
44
|
+
|
45
|
+
def get_external_payment_phase(external_payment_phase_uuid)
|
46
|
+
ExternalPaymentPhase.from_response API.get("#{path}/external_payment_phases/#{external_payment_phase_uuid}")
|
47
|
+
rescue Recurly::API::UnprocessableEntity => e
|
48
|
+
raise Invalid, e.message
|
49
|
+
end
|
35
50
|
end
|
36
51
|
end
|
data/lib/recurly/subscription.rb
CHANGED
data/lib/recurly/transaction.rb
CHANGED
data/lib/recurly/version.rb
CHANGED
data/lib/recurly.rb
CHANGED
@@ -27,6 +27,7 @@ module Recurly
|
|
27
27
|
require 'recurly/external_invoice'
|
28
28
|
require 'recurly/external_product'
|
29
29
|
require 'recurly/external_product_reference'
|
30
|
+
require 'recurly/external_payment_phase'
|
30
31
|
require 'recurly/external_subscription'
|
31
32
|
require 'recurly/helper'
|
32
33
|
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.19.
|
4
|
+
version: 2.19.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-12-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -234,6 +234,7 @@ files:
|
|
234
234
|
- lib/recurly/external_account.rb
|
235
235
|
- lib/recurly/external_charge.rb
|
236
236
|
- lib/recurly/external_invoice.rb
|
237
|
+
- lib/recurly/external_payment_phase.rb
|
237
238
|
- lib/recurly/external_product.rb
|
238
239
|
- lib/recurly/external_product_reference.rb
|
239
240
|
- lib/recurly/external_subscription.rb
|
@@ -370,7 +371,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
370
371
|
- !ruby/object:Gem::Version
|
371
372
|
version: '0'
|
372
373
|
requirements: []
|
373
|
-
rubygems_version: 3.
|
374
|
+
rubygems_version: 3.4.6
|
374
375
|
signing_key:
|
375
376
|
specification_version: 4
|
376
377
|
summary: Recurly API Client
|