recurly 2.19.10 → 2.19.11
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/add_on.rb +1 -1
- data/lib/recurly/adjustment.rb +1 -1
- 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: 0aef43aa6bceadfd0ab52c09c03aa6e24cff75284fbb3e48fd9ab85916debcbc
|
4
|
+
data.tar.gz: 194e29765365f787666389d0e93ec798d17e6a52ed8046a7b28d5a3ceace9575
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: fab2d953e3d737d10851c023fe20d77229404485f17ff2a2cd10c9f009b31f59b90e5dd122e13ca844962843e97b686a4ea76104ac12be219c0b5ecaf68f9655
|
7
|
+
data.tar.gz: b7abf956d43a98c0f78274cb798e25900059f357dc9ed456d7241b4d1a2fa420718a3a841cacf945bd35c74e6e0615540c542ad5ee0a8fb053c89423cf2dba46
|
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.11'
|
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
@@ -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.11
|
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-13 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
|