1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360 361 362 363 364 365 366 367 368 369 370 371 372 373 374 375 376 377 378 379 380 381 382 383 384 385 386 387 388 389 390 391 392 393 394 395 396 397 398 399 400 401 402 403 404 405 406 407 408 409 410 411 412 413 414 415 416 417 418 419 420 421 422 423 424 425 426 427 428 429 430 431 432 433 434 435 436 437 438 439 440 441 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 457 458 459 460 461 462 463 464 465 466 467 468 469 470 471 472 473 474 475 476 477 478 479 480 481 482 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 498 499 500 501 502 503 504 505 506 507 508 509 510 511 512 513 514 515 516 517 518 519 520 521 522 523 524 525 526 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 542 543 544 545 546 547 548 549 550 551 552 553 554 555 556 557 558 559 560 561 562 563 564 565 566 567 568 569 570 571 572 573 574 575 576 577 578 579 580 581 582 583 584 585 586 587 588 589 590 591 592 593 594 595 596 597 598 599 600 601 602 603 604 605 606 607 608 609 610 611 612 613 614 615 616 617 618 619 620 621 622 623 624 625 626 627 628 629 630 631 632 633 634 635 636 637 638 639 640 641 642 643 644 645 646 647 648 649 650 651 652 653 654 655 656 657 658 659 660 661 662 663 664 665 666 667 668 669 670 671 672 673 674 675 676 677 678 679 680 681 682 683 684 685 686 687 688 689 690 691 692 693 694 695 696 697 698 699 700 701 702 703 704 705 706 707 708 709 710 711 712 713 714 715 716 717 718 719 720 721 722 723 724 725 726 727 728 729 730 731 732 733 734 735 736 737 738 739 740 741 742 743 744 745 746 747 748 749 750 751 752 753 754 755 756 757 758 759 760 761 762 763 764 765 766 767 768 769 770 771 772 773 774 775 776 777 778 779 780 781 782 783 784 785 786 787 788 789 790 791 792 793 794 795 796 797 798 799 800 801 802 803 804 805 806 807 808 809 810 811 812 813 814 815 816 817 818 819 820 821 822 823 824 825 826 827 828 829 830 831 832 833 834 835 836 837 838 839 840 841 842 843 844 845 846 847 848 849 850 851 852 853 854 855 856 857 858 859 860 861 862 863 864 865 866 867 868 869 870 871 872 873 874 875 876 877 878 879 880 881 882 883 884 885 886 887 888 889 890 891 892 893 894 895 896 897 898 899 900 901 902 903 904 905 906 907 908 909 910 911 912 913 914 915 916 917 918 919 920 921 922 923 924 925 926 927 928 929 930 931 932 933 934 935 936 937 938 939 940 941 942 943 944 945 946 947 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 1005 1006 1007 1008 1009 1010 1011 1012 1013 1014 1015 1016 1017 1018 1019 1020 1021 1022 1023 1024 1025 1026 1027 1028 1029 1030 1031 1032 1033 1034 1035 1036 1037 1038 1039 1040 1041 1042 1043 1044 1045 1046 1047 1048 1049 1050 1051 1052 1053 1054 1055 1056 1057 1058 1059 1060 1061 1062 1063 1064 1065 1066 1067 1068 1069 1070 1071 1072 1073 1074 1075 1076 1077 1078 1079 1080 1081 1082 1083 1084 1085 1086 1087 1088 1089 1090 1091 1092 1093 1094 1095 1096 1097 1098 1099 1100 1101 1102 1103 1104 1105 1106 1107 1108 1109 1110 1111 1112 1113 1114 1115 1116 1117 1118 1119 1120 1121 1122 1123 1124 1125 1126 1127 1128 1129 1130 1131 1132 1133 1134 1135 1136 1137 1138 1139 1140 1141 1142 1143 1144 1145 1146 1147 1148
|
# -*- coding: utf-8 -*-
# File generated from our OpenAPI spec
from stripe._list_object import ListObject
from stripe._request_options import RequestOptions
from stripe._stripe_service import StripeService
from stripe._util import sanitize_id
from stripe.terminal._configuration import Configuration
from typing import List, cast
from typing_extensions import Literal, NotRequired, TypedDict
class ConfigurationService(StripeService):
class CreateParams(TypedDict):
bbpos_wisepos_e: NotRequired[
"ConfigurationService.CreateParamsBbposWiseposE"
]
"""
An object containing device type specific settings for BBPOS WisePOS E readers
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
name: NotRequired[str]
"""
Name of the configuration
"""
offline: NotRequired[
"Literal['']|ConfigurationService.CreateParamsOffline"
]
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired[
"ConfigurationService.CreateParamsRebootWindow"
]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired["ConfigurationService.CreateParamsStripeS700"]
"""
An object containing device type specific settings for Stripe S700 readers
"""
tipping: NotRequired[
"Literal['']|ConfigurationService.CreateParamsTipping"
]
"""
Tipping configurations for readers supporting on-reader tips
"""
verifone_p400: NotRequired[
"ConfigurationService.CreateParamsVerifoneP400"
]
"""
An object containing device type specific settings for Verifone P400 readers
"""
wifi: NotRequired["Literal['']|ConfigurationService.CreateParamsWifi"]
"""
Configurations for connecting to a WiFi network.
"""
class CreateParamsBbposWiseposE(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image to display on the reader
"""
class CreateParamsOffline(TypedDict):
enabled: bool
"""
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""
class CreateParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""
class CreateParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image you would like displayed on the reader.
"""
class CreateParamsTipping(TypedDict):
aud: NotRequired["ConfigurationService.CreateParamsTippingAud"]
"""
Tipping configuration for AUD
"""
cad: NotRequired["ConfigurationService.CreateParamsTippingCad"]
"""
Tipping configuration for CAD
"""
chf: NotRequired["ConfigurationService.CreateParamsTippingChf"]
"""
Tipping configuration for CHF
"""
czk: NotRequired["ConfigurationService.CreateParamsTippingCzk"]
"""
Tipping configuration for CZK
"""
dkk: NotRequired["ConfigurationService.CreateParamsTippingDkk"]
"""
Tipping configuration for DKK
"""
eur: NotRequired["ConfigurationService.CreateParamsTippingEur"]
"""
Tipping configuration for EUR
"""
gbp: NotRequired["ConfigurationService.CreateParamsTippingGbp"]
"""
Tipping configuration for GBP
"""
hkd: NotRequired["ConfigurationService.CreateParamsTippingHkd"]
"""
Tipping configuration for HKD
"""
jpy: NotRequired["ConfigurationService.CreateParamsTippingJpy"]
"""
Tipping configuration for JPY
"""
myr: NotRequired["ConfigurationService.CreateParamsTippingMyr"]
"""
Tipping configuration for MYR
"""
nok: NotRequired["ConfigurationService.CreateParamsTippingNok"]
"""
Tipping configuration for NOK
"""
nzd: NotRequired["ConfigurationService.CreateParamsTippingNzd"]
"""
Tipping configuration for NZD
"""
pln: NotRequired["ConfigurationService.CreateParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["ConfigurationService.CreateParamsTippingSek"]
"""
Tipping configuration for SEK
"""
sgd: NotRequired["ConfigurationService.CreateParamsTippingSgd"]
"""
Tipping configuration for SGD
"""
usd: NotRequired["ConfigurationService.CreateParamsTippingUsd"]
"""
Tipping configuration for USD
"""
class CreateParamsTippingAud(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingCad(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingChf(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingCzk(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingDkk(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingEur(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingGbp(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingHkd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingJpy(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingMyr(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingNok(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingNzd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingSgd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsTippingUsd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class CreateParamsVerifoneP400(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image you would like displayed on the reader.
"""
class CreateParamsWifi(TypedDict):
enterprise_eap_peap: NotRequired[
"ConfigurationService.CreateParamsWifiEnterpriseEapPeap"
]
"""
Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
"""
enterprise_eap_tls: NotRequired[
"ConfigurationService.CreateParamsWifiEnterpriseEapTls"
]
"""
Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
"""
personal_psk: NotRequired[
"ConfigurationService.CreateParamsWifiPersonalPsk"
]
"""
Credentials for a WPA-Personal WiFi network.
"""
type: Literal[
"enterprise_eap_peap", "enterprise_eap_tls", "personal_psk"
]
"""
Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
"""
class CreateParamsWifiEnterpriseEapPeap(TypedDict):
ca_certificate_file: NotRequired[str]
"""
A File ID representing a PEM file containing the server certificate
"""
password: str
"""
Password for connecting to the WiFi network
"""
ssid: str
"""
Name of the WiFi network
"""
username: str
"""
Username for connecting to the WiFi network
"""
class CreateParamsWifiEnterpriseEapTls(TypedDict):
ca_certificate_file: NotRequired[str]
"""
A File ID representing a PEM file containing the server certificate
"""
client_certificate_file: str
"""
A File ID representing a PEM file containing the client certificate
"""
private_key_file: str
"""
A File ID representing a PEM file containing the client RSA private key
"""
private_key_file_password: NotRequired[str]
"""
Password for the private key file
"""
ssid: str
"""
Name of the WiFi network
"""
class CreateParamsWifiPersonalPsk(TypedDict):
password: str
"""
Password for connecting to the WiFi network
"""
ssid: str
"""
Name of the WiFi network
"""
class DeleteParams(TypedDict):
pass
class ListParams(TypedDict):
ending_before: NotRequired[str]
"""
A cursor for use in pagination. `ending_before` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, starting with `obj_bar`, your subsequent call can include `ending_before=obj_bar` in order to fetch the previous page of the list.
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
is_account_default: NotRequired[bool]
"""
if present, only return the account default or non-default configurations.
"""
limit: NotRequired[int]
"""
A limit on the number of objects to be returned. Limit can range between 1 and 100, and the default is 10.
"""
starting_after: NotRequired[str]
"""
A cursor for use in pagination. `starting_after` is an object ID that defines your place in the list. For instance, if you make a list request and receive 100 objects, ending with `obj_foo`, your subsequent call can include `starting_after=obj_foo` in order to fetch the next page of the list.
"""
class RetrieveParams(TypedDict):
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
class UpdateParams(TypedDict):
bbpos_wisepos_e: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsBbposWiseposE"
]
"""
An object containing device type specific settings for BBPOS WisePOS E readers
"""
expand: NotRequired[List[str]]
"""
Specifies which fields in the response should be expanded.
"""
name: NotRequired[str]
"""
Name of the configuration
"""
offline: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsOffline"
]
"""
Configurations for collecting transactions offline.
"""
reboot_window: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsRebootWindow"
]
"""
Reboot time settings for readers that support customized reboot time configuration.
"""
stripe_s700: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsStripeS700"
]
"""
An object containing device type specific settings for Stripe S700 readers
"""
tipping: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsTipping"
]
"""
Tipping configurations for readers supporting on-reader tips
"""
verifone_p400: NotRequired[
"Literal['']|ConfigurationService.UpdateParamsVerifoneP400"
]
"""
An object containing device type specific settings for Verifone P400 readers
"""
wifi: NotRequired["Literal['']|ConfigurationService.UpdateParamsWifi"]
"""
Configurations for connecting to a WiFi network.
"""
class UpdateParamsBbposWiseposE(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image to display on the reader
"""
class UpdateParamsOffline(TypedDict):
enabled: bool
"""
Determines whether to allow transactions to be collected while reader is offline. Defaults to false.
"""
class UpdateParamsRebootWindow(TypedDict):
end_hour: int
"""
Integer between 0 to 23 that represents the end hour of the reboot time window. The value must be different than the start_hour.
"""
start_hour: int
"""
Integer between 0 to 23 that represents the start hour of the reboot time window.
"""
class UpdateParamsStripeS700(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image you would like displayed on the reader.
"""
class UpdateParamsTipping(TypedDict):
aud: NotRequired["ConfigurationService.UpdateParamsTippingAud"]
"""
Tipping configuration for AUD
"""
cad: NotRequired["ConfigurationService.UpdateParamsTippingCad"]
"""
Tipping configuration for CAD
"""
chf: NotRequired["ConfigurationService.UpdateParamsTippingChf"]
"""
Tipping configuration for CHF
"""
czk: NotRequired["ConfigurationService.UpdateParamsTippingCzk"]
"""
Tipping configuration for CZK
"""
dkk: NotRequired["ConfigurationService.UpdateParamsTippingDkk"]
"""
Tipping configuration for DKK
"""
eur: NotRequired["ConfigurationService.UpdateParamsTippingEur"]
"""
Tipping configuration for EUR
"""
gbp: NotRequired["ConfigurationService.UpdateParamsTippingGbp"]
"""
Tipping configuration for GBP
"""
hkd: NotRequired["ConfigurationService.UpdateParamsTippingHkd"]
"""
Tipping configuration for HKD
"""
jpy: NotRequired["ConfigurationService.UpdateParamsTippingJpy"]
"""
Tipping configuration for JPY
"""
myr: NotRequired["ConfigurationService.UpdateParamsTippingMyr"]
"""
Tipping configuration for MYR
"""
nok: NotRequired["ConfigurationService.UpdateParamsTippingNok"]
"""
Tipping configuration for NOK
"""
nzd: NotRequired["ConfigurationService.UpdateParamsTippingNzd"]
"""
Tipping configuration for NZD
"""
pln: NotRequired["ConfigurationService.UpdateParamsTippingPln"]
"""
Tipping configuration for PLN
"""
sek: NotRequired["ConfigurationService.UpdateParamsTippingSek"]
"""
Tipping configuration for SEK
"""
sgd: NotRequired["ConfigurationService.UpdateParamsTippingSgd"]
"""
Tipping configuration for SGD
"""
usd: NotRequired["ConfigurationService.UpdateParamsTippingUsd"]
"""
Tipping configuration for USD
"""
class UpdateParamsTippingAud(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingCad(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingChf(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingCzk(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingDkk(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingEur(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingGbp(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingHkd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingJpy(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingMyr(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingNok(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingNzd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingPln(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingSek(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingSgd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsTippingUsd(TypedDict):
fixed_amounts: NotRequired[List[int]]
"""
Fixed amounts displayed when collecting a tip
"""
percentages: NotRequired[List[int]]
"""
Percentages displayed when collecting a tip
"""
smart_tip_threshold: NotRequired[int]
"""
Below this amount, fixed amounts will be displayed; above it, percentages will be displayed
"""
class UpdateParamsVerifoneP400(TypedDict):
splashscreen: NotRequired["Literal['']|str"]
"""
A File ID representing an image you would like displayed on the reader.
"""
class UpdateParamsWifi(TypedDict):
enterprise_eap_peap: NotRequired[
"ConfigurationService.UpdateParamsWifiEnterpriseEapPeap"
]
"""
Credentials for a WPA-Enterprise WiFi network using the EAP-PEAP authentication method.
"""
enterprise_eap_tls: NotRequired[
"ConfigurationService.UpdateParamsWifiEnterpriseEapTls"
]
"""
Credentials for a WPA-Enterprise WiFi network using the EAP-TLS authentication method.
"""
personal_psk: NotRequired[
"ConfigurationService.UpdateParamsWifiPersonalPsk"
]
"""
Credentials for a WPA-Personal WiFi network.
"""
type: Literal[
"enterprise_eap_peap", "enterprise_eap_tls", "personal_psk"
]
"""
Security type of the WiFi network. Fill out the hash with the corresponding name to provide the set of credentials for this security type.
"""
class UpdateParamsWifiEnterpriseEapPeap(TypedDict):
ca_certificate_file: NotRequired[str]
"""
A File ID representing a PEM file containing the server certificate
"""
password: str
"""
Password for connecting to the WiFi network
"""
ssid: str
"""
Name of the WiFi network
"""
username: str
"""
Username for connecting to the WiFi network
"""
class UpdateParamsWifiEnterpriseEapTls(TypedDict):
ca_certificate_file: NotRequired[str]
"""
A File ID representing a PEM file containing the server certificate
"""
client_certificate_file: str
"""
A File ID representing a PEM file containing the client certificate
"""
private_key_file: str
"""
A File ID representing a PEM file containing the client RSA private key
"""
private_key_file_password: NotRequired[str]
"""
Password for the private key file
"""
ssid: str
"""
Name of the WiFi network
"""
class UpdateParamsWifiPersonalPsk(TypedDict):
password: str
"""
Password for connecting to the WiFi network
"""
ssid: str
"""
Name of the WiFi network
"""
def delete(
self,
configuration: str,
params: "ConfigurationService.DeleteParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Deletes a Configuration object.
"""
return cast(
Configuration,
self._request(
"delete",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
async def delete_async(
self,
configuration: str,
params: "ConfigurationService.DeleteParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Deletes a Configuration object.
"""
return cast(
Configuration,
await self._request_async(
"delete",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
def retrieve(
self,
configuration: str,
params: "ConfigurationService.RetrieveParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Retrieves a Configuration object.
"""
return cast(
Configuration,
self._request(
"get",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
async def retrieve_async(
self,
configuration: str,
params: "ConfigurationService.RetrieveParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Retrieves a Configuration object.
"""
return cast(
Configuration,
await self._request_async(
"get",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
def update(
self,
configuration: str,
params: "ConfigurationService.UpdateParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Updates a new Configuration object.
"""
return cast(
Configuration,
self._request(
"post",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
async def update_async(
self,
configuration: str,
params: "ConfigurationService.UpdateParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Updates a new Configuration object.
"""
return cast(
Configuration,
await self._request_async(
"post",
"/v1/terminal/configurations/{configuration}".format(
configuration=sanitize_id(configuration),
),
base_address="api",
params=params,
options=options,
),
)
def list(
self,
params: "ConfigurationService.ListParams" = {},
options: RequestOptions = {},
) -> ListObject[Configuration]:
"""
Returns a list of Configuration objects.
"""
return cast(
ListObject[Configuration],
self._request(
"get",
"/v1/terminal/configurations",
base_address="api",
params=params,
options=options,
),
)
async def list_async(
self,
params: "ConfigurationService.ListParams" = {},
options: RequestOptions = {},
) -> ListObject[Configuration]:
"""
Returns a list of Configuration objects.
"""
return cast(
ListObject[Configuration],
await self._request_async(
"get",
"/v1/terminal/configurations",
base_address="api",
params=params,
options=options,
),
)
def create(
self,
params: "ConfigurationService.CreateParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Creates a new Configuration object.
"""
return cast(
Configuration,
self._request(
"post",
"/v1/terminal/configurations",
base_address="api",
params=params,
options=options,
),
)
async def create_async(
self,
params: "ConfigurationService.CreateParams" = {},
options: RequestOptions = {},
) -> Configuration:
"""
Creates a new Configuration object.
"""
return cast(
Configuration,
await self._request_async(
"post",
"/v1/terminal/configurations",
base_address="api",
params=params,
options=options,
),
)
|