chartmogul-ruby 4.4.0 → 4.6.0
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57622c3436470549ee626a80890f7e4c653b9fc8442d0bcc8ef0924e3c04024d
|
4
|
+
data.tar.gz: 3e8eed3926ee08f02f550af2d2fc1d11723fa62a8746c99a3d8cea96c6787331
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3e14cdf4980d1ad01eae66cf60a38daa7e114255e7d36bdd66280eb8bf7e2b9d39fc2222e96614db3bd48f68ff5429bf6b1432f9307b4727587431976741bdc6
|
7
|
+
data.tar.gz: a020f1c354000a5629471cf7da8e10ed8a26720c71f2af6319a8ca42b8fa36d3663fc22f206bf9b85ba1951c38f892d77043062665c49da9667619d9ba7bf813
|
data/changelog.md
CHANGED
@@ -1,5 +1,12 @@
|
|
1
1
|
# chartmogul-ruby Change Log
|
2
2
|
|
3
|
+
## Version 4.6.0 - March 14, 2025
|
4
|
+
- Adds support for disconnecting subscriptions
|
5
|
+
- Adds support for `transaction_fees_in_cents` attribute on transactions
|
6
|
+
|
7
|
+
## Version 4.5.0 - February 19, 2025
|
8
|
+
- Adds support for proration type support for LineItems Subscription
|
9
|
+
|
3
10
|
## Version 4.4.0 - October 24, 2024
|
4
11
|
- Adds support for unmerging customers
|
5
12
|
|
@@ -12,6 +12,7 @@ module ChartMogul
|
|
12
12
|
writeable_attr :amount_in_cents
|
13
13
|
writeable_attr :cancelled_at, type: :time
|
14
14
|
writeable_attr :prorated
|
15
|
+
writeable_attr :proration_type
|
15
16
|
writeable_attr :quantity
|
16
17
|
writeable_attr :discount_amount_in_cents
|
17
18
|
writeable_attr :discount_code
|
@@ -30,6 +30,11 @@ module ChartMogul
|
|
30
30
|
custom!(:post, "/v1/customers/#{customer_uuid}/connect_subscriptions", subscriptions: subscriptions.map(&:serialize_for_write))
|
31
31
|
end
|
32
32
|
|
33
|
+
def disconnect(customer_uuid, subscriptions)
|
34
|
+
subscriptions.unshift(self)
|
35
|
+
custom!(:post, "/v1/customers/#{customer_uuid}/disconnect_subscriptions", subscriptions: subscriptions.map(&:serialize_for_write))
|
36
|
+
end
|
37
|
+
|
33
38
|
def self.all(customer_uuid, options = {})
|
34
39
|
Subscriptions.all(customer_uuid, options)
|
35
40
|
end
|
data/lib/chartmogul/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: chartmogul-ruby
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Petr Kopac
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2025-03-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|