recurly 2.19.10 → 2.19.12
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 +4 -4
- data/README.md +1 -1
- data/lib/recurly/add_on.rb +1 -1
- data/lib/recurly/adjustment.rb +1 -1
- data/lib/recurly/billing_info.rb +1 -0
- data/lib/recurly/business_entity.rb +4 -1
- data/lib/recurly/general_ledger_account.rb +16 -0
- data/lib/recurly/gift_card.rb +1 -1
- data/lib/recurly/item.rb +1 -1
- data/lib/recurly/performance_obligation.rb +15 -0
- data/lib/recurly/plan.rb +3 -1
- data/lib/recurly/resource.rb +1 -0
- data/lib/recurly/rev_rec.rb +18 -0
- data/lib/recurly/shipping_method.rb +1 -1
- data/lib/recurly/version.rb +1 -1
- data/lib/recurly/xml/rexml.rb +1 -1
- data/lib/recurly.rb +2 -0
- metadata +6 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 07b5067661c7758323506e342b179b0b3f96a3671bdba48c71bd903fad474b00
|
4
|
+
data.tar.gz: f9ce39d6f582c8ec0821ac49186d22e0b9e336c10106bf7f32830d7e2290378c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 14a567ea3a7453fd427c280d82550aa293e12fae9191ec32a0d2e6cb3169fc15aed203b9efc82e1f269d2a35977598ec0051c50667c137d2789b75d848c0e340
|
7
|
+
data.tar.gz: 5c36086de3d53793fc0ee604fdeec7dad264a2607bbe63f219021bda5adb200d843bf48045e5aa11f28a8a6006f4e23403d16f6281b1e1b9fab73215679113d1
|
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.12'
|
18
18
|
```
|
19
19
|
|
20
20
|
Recurly will automatically use [Nokogiri](http://nokogiri.org/) (for a nice
|
data/lib/recurly/add_on.rb
CHANGED
data/lib/recurly/adjustment.rb
CHANGED
data/lib/recurly/billing_info.rb
CHANGED
@@ -50,6 +50,7 @@ module Recurly
|
|
50
50
|
backup_payment_method
|
51
51
|
cc_bin_country
|
52
52
|
online_banking_payment_type
|
53
|
+
card_network_preference
|
53
54
|
) | CREDIT_CARD_ATTRIBUTES | BANK_ACCOUNT_ATTRIBUTES | AMAZON_ATTRIBUTES | PAYPAL_ATTRIBUTES | ROKU_ATTRIBUTES | SEPA_ATTRIBUTES | BACS_ATTRIBUTES | BECS_ATTRIBUTES | VENMO_ATTRIBUTES
|
54
55
|
|
55
56
|
# Verify an account's stored billing info
|
@@ -1,9 +1,10 @@
|
|
1
1
|
module Recurly
|
2
2
|
class BusinessEntity < Resource
|
3
3
|
belongs_to :site
|
4
|
+
belongs_to :default_revenue_gl_account, class_name: 'GeneralLedgerAccount'
|
5
|
+
belongs_to :default_liability_gl_account, class_name: 'GeneralLedgerAccount'
|
4
6
|
|
5
7
|
has_many :invoices
|
6
|
-
|
7
8
|
has_many :accounts
|
8
9
|
|
9
10
|
define_attribute_methods %w(
|
@@ -15,6 +16,8 @@ module Recurly
|
|
15
16
|
subscriber_location_countries
|
16
17
|
default_vat_number
|
17
18
|
default_registration_number
|
19
|
+
default_revenue_gl_account_id
|
20
|
+
default_liability_gl_account_id
|
18
21
|
created_at
|
19
22
|
updated_at
|
20
23
|
)
|
data/lib/recurly/gift_card.rb
CHANGED
data/lib/recurly/item.rb
CHANGED
data/lib/recurly/plan.rb
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
module Recurly
|
2
2
|
# Recurly Documentation: https://dev.recurly.com/docs/list-plans
|
3
3
|
class Plan < Resource
|
4
|
+
|
4
5
|
# @return [Pager<AddOn>, []]
|
5
6
|
has_many :add_ons
|
6
7
|
|
@@ -13,6 +14,7 @@ module Recurly
|
|
13
14
|
# @return [[CustomField], []]
|
14
15
|
has_many :custom_fields, class_name: :CustomField, readonly: false
|
15
16
|
|
17
|
+
# Define attribute methods
|
16
18
|
define_attribute_methods %w(
|
17
19
|
plan_code
|
18
20
|
name
|
@@ -50,7 +52,7 @@ module Recurly
|
|
50
52
|
custom_fields
|
51
53
|
created_at
|
52
54
|
updated_at
|
53
|
-
)
|
55
|
+
) + RevRec::PLAN_ATTRIBUTES
|
54
56
|
alias to_param plan_code
|
55
57
|
end
|
56
58
|
end
|
data/lib/recurly/resource.rb
CHANGED
@@ -0,0 +1,18 @@
|
|
1
|
+
module Recurly
|
2
|
+
module RevRec
|
3
|
+
POB_ATTRIBUTE = %i(performance_obligation_id).freeze
|
4
|
+
POB_NATIVE_ATTRIBUTE = %i(performance_obligation_identifier).freeze
|
5
|
+
|
6
|
+
GLA_ID_ATTRIBUTES = %i(liability_gl_account_id revenue_gl_account_id).freeze
|
7
|
+
GLA_CODE_ATTRIBUTES = %i(liability_gl_account_code revenue_gl_account_code).freeze
|
8
|
+
|
9
|
+
PRODUCT_NATIVE_ATTRS = (POB_NATIVE_ATTRIBUTE + GLA_ID_ATTRIBUTES).freeze
|
10
|
+
PRODUCT_ATTRIBUTES = (POB_ATTRIBUTE + GLA_ID_ATTRIBUTES).freeze
|
11
|
+
|
12
|
+
LINE_ITEM_ATTRIBUTES = (POB_ATTRIBUTE + GLA_CODE_ATTRIBUTES).freeze
|
13
|
+
ALL_ATTRIBUTES = (PRODUCT_ATTRIBUTES + LINE_ITEM_ATTRIBUTES).uniq.freeze
|
14
|
+
|
15
|
+
SETUP_FEE_ATTRIBUTES = PRODUCT_ATTRIBUTES.map { |key| :"setup_fee_#{key}" }.freeze
|
16
|
+
PLAN_ATTRIBUTES = [*PRODUCT_ATTRIBUTES, *SETUP_FEE_ATTRIBUTES].freeze
|
17
|
+
end
|
18
|
+
end
|
data/lib/recurly/version.rb
CHANGED
data/lib/recurly/xml/rexml.rb
CHANGED
data/lib/recurly.rb
CHANGED
@@ -62,6 +62,8 @@ module Recurly
|
|
62
62
|
require 'recurly/currency_percentage_tier'
|
63
63
|
require 'recurly/sub_add_on_percentage_tier'
|
64
64
|
require 'recurly/custom_field_definition'
|
65
|
+
require 'recurly/general_ledger_account'
|
66
|
+
require 'recurly/performance_obligation'
|
65
67
|
|
66
68
|
@subdomain = nil
|
67
69
|
|
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.12
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Recurly
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2024-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: nokogiri
|
@@ -239,6 +239,7 @@ files:
|
|
239
239
|
- lib/recurly/external_product_reference.rb
|
240
240
|
- lib/recurly/external_subscription.rb
|
241
241
|
- lib/recurly/gateway_attribute.rb
|
242
|
+
- lib/recurly/general_ledger_account.rb
|
242
243
|
- lib/recurly/gift_card.rb
|
243
244
|
- lib/recurly/helper.rb
|
244
245
|
- lib/recurly/invoice.rb
|
@@ -251,6 +252,7 @@ files:
|
|
251
252
|
- lib/recurly/money.rb
|
252
253
|
- lib/recurly/note.rb
|
253
254
|
- lib/recurly/percentage_tier.rb
|
255
|
+
- lib/recurly/performance_obligation.rb
|
254
256
|
- lib/recurly/plan.rb
|
255
257
|
- lib/recurly/plan_ramp_interval.rb
|
256
258
|
- lib/recurly/purchase.rb
|
@@ -259,6 +261,7 @@ files:
|
|
259
261
|
- lib/recurly/resource/association.rb
|
260
262
|
- lib/recurly/resource/errors.rb
|
261
263
|
- lib/recurly/resource/pager.rb
|
264
|
+
- lib/recurly/rev_rec.rb
|
262
265
|
- lib/recurly/shipping_address.rb
|
263
266
|
- lib/recurly/shipping_fee.rb
|
264
267
|
- lib/recurly/shipping_method.rb
|
@@ -371,7 +374,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
371
374
|
- !ruby/object:Gem::Version
|
372
375
|
version: '0'
|
373
376
|
requirements: []
|
374
|
-
rubygems_version: 3.4.
|
377
|
+
rubygems_version: 3.4.10
|
375
378
|
signing_key:
|
376
379
|
specification_version: 4
|
377
380
|
summary: Recurly API Client
|