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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5a44e691403ffedfd227566e9305f930c475b19c78f48d9c120175122255feb9
4
- data.tar.gz: b5b5500405da90ba1638270993fd2b9695535a1d18b3f7aec20502a5e7674263
3
+ metadata.gz: 26bec9d46599a315823b85423806564f155b1777efc09fa47fa32dd1894e0159
4
+ data.tar.gz: c0bf35d79d87a6e2e22f861c407a0526743fcc4ae8c90693bc395ed501abc0a0
5
5
  SHA512:
6
- metadata.gz: 1bbce2052a6686eb15e859e132cfcd04cc013a7fbe8bdf3c1b5c675e63efe1e3c127c0392f49ce5baa69cd8d4dba024deacf5c756c6cfc3be5dc87f9bd2b8192
7
- data.tar.gz: f4332d7ca2d21a6622bf9763848a04949d906df2ee52488cf0a7c911de30e020847e452808b82bbd413c4d69c07500445966430426dec52a6d08761f7125031b
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.8'
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
@@ -107,6 +107,7 @@ module Recurly
107
107
  resume_at
108
108
  gateway_code
109
109
  transaction_type
110
+ action_result
110
111
  )
111
112
  alias to_param uuid
112
113
 
@@ -72,6 +72,7 @@ module Recurly
72
72
  manually_entered
73
73
  avalara_transaction_type
74
74
  avalara_service_type
75
+ action_result
75
76
  )
76
77
  alias to_param uuid
77
78
  alias fraud_info fraud
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.19.8"
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.8
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-07-31 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
@@ -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.1.6
374
+ rubygems_version: 3.4.6
374
375
  signing_key:
375
376
  specification_version: 4
376
377
  summary: Recurly API Client