recurly 2.17.7 → 2.17.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 04d76a0b8838006d176e6ca39f16885a069b532eb368195168e336c70d56ccb9
4
- data.tar.gz: 0ee2e4827a538d857849ba744932e0f6a276493ed147d28b9c45bfed7b8afa10
3
+ metadata.gz: d56fc67c38893f7150cf98085a9078f7a8991f439c7a76ecd127dcec487a27ee
4
+ data.tar.gz: 734ddfbc88973d688cc040052693703b7ce8d81e9e2ec56f6896bad2c54550b7
5
5
  SHA512:
6
- metadata.gz: 28875b556350b50d81bde17dc9c5a614acffd3db40bae2de644bea41d9bc6df70ce5f4688f83675c465d2edd6453292ecceaf3f2047a14f8b9f31f9d2aefd4b1
7
- data.tar.gz: c5cee0f2e9f226ff2e38ad01a882d2752401a21b05ec00ccdfaa597be5f3759aaa9423d1e43ae47e8b0e87958fca1b6d965471856be5214aa687fc16d45f50c0
6
+ metadata.gz: 92b0e2a83bd77dbb38a16b4c2ced2d652a1066decf06ca5eff3e99d65cc171b5b746a634e629a021ad5c95567fbac7d2c3f27678e0297fe2d6a04c649af14568
7
+ data.tar.gz: cb8a90f7f6f6d4ad5b06615a1e334fa9d43c5e201cf59eceaa99dabcf664ac3a2c684d712dd0724ba2ab1b5649da26c101d59fb0248128c2e29468cbfac30388
@@ -42,6 +42,12 @@ module Recurly
42
42
  # @return [AccountBalance, nil]
43
43
  has_one :account_balance, readonly: true
44
44
 
45
+ # @return [Account, nil]
46
+ belongs_to :parent_account, class_name: :Account
47
+
48
+ # @return [Pager<Account>, []] A pager that yields Account for persisted
49
+ has_many :child_accounts, class_name: :Account
50
+
45
51
  # @return [Pager<CreditPayment>, []]
46
52
  has_many :credit_payments, class_name: :CreditPayment, readonly: true
47
53
 
@@ -60,6 +66,7 @@ module Recurly
60
66
 
61
67
  define_attribute_methods %w(
62
68
  account_code
69
+ parent_account_code
63
70
  state
64
71
  username
65
72
  email
data/lib/recurly/api.rb CHANGED
@@ -17,7 +17,7 @@ module Recurly
17
17
  @@base_uri = "https://api.recurly.com/v2/"
18
18
  @@valid_domains = [".recurly.com"]
19
19
 
20
- RECURLY_API_VERSION = '2.18'
20
+ RECURLY_API_VERSION = '2.19'
21
21
 
22
22
  FORMATS = Helper.hash_with_indifferent_read_access(
23
23
  'pdf' => 'application/pdf',
@@ -2,7 +2,7 @@ module Recurly
2
2
  module Version
3
3
  MAJOR = 2
4
4
  MINOR = 17
5
- PATCH = 7
5
+ PATCH = 8
6
6
  PRE = nil
7
7
 
8
8
  VERSION = [MAJOR, MINOR, PATCH, PRE].compact.join('.').freeze
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.17.7
4
+ version: 2.17.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Recurly
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-03-07 00:00:00.000000000 Z
11
+ date: 2019-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: nokogiri