recurly 2.19.9 → 2.19.10

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: e4a96134a4b8977fc5abc3b111f5e56354e45f3bc8383a590bd74522bd6c3ec0
4
- data.tar.gz: 5d9f1d4efab9691b79d8d01aee84c959a9c693bd4c00ed51ad0ffea5f8e28848
3
+ metadata.gz: 26bec9d46599a315823b85423806564f155b1777efc09fa47fa32dd1894e0159
4
+ data.tar.gz: c0bf35d79d87a6e2e22f861c407a0526743fcc4ae8c90693bc395ed501abc0a0
5
5
  SHA512:
6
- metadata.gz: 31da34b6f7c68bfecaa27fbe580ec8946275d43c93e847ac7684546e29d13e165f8c38f2c8238eae631d0da995716713907011ad6c12e3c0a6e71e9ae7246dd1
7
- data.tar.gz: d55a556963080206d0868f03c1adac3736faaa08d80c45eddab01fba3d705ede54eb3d82740154d5407d8ccbb3b92fef3b49434a52da7a6a12401a5cce065716
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.9'
17
+ gem 'recurly', '~> 2.19.10'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -5,6 +5,7 @@ module Recurly
5
5
  belongs_to :site
6
6
  belongs_to :account
7
7
  belongs_to :external_subscription
8
+ belongs_to :external_payment_phase
8
9
 
9
10
  # @return [[ExternalCharge], nil]
10
11
  has_many :line_items, class_name: :ExternalCharge
@@ -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
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.19.9"
3
+ VERSION = "2.19.10"
4
4
 
5
5
  class << self
6
6
  def inspect
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.9
4
+ version: 2.19.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-08-10 00:00:00.000000000 Z
11
+ date: 2023-12-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -48,42 +48,42 @@ dependencies:
48
48
  name: minitest
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: 5.8.0
54
51
  - - "~>"
55
52
  - !ruby/object:Gem::Version
56
53
  version: '5.8'
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: 5.8.0
57
57
  type: :development
58
58
  prerelease: false
59
59
  version_requirements: !ruby/object:Gem::Requirement
60
60
  requirements:
61
- - - ">="
62
- - !ruby/object:Gem::Version
63
- version: 5.8.0
64
61
  - - "~>"
65
62
  - !ruby/object:Gem::Version
66
63
  version: '5.8'
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ version: 5.8.0
67
67
  - !ruby/object:Gem::Dependency
68
68
  name: addressable
69
69
  requirement: !ruby/object:Gem::Requirement
70
70
  requirements:
71
- - - ">="
72
- - !ruby/object:Gem::Version
73
- version: 2.4.0
74
71
  - - "~>"
75
72
  - !ruby/object:Gem::Version
76
73
  version: '2.4'
74
+ - - ">="
75
+ - !ruby/object:Gem::Version
76
+ version: 2.4.0
77
77
  type: :development
78
78
  prerelease: false
79
79
  version_requirements: !ruby/object:Gem::Requirement
80
80
  requirements:
81
- - - ">="
82
- - !ruby/object:Gem::Version
83
- version: 2.4.0
84
81
  - - "~>"
85
82
  - !ruby/object:Gem::Version
86
83
  version: '2.4'
84
+ - - ">="
85
+ - !ruby/object:Gem::Version
86
+ version: 2.4.0
87
87
  - !ruby/object:Gem::Dependency
88
88
  name: webmock
89
89
  requirement: !ruby/object:Gem::Requirement
