You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
default=None, alias="eventType", description="The type of the event."
45
+
)
46
+
status: Optional[
47
+
Union[
48
+
Literal[
49
+
"SUCCEEDED",
50
+
"FAILED",
51
+
"IN_REVIEW",
52
+
"BLOCKED",
53
+
"COMPLETED",
54
+
"REJECTED",
55
+
"EXPIRED",
56
+
],
57
+
StrictStr,
58
+
]
59
+
] =Field(
60
+
default=None,
61
+
description="The status of the event or the state transition it represents.",
62
+
)
29
63
failure_code: Optional[
30
64
Union[
31
65
Literal[
@@ -47,4 +81,13 @@ class NumberSinchEvent(SinchEvent):
47
81
],
48
82
StrictStr,
49
83
]
50
-
] =Field(default=None, alias="failureCode")
84
+
] =Field(
85
+
default=None,
86
+
alias="failureCode",
87
+
description="If the status is FAILED, a failure code will be provided. For numbers provisioning to SMS platform, there won't be any extra `failureCode`, as the result is binary. For campaign provisioning-related failures, refer to the list for the possible values.",
description="If the status is FAILED, certain processes (eg. number to campaign provisioning) will have an internalFailureCode in the payload. The details of these codes can be found in our dedicated [Provisioning errors](https://developers.sinch.com/docs/numbers/api-reference/error-codes/provisioning-errors) documentation.",
0 commit comments