shopify_oracle 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/shopify_oracle/accessor/base.rb +2 -2
- data/lib/shopify_oracle/accessor/customer.rb +1 -1
- data/lib/shopify_oracle/accessor/selling_plan_group.rb +1 -1
- data/lib/shopify_oracle/accessor/subscription_contract.rb +3 -4
- data/lib/shopify_oracle/accessor/subscription_draft.rb +1 -1
- data/lib/shopify_oracle/queries.rb +1 -1
- metadata +20 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b854be54bd921640d2e467ea55719ff4d20d5129e4555fdab04a165375d4a409
|
4
|
+
data.tar.gz: 105ac42c35ec7ad9cc9ea0584f798db231e6023d3015bad526bf9ee007c95e46
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 40c19dafa2dcf2fe3c670e6daf8c7546201019b39d1b7ccfa78ce92594f207b7249bffbea22be15dc87cae9b177354b790c8d42dc72a59a45009d30c326ea225
|
7
|
+
data.tar.gz: a2b31cdcbce6c79aa77c001499c13b134bacff360b0f389eaba32b4593155bca425b3816dcc00e1046fa04bb54a071ce1ce34aa1d04632f666217e71d4c05511
|
@@ -27,12 +27,12 @@ module ShopifyOracle
|
|
27
27
|
|
28
28
|
@gid = id.is_a?(Integer) ? "gid://shopify/#{class_name}/#{id}" : id
|
29
29
|
|
30
|
-
object = self.class.find(id: @gid
|
30
|
+
object = self.class.find(id: @gid).body['data'][object_class_name]
|
31
31
|
@object = JSON.parse(object.to_json, object_class:)
|
32
32
|
end
|
33
33
|
|
34
34
|
def reload
|
35
|
-
object = self.class.find(id: @gid
|
35
|
+
object = self.class.find(id: @gid).body['data'][object_class]
|
36
36
|
@object = JSON.parse(object.to_json, object_class:)
|
37
37
|
end
|
38
38
|
end
|
@@ -8,8 +8,7 @@ module ShopifyOracle
|
|
8
8
|
class << self
|
9
9
|
def create_v2(
|
10
10
|
customer_id:,
|
11
|
-
customerPaymentMethodId
|
12
|
-
oracle: nil
|
11
|
+
customerPaymentMethodId:
|
13
12
|
)
|
14
13
|
customerId = customer_id.is_a?(Integer) ? "gid://shopify/Customer/#{customer_id}" : customer_id
|
15
14
|
|
@@ -22,7 +21,7 @@ module ShopifyOracle
|
|
22
21
|
|
23
22
|
# rubocop:disable Metrics/MethodLength
|
24
23
|
def create(
|
25
|
-
customer:,
|
24
|
+
customer:,
|
26
25
|
interval: 'WEEK',
|
27
26
|
intervalCount: 6,
|
28
27
|
maxCycles: 10,
|
@@ -89,7 +88,7 @@ module ShopifyOracle
|
|
89
88
|
|
90
89
|
attr_reader :contract
|
91
90
|
|
92
|
-
def initialize(id
|
91
|
+
def initialize(id:)
|
93
92
|
super
|
94
93
|
@contract = @object
|
95
94
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shopify_oracle
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yari Labs
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-08-
|
11
|
+
date: 2022-08-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shopify_api
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '10'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '1.33'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.33'
|
27
41
|
description: A simple gem to facilitate interacting with the Shopify GraphQL API
|
28
42
|
email: dev@yarilabs.com
|
29
43
|
executables: []
|
@@ -45,16 +59,17 @@ files:
|
|
45
59
|
homepage: https://rubygems.org/gems/shopify_oracle
|
46
60
|
licenses:
|
47
61
|
- MIT
|
48
|
-
metadata:
|
62
|
+
metadata:
|
63
|
+
rubygems_mfa_required: 'false'
|
49
64
|
post_install_message:
|
50
65
|
rdoc_options: []
|
51
66
|
require_paths:
|
52
67
|
- lib
|
53
68
|
required_ruby_version: !ruby/object:Gem::Requirement
|
54
69
|
requirements:
|
55
|
-
- - "
|
70
|
+
- - "~>"
|
56
71
|
- !ruby/object:Gem::Version
|
57
|
-
version:
|
72
|
+
version: 3.1.0
|
58
73
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
74
|
requirements:
|
60
75
|
- - ">="
|