shopify-webhook-schemas 0.2.2 → 0.2.3

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.
Files changed (190) hide show
  1. package/dist/src/infer-schema.d.ts +1 -1
  2. package/dist/src/infer-schema.js +29 -3
  3. package/dist/src/scrape.js +3 -2
  4. package/metadatas/2024-04/app_purchases_one_time/update.json +1 -1
  5. package/metadatas/2024-04/app_subscriptions/approaching_capped_amount.json +1 -1
  6. package/metadatas/2024-04/app_subscriptions/update.json +2 -5
  7. package/metadatas/2024-04/bulk_operations/finish.json +1 -1
  8. package/metadatas/2024-04/checkouts/create.json +17 -7
  9. package/metadatas/2024-04/checkouts/delete.json +1 -2
  10. package/metadatas/2024-04/checkouts/update.json +17 -7
  11. package/metadatas/2024-04/company_contact_roles/assign.json +0 -8
  12. package/metadatas/2024-04/company_contact_roles/revoke.json +0 -8
  13. package/metadatas/2024-04/company_locations/create.json +0 -8
  14. package/metadatas/2024-04/company_locations/delete.json +0 -8
  15. package/metadatas/2024-04/company_locations/update.json +0 -8
  16. package/metadatas/2024-04/customer.tags_added.json +1 -1
  17. package/metadatas/2024-04/customer.tags_removed.json +1 -1
  18. package/metadatas/2024-04/customers/create.json +7 -0
  19. package/metadatas/2024-04/customers/delete.json +2 -0
  20. package/metadatas/2024-04/customers/disable.json +7 -0
  21. package/metadatas/2024-04/customers/enable.json +7 -0
  22. package/metadatas/2024-04/customers/update.json +7 -0
  23. package/metadatas/2024-04/discounts/create.json +2 -2
  24. package/metadatas/2024-04/discounts/delete.json +1 -1
  25. package/metadatas/2024-04/discounts/redeemcode_added.json +1 -1
  26. package/metadatas/2024-04/discounts/redeemcode_removed.json +1 -1
  27. package/metadatas/2024-04/discounts/update.json +2 -2
  28. package/metadatas/2024-04/draft_orders/create.json +37 -26
  29. package/metadatas/2024-04/draft_orders/update.json +36 -25
  30. package/metadatas/2024-04/fulfillment_orders/placed_on_hold.json +2 -28
  31. package/metadatas/2024-04/fulfillments/create.json +24 -71
  32. package/metadatas/2024-04/fulfillments/update.json +24 -71
  33. package/metadatas/2024-04/inventory_items/create.json +1 -2
  34. package/metadatas/2024-04/inventory_items/delete.json +1 -2
  35. package/metadatas/2024-04/inventory_items/update.json +1 -2
  36. package/metadatas/2024-04/inventory_levels/connect.json +7 -1
  37. package/metadatas/2024-04/inventory_levels/update.json +7 -1
  38. package/metadatas/2024-04/markets/create.json +6 -2
  39. package/metadatas/2024-04/markets/update.json +6 -2
  40. package/metadatas/2024-04/order_transactions/create.json +3 -4
  41. package/metadatas/2024-04/orders/cancelled.json +51 -139
  42. package/metadatas/2024-04/orders/create.json +51 -139
  43. package/metadatas/2024-04/orders/edited.json +1 -2
  44. package/metadatas/2024-04/orders/fulfilled.json +51 -139
  45. package/metadatas/2024-04/orders/paid.json +51 -139
  46. package/metadatas/2024-04/orders/partially_fulfilled.json +51 -139
  47. package/metadatas/2024-04/orders/risk_assessment_changed.json +1 -1
  48. package/metadatas/2024-04/orders/updated.json +51 -139
  49. package/metadatas/2024-04/products/create.json +15 -6
  50. package/metadatas/2024-04/products/update.json +15 -6
  51. package/metadatas/2024-04/refunds/create.json +34 -112
  52. package/metadatas/2024-04/returns/approve.json +1 -1
  53. package/metadatas/2024-04/returns/decline.json +0 -4
  54. package/metadatas/2024-04/returns/request.json +1 -1
  55. package/metadatas/2024-04/segments/update.json +1 -1
  56. package/metadatas/2024-04/selling_plan_groups/delete.json +2 -2
  57. package/metadatas/2024-04/selling_plan_groups/update.json +2 -2
  58. package/metadatas/2024-04/subscription_billing_attempts/challenged.json +2 -2
  59. package/metadatas/2024-04/subscription_billing_attempts/failure.json +2 -2
  60. package/metadatas/2024-04/subscription_billing_attempts/success.json +2 -2
  61. package/metadatas/2024-04/subscription_billing_cycle_edits/create.json +1 -1
  62. package/metadatas/2024-04/subscription_billing_cycle_edits/delete.json +1 -1
  63. package/metadatas/2024-04/subscription_billing_cycle_edits/update.json +1 -1
  64. package/metadatas/2024-04/subscription_billing_cycles/skip.json +1 -1
  65. package/metadatas/2024-04/subscription_billing_cycles/unskip.json +1 -1
  66. package/metadatas/2024-04/subscription_contracts/activate.json +4 -4
  67. package/metadatas/2024-04/subscription_contracts/cancel.json +4 -4
  68. package/metadatas/2024-04/subscription_contracts/create.json +4 -4
  69. package/metadatas/2024-04/subscription_contracts/expire.json +4 -4
  70. package/metadatas/2024-04/subscription_contracts/fail.json +4 -4
  71. package/metadatas/2024-04/subscription_contracts/pause.json +4 -4
  72. package/metadatas/2024-04/subscription_contracts/update.json +4 -4
  73. package/metadatas/2024-04/tender_transactions/create.json +1 -1
  74. package/metadatas/2024-04/variants/in_stock.json +7 -1
  75. package/metadatas/2024-04/variants/out_of_stock.json +7 -1
  76. package/package.json +1 -1
  77. package/schemas/2024-04/app_subscriptions/approaching_capped_amount.json +0 -15
  78. package/schemas/2024-04/app_subscriptions/update.json +0 -12
  79. package/schemas/2024-04/carts/create.json +1 -4
  80. package/schemas/2024-04/carts/update.json +1 -4
  81. package/schemas/2024-04/checkouts/create.json +31 -35
  82. package/schemas/2024-04/checkouts/delete.json +0 -10
  83. package/schemas/2024-04/checkouts/update.json +31 -35
  84. package/schemas/2024-04/collections/create.json +0 -20
  85. package/schemas/2024-04/collections/update.json +0 -20
  86. package/schemas/2024-04/company_contact_roles/assign.json +0 -23
  87. package/schemas/2024-04/company_contact_roles/revoke.json +0 -23
  88. package/schemas/2024-04/company_locations/create.json +4 -58
  89. package/schemas/2024-04/company_locations/delete.json +4 -58
  90. package/schemas/2024-04/company_locations/update.json +4 -58
  91. package/schemas/2024-04/customer_payment_methods/create.json +1 -1
  92. package/schemas/2024-04/customer_payment_methods/revoke.json +1 -1
  93. package/schemas/2024-04/customer_payment_methods/update.json +1 -1
  94. package/schemas/2024-04/customers/create.json +38 -86
  95. package/schemas/2024-04/customers/delete.json +16 -78
  96. package/schemas/2024-04/customers/disable.json +38 -86
  97. package/schemas/2024-04/customers/enable.json +38 -86
  98. package/schemas/2024-04/customers/update.json +38 -86
  99. package/schemas/2024-04/customers_email_marketing_consent/update.json +3 -13
  100. package/schemas/2024-04/customers_marketing_consent/update.json +3 -13
  101. package/schemas/2024-04/disputes/create.json +1 -0
  102. package/schemas/2024-04/disputes/update.json +1 -0
  103. package/schemas/2024-04/domains/create.json +2 -4
  104. package/schemas/2024-04/domains/destroy.json +2 -4
  105. package/schemas/2024-04/domains/update.json +2 -4
  106. package/schemas/2024-04/draft_orders/create.json +26 -409
  107. package/schemas/2024-04/draft_orders/update.json +26 -409
  108. package/schemas/2024-04/fulfillment_orders/placed_on_hold.json +0 -80
  109. package/schemas/2024-04/fulfillment_orders/split.json +0 -12
  110. package/schemas/2024-04/fulfillments/create.json +66 -196
  111. package/schemas/2024-04/fulfillments/update.json +66 -196
  112. package/schemas/2024-04/inventory_items/create.json +3 -7
  113. package/schemas/2024-04/inventory_items/update.json +3 -7
  114. package/schemas/2024-04/inventory_levels/connect.json +29 -0
  115. package/schemas/2024-04/inventory_levels/update.json +29 -0
  116. package/schemas/2024-04/markets/create.json +18 -7
  117. package/schemas/2024-04/markets/update.json +18 -7
  118. package/schemas/2024-04/order_transactions/create.json +4 -18
  119. package/schemas/2024-04/orders/cancelled.json +10 -252
  120. package/schemas/2024-04/orders/create.json +10 -252
  121. package/schemas/2024-04/orders/edited.json +2 -13
  122. package/schemas/2024-04/orders/fulfilled.json +10 -252
  123. package/schemas/2024-04/orders/paid.json +10 -252
  124. package/schemas/2024-04/orders/partially_fulfilled.json +10 -252
  125. package/schemas/2024-04/orders/risk_assessment_changed.json +2 -9
  126. package/schemas/2024-04/orders/shopify_protect_eligibility_changed.json +1 -11
  127. package/schemas/2024-04/orders/updated.json +10 -252
  128. package/schemas/2024-04/payment_terms/create.json +1 -4
  129. package/schemas/2024-04/payment_terms/update.json +1 -4
  130. package/schemas/2024-04/products/create.json +73 -173
  131. package/schemas/2024-04/products/update.json +73 -173
  132. package/schemas/2024-04/refunds/create.json +16 -767
  133. package/schemas/2024-04/returns/decline.json +0 -17
  134. package/schemas/2024-04/selling_plan_groups/create.json +10 -66
  135. package/schemas/2024-04/selling_plan_groups/update.json +10 -66
  136. package/schemas/2024-04/shop/update.json +3 -4
  137. package/schemas/2024-04/subscription_billing_attempts/challenged.json +1 -0
  138. package/schemas/2024-04/subscription_billing_attempts/failure.json +1 -0
  139. package/schemas/2024-04/subscription_billing_attempts/success.json +1 -0
  140. package/schemas/2024-04/subscription_contracts/activate.json +2 -8
  141. package/schemas/2024-04/subscription_contracts/cancel.json +2 -8
  142. package/schemas/2024-04/subscription_contracts/create.json +2 -8
  143. package/schemas/2024-04/subscription_contracts/expire.json +2 -8
  144. package/schemas/2024-04/subscription_contracts/fail.json +2 -8
  145. package/schemas/2024-04/subscription_contracts/pause.json +2 -8
  146. package/schemas/2024-04/subscription_contracts/update.json +2 -8
  147. package/schemas/2024-04/tender_transactions/create.json +4 -6
  148. package/schemas/2024-04/themes/create.json +1 -4
  149. package/schemas/2024-04/themes/publish.json +1 -4
  150. package/schemas/2024-04/themes/update.json +1 -4
  151. package/schemas/2024-04/variants/in_stock.json +25 -1
  152. package/schemas/2024-04/variants/out_of_stock.json +25 -1
  153. package/metadatas/2024-04/app/scopes_update.json +0 -23
  154. package/metadatas/2024-04/checkout_and_accounts_configurations/update.json +0 -22
  155. package/metadatas/2024-04/customer.joined_segment.json +0 -18
  156. package/metadatas/2024-04/customer.left_segment.json +0 -18
  157. package/metadatas/2024-04/customer_account_settings/update.json +0 -17
  158. package/metadatas/2024-04/customers/purchasing_summary.json +0 -27
  159. package/metadatas/2024-04/delivery_promise_settings/update.json +0 -19
  160. package/metadatas/2024-04/finance_app_staff_member/delete.json +0 -19
  161. package/metadatas/2024-04/finance_app_staff_member/grant.json +0 -19
  162. package/metadatas/2024-04/finance_app_staff_member/revoke.json +0 -19
  163. package/metadatas/2024-04/finance_app_staff_member/update.json +0 -19
  164. package/metadatas/2024-04/finance_kyc_information/update.json +0 -19
  165. package/metadatas/2024-04/fulfillment_holds/added.json +0 -32
  166. package/metadatas/2024-04/fulfillment_holds/released.json +0 -32
  167. package/metadatas/2024-04/markets_backup_region/update.json +0 -18
  168. package/metadatas/2024-04/metafield_definitions/create.json +0 -47
  169. package/metadatas/2024-04/metafield_definitions/delete.json +0 -19
  170. package/metadatas/2024-04/metafield_definitions/update.json +0 -47
  171. package/metadatas/2024-04/product_feeds/full_sync_finish.json +0 -37
  172. package/schemas/2024-04/app/scopes_update.json +0 -31
  173. package/schemas/2024-04/checkout_and_accounts_configurations/update.json +0 -48
  174. package/schemas/2024-04/customer.joined_segment.json +0 -23
  175. package/schemas/2024-04/customer.left_segment.json +0 -23
  176. package/schemas/2024-04/customer_account_settings/update.json +0 -28
  177. package/schemas/2024-04/customers/purchasing_summary.json +0 -43
  178. package/schemas/2024-04/delivery_promise_settings/update.json +0 -21
  179. package/schemas/2024-04/finance_app_staff_member/delete.json +0 -4
  180. package/schemas/2024-04/finance_app_staff_member/grant.json +0 -4
  181. package/schemas/2024-04/finance_app_staff_member/revoke.json +0 -4
  182. package/schemas/2024-04/finance_app_staff_member/update.json +0 -4
  183. package/schemas/2024-04/finance_kyc_information/update.json +0 -4
  184. package/schemas/2024-04/fulfillment_holds/added.json +0 -63
  185. package/schemas/2024-04/fulfillment_holds/released.json +0 -63
  186. package/schemas/2024-04/markets_backup_region/update.json +0 -17
  187. package/schemas/2024-04/metafield_definitions/create.json +0 -141
  188. package/schemas/2024-04/metafield_definitions/delete.json +0 -21
  189. package/schemas/2024-04/metafield_definitions/update.json +0 -141
  190. package/schemas/2024-04/product_feeds/full_sync_finish.json +0 -97
