recurly 2.19.5 → 2.19.7

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: a23c382033fbf492c9175a8523147ecd76f81c177e54d5d5c5e72b88e0ce6314
4
- data.tar.gz: 4c5df1f86a7ac02f1b4ca1dfd03dead40fb94266dbc8fc2a00e10f042dfe2d96
3
+ metadata.gz: 46f3ba77786e00789be21fba3ae3fa14c81742b13b66f4a915adf43a37b6f6bf
4
+ data.tar.gz: dd003015b650dcaee169b8d6581de9dba0753efc7d1b3e96a8d98663fadbba30
5
5
  SHA512:
6
- metadata.gz: 796b43f639d6a13a9d6f063f7718fba79488e3f1131c2657ae01534d52205ff36fe24c43908275a2d3741a39a3fd1b4b9becbe06da10d63294859829ee258e62
7
- data.tar.gz: 3fa5125171b3bf9f5d75315fd4091a930aa532f931d393291ca1d956de6fcb1db28d85a525995885bbe292393d94738f8ec26faf6a45988b9c50911c44a2cc10
6
+ metadata.gz: e9a97329f3eeec72986edd65d03881640fa08115d9f060081bf27d2736f084663e6e4b7b79f1753a8e85f2dc4d848617717af650378bd1597395a7a4dae00ab9
7
+ data.tar.gz: a213bebf6ddeaa9a58952d52e4d2bb1ff0ffea35d75b201f61d55d92ffc8cdc9aafd4df4adada6fbe1c08d27febba7b972c1fe7df2f971a1e5d1426c580f6aaa
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.5'
17
+ gem 'recurly', '~> 2.19.7'
18
18
  ```
19
19
 
20
20
  Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
@@ -72,6 +72,8 @@ module Recurly
72
72
  # @return [InvoiceTemplate, nil]
73
73
  belongs_to :invoice_template, class_name: :InvoiceTemplate, readonly: true
74
74
 
75
+ belongs_to :override_business_entity, class_name: 'BusinessEntity'
76
+
75
77
  # Get's the first redemption given a coupon code
76
78
  # @deprecated Use #{redemptions} instead
77
79
  # @param coupon_code [String] The coupon code for the redemption
@@ -113,6 +115,7 @@ module Recurly
113
115
  transaction_type
114
116
  dunning_campaign_id
115
117
  invoice_template_uuid
118
+ override_business_entity_id
116
119
  )
117
120
  alias to_param account_code
118
121
 
@@ -0,0 +1,30 @@
1
+ module Recurly
2
+ class BusinessEntity < Resource
3
+ belongs_to :site
4
+
5
+ has_many :invoices
6
+
7
+ has_many :accounts
8
+
9
+ define_attribute_methods %w(
10
+ id
11
+ code
12
+ name
13
+ invoice_display_address
14
+ tax_address
15
+ subscriber_location_countries
16
+ default_vat_number
17
+ default_registration_number
18
+ created_at
19
+ updated_at
20
+ )
21
+
22
+ def self.collection_path
23
+ "business_entities"
24
+ end
25
+
26
+ # We do not expose PUT or POST in the v2 API.
27
+ protected(*%w(save save!))
28
+ private_class_method(*%w(create! create))
29
+ end
30
+ end
@@ -23,6 +23,10 @@ module Recurly
23
23
  auto_renew
24
24
  app_identifier
25
25
  state
26
+ trial_started_at
27
+ trial_ends_at
28
+ canceled_at
29
+ in_grace_period
26
30
  )
27
31
 
28
32
  # We do not expose PUT or POST in the v2 API.
@@ -22,6 +22,9 @@ module Recurly
22
22
  # @return [Account]
23
23
  belongs_to :account
24
24
 
25
+ # @return [BusinessEntity]
26
+ belongs_to :business_entity
27
+
25
28
  # @return [Pager<Subscription>, []]
26
29
  has_many :subscriptions
27
30
 
@@ -118,6 +121,7 @@ module Recurly
118
121
  dunning_campaign_id
119
122
  refundable_total_in_cents
120
123
  used_tax_service
124
+ business_entity_id
121
125
  )
122
126
  alias to_param invoice_number_with_prefix
123
127
 
@@ -1,6 +1,6 @@
1
1
  module Recurly
2
2
  module Version
3
- VERSION = "2.19.5"
3
+ VERSION = "2.19.7"
4
4
 
5
5
  class << self
6
6
  def inspect
data/lib/recurly.rb CHANGED
@@ -13,6 +13,7 @@ module Recurly
13
13
  require 'recurly/account_balance'
14
14
  require 'recurly/add_on'
15
15
  require 'recurly/address'
16
+ require 'recurly/business_entity'
16
17
  require 'recurly/tax_detail'
17
18
  require 'recurly/tax_type'
18
19
  require 'recurly/juris_detail'
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.5
4
+ version: 2.19.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-27 00:00:00.000000000 Z
11
+ date: 2023-07-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri
@@ -137,6 +137,7 @@ files:
137
137
  - lib/recurly/api/errors.rb
138
138
  - lib/recurly/api/net_http_adapter.rb
139
139
  - lib/recurly/billing_info.rb
140
+ - lib/recurly/business_entity.rb
140
141
  - lib/recurly/coupon.rb
141
142
  - lib/recurly/credit_payment.rb
142
143
  - lib/recurly/currency_percentage_tier.rb