recurly 2.19.5 → 2.19.7
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/external_subscription.rb +4 -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: 46f3ba77786e00789be21fba3ae3fa14c81742b13b66f4a915adf43a37b6f6bf
|
4
|
+
data.tar.gz: dd003015b650dcaee169b8d6581de9dba0753efc7d1b3e96a8d98663fadbba30
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
17
|
+
gem 'recurly', '~> 2.19.7'
|
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.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-
|
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
|