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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/account.rb +3 -0
- data/lib/recurly/business_entity.rb +30 -0
- data/lib/recurly/invoice.rb +4 -0
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly.rb +1 -0
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa6072494939c38fe1dedd5fb01a68e58660ebce08bf455dd36590e110daeefa
|
4
|
+
data.tar.gz: 4c64f8cb4ecdd3bd54ed382ea79e4437b874a3ebeb424fcc5d6415650b978406
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
17
|
+
gem 'recurly', '~> 2.19.6'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/account.rb
CHANGED
@@ -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
|
data/lib/recurly/invoice.rb
CHANGED
@@ -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
|
|
data/lib/recurly/version.rb
CHANGED
data/lib/recurly.rb
CHANGED
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
|
+
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-
|
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
|