@@ -111,10 +111,7 @@
111
111
  "type": "string"
112
112
  },
113
113
  "fulfillment_status": {
114
- "type": [
115
- "null",
116
- "string"
117
- ]
114
+ "type": "null"
118
115
  },
119
116
  "gift_card": {
120
117
  "type": "boolean"
@@ -128,48 +125,6 @@
128
125
  "name": {
129
126
  "type": "string"
130
127
  },
131
- "origin_location": {
132
- "properties": {
133
- "address1": {
134
- "type": "string"
135
- },
136
- "address2": {
137
- "type": "string"
138
- },
139
- "city": {
140
- "type": "string"
141
- },
142
- "country_code": {
143
- "type": "string"
144
- },
145
- "id": {
146
- "type": "integer"
147
- },
148
- "name": {
149
- "type": "string"
150
- },
151
- "province_code": {
152
- "type": "string"
153
- },
154
- "zip": {
155
- "type": "string"
156
- }
157
- },
158
- "required": [
159
- "address1",
160
- "address2",
161
- "city",
162
- "country_code",
163
- "id",
164
- "name",
165
- "province_code",
166
- "zip"
167
- ],
168
- "type": "object"
169
- },
170
- "pre_tax_price": {
171
- "type": "string"
172
- },
173
128
  "price": {
174
129
  "type": "string"
175
130
  },
@@ -231,73 +186,8 @@
231
186
  "sku": {
232
187
  "type": "string"
233
188
  },
234
- "tax_code": {
235
- "type": "string"
236
- },
237
189
  "tax_lines": {
238
- "items": {
239
- "properties": {
240
- "channel_liable": {
241
- "type": "boolean"
242
- },
243
- "price": {
244
- "type": "string"
245
- },
246
- "price_set": {
247
- "properties": {
248
- "presentment_money": {
249
- "properties": {
250
- "amount": {
251
- "type": "string"
252
- },
253
- "currency_code": {
254
- "type": "string"
255
- }
256
- },
257
- "required": [
258
- "amount",
259
- "currency_code"
260
- ],
261
- "type": "object"
262
- },
263
- "shop_money": {
264
- "properties": {
265
- "amount": {
266
- "type": "string"
267
- },
268
- "currency_code": {
269
- "type": "string"
270
- }
271
- },
272
- "required": [
273
- "amount",
274
- "currency_code"
275
- ],
276
- "type": "object"
277
- }
278
- },
279
- "required": [
280
- "presentment_money",
281
- "shop_money"
282
- ],
283
- "type": "object"
284
- },
285
- "rate": {
286
- "type": "number"
287
- },
288
- "title": {
289
- "type": "string"
290
- }
291
- },
292
- "required": [
293
- "channel_liable",
294
- "price",
295
- "price_set",
296
- "rate",
297
- "title"
298
- ],
299
- "type": "object"
300
- },
190
+ "items": false,
301
191
  "type": "array"
302
192
  },
303
193
  "taxable": {
@@ -349,28 +239,16 @@
349
239
  "type": "object"
350
240
  },
351
241
  "variant_id": {
352
- "type": [
353
- "integer",
354
- "null"
355
- ]
242
+ "type": "integer"
356
243
  },
357
244
  "variant_inventory_management": {
358
- "type": [
359
- "null",
360
- "string"
361
- ]
245
+ "type": "string"
362
246
  },
363
247
  "variant_title": {
364
- "type": [
365
- "null",
366
- "string"
367
- ]
248
+ "type": "null"
368
249
  },
369
250
  "vendor": {
370
- "type": [
371
- "null",
372
- "string"
373
- ]
251
+ "type": "null"
374
252
  }
375
253
  },
