When customer updated on Haravan

Suspend workflow execution until customer is updated on Haravan

Sự kiện kích hoạt:

Tên: CustomerUpdatedOnHaravanTrigger

Dữ liệu có sẵn:

Variables.ConnectorId: Mã kết nối trên Bluecore

Variables.OrgId: Mã cửa hàng trên Haravan

Variables.CustomerId: Mã khách hàng trên Haravan

Variables.Customer:

{
  "accepts_marketing": false,
  "addresses": [
    {
      "address1": "184 Hoa Hung",
      "address2": null,
      "city": "TPHCM",
      "company": null,
      "country": "Vietnam",
      "first_name": "Tran Minh",
      "id": 1058135354,
      "last_name": "Hoang",
      "phone": null,
      "province": "Hồ Chí Minh",
      "zip": "70000",
      "name": "Tran Minh Hoang",
      "province_code": "HC",
      "country_code": "vn",
      "default": true,
      "district": "Quận 11",
      "district_code": "HC476",
      "ward": "Phường 15",
      "ward_code": "27208"
    }
  ],
  "created_at": "2020-10-22T03:37:03.796Z",
  "default_address": {
    "address1": "184 Hoa Hung",
    "address2": null,
    "city": "TPHCM",
    "company": null,
    "country": "Vietnam",
    "first_name": "Tran Minh",
    "id": 1058135354,
    "last_name": "Hoang",
    "phone": null,
    "province": "Hồ Chí Minh",
    "zip": "70000",
    "name": "Tran Minh Hoang",
    "province_code": "HC",
    "country_code": "vn",
    "default": true,
    "district": "Quận 11",
    "district_code": "HC476",
    "ward": "Phường 15",
    "ward_code": "27208"
  },
  "email": "hoangtm@bluecore.vn", // Updated email here
  "phone": null,
  "first_name": "Tran Minh",
  "id": 1037889951,
  "multipass_identifier": null,
  "last_name": "Hoang",
  "last_order_id": 1146065300,
  "last_order_name": "#100027",
  "note": null,
  "orders_count": 28,
  "state": "Disabled",
  "tags": null,
  "total_spent": 261380000,
  "total_paid": 0,
  "updated_at": "2023-08-12T00:00:00Z", // Updated date here
  "verified_email": false,
  "group_name": null,
  "birthday": null,
  "gender": null,
  "last_order_date": "2020-10-23T07:37:04Z"
}