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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f4c790f249f6c16e7670f0e7468694a2e907c33c0d9b70bb30f916bb3544f30
4
- data.tar.gz: '08263d09fcfc8c234444a5fbf3d4bf2f6656cdf68dbc6305ba3a1d0a666fdc09'
3
+ metadata.gz: 2993b52db8b3a2a234bb6ae7580d0ca559c1ee518bd1a1f299a0045b304c530c
4
+ data.tar.gz: 2b4ff2290d7a3e422ec01547f68fcb70e3bab778a719def4e568498b09a07728
5
5
  SHA512:
6
- metadata.gz: 1c05012f4ede04f35ab77a2bad3ae683885919c5bc81dd1d214af4f4c88b3f539a97b02124e02b9cfd1ed2ca382fd08e154403b6f693b5ab2db578fd8ad80140
7
- data.tar.gz: 949d77618062b6bbf438535e73ef3e76e65c5795f905682cee522336914ad81fa936ecb57df6809ab5195890c4b23c7f90e0af2ba6493e96efd3695026c8f1ad
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
- SUBSCRIPTION_CONTRACT = <<~GRAPHQL.freeze
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
@@ -29,7 +29,7 @@ module ShopifyOracle
29
29
  shop ||= @shop
30
30
 
31
31
  @querier = ShopifyOracle::Connector::Querier.new(shop:)
32
- @mutater = ShopifyOracle::Connector::Mutater.new(shop:)
32
+ @mutator = ShopifyOracle::Connector::Mutater.new(shop:)
33
33
  @initialized = true
34
34
  end
35
35
 
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.3.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-09 00:00:00.000000000 Z
11
+ date: 2022-08-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: shopify_api