recurly 2.19.4 → 2.19.6

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: 407de8a9fa1cb28bcfa93e81ffac582abe4676f29f37444d082882ecee4e6439
4
- data.tar.gz: 9e0dc994281c96b1e21296872074ffc882a91b4e0f57988462e4245511742a5d
3
+ metadata.gz: fa6072494939c38fe1dedd5fb01a68e58660ebce08bf455dd36590e110daeefa
4
+ data.tar.gz: 4c64f8cb4ecdd3bd54ed382ea79e4437b874a3ebeb424fcc5d6415650b978406
5
5
  SHA512:
6
- metadata.gz: 6a80728e4a314b0e18dc550cdbd3ae01c5a76642b4b61c8810b154d5b01cf8b2b559c0801a10b9ebb9addd3ec275f32584741c146ed041b5f295d325dbb2092d
7
- data.tar.gz: 27b1acd0e26837419f77f000c64456c4d8622690365b17308b07bc541d84b3edab6c54a90920358dfb83ee33e58697af62c908e0b16b7ca12fd3d456a613fcf8
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.4'
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
 
@@ -16,6 +16,8 @@ module Recurly
16
16
  # @return [Account]
17
17
  belongs_to :account
18
18
 
19
+ has_one :gateway_attribute, class_name: :GatewayAttribute, readonly: false
20
+
19
21
  define_attribute_methods %w(
20
22
  uuid
21
23
  first_name
@@ -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
@@ -0,0 +1,10 @@
1
+ module Recurly
2
+ # Additional attributes to pass to the gateway
3
+ class GatewayAttribute < Resource
4
+ belongs_to :billing_info, class_name: :BillingInfo
5
+
6
+ define_attribute_methods %w(
7
+ account_reference,
8
+ )
9
+ end
10
+ 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.4"
3
+ VERSION = "2.19.6"
4
4
 
5
5
  class << self
6
6
  def inspect
data/lib/recurly.rb CHANGED
@@ -5,6 +5,7 @@ module Recurly
5
5
  require 'recurly/api'
6
6
  require 'recurly/resource'
7
7
  require 'recurly/shipping_address'
8
+ require 'recurly/gateway_attribute'
8
9
  require 'recurly/billing_info'
9
10
  require 'recurly/custom_field'
10
11
  require 'recurly/account_acquisition'
@@ -12,6 +13,7 @@ module Recurly
12
13
  require 'recurly/account_balance'
13
14
  require 'recurly/add_on'
14
15
  require 'recurly/address'
16
+ require 'recurly/business_entity'
15
17
  require 'recurly/tax_detail'
16
18
  require 'recurly/tax_type'
17
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.4
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-24 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
@@ -154,6 +155,7 @@ files:
154
155
  - lib/recurly/external_product.rb
155
156
  - lib/recurly/external_product_reference.rb
156
157
  - lib/recurly/external_subscription.rb
158
+ - lib/recurly/gateway_attribute.rb
157
159
  - lib/recurly/gift_card.rb
158
160
  - lib/recurly/helper.rb
159
161
  - lib/recurly/invoice.rb