# history

source:
  beyondShopifyOrderName = "#BS01245123"
  lensOnlyShopifyOrderName = "#BS03967013"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS01245123"
  lensOnlyShopifyOrderName = "#BS03967013"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "x1i9oYtNYXatEGbkmPpuVzKyO3k"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "x1i9oYtNYXatEGbkmPpuVzKyO3k"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  beyondShopifyOrderName = "#BS03752087"
  lensOnlyShopifyOrderName = "#BS03966453"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS03752087"
  lensOnlyShopifyOrderName = "#BS03966453"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "sOx-fNPyZNLjTfyW"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "sOx-fNPyZNLjTfyW"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  # login
  import imp
  import api
  imp.reload(api)
  from api import BigApi

  BigApi.init(".admin.env")
  BigApi.adminLogin()

source_raw:
  # login
  import imp
  import api
  imp.reload(api)
  from api import BigApi

  BigApi.init(".admin.env")
  BigApi.adminLogin()


source:
  # login
  # import imp
  import api
  # imp.reload(api)
  from api import BigApi

  BigApi.init(".admin.env")
  BigApi.adminLogin()

source_raw:
  # login
  # import imp
  import api
  # imp.reload(api)
  from api import BigApi

  BigApi.init(".admin.env")
  BigApi.adminLogin()


source:
  # change priority for given Job ID
  jobId = 'PUzzWuGmB0O3UY6c'
  newPriority = "75"
  data = BigApi.adminPut(f"/admin/fabricator/job/{jobId}", {"action": "AdminSetPriority", "priority": newPriority})

  data

source_raw:
  # change priority for given Job ID
  jobId = 'PUzzWuGmB0O3UY6c'
  newPriority = "75"
  data = BigApi.adminPut(f"/admin/fabricator/job/{jobId}", {"action": "AdminSetPriority", "priority": newPriority})

  data


source:
  beyondShopifyOrderName = "#BS02937062"
  lensOnlyShopifyOrderName = "#BS03961973"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS02937062"
  lensOnlyShopifyOrderName = "#BS03961973"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "ZB9MH-csiht1LVeCf3CkY1F0gso"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "ZB9MH-csiht1LVeCf3CkY1F0gso"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  beyondShopifyOrderName = "#BS03751217"
  lensOnlyShopifyOrderName = "#BS03959773"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS03751217"
  lensOnlyShopifyOrderName = "#BS03959773"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "0xV28DoXgdS-VDYl"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "0xV28DoXgdS-VDYl"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  beyondShopifyOrderName = "#BS03978853"
  lensOnlyShopifyOrderName = "#BS03990713"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS03978853"
  lensOnlyShopifyOrderName = "#BS03990713"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "Hb7iehHd3_zq0evg"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "Hb7iehHd3_zq0evg"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  beyondShopifyOrderName = "#BS03971563"
  lensOnlyShopifyOrderName = "#BS03996543"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })

source_raw:
  beyondShopifyOrderName = "#BS03971563"
  lensOnlyShopifyOrderName = "#BS03996543"

  data = BigApi.adminPost("/admin/shop/shopify_orders/pair", {
      "beyondShopifyOrderName": beyondShopifyOrderName, 
      "lensOnlyShopifyOrderName": lensOnlyShopifyOrderName
  })


source:
  bigOrderId = "gY4Zpcxvqf_mW7W-"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data

source_raw:
  bigOrderId = "gY4Zpcxvqf_mW7W-"

  data = BigApi.adminGet(f"/admin/shop/order/{bigOrderId}/refresh");
  data


source:
  # find cushion inventory index for given job ID
  import hashlib

  jobId = 'LrOgnxhAzr7ZIGmu'

  def hash_to_three_digits_md5(input_string):
      hash_object = hashlib.md5(input_string.encode())
      return (int(hash_object.hexdigest(), 16) % 1000)/10

  hash_to_three_digits_md5(jobId)

source_raw:
  # find cushion inventory index for given job ID
  import hashlib

  jobId = 'LrOgnxhAzr7ZIGmu'

  def hash_to_three_digits_md5(input_string):
      hash_object = hashlib.md5(input_string.encode())
      return (int(hash_object.hexdigest(), 16) % 1000)/10

  hash_to_three_digits_md5(jobId)


