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: 73feaf0740f7b93fac1afbb843b14da2ae8795926e55a595b306c97fb789c973
4
- data.tar.gz: 4860d36f85289bf32be3f47a7f43de1c8b07c3d679b3c3ed96d4f1d64a6da0e7
3
+ metadata.gz: 57622c3436470549ee626a80890f7e4c653b9fc8442d0bcc8ef0924e3c04024d
4
+ data.tar.gz: 3e8eed3926ee08f02f550af2d2fc1d11723fa62a8746c99a3d8cea96c6787331
5
5
  SHA512:
6
- metadata.gz: 55a5b492825b56014b4a7f6db1779c4bb3401c33c97fc7b4e6d825e64d673104ca4becb816bc692f2c56b41804d6a408ab088edacb83e9ccc4b3824597cfa0bf
7
- data.tar.gz: ef3babd9e379fa95fe43a0b1d746a081eb61b7c65058f7e82560d0493cd9521c33d542ac1c9e0b1165a36a22bfe30b892bff25c7fe029e9e2cf1790a2d650f8d
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
@@ -13,6 +13,7 @@ module ChartMogul
13
13
  writeable_attr :result
14
14
  writeable_attr :external_id
15
15
  writeable_attr :amount_in_cents
16
+ writeable_attr :transaction_fees_in_cents
16
17
  writeable_attr :invoice_uuid
17
18
 
18
19
  def initialize(attributes = {})
@@ -13,6 +13,7 @@ module ChartMogul
13
13
  writeable_attr :result
14
14
  writeable_attr :external_id
15
15
  writeable_attr :amount_in_cents
16
+ writeable_attr :transaction_fees_in_cents
16
17
  writeable_attr :invoice_uuid
17
18
 
18
19
  def initialize(attributes = {})
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ChartMogul
4
- VERSION = '4.4.0'
4
+ VERSION = '4.6.0'
5
5
  end
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.0
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: 2024-10-24 00:00:00.000000000 Z
11
+ date: 2025-03-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday