bunny_app 1.22.0 → 1.24.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +1 -1
- data/lib/bunny_app/subscription.rb +17 -12
- data/lib/bunny_app/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ff90fdfad4c4f392712b064e24008969d06ccd094ab0ec08c7af632fae260c6d
|
4
|
+
data.tar.gz: ad0a4ca25bf828a86aaedfa91eb2f56a4fbd7bedebaf71e250e623e37f98509a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3ac116e866190940b1e6287ee30107420a04191c574f54e118995fa628f5e4eda64a1f76658053051ed96e7dda790657f3ba2d05c57240e11e7eb717532b3044
|
7
|
+
data.tar.gz: da749c01c6f07a77f31a3d486353681f8226032dd36988f46f026c5e5995f46aa9f103a037170891d3d103f9dace6cd8990902e7d57cd09088192fdf083f7f82
|
data/README.md
CHANGED
@@ -3,24 +3,28 @@ module BunnyApp
|
|
3
3
|
@subscription_create_mutation = <<-'GRAPHQL'
|
4
4
|
mutation subscriptionCreate ($attributes: SubscriptionAttributes!) {
|
5
5
|
subscriptionCreate (attributes: $attributes) {
|
6
|
-
errors
|
7
6
|
subscription {
|
8
7
|
id
|
9
8
|
account {
|
9
|
+
id
|
10
|
+
name
|
11
|
+
contacts {
|
10
12
|
id
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
firstName
|
15
|
-
lastName
|
16
|
-
}
|
13
|
+
firstName
|
14
|
+
lastName
|
15
|
+
}
|
17
16
|
}
|
18
17
|
trialStartDate
|
19
18
|
trialEndDate
|
20
19
|
startDate
|
21
20
|
endDate
|
22
21
|
state
|
23
|
-
|
22
|
+
plan {
|
23
|
+
code
|
24
|
+
name
|
25
|
+
}
|
26
|
+
priceList {
|
27
|
+
code
|
24
28
|
name
|
25
29
|
}
|
26
30
|
tenant {
|
@@ -29,21 +33,22 @@ module BunnyApp
|
|
29
33
|
name
|
30
34
|
}
|
31
35
|
}
|
36
|
+
errors
|
32
37
|
}
|
33
|
-
|
38
|
+
}
|
34
39
|
GRAPHQL
|
35
40
|
|
36
41
|
# rubocop:disable Metrics/PerceivedComplexity, Metrics/CyclomaticComplexity
|
37
|
-
def self.create(
|
42
|
+
def self.create(price_list_code:, options: {})
|
38
43
|
variables = {
|
39
44
|
attributes: {
|
40
|
-
|
45
|
+
priceListCode: price_list_code,
|
41
46
|
trial: options[:trial] || false
|
42
47
|
}
|
43
48
|
}
|
44
49
|
|
45
50
|
if options[:account_id]
|
46
|
-
variables[:attributes][:
|
51
|
+
variables[:attributes][:accountId] = options[:account_id]
|
47
52
|
else
|
48
53
|
variables[:attributes][:account] = {
|
49
54
|
name: options[:account_name]&.to_s,
|
data/lib/bunny_app/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: bunny_app
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.24.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Bunny
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
12
|
+
date: 2023-01-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: httparty
|