376
254
  "required": [
@@ -408,10 +286,7 @@
408
286
  "type": "integer"
409
287
  },
410
288
  "location_id": {
411
- "type": [
412
- "integer",
413
- "null"
414
- ]
289
+ "type": "null"
415
290
  },
416
291
  "quantity": {
417
292
  "type": "integer"
@@ -420,7 +295,7 @@
420
295
  "type": "string"
421
296
  },
422
297
  "subtotal": {
423
- "type": "number"
298
+ "type": "integer"
424
299
  },
425
300
  "subtotal_set": {
426
301
  "properties": {
@@ -462,7 +337,7 @@
462
337
  "type": "object"
463
338
  },
464
339
  "total_tax": {
465
- "type": "number"
340
+ "type": "integer"
466
341
  },
467
342
  "total_tax_set": {
468
343
  "properties": {
@@ -582,33 +457,18 @@
582
457
  "amount": {
583
458
  "type": "string"
584
459
  },
585
- "amount_rounding": {
586
- "type": [
587
- "null",
588
- "string"
589
- ]
590
- },
591
460
  "authorization": {
592
- "type": [
593
- "null",
594
- "string"
595
- ]
461
+ "type": "null"
596
462
  },
597
463
  "created_at": {
598
464
  "format": "date-time",
599
465
  "type": "string"
600
466
  },
601
467
  "currency": {
602
- "type": [
603
- "null",
604
- "string"
605
- ]
468
+ "type": "null"
606
469
  },
607
470
  "device_id": {
608
- "type": [
609
- "integer",
610
- "null"
611
- ]
471
+ "type": "null"
612
472
  },
613
473
  "error_code": {
614
474
  "type": "null"
@@ -623,10 +483,7 @@
623
483
  "type": "string"
624
484
  },
625
485
  "location_id": {
626
- "type": [
627
- "integer",
628
- "null"
629
- ]
486
+ "type": "null"
630
487
  },
631
488
  "manual_payment_gateway": {
632
489
  "type": "boolean"
@@ -641,619 +498,15 @@
641
498
  "type": "integer"
642
499
  },
643
500
  "parent_id": {
644
- "type": [
645
- "integer",
646
- "null"
647
- ]
648
- },
649
- "payment_details": {
650
- "properties": {
651
- "avs_result_code": {
652
- "type": "string"
653
- },
654
- "buyer_action_info": {
655
- "type": "null"
656
- },
657
- "credit_card_bin": {
658
- "format": "date-time",
659
- "type": "string"
660
- },
661
- "credit_card_company": {
662
- "type": "string"
663
- },
664
- "credit_card_expiration_month": {
665
- "type": "integer"
666
- },
667
- "credit_card_expiration_year": {
668
- "type": "integer"
669
- },
670
- "credit_card_name": {
671
- "type": "string"
672
- },
673
- "credit_card_number": {
674
- "type": "string"
675
- },
676
- "credit_card_wallet": {
677
- "type": "string"
678
- },
679
- "cvv_result_code": {
680
- "type": "string"
681
- },
682
- "payment_method_name": {
683
- "type": "string"
684
- }
685
- },
686
- "required": [
687
- "avs_result_code",
688
- "buyer_action_info",
689
- "credit_card_bin",
690
- "credit_card_company",
691
- "credit_card_expiration_month",
692
- "credit_card_expiration_year",
693
- "credit_card_name",
694
- "credit_card_number",
695
- "credit_card_wallet",
696
- "cvv_result_code",
697
- "payment_method_name"
698
- ],
699
- "type": "object"
501
+ "type": "null"
700
502
  },
701
503
  "payment_id": {
702
504
  "type": "string"
703
505
  },
704
- "payments_refund_attributes": {
705
- "properties": {
706
- "acquirer_reference_number": {
707
- "type": "string"
708
- },
709
- "status": {
710
- "type": "string"
711
- }
712
- },
713
- "required": [
714
- "acquirer_reference_number",
715
- "status"
716
- ],
717
- "type": "object"
718
- },
719
506
  "processed_at": {
720
- "format": "date-time",
721
- "type": [
722
- "null",
723
- "string"
724
- ]
507
+ "type": "null"
725
508
  },
726
509
  "receipt": {
727
- "properties": {
728
- "amount": {
729
- "type": "integer"
730
- },
731
- "balance_transaction": {
732
- "properties": {
733
- "exchange_rate": {
734
- "type": "null"
735
- },
736
- "id": {
737
- "type": "string"
738
- },
739
- "object": {
740
- "type": "string"
741
- }
742
- },
743
- "required": [
744
- "exchange_rate",
745
- "id",
746
- "object"
747
- ],
748
- "type": "object"
749
- },
750
- "charge": {
751
- "properties": {
752
- "amount": {
753
- "type": "integer"
754
- },
755
- "application_fee": {
756
- "type": "string"
757
- },
758
- "balance_transaction": {
759
- "type": "string"
760
- },
761
- "captured": {
762
- "type": "boolean"
763
- },
764
- "created": {
765
- "type": "integer"
766
- },
767
- "currency": {
768
- "type": "string"
769
- },
770
- "failure_code": {
771
- "type": "null"
772
- },
773
- "failure_message": {
774
- "type": "string"
775
- },
776
- "fraud_details": {
777
- "type": "object"
778
- },
779
- "id": {
780
- "type": "string"
781
- },
782
- "livemode": {
783
- "type": "boolean"
784
- },
785
- "metadata": {
786
- "properties": {
787
- "email": {
788
- "type": "string"
789
- },
790
- "manual_entry": {
791
- "type": "string"
792
- },
793
- "order_id": {
794
- "type": "string"
795
- },
796
- "order_transaction_id": {
797
- "type": "string"
798
- },
799
- "payments_charge_id": {
800
- "type": "string"
801
- },
802
- "shop_id": {
803
- "type": "string"
804
- },
805
- "shop_name": {
806
- "type": "string"
807
- },
808
- "shopify_payments_next": {
809
- "type": "string"
810
- }
811
- },
812
- "required": [
813
- "email",
814
- "manual_entry",
815
- "order_id",
816
- "order_transaction_id",
817
- "payments_charge_id",
818
- "shop_id",
819
- "shop_name",
820
- "shopify_payments_next"
821
- ],
822
- "type": "object"
823
- },
824
- "mit_params": {
825
- "properties": {
826
- "network_transaction_id": {
827
- "type": "string"
828
- }
829
- },
830
- "required": [
831
- "network_transaction_id"
832
- ],
833
- "type": "object"
834
- },
835
- "object": {
836
- "type": "string"
837
- },
838
- "outcome": {
839
- "properties": {
840
- "advice_code": {
841
- "type": "null"
842
- },
843
- "network_advice_code": {
844
- "type": "null"
845
- },
846
- "network_decline_code": {
847
- "type": "null"
848
- },
849
- "network_status": {
850
- "type": "string"
851
- },
852
- "reason": {
853
- "type": "string"
854
- },
855
- "risk_level": {
856
- "type": "string"
857
- },
858
- "seller_message": {
859
- "type": "string"
860
- },
861
- "type": {
862
- "type": "string"
863
- }
864
- },
865
- "required": [
866
- "advice_code",
867
- "network_advice_code",
868
- "network_decline_code",
869
- "network_status",
870
- "reason",
871
- "risk_level",
872
- "seller_message",
873
- "type"
874
- ],
875
- "type": "object"
876
- },
877
- "paid": {
878
- "type": "boolean"
879
- },
880
- "payment_intent": {
881
- "type": "string"
882
- },
883
- "payment_method": {
884
- "type": "string"
885
- },
886
- "payment_method_details": {
887
- "properties": {
888
- "card": {
889
- "properties": {
890
- "amount_authorized": {
891
- "type": "integer"
892
- },
893
- "authorization_code": {
894
- "format": "date-time",
895
- "type": "string"
896
- },
897
- "brand": {
898
- "type": "string"
899
- },
900
- "capture_before": {
901
- "type": "integer"
902
- },
903
- "checks": {
904
- "properties": {
905
- "address_line1_check": {
906
- "type": "string"
907
- },
908
- "address_postal_code_check": {
909
- "type": "string"
910
- },
911
- "cvc_check": {
912
- "type": "string"
913
- }
914
- },
915
- "required": [
916
- "address_line1_check",
917
- "address_postal_code_check",
918
- "cvc_check"
919
- ],
920
- "type": "object"
921
- },
922
- "country": {
923
- "type": "string"
924
- },
925
- "description": {
926
- "type": "string"
927
- },
928
- "ds_transaction_id": {
929
- "type": "null"
930
- },
931
- "exp_month": {
932
- "type": "integer"
933
- },
934
- "exp_year": {
935
- "type": "integer"
936
- },
937
- "extended_authorization": {
938
- "properties": {
939
- "status": {
940
- "type": "string"
941
- }
942
- },
943
- "required": [
944
- "status"
945
- ],
946
- "type": "object"
947
- },
948
- "fingerprint": {
949
- "type": "string"
950
- },
951
- "funding": {
952
- "type": "string"
953
- },
954
- "iin": {
955
- "format": "date-time",
956
- "type": "string"
957
- },
958
- "incremental_authorization": {
959
- "properties": {
960
- "status": {
961
- "type": "string"
962
- }
963
- },
964
- "required": [
965
- "status"
966
- ],
967
- "type": "object"
968
- },
969
- "installments": {
970
- "type": "null"
971
- },
972
- "issuer": {
973
- "type": "string"
974
- },
975
- "last4": {
976
- "format": "date-time",
977
- "type": "string"
978
- },
979
- "mandate": {
980
- "type": "null"
981
- },
982
- "moto": {
983
- "type": "boolean"
984
- },
985
- "multicapture": {
986
- "properties": {
987
- "status": {
988
- "type": "string"
989
- }
990
- },
991
- "required": [
992
- "status"
993
- ],
994
- "type": "object"
995
- },
996
- "network": {
997
- "type": "string"
998
- },
999
- "network_token": {
1000
- "properties": {
1001
- "used": {
1002
- "type": "boolean"
1003
- }
1004
- },
1005
- "required": [
1006
- "used"
1007
- ],
1008
- "type": "object"
1009
- },
1010
- "network_transaction_id": {
1011
- "type": "string"
1012
- },
1013
- "overcapture": {
1014
- "properties": {
1015
- "maximum_amount_capturable": {
1016
- "type": "integer"
1017
- },
1018
- "status": {
1019
- "type": "string"
1020
- }
1021
- },
1022
- "required": [
1023
- "maximum_amount_capturable",
1024
- "status"
1025
- ],
1026
- "type": "object"
1027
- },
1028
- "overcapture_supported": {
1029
- "type": "boolean"
1030
- },
1031
- "payment_account_reference": {
1032
- "type": "string"
1033
- },
1034
- "regulated_status": {
1035
- "type": "string"
1036
- },
1037
- "three_d_secure": {
1038
- "properties": {
1039
- "authenticated": {
1040
- "type": "boolean"
1041
- },
1042
- "authentication_flow": {
1043
- "type": "string"
1044
- },
1045
- "electronic_commerce_indicator": {
1046
- "type": "string"
1047
- },
1048
- "exemption_indicator": {
1049
- "type": "string"
1050
- },
1051
- "result": {
1052
- "type": "string"
1053
- },
1054
- "result_reason": {
1055
- "type": "string"
1056
- },
1057
- "succeeded": {
1058
- "type": "boolean"
1059
- },
1060
- "transaction_id": {
1061
- "type": "string"
1062
- },
1063
- "version": {
1064
- "type": "string"
1065
- }
1066
- },
1067
- "required": [
1068
- "authenticated",
1069
- "authentication_flow",
1070
- "electronic_commerce_indicator",
1071
- "exemption_indicator",
1072
- "result",
1073
- "result_reason",
1074
- "succeeded",
1075
- "transaction_id",
1076
- "version"
1077
- ],
1078
- "type": "object"
1079
- },
1080
- "wallet": {
1081
- "properties": {
1082
- "apple_pay": {
1083
- "properties": {
1084
- "type": {
1085
- "type": "string"
1086
- }
1087
- },
1088
- "required": [
1089
- "type"
1090
- ],
1091
- "type": "object"
1092
- },
1093
- "dynamic_last4": {
1094
- "format": "date-time",
1095
- "type": "string"
1096
- },
1097
- "type": {
1098
- "type": "string"
1099
- }
1100
- },
1101
- "required": [
1102
- "apple_pay",
1103
- "dynamic_last4",
1104
- "type"
1105
- ],
1106
- "type": "object"
1107
- }
1108
- },
1109
- "required": [
1110
- "amount_authorized",
1111
- "authorization_code",
1112
- "brand",
1113
- "capture_before",
1114
- "checks",
1115
- "country",
1116
- "description",
1117
- "ds_transaction_id",
1118
- "exp_month",
1119
- "exp_year",
1120
- "extended_authorization",
1121
- "fingerprint",
1122
- "funding",
1123
- "iin",
1124
- "incremental_authorization",
1125
- "installments",
1126
- "issuer",
1127
- "last4",
1128
- "mandate",
1129
- "moto",
1130
- "multicapture",
1131
- "network",
1132
- "network_token",
1133
- "network_transaction_id",
1134
- "overcapture",
1135
- "overcapture_supported",
1136
- "payment_account_reference",
1137
- "regulated_status",
1138
- "three_d_secure",
1139
- "wallet"
1140
- ],
1141
- "type": "object"
1142
- },
1143
- "type": {
1144
- "type": "string"
1145
- }
1146
- },
1147
- "required": [
1148
- "card",
1149
- "type"
1150
- ],
1151
- "type": "object"
1152
- },
1153
- "refunded": {
1154
- "type": "boolean"
1155
- },
1156
- "source": {
1157
- "type": "string"
1158
- },
1159
- "status": {
1160
- "type": "string"
1161
- }
1162
- },
1163
- "required": [
1164
- "amount",
1165
- "application_fee",
1166
- "balance_transaction",
1167
- "captured",
1168
- "created",
1169
- "currency",
1170
- "failure_code",
1171
- "failure_message",
1172
- "fraud_details",
1173
- "id",
1174
- "livemode",
1175
- "metadata",
1176
- "mit_params",
1177
- "object",
1178
- "outcome",
1179
- "paid",
1180
- "payment_intent",
1181
- "payment_method",
1182
- "payment_method_details",
1183
- "refunded",
1184
- "source",
1185
- "status"
1186
- ],
1187
- "type": "object"
1188
- },
1189
- "created": {
1190
- "type": "integer"
1191
- },
1192
- "currency": {
1193
- "type": "string"
1194
- },
1195
- "id": {
1196
- "type": "string"
1197
- },
1198
- "metadata": {
1199
- "properties": {
1200
- "order_transaction_id": {
1201
- "type": "string"
1202
- },
1203
- "payments_refund_id": {
1204
- "type": "string"
1205
- },
1206
- "shopify_payments_next": {
1207
- "type": "string"
1208
- }
1209
- },
1210
- "required": [
1211
- "order_transaction_id",
1212
- "payments_refund_id",
1213
- "shopify_payments_next"
1214
- ],
1215
- "type": "object"
1216
- },
1217
- "mit_params": {
1218
- "type": "object"
1219
- },
1220
- "object": {
1221
- "type": "string"
1222
- },
1223
- "payment_method_details": {
1224
- "properties": {
1225
- "card": {
1226
- "properties": {
1227
- "acquirer_reference_number": {
1228
- "type": "string"
1229
- },
1230
- "acquirer_reference_number_status": {
1231
- "type": "string"
1232
- }
1233
- },
1234
- "required": [
1235
- "acquirer_reference_number",
1236
- "acquirer_reference_number_status"
1237
- ],
1238
- "type": "object"
1239
- },
1240
- "type": {
1241
- "type": "string"
1242
- }
1243
- },
1244
- "required": [
1245
- "card",
1246
- "type"
1247
- ],
1248
- "type": "object"
1249
- },
1250
- "reason": {
1251
- "type": "string"
1252
- },
1253
- "status": {
1254
- "type": "string"
1255
- }
1256
- },
1257
510
  "type": "object"
1258
511
  },
1259
512
  "source_name": {
@@ -1305,16 +558,12 @@
1305
558
  "type": "object"
1306
559
  },
1307
560
  "user_id": {
1308
- "type": [
1309
- "integer",
1310
- "null"
1311
- ]
561
+ "type": "null"
1312
562
  }
1313
563
  },
1314
564
  "required": [
1315
565
  "admin_graphql_api_id",
1316
566
  "amount",
1317
- "amount_rounding",
1318
567
  "authorization",
1319
568
  "created_at",
1320
569
  "currency",