killbill-client 0.10.2 → 0.10.3

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
  SHA1:
3
- metadata.gz: 48e0e8b9913839532f30f11ebb3e4b808720206c
4
- data.tar.gz: 88a00d7d0bb47f99e9d3fdb40fa140c4caecf467
3
+ metadata.gz: c5e31c846bfcfc343419c5680facd9adc19dc2c1
4
+ data.tar.gz: 147dc1933c078b486f22074e9908fc41c762679d
5
5
  SHA512:
6
- metadata.gz: 6939e9fc905f36356f21e0fa95e0c8366febff9f0ab5f5a88ec785a945254b8f57e6cc956017309b3c5d2b03e3b149ddf8d8bfad0696810c3f4d5752ca58e06e
7
- data.tar.gz: deafcbb66621e51e6a94a269ff855f14a2f065c8088703ce61bc943c18cf79dfabad363b5a76dd7e055cd4e1b643fae38162f359d4e837ad1bdd54242d9ef710
6
+ metadata.gz: ea04c58ee2ee1368d19938bcf6fb9a792cc5f42d5bc8ee0eccc4b69986bbc3210582cdcc70ce145641e7010c733650eb45fb7e925405aaafe02dccea7cb62a9c
7
+ data.tar.gz: af9067830cf106237d05fe3ab864847c4d7ff6430bbef52655ba129424c53d74c7f6cba0956db5bd2b918871f06111df782f2091955da74f18ba964c8203ed7f
@@ -1,6 +1,9 @@
1
1
  module KillBillClient
2
2
  module Model
3
3
  class Invoice < InvoiceAttributes
4
+
5
+ include KillBillClient::Model::CustomFieldHelper
6
+
4
7
  KILLBILL_API_INVOICES_PREFIX = "#{KILLBILL_API_PREFIX}/invoices"
5
8
  KILLBILL_API_DRY_RUN_INVOICES_PREFIX = "#{KILLBILL_API_INVOICES_PREFIX}/dryRun"
6
9
 
@@ -8,6 +11,8 @@ module KillBillClient
8
11
  has_many :items, KillBillClient::Model::InvoiceItem
9
12
  has_many :credits, KillBillClient::Model::Credit
10
13
 
14
+ has_custom_fields KILLBILL_API_INVOICES_PREFIX, :invoice_id
15
+
11
16
  create_alias :bundle_keys, :external_bundle_keys
12
17
 
13
18
  class << self
@@ -1,11 +1,16 @@
1
1
  module KillBillClient
2
2
  module Model
3
3
  class Payment < PaymentAttributes
4
+
5
+ include KillBillClient::Model::CustomFieldHelper
6
+
4
7
  KILLBILL_API_PAYMENTS_PREFIX = "#{KILLBILL_API_PREFIX}/payments"
5
8
 
6
9
  has_many :transactions, KillBillClient::Model::Transaction
7
10
  has_many :audit_logs, KillBillClient::Model::AuditLog
8
11
 
12
+ has_custom_fields KILLBILL_API_PAYMENTS_PREFIX, :payment_id
13
+
9
14
  class << self
10
15
  def find_by_id(payment_id, options = {})
11
16
  get "#{KILLBILL_API_PAYMENTS_PREFIX}/#{payment_id}",
@@ -2,10 +2,13 @@ module KillBillClient
2
2
  module Model
3
3
  class Subscription < SubscriptionAttributes
4
4
 
5
- has_many :events, KillBillClient::Model::EventSubscription
5
+ include KillBillClient::Model::CustomFieldHelper
6
6
 
7
7
  KILLBILL_API_ENTITLEMENT_PREFIX = "#{KILLBILL_API_PREFIX}/subscriptions"
8
8
 
9
+ has_many :events, KillBillClient::Model::EventSubscription
10
+ has_custom_fields KILLBILL_API_ENTITLEMENT_PREFIX, :subscription_id
11
+
9
12
  class << self
10
13
  def find_by_id(subscription_id, options = {})
11
14
  get "#{KILLBILL_API_ENTITLEMENT_PREFIX}/#{subscription_id}",
@@ -2,7 +2,7 @@ module KillBillClient
2
2
  module Version
3
3
  MAJOR = 0
4
4
  MINOR = 10
5
- PATCH = 2
5
+ PATCH = 3
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: killbill-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.10.2
4
+ version: 0.10.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Killbill core team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-01-15 00:00:00.000000000 Z
11
+ date: 2015-01-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json