|
27 | 27 | from bandwidth.models.message_type_enum import MessageTypeEnum |
28 | 28 | from bandwidth.models.messages_list import MessagesList |
29 | 29 | from bandwidth.models.product_type_enum import ProductTypeEnum |
| 30 | +from bandwidth.models.product_type_enum import ProductTypeEnum |
30 | 31 |
|
31 | 32 | from bandwidth.api_client import ApiClient, RequestSerialized |
32 | 33 | from bandwidth.api_response import ApiResponse |
@@ -384,6 +385,8 @@ def list_messages( |
384 | 385 | bw_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the Bandwidth network.")] = None, |
385 | 386 | product: Annotated[Optional[ProductTypeEnum], Field(description="Messaging product associated with the message.")] = None, |
386 | 387 | location: Annotated[Optional[StrictStr], Field(description="Location Id associated with the message.")] = None, |
| 388 | + carrier_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
| 389 | + from_carrier_latency: Annotated[Optional[StrictInt], Field(description="The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
387 | 390 | calling_number_country_a3: Annotated[Optional[StrictStr], Field(description="Calling number country in A3 format.")] = None, |
388 | 391 | called_number_country_a3: Annotated[Optional[StrictStr], Field(description="Called number country in A3 format.")] = None, |
389 | 392 | from_segment_count: Annotated[Optional[StrictInt], Field(description="Segment count (start range).")] = None, |
@@ -443,6 +446,10 @@ def list_messages( |
443 | 446 | :type product: ProductTypeEnum |
444 | 447 | :param location: Location Id associated with the message. |
445 | 448 | :type location: str |
| 449 | + :param carrier_queued: A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 450 | + :type carrier_queued: bool |
| 451 | + :param from_carrier_latency: The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 452 | + :type from_carrier_latency: int |
446 | 453 | :param calling_number_country_a3: Calling number country in A3 format. |
447 | 454 | :type calling_number_country_a3: str |
448 | 455 | :param called_number_country_a3: Called number country in A3 format. |
@@ -502,6 +509,8 @@ def list_messages( |
502 | 509 | bw_queued=bw_queued, |
503 | 510 | product=product, |
504 | 511 | location=location, |
| 512 | + carrier_queued=carrier_queued, |
| 513 | + from_carrier_latency=from_carrier_latency, |
505 | 514 | calling_number_country_a3=calling_number_country_a3, |
506 | 515 | called_number_country_a3=called_number_country_a3, |
507 | 516 | from_segment_count=from_segment_count, |
@@ -558,6 +567,8 @@ def list_messages_with_http_info( |
558 | 567 | bw_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the Bandwidth network.")] = None, |
559 | 568 | product: Annotated[Optional[ProductTypeEnum], Field(description="Messaging product associated with the message.")] = None, |
560 | 569 | location: Annotated[Optional[StrictStr], Field(description="Location Id associated with the message.")] = None, |
| 570 | + carrier_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
| 571 | + from_carrier_latency: Annotated[Optional[StrictInt], Field(description="The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
561 | 572 | calling_number_country_a3: Annotated[Optional[StrictStr], Field(description="Calling number country in A3 format.")] = None, |
562 | 573 | called_number_country_a3: Annotated[Optional[StrictStr], Field(description="Called number country in A3 format.")] = None, |
563 | 574 | from_segment_count: Annotated[Optional[StrictInt], Field(description="Segment count (start range).")] = None, |
@@ -617,6 +628,10 @@ def list_messages_with_http_info( |
617 | 628 | :type product: ProductTypeEnum |
618 | 629 | :param location: Location Id associated with the message. |
619 | 630 | :type location: str |
| 631 | + :param carrier_queued: A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 632 | + :type carrier_queued: bool |
| 633 | + :param from_carrier_latency: The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 634 | + :type from_carrier_latency: int |
620 | 635 | :param calling_number_country_a3: Calling number country in A3 format. |
621 | 636 | :type calling_number_country_a3: str |
622 | 637 | :param called_number_country_a3: Called number country in A3 format. |
@@ -676,6 +691,8 @@ def list_messages_with_http_info( |
676 | 691 | bw_queued=bw_queued, |
677 | 692 | product=product, |
678 | 693 | location=location, |
| 694 | + carrier_queued=carrier_queued, |
| 695 | + from_carrier_latency=from_carrier_latency, |
679 | 696 | calling_number_country_a3=calling_number_country_a3, |
680 | 697 | called_number_country_a3=called_number_country_a3, |
681 | 698 | from_segment_count=from_segment_count, |
@@ -732,6 +749,8 @@ def list_messages_without_preload_content( |
732 | 749 | bw_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the Bandwidth network.")] = None, |
733 | 750 | product: Annotated[Optional[ProductTypeEnum], Field(description="Messaging product associated with the message.")] = None, |
734 | 751 | location: Annotated[Optional[StrictStr], Field(description="Location Id associated with the message.")] = None, |
| 752 | + carrier_queued: Annotated[Optional[StrictBool], Field(description="A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
| 753 | + from_carrier_latency: Annotated[Optional[StrictInt], Field(description="The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled.")] = None, |
735 | 754 | calling_number_country_a3: Annotated[Optional[StrictStr], Field(description="Calling number country in A3 format.")] = None, |
736 | 755 | called_number_country_a3: Annotated[Optional[StrictStr], Field(description="Called number country in A3 format.")] = None, |
737 | 756 | from_segment_count: Annotated[Optional[StrictInt], Field(description="Segment count (start range).")] = None, |
@@ -791,6 +810,10 @@ def list_messages_without_preload_content( |
791 | 810 | :type product: ProductTypeEnum |
792 | 811 | :param location: Location Id associated with the message. |
793 | 812 | :type location: str |
| 813 | + :param carrier_queued: A boolean value indicating whether the message is queued in the carrier network. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 814 | + :type carrier_queued: bool |
| 815 | + :param from_carrier_latency: The minimum carrier latency of the message in seconds. Only available for OUTBOUND messages from accounts with the Advanced Quality Metrics feature enabled. |
| 816 | + :type from_carrier_latency: int |
794 | 817 | :param calling_number_country_a3: Calling number country in A3 format. |
795 | 818 | :type calling_number_country_a3: str |
796 | 819 | :param called_number_country_a3: Called number country in A3 format. |
@@ -850,6 +873,8 @@ def list_messages_without_preload_content( |
850 | 873 | bw_queued=bw_queued, |
851 | 874 | product=product, |
852 | 875 | location=location, |
| 876 | + carrier_queued=carrier_queued, |
| 877 | + from_carrier_latency=from_carrier_latency, |
853 | 878 | calling_number_country_a3=calling_number_country_a3, |
854 | 879 | called_number_country_a3=called_number_country_a3, |
855 | 880 | from_segment_count=from_segment_count, |
@@ -901,6 +926,8 @@ def _list_messages_serialize( |
901 | 926 | bw_queued, |
902 | 927 | product, |
903 | 928 | location, |
| 929 | + carrier_queued, |
| 930 | + from_carrier_latency, |
904 | 931 | calling_number_country_a3, |
905 | 932 | called_number_country_a3, |
906 | 933 | from_segment_count, |
@@ -998,6 +1025,14 @@ def _list_messages_serialize( |
998 | 1025 |
|
999 | 1026 | _query_params.append(('location', location)) |
1000 | 1027 |
|
| 1028 | + if carrier_queued is not None: |
| 1029 | + |
| 1030 | + _query_params.append(('carrierQueued', carrier_queued)) |
| 1031 | + |
| 1032 | + if from_carrier_latency is not None: |
| 1033 | + |
| 1034 | + _query_params.append(('fromCarrierLatency', from_carrier_latency)) |
| 1035 | + |
1001 | 1036 | if calling_number_country_a3 is not None: |
1002 | 1037 |
|
1003 | 1038 | _query_params.append(('callingNumberCountryA3', calling_number_country_a3)) |
|
0 commit comments