killbill-client 0.10.2 → 0.10.3
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c5e31c846bfcfc343419c5680facd9adc19dc2c1
|
4
|
+
data.tar.gz: 147dc1933c078b486f22074e9908fc41c762679d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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}",
|
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.
|
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-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|