OrderAddressesModified
v0.0.1

OrderAddressesModified

This event is triggered when an order addresses modification has been started and the operation has been successfully completed.

OrderAddressesModified Schema (json)
{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "title": "OrderAddressesModified",
  "required": ["detail-type", "resources", "detail", "id", "source", "time", "region", "version", "account"],
  "type": "object",
  "x-amazon-events-detail-type": "OrderAddressesModified",
  "x-amazon-events-source": "brink.external.v1",
  "properties": {
    "account": {
      "type": "string"
    },
    "detail": {
      "$ref": "#/definitions/Detail"
    },
    "detail-type": {
      "type": "string"
    },
    "id": {
      "type": "string"
    },
    "region": {
      "type": "string"
    },
    "resources": {
      "items": {
        "type": "string"
      },
      "type": "array"
    },
    "source": {
      "type": "string"
    },
    "time": {
      "format": "date-time",
      "type": "string"
    },
    "version": {
      "type": "string"
    }
  },
  "definitions": {
    "Detail": {
      "properties": {
        "data": {
          "$ref": "#/definitions/Data"
        },
        "metadata": {
          "$ref": "#/definitions/Metadata"
        }
      },
      "required": ["metadata", "data"],
      "type": "object"
    },
    "Metadata": {
      "type": "object",
      "required": ["awsRequestId"],
      "properties": {
        "awsRequestId": {
          "type": "string"
        }
      }
    },
    "Data": {
      "$ref": "#/definitions/OrderAddressesModified"
    },
    "OrderAddressesModified": {
      "type": "object",
      "required": [
        "id",
        "orderId",
        "orderReference",
        "paymentProvider",
        "addresses",
        "created",
        "updated",
        "completed",
        "restarts",
        "revision"
      ],
      "properties": {
        "id": {
          "type": "string",
          "description": "The modification id"
        },
        "orderId": {
          "type": "string",
          "description": "The order id"
        },
        "orderReference": {
          "type": "string",
          "description": "The order short reference"
        },
        "paymentProvider": {
          "$ref": "#/definitions/Provider"
        },
        "shippingProvider": {
          "$ref": "#/definitions/Provider"
        },
        "giftCardProvider": {
          "$ref": "#/definitions/Provider"
        },
        "giftCardProductProvider": {
          "$ref": "#/definitions/Provider"
        },
        "voucherProvider": {
          "$ref": "#/definitions/Provider"
        },
        "promotionProvider": {
          "$ref": "#/definitions/Provider"
        },
        "bonusProvider": {
          "$ref": "#/definitions/Provider"
        },
        "addresses": {
          "$ref": "#/definitions/OrderAddressesModification"
        },
        "reason": {
          "$ref": "#/definitions/Reason"
        },
        "created": {
          "type": "string",
          "format": "date-time",
          "description": "Created date for the modification"
        },
        "updated": {
          "type": "string",
          "format": "date-time",
          "description": "Updated date for the modification"
        },
        "started": {
          "type": "string",
          "format": "date-time",
          "description": "Started date for the modification"
        },
        "completed": {
          "type": "string",
          "format": "date-time",
          "description": "Completed date for the modification"
        },
        "failed": {
          "type": "string",
          "format": "date-time",
          "description": "Failed date for the modification"
        },
        "restarted": {
          "type": "string",
          "format": "date-time",
          "description": "Restarted date for the modification"
        },
        "restarts": {
          "description": "The number of restarts",
          "type": "integer"
        },
        "revision": {
          "description": "The revision number of the modification",
          "type": "integer"
        }
      }
    },
    "Provider": {
      "type": "object",
      "required": ["providerId", "providerName"],
      "properties": {
        "providerId": {
          "type": "string",
          "description": "The id of the provider"
        },
        "providerName": {
          "type": "string",
          "description": "The name of the provider"
        }
      }
    },
    "Reason": {
      "type": "object",
      "properties": {
        "code": {
          "type": "string",
          "description": "Optional code for the reason, useful for BI tracking"
        },
        "cause": {
          "type": "string",
          "description": "Optional human readable cause for the reason"
        }
      }
    },
    "ModificationType": {
      "title": "ModificationType",
      "type": "string",
      "enum": ["UPDATE"]
    },
    "OrderAddressesModification": {
      "type": "object",
      "required": ["modificationType", "data"],
      "properties": {
        "modificationType": {
          "$ref": "#/definitions/ModificationType"
        },
        "data": {
          "oneOf": [
            {
              "$ref": "#/definitions/OrderAddressesModificationUpdate"
            }
          ]
        }
      },
      "additionalProperties": false
    },
    "OrderAddressesModificationUpdate": {
      "type": "object",
      "minProperties": 1,
      "properties": {
        "billingAddress": {
          "$ref": "#/definitions/OrderAddressesModificationUpdateAddress"
        },
        "shippingAddress": {
          "$ref": "#/definitions/OrderAddressesModificationUpdateAddress"
        }
      },
      "additionalProperties": false
    },
    "OrderAddressesModificationUpdateAddress": {
      "type": "object",
      "minProperties": 1,
      "properties": {
        "country": {
          "$ref": "#/definitions/CountryCode"
        },
        "stateOrProvince": {
          "type": "string"
        },
        "streetAddress": {
          "type": "string"
        },
        "city": {
          "type": "string"
        },
        "givenName": {
          "type": "string"
        },
        "familyName": {
          "type": "string"
        },
        "email": {
          "type": "string"
        },
        "telephoneNumber": {
          "type": "string"
        },
        "postalCode": {
          "type": "string"
        },
        "streetAddress2": {
          "type": "string"
        },
        "pcc": {
          "type": "string"
        }
      },
      "additionalProperties": false
    },
    "CountryCode": {
      "title": "CountryCode",
      "maxLength": 2,
      "minLength": 2,
      "pattern": "^[A-Z]{2}$",
      "type": "string",
      "description": "ISO 3166-1 alpha-2 country code"
    }
  }
}
Last updated on 2025/7/17