recurly 2.19.5 → 2.19.6

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: a23c382033fbf492c9175a8523147ecd76f81c177e54d5d5c5e72b88e0ce6314
4
- data.tar.gz: 4c5df1f86a7ac02f1b4ca1dfd03dead40fb94266dbc8fc2a00e10f042dfe2d96
3
+ metadata.gz: fa6072494939c38fe1dedd5fb01a68e58660ebce08bf455dd36590e110daeefa
4
+ data.tar.gz: 4c64f8cb4ecdd3bd54ed382ea79e4437b874a3ebeb424fcc5d6415650b978406
5
5
  SHA512:
6
- metadata.gz: 796b43f639d6a13a9d6f063f7718fba79488e3f1131c2657ae01534d52205ff36fe24c43908275a2d3741a39a3fd1b4b9becbe06da10d63294859829ee258e62
7
- data.tar.gz: 3fa5125171b3bf9f5d75315fd4091a930aa532f931d393291ca1d956de6fcb1db28d85a525995885bbe292393d94738f8ec26faf6a45988b9c50911c44a2cc10
6
+ metadata.gz: 646d67ec01f458945aa3513e4c1774e728babaa844cdcf7ec9ef95617bfce136df5b509a1973a5895946e10571624cde35b4375de5bb057104ed818c18b8c966
7
+ data.tar.gz: 49f5d46a4dc18108c15d03008ab581587f7bbfbc136a66911b1d9902a8637c4afdc6425ab25ca2724527e3e8f6a4f6a290565c3a2cfb9c62db26b4ca32fbe64b
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.6'
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
@@ -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.6"
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.6
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-06-13 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