shopify_oracle 0.3.0 → 0.5.1
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/fragments.rb +58 -2
- data/lib/shopify_oracle.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: 2993b52db8b3a2a234bb6ae7580d0ca559c1ee518bd1a1f299a0045b304c530c
|
4
|
+
data.tar.gz: 2b4ff2290d7a3e422ec01547f68fcb70e3bab778a719def4e568498b09a07728
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3c99b176bb0de5605aa339a0ff3692c8e2ca85ddf58dd06667a9230c802fd3a225543e94e413bc64847ae9e969f268bc99f3caef48f4954ecac2ed60fbdf6198
|
7
|
+
data.tar.gz: 8dbd4e8933e8ad0f465acce49af32b6c96b82fc970acdbd1d85d3aa76719520db7a720498c11e43ea8ce0912ae3513dbb2d6ec47f9361fd6edc0f138f5a77efe
|
@@ -73,6 +73,13 @@ module ShopifyOracle
|
|
73
73
|
options
|
74
74
|
position
|
75
75
|
productCount
|
76
|
+
products(first: $first) {
|
77
|
+
edges {
|
78
|
+
node {
|
79
|
+
id
|
80
|
+
}
|
81
|
+
}
|
82
|
+
}
|
76
83
|
productVariantCount
|
77
84
|
productVariants(first: $first) {
|
78
85
|
edges {
|
@@ -231,11 +238,53 @@ module ShopifyOracle
|
|
231
238
|
}
|
232
239
|
GRAPHQL
|
233
240
|
|
234
|
-
|
241
|
+
ADDRESS = <<~GRAPHQL
|
242
|
+
fragment Address on SubscriptionMailingAddress {
|
243
|
+
address1
|
244
|
+
address2
|
245
|
+
city
|
246
|
+
company
|
247
|
+
country
|
248
|
+
countryCode
|
249
|
+
firstName
|
250
|
+
lastName
|
251
|
+
name
|
252
|
+
phone
|
253
|
+
province
|
254
|
+
provinceCode
|
255
|
+
zip
|
256
|
+
}
|
257
|
+
GRAPHQL
|
258
|
+
|
259
|
+
SHIPPING_OPTION = <<~GRAPHQL
|
260
|
+
fragment ShippingOption on SubscriptionDeliveryMethodShippingOption {
|
261
|
+
code
|
262
|
+
description
|
263
|
+
presentmentTitle
|
264
|
+
title
|
265
|
+
}
|
266
|
+
GRAPHQL
|
267
|
+
|
268
|
+
DELIVERY_METHOD = <<~GRAPHQL
|
269
|
+
#{ADDRESS}
|
270
|
+
#{SHIPPING_OPTION}
|
271
|
+
|
272
|
+
fragment DeliveryMethod on SubscriptionDeliveryMethodShipping {
|
273
|
+
address {
|
274
|
+
...Address
|
275
|
+
}
|
276
|
+
shippingOption {
|
277
|
+
...ShippingOption
|
278
|
+
}
|
279
|
+
}
|
280
|
+
GRAPHQL
|
281
|
+
|
282
|
+
SUBSCRIPTION_CONTRACT = <<~GRAPHQL
|
235
283
|
#{MONEY}
|
236
284
|
#{BILLING_POLICY}
|
237
285
|
#{DELIVERY_POLICY}
|
238
286
|
#{CUSTOMER}
|
287
|
+
#{DELIVERY_METHOD}
|
239
288
|
|
240
289
|
fragment SubscriptionContract on SubscriptionContract {
|
241
290
|
id
|
@@ -266,7 +315,14 @@ module ShopifyOracle
|
|
266
315
|
customer {
|
267
316
|
...Customer
|
268
317
|
}
|
269
|
-
deliveryMethod
|
318
|
+
deliveryMethod {
|
319
|
+
... on SubscriptionDeliveryMethodShipping {
|
320
|
+
...DeliveryMethod
|
321
|
+
}
|
322
|
+
}
|
323
|
+
originOrder {
|
324
|
+
id
|
325
|
+
}
|
270
326
|
}
|
271
327
|
GRAPHQL
|
272
328
|
end
|
data/lib/shopify_oracle.rb
CHANGED
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.5.1
|
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-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: shopify_api
|