@@ -118,6 +118,88 @@ dependencies:
118
118
  - - "~>"
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
+ - !ruby/object:Gem::Dependency
122
+ name: yard
123
+ requirement: !ruby/object:Gem::Requirement
124
+ requirements:
125
+ - - "~>"
126
+ - !ruby/object:Gem::Version
127
+ version: 0.9.9
128
+ type: :development
129
+ prerelease: false
130
+ version_requirements: !ruby/object:Gem::Requirement
131
+ requirements:
132
+ - - "~>"
133
+ - !ruby/object:Gem::Version
134
+ version: 0.9.9
135
+ - !ruby/object:Gem::Dependency
136
+ name: redcarpet
137
+ requirement: !ruby/object:Gem::Requirement
138
+ requirements:
139
+ - - "~>"
140
+ - !ruby/object:Gem::Version
141
+ version: '3.4'
142
+ - - ">="
143
+ - !ruby/object:Gem::Version
144
+ version: 3.4.0
145
+ type: :development
146
+ prerelease: false
147
+ version_requirements: !ruby/object:Gem::Requirement
148
+ requirements:
149
+ - - "~>"
150
+ - !ruby/object:Gem::Version
151
+ version: '3.4'
152
+ - - ">="
153
+ - !ruby/object:Gem::Version
154
+ version: 3.4.0
155
+ - !ruby/object:Gem::Dependency
156
+ name: racc
157
+ requirement: !ruby/object:Gem::Requirement
158
+ requirements:
159
+ - - "~>"
160
+ - !ruby/object:Gem::Version
161
+ version: '1'
162
+ type: :development
163
+ prerelease: false
164
+ version_requirements: !ruby/object:Gem::Requirement
165
+ requirements:
166
+ - - "~>"
167
+ - !ruby/object:Gem::Version
168
+ version: '1'
169
+ - !ruby/object:Gem::Dependency
170
+ name: pry
171
+ requirement: !ruby/object:Gem::Requirement
172
+ requirements:
173
+ - - "<"
174
+ - !ruby/object:Gem::Version
175
+ version: 0.11.0
176
+ - - ">="
177
+ - !ruby/object:Gem::Version
178
+ version: 0.9.10
179
+ type: :development
180
+ prerelease: false
181
+ version_requirements: !ruby/object:Gem::Requirement
182
+ requirements:
183
+ - - "<"
184
+ - !ruby/object:Gem::Version
185
+ version: 0.11.0
186
+ - - ">="
187
+ - !ruby/object:Gem::Version
188
+ version: 0.9.10
189
+ - !ruby/object:Gem::Dependency
190
+ name: pry-nav
191
+ requirement: !ruby/object:Gem::Requirement
192
+ requirements:
193
+ - - "~>"
194
+ - !ruby/object:Gem::Version
195
+ version: 0.2.4
196
+ type: :development
197
+ prerelease: false
198
+ version_requirements: !ruby/object:Gem::Requirement
199
+ requirements:
200
+ - - "~>"
201
+ - !ruby/object:Gem::Version
202
+ version: 0.2.4
121
203
  description: 'An API client library for Recurly: https://recurly.com'
122
204
  email: support@recurly.com
123
205
  executables: []
@@ -152,6 +234,7 @@ files:
152
234
  - lib/recurly/external_account.rb
153
235
  - lib/recurly/external_charge.rb
154
236
  - lib/recurly/external_invoice.rb
237
+ - lib/recurly/external_payment_phase.rb
155
238
  - lib/recurly/external_product.rb
156
239
  - lib/recurly/external_product_reference.rb
157
240
  - lib/recurly/external_subscription.rb
@@ -271,7 +354,7 @@ homepage: https://github.com/recurly/recurly-client-ruby
271
354
  licenses:
272
355
  - MIT
273
356
  metadata: {}
274
- post_install_message:
357
+ post_install_message:
275
358
  rdoc_options:
276
359
  - "--main"
277
360
  - README.md
@@ -288,8 +371,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
288
371
  - !ruby/object:Gem::Version
289
372
  version: '0'
290
373
  requirements: []
291
- rubygems_version: 3.0.3.1
292
- signing_key:
374
+ rubygems_version: 3.4.6
375
+ signing_key:
293
376
  specification_version: 4
294
377
  summary: Recurly API Client
295
378
  test_files: []