lago-ruby-client 0.22.0.pre.beta → 0.23.0.pre.beta
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
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dd132752862adc36956bf02495d20bcf41792419e181d747a39ecc061a06239b
|
4
|
+
data.tar.gz: 5912a8f2932f5e551d045bc4408add87d7d22c6eade02b1d50fd42ce80b87223
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a3ea8757a95674741092ab95c3925012745f87258a9d3a5392ac21dc0f202b6e556aefdc770c550606980a53bf87d0ffe6d207d9d00df68e1272bd9edac6fb35
|
7
|
+
data.tar.gz: 8d6a45f173887447cc24a1938d2bc1476bec952c56c433dfd8083734a3a1f78f4f985555bc1151038bdc3be39325892918e0028953141963269acf2531739547
|
@@ -12,9 +12,9 @@ module Lago
|
|
12
12
|
'applied_coupon'
|
13
13
|
end
|
14
14
|
|
15
|
-
def destroy(external_customer_id,
|
16
|
-
path = "/api/v1/customers/#{external_customer_id}/
|
17
|
-
response = connection.destroy(path, identifier:
|
15
|
+
def destroy(external_customer_id, applied_coupon_id)
|
16
|
+
path = "/api/v1/customers/#{external_customer_id}/applied_coupons"
|
17
|
+
response = connection.destroy(path, identifier: applied_coupon_id)[root_name]
|
18
18
|
|
19
19
|
JSON.parse(response.to_json, object_class: OpenStruct)
|
20
20
|
end
|
data/lib/lago/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: lago-ruby-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.23.0.pre.beta
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lovro Colic
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-02-
|
11
|
+
date: 2023-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: jwt
|