elasticfin 0.1.1 → 0.1.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
  SHA256:
3
- metadata.gz: fa62ade8d1ea1c964a0b8f9a46e6cae7502e17871fbfc08e5fae24b2bd984458
4
- data.tar.gz: bf8a4cb710510e55c29b1872f66c20b8c089992d9178e77eef3eaad258f13e66
3
+ metadata.gz: b7ae623a3e2be66ba717462a42e6c20d7234fd26ad40d6bc57f01371260ce1e1
4
+ data.tar.gz: e36d8a4452b4050026930d429288b974bfcb917932e9540a196c8ac5e7276452
5
5
  SHA512:
6
- metadata.gz: 47926b533b42ef70a7c28f7d491eb95624b088c674d9e5411f6eb05a669538ba524e1500ce11a44e993f5562d269a0e8dcec9c9ca1d4313b26f11e99bbeeb0a6
7
- data.tar.gz: edf02101e4f8624d7ec47d50c934a96777194733c746001c7f6d42d66909f341f968a155e019677f4d72434d804052e522eb008687bc8e5e7177495d118a6695
6
+ metadata.gz: e7dee0a2344cbf4a3acd7e6e93fe605d1b8ab58afb9776a2836b3bc3a34b72d75e852056aa5174f282eb3611e4a2e1115bc5bd3909fd45728cd09d2ed334c291
7
+ data.tar.gz: 3a749e9147315dd2ed6043519f71a44e46e1bb295c7b65106fdf2661d67c237752a482c51df30d7241569ffbfe89e96f312029304fc77f9c0b680edd2a0170d9
data/README.md CHANGED
@@ -48,3 +48,13 @@ url = Elasticfin.billing.change_plan_url(team_id, price_id, return_url)
48
48
  provider = Elasticfin.customer.provider(team_id)
49
49
  interval = Elasticfin.customer.interval(team_id)
50
50
  ```
51
+
52
+ ### Import customers
53
+
54
+ ```ruby
55
+ result = Elasticfin.customer.import([
56
+ { external_id: "cust_1", email: "user1@example.com" },
57
+ { external_id: "cust_2", email: "user2@example.com" }
58
+ ])
59
+ # Returns: { imported_count: 2, total_count: 2, errors: [] }
60
+ ```
@@ -27,6 +27,10 @@ module Elasticfin
27
27
  rescue
28
28
  nil
29
29
  end
30
+
31
+ def import(customers)
32
+ @client.post("/import/customers", { customers: customers })
33
+ end
30
34
  end
31
35
  end
32
36
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Elasticfin
4
- VERSION = "0.1.1"
4
+ VERSION = "0.1.3"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticfin
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - elasticfin