shopify_oracle 0.4.0 → 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 35ab3941be194ae7c93b03eb2a58c0847c96622ca991beeccf50930353b98337
4
- data.tar.gz: d36f14367ddc8be222c267cc841f739f4f4b6b8cae30bd60a2857e23ef4735ff
3
+ metadata.gz: 6358f75aacaa0791a36916ced984495ed7915a4f478f4d3e79c7430055fa32ac
4
+ data.tar.gz: 550532875258cc60683bb84b93111553127ce88e8c18444695327443b6da1433
5
5
  SHA512:
6
- metadata.gz: 3e5e6d972b466b2965fa23f9d1371617cddcf3075274b18d02c8c541a63de47251685e63ee37a31001f9fe9db24ee4ae79e075a336bb5f97b2e83248371d2b4a
7
- data.tar.gz: 736a06b2033f891778c87a90c6bb4ee2acc08a77490b879a7f0e1dd8aa84a5e5555374b3be384cb900cf203f76e099b73ec87b4562490231229dc0b0bc1a2809
6
+ metadata.gz: b965f4a3eb4cb32a06ef80c1177fdd0807442bda03ca918cbd769590a515025ba2c59073b8717c86b7364e3b17b69e25acd1ba698ad2e08b369fdf1ae934ef21
7
+ data.tar.gz: 68095adf5aa7f6deb0cb078b1f78ee0e41d91e48dda3611454612ca39029c6ff90287d36316d1362506f3801d434987f24a2347de09c9be9a78a1b6c50ae4364
@@ -238,11 +238,53 @@ module ShopifyOracle
238
238
  }
239
239
  GRAPHQL
240
240
 
241
- 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
242
283
  #{MONEY}
243
284
  #{BILLING_POLICY}
244
285
  #{DELIVERY_POLICY}
245
286
  #{CUSTOMER}
287
+ #{DELIVERY_METHOD}
246
288
 
247
289
  fragment SubscriptionContract on SubscriptionContract {
248
290
  id
@@ -273,7 +315,11 @@ module ShopifyOracle
273
315
  customer {
274
316
  ...Customer
275
317
  }
276
- deliveryMethod
318
+ deliveryMethod {
319
+ ... on SubscriptionDeliveryMethodShipping {
320
+ ...DeliveryMethod
321
+ }
322
+ }
277
323
  }
278
324
  GRAPHQL
279
325
  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.0
4
+ version: 0.5.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-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