elasticfin 0.1.2 → 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: 47e2bdfeec608726b7114cc2ea1c3ba64e5fbb7adcb44ad543fdb960f6aba3b0
4
- data.tar.gz: f6ea25390e080a3b8425cf73b8bd819d222165c7b052954758528f4ed0e9a599
3
+ metadata.gz: b7ae623a3e2be66ba717462a42e6c20d7234fd26ad40d6bc57f01371260ce1e1
4
+ data.tar.gz: e36d8a4452b4050026930d429288b974bfcb917932e9540a196c8ac5e7276452
5
5
  SHA512:
6
- metadata.gz: 499c68185199f8d4a38c25eae923536919683f2edd9d52f45686531fbe82bbcc3dbbc7adf962fc061c749e23dfa5c44bebf5960d7a059a2d7dd65b8e4b9f5768
7
- data.tar.gz: 8cadca99e723dc753ac2eb15cf26c7628062088fcd3f1a8607b6bf563e96e82457a1d8966458ccbdf5ec5530636e09be00efe65315f437fa7b9657bcec99dd72
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
+ ```
@@ -29,7 +29,7 @@ module Elasticfin
29
29
  end
30
30
 
31
31
  def import(customers)
32
- @client.post("/api/import/customers", { customers: customers })
32
+ @client.post("/import/customers", { customers: customers })
33
33
  end
34
34
  end
35
35
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Elasticfin
4
- VERSION = "0.1.2"
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.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - elasticfin