chartmogul-ruby 1.3.3 → 1.4.0

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: 452258de8a499d3422950d46b6d01aa6b27aa0c9
4
- data.tar.gz: 11a615d025f6e0958aa72886dc1319e1c2bb31ee
3
+ metadata.gz: 9374c3e5f0335ea291d6273b51ff0c3e213c6aef
4
+ data.tar.gz: ddb280e6a5a98688d8a1d1febc9510427fbeed5d
5
5
  SHA512:
6
- metadata.gz: 122c0fb0140baa4b937e18ecce97e5ee693a033e601749b525fd4e9d04a0fe67003e09402b5bab7bb55821332f1db90bfbea147239da7f4b79e53bc12ac0e813
7
- data.tar.gz: e00ea078a15dcdcf0367b6012bf00a48a4d6d6ff85966ae3b241b1b6d3ec81aaaa49bc134cfcfd93c9af9c7955d05fcaa2295c9112d396237da4093fcd400d95
6
+ metadata.gz: 3336095bfc0a8b4d3ad142f17609b9cef8882ecc7f5c727963f60e7d4757d0575e99953cfb418e5c9f10d807e88526797b4a93a2a5034235674c776801abc046
7
+ data.tar.gz: ebf5566dcaa6f476de2dcc68fe994a731cd7a18d1a04f62d2192aa540ec6deb7d44dcfa0cd0b7f0af9247e64dc8bc22a7f649246057bd55d30f7179e2138ca5e
@@ -1,5 +1,8 @@
1
1
  # chartmogul-ruby Change Log
2
2
 
3
+ ## Version 1.4.0 - 20 September 2019
4
+ - Add support for subscription sets
5
+
3
6
  ## Version 1.3.1 - 6 May 2019
4
7
  - Add #last method to Entries
5
8
 
@@ -206,7 +206,7 @@ http_interactions:
206
206
  uri: https://api.chartmogul.com/v1/import/customers/cus_5417b49e-7ea8-474a-b6bc-5bbb406c15c0/invoices
207
207
  body:
208
208
  encoding: UTF-8
209
- string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id","plan_uuid":"pl_209e4674-1258-4a35-8378-9b15c4086965","service_period_start":"2016-01-01
209
+ string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id","subscription_set_external_id":"test_cus_set_ext_id","plan_uuid":"pl_209e4674-1258-4a35-8378-9b15c4086965","service_period_start":"2016-01-01
210
210
  12:00:00 +0000","service_period_end":"2016-02-01 12:00:00 +0000","amount_in_cents":1000,"cancelled_at":"2016-01-15
211
211
  12:00:00 +0000","prorated":false,"quantity":5,"discount_amount_in_cents":1200,"discount_code":"DISCCODE","tax_amount_in_cents":200,"external_id":"test_cus_li_ext_id"}],"transactions":[{"type":"payment","date":"2016-01-01
212
212
  12:00:00 +0000","result":"successful","external_id":"test_cus_tr_ext_id"}],"external_id":"test_cus_inv_ext_id","due_date":"2016-01-07
@@ -36,7 +36,7 @@ http_interactions:
36
36
  - 'true'
37
37
  body:
38
38
  encoding: UTF-8
39
- string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id","plan_uuid":"pl_209e4674-1258-4a35-8378-9b15c4086965","service_period_start":"2016-01-01
39
+ string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id", "subscription_set_external_id":"test_cus_set_ext_id","plan_uuid":"pl_209e4674-1258-4a35-8378-9b15c4086965","service_period_start":"2016-01-01
40
40
  12:00:00 +0000","service_period_end":"2016-02-01 12:00:00 +0000","amount_in_cents":1000,"cancelled_at":"2016-01-15
41
41
  12:00:00 +0000","prorated":false,"quantity":5,"discount_amount_in_cents":1200,"discount_code":"DISCCODE","tax_amount_in_cents":200,"external_id":"test_cus_li_ext_id"}],"transactions":[{"type":"payment","date":"2016-01-01
42
42
  12:00:00 +0000","result":"successful","external_id":"test_cus_tr_ext_id"}],"external_id":"invoice_eid","due_date":"2016-01-07
@@ -157,7 +157,7 @@ http_interactions:
157
157
  uri: https://api.chartmogul.com/v1/import/customers/cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33/invoices
158
158
  body:
159
159
  encoding: UTF-8
160
- string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id","plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","service_period_start":"2016-01-01
160
+ string: '{"invoices":[{"date":"2016-01-01 12:00:00 +0000","currency":"USD","line_items":[{"type":"subscription","subscription_external_id":"test_cus_sub_ext_id", "subscription_set_external_id":"test_cus_set_ext_id", "plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","service_period_start":"2016-01-01
161
161
  12:00:00 +0000","service_period_end":"2016-02-01 12:00:00 +0000","amount_in_cents":1000}],"external_id":"test_tr_inv_ext_id"}],"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33"}'
162
162
  headers:
163
163
  User-Agent:
@@ -248,7 +248,7 @@ http_interactions:
248
248
  - max-age=15768000
249
249
  body:
250
250
  encoding: UTF-8
251
- string: '{"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","subscriptions":[{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id","cancellation_dates":[],"plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}],"current_page":1,"total_pages":1}'
251
+ string: '{"customer_uuid":"cus_510b1395-4fe8-4d35-ae23-0e61f9a51e33","subscriptions":[{"uuid":"sub_9b3ccf25-4613-4af6-84b3-12026cfa4b7c","external_id":"test_cus_sub_ext_id", "subscription_set_external_id":"test_cus_set_ext_id","cancellation_dates":[],"plan_uuid":"pl_06ea83a9-f8c8-4ddd-a980-9ceffd27f107","data_source_uuid":"ds_55ab11fb-53e6-4468-aa95-bd582f14cac6"}],"current_page":1,"total_pages":1}'
252
252
  http_version:
253
253
  recorded_at: Thu, 23 Jun 2016 20:46:07 GMT
254
254
  - request:
@@ -16,6 +16,7 @@ module ChartMogul
16
16
  writeable_attr :tax_amount_in_cents
17
17
  writeable_attr :transaction_fees_in_cents
18
18
  writeable_attr :external_id
19
+ writeable_attr :subscription_set_external_id
19
20
 
20
21
  readonly_attr :subscription_uuid
21
22
  writeable_attr :invoice_uuid
@@ -5,6 +5,7 @@ module ChartMogul
5
5
 
6
6
  readonly_attr :uuid
7
7
  writeable_attr :external_id
8
+ writeable_attr :subscription_set_external_id
8
9
  readonly_attr :cancellation_dates, default: []
9
10
 
10
11
  readonly_attr :plan_uuid
@@ -1,3 +1,3 @@
1
1
  module ChartMogul
2
- VERSION = '1.3.3'.freeze
2
+ VERSION = '1.4.0'.freeze
3
3
  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: 1.3.3
4
+ version: 1.4.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Langenauer
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-09-03 00:00:00.000000000 Z
11
+ date: 2019-09-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday