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 1149 1150 1151 1152 1153 1154 1155 1156 1157 1158 1159 1160 1161 1162 1163 1164 1165 1166 1167 1168 1169 1170 1171 1172 1173 1174 1175 1176 1177 1178 1179 1180 1181 1182 1183 1184 1185 1186 1187 1188 1189 1190 1191 1192 1193 1194 1195 1196 1197 1198 1199 1200 1201 1202 1203 1204 1205 1206 1207 1208 1209 1210 1211 1212 1213 1214 1215 1216 1217 1218 1219 1220 1221 1222 1223 1224 1225 1226 1227 1228 1229 1230 1231 1232 1233 1234 1235 1236 1237 1238 1239 1240 1241 1242 1243 1244 1245 1246 1247 1248 1249 1250 1251 1252 1253 1254 1255 1256 1257 1258 1259 1260 1261 1262 1263 1264 1265 1266 1267 1268 1269 1270 1271 1272 1273 1274 1275 1276 1277 1278 1279 1280 1281 1282 1283 1284 1285 1286 1287 1288 1289 1290 1291 1292 1293 1294 1295 1296 1297 1298 1299 1300 1301 1302 1303 1304 1305 1306 1307 1308 1309 1310 1311 1312 1313 1314 1315 1316 1317 1318 1319 1320 1321 1322 1323 1324 1325 1326 1327 1328 1329 1330 1331 1332 1333 1334 1335 1336 1337 1338 1339 1340 1341 1342 1343 1344 1345 1346 1347 1348 1349 1350 1351 1352 1353 1354 1355 1356 1357 1358 1359 1360 1361 1362 1363 1364 1365 1366 1367 1368 1369 1370 1371 1372 1373 1374 1375 1376 1377 1378 1379 1380 1381 1382 1383 1384 1385 1386 1387 1388 1389 1390 1391 1392 1393 1394 1395 1396 1397 1398 1399 1400 1401 1402 1403 1404 1405 1406 1407 1408 1409 1410 1411 1412 1413 1414 1415 1416 1417 1418 1419 1420 1421 1422 1423 1424 1425 1426 1427 1428 1429 1430 1431 1432 1433 1434 1435 1436 1437 1438 1439 1440 1441 1442 1443 1444 1445 1446 1447 1448 1449 1450 1451 1452 1453 1454 1455 1456 1457 1458 1459 1460 1461 1462 1463 1464 1465 1466 1467 1468 1469 1470 1471 1472 1473 1474 1475 1476 1477 1478 1479 1480 1481 1482 1483 1484 1485 1486 1487 1488 1489 1490 1491 1492 1493 1494 1495 1496 1497 1498 1499 1500 1501 1502 1503 1504 1505 1506 1507 1508 1509 1510 1511 1512 1513 1514 1515 1516 1517 1518 1519 1520 1521 1522 1523 1524 1525 1526 1527 1528 1529 1530 1531 1532 1533 1534 1535 1536 1537 1538 1539 1540 1541 1542 1543 1544 1545 1546 1547 1548 1549 1550 1551 1552 1553 1554 1555 1556 1557 1558 1559 1560 1561 1562 1563 1564 1565 1566 1567 1568 1569 1570 1571 1572 1573 1574 1575 1576 1577 1578 1579 1580 1581 1582 1583 1584 1585 1586 1587 1588 1589 1590 1591 1592 1593 1594 1595 1596 1597 1598 1599 1600 1601 1602 1603 1604 1605 1606 1607 1608 1609 1610 1611 1612 1613 1614 1615 1616 1617 1618 1619 1620 1621 1622 1623 1624 1625 1626 1627 1628 1629 1630 1631 1632 1633 1634 1635 1636 1637 1638 1639 1640 1641 1642 1643 1644 1645 1646 1647 1648 1649 1650 1651 1652 1653 1654 1655 1656 1657 1658 1659 1660 1661 1662 1663 1664 1665 1666 1667 1668 1669 1670 1671 1672 1673 1674 1675 1676 1677 1678 1679 1680 1681 1682 1683 1684 1685 1686 1687 1688 1689 1690 1691 1692 1693 1694 1695 1696 1697 1698 1699 1700 1701 1702 1703 1704 1705 1706 1707 1708 1709 1710 1711 1712 1713 1714 1715 1716 1717 1718 1719 1720 1721 1722 1723 1724 1725 1726 1727 1728 1729 1730 1731 1732 1733 1734 1735 1736 1737 1738 1739 1740 1741 1742 1743 1744 1745 1746 1747 1748 1749 1750 1751 1752 1753 1754 1755 1756 1757 1758 1759 1760 1761 1762 1763 1764 1765 1766 1767 1768 1769 1770 1771 1772 1773 1774 1775 1776 1777 1778 1779 1780 1781 1782 1783 1784 1785 1786 1787 1788 1789 1790 1791 1792 1793 1794 1795 1796 1797 1798 1799 1800 1801 1802 1803 1804 1805 1806 1807 1808 1809 1810 1811 1812 1813 1814 1815 1816 1817 1818 1819 1820 1821 1822 1823 1824 1825 1826 1827 1828 1829 1830 1831 1832 1833 1834 1835 1836 1837 1838 1839 1840 1841 1842 1843 1844 1845 1846 1847 1848 1849 1850 1851 1852 1853 1854 1855 1856 1857 1858 1859 1860 1861 1862 1863 1864 1865 1866 1867 1868 1869 1870 1871 1872 1873 1874 1875 1876 1877 1878 1879 1880 1881 1882 1883 1884 1885 1886 1887 1888 1889 1890 1891 1892 1893 1894 1895 1896 1897 1898 1899 1900 1901 1902 1903 1904 1905 1906 1907 1908 1909 1910 1911 1912 1913 1914 1915 1916 1917 1918 1919 1920 1921 1922 1923 1924 1925 1926 1927 1928 1929 1930 1931 1932 1933 1934 1935 1936 1937 1938 1939 1940 1941 1942 1943 1944 1945 1946 1947 1948 1949 1950 1951 1952 1953 1954 1955 1956 1957 1958 1959 1960 1961 1962 1963 1964 1965 1966 1967 1968 1969 1970 1971 1972 1973 1974 1975 1976 1977 1978 1979 1980 1981 1982 1983 1984 1985 1986 1987 1988 1989 1990 1991 1992 1993 1994 1995 1996 1997 1998 1999 2000 2001 2002 2003 2004 2005 2006 2007 2008 2009 2010 2011 2012 2013 2014 2015 2016 2017 2018 2019 2020 2021 2022 2023 2024 2025 2026 2027 2028 2029 2030 2031 2032 2033 2034 2035 2036 2037 2038 2039 2040 2041 2042 2043 2044 2045 2046 2047 2048 2049 2050 2051 2052 2053 2054 2055 2056 2057 2058 2059 2060 2061 2062 2063 2064 2065 2066 2067 2068 2069 2070 2071 2072 2073 2074 2075 2076 2077 2078 2079 2080 2081 2082 2083 2084 2085 2086 2087 2088 2089 2090 2091 2092 2093 2094 2095 2096 2097 2098 2099 2100 2101 2102 2103 2104 2105 2106 2107 2108 2109 2110 2111 2112 2113 2114 2115 2116 2117 2118 2119 2120 2121 2122 2123 2124 2125 2126 2127 2128 2129 2130 2131 2132 2133 2134 2135 2136 2137 2138 2139 2140 2141 2142 2143 2144 2145 2146 2147 2148 2149 2150 2151 2152 2153 2154 2155 2156 2157 2158 2159 2160 2161 2162 2163 2164 2165 2166 2167 2168 2169 2170 2171 2172 2173 2174 2175 2176 2177 2178 2179 2180 2181 2182 2183 2184 2185 2186 2187 2188 2189 2190 2191 2192 2193 2194 2195 2196 2197 2198 2199 2200 2201 2202 2203 2204 2205 2206 2207 2208 2209 2210 2211 2212 2213 2214 2215 2216 2217 2218 2219 2220 2221 2222 2223 2224 2225 2226 2227 2228 2229 2230 2231 2232 2233 2234 2235 2236 2237 2238 2239 2240 2241 2242 2243 2244 2245 2246 2247 2248 2249 2250 2251 2252 2253 2254 2255 2256 2257 2258 2259 2260 2261 2262 2263 2264 2265 2266 2267 2268 2269 2270 2271 2272 2273 2274 2275 2276 2277 2278 2279 2280 2281 2282 2283 2284 2285 2286 2287 2288 2289 2290 2291 2292 2293 2294 2295 2296 2297 2298 2299 2300 2301 2302 2303 2304 2305 2306 2307 2308 2309 2310 2311 2312 2313 2314 2315 2316 2317 2318 2319 2320 2321 2322 2323 2324 2325 2326 2327 2328 2329 2330 2331 2332 2333 2334 2335 2336 2337 2338 2339 2340 2341 2342 2343 2344 2345 2346 2347 2348 2349 2350 2351 2352 2353 2354 2355 2356 2357 2358 2359 2360 2361 2362 2363 2364 2365 2366 2367 2368 2369 2370 2371 2372 2373 2374 2375 2376 2377 2378 2379 2380 2381 2382 2383 2384 2385 2386 2387 2388 2389 2390 2391 2392 2393 2394 2395 2396 2397 2398 2399 2400 2401 2402 2403 2404 2405 2406 2407 2408 2409 2410 2411 2412 2413 2414 2415 2416 2417 2418 2419 2420 2421 2422 2423 2424 2425 2426 2427 2428 2429 2430 2431 2432 2433 2434 2435 2436 2437 2438 2439 2440 2441 2442 2443 2444 2445 2446 2447 2448 2449 2450 2451 2452 2453 2454 2455 2456 2457 2458 2459 2460 2461 2462 2463 2464 2465 2466 2467 2468 2469 2470 2471 2472 2473 2474 2475 2476 2477 2478 2479 2480 2481 2482 2483 2484 2485 2486 2487 2488 2489 2490 2491 2492 2493 2494 2495 2496 2497 2498 2499 2500 2501 2502 2503 2504 2505 2506 2507 2508 2509 2510 2511 2512 2513 2514 2515 2516 2517 2518 2519 2520 2521 2522 2523 2524 2525 2526 2527 2528 2529 2530 2531 2532 2533 2534 2535 2536 2537 2538 2539 2540 2541 2542 2543 2544 2545 2546 2547 2548 2549 2550 2551 2552 2553 2554 2555 2556 2557 2558 2559 2560 2561 2562 2563 2564 2565 2566 2567 2568 2569 2570 2571 2572 2573 2574 2575 2576 2577 2578 2579 2580 2581 2582 2583 2584 2585 2586 2587 2588 2589 2590 2591 2592 2593 2594 2595 2596 2597 2598 2599 2600 2601 2602 2603 2604 2605 2606 2607 2608 2609 2610 2611 2612 2613 2614 2615 2616 2617 2618 2619 2620 2621 2622 2623 2624 2625 2626 2627 2628 2629 2630 2631 2632 2633 2634 2635 2636 2637 2638 2639 2640 2641 2642 2643 2644 2645 2646 2647 2648 2649 2650 2651 2652 2653 2654 2655 2656 2657 2658 2659 2660 2661 2662 2663 2664 2665 2666 2667 2668 2669 2670 2671 2672 2673 2674 2675 2676 2677 2678 2679 2680 2681 2682 2683 2684 2685 2686 2687 2688 2689 2690 2691 2692 2693 2694 2695 2696 2697 2698 2699 2700 2701 2702 2703 2704 2705 2706 2707 2708 2709 2710 2711 2712 2713 2714 2715 2716 2717 2718 2719 2720 2721 2722 2723 2724 2725 2726 2727 2728 2729 2730 2731 2732 2733 2734 2735 2736 2737 2738 2739 2740 2741 2742 2743 2744 2745 2746 2747 2748 2749 2750 2751 2752 2753 2754 2755 2756 2757 2758 2759 2760 2761 2762 2763 2764 2765 2766 2767 2768 2769 2770 2771 2772 2773 2774 2775 2776 2777 2778 2779 2780 2781 2782 2783 2784 2785 2786 2787 2788 2789 2790 2791 2792 2793 2794 2795 2796 2797 2798 2799 2800 2801 2802 2803 2804 2805 2806 2807 2808 2809 2810 2811 2812 2813 2814 2815 2816 2817 2818 2819 2820 2821 2822 2823 2824 2825 2826 2827 2828 2829 2830 2831 2832 2833 2834 2835 2836 2837 2838 2839 2840 2841 2842 2843 2844 2845 2846 2847 2848 2849 2850 2851 2852 2853 2854 2855 2856 2857 2858 2859 2860 2861 2862 2863 2864 2865 2866 2867 2868 2869 2870 2871 2872 2873 2874 2875 2876 2877 2878 2879 2880 2881 2882 2883 2884 2885 2886 2887 2888 2889 2890 2891 2892 2893 2894 2895 2896 2897 2898 2899 2900 2901 2902 2903 2904 2905 2906 2907 2908 2909 2910 2911 2912 2913 2914 2915 2916 2917 2918 2919 2920 2921 2922 2923 2924 2925 2926 2927 2928 2929 2930 2931 2932 2933 2934 2935 2936 2937 2938 2939 2940 2941 2942 2943 2944 2945 2946 2947 2948 2949 2950 2951 2952 2953 2954 2955 2956 2957 2958 2959 2960 2961 2962 2963 2964 2965 2966 2967 2968 2969 2970 2971 2972 2973 2974 2975 2976 2977 2978 2979 2980 2981 2982 2983 2984 2985 2986 2987 2988 2989 2990 2991 2992 2993 2994 2995 2996 2997 2998 2999 3000 3001 3002 3003 3004 3005 3006 3007 3008 3009 3010 3011 3012 3013 3014 3015 3016 3017 3018 3019 3020 3021 3022 3023 3024 3025 3026 3027 3028 3029 3030 3031 3032 3033 3034 3035 3036 3037 3038 3039 3040 3041 3042 3043 3044 3045 3046 3047 3048 3049 3050 3051 3052 3053 3054 3055 3056 3057 3058 3059 3060 3061 3062 3063 3064 3065 3066 3067 3068 3069 3070 3071 3072 3073 3074 3075 3076 3077 3078 3079 3080 3081 3082 3083 3084 3085 3086 3087 3088 3089 3090 3091 3092 3093 3094 3095 3096 3097 3098 3099 3100 3101 3102 3103 3104 3105 3106 3107 3108 3109 3110 3111 3112 3113 3114 3115 3116 3117 3118 3119 3120 3121 3122 3123 3124 3125 3126 3127 3128 3129 3130 3131 3132 3133 3134 3135 3136 3137 3138 3139 3140 3141 3142 3143 3144 3145 3146 3147 3148 3149 3150 3151 3152 3153 3154 3155 3156 3157 3158 3159 3160 3161 3162 3163 3164 3165 3166 3167 3168 3169 3170 3171 3172 3173 3174 3175 3176 3177 3178 3179 3180 3181 3182 3183 3184 3185 3186 3187 3188 3189 3190 3191 3192 3193 3194 3195 3196 3197 3198 3199 3200 3201 3202 3203 3204 3205 3206 3207 3208 3209 3210 3211 3212 3213 3214 3215 3216 3217 3218 3219 3220 3221 3222 3223 3224 3225 3226 3227 3228 3229 3230 3231 3232 3233 3234 3235 3236 3237 3238 3239 3240 3241 3242 3243 3244 3245 3246 3247 3248 3249 3250 3251 3252 3253 3254 3255 3256 3257 3258 3259 3260 3261 3262 3263 3264 3265 3266 3267 3268 3269 3270 3271 3272 3273 3274 3275 3276 3277 3278 3279 3280 3281 3282 3283 3284 3285 3286 3287 3288 3289 3290 3291 3292 3293 3294 3295 3296 3297 3298 3299 3300 3301 3302 3303 3304 3305 3306 3307 3308 3309 3310 3311 3312 3313 3314 3315 3316 3317 3318 3319 3320 3321 3322 3323 3324 3325 3326 3327 3328 3329 3330 3331 3332 3333 3334 3335 3336 3337 3338 3339 3340 3341 3342 3343 3344 3345 3346 3347 3348 3349 3350 3351 3352 3353 3354 3355 3356 3357 3358 3359 3360 3361 3362 3363 3364 3365 3366 3367 3368 3369 3370 3371 3372 3373 3374 3375 3376 3377 3378 3379 3380 3381 3382 3383 3384 3385 3386 3387 3388 3389 3390 3391 3392 3393 3394 3395 3396 3397 3398 3399 3400 3401 3402 3403 3404 3405 3406 3407 3408 3409 3410 3411 3412 3413 3414 3415 3416 3417 3418 3419 3420 3421 3422 3423 3424 3425 3426 3427 3428 3429 3430 3431 3432 3433 3434 3435 3436 3437 3438 3439 3440 3441 3442 3443 3444 3445 3446 3447 3448 3449 3450 3451 3452 3453 3454 3455 3456 3457 3458 3459 3460 3461 3462 3463 3464 3465 3466 3467 3468 3469 3470 3471 3472 3473 3474 3475 3476 3477 3478 3479 3480 3481 3482 3483 3484 3485 3486 3487 3488 3489 3490 3491 3492 3493 3494 3495 3496 3497 3498 3499 3500 3501 3502 3503 3504 3505 3506 3507 3508 3509 3510 3511 3512 3513 3514 3515 3516 3517 3518 3519 3520 3521 3522 3523 3524 3525 3526 3527 3528 3529 3530 3531 3532 3533 3534 3535 3536 3537 3538 3539 3540 3541 3542 3543 3544 3545 3546 3547 3548 3549 3550 3551 3552 3553 3554 3555 3556 3557 3558 3559 3560 3561 3562 3563 3564 3565 3566 3567 3568 3569 3570 3571 3572 3573 3574 3575 3576 3577 3578 3579 3580 3581 3582 3583 3584 3585 3586 3587 3588 3589 3590 3591 3592 3593 3594 3595 3596 3597 3598 3599 3600 3601 3602 3603 3604 3605 3606 3607 3608 3609 3610 3611 3612 3613 3614 3615 3616 3617 3618 3619 3620 3621 3622 3623 3624 3625 3626 3627 3628 3629 3630 3631 3632 3633 3634 3635 3636 3637 3638 3639 3640 3641 3642 3643 3644 3645 3646 3647 3648 3649 3650 3651 3652 3653 3654 3655 3656 3657 3658 3659 3660 3661 3662 3663 3664 3665 3666 3667 3668 3669 3670 3671 3672 3673 3674 3675 3676 3677 3678 3679 3680 3681 3682 3683 3684 3685 3686 3687 3688 3689 3690 3691 3692 3693 3694 3695 3696 3697 3698 3699 3700 3701 3702 3703 3704 3705 3706 3707 3708 3709 3710 3711 3712 3713 3714 3715 3716 3717 3718 3719 3720 3721 3722 3723 3724 3725 3726 3727 3728 3729 3730 3731 3732 3733 3734 3735 3736 3737 3738 3739 3740 3741 3742 3743 3744 3745 3746 3747 3748 3749 3750 3751 3752 3753 3754 3755 3756 3757 3758 3759 3760 3761 3762 3763 3764 3765 3766 3767 3768 3769 3770 3771 3772 3773 3774 3775 3776 3777 3778 3779 3780 3781 3782 3783 3784 3785 3786 3787 3788 3789 3790 3791 3792 3793 3794 3795 3796 3797 3798 3799 3800 3801 3802 3803 3804 3805 3806 3807 3808 3809 3810 3811 3812 3813 3814 3815 3816 3817 3818 3819 3820 3821 3822 3823 3824 3825 3826 3827 3828 3829 3830 3831 3832 3833 3834 3835 3836 3837 3838 3839 3840 3841 3842 3843 3844 3845 3846 3847 3848 3849 3850 3851 3852 3853 3854 3855 3856 3857 3858 3859 3860 3861 3862 3863 3864 3865 3866 3867 3868 3869 3870 3871 3872 3873 3874 3875 3876 3877 3878 3879 3880 3881 3882 3883 3884 3885 3886 3887 3888 3889 3890 3891 3892 3893 3894 3895 3896 3897 3898 3899 3900 3901 3902 3903 3904 3905 3906 3907 3908 3909 3910 3911 3912 3913 3914 3915 3916 3917 3918 3919 3920 3921 3922 3923 3924 3925 3926 3927 3928 3929 3930 3931 3932 3933 3934 3935 3936 3937 3938 3939 3940 3941 3942 3943 3944 3945 3946 3947 3948 3949 3950 3951 3952 3953 3954 3955 3956 3957 3958 3959 3960 3961 3962 3963 3964 3965 3966 3967 3968 3969 3970 3971 3972 3973 3974 3975 3976 3977 3978 3979 3980 3981 3982 3983 3984 3985 3986 3987 3988 3989 3990 3991 3992 3993 3994 3995 3996 3997 3998 3999 4000 4001 4002 4003 4004 4005 4006 4007 4008 4009 4010 4011 4012 4013 4014 4015 4016 4017 4018 4019 4020 4021 4022 4023 4024 4025 4026 4027 4028 4029 4030 4031 4032 4033 4034 4035 4036 4037 4038 4039 4040 4041 4042 4043 4044 4045 4046 4047 4048 4049 4050 4051 4052 4053 4054 4055 4056 4057 4058 4059 4060 4061 4062 4063 4064 4065 4066 4067 4068 4069 4070 4071 4072 4073 4074 4075 4076 4077 4078 4079 4080 4081 4082 4083 4084 4085 4086 4087 4088 4089 4090 4091 4092 4093 4094 4095 4096 4097 4098 4099 4100 4101 4102 4103 4104 4105 4106 4107 4108 4109 4110 4111 4112 4113 4114 4115 4116 4117 4118 4119 4120 4121 4122 4123 4124 4125 4126 4127 4128 4129 4130 4131 4132 4133 4134 4135 4136 4137 4138 4139 4140 4141 4142 4143 4144 4145 4146 4147 4148 4149 4150 4151 4152 4153 4154 4155 4156 4157 4158 4159 4160 4161 4162 4163 4164 4165 4166 4167 4168 4169 4170 4171 4172 4173 4174 4175 4176 4177 4178 4179 4180 4181 4182 4183 4184 4185 4186 4187 4188 4189 4190 4191 4192 4193 4194 4195 4196 4197 4198 4199 4200 4201 4202 4203 4204 4205 4206 4207 4208 4209 4210 4211 4212 4213 4214 4215 4216 4217 4218 4219 4220 4221 4222 4223 4224 4225 4226 4227 4228 4229 4230 4231 4232 4233 4234 4235 4236 4237 4238 4239 4240 4241 4242 4243 4244 4245 4246 4247 4248 4249 4250 4251 4252 4253 4254 4255 4256 4257 4258 4259 4260 4261 4262 4263 4264 4265 4266 4267 4268 4269 4270 4271 4272 4273 4274 4275 4276 4277 4278 4279 4280 4281 4282 4283 4284 4285 4286 4287 4288 4289 4290 4291 4292 4293 4294 4295 4296 4297 4298 4299 4300 4301 4302 4303 4304 4305 4306 4307 4308 4309 4310 4311 4312 4313 4314 4315 4316 4317 4318 4319 4320 4321 4322 4323 4324 4325 4326 4327 4328 4329 4330 4331 4332 4333 4334 4335 4336 4337 4338 4339 4340 4341 4342 4343 4344 4345 4346 4347 4348 4349 4350 4351 4352 4353 4354 4355 4356 4357 4358 4359 4360 4361 4362 4363 4364 4365 4366 4367 4368 4369 4370 4371 4372 4373 4374 4375 4376 4377 4378 4379 4380 4381 4382 4383 4384 4385 4386 4387 4388 4389 4390 4391 4392 4393 4394 4395 4396 4397 4398 4399 4400 4401 4402 4403 4404 4405 4406 4407 4408 4409 4410 4411 4412 4413 4414 4415 4416 4417 4418 4419 4420 4421 4422 4423 4424 4425 4426 4427 4428 4429 4430 4431 4432 4433 4434 4435 4436 4437 4438 4439 4440 4441 4442 4443 4444 4445 4446 4447 4448 4449 4450 4451 4452 4453 4454 4455 4456 4457 4458 4459 4460 4461 4462 4463 4464 4465 4466 4467 4468 4469 4470 4471 4472 4473 4474 4475 4476 4477 4478 4479 4480 4481 4482 4483 4484 4485 4486 4487 4488 4489 4490 4491 4492 4493 4494 4495 4496 4497 4498 4499 4500 4501 4502 4503 4504 4505 4506 4507 4508 4509 4510 4511 4512 4513 4514 4515 4516 4517 4518 4519 4520 4521 4522 4523 4524 4525 4526 4527 4528 4529 4530 4531 4532 4533 4534 4535 4536 4537 4538 4539 4540 4541 4542 4543 4544 4545 4546 4547 4548 4549 4550 4551 4552 4553 4554 4555 4556 4557 4558 4559 4560 4561 4562 4563 4564 4565 4566 4567 4568 4569 4570 4571 4572 4573 4574 4575 4576 4577 4578 4579 4580 4581 4582 4583 4584 4585 4586 4587 4588 4589 4590 4591 4592 4593 4594 4595 4596 4597 4598 4599 4600 4601 4602 4603 4604 4605 4606 4607 4608 4609 4610 4611 4612 4613 4614 4615 4616 4617 4618 4619 4620 4621 4622 4623 4624 4625 4626 4627 4628 4629 4630 4631 4632 4633 4634 4635 4636 4637 4638 4639 4640 4641 4642 4643 4644 4645 4646 4647 4648 4649 4650 4651 4652 4653 4654 4655 4656 4657 4658 4659 4660 4661 4662 4663 4664 4665 4666 4667 4668 4669 4670 4671 4672 4673 4674 4675 4676 4677 4678 4679 4680 4681 4682 4683 4684 4685 4686 4687 4688 4689 4690 4691 4692 4693 4694 4695 4696 4697 4698 4699 4700 4701 4702 4703 4704 4705 4706 4707 4708 4709 4710 4711 4712 4713 4714 4715 4716 4717 4718 4719 4720 4721 4722 4723 4724 4725 4726 4727 4728 4729 4730 4731 4732 4733 4734 4735 4736 4737 4738 4739 4740 4741 4742 4743 4744 4745 4746 4747 4748 4749 4750 4751 4752 4753 4754 4755 4756 4757 4758 4759 4760 4761 4762 4763 4764 4765 4766 4767 4768 4769 4770 4771 4772 4773 4774 4775 4776 4777 4778 4779 4780 4781 4782 4783 4784 4785 4786 4787 4788 4789 4790 4791 4792 4793 4794 4795 4796 4797 4798 4799 4800 4801 4802 4803 4804 4805 4806 4807 4808 4809 4810 4811 4812 4813 4814 4815 4816 4817 4818 4819 4820 4821 4822 4823 4824 4825 4826 4827 4828 4829 4830 4831 4832 4833 4834 4835 4836 4837 4838 4839 4840 4841 4842 4843 4844 4845 4846 4847 4848 4849 4850 4851 4852 4853 4854 4855 4856 4857 4858 4859 4860 4861 4862 4863 4864 4865 4866 4867 4868 4869 4870 4871 4872 4873 4874 4875 4876 4877 4878 4879 4880 4881 4882 4883 4884 4885 4886 4887 4888 4889 4890 4891 4892 4893 4894 4895 4896 4897 4898 4899 4900 4901 4902 4903 4904 4905 4906 4907 4908 4909 4910 4911 4912 4913 4914 4915 4916 4917 4918 4919 4920 4921 4922 4923 4924 4925 4926 4927 4928 4929 4930 4931 4932 4933 4934 4935 4936 4937 4938 4939 4940 4941 4942 4943 4944 4945 4946 4947 4948 4949 4950 4951 4952 4953 4954 4955 4956 4957 4958 4959 4960 4961 4962 4963 4964 4965 4966 4967 4968 4969 4970 4971 4972 4973 4974 4975 4976 4977 4978 4979 4980 4981 4982 4983 4984 4985 4986 4987 4988 4989 4990 4991 4992 4993 4994 4995 4996 4997 4998 4999 5000 5001 5002 5003 5004 5005 5006 5007 5008 5009 5010 5011 5012 5013 5014 5015 5016 5017 5018 5019 5020 5021 5022 5023 5024 5025 5026 5027 5028 5029 5030 5031 5032 5033 5034 5035 5036 5037 5038 5039 5040 5041 5042 5043 5044 5045 5046 5047 5048 5049 5050 5051 5052 5053 5054 5055 5056 5057 5058 5059 5060 5061 5062 5063 5064 5065 5066 5067 5068 5069 5070 5071 5072 5073 5074 5075 5076 5077 5078 5079 5080 5081 5082 5083 5084 5085 5086 5087 5088 5089 5090 5091 5092 5093 5094 5095 5096 5097 5098 5099 5100 5101 5102 5103 5104 5105 5106 5107 5108 5109 5110 5111 5112 5113 5114 5115 5116 5117 5118 5119 5120 5121 5122 5123 5124 5125 5126 5127 5128 5129 5130 5131 5132 5133 5134 5135 5136 5137 5138 5139 5140 5141 5142 5143 5144 5145 5146 5147 5148 5149 5150 5151 5152 5153 5154 5155 5156 5157 5158 5159 5160 5161 5162 5163 5164 5165 5166 5167 5168 5169 5170 5171 5172 5173 5174 5175 5176 5177 5178 5179 5180 5181 5182 5183 5184 5185 5186 5187 5188 5189 5190 5191 5192 5193 5194 5195 5196 5197 5198 5199 5200 5201 5202 5203 5204 5205 5206 5207 5208 5209 5210 5211 5212 5213 5214 5215 5216 5217 5218 5219 5220 5221 5222 5223 5224 5225 5226 5227 5228 5229 5230 5231 5232 5233 5234 5235 5236 5237 5238 5239 5240 5241 5242 5243 5244 5245 5246 5247 5248 5249 5250 5251 5252 5253 5254 5255 5256 5257 5258 5259 5260 5261 5262 5263 5264 5265 5266 5267 5268 5269 5270 5271 5272 5273 5274 5275 5276 5277 5278 5279 5280 5281 5282 5283 5284 5285 5286 5287 5288 5289 5290 5291 5292 5293 5294 5295 5296 5297 5298 5299 5300 5301 5302 5303 5304 5305 5306 5307 5308 5309 5310 5311 5312 5313 5314 5315 5316 5317 5318 5319 5320 5321 5322 5323 5324 5325 5326 5327 5328 5329 5330 5331 5332 5333 5334 5335 5336 5337 5338 5339 5340 5341 5342 5343 5344 5345 5346 5347 5348 5349 5350 5351 5352 5353 5354 5355 5356 5357 5358 5359 5360 5361 5362 5363 5364 5365 5366 5367 5368 5369 5370 5371 5372 5373 5374 5375 5376 5377 5378 5379 5380 5381 5382 5383 5384 5385 5386 5387 5388 5389 5390 5391 5392 5393 5394 5395 5396 5397 5398 5399 5400 5401 5402 5403 5404 5405 5406 5407 5408 5409 5410 5411 5412 5413 5414 5415 5416 5417 5418 5419 5420 5421 5422 5423 5424 5425 5426 5427 5428 5429 5430 5431 5432 5433 5434 5435 5436 5437 5438 5439 5440 5441 5442 5443 5444 5445 5446 5447 5448 5449 5450 5451 5452 5453 5454 5455 5456 5457 5458 5459 5460 5461 5462 5463 5464 5465 5466 5467 5468 5469 5470 5471 5472 5473 5474 5475 5476 5477 5478 5479 5480 5481 5482 5483 5484 5485 5486 5487 5488 5489 5490 5491 5492 5493 5494 5495 5496 5497 5498 5499 5500 5501 5502 5503 5504 5505 5506 5507 5508 5509 5510 5511 5512 5513 5514 5515 5516 5517 5518 5519 5520 5521 5522 5523 5524 5525 5526 5527 5528 5529 5530 5531 5532 5533 5534 5535 5536 5537 5538 5539 5540 5541 5542 5543 5544 5545 5546 5547 5548 5549 5550 5551 5552 5553 5554 5555 5556 5557 5558 5559 5560 5561 5562 5563 5564 5565 5566 5567 5568 5569 5570 5571 5572 5573 5574 5575 5576 5577 5578 5579 5580 5581 5582 5583 5584 5585 5586 5587 5588 5589 5590 5591 5592 5593 5594 5595 5596 5597 5598 5599 5600 5601 5602 5603 5604 5605 5606 5607 5608 5609 5610 5611 5612 5613 5614 5615 5616 5617 5618 5619 5620 5621 5622 5623 5624 5625 5626 5627 5628 5629 5630 5631 5632 5633 5634 5635 5636 5637 5638 5639 5640 5641 5642 5643 5644 5645 5646 5647 5648 5649 5650 5651 5652 5653 5654 5655 5656 5657 5658 5659 5660 5661 5662 5663 5664 5665 5666 5667 5668 5669 5670 5671 5672 5673 5674 5675 5676 5677 5678 5679 5680 5681 5682 5683 5684 5685 5686 5687 5688 5689 5690 5691 5692 5693 5694 5695 5696 5697 5698 5699 5700 5701 5702 5703 5704 5705 5706 5707 5708 5709 5710 5711 5712 5713 5714 5715 5716 5717 5718 5719 5720 5721 5722 5723 5724 5725 5726 5727 5728 5729 5730 5731 5732 5733 5734 5735 5736 5737 5738 5739 5740 5741 5742 5743 5744 5745 5746 5747 5748 5749 5750 5751 5752 5753 5754 5755 5756 5757 5758 5759 5760 5761 5762 5763 5764 5765 5766 5767 5768 5769 5770 5771 5772 5773 5774 5775 5776 5777 5778 5779 5780 5781 5782 5783 5784 5785 5786 5787 5788 5789 5790 5791 5792 5793 5794 5795 5796 5797 5798 5799 5800 5801 5802 5803 5804 5805 5806 5807 5808 5809 5810 5811 5812 5813 5814 5815 5816 5817 5818 5819 5820 5821 5822 5823 5824 5825 5826 5827 5828 5829 5830 5831 5832 5833 5834 5835 5836 5837 5838 5839 5840 5841 5842 5843 5844 5845 5846 5847 5848 5849 5850 5851 5852 5853 5854 5855 5856 5857 5858 5859 5860 5861 5862 5863 5864 5865 5866 5867 5868 5869 5870 5871 5872 5873 5874 5875 5876 5877 5878 5879 5880 5881 5882 5883 5884 5885 5886 5887 5888 5889 5890 5891 5892 5893 5894 5895 5896 5897 5898 5899 5900 5901 5902 5903 5904 5905 5906 5907 5908 5909 5910 5911 5912 5913 5914 5915 5916 5917 5918 5919 5920 5921 5922 5923 5924 5925 5926 5927 5928 5929 5930 5931 5932 5933 5934 5935 5936 5937 5938 5939 5940 5941 5942 5943 5944 5945 5946 5947 5948 5949 5950 5951 5952 5953 5954 5955 5956 5957 5958 5959 5960 5961 5962 5963 5964 5965 5966 5967 5968 5969 5970 5971 5972 5973 5974 5975 5976 5977 5978 5979 5980 5981 5982 5983 5984 5985 5986 5987 5988 5989 5990 5991 5992 5993 5994 5995 5996 5997 5998 5999 6000 6001 6002 6003 6004 6005 6006 6007 6008 6009 6010 6011 6012 6013 6014 6015 6016 6017 6018 6019 6020 6021 6022 6023 6024 6025 6026 6027 6028 6029 6030 6031 6032 6033 6034 6035 6036 6037 6038 6039 6040 6041 6042 6043 6044 6045 6046 6047 6048 6049 6050 6051 6052 6053 6054 6055 6056 6057 6058 6059 6060 6061 6062 6063 6064 6065 6066 6067 6068 6069 6070 6071 6072 6073 6074 6075 6076 6077 6078 6079 6080 6081 6082 6083 6084 6085 6086 6087 6088 6089 6090 6091 6092 6093 6094 6095 6096 6097 6098 6099 6100 6101 6102 6103 6104 6105 6106 6107 6108 6109 6110 6111 6112 6113 6114 6115 6116 6117 6118 6119 6120 6121 6122 6123 6124 6125 6126 6127 6128 6129 6130 6131 6132 6133 6134 6135 6136 6137 6138 6139 6140 6141 6142 6143 6144 6145 6146 6147 6148 6149 6150 6151 6152 6153 6154 6155 6156 6157 6158 6159 6160 6161 6162 6163 6164 6165 6166 6167 6168 6169 6170 6171 6172 6173 6174 6175 6176 6177 6178 6179 6180 6181 6182 6183 6184 6185 6186 6187 6188 6189 6190 6191 6192 6193 6194 6195 6196 6197 6198 6199 6200 6201 6202 6203 6204 6205 6206 6207 6208 6209 6210 6211 6212 6213 6214 6215 6216 6217 6218 6219 6220 6221 6222 6223 6224 6225 6226 6227 6228 6229 6230 6231 6232 6233 6234 6235 6236 6237 6238 6239 6240 6241 6242 6243 6244 6245 6246 6247 6248 6249 6250 6251 6252 6253 6254 6255 6256 6257 6258 6259 6260 6261 6262 6263 6264 6265 6266 6267 6268 6269 6270 6271 6272 6273 6274 6275 6276 6277 6278 6279 6280 6281 6282 6283 6284 6285 6286 6287 6288 6289 6290 6291 6292 6293 6294 6295 6296 6297 6298 6299 6300 6301 6302 6303 6304 6305 6306 6307 6308 6309 6310 6311 6312 6313 6314 6315 6316 6317 6318 6319 6320 6321 6322 6323 6324 6325 6326 6327 6328 6329 6330 6331 6332 6333 6334 6335 6336 6337 6338 6339 6340 6341 6342 6343 6344 6345 6346 6347 6348 6349 6350 6351 6352 6353 6354 6355 6356 6357 6358 6359 6360 6361 6362 6363 6364 6365 6366 6367 6368 6369 6370 6371 6372 6373 6374 6375 6376 6377 6378 6379 6380 6381 6382 6383 6384 6385 6386 6387 6388 6389 6390 6391 6392 6393 6394 6395 6396 6397 6398 6399 6400 6401 6402 6403 6404 6405 6406 6407 6408 6409 6410 6411 6412 6413 6414 6415 6416 6417 6418 6419 6420 6421 6422 6423 6424 6425 6426 6427 6428 6429 6430 6431 6432 6433 6434 6435 6436 6437 6438 6439 6440 6441 6442 6443 6444 6445 6446 6447 6448 6449 6450 6451 6452 6453 6454 6455 6456 6457 6458 6459 6460 6461 6462 6463 6464 6465 6466 6467 6468 6469 6470 6471 6472 6473 6474 6475 6476 6477 6478 6479 6480 6481 6482 6483 6484 6485 6486 6487 6488 6489 6490 6491 6492 6493 6494 6495 6496 6497 6498 6499 6500 6501 6502 6503 6504 6505 6506 6507 6508 6509 6510 6511 6512 6513 6514 6515 6516 6517 6518 6519 6520 6521 6522 6523 6524 6525 6526 6527 6528 6529 6530 6531 6532 6533 6534 6535 6536 6537 6538 6539 6540 6541 6542 6543 6544 6545 6546 6547 6548 6549 6550 6551 6552 6553 6554 6555 6556 6557 6558 6559 6560 6561 6562 6563 6564 6565 6566 6567 6568 6569 6570 6571 6572 6573 6574 6575 6576 6577 6578 6579 6580 6581 6582 6583 6584 6585 6586 6587 6588 6589 6590 6591 6592 6593 6594 6595 6596 6597 6598 6599 6600 6601 6602 6603 6604 6605 6606 6607 6608 6609 6610 6611 6612 6613 6614 6615 6616 6617 6618 6619 6620 6621 6622 6623 6624 6625 6626 6627 6628 6629 6630 6631 6632 6633 6634 6635 6636 6637 6638 6639 6640 6641 6642 6643 6644 6645 6646 6647 6648 6649 6650 6651 6652 6653 6654 6655 6656 6657 6658 6659 6660 6661 6662 6663 6664 6665 6666 6667 6668 6669 6670 6671 6672 6673 6674 6675 6676 6677 6678 6679 6680 6681 6682 6683 6684 6685 6686 6687 6688 6689 6690 6691 6692 6693 6694 6695 6696 6697 6698 6699 6700 6701 6702 6703 6704 6705 6706 6707 6708 6709 6710 6711 6712 6713 6714 6715 6716 6717 6718 6719 6720 6721 6722 6723 6724 6725 6726 6727 6728 6729 6730 6731 6732 6733 6734 6735 6736 6737 6738 6739 6740 6741 6742 6743 6744 6745 6746 6747 6748 6749 6750 6751 6752 6753 6754 6755 6756 6757 6758 6759 6760 6761 6762 6763 6764 6765 6766 6767 6768 6769 6770 6771 6772 6773 6774 6775 6776 6777 6778 6779 6780 6781 6782 6783 6784 6785 6786 6787 6788 6789 6790 6791 6792 6793 6794 6795 6796 6797 6798 6799 6800 6801 6802 6803 6804 6805 6806 6807 6808 6809 6810 6811 6812 6813 6814 6815 6816 6817 6818 6819 6820 6821 6822 6823 6824 6825 6826 6827 6828 6829 6830 6831 6832 6833 6834 6835 6836 6837 6838 6839 6840 6841 6842 6843 6844 6845 6846 6847 6848 6849 6850 6851 6852 6853 6854 6855 6856 6857 6858 6859 6860 6861 6862 6863 6864 6865 6866 6867 6868 6869 6870 6871 6872 6873 6874 6875 6876 6877 6878 6879 6880 6881 6882 6883 6884 6885 6886 6887 6888 6889 6890 6891 6892 6893 6894 6895 6896 6897 6898 6899 6900 6901 6902 6903 6904 6905 6906 6907 6908 6909 6910 6911 6912 6913 6914 6915 6916 6917 6918 6919 6920 6921 6922 6923 6924 6925 6926 6927 6928 6929 6930 6931 6932 6933 6934 6935 6936 6937 6938 6939 6940 6941 6942 6943 6944 6945 6946 6947 6948 6949 6950 6951 6952 6953 6954 6955 6956 6957 6958 6959 6960 6961 6962 6963 6964 6965 6966 6967 6968 6969 6970 6971 6972 6973 6974 6975 6976 6977 6978 6979 6980 6981 6982 6983 6984 6985 6986 6987 6988 6989 6990 6991 6992 6993 6994 6995 6996 6997 6998 6999 7000 7001 7002 7003 7004 7005 7006 7007 7008 7009 7010 7011 7012 7013 7014 7015 7016 7017 7018 7019 7020 7021 7022 7023 7024 7025 7026 7027 7028 7029 7030 7031 7032 7033 7034 7035 7036 7037 7038 7039 7040 7041 7042 7043 7044 7045 7046 7047 7048 7049 7050 7051 7052 7053 7054 7055 7056 7057 7058 7059 7060 7061 7062 7063 7064 7065 7066 7067 7068 7069 7070 7071
//! [`StripeClient`](struct.StripeClient.html) is the main entry point for this library.
//!
//! Library created with [`libninja`](https://www.libninja.com).
#![allow(non_camel_case_types)]
#![allow(unused)]
pub mod model;
pub mod request;
pub use httpclient::{Error, Result, InMemoryResponseExt};
use crate::model::*;
impl StripeClient {
pub fn from_env() -> Self {
Self {
client: httpclient::Client::new().base_url("https://api.stripe.com/"),
authentication: StripeAuthentication::from_env(),
}
}
}
impl StripeAuthentication {
pub fn from_env() -> Self {
Self::BasicAuth {
basic_auth: {
let mut value = std::env::var("STRIPE_SECRET_KEY")
.expect("Environment variable BASIC_AUTH is not set.");
value.push_str(":");
STANDARD_NO_PAD.encode(value)
},
}
}
}
use base64::{Engine, engine::general_purpose::STANDARD_NO_PAD};
pub struct FluentRequest<'a, T> {
pub(crate) client: &'a StripeClient,
pub params: T,
}
pub struct StripeClient {
pub client: httpclient::Client,
authentication: StripeAuthentication,
}
impl StripeClient {}
impl StripeClient {
pub fn new(url: &str, authentication: StripeAuthentication) -> Self {
let client = httpclient::Client::new().base_url(url);
Self { client, authentication }
}
pub fn with_authentication(mut self, authentication: StripeAuthentication) -> Self {
self.authentication = authentication;
self
}
pub(crate) fn authenticate<'a>(
&self,
mut r: httpclient::RequestBuilder<'a>,
) -> httpclient::RequestBuilder<'a> {
match &self.authentication {
StripeAuthentication::BasicAuth { basic_auth } => {
r = r.basic_auth(basic_auth);
}
StripeAuthentication::BearerAuth { bearer_auth } => {
r = r.bearer_auth(bearer_auth);
}
}
r
}
pub fn with_middleware<M: httpclient::Middleware + 'static>(
mut self,
middleware: M,
) -> Self {
self.client = self.client.with_middleware(middleware);
self
}
///<p>Retrieves the details of an account.</p>
pub fn get_account(&self) -> FluentRequest<'_, request::GetAccountRequest> {
FluentRequest {
client: self,
params: request::GetAccountRequest {
expand: None,
},
}
}
///<p>Creates an AccountLink object that includes a single-use Stripe URL that the platform can redirect their user to in order to take them through the Connect Onboarding flow.</p>
pub fn post_account_links(
&self,
) -> FluentRequest<'_, request::PostAccountLinksRequest> {
FluentRequest {
client: self,
params: request::PostAccountLinksRequest {
},
}
}
///<p>Creates a AccountSession object that includes a single-use token that the platform can use on their front-end to grant client-side API access.</p>
pub fn post_account_sessions(
&self,
) -> FluentRequest<'_, request::PostAccountSessionsRequest> {
FluentRequest {
client: self,
params: request::PostAccountSessionsRequest {
},
}
}
///<p>Returns a list of accounts connected to your platform via <a href="/docs/connect">Connect</a>. If you’re not a platform, the list is empty.</p>
pub fn get_accounts(&self) -> FluentRequest<'_, request::GetAccountsRequest> {
FluentRequest {
client: self,
params: request::GetAccountsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>With <a href="/docs/connect">Connect</a>, you can create Stripe accounts for your users.
To do this, you’ll first need to <a href="https://dashboard.stripe.com/account/applications/settings">register your platform</a>.</p>
<p>If you’ve already collected information for your connected accounts, you <a href="/docs/connect/best-practices#onboarding">can prefill that information</a> when
creating the account. Connect Onboarding won’t ask for the prefilled information during account onboarding.
You can prefill any information on the account.</p>*/
pub fn post_accounts(&self) -> FluentRequest<'_, request::PostAccountsRequest> {
FluentRequest {
client: self,
params: request::PostAccountsRequest {},
}
}
///<p>Retrieves the details of an account.</p>
pub fn get_accounts_account(
&self,
account: &str,
) -> FluentRequest<'_, request::GetAccountsAccountRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountRequest {
account: account.to_owned(),
expand: None,
},
}
}
/**<p>Updates a <a href="/docs/connect/accounts">connected account</a> by setting the values of the parameters passed. Any parameters not provided are
left unchanged.</p>
<p>For Custom accounts, you can update any information on the account. For other accounts, you can update all information until that
account has started to go through Connect Onboarding. Once you create an <a href="/docs/api/account_links">Account Link</a>
for a Standard or Express account, some parameters can no longer be changed. These are marked as <strong>Custom Only</strong> or <strong>Custom and Express</strong>
below.</p>
<p>To update your own account, use the <a href="https://dashboard.stripe.com/settings/account">Dashboard</a>. Refer to our
<a href="/docs/connect/updating-accounts">Connect</a> documentation to learn more about updating accounts.</p>*/
pub fn post_accounts_account(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountRequest {
account: account.to_owned(),
},
}
}
/**<p>With <a href="/docs/connect">Connect</a>, you can delete accounts you manage.</p>
<p>Accounts created using test-mode keys can be deleted at any time. Standard accounts created using live-mode keys cannot be deleted. Custom or Express accounts created using live-mode keys can only be deleted once all balances are zero.</p>
<p>If you want to delete your own account, use the <a href="https://dashboard.stripe.com/settings/account">account information tab in your account settings</a> instead.</p>*/
pub fn delete_accounts_account(
&self,
account: &str,
) -> FluentRequest<'_, request::DeleteAccountsAccountRequest> {
FluentRequest {
client: self,
params: request::DeleteAccountsAccountRequest {
account: account.to_owned(),
},
}
}
///<p>Create an external account for a given account.</p>
pub fn post_accounts_account_bank_accounts(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountBankAccountsRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountBankAccountsRequest {
account: account.to_owned(),
},
}
}
///<p>Retrieve a specified external account for a given account.</p>
pub fn get_accounts_account_bank_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::GetAccountsAccountBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountBankAccountsIdRequest {
account: account.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
/**<p>Updates the metadata, account holder name, account holder type of a bank account belonging to a <a href="/docs/connect/custom-accounts">Custom account</a>, and optionally sets it as the default for its currency. Other bank account details are not editable by design.</p>
<p>You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.</p>*/
pub fn post_accounts_account_bank_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::PostAccountsAccountBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountBankAccountsIdRequest {
account: account.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Delete a specified external account for a given account.</p>
pub fn delete_accounts_account_bank_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteAccountsAccountBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteAccountsAccountBankAccountsIdRequest {
account: account.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Returns a list of capabilities associated with the account. The capabilities are returned sorted by creation date, with the most recent capability appearing first.</p>
pub fn get_accounts_account_capabilities(
&self,
account: &str,
) -> FluentRequest<'_, request::GetAccountsAccountCapabilitiesRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountCapabilitiesRequest {
account: account.to_owned(),
expand: None,
},
}
}
///<p>Retrieves information about the specified Account Capability.</p>
pub fn get_accounts_account_capabilities_capability(
&self,
account: &str,
capability: &str,
) -> FluentRequest<'_, request::GetAccountsAccountCapabilitiesCapabilityRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountCapabilitiesCapabilityRequest {
account: account.to_owned(),
capability: capability.to_owned(),
expand: None,
},
}
}
///<p>Updates an existing Account Capability. Request or remove a capability by updating its <code>requested</code> parameter.</p>
pub fn post_accounts_account_capabilities_capability(
&self,
account: &str,
capability: &str,
) -> FluentRequest<'_, request::PostAccountsAccountCapabilitiesCapabilityRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountCapabilitiesCapabilityRequest {
account: account.to_owned(),
capability: capability.to_owned(),
},
}
}
///<p>List external accounts for an account.</p>
pub fn get_accounts_account_external_accounts(
&self,
account: &str,
) -> FluentRequest<'_, request::GetAccountsAccountExternalAccountsRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountExternalAccountsRequest {
account: account.to_owned(),
ending_before: None,
expand: None,
limit: None,
object: None,
starting_after: None,
},
}
}
///<p>Create an external account for a given account.</p>
pub fn post_accounts_account_external_accounts(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountExternalAccountsRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountExternalAccountsRequest {
account: account.to_owned(),
},
}
}
///<p>Retrieve a specified external account for a given account.</p>
pub fn get_accounts_account_external_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::GetAccountsAccountExternalAccountsIdRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountExternalAccountsIdRequest {
account: account.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
/**<p>Updates the metadata, account holder name, account holder type of a bank account belonging to a <a href="/docs/connect/custom-accounts">Custom account</a>, and optionally sets it as the default for its currency. Other bank account details are not editable by design.</p>
<p>You can re-enable a disabled bank account by performing an update call without providing any arguments or changes.</p>*/
pub fn post_accounts_account_external_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::PostAccountsAccountExternalAccountsIdRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountExternalAccountsIdRequest {
account: account.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Delete a specified external account for a given account.</p>
pub fn delete_accounts_account_external_accounts_id(
&self,
account: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteAccountsAccountExternalAccountsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteAccountsAccountExternalAccountsIdRequest {
account: account.to_owned(),
id: id.to_owned(),
},
}
}
/**<p>Creates a single-use login link for an Express account to access their Stripe dashboard.</p>
<p><strong>You may only create login links for <a href="/docs/connect/express-accounts">Express accounts</a> connected to your platform</strong>.</p>*/
pub fn post_accounts_account_login_links(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountLoginLinksRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountLoginLinksRequest {
account: account.to_owned(),
},
}
}
///<p>Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.</p>
pub fn get_accounts_account_people(
&self,
account: &str,
) -> FluentRequest<'_, request::GetAccountsAccountPeopleRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountPeopleRequest {
account: account.to_owned(),
ending_before: None,
expand: None,
limit: None,
relationship: None,
starting_after: None,
},
}
}
///<p>Creates a new person.</p>
pub fn post_accounts_account_people(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountPeopleRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountPeopleRequest {
account: account.to_owned(),
},
}
}
///<p>Retrieves an existing person.</p>
pub fn get_accounts_account_people_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::GetAccountsAccountPeoplePersonRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountPeoplePersonRequest {
account: account.to_owned(),
expand: None,
person: person.to_owned(),
},
}
}
///<p>Updates an existing person.</p>
pub fn post_accounts_account_people_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::PostAccountsAccountPeoplePersonRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountPeoplePersonRequest {
account: account.to_owned(),
person: person.to_owned(),
},
}
}
///<p>Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the <code>account_opener</code>. If your integration is using the <code>executive</code> parameter, you cannot delete the only verified <code>executive</code> on file.</p>
pub fn delete_accounts_account_people_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::DeleteAccountsAccountPeoplePersonRequest> {
FluentRequest {
client: self,
params: request::DeleteAccountsAccountPeoplePersonRequest {
account: account.to_owned(),
person: person.to_owned(),
},
}
}
///<p>Returns a list of people associated with the account’s legal entity. The people are returned sorted by creation date, with the most recent people appearing first.</p>
pub fn get_accounts_account_persons(
&self,
account: &str,
) -> FluentRequest<'_, request::GetAccountsAccountPersonsRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountPersonsRequest {
account: account.to_owned(),
ending_before: None,
expand: None,
limit: None,
relationship: None,
starting_after: None,
},
}
}
///<p>Creates a new person.</p>
pub fn post_accounts_account_persons(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountPersonsRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountPersonsRequest {
account: account.to_owned(),
},
}
}
///<p>Retrieves an existing person.</p>
pub fn get_accounts_account_persons_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::GetAccountsAccountPersonsPersonRequest> {
FluentRequest {
client: self,
params: request::GetAccountsAccountPersonsPersonRequest {
account: account.to_owned(),
expand: None,
person: person.to_owned(),
},
}
}
///<p>Updates an existing person.</p>
pub fn post_accounts_account_persons_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::PostAccountsAccountPersonsPersonRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountPersonsPersonRequest {
account: account.to_owned(),
person: person.to_owned(),
},
}
}
///<p>Deletes an existing person’s relationship to the account’s legal entity. Any person with a relationship for an account can be deleted through the API, except if the person is the <code>account_opener</code>. If your integration is using the <code>executive</code> parameter, you cannot delete the only verified <code>executive</code> on file.</p>
pub fn delete_accounts_account_persons_person(
&self,
account: &str,
person: &str,
) -> FluentRequest<'_, request::DeleteAccountsAccountPersonsPersonRequest> {
FluentRequest {
client: self,
params: request::DeleteAccountsAccountPersonsPersonRequest {
account: account.to_owned(),
person: person.to_owned(),
},
}
}
/**<p>With <a href="/docs/connect">Connect</a>, you may flag accounts as suspicious.</p>
<p>Test-mode Custom and Express accounts can be rejected at any time. Accounts created using live-mode keys may only be rejected once all balances are zero.</p>*/
pub fn post_accounts_account_reject(
&self,
account: &str,
) -> FluentRequest<'_, request::PostAccountsAccountRejectRequest> {
FluentRequest {
client: self,
params: request::PostAccountsAccountRejectRequest {
account: account.to_owned(),
},
}
}
///<p>List apple pay domains.</p>
pub fn get_apple_pay_domains(
&self,
) -> FluentRequest<'_, request::GetApplePayDomainsRequest> {
FluentRequest {
client: self,
params: request::GetApplePayDomainsRequest {
domain_name: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Create an apple pay domain.</p>
pub fn post_apple_pay_domains(
&self,
) -> FluentRequest<'_, request::PostApplePayDomainsRequest> {
FluentRequest {
client: self,
params: request::PostApplePayDomainsRequest {
},
}
}
///<p>Retrieve an apple pay domain.</p>
pub fn get_apple_pay_domains_domain(
&self,
domain: &str,
) -> FluentRequest<'_, request::GetApplePayDomainsDomainRequest> {
FluentRequest {
client: self,
params: request::GetApplePayDomainsDomainRequest {
domain: domain.to_owned(),
expand: None,
},
}
}
///<p>Delete an apple pay domain.</p>
pub fn delete_apple_pay_domains_domain(
&self,
domain: &str,
) -> FluentRequest<'_, request::DeleteApplePayDomainsDomainRequest> {
FluentRequest {
client: self,
params: request::DeleteApplePayDomainsDomainRequest {
domain: domain.to_owned(),
},
}
}
///<p>Returns a list of application fees you’ve previously collected. The application fees are returned in sorted order, with the most recent fees appearing first.</p>
pub fn get_application_fees(
&self,
) -> FluentRequest<'_, request::GetApplicationFeesRequest> {
FluentRequest {
client: self,
params: request::GetApplicationFeesRequest {
charge: None,
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>By default, you can see the 10 most recent refunds stored directly on the application fee object, but you can also retrieve details about a specific refund stored on the application fee.</p>
pub fn get_application_fees_fee_refunds_id(
&self,
fee: &str,
id: &str,
) -> FluentRequest<'_, request::GetApplicationFeesFeeRefundsIdRequest> {
FluentRequest {
client: self,
params: request::GetApplicationFeesFeeRefundsIdRequest {
expand: None,
fee: fee.to_owned(),
id: id.to_owned(),
},
}
}
/**<p>Updates the specified application fee refund by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>This request only accepts metadata as an argument.</p>*/
pub fn post_application_fees_fee_refunds_id(
&self,
fee: &str,
id: &str,
) -> FluentRequest<'_, request::PostApplicationFeesFeeRefundsIdRequest> {
FluentRequest {
client: self,
params: request::PostApplicationFeesFeeRefundsIdRequest {
fee: fee.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Retrieves the details of an application fee that your account has collected. The same information is returned when refunding the application fee.</p>
pub fn get_application_fees_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetApplicationFeesIdRequest> {
FluentRequest {
client: self,
params: request::GetApplicationFeesIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
pub fn post_application_fees_id_refund(
&self,
id: &str,
) -> FluentRequest<'_, request::PostApplicationFeesIdRefundRequest> {
FluentRequest {
client: self,
params: request::PostApplicationFeesIdRefundRequest {
id: id.to_owned(),
},
}
}
///<p>You can see a list of the refunds belonging to a specific application fee. Note that the 10 most recent refunds are always available by default on the application fee object. If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional refunds.</p>
pub fn get_application_fees_id_refunds(
&self,
id: &str,
) -> FluentRequest<'_, request::GetApplicationFeesIdRefundsRequest> {
FluentRequest {
client: self,
params: request::GetApplicationFeesIdRefundsRequest {
ending_before: None,
expand: None,
id: id.to_owned(),
limit: None,
starting_after: None,
},
}
}
/**<p>Refunds an application fee that has previously been collected but not yet refunded.
Funds will be refunded to the Stripe account from which the fee was originally collected.</p>
<p>You can optionally refund only part of an application fee.
You can do so multiple times, until the entire fee has been refunded.</p>
<p>Once entirely refunded, an application fee can’t be refunded again.
This method will raise an error when called on an already-refunded application fee,
or when trying to refund more money than is left on an application fee.</p>*/
pub fn post_application_fees_id_refunds(
&self,
id: &str,
) -> FluentRequest<'_, request::PostApplicationFeesIdRefundsRequest> {
FluentRequest {
client: self,
params: request::PostApplicationFeesIdRefundsRequest {
id: id.to_owned(),
},
}
}
///<p>List all secrets stored on the given scope.</p>
pub fn get_apps_secrets(
&self,
scope: ScopeParam,
) -> FluentRequest<'_, request::GetAppsSecretsRequest> {
FluentRequest {
client: self,
params: request::GetAppsSecretsRequest {
ending_before: None,
expand: None,
limit: None,
scope,
starting_after: None,
},
}
}
///<p>Create or replace a secret in the secret store.</p>
pub fn post_apps_secrets(
&self,
) -> FluentRequest<'_, request::PostAppsSecretsRequest> {
FluentRequest {
client: self,
params: request::PostAppsSecretsRequest {},
}
}
///<p>Deletes a secret from the secret store by name and scope.</p>
pub fn post_apps_secrets_delete(
&self,
) -> FluentRequest<'_, request::PostAppsSecretsDeleteRequest> {
FluentRequest {
client: self,
params: request::PostAppsSecretsDeleteRequest {
},
}
}
///<p>Finds a secret in the secret store by name and scope.</p>
pub fn get_apps_secrets_find(
&self,
name: &str,
scope: ScopeParam,
) -> FluentRequest<'_, request::GetAppsSecretsFindRequest> {
FluentRequest {
client: self,
params: request::GetAppsSecretsFindRequest {
expand: None,
name: name.to_owned(),
scope,
},
}
}
/**<p>Retrieves the current account balance, based on the authentication that was used to make the request.
For a sample request, see <a href="/docs/connect/account-balances#accounting-for-negative-balances">Accounting for negative balances</a>.</p>*/
pub fn get_balance(&self) -> FluentRequest<'_, request::GetBalanceRequest> {
FluentRequest {
client: self,
params: request::GetBalanceRequest {
expand: None,
},
}
}
/**<p>Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.</p>
<p>Note that this endpoint was previously called “Balance history” and used the path <code>/v1/balance/history</code>.</p>*/
pub fn get_balance_history(
&self,
) -> FluentRequest<'_, request::GetBalanceHistoryRequest> {
FluentRequest {
client: self,
params: request::GetBalanceHistoryRequest {
created: None,
currency: None,
ending_before: None,
expand: None,
limit: None,
payout: None,
source: None,
starting_after: None,
type_: None,
},
}
}
/**<p>Retrieves the balance transaction with the given ID.</p>
<p>Note that this endpoint previously used the path <code>/v1/balance/history/:id</code>.</p>*/
pub fn get_balance_history_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetBalanceHistoryIdRequest> {
FluentRequest {
client: self,
params: request::GetBalanceHistoryIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
/**<p>Returns a list of transactions that have contributed to the Stripe account balance (e.g., charges, transfers, and so forth). The transactions are returned in sorted order, with the most recent transactions appearing first.</p>
<p>Note that this endpoint was previously called “Balance history” and used the path <code>/v1/balance/history</code>.</p>*/
pub fn get_balance_transactions(
&self,
) -> FluentRequest<'_, request::GetBalanceTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetBalanceTransactionsRequest {
created: None,
currency: None,
ending_before: None,
expand: None,
limit: None,
payout: None,
source: None,
starting_after: None,
type_: None,
},
}
}
/**<p>Retrieves the balance transaction with the given ID.</p>
<p>Note that this endpoint previously used the path <code>/v1/balance/history/:id</code>.</p>*/
pub fn get_balance_transactions_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetBalanceTransactionsIdRequest> {
FluentRequest {
client: self,
params: request::GetBalanceTransactionsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Returns a list of configurations that describe the functionality of the customer portal.</p>
pub fn get_billing_portal_configurations(
&self,
) -> FluentRequest<'_, request::GetBillingPortalConfigurationsRequest> {
FluentRequest {
client: self,
params: request::GetBillingPortalConfigurationsRequest {
active: None,
ending_before: None,
expand: None,
is_default: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a configuration that describes the functionality and behavior of a PortalSession</p>
pub fn post_billing_portal_configurations(
&self,
) -> FluentRequest<'_, request::PostBillingPortalConfigurationsRequest> {
FluentRequest {
client: self,
params: request::PostBillingPortalConfigurationsRequest {
},
}
}
///<p>Retrieves a configuration that describes the functionality of the customer portal.</p>
pub fn get_billing_portal_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<'_, request::GetBillingPortalConfigurationsConfigurationRequest> {
FluentRequest {
client: self,
params: request::GetBillingPortalConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
expand: None,
},
}
}
///<p>Updates a configuration that describes the functionality of the customer portal.</p>
pub fn post_billing_portal_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<
'_,
request::PostBillingPortalConfigurationsConfigurationRequest,
> {
FluentRequest {
client: self,
params: request::PostBillingPortalConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
},
}
}
///<p>Creates a session of the customer portal.</p>
pub fn post_billing_portal_sessions(
&self,
) -> FluentRequest<'_, request::PostBillingPortalSessionsRequest> {
FluentRequest {
client: self,
params: request::PostBillingPortalSessionsRequest {
},
}
}
///<p>Returns a list of charges you’ve previously created. The charges are returned in sorted order, with the most recent charges appearing first.</p>
pub fn get_charges(&self) -> FluentRequest<'_, request::GetChargesRequest> {
FluentRequest {
client: self,
params: request::GetChargesRequest {
created: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
payment_intent: None,
starting_after: None,
transfer_group: None,
},
}
}
/**<p>Use the <a href="/docs/api/payment_intents">Payment Intents API</a> to initiate a new payment instead
of using this method. Confirmation of the PaymentIntent creates the <code>Charge</code>
object used to request payment, so this method is limited to legacy integrations.</p>*/
pub fn post_charges(&self) -> FluentRequest<'_, request::PostChargesRequest> {
FluentRequest {
client: self,
params: request::PostChargesRequest {},
}
}
/**<p>Search for charges you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_charges_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetChargesSearchRequest> {
FluentRequest {
client: self,
params: request::GetChargesSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
///<p>Retrieves the details of a charge that has previously been created. Supply the unique charge ID that was returned from your previous request, and Stripe will return the corresponding charge information. The same information is returned when creating or refunding the charge.</p>
pub fn get_charges_charge(
&self,
charge: &str,
) -> FluentRequest<'_, request::GetChargesChargeRequest> {
FluentRequest {
client: self,
params: request::GetChargesChargeRequest {
charge: charge.to_owned(),
expand: None,
},
}
}
///<p>Updates the specified charge by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_charges_charge(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeRequest {
charge: charge.to_owned(),
},
}
}
/**<p>Capture the payment of an existing, uncaptured charge that was created with the <code>capture</code> option set to false.</p>
<p>Uncaptured payments expire a set number of days after they are created (<a href="/docs/charges/placing-a-hold">7 by default</a>), after which they are marked as refunded and capture attempts will fail.</p>
<p>Don’t use this method to capture a PaymentIntent-initiated charge. Use <a href="/docs/api/payment_intents/capture">Capture a PaymentIntent</a>.</p>*/
pub fn post_charges_charge_capture(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeCaptureRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeCaptureRequest {
charge: charge.to_owned(),
},
}
}
///<p>Retrieve a dispute for a specified charge.</p>
pub fn get_charges_charge_dispute(
&self,
charge: &str,
) -> FluentRequest<'_, request::GetChargesChargeDisputeRequest> {
FluentRequest {
client: self,
params: request::GetChargesChargeDisputeRequest {
charge: charge.to_owned(),
expand: None,
},
}
}
pub fn post_charges_charge_dispute(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeDisputeRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeDisputeRequest {
charge: charge.to_owned(),
},
}
}
pub fn post_charges_charge_dispute_close(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeDisputeCloseRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeDisputeCloseRequest {
charge: charge.to_owned(),
},
}
}
/**<p>When you create a new refund, you must specify either a Charge or a PaymentIntent object.</p>
<p>This action refunds a previously created charge that’s not refunded yet.
Funds are refunded to the credit or debit card that’s originally charged.</p>
<p>You can optionally refund only part of a charge.
You can repeat this until the entire charge is refunded.</p>
<p>After you entirely refund a charge, you can’t refund it again.
This method raises an error when it’s called on an already-refunded charge,
or when you attempt to refund more money than is left on a charge.</p>*/
pub fn post_charges_charge_refund(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeRefundRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeRefundRequest {
charge: charge.to_owned(),
},
}
}
///<p>You can see a list of the refunds belonging to a specific charge. Note that the 10 most recent refunds are always available by default on the charge object. If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional refunds.</p>
pub fn get_charges_charge_refunds(
&self,
charge: &str,
) -> FluentRequest<'_, request::GetChargesChargeRefundsRequest> {
FluentRequest {
client: self,
params: request::GetChargesChargeRefundsRequest {
charge: charge.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.</p>
<p>Creating a new refund will refund a charge that has previously been created but not yet refunded.
Funds will be refunded to the credit or debit card that was originally charged.</p>
<p>You can optionally refund only part of a charge.
You can do so multiple times, until the entire charge has been refunded.</p>
<p>Once entirely refunded, a charge can’t be refunded again.
This method will raise an error when called on an already-refunded charge,
or when trying to refund more money than is left on a charge.</p>*/
pub fn post_charges_charge_refunds(
&self,
charge: &str,
) -> FluentRequest<'_, request::PostChargesChargeRefundsRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeRefundsRequest {
charge: charge.to_owned(),
},
}
}
///<p>Retrieves the details of an existing refund.</p>
pub fn get_charges_charge_refunds_refund(
&self,
charge: &str,
refund: &str,
) -> FluentRequest<'_, request::GetChargesChargeRefundsRefundRequest> {
FluentRequest {
client: self,
params: request::GetChargesChargeRefundsRefundRequest {
charge: charge.to_owned(),
expand: None,
refund: refund.to_owned(),
},
}
}
///<p>Update a specified refund.</p>
pub fn post_charges_charge_refunds_refund(
&self,
charge: &str,
refund: &str,
) -> FluentRequest<'_, request::PostChargesChargeRefundsRefundRequest> {
FluentRequest {
client: self,
params: request::PostChargesChargeRefundsRefundRequest {
charge: charge.to_owned(),
refund: refund.to_owned(),
},
}
}
///<p>Returns a list of Checkout Sessions.</p>
pub fn get_checkout_sessions(
&self,
) -> FluentRequest<'_, request::GetCheckoutSessionsRequest> {
FluentRequest {
client: self,
params: request::GetCheckoutSessionsRequest {
customer: None,
customer_details: None,
ending_before: None,
expand: None,
limit: None,
payment_intent: None,
payment_link: None,
starting_after: None,
status: None,
subscription: None,
},
}
}
///<p>Creates a Session object.</p>
pub fn post_checkout_sessions(
&self,
) -> FluentRequest<'_, request::PostCheckoutSessionsRequest> {
FluentRequest {
client: self,
params: request::PostCheckoutSessionsRequest {
},
}
}
///<p>Retrieves a Session object.</p>
pub fn get_checkout_sessions_session(
&self,
session: &str,
) -> FluentRequest<'_, request::GetCheckoutSessionsSessionRequest> {
FluentRequest {
client: self,
params: request::GetCheckoutSessionsSessionRequest {
expand: None,
session: session.to_owned(),
},
}
}
/**<p>A Session can be expired when it is in one of these statuses: <code>open</code> </p>
<p>After it expires, a customer can’t complete a Session and customers loading the Session see a message saying the Session is expired.</p>*/
pub fn post_checkout_sessions_session_expire(
&self,
session: &str,
) -> FluentRequest<'_, request::PostCheckoutSessionsSessionExpireRequest> {
FluentRequest {
client: self,
params: request::PostCheckoutSessionsSessionExpireRequest {
session: session.to_owned(),
},
}
}
///<p>When retrieving a Checkout Session, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_checkout_sessions_session_line_items(
&self,
session: &str,
) -> FluentRequest<'_, request::GetCheckoutSessionsSessionLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetCheckoutSessionsSessionLineItemsRequest {
ending_before: None,
expand: None,
limit: None,
session: session.to_owned(),
starting_after: None,
},
}
}
/**<p>Lists all Climate order objects. The orders are returned sorted by creation date, with the
most recently created orders appearing first.</p>*/
pub fn get_climate_orders(
&self,
) -> FluentRequest<'_, request::GetClimateOrdersRequest> {
FluentRequest {
client: self,
params: request::GetClimateOrdersRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>Creates a Climate order object for a given Climate product. The order will be processed immediately
after creation and payment will be deducted your Stripe balance.</p>*/
pub fn post_climate_orders(
&self,
) -> FluentRequest<'_, request::PostClimateOrdersRequest> {
FluentRequest {
client: self,
params: request::PostClimateOrdersRequest {
},
}
}
///<p>Retrieves the details of a Climate order object with the given ID.</p>
pub fn get_climate_orders_order(
&self,
order: &str,
) -> FluentRequest<'_, request::GetClimateOrdersOrderRequest> {
FluentRequest {
client: self,
params: request::GetClimateOrdersOrderRequest {
expand: None,
order: order.to_owned(),
},
}
}
///<p>Updates the specified order by setting the values of the parameters passed.</p>
pub fn post_climate_orders_order(
&self,
order: &str,
) -> FluentRequest<'_, request::PostClimateOrdersOrderRequest> {
FluentRequest {
client: self,
params: request::PostClimateOrdersOrderRequest {
order: order.to_owned(),
},
}
}
/**<p>Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the
reservation <code>amount_subtotal</code>, but not the <code>amount_fees</code> for user-triggered cancellations. Frontier
might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
provides 90 days advance notice and refunds the <code>amount_total</code>.</p>*/
pub fn post_climate_orders_order_cancel(
&self,
order: &str,
) -> FluentRequest<'_, request::PostClimateOrdersOrderCancelRequest> {
FluentRequest {
client: self,
params: request::PostClimateOrdersOrderCancelRequest {
order: order.to_owned(),
},
}
}
///<p>Lists all available Climate product objects.</p>
pub fn get_climate_products(
&self,
) -> FluentRequest<'_, request::GetClimateProductsRequest> {
FluentRequest {
client: self,
params: request::GetClimateProductsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves the details of a Climate product with the given ID.</p>
pub fn get_climate_products_product(
&self,
product: &str,
) -> FluentRequest<'_, request::GetClimateProductsProductRequest> {
FluentRequest {
client: self,
params: request::GetClimateProductsProductRequest {
expand: None,
product: product.to_owned(),
},
}
}
/**<p>Lists all Climate order objects. The orders are returned sorted by creation date, with the
most recently created orders appearing first.</p>*/
pub fn get_climate_reservations(
&self,
) -> FluentRequest<'_, request::GetClimateReservationsRequest> {
FluentRequest {
client: self,
params: request::GetClimateReservationsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>Creates a Climate order object for a given Climate product. The order will be processed immediately
after creation and payment will be deducted your Stripe balance.</p>*/
pub fn post_climate_reservations(
&self,
) -> FluentRequest<'_, request::PostClimateReservationsRequest> {
FluentRequest {
client: self,
params: request::PostClimateReservationsRequest {
},
}
}
///<p>Retrieves the details of a Climate order object with the given ID.</p>
pub fn get_climate_reservations_order(
&self,
order: &str,
) -> FluentRequest<'_, request::GetClimateReservationsOrderRequest> {
FluentRequest {
client: self,
params: request::GetClimateReservationsOrderRequest {
expand: None,
order: order.to_owned(),
},
}
}
///<p>Updates the specified order by setting the values of the parameters passed.</p>
pub fn post_climate_reservations_order(
&self,
order: &str,
) -> FluentRequest<'_, request::PostClimateReservationsOrderRequest> {
FluentRequest {
client: self,
params: request::PostClimateReservationsOrderRequest {
order: order.to_owned(),
},
}
}
/**<p>Cancels a Climate order. You can cancel an order within 30 days of creation. Stripe refunds the
reservation <code>amount_subtotal</code>, but not the <code>amount_fees</code> for user-triggered cancellations. Frontier
might cancel reservations if suppliers fail to deliver. If Frontier cancels the reservation, Stripe
provides 90 days advance notice and refunds the <code>amount_total</code>.</p>*/
pub fn post_climate_reservations_order_cancel(
&self,
order: &str,
) -> FluentRequest<'_, request::PostClimateReservationsOrderCancelRequest> {
FluentRequest {
client: self,
params: request::PostClimateReservationsOrderCancelRequest {
order: order.to_owned(),
},
}
}
/**<p>Confirms a Climate order. When you confirm your order, we immediately deduct the funds from your
Stripe balance.</p>*/
pub fn post_climate_reservations_order_confirm(
&self,
order: &str,
) -> FluentRequest<'_, request::PostClimateReservationsOrderConfirmRequest> {
FluentRequest {
client: self,
params: request::PostClimateReservationsOrderConfirmRequest {
order: order.to_owned(),
},
}
}
///<p>Lists all available Climate supplier objects.</p>
pub fn get_climate_suppliers(
&self,
) -> FluentRequest<'_, request::GetClimateSuppliersRequest> {
FluentRequest {
client: self,
params: request::GetClimateSuppliersRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves a Climate supplier object.</p>
pub fn get_climate_suppliers_supplier(
&self,
supplier: &str,
) -> FluentRequest<'_, request::GetClimateSuppliersSupplierRequest> {
FluentRequest {
client: self,
params: request::GetClimateSuppliersSupplierRequest {
expand: None,
supplier: supplier.to_owned(),
},
}
}
///<p>Lists all Country Spec objects available in the API.</p>
pub fn get_country_specs(
&self,
) -> FluentRequest<'_, request::GetCountrySpecsRequest> {
FluentRequest {
client: self,
params: request::GetCountrySpecsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Returns a Country Spec for a given Country code.</p>
pub fn get_country_specs_country(
&self,
country: &str,
) -> FluentRequest<'_, request::GetCountrySpecsCountryRequest> {
FluentRequest {
client: self,
params: request::GetCountrySpecsCountryRequest {
country: country.to_owned(),
expand: None,
},
}
}
///<p>Returns a list of your coupons.</p>
pub fn get_coupons(&self) -> FluentRequest<'_, request::GetCouponsRequest> {
FluentRequest {
client: self,
params: request::GetCouponsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>You can create coupons easily via the <a href="https://dashboard.stripe.com/coupons">coupon management</a> page of the Stripe dashboard. Coupon creation is also accessible via the API if you need to create coupons on the fly.</p>
<p>A coupon has either a <code>percent_off</code> or an <code>amount_off</code> and <code>currency</code>. If you set an <code>amount_off</code>, that amount will be subtracted from any invoice’s subtotal. For example, an invoice with a subtotal of <currency>100</currency> will have a final total of <currency>0</currency> if a coupon with an <code>amount_off</code> of <amount>200</amount> is applied to it and an invoice with a subtotal of <currency>300</currency> will have a final total of <currency>100</currency> if a coupon with an <code>amount_off</code> of <amount>200</amount> is applied to it.</p>*/
pub fn post_coupons(&self) -> FluentRequest<'_, request::PostCouponsRequest> {
FluentRequest {
client: self,
params: request::PostCouponsRequest {},
}
}
///<p>Retrieves the coupon with the given ID.</p>
pub fn get_coupons_coupon(
&self,
coupon: &str,
) -> FluentRequest<'_, request::GetCouponsCouponRequest> {
FluentRequest {
client: self,
params: request::GetCouponsCouponRequest {
coupon: coupon.to_owned(),
expand: None,
},
}
}
///<p>Updates the metadata of a coupon. Other coupon details (currency, duration, amount_off) are, by design, not editable.</p>
pub fn post_coupons_coupon(
&self,
coupon: &str,
) -> FluentRequest<'_, request::PostCouponsCouponRequest> {
FluentRequest {
client: self,
params: request::PostCouponsCouponRequest {
coupon: coupon.to_owned(),
},
}
}
///<p>You can delete coupons via the <a href="https://dashboard.stripe.com/coupons">coupon management</a> page of the Stripe dashboard. However, deleting a coupon does not affect any customers who have already applied the coupon; it means that new customers can’t redeem the coupon. You can also delete coupons via the API.</p>
pub fn delete_coupons_coupon(
&self,
coupon: &str,
) -> FluentRequest<'_, request::DeleteCouponsCouponRequest> {
FluentRequest {
client: self,
params: request::DeleteCouponsCouponRequest {
coupon: coupon.to_owned(),
},
}
}
///<p>Returns a list of credit notes.</p>
pub fn get_credit_notes(&self) -> FluentRequest<'_, request::GetCreditNotesRequest> {
FluentRequest {
client: self,
params: request::GetCreditNotesRequest {
customer: None,
ending_before: None,
expand: None,
invoice: None,
limit: None,
starting_after: None,
},
}
}
/**<p>Issue a credit note to adjust the amount of a finalized invoice. For a <code>status=open</code> invoice, a credit note reduces
its <code>amount_due</code>. For a <code>status=paid</code> invoice, a credit note does not affect its <code>amount_due</code>. Instead, it can result
in any combination of the following:</p>
<ul>
<li>Refund: create a new refund (using <code>refund_amount</code>) or link an existing refund (using <code>refund</code>).</li>
<li>Customer balance credit: credit the customer’s balance (using <code>credit_amount</code>) which will be automatically applied to their next invoice when it’s finalized.</li>
<li>Outside of Stripe credit: record the amount that is or will be credited outside of Stripe (using <code>out_of_band_amount</code>).</li>
</ul>
<p>For post-payment credit notes the sum of the refund, credit and outside of Stripe amounts must equal the credit note total.</p>
<p>You may issue multiple credit notes for an invoice. Each credit note will increment the invoice’s <code>pre_payment_credit_notes_amount</code>
or <code>post_payment_credit_notes_amount</code> depending on its <code>status</code> at the time of credit note creation.</p>*/
pub fn post_credit_notes(
&self,
) -> FluentRequest<'_, request::PostCreditNotesRequest> {
FluentRequest {
client: self,
params: request::PostCreditNotesRequest {},
}
}
///<p>Get a preview of a credit note without creating it.</p>
pub fn get_credit_notes_preview(
&self,
invoice: &str,
) -> FluentRequest<'_, request::GetCreditNotesPreviewRequest> {
FluentRequest {
client: self,
params: request::GetCreditNotesPreviewRequest {
amount: None,
credit_amount: None,
effective_at: None,
expand: None,
invoice: invoice.to_owned(),
lines: None,
memo: None,
metadata: None,
out_of_band_amount: None,
reason: None,
refund: None,
refund_amount: None,
shipping_cost: None,
},
}
}
///<p>When retrieving a credit note preview, you’ll get a <strong>lines</strong> property containing the first handful of those items. This URL you can retrieve the full (paginated) list of line items.</p>
pub fn get_credit_notes_preview_lines(
&self,
invoice: &str,
) -> FluentRequest<'_, request::GetCreditNotesPreviewLinesRequest> {
FluentRequest {
client: self,
params: request::GetCreditNotesPreviewLinesRequest {
amount: None,
credit_amount: None,
effective_at: None,
ending_before: None,
expand: None,
invoice: invoice.to_owned(),
limit: None,
lines: None,
memo: None,
metadata: None,
out_of_band_amount: None,
reason: None,
refund: None,
refund_amount: None,
shipping_cost: None,
starting_after: None,
},
}
}
///<p>When retrieving a credit note, you’ll get a <strong>lines</strong> property containing the the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_credit_notes_credit_note_lines(
&self,
credit_note: &str,
) -> FluentRequest<'_, request::GetCreditNotesCreditNoteLinesRequest> {
FluentRequest {
client: self,
params: request::GetCreditNotesCreditNoteLinesRequest {
credit_note: credit_note.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves the credit note object with the given identifier.</p>
pub fn get_credit_notes_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetCreditNotesIdRequest> {
FluentRequest {
client: self,
params: request::GetCreditNotesIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Updates an existing credit note.</p>
pub fn post_credit_notes_id(
&self,
id: &str,
) -> FluentRequest<'_, request::PostCreditNotesIdRequest> {
FluentRequest {
client: self,
params: request::PostCreditNotesIdRequest {
id: id.to_owned(),
},
}
}
///<p>Marks a credit note as void. Learn more about <a href="/docs/billing/invoices/credit-notes#voiding">voiding credit notes</a>.</p>
pub fn post_credit_notes_id_void(
&self,
id: &str,
) -> FluentRequest<'_, request::PostCreditNotesIdVoidRequest> {
FluentRequest {
client: self,
params: request::PostCreditNotesIdVoidRequest {
id: id.to_owned(),
},
}
}
///<p>Returns a list of your customers. The customers are returned sorted by creation date, with the most recent customers appearing first.</p>
pub fn get_customers(&self) -> FluentRequest<'_, request::GetCustomersRequest> {
FluentRequest {
client: self,
params: request::GetCustomersRequest {
created: None,
email: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
test_clock: None,
},
}
}
///<p>Creates a new customer object.</p>
pub fn post_customers(&self) -> FluentRequest<'_, request::PostCustomersRequest> {
FluentRequest {
client: self,
params: request::PostCustomersRequest {},
}
}
/**<p>Search for customers you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_customers_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetCustomersSearchRequest> {
FluentRequest {
client: self,
params: request::GetCustomersSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
///<p>Retrieves a Customer object.</p>
pub fn get_customers_customer(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerRequest {
customer: customer.to_owned(),
expand: None,
},
}
}
/**<p>Updates the specified customer by setting the values of the parameters passed. Any parameters not provided will be left unchanged. For example, if you pass the <strong>source</strong> parameter, that becomes the customer’s active source (e.g., a card) to be used for all charges in the future. When you update a customer to a new valid card source by passing the <strong>source</strong> parameter: for each of the customer’s current subscriptions, if the subscription bills automatically and is in the <code>past_due</code> state, then the latest open invoice for the subscription with automatic collection enabled will be retried. This retry will not count as an automatic retry, and will not affect the next regularly scheduled payment for the invoice. Changing the <strong>default_source</strong> for a customer will not trigger this behavior.</p>
<p>This request accepts mostly the same arguments as the customer creation call.</p>*/
pub fn post_customers_customer(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerRequest {
customer: customer.to_owned(),
},
}
}
///<p>Permanently deletes a customer. It cannot be undone. Also immediately cancels any active subscriptions on the customer.</p>
pub fn delete_customers_customer(
&self,
customer: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerRequest {
customer: customer.to_owned(),
},
}
}
///<p>Returns a list of transactions that updated the customer’s <a href="/docs/billing/customer/balance">balances</a>.</p>
pub fn get_customers_customer_balance_transactions(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerBalanceTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerBalanceTransactionsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates an immutable transaction that updates the customer’s credit <a href="/docs/billing/customer/balance">balance</a>.</p>
pub fn post_customers_customer_balance_transactions(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerBalanceTransactionsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerBalanceTransactionsRequest {
customer: customer.to_owned(),
},
}
}
///<p>Retrieves a specific customer balance transaction that updated the customer’s <a href="/docs/billing/customer/balance">balances</a>.</p>
pub fn get_customers_customer_balance_transactions_transaction(
&self,
customer: &str,
transaction: &str,
) -> FluentRequest<
'_,
request::GetCustomersCustomerBalanceTransactionsTransactionRequest,
> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerBalanceTransactionsTransactionRequest {
customer: customer.to_owned(),
expand: None,
transaction: transaction.to_owned(),
},
}
}
///<p>Most credit balance transaction fields are immutable, but you may update its <code>description</code> and <code>metadata</code>.</p>
pub fn post_customers_customer_balance_transactions_transaction(
&self,
customer: &str,
transaction: &str,
) -> FluentRequest<
'_,
request::PostCustomersCustomerBalanceTransactionsTransactionRequest,
> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerBalanceTransactionsTransactionRequest {
customer: customer.to_owned(),
transaction: transaction.to_owned(),
},
}
}
///<p>You can see a list of the bank accounts belonging to a Customer. Note that the 10 most recent sources are always available by default on the Customer. If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional bank accounts.</p>
pub fn get_customers_customer_bank_accounts(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerBankAccountsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerBankAccountsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>When you create a new credit card, you must specify a customer or recipient on which to create it.</p>
<p>If the card’s owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
To change the default, you should <a href="/docs/api#update_customer">update the customer</a> to have a new <code>default_source</code>.</p>*/
pub fn post_customers_customer_bank_accounts(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerBankAccountsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerBankAccountsRequest {
customer: customer.to_owned(),
},
}
}
///<p>By default, you can see the 10 most recent sources stored on a Customer directly on the object, but you can also retrieve details about a specific bank account stored on the Stripe account.</p>
pub fn get_customers_customer_bank_accounts_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerBankAccountsIdRequest {
customer: customer.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
///<p>Update a specified source for a given customer.</p>
pub fn post_customers_customer_bank_accounts_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerBankAccountsIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Delete a specified source for a given customer.</p>
pub fn delete_customers_customer_bank_accounts_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerBankAccountsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerBankAccountsIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Verify a specified bank account for a given customer.</p>
pub fn post_customers_customer_bank_accounts_id_verify(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerBankAccountsIdVerifyRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerBankAccountsIdVerifyRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
/**<p>You can see a list of the cards belonging to a customer.
Note that the 10 most recent sources are always available on the <code>Customer</code> object.
If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional cards.</p>*/
pub fn get_customers_customer_cards(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerCardsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerCardsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>When you create a new credit card, you must specify a customer or recipient on which to create it.</p>
<p>If the card’s owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
To change the default, you should <a href="/docs/api#update_customer">update the customer</a> to have a new <code>default_source</code>.</p>*/
pub fn post_customers_customer_cards(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerCardsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerCardsRequest {
customer: customer.to_owned(),
},
}
}
///<p>You can always see the 10 most recent cards directly on a customer; this method lets you retrieve details about a specific card stored on the customer.</p>
pub fn get_customers_customer_cards_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerCardsIdRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerCardsIdRequest {
customer: customer.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
///<p>Update a specified source for a given customer.</p>
pub fn post_customers_customer_cards_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerCardsIdRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerCardsIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Delete a specified source for a given customer.</p>
pub fn delete_customers_customer_cards_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerCardsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerCardsIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Retrieves a customer’s cash balance.</p>
pub fn get_customers_customer_cash_balance(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerCashBalanceRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerCashBalanceRequest {
customer: customer.to_owned(),
expand: None,
},
}
}
///<p>Changes the settings on a customer’s cash balance.</p>
pub fn post_customers_customer_cash_balance(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerCashBalanceRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerCashBalanceRequest {
customer: customer.to_owned(),
},
}
}
///<p>Returns a list of transactions that modified the customer’s <a href="/docs/payments/customer-balance">cash balance</a>.</p>
pub fn get_customers_customer_cash_balance_transactions(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerCashBalanceTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerCashBalanceTransactionsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves a specific cash balance transaction, which updated the customer’s <a href="/docs/payments/customer-balance">cash balance</a>.</p>
pub fn get_customers_customer_cash_balance_transactions_transaction(
&self,
customer: &str,
transaction: &str,
) -> FluentRequest<
'_,
request::GetCustomersCustomerCashBalanceTransactionsTransactionRequest,
> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerCashBalanceTransactionsTransactionRequest {
customer: customer.to_owned(),
expand: None,
transaction: transaction.to_owned(),
},
}
}
pub fn get_customers_customer_discount(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerDiscountRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerDiscountRequest {
customer: customer.to_owned(),
expand: None,
},
}
}
///<p>Removes the currently applied discount on a customer.</p>
pub fn delete_customers_customer_discount(
&self,
customer: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerDiscountRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerDiscountRequest {
customer: customer.to_owned(),
},
}
}
/**<p>Retrieve funding instructions for a customer cash balance. If funding instructions do not yet exist for the customer, new
funding instructions will be created. If funding instructions have already been created for a given customer, the same
funding instructions will be retrieved. In other words, we will return the same funding instructions each time.</p>*/
pub fn post_customers_customer_funding_instructions(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerFundingInstructionsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerFundingInstructionsRequest {
customer: customer.to_owned(),
},
}
}
///<p>Returns a list of PaymentMethods for a given Customer</p>
pub fn get_customers_customer_payment_methods(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerPaymentMethodsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerPaymentMethodsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
type_: None,
},
}
}
///<p>Retrieves a PaymentMethod object for a given Customer.</p>
pub fn get_customers_customer_payment_methods_payment_method(
&self,
customer: &str,
payment_method: &str,
) -> FluentRequest<
'_,
request::GetCustomersCustomerPaymentMethodsPaymentMethodRequest,
> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerPaymentMethodsPaymentMethodRequest {
customer: customer.to_owned(),
expand: None,
payment_method: payment_method.to_owned(),
},
}
}
///<p>List sources for a specified customer.</p>
pub fn get_customers_customer_sources(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerSourcesRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerSourcesRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
object: None,
starting_after: None,
},
}
}
/**<p>When you create a new credit card, you must specify a customer or recipient on which to create it.</p>
<p>If the card’s owner has no default card, then the new card will become the default.
However, if the owner already has a default, then it will not change.
To change the default, you should <a href="/docs/api#update_customer">update the customer</a> to have a new <code>default_source</code>.</p>*/
pub fn post_customers_customer_sources(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerSourcesRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerSourcesRequest {
customer: customer.to_owned(),
},
}
}
///<p>Retrieve a specified source for a given customer.</p>
pub fn get_customers_customer_sources_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerSourcesIdRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerSourcesIdRequest {
customer: customer.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
///<p>Update a specified source for a given customer.</p>
pub fn post_customers_customer_sources_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerSourcesIdRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerSourcesIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Delete a specified source for a given customer.</p>
pub fn delete_customers_customer_sources_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerSourcesIdRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerSourcesIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Verify a specified bank account for a given customer.</p>
pub fn post_customers_customer_sources_id_verify(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerSourcesIdVerifyRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerSourcesIdVerifyRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>You can see a list of the customer’s active subscriptions. Note that the 10 most recent active subscriptions are always available by default on the customer object. If you need more than those 10, you can use the limit and starting_after parameters to page through additional subscriptions.</p>
pub fn get_customers_customer_subscriptions(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerSubscriptionsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerSubscriptionsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new subscription on an existing customer.</p>
pub fn post_customers_customer_subscriptions(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerSubscriptionsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerSubscriptionsRequest {
customer: customer.to_owned(),
},
}
}
///<p>Retrieves the subscription with the given ID.</p>
pub fn get_customers_customer_subscriptions_subscription_exposed_id(
&self,
customer: &str,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::GetCustomersCustomerSubscriptionsSubscriptionExposedIdRequest,
> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerSubscriptionsSubscriptionExposedIdRequest {
customer: customer.to_owned(),
expand: None,
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
///<p>Updates an existing subscription on a customer to match the specified parameters. When changing plans or quantities, we will optionally prorate the price we charge next month to make up for any price changes. To preview how the proration will be calculated, use the <a href="#upcoming_invoice">upcoming invoice</a> endpoint.</p>
pub fn post_customers_customer_subscriptions_subscription_exposed_id(
&self,
customer: &str,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::PostCustomersCustomerSubscriptionsSubscriptionExposedIdRequest,
> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerSubscriptionsSubscriptionExposedIdRequest {
customer: customer.to_owned(),
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
/**<p>Cancels a customer’s subscription. If you set the <code>at_period_end</code> parameter to <code>true</code>, the subscription will remain active until the end of the period, at which point it will be canceled and not renewed. Otherwise, with the default <code>false</code> value, the subscription is terminated immediately. In either case, the customer will not be charged again for the subscription.</p>
<p>Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually <a href="#delete_invoiceitem">deleted</a>. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.</p>
<p>By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.</p>*/
pub fn delete_customers_customer_subscriptions_subscription_exposed_id(
&self,
customer: &str,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdRequest,
> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdRequest {
customer: customer.to_owned(),
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
pub fn get_customers_customer_subscriptions_subscription_exposed_id_discount(
&self,
customer: &str,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountRequest,
> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountRequest {
customer: customer.to_owned(),
expand: None,
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
///<p>Removes the currently applied discount on a customer.</p>
pub fn delete_customers_customer_subscriptions_subscription_exposed_id_discount(
&self,
customer: &str,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountRequest,
> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerSubscriptionsSubscriptionExposedIdDiscountRequest {
customer: customer.to_owned(),
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
///<p>Returns a list of tax IDs for a customer.</p>
pub fn get_customers_customer_tax_ids(
&self,
customer: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerTaxIdsRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerTaxIdsRequest {
customer: customer.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new <code>tax_id</code> object for a customer.</p>
pub fn post_customers_customer_tax_ids(
&self,
customer: &str,
) -> FluentRequest<'_, request::PostCustomersCustomerTaxIdsRequest> {
FluentRequest {
client: self,
params: request::PostCustomersCustomerTaxIdsRequest {
customer: customer.to_owned(),
},
}
}
///<p>Retrieves the <code>tax_id</code> object with the given identifier.</p>
pub fn get_customers_customer_tax_ids_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::GetCustomersCustomerTaxIdsIdRequest> {
FluentRequest {
client: self,
params: request::GetCustomersCustomerTaxIdsIdRequest {
customer: customer.to_owned(),
expand: None,
id: id.to_owned(),
},
}
}
///<p>Deletes an existing <code>tax_id</code> object.</p>
pub fn delete_customers_customer_tax_ids_id(
&self,
customer: &str,
id: &str,
) -> FluentRequest<'_, request::DeleteCustomersCustomerTaxIdsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteCustomersCustomerTaxIdsIdRequest {
customer: customer.to_owned(),
id: id.to_owned(),
},
}
}
///<p>Returns a list of your disputes.</p>
pub fn get_disputes(&self) -> FluentRequest<'_, request::GetDisputesRequest> {
FluentRequest {
client: self,
params: request::GetDisputesRequest {
charge: None,
created: None,
ending_before: None,
expand: None,
limit: None,
payment_intent: None,
starting_after: None,
},
}
}
///<p>Retrieves the dispute with the given ID.</p>
pub fn get_disputes_dispute(
&self,
dispute: &str,
) -> FluentRequest<'_, request::GetDisputesDisputeRequest> {
FluentRequest {
client: self,
params: request::GetDisputesDisputeRequest {
dispute: dispute.to_owned(),
expand: None,
},
}
}
/**<p>When you get a dispute, contacting your customer is always the best first step. If that doesn’t work, you can submit evidence to help us resolve the dispute in your favor. You can do this in your <a href="https://dashboard.stripe.com/disputes">dashboard</a>, but if you prefer, you can use the API to submit evidence programmatically.</p>
<p>Depending on your dispute type, different evidence fields will give you a better chance of winning your dispute. To figure out which evidence fields to provide, see our <a href="/docs/disputes/categories">guide to dispute types</a>.</p>*/
pub fn post_disputes_dispute(
&self,
dispute: &str,
) -> FluentRequest<'_, request::PostDisputesDisputeRequest> {
FluentRequest {
client: self,
params: request::PostDisputesDisputeRequest {
dispute: dispute.to_owned(),
},
}
}
/**<p>Closing the dispute for a charge indicates that you do not have any evidence to submit and are essentially dismissing the dispute, acknowledging it as lost.</p>
<p>The status of the dispute will change from <code>needs_response</code> to <code>lost</code>. <em>Closing a dispute is irreversible</em>.</p>*/
pub fn post_disputes_dispute_close(
&self,
dispute: &str,
) -> FluentRequest<'_, request::PostDisputesDisputeCloseRequest> {
FluentRequest {
client: self,
params: request::PostDisputesDisputeCloseRequest {
dispute: dispute.to_owned(),
},
}
}
///<p>Creates a short-lived API key for a given resource.</p>
pub fn post_ephemeral_keys(
&self,
) -> FluentRequest<'_, request::PostEphemeralKeysRequest> {
FluentRequest {
client: self,
params: request::PostEphemeralKeysRequest {
},
}
}
///<p>Invalidates a short-lived API key for a given resource.</p>
pub fn delete_ephemeral_keys_key(
&self,
key: &str,
) -> FluentRequest<'_, request::DeleteEphemeralKeysKeyRequest> {
FluentRequest {
client: self,
params: request::DeleteEphemeralKeysKeyRequest {
key: key.to_owned(),
},
}
}
///<p>List events, going back up to 30 days. Each event data is rendered according to Stripe API version at its creation time, specified in <a href="/docs/api/events/object">event object</a> <code>api_version</code> attribute (not according to your current Stripe API version or <code>Stripe-Version</code> header).</p>
pub fn get_events(&self) -> FluentRequest<'_, request::GetEventsRequest> {
FluentRequest {
client: self,
params: request::GetEventsRequest {
created: None,
delivery_success: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
type_: None,
types: None,
},
}
}
///<p>Retrieves the details of an event. Supply the unique identifier of the event, which you might have received in a webhook.</p>
pub fn get_events_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetEventsIdRequest> {
FluentRequest {
client: self,
params: request::GetEventsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Returns a list of objects that contain the rates at which foreign currencies are converted to one another. Only shows the currencies for which Stripe supports.</p>
pub fn get_exchange_rates(
&self,
) -> FluentRequest<'_, request::GetExchangeRatesRequest> {
FluentRequest {
client: self,
params: request::GetExchangeRatesRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves the exchange rates from the given currency to every supported currency.</p>
pub fn get_exchange_rates_rate_id(
&self,
rate_id: &str,
) -> FluentRequest<'_, request::GetExchangeRatesRateIdRequest> {
FluentRequest {
client: self,
params: request::GetExchangeRatesRateIdRequest {
expand: None,
rate_id: rate_id.to_owned(),
},
}
}
///<p>Returns a list of file links.</p>
pub fn get_file_links(&self) -> FluentRequest<'_, request::GetFileLinksRequest> {
FluentRequest {
client: self,
params: request::GetFileLinksRequest {
created: None,
ending_before: None,
expand: None,
expired: None,
file: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new file link object.</p>
pub fn post_file_links(&self) -> FluentRequest<'_, request::PostFileLinksRequest> {
FluentRequest {
client: self,
params: request::PostFileLinksRequest {},
}
}
///<p>Retrieves the file link with the given ID.</p>
pub fn get_file_links_link(
&self,
link: &str,
) -> FluentRequest<'_, request::GetFileLinksLinkRequest> {
FluentRequest {
client: self,
params: request::GetFileLinksLinkRequest {
expand: None,
link: link.to_owned(),
},
}
}
///<p>Updates an existing file link object. Expired links can no longer be updated.</p>
pub fn post_file_links_link(
&self,
link: &str,
) -> FluentRequest<'_, request::PostFileLinksLinkRequest> {
FluentRequest {
client: self,
params: request::PostFileLinksLinkRequest {
link: link.to_owned(),
},
}
}
///<p>Returns a list of the files that your account has access to. Stripe sorts and returns the files by their creation dates, placing the most recently created files at the top.</p>
pub fn get_files(&self) -> FluentRequest<'_, request::GetFilesRequest> {
FluentRequest {
client: self,
params: request::GetFilesRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
purpose: None,
starting_after: None,
},
}
}
/**<p>To upload a file to Stripe, you need to send a request of type <code>multipart/form-data</code>. Include the file you want to upload in the request, and the parameters for creating a file.</p>
<p>All of Stripe’s officially supported Client libraries support sending <code>multipart/form-data</code>.</p>*/
pub fn post_files(&self) -> FluentRequest<'_, request::PostFilesRequest> {
FluentRequest {
client: self,
params: request::PostFilesRequest {},
}
}
///<p>Retrieves the details of an existing file object. After you supply a unique file ID, Stripe returns the corresponding file object. Learn how to <a href="/docs/file-upload#download-file-contents">access file contents</a>.</p>
pub fn get_files_file(
&self,
file: &str,
) -> FluentRequest<'_, request::GetFilesFileRequest> {
FluentRequest {
client: self,
params: request::GetFilesFileRequest {
expand: None,
file: file.to_owned(),
},
}
}
///<p>Returns a list of Financial Connections <code>Account</code> objects.</p>
pub fn get_financial_connections_accounts(
&self,
) -> FluentRequest<'_, request::GetFinancialConnectionsAccountsRequest> {
FluentRequest {
client: self,
params: request::GetFinancialConnectionsAccountsRequest {
account_holder: None,
ending_before: None,
expand: None,
limit: None,
session: None,
starting_after: None,
},
}
}
///<p>Retrieves the details of an Financial Connections <code>Account</code>.</p>
pub fn get_financial_connections_accounts_account(
&self,
account: &str,
) -> FluentRequest<'_, request::GetFinancialConnectionsAccountsAccountRequest> {
FluentRequest {
client: self,
params: request::GetFinancialConnectionsAccountsAccountRequest {
account: account.to_owned(),
expand: None,
},
}
}
///<p>Disables your access to a Financial Connections <code>Account</code>. You will no longer be able to access data associated with the account (e.g. balances, transactions).</p>
pub fn post_financial_connections_accounts_account_disconnect(
&self,
account: &str,
) -> FluentRequest<
'_,
request::PostFinancialConnectionsAccountsAccountDisconnectRequest,
> {
FluentRequest {
client: self,
params: request::PostFinancialConnectionsAccountsAccountDisconnectRequest {
account: account.to_owned(),
},
}
}
///<p>Lists all owners for a given <code>Account</code></p>
pub fn get_financial_connections_accounts_account_owners(
&self,
account: &str,
ownership: &str,
) -> FluentRequest<
'_,
request::GetFinancialConnectionsAccountsAccountOwnersRequest,
> {
FluentRequest {
client: self,
params: request::GetFinancialConnectionsAccountsAccountOwnersRequest {
account: account.to_owned(),
ending_before: None,
expand: None,
limit: None,
ownership: ownership.to_owned(),
starting_after: None,
},
}
}
///<p>Refreshes the data associated with a Financial Connections <code>Account</code>.</p>
pub fn post_financial_connections_accounts_account_refresh(
&self,
account: &str,
) -> FluentRequest<
'_,
request::PostFinancialConnectionsAccountsAccountRefreshRequest,
> {
FluentRequest {
client: self,
params: request::PostFinancialConnectionsAccountsAccountRefreshRequest {
account: account.to_owned(),
},
}
}
///<p>To launch the Financial Connections authorization flow, create a <code>Session</code>. The session’s <code>client_secret</code> can be used to launch the flow using Stripe.js.</p>
pub fn post_financial_connections_sessions(
&self,
) -> FluentRequest<'_, request::PostFinancialConnectionsSessionsRequest> {
FluentRequest {
client: self,
params: request::PostFinancialConnectionsSessionsRequest {
},
}
}
///<p>Retrieves the details of a Financial Connections <code>Session</code></p>
pub fn get_financial_connections_sessions_session(
&self,
session: &str,
) -> FluentRequest<'_, request::GetFinancialConnectionsSessionsSessionRequest> {
FluentRequest {
client: self,
params: request::GetFinancialConnectionsSessionsSessionRequest {
expand: None,
session: session.to_owned(),
},
}
}
///<p>List all verification reports.</p>
pub fn get_identity_verification_reports(
&self,
) -> FluentRequest<'_, request::GetIdentityVerificationReportsRequest> {
FluentRequest {
client: self,
params: request::GetIdentityVerificationReportsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
type_: None,
verification_session: None,
},
}
}
///<p>Retrieves an existing VerificationReport</p>
pub fn get_identity_verification_reports_report(
&self,
report: &str,
) -> FluentRequest<'_, request::GetIdentityVerificationReportsReportRequest> {
FluentRequest {
client: self,
params: request::GetIdentityVerificationReportsReportRequest {
expand: None,
report: report.to_owned(),
},
}
}
///<p>Returns a list of VerificationSessions</p>
pub fn get_identity_verification_sessions(
&self,
) -> FluentRequest<'_, request::GetIdentityVerificationSessionsRequest> {
FluentRequest {
client: self,
params: request::GetIdentityVerificationSessionsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
/**<p>Creates a VerificationSession object.</p>
<p>After the VerificationSession is created, display a verification modal using the session <code>client_secret</code> or send your users to the session’s <code>url</code>.</p>
<p>If your API key is in test mode, verification checks won’t actually process, though everything else will occur as if in live mode.</p>
<p>Related guide: <a href="/docs/identity/verify-identity-documents">Verify your users’ identity documents</a></p>*/
pub fn post_identity_verification_sessions(
&self,
) -> FluentRequest<'_, request::PostIdentityVerificationSessionsRequest> {
FluentRequest {
client: self,
params: request::PostIdentityVerificationSessionsRequest {
},
}
}
/**<p>Retrieves the details of a VerificationSession that was previously created.</p>
<p>When the session status is <code>requires_input</code>, you can use this method to retrieve a valid
<code>client_secret</code> or <code>url</code> to allow re-submission.</p>*/
pub fn get_identity_verification_sessions_session(
&self,
session: &str,
) -> FluentRequest<'_, request::GetIdentityVerificationSessionsSessionRequest> {
FluentRequest {
client: self,
params: request::GetIdentityVerificationSessionsSessionRequest {
expand: None,
session: session.to_owned(),
},
}
}
/**<p>Updates a VerificationSession object.</p>
<p>When the session status is <code>requires_input</code>, you can use this method to update the
verification check and options.</p>*/
pub fn post_identity_verification_sessions_session(
&self,
session: &str,
) -> FluentRequest<'_, request::PostIdentityVerificationSessionsSessionRequest> {
FluentRequest {
client: self,
params: request::PostIdentityVerificationSessionsSessionRequest {
session: session.to_owned(),
},
}
}
/**<p>A VerificationSession object can be canceled when it is in <code>requires_input</code> <a href="/docs/identity/how-sessions-work">status</a>.</p>
<p>Once canceled, future submission attempts are disabled. This cannot be undone. <a href="/docs/identity/verification-sessions#cancel">Learn more</a>.</p>*/
pub fn post_identity_verification_sessions_session_cancel(
&self,
session: &str,
) -> FluentRequest<
'_,
request::PostIdentityVerificationSessionsSessionCancelRequest,
> {
FluentRequest {
client: self,
params: request::PostIdentityVerificationSessionsSessionCancelRequest {
session: session.to_owned(),
},
}
}
/**<p>Redact a VerificationSession to remove all collected information from Stripe. This will redact
the VerificationSession and all objects related to it, including VerificationReports, Events,
request logs, etc.</p>
<p>A VerificationSession object can be redacted when it is in <code>requires_input</code> or <code>verified</code>
<a href="/docs/identity/how-sessions-work">status</a>. Redacting a VerificationSession in <code>requires_action</code>
state will automatically cancel it.</p>
<p>The redaction process may take up to four days. When the redaction process is in progress, the
VerificationSession’s <code>redaction.status</code> field will be set to <code>processing</code>; when the process is
finished, it will change to <code>redacted</code> and an <code>identity.verification_session.redacted</code> event
will be emitted.</p>
<p>Redaction is irreversible. Redacted objects are still accessible in the Stripe API, but all the
fields that contain personal data will be replaced by the string <code>[redacted]</code> or a similar
placeholder. The <code>metadata</code> field will also be erased. Redacted objects cannot be updated or
used for any purpose.</p>
<p><a href="/docs/identity/verification-sessions#redact">Learn more</a>.</p>*/
pub fn post_identity_verification_sessions_session_redact(
&self,
session: &str,
) -> FluentRequest<
'_,
request::PostIdentityVerificationSessionsSessionRedactRequest,
> {
FluentRequest {
client: self,
params: request::PostIdentityVerificationSessionsSessionRedactRequest {
session: session.to_owned(),
},
}
}
///<p>Returns a list of your invoice items. Invoice items are returned sorted by creation date, with the most recently created invoice items appearing first.</p>
pub fn get_invoiceitems(
&self,
) -> FluentRequest<'_, request::GetInvoiceitemsRequest> {
FluentRequest {
client: self,
params: request::GetInvoiceitemsRequest {
created: None,
customer: None,
ending_before: None,
expand: None,
invoice: None,
limit: None,
pending: None,
starting_after: None,
},
}
}
///<p>Creates an item to be added to a draft invoice (up to 250 items per invoice). If no invoice is specified, the item will be on the next invoice created for the customer specified.</p>
pub fn post_invoiceitems(
&self,
) -> FluentRequest<'_, request::PostInvoiceitemsRequest> {
FluentRequest {
client: self,
params: request::PostInvoiceitemsRequest {
},
}
}
///<p>Retrieves the invoice item with the given ID.</p>
pub fn get_invoiceitems_invoiceitem(
&self,
invoiceitem: &str,
) -> FluentRequest<'_, request::GetInvoiceitemsInvoiceitemRequest> {
FluentRequest {
client: self,
params: request::GetInvoiceitemsInvoiceitemRequest {
expand: None,
invoiceitem: invoiceitem.to_owned(),
},
}
}
///<p>Updates the amount or description of an invoice item on an upcoming invoice. Updating an invoice item is only possible before the invoice it’s attached to is closed.</p>
pub fn post_invoiceitems_invoiceitem(
&self,
invoiceitem: &str,
) -> FluentRequest<'_, request::PostInvoiceitemsInvoiceitemRequest> {
FluentRequest {
client: self,
params: request::PostInvoiceitemsInvoiceitemRequest {
invoiceitem: invoiceitem.to_owned(),
},
}
}
///<p>Deletes an invoice item, removing it from an invoice. Deleting invoice items is only possible when they’re not attached to invoices, or if it’s attached to a draft invoice.</p>
pub fn delete_invoiceitems_invoiceitem(
&self,
invoiceitem: &str,
) -> FluentRequest<'_, request::DeleteInvoiceitemsInvoiceitemRequest> {
FluentRequest {
client: self,
params: request::DeleteInvoiceitemsInvoiceitemRequest {
invoiceitem: invoiceitem.to_owned(),
},
}
}
///<p>You can list all invoices, or list the invoices for a specific customer. The invoices are returned sorted by creation date, with the most recently created invoices appearing first.</p>
pub fn get_invoices(&self) -> FluentRequest<'_, request::GetInvoicesRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesRequest {
collection_method: None,
created: None,
customer: None,
due_date: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
subscription: None,
},
}
}
///<p>This endpoint creates a draft invoice for a given customer. The invoice remains a draft until you <a href="#finalize_invoice">finalize</a> the invoice, which allows you to <a href="#pay_invoice">pay</a> or <a href="#send_invoice">send</a> the invoice to your customers.</p>
pub fn post_invoices(&self) -> FluentRequest<'_, request::PostInvoicesRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesRequest {},
}
}
/**<p>Search for invoices you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_invoices_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetInvoicesSearchRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
/**<p>At any time, you can preview the upcoming invoice for a customer. This will show you all the charges that are pending, including subscription renewal charges, invoice item charges, etc. It will also show you any discounts that are applicable to the invoice.</p>
<p>Note that when you are viewing an upcoming invoice, you are simply viewing a preview – the invoice has not yet been created. As such, the upcoming invoice will not show up in invoice listing calls, and you cannot use the API to pay or edit the invoice. If you want to change the amount that your customer will be billed, you can add, remove, or update pending invoice items, or update the customer’s discount.</p>
<p>You can preview the effects of updating a subscription, including a preview of what proration will take place. To ensure that the actual proration is calculated exactly the same as the previewed proration, you should pass a <code>proration_date</code> parameter when doing the actual subscription update. The value passed in should be the same as the <code>subscription_proration_date</code> returned on the upcoming invoice resource. The recommended way to get only the prorations being previewed is to consider only proration line items where <code>period[start]</code> is equal to the <code>subscription_proration_date</code> on the upcoming invoice resource.</p>*/
pub fn get_invoices_upcoming(
&self,
) -> FluentRequest<'_, request::GetInvoicesUpcomingRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesUpcomingRequest {
automatic_tax: None,
coupon: None,
currency: None,
customer: None,
customer_details: None,
discounts: None,
expand: None,
invoice_items: None,
schedule: None,
subscription: None,
subscription_billing_cycle_anchor: None,
subscription_cancel_at: None,
subscription_cancel_at_period_end: None,
subscription_cancel_now: None,
subscription_default_tax_rates: None,
subscription_items: None,
subscription_proration_behavior: None,
subscription_proration_date: None,
subscription_resume_at: None,
subscription_start_date: None,
subscription_trial_end: None,
subscription_trial_from_plan: None,
},
}
}
///<p>When retrieving an upcoming invoice, you’ll get a <strong>lines</strong> property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_invoices_upcoming_lines(
&self,
) -> FluentRequest<'_, request::GetInvoicesUpcomingLinesRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesUpcomingLinesRequest {
automatic_tax: None,
coupon: None,
currency: None,
customer: None,
customer_details: None,
discounts: None,
ending_before: None,
expand: None,
invoice_items: None,
limit: None,
schedule: None,
starting_after: None,
subscription: None,
subscription_billing_cycle_anchor: None,
subscription_cancel_at: None,
subscription_cancel_at_period_end: None,
subscription_cancel_now: None,
subscription_default_tax_rates: None,
subscription_items: None,
subscription_proration_behavior: None,
subscription_proration_date: None,
subscription_resume_at: None,
subscription_start_date: None,
subscription_trial_end: None,
subscription_trial_from_plan: None,
},
}
}
///<p>Retrieves the invoice with the given ID.</p>
pub fn get_invoices_invoice(
&self,
invoice: &str,
) -> FluentRequest<'_, request::GetInvoicesInvoiceRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesInvoiceRequest {
expand: None,
invoice: invoice.to_owned(),
},
}
}
/**<p>Draft invoices are fully editable. Once an invoice is <a href="/docs/billing/invoices/workflow#finalized">finalized</a>,
monetary values, as well as <code>collection_method</code>, become uneditable.</p>
<p>If you would like to stop the Stripe Billing engine from automatically finalizing, reattempting payments on,
sending reminders for, or <a href="/docs/billing/invoices/reconciliation">automatically reconciling</a> invoices, pass
<code>auto_advance=false</code>.</p>*/
pub fn post_invoices_invoice(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>Permanently deletes a one-off invoice draft. This cannot be undone. Attempts to delete invoices that are no longer in a draft state will fail; once an invoice has been finalized or if an invoice is for a subscription, it must be <a href="#void_invoice">voided</a>.</p>
pub fn delete_invoices_invoice(
&self,
invoice: &str,
) -> FluentRequest<'_, request::DeleteInvoicesInvoiceRequest> {
FluentRequest {
client: self,
params: request::DeleteInvoicesInvoiceRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>Stripe automatically finalizes drafts before sending and attempting payment on invoices. However, if you’d like to finalize a draft invoice manually, you can do so using this method.</p>
pub fn post_invoices_invoice_finalize(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceFinalizeRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceFinalizeRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>When retrieving an invoice, you’ll get a <strong>lines</strong> property containing the total count of line items and the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_invoices_invoice_lines(
&self,
invoice: &str,
) -> FluentRequest<'_, request::GetInvoicesInvoiceLinesRequest> {
FluentRequest {
client: self,
params: request::GetInvoicesInvoiceLinesRequest {
ending_before: None,
expand: None,
invoice: invoice.to_owned(),
limit: None,
starting_after: None,
},
}
}
/**<p>Updates an invoice’s line item. Some fields, such as <code>tax_amounts</code>, only live on the invoice line item,
so they can only be updated through this endpoint. Other fields, such as <code>amount</code>, live on both the invoice
item and the invoice line item, so updates on this endpoint will propagate to the invoice item as well.
Updating an invoice’s line item is only possible before the invoice is finalized.</p>*/
pub fn post_invoices_invoice_lines_line_item_id(
&self,
invoice: &str,
line_item_id: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceLinesLineItemIdRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceLinesLineItemIdRequest {
invoice: invoice.to_owned(),
line_item_id: line_item_id.to_owned(),
},
}
}
///<p>Marking an invoice as uncollectible is useful for keeping track of bad debts that can be written off for accounting purposes.</p>
pub fn post_invoices_invoice_mark_uncollectible(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceMarkUncollectibleRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceMarkUncollectibleRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>Stripe automatically creates and then attempts to collect payment on invoices for customers on subscriptions according to your <a href="https://dashboard.stripe.com/account/billing/automatic">subscriptions settings</a>. However, if you’d like to attempt payment on an invoice out of the normal collection schedule or for some other reason, you can do so.</p>
pub fn post_invoices_invoice_pay(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoicePayRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoicePayRequest {
invoice: invoice.to_owned(),
},
}
}
/**<p>Stripe will automatically send invoices to customers according to your <a href="https://dashboard.stripe.com/account/billing/automatic">subscriptions settings</a>. However, if you’d like to manually send an invoice to your customer out of the normal schedule, you can do so. When sending invoices that have already been paid, there will be no reference to the payment in the email.</p>
<p>Requests made in test-mode result in no emails being sent, despite sending an <code>invoice.sent</code> event.</p>*/
pub fn post_invoices_invoice_send(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceSendRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceSendRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>Mark a finalized invoice as void. This cannot be undone. Voiding an invoice is similar to <a href="#delete_invoice">deletion</a>, however it only applies to finalized invoices and maintains a papertrail where the invoice can still be found.</p>
pub fn post_invoices_invoice_void(
&self,
invoice: &str,
) -> FluentRequest<'_, request::PostInvoicesInvoiceVoidRequest> {
FluentRequest {
client: self,
params: request::PostInvoicesInvoiceVoidRequest {
invoice: invoice.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Authorization</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_authorizations(
&self,
) -> FluentRequest<'_, request::GetIssuingAuthorizationsRequest> {
FluentRequest {
client: self,
params: request::GetIssuingAuthorizationsRequest {
card: None,
cardholder: None,
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Retrieves an Issuing <code>Authorization</code> object.</p>
pub fn get_issuing_authorizations_authorization(
&self,
authorization: &str,
) -> FluentRequest<'_, request::GetIssuingAuthorizationsAuthorizationRequest> {
FluentRequest {
client: self,
params: request::GetIssuingAuthorizationsAuthorizationRequest {
authorization: authorization.to_owned(),
expand: None,
},
}
}
///<p>Updates the specified Issuing <code>Authorization</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_issuing_authorizations_authorization(
&self,
authorization: &str,
) -> FluentRequest<'_, request::PostIssuingAuthorizationsAuthorizationRequest> {
FluentRequest {
client: self,
params: request::PostIssuingAuthorizationsAuthorizationRequest {
authorization: authorization.to_owned(),
},
}
}
/**<p>[Deprecated] Approves a pending Issuing <code>Authorization</code> object. This request should be made within the timeout window of the <a href="/docs/issuing/controls/real-time-authorizations">real-time authorization</a> flow.
This method is deprecated. Instead, <a href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond directly to the webhook request to approve an authorization</a>.</p>*/
pub fn post_issuing_authorizations_authorization_approve(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostIssuingAuthorizationsAuthorizationApproveRequest,
> {
FluentRequest {
client: self,
params: request::PostIssuingAuthorizationsAuthorizationApproveRequest {
authorization: authorization.to_owned(),
},
}
}
/**<p>[Deprecated] Declines a pending Issuing <code>Authorization</code> object. This request should be made within the timeout window of the <a href="/docs/issuing/controls/real-time-authorizations">real time authorization</a> flow.
This method is deprecated. Instead, <a href="/docs/issuing/controls/real-time-authorizations#authorization-handling">respond directly to the webhook request to decline an authorization</a>.</p>*/
pub fn post_issuing_authorizations_authorization_decline(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostIssuingAuthorizationsAuthorizationDeclineRequest,
> {
FluentRequest {
client: self,
params: request::PostIssuingAuthorizationsAuthorizationDeclineRequest {
authorization: authorization.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Cardholder</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_cardholders(
&self,
) -> FluentRequest<'_, request::GetIssuingCardholdersRequest> {
FluentRequest {
client: self,
params: request::GetIssuingCardholdersRequest {
created: None,
email: None,
ending_before: None,
expand: None,
limit: None,
phone_number: None,
starting_after: None,
status: None,
type_: None,
},
}
}
///<p>Creates a new Issuing <code>Cardholder</code> object that can be issued cards.</p>
pub fn post_issuing_cardholders(
&self,
) -> FluentRequest<'_, request::PostIssuingCardholdersRequest> {
FluentRequest {
client: self,
params: request::PostIssuingCardholdersRequest {
},
}
}
///<p>Retrieves an Issuing <code>Cardholder</code> object.</p>
pub fn get_issuing_cardholders_cardholder(
&self,
cardholder: &str,
) -> FluentRequest<'_, request::GetIssuingCardholdersCardholderRequest> {
FluentRequest {
client: self,
params: request::GetIssuingCardholdersCardholderRequest {
cardholder: cardholder.to_owned(),
expand: None,
},
}
}
///<p>Updates the specified Issuing <code>Cardholder</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_issuing_cardholders_cardholder(
&self,
cardholder: &str,
) -> FluentRequest<'_, request::PostIssuingCardholdersCardholderRequest> {
FluentRequest {
client: self,
params: request::PostIssuingCardholdersCardholderRequest {
cardholder: cardholder.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Card</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_cards(
&self,
) -> FluentRequest<'_, request::GetIssuingCardsRequest> {
FluentRequest {
client: self,
params: request::GetIssuingCardsRequest {
cardholder: None,
created: None,
ending_before: None,
exp_month: None,
exp_year: None,
expand: None,
last4: None,
limit: None,
starting_after: None,
status: None,
type_: None,
},
}
}
///<p>Creates an Issuing <code>Card</code> object.</p>
pub fn post_issuing_cards(
&self,
) -> FluentRequest<'_, request::PostIssuingCardsRequest> {
FluentRequest {
client: self,
params: request::PostIssuingCardsRequest {
},
}
}
///<p>Retrieves an Issuing <code>Card</code> object.</p>
pub fn get_issuing_cards_card(
&self,
card: &str,
) -> FluentRequest<'_, request::GetIssuingCardsCardRequest> {
FluentRequest {
client: self,
params: request::GetIssuingCardsCardRequest {
card: card.to_owned(),
expand: None,
},
}
}
///<p>Updates the specified Issuing <code>Card</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_issuing_cards_card(
&self,
card: &str,
) -> FluentRequest<'_, request::PostIssuingCardsCardRequest> {
FluentRequest {
client: self,
params: request::PostIssuingCardsCardRequest {
card: card.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Dispute</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_disputes(
&self,
) -> FluentRequest<'_, request::GetIssuingDisputesRequest> {
FluentRequest {
client: self,
params: request::GetIssuingDisputesRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
transaction: None,
},
}
}
///<p>Creates an Issuing <code>Dispute</code> object. Individual pieces of evidence within the <code>evidence</code> object are optional at this point. Stripe only validates that required evidence is present during submission. Refer to <a href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute reasons and evidence</a> for more details about evidence requirements.</p>
pub fn post_issuing_disputes(
&self,
) -> FluentRequest<'_, request::PostIssuingDisputesRequest> {
FluentRequest {
client: self,
params: request::PostIssuingDisputesRequest {
},
}
}
///<p>Retrieves an Issuing <code>Dispute</code> object.</p>
pub fn get_issuing_disputes_dispute(
&self,
dispute: &str,
) -> FluentRequest<'_, request::GetIssuingDisputesDisputeRequest> {
FluentRequest {
client: self,
params: request::GetIssuingDisputesDisputeRequest {
dispute: dispute.to_owned(),
expand: None,
},
}
}
///<p>Updates the specified Issuing <code>Dispute</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Properties on the <code>evidence</code> object can be unset by passing in an empty string.</p>
pub fn post_issuing_disputes_dispute(
&self,
dispute: &str,
) -> FluentRequest<'_, request::PostIssuingDisputesDisputeRequest> {
FluentRequest {
client: self,
params: request::PostIssuingDisputesDisputeRequest {
dispute: dispute.to_owned(),
},
}
}
///<p>Submits an Issuing <code>Dispute</code> to the card network. Stripe validates that all evidence fields required for the dispute’s reason are present. For more details, see <a href="/docs/issuing/purchases/disputes#dispute-reasons-and-evidence">Dispute reasons and evidence</a>.</p>
pub fn post_issuing_disputes_dispute_submit(
&self,
dispute: &str,
) -> FluentRequest<'_, request::PostIssuingDisputesDisputeSubmitRequest> {
FluentRequest {
client: self,
params: request::PostIssuingDisputesDisputeSubmitRequest {
dispute: dispute.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Settlement</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_settlements(
&self,
) -> FluentRequest<'_, request::GetIssuingSettlementsRequest> {
FluentRequest {
client: self,
params: request::GetIssuingSettlementsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves an Issuing <code>Settlement</code> object.</p>
pub fn get_issuing_settlements_settlement(
&self,
settlement: &str,
) -> FluentRequest<'_, request::GetIssuingSettlementsSettlementRequest> {
FluentRequest {
client: self,
params: request::GetIssuingSettlementsSettlementRequest {
expand: None,
settlement: settlement.to_owned(),
},
}
}
///<p>Updates the specified Issuing <code>Settlement</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_issuing_settlements_settlement(
&self,
settlement: &str,
) -> FluentRequest<'_, request::PostIssuingSettlementsSettlementRequest> {
FluentRequest {
client: self,
params: request::PostIssuingSettlementsSettlementRequest {
settlement: settlement.to_owned(),
},
}
}
///<p>Lists all Issuing <code>Token</code> objects for a given card.</p>
pub fn get_issuing_tokens(
&self,
card: &str,
) -> FluentRequest<'_, request::GetIssuingTokensRequest> {
FluentRequest {
client: self,
params: request::GetIssuingTokensRequest {
card: card.to_owned(),
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Retrieves an Issuing <code>Token</code> object.</p>
pub fn get_issuing_tokens_token(
&self,
token: &str,
) -> FluentRequest<'_, request::GetIssuingTokensTokenRequest> {
FluentRequest {
client: self,
params: request::GetIssuingTokensTokenRequest {
expand: None,
token: token.to_owned(),
},
}
}
///<p>Attempts to update the specified Issuing <code>Token</code> object to the status specified.</p>
pub fn post_issuing_tokens_token(
&self,
token: &str,
) -> FluentRequest<'_, request::PostIssuingTokensTokenRequest> {
FluentRequest {
client: self,
params: request::PostIssuingTokensTokenRequest {
token: token.to_owned(),
},
}
}
///<p>Returns a list of Issuing <code>Transaction</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_issuing_transactions(
&self,
) -> FluentRequest<'_, request::GetIssuingTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetIssuingTransactionsRequest {
card: None,
cardholder: None,
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
type_: None,
},
}
}
///<p>Retrieves an Issuing <code>Transaction</code> object.</p>
pub fn get_issuing_transactions_transaction(
&self,
transaction: &str,
) -> FluentRequest<'_, request::GetIssuingTransactionsTransactionRequest> {
FluentRequest {
client: self,
params: request::GetIssuingTransactionsTransactionRequest {
expand: None,
transaction: transaction.to_owned(),
},
}
}
///<p>Updates the specified Issuing <code>Transaction</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_issuing_transactions_transaction(
&self,
transaction: &str,
) -> FluentRequest<'_, request::PostIssuingTransactionsTransactionRequest> {
FluentRequest {
client: self,
params: request::PostIssuingTransactionsTransactionRequest {
transaction: transaction.to_owned(),
},
}
}
///<p>To launch the Financial Connections authorization flow, create a <code>Session</code>. The session’s <code>client_secret</code> can be used to launch the flow using Stripe.js.</p>
pub fn post_link_account_sessions(
&self,
) -> FluentRequest<'_, request::PostLinkAccountSessionsRequest> {
FluentRequest {
client: self,
params: request::PostLinkAccountSessionsRequest {
},
}
}
///<p>Retrieves the details of a Financial Connections <code>Session</code></p>
pub fn get_link_account_sessions_session(
&self,
session: &str,
) -> FluentRequest<'_, request::GetLinkAccountSessionsSessionRequest> {
FluentRequest {
client: self,
params: request::GetLinkAccountSessionsSessionRequest {
expand: None,
session: session.to_owned(),
},
}
}
///<p>Returns a list of Financial Connections <code>Account</code> objects.</p>
pub fn get_linked_accounts(
&self,
) -> FluentRequest<'_, request::GetLinkedAccountsRequest> {
FluentRequest {
client: self,
params: request::GetLinkedAccountsRequest {
account_holder: None,
ending_before: None,
expand: None,
limit: None,
session: None,
starting_after: None,
},
}
}
///<p>Retrieves the details of an Financial Connections <code>Account</code>.</p>
pub fn get_linked_accounts_account(
&self,
account: &str,
) -> FluentRequest<'_, request::GetLinkedAccountsAccountRequest> {
FluentRequest {
client: self,
params: request::GetLinkedAccountsAccountRequest {
account: account.to_owned(),
expand: None,
},
}
}
///<p>Disables your access to a Financial Connections <code>Account</code>. You will no longer be able to access data associated with the account (e.g. balances, transactions).</p>
pub fn post_linked_accounts_account_disconnect(
&self,
account: &str,
) -> FluentRequest<'_, request::PostLinkedAccountsAccountDisconnectRequest> {
FluentRequest {
client: self,
params: request::PostLinkedAccountsAccountDisconnectRequest {
account: account.to_owned(),
},
}
}
///<p>Lists all owners for a given <code>Account</code></p>
pub fn get_linked_accounts_account_owners(
&self,
account: &str,
ownership: &str,
) -> FluentRequest<'_, request::GetLinkedAccountsAccountOwnersRequest> {
FluentRequest {
client: self,
params: request::GetLinkedAccountsAccountOwnersRequest {
account: account.to_owned(),
ending_before: None,
expand: None,
limit: None,
ownership: ownership.to_owned(),
starting_after: None,
},
}
}
///<p>Refreshes the data associated with a Financial Connections <code>Account</code>.</p>
pub fn post_linked_accounts_account_refresh(
&self,
account: &str,
) -> FluentRequest<'_, request::PostLinkedAccountsAccountRefreshRequest> {
FluentRequest {
client: self,
params: request::PostLinkedAccountsAccountRefreshRequest {
account: account.to_owned(),
},
}
}
///<p>Retrieves a Mandate object.</p>
pub fn get_mandates_mandate(
&self,
mandate: &str,
) -> FluentRequest<'_, request::GetMandatesMandateRequest> {
FluentRequest {
client: self,
params: request::GetMandatesMandateRequest {
expand: None,
mandate: mandate.to_owned(),
},
}
}
///<p>Returns a list of PaymentIntents.</p>
pub fn get_payment_intents(
&self,
) -> FluentRequest<'_, request::GetPaymentIntentsRequest> {
FluentRequest {
client: self,
params: request::GetPaymentIntentsRequest {
created: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>Creates a PaymentIntent object.</p>
<p>After the PaymentIntent is created, attach a payment method and <a href="/docs/api/payment_intents/confirm">confirm</a>
to continue the payment. Learn more about <a href="/docs/payments/payment-intents">the available payment flows
with the Payment Intents API</a>.</p>
<p>When you use <code>confirm=true</code> during creation, it’s equivalent to creating
and confirming the PaymentIntent in the same call. You can use any parameters
available in the <a href="/docs/api/payment_intents/confirm">confirm API</a> when you supply
<code>confirm=true</code>.</p>*/
pub fn post_payment_intents(
&self,
) -> FluentRequest<'_, request::PostPaymentIntentsRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsRequest {
},
}
}
/**<p>Search for PaymentIntents you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_payment_intents_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetPaymentIntentsSearchRequest> {
FluentRequest {
client: self,
params: request::GetPaymentIntentsSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
/**<p>Retrieves the details of a PaymentIntent that has previously been created. </p>
<p>You can retrieve a PaymentIntent client-side using a publishable key when the <code>client_secret</code> is in the query string. </p>
<p>If you retrieve a PaymentIntent with a publishable key, it only returns a subset of properties. Refer to the <a href="#payment_intent_object">payment intent</a> object reference for more details.</p>*/
pub fn get_payment_intents_intent(
&self,
intent: &str,
) -> FluentRequest<'_, request::GetPaymentIntentsIntentRequest> {
FluentRequest {
client: self,
params: request::GetPaymentIntentsIntentRequest {
client_secret: None,
expand: None,
intent: intent.to_owned(),
},
}
}
/**<p>Updates properties on a PaymentIntent object without confirming.</p>
<p>Depending on which properties you update, you might need to confirm the
PaymentIntent again. For example, updating the <code>payment_method</code>
always requires you to confirm the PaymentIntent again. If you prefer to
update and confirm at the same time, we recommend updating properties through
the <a href="/docs/api/payment_intents/confirm">confirm API</a> instead.</p>*/
pub fn post_payment_intents_intent(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostPaymentIntentsIntentRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentRequest {
intent: intent.to_owned(),
},
}
}
///<p>Manually reconcile the remaining amount for a <code>customer_balance</code> PaymentIntent.</p>
pub fn post_payment_intents_intent_apply_customer_balance(
&self,
intent: &str,
) -> FluentRequest<
'_,
request::PostPaymentIntentsIntentApplyCustomerBalanceRequest,
> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentApplyCustomerBalanceRequest {
intent: intent.to_owned(),
},
}
}
/**<p>You can cancel a PaymentIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_capture</code>, <code>requires_confirmation</code>, <code>requires_action</code> or, <a href="/docs/payments/intents">in rare cases</a>, <code>processing</code>. </p>
<p>After it’s canceled, no additional charges are made by the PaymentIntent and any operations on the PaymentIntent fail with an error. For PaymentIntents with a <code>status</code> of <code>requires_capture</code>, the remaining <code>amount_capturable</code> is automatically refunded. </p>
<p>You can’t cancel the PaymentIntent for a Checkout Session. <a href="/docs/api/checkout/sessions/expire">Expire the Checkout Session</a> instead.</p>*/
pub fn post_payment_intents_intent_cancel(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostPaymentIntentsIntentCancelRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentCancelRequest {
intent: intent.to_owned(),
},
}
}
/**<p>Capture the funds of an existing uncaptured PaymentIntent when its status is <code>requires_capture</code>.</p>
<p>Uncaptured PaymentIntents are cancelled a set number of days (7 by default) after their creation.</p>
<p>Learn more about <a href="/docs/payments/capture-later">separate authorization and capture</a>.</p>*/
pub fn post_payment_intents_intent_capture(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostPaymentIntentsIntentCaptureRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentCaptureRequest {
intent: intent.to_owned(),
},
}
}
/**<p>Confirm that your customer intends to pay with current or provided
payment method. Upon confirmation, the PaymentIntent will attempt to initiate
a payment.
If the selected payment method requires additional authentication steps, the
PaymentIntent will transition to the <code>requires_action</code> status and
suggest additional actions via <code>next_action</code>. If payment fails,
the PaymentIntent transitions to the <code>requires_payment_method</code> status or the
<code>canceled</code> status if the confirmation limit is reached. If
payment succeeds, the PaymentIntent will transition to the <code>succeeded</code>
status (or <code>requires_capture</code>, if <code>capture_method</code> is set to <code>manual</code>).
If the <code>confirmation_method</code> is <code>automatic</code>, payment may be attempted
using our <a href="/docs/stripe-js/reference#stripe-handle-card-payment">client SDKs</a>
and the PaymentIntent’s <a href="#payment_intent_object-client_secret">client_secret</a>.
After <code>next_action</code>s are handled by the client, no additional
confirmation is required to complete the payment.
If the <code>confirmation_method</code> is <code>manual</code>, all payment attempts must be
initiated using a secret key.
If any actions are required for the payment, the PaymentIntent will
return to the <code>requires_confirmation</code> state
after those actions are completed. Your server needs to then
explicitly re-confirm the PaymentIntent to initiate the next payment
attempt. Read the <a href="/docs/payments/payment-intents/web-manual">expanded documentation</a>
to learn more about manual confirmation.</p>*/
pub fn post_payment_intents_intent_confirm(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostPaymentIntentsIntentConfirmRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentConfirmRequest {
intent: intent.to_owned(),
},
}
}
/**<p>Perform an incremental authorization on an eligible
<a href="/docs/api/payment_intents/object">PaymentIntent</a>. To be eligible, the
PaymentIntent’s status must be <code>requires_capture</code> and
<a href="/docs/api/charges/object#charge_object-payment_method_details-card_present-incremental_authorization_supported">incremental_authorization_supported</a>
must be <code>true</code>.</p>
<p>Incremental authorizations attempt to increase the authorized amount on
your customer’s card to the new, higher <code>amount</code> provided. Similar to the
initial authorization, incremental authorizations can be declined. A
single PaymentIntent can call this endpoint multiple times to further
increase the authorized amount.</p>
<p>If the incremental authorization succeeds, the PaymentIntent object
returns with the updated
<a href="/docs/api/payment_intents/object#payment_intent_object-amount">amount</a>.
If the incremental authorization fails, a
<a href="/docs/error-codes#card-declined">card_declined</a> error returns, and no other
fields on the PaymentIntent or Charge update. The PaymentIntent
object remains capturable for the previously authorized amount.</p>
<p>Each PaymentIntent can have a maximum of 10 incremental authorization attempts, including declines.
After it’s captured, a PaymentIntent can no longer be incremented.</p>
<p>Learn more about <a href="/docs/terminal/features/incremental-authorizations">incremental authorizations</a>.</p>*/
pub fn post_payment_intents_intent_increment_authorization(
&self,
intent: &str,
) -> FluentRequest<
'_,
request::PostPaymentIntentsIntentIncrementAuthorizationRequest,
> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentIncrementAuthorizationRequest {
intent: intent.to_owned(),
},
}
}
///<p>Verifies microdeposits on a PaymentIntent object.</p>
pub fn post_payment_intents_intent_verify_microdeposits(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostPaymentIntentsIntentVerifyMicrodepositsRequest> {
FluentRequest {
client: self,
params: request::PostPaymentIntentsIntentVerifyMicrodepositsRequest {
intent: intent.to_owned(),
},
}
}
///<p>Returns a list of your payment links.</p>
pub fn get_payment_links(
&self,
) -> FluentRequest<'_, request::GetPaymentLinksRequest> {
FluentRequest {
client: self,
params: request::GetPaymentLinksRequest {
active: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a payment link.</p>
pub fn post_payment_links(
&self,
) -> FluentRequest<'_, request::PostPaymentLinksRequest> {
FluentRequest {
client: self,
params: request::PostPaymentLinksRequest {
},
}
}
///<p>Retrieve a payment link.</p>
pub fn get_payment_links_payment_link(
&self,
payment_link: &str,
) -> FluentRequest<'_, request::GetPaymentLinksPaymentLinkRequest> {
FluentRequest {
client: self,
params: request::GetPaymentLinksPaymentLinkRequest {
expand: None,
payment_link: payment_link.to_owned(),
},
}
}
///<p>Updates a payment link.</p>
pub fn post_payment_links_payment_link(
&self,
payment_link: &str,
) -> FluentRequest<'_, request::PostPaymentLinksPaymentLinkRequest> {
FluentRequest {
client: self,
params: request::PostPaymentLinksPaymentLinkRequest {
payment_link: payment_link.to_owned(),
},
}
}
///<p>When retrieving a payment link, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_payment_links_payment_link_line_items(
&self,
payment_link: &str,
) -> FluentRequest<'_, request::GetPaymentLinksPaymentLinkLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetPaymentLinksPaymentLinkLineItemsRequest {
ending_before: None,
expand: None,
limit: None,
payment_link: payment_link.to_owned(),
starting_after: None,
},
}
}
///<p>List payment method configurations</p>
pub fn get_payment_method_configurations(
&self,
) -> FluentRequest<'_, request::GetPaymentMethodConfigurationsRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodConfigurationsRequest {
application: None,
expand: None,
},
}
}
///<p>Creates a payment method configuration</p>
pub fn post_payment_method_configurations(
&self,
) -> FluentRequest<'_, request::PostPaymentMethodConfigurationsRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodConfigurationsRequest {
},
}
}
///<p>Retrieve payment method configuration</p>
pub fn get_payment_method_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<'_, request::GetPaymentMethodConfigurationsConfigurationRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
expand: None,
},
}
}
///<p>Update payment method configuration</p>
pub fn post_payment_method_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<
'_,
request::PostPaymentMethodConfigurationsConfigurationRequest,
> {
FluentRequest {
client: self,
params: request::PostPaymentMethodConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
},
}
}
///<p>Lists the details of existing payment method domains.</p>
pub fn get_payment_method_domains(
&self,
) -> FluentRequest<'_, request::GetPaymentMethodDomainsRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodDomainsRequest {
domain_name: None,
enabled: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a payment method domain.</p>
pub fn post_payment_method_domains(
&self,
) -> FluentRequest<'_, request::PostPaymentMethodDomainsRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodDomainsRequest {
},
}
}
///<p>Retrieves the details of an existing payment method domain.</p>
pub fn get_payment_method_domains_payment_method_domain(
&self,
payment_method_domain: &str,
) -> FluentRequest<'_, request::GetPaymentMethodDomainsPaymentMethodDomainRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodDomainsPaymentMethodDomainRequest {
expand: None,
payment_method_domain: payment_method_domain.to_owned(),
},
}
}
///<p>Updates an existing payment method domain.</p>
pub fn post_payment_method_domains_payment_method_domain(
&self,
payment_method_domain: &str,
) -> FluentRequest<'_, request::PostPaymentMethodDomainsPaymentMethodDomainRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodDomainsPaymentMethodDomainRequest {
payment_method_domain: payment_method_domain.to_owned(),
},
}
}
/**<p>Some payment methods such as Apple Pay require additional steps to verify a domain. If the requirements weren’t satisfied when the domain was created, the payment method will be inactive on the domain.
The payment method doesn’t appear in Elements for this domain until it is active.</p>
<p>To activate a payment method on an existing payment method domain, complete the required validation steps specific to the payment method, and then validate the payment method domain with this endpoint.</p>
<p>Related guides: <a href="/docs/payments/payment-methods/pmd-registration">Payment method domains</a>.</p>*/
pub fn post_payment_method_domains_payment_method_domain_validate(
&self,
payment_method_domain: &str,
) -> FluentRequest<
'_,
request::PostPaymentMethodDomainsPaymentMethodDomainValidateRequest,
> {
FluentRequest {
client: self,
params: request::PostPaymentMethodDomainsPaymentMethodDomainValidateRequest {
payment_method_domain: payment_method_domain.to_owned(),
},
}
}
///<p>Returns a list of PaymentMethods for Treasury flows. If you want to list the PaymentMethods attached to a Customer for payments, you should use the <a href="/docs/api/payment_methods/customer_list">List a Customer’s PaymentMethods</a> API instead.</p>
pub fn get_payment_methods(
&self,
) -> FluentRequest<'_, request::GetPaymentMethodsRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodsRequest {
customer: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
type_: None,
},
}
}
/**<p>Creates a PaymentMethod object. Read the <a href="/docs/stripe-js/reference#stripe-create-payment-method">Stripe.js reference</a> to learn how to create PaymentMethods via Stripe.js.</p>
<p>Instead of creating a PaymentMethod directly, we recommend using the <a href="/docs/payments/accept-a-payment">PaymentIntents</a> API to accept a payment immediately or the <a href="/docs/payments/save-and-reuse">SetupIntent</a> API to collect payment method details ahead of a future payment.</p>*/
pub fn post_payment_methods(
&self,
) -> FluentRequest<'_, request::PostPaymentMethodsRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodsRequest {
},
}
}
///<p>Retrieves a PaymentMethod object attached to the StripeAccount. To retrieve a payment method attached to a Customer, you should use <a href="/docs/api/payment_methods/customer">Retrieve a Customer’s PaymentMethods</a></p>
pub fn get_payment_methods_payment_method(
&self,
payment_method: &str,
) -> FluentRequest<'_, request::GetPaymentMethodsPaymentMethodRequest> {
FluentRequest {
client: self,
params: request::GetPaymentMethodsPaymentMethodRequest {
expand: None,
payment_method: payment_method.to_owned(),
},
}
}
///<p>Updates a PaymentMethod object. A PaymentMethod must be attached a customer to be updated.</p>
pub fn post_payment_methods_payment_method(
&self,
payment_method: &str,
) -> FluentRequest<'_, request::PostPaymentMethodsPaymentMethodRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodsPaymentMethodRequest {
payment_method: payment_method.to_owned(),
},
}
}
/**<p>Attaches a PaymentMethod object to a Customer.</p>
<p>To attach a new PaymentMethod to a customer for future payments, we recommend you use a <a href="/docs/api/setup_intents">SetupIntent</a>
or a PaymentIntent with <a href="/docs/api/payment_intents/create#create_payment_intent-setup_future_usage">setup_future_usage</a>.
These approaches will perform any necessary steps to set up the PaymentMethod for future payments. Using the <code>/v1/payment_methods/:id/attach</code>
endpoint without first using a SetupIntent or PaymentIntent with <code>setup_future_usage</code> does not optimize the PaymentMethod for
future use, which makes later declines and payment friction more likely.
See <a href="/docs/payments/payment-intents#future-usage">Optimizing cards for future payments</a> for more information about setting up
future payments.</p>
<p>To use this PaymentMethod as the default for invoice or subscription payments,
set <a href="/docs/api/customers/update#update_customer-invoice_settings-default_payment_method"><code>invoice_settings.default_payment_method</code></a>,
on the Customer to the PaymentMethod’s ID.</p>*/
pub fn post_payment_methods_payment_method_attach(
&self,
payment_method: &str,
) -> FluentRequest<'_, request::PostPaymentMethodsPaymentMethodAttachRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodsPaymentMethodAttachRequest {
payment_method: payment_method.to_owned(),
},
}
}
///<p>Detaches a PaymentMethod object from a Customer. After a PaymentMethod is detached, it can no longer be used for a payment or re-attached to a Customer.</p>
pub fn post_payment_methods_payment_method_detach(
&self,
payment_method: &str,
) -> FluentRequest<'_, request::PostPaymentMethodsPaymentMethodDetachRequest> {
FluentRequest {
client: self,
params: request::PostPaymentMethodsPaymentMethodDetachRequest {
payment_method: payment_method.to_owned(),
},
}
}
///<p>Returns a list of existing payouts sent to third-party bank accounts or payouts that Stripe sent to you. The payouts return in sorted order, with the most recently created payouts appearing first.</p>
pub fn get_payouts(&self) -> FluentRequest<'_, request::GetPayoutsRequest> {
FluentRequest {
client: self,
params: request::GetPayoutsRequest {
arrival_date: None,
created: None,
destination: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
/**<p>To send funds to your own bank account, create a new payout object. Your <a href="#balance">Stripe balance</a> must cover the payout amount. If it doesn’t, you receive an “Insufficient Funds” error.</p>
<p>If your API key is in test mode, money won’t actually be sent, though every other action occurs as if you’re in live mode.</p>
<p>If you create a manual payout on a Stripe account that uses multiple payment source types, you need to specify the source type balance that the payout draws from. The <a href="#balance_object">balance object</a> details available and pending amounts by source type.</p>*/
pub fn post_payouts(&self) -> FluentRequest<'_, request::PostPayoutsRequest> {
FluentRequest {
client: self,
params: request::PostPayoutsRequest {},
}
}
///<p>Retrieves the details of an existing payout. Supply the unique payout ID from either a payout creation request or the payout list. Stripe returns the corresponding payout information.</p>
pub fn get_payouts_payout(
&self,
payout: &str,
) -> FluentRequest<'_, request::GetPayoutsPayoutRequest> {
FluentRequest {
client: self,
params: request::GetPayoutsPayoutRequest {
expand: None,
payout: payout.to_owned(),
},
}
}
///<p>Updates the specified payout by setting the values of the parameters you pass. We don’t change parameters that you don’t provide. This request only accepts the metadata as arguments.</p>
pub fn post_payouts_payout(
&self,
payout: &str,
) -> FluentRequest<'_, request::PostPayoutsPayoutRequest> {
FluentRequest {
client: self,
params: request::PostPayoutsPayoutRequest {
payout: payout.to_owned(),
},
}
}
///<p>You can cancel a previously created payout if it hasn’t been paid out yet. Stripe refunds the funds to your available balance. You can’t cancel automatic Stripe payouts.</p>
pub fn post_payouts_payout_cancel(
&self,
payout: &str,
) -> FluentRequest<'_, request::PostPayoutsPayoutCancelRequest> {
FluentRequest {
client: self,
params: request::PostPayoutsPayoutCancelRequest {
payout: payout.to_owned(),
},
}
}
/**<p>Reverses a payout by debiting the destination bank account. At this time, you can only reverse payouts for connected accounts to US bank accounts. If the payout is in the <code>pending</code> status, use <code>/v1/payouts/:id/cancel</code> instead.</p>
<p>By requesting a reversal through <code>/v1/payouts/:id/reverse</code>, you confirm that the authorized signatory of the selected bank account authorizes the debit on the bank account and that no other authorization is required.</p>*/
pub fn post_payouts_payout_reverse(
&self,
payout: &str,
) -> FluentRequest<'_, request::PostPayoutsPayoutReverseRequest> {
FluentRequest {
client: self,
params: request::PostPayoutsPayoutReverseRequest {
payout: payout.to_owned(),
},
}
}
///<p>Returns a list of your plans.</p>
pub fn get_plans(&self) -> FluentRequest<'_, request::GetPlansRequest> {
FluentRequest {
client: self,
params: request::GetPlansRequest {
active: None,
created: None,
ending_before: None,
expand: None,
limit: None,
product: None,
starting_after: None,
},
}
}
///<p>You can now model subscriptions more flexibly using the <a href="#prices">Prices API</a>. It replaces the Plans API and is backwards compatible to simplify your migration.</p>
pub fn post_plans(&self) -> FluentRequest<'_, request::PostPlansRequest> {
FluentRequest {
client: self,
params: request::PostPlansRequest {},
}
}
///<p>Retrieves the plan with the given ID.</p>
pub fn get_plans_plan(
&self,
plan: &str,
) -> FluentRequest<'_, request::GetPlansPlanRequest> {
FluentRequest {
client: self,
params: request::GetPlansPlanRequest {
expand: None,
plan: plan.to_owned(),
},
}
}
///<p>Updates the specified plan by setting the values of the parameters passed. Any parameters not provided are left unchanged. By design, you cannot change a plan’s ID, amount, currency, or billing cycle.</p>
pub fn post_plans_plan(
&self,
plan: &str,
) -> FluentRequest<'_, request::PostPlansPlanRequest> {
FluentRequest {
client: self,
params: request::PostPlansPlanRequest {
plan: plan.to_owned(),
},
}
}
///<p>Deleting plans means new subscribers can’t be added. Existing subscribers aren’t affected.</p>
pub fn delete_plans_plan(
&self,
plan: &str,
) -> FluentRequest<'_, request::DeletePlansPlanRequest> {
FluentRequest {
client: self,
params: request::DeletePlansPlanRequest {
plan: plan.to_owned(),
},
}
}
///<p>Returns a list of your active prices, excluding <a href="/docs/products-prices/pricing-models#inline-pricing">inline prices</a>. For the list of inactive prices, set <code>active</code> to false.</p>
pub fn get_prices(&self) -> FluentRequest<'_, request::GetPricesRequest> {
FluentRequest {
client: self,
params: request::GetPricesRequest {
active: None,
created: None,
currency: None,
ending_before: None,
expand: None,
limit: None,
lookup_keys: None,
product: None,
recurring: None,
starting_after: None,
type_: None,
},
}
}
///<p>Creates a new price for an existing product. The price can be recurring or one-time.</p>
pub fn post_prices(&self) -> FluentRequest<'_, request::PostPricesRequest> {
FluentRequest {
client: self,
params: request::PostPricesRequest {},
}
}
/**<p>Search for prices you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_prices_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetPricesSearchRequest> {
FluentRequest {
client: self,
params: request::GetPricesSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
///<p>Retrieves the price with the given ID.</p>
pub fn get_prices_price(
&self,
price: &str,
) -> FluentRequest<'_, request::GetPricesPriceRequest> {
FluentRequest {
client: self,
params: request::GetPricesPriceRequest {
expand: None,
price: price.to_owned(),
},
}
}
///<p>Updates the specified price by setting the values of the parameters passed. Any parameters not provided are left unchanged.</p>
pub fn post_prices_price(
&self,
price: &str,
) -> FluentRequest<'_, request::PostPricesPriceRequest> {
FluentRequest {
client: self,
params: request::PostPricesPriceRequest {
price: price.to_owned(),
},
}
}
///<p>Returns a list of your products. The products are returned sorted by creation date, with the most recently created products appearing first.</p>
pub fn get_products(&self) -> FluentRequest<'_, request::GetProductsRequest> {
FluentRequest {
client: self,
params: request::GetProductsRequest {
active: None,
created: None,
ending_before: None,
expand: None,
ids: None,
limit: None,
shippable: None,
starting_after: None,
url: None,
},
}
}
///<p>Creates a new product object.</p>
pub fn post_products(&self) -> FluentRequest<'_, request::PostProductsRequest> {
FluentRequest {
client: self,
params: request::PostProductsRequest {},
}
}
/**<p>Search for products you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_products_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetProductsSearchRequest> {
FluentRequest {
client: self,
params: request::GetProductsSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
///<p>Retrieves the details of an existing product. Supply the unique product ID from either a product creation request or the product list, and Stripe will return the corresponding product information.</p>
pub fn get_products_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetProductsIdRequest> {
FluentRequest {
client: self,
params: request::GetProductsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Updates the specific product by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_products_id(
&self,
id: &str,
) -> FluentRequest<'_, request::PostProductsIdRequest> {
FluentRequest {
client: self,
params: request::PostProductsIdRequest {
id: id.to_owned(),
},
}
}
///<p>Delete a product. Deleting a product is only possible if it has no prices associated with it. Additionally, deleting a product with <code>type=good</code> is only possible if it has no SKUs associated with it.</p>
pub fn delete_products_id(
&self,
id: &str,
) -> FluentRequest<'_, request::DeleteProductsIdRequest> {
FluentRequest {
client: self,
params: request::DeleteProductsIdRequest {
id: id.to_owned(),
},
}
}
///<p>Returns a list of your promotion codes.</p>
pub fn get_promotion_codes(
&self,
) -> FluentRequest<'_, request::GetPromotionCodesRequest> {
FluentRequest {
client: self,
params: request::GetPromotionCodesRequest {
active: None,
code: None,
coupon: None,
created: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>A promotion code points to a coupon. You can optionally restrict the code to a specific customer, redemption limit, and expiration date.</p>
pub fn post_promotion_codes(
&self,
) -> FluentRequest<'_, request::PostPromotionCodesRequest> {
FluentRequest {
client: self,
params: request::PostPromotionCodesRequest {
},
}
}
///<p>Retrieves the promotion code with the given ID. In order to retrieve a promotion code by the customer-facing <code>code</code> use <a href="/docs/api/promotion_codes/list">list</a> with the desired <code>code</code>.</p>
pub fn get_promotion_codes_promotion_code(
&self,
promotion_code: &str,
) -> FluentRequest<'_, request::GetPromotionCodesPromotionCodeRequest> {
FluentRequest {
client: self,
params: request::GetPromotionCodesPromotionCodeRequest {
expand: None,
promotion_code: promotion_code.to_owned(),
},
}
}
///<p>Updates the specified promotion code by setting the values of the parameters passed. Most fields are, by design, not editable.</p>
pub fn post_promotion_codes_promotion_code(
&self,
promotion_code: &str,
) -> FluentRequest<'_, request::PostPromotionCodesPromotionCodeRequest> {
FluentRequest {
client: self,
params: request::PostPromotionCodesPromotionCodeRequest {
promotion_code: promotion_code.to_owned(),
},
}
}
///<p>Returns a list of your quotes.</p>
pub fn get_quotes(&self) -> FluentRequest<'_, request::GetQuotesRequest> {
FluentRequest {
client: self,
params: request::GetQuotesRequest {
customer: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
test_clock: None,
},
}
}
///<p>A quote models prices and services for a customer. Default options for <code>header</code>, <code>description</code>, <code>footer</code>, and <code>expires_at</code> can be set in the dashboard via the <a href="https://dashboard.stripe.com/settings/billing/quote">quote template</a>.</p>
pub fn post_quotes(&self) -> FluentRequest<'_, request::PostQuotesRequest> {
FluentRequest {
client: self,
params: request::PostQuotesRequest {},
}
}
///<p>Retrieves the quote with the given ID.</p>
pub fn get_quotes_quote(
&self,
quote: &str,
) -> FluentRequest<'_, request::GetQuotesQuoteRequest> {
FluentRequest {
client: self,
params: request::GetQuotesQuoteRequest {
expand: None,
quote: quote.to_owned(),
},
}
}
///<p>A quote models prices and services for a customer.</p>
pub fn post_quotes_quote(
&self,
quote: &str,
) -> FluentRequest<'_, request::PostQuotesQuoteRequest> {
FluentRequest {
client: self,
params: request::PostQuotesQuoteRequest {
quote: quote.to_owned(),
},
}
}
///<p>Accepts the specified quote.</p>
pub fn post_quotes_quote_accept(
&self,
quote: &str,
) -> FluentRequest<'_, request::PostQuotesQuoteAcceptRequest> {
FluentRequest {
client: self,
params: request::PostQuotesQuoteAcceptRequest {
quote: quote.to_owned(),
},
}
}
///<p>Cancels the quote.</p>
pub fn post_quotes_quote_cancel(
&self,
quote: &str,
) -> FluentRequest<'_, request::PostQuotesQuoteCancelRequest> {
FluentRequest {
client: self,
params: request::PostQuotesQuoteCancelRequest {
quote: quote.to_owned(),
},
}
}
///<p>When retrieving a quote, there is an includable <a href="https://stripe.com/docs/api/quotes/object#quote_object-computed-upfront-line_items"><strong>computed.upfront.line_items</strong></a> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of upfront line items.</p>
pub fn get_quotes_quote_computed_upfront_line_items(
&self,
quote: &str,
) -> FluentRequest<'_, request::GetQuotesQuoteComputedUpfrontLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetQuotesQuoteComputedUpfrontLineItemsRequest {
ending_before: None,
expand: None,
limit: None,
quote: quote.to_owned(),
starting_after: None,
},
}
}
///<p>Finalizes the quote.</p>
pub fn post_quotes_quote_finalize(
&self,
quote: &str,
) -> FluentRequest<'_, request::PostQuotesQuoteFinalizeRequest> {
FluentRequest {
client: self,
params: request::PostQuotesQuoteFinalizeRequest {
quote: quote.to_owned(),
},
}
}
///<p>When retrieving a quote, there is an includable <strong>line_items</strong> property containing the first handful of those items. There is also a URL where you can retrieve the full (paginated) list of line items.</p>
pub fn get_quotes_quote_line_items(
&self,
quote: &str,
) -> FluentRequest<'_, request::GetQuotesQuoteLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetQuotesQuoteLineItemsRequest {
ending_before: None,
expand: None,
limit: None,
quote: quote.to_owned(),
starting_after: None,
},
}
}
///<p>Download the PDF for a finalized quote</p>
pub fn get_quotes_quote_pdf(
&self,
quote: &str,
) -> FluentRequest<'_, request::GetQuotesQuotePdfRequest> {
FluentRequest {
client: self,
params: request::GetQuotesQuotePdfRequest {
expand: None,
quote: quote.to_owned(),
},
}
}
///<p>Returns a list of early fraud warnings.</p>
pub fn get_radar_early_fraud_warnings(
&self,
) -> FluentRequest<'_, request::GetRadarEarlyFraudWarningsRequest> {
FluentRequest {
client: self,
params: request::GetRadarEarlyFraudWarningsRequest {
charge: None,
ending_before: None,
expand: None,
limit: None,
payment_intent: None,
starting_after: None,
},
}
}
/**<p>Retrieves the details of an early fraud warning that has previously been created. </p>
<p>Please refer to the <a href="#early_fraud_warning_object">early fraud warning</a> object reference for more details.</p>*/
pub fn get_radar_early_fraud_warnings_early_fraud_warning(
&self,
early_fraud_warning: &str,
) -> FluentRequest<'_, request::GetRadarEarlyFraudWarningsEarlyFraudWarningRequest> {
FluentRequest {
client: self,
params: request::GetRadarEarlyFraudWarningsEarlyFraudWarningRequest {
early_fraud_warning: early_fraud_warning.to_owned(),
expand: None,
},
}
}
///<p>Returns a list of <code>ValueListItem</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_radar_value_list_items(
&self,
value_list: &str,
) -> FluentRequest<'_, request::GetRadarValueListItemsRequest> {
FluentRequest {
client: self,
params: request::GetRadarValueListItemsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
value: None,
value_list: value_list.to_owned(),
},
}
}
///<p>Creates a new <code>ValueListItem</code> object, which is added to the specified parent value list.</p>
pub fn post_radar_value_list_items(
&self,
) -> FluentRequest<'_, request::PostRadarValueListItemsRequest> {
FluentRequest {
client: self,
params: request::PostRadarValueListItemsRequest {
},
}
}
///<p>Retrieves a <code>ValueListItem</code> object.</p>
pub fn get_radar_value_list_items_item(
&self,
item: &str,
) -> FluentRequest<'_, request::GetRadarValueListItemsItemRequest> {
FluentRequest {
client: self,
params: request::GetRadarValueListItemsItemRequest {
expand: None,
item: item.to_owned(),
},
}
}
///<p>Deletes a <code>ValueListItem</code> object, removing it from its parent value list.</p>
pub fn delete_radar_value_list_items_item(
&self,
item: &str,
) -> FluentRequest<'_, request::DeleteRadarValueListItemsItemRequest> {
FluentRequest {
client: self,
params: request::DeleteRadarValueListItemsItemRequest {
item: item.to_owned(),
},
}
}
///<p>Returns a list of <code>ValueList</code> objects. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_radar_value_lists(
&self,
) -> FluentRequest<'_, request::GetRadarValueListsRequest> {
FluentRequest {
client: self,
params: request::GetRadarValueListsRequest {
alias: None,
contains: None,
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new <code>ValueList</code> object, which can then be referenced in rules.</p>
pub fn post_radar_value_lists(
&self,
) -> FluentRequest<'_, request::PostRadarValueListsRequest> {
FluentRequest {
client: self,
params: request::PostRadarValueListsRequest {
},
}
}
///<p>Retrieves a <code>ValueList</code> object.</p>
pub fn get_radar_value_lists_value_list(
&self,
value_list: &str,
) -> FluentRequest<'_, request::GetRadarValueListsValueListRequest> {
FluentRequest {
client: self,
params: request::GetRadarValueListsValueListRequest {
expand: None,
value_list: value_list.to_owned(),
},
}
}
///<p>Updates a <code>ValueList</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged. Note that <code>item_type</code> is immutable.</p>
pub fn post_radar_value_lists_value_list(
&self,
value_list: &str,
) -> FluentRequest<'_, request::PostRadarValueListsValueListRequest> {
FluentRequest {
client: self,
params: request::PostRadarValueListsValueListRequest {
value_list: value_list.to_owned(),
},
}
}
///<p>Deletes a <code>ValueList</code> object, also deleting any items contained within the value list. To be deleted, a value list must not be referenced in any rules.</p>
pub fn delete_radar_value_lists_value_list(
&self,
value_list: &str,
) -> FluentRequest<'_, request::DeleteRadarValueListsValueListRequest> {
FluentRequest {
client: self,
params: request::DeleteRadarValueListsValueListRequest {
value_list: value_list.to_owned(),
},
}
}
///<p>Returns a list of all refunds you created. We return the refunds in sorted order, with the most recent refunds appearing first The 10 most recent refunds are always available by default on the Charge object.</p>
pub fn get_refunds(&self) -> FluentRequest<'_, request::GetRefundsRequest> {
FluentRequest {
client: self,
params: request::GetRefundsRequest {
charge: None,
created: None,
ending_before: None,
expand: None,
limit: None,
payment_intent: None,
starting_after: None,
},
}
}
/**<p>When you create a new refund, you must specify a Charge or a PaymentIntent object on which to create it.</p>
<p>Creating a new refund will refund a charge that has previously been created but not yet refunded.
Funds will be refunded to the credit or debit card that was originally charged.</p>
<p>You can optionally refund only part of a charge.
You can do so multiple times, until the entire charge has been refunded.</p>
<p>Once entirely refunded, a charge can’t be refunded again.
This method will raise an error when called on an already-refunded charge,
or when trying to refund more money than is left on a charge.</p>*/
pub fn post_refunds(&self) -> FluentRequest<'_, request::PostRefundsRequest> {
FluentRequest {
client: self,
params: request::PostRefundsRequest {},
}
}
///<p>Retrieves the details of an existing refund.</p>
pub fn get_refunds_refund(
&self,
refund: &str,
) -> FluentRequest<'_, request::GetRefundsRefundRequest> {
FluentRequest {
client: self,
params: request::GetRefundsRefundRequest {
expand: None,
refund: refund.to_owned(),
},
}
}
/**<p>Updates the refund that you specify by setting the values of the passed parameters. Any parameters that you don’t provide remain unchanged.</p>
<p>This request only accepts <code>metadata</code> as an argument.</p>*/
pub fn post_refunds_refund(
&self,
refund: &str,
) -> FluentRequest<'_, request::PostRefundsRefundRequest> {
FluentRequest {
client: self,
params: request::PostRefundsRefundRequest {
refund: refund.to_owned(),
},
}
}
/**<p>Cancels a refund with a status of <code>requires_action</code>.</p>
<p>You can’t cancel refunds in other states. Only refunds for payment methods that require customer action can enter the <code>requires_action</code> state.</p>*/
pub fn post_refunds_refund_cancel(
&self,
refund: &str,
) -> FluentRequest<'_, request::PostRefundsRefundCancelRequest> {
FluentRequest {
client: self,
params: request::PostRefundsRefundCancelRequest {
refund: refund.to_owned(),
},
}
}
///<p>Returns a list of Report Runs, with the most recent appearing first.</p>
pub fn get_reporting_report_runs(
&self,
) -> FluentRequest<'_, request::GetReportingReportRunsRequest> {
FluentRequest {
client: self,
params: request::GetReportingReportRunsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new object and begin running the report. (Certain report types require a <a href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.)</p>
pub fn post_reporting_report_runs(
&self,
) -> FluentRequest<'_, request::PostReportingReportRunsRequest> {
FluentRequest {
client: self,
params: request::PostReportingReportRunsRequest {
},
}
}
///<p>Retrieves the details of an existing Report Run.</p>
pub fn get_reporting_report_runs_report_run(
&self,
report_run: &str,
) -> FluentRequest<'_, request::GetReportingReportRunsReportRunRequest> {
FluentRequest {
client: self,
params: request::GetReportingReportRunsReportRunRequest {
expand: None,
report_run: report_run.to_owned(),
},
}
}
///<p>Returns a full list of Report Types.</p>
pub fn get_reporting_report_types(
&self,
) -> FluentRequest<'_, request::GetReportingReportTypesRequest> {
FluentRequest {
client: self,
params: request::GetReportingReportTypesRequest {
expand: None,
},
}
}
///<p>Retrieves the details of a Report Type. (Certain report types require a <a href="https://stripe.com/docs/keys#test-live-modes">live-mode API key</a>.)</p>
pub fn get_reporting_report_types_report_type(
&self,
report_type: &str,
) -> FluentRequest<'_, request::GetReportingReportTypesReportTypeRequest> {
FluentRequest {
client: self,
params: request::GetReportingReportTypesReportTypeRequest {
expand: None,
report_type: report_type.to_owned(),
},
}
}
///<p>Returns a list of <code>Review</code> objects that have <code>open</code> set to <code>true</code>. The objects are sorted in descending order by creation date, with the most recently created object appearing first.</p>
pub fn get_reviews(&self) -> FluentRequest<'_, request::GetReviewsRequest> {
FluentRequest {
client: self,
params: request::GetReviewsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves a <code>Review</code> object.</p>
pub fn get_reviews_review(
&self,
review: &str,
) -> FluentRequest<'_, request::GetReviewsReviewRequest> {
FluentRequest {
client: self,
params: request::GetReviewsReviewRequest {
expand: None,
review: review.to_owned(),
},
}
}
///<p>Approves a <code>Review</code> object, closing it and removing it from the list of reviews.</p>
pub fn post_reviews_review_approve(
&self,
review: &str,
) -> FluentRequest<'_, request::PostReviewsReviewApproveRequest> {
FluentRequest {
client: self,
params: request::PostReviewsReviewApproveRequest {
review: review.to_owned(),
},
}
}
///<p>Returns a list of SetupAttempts that associate with a provided SetupIntent.</p>
pub fn get_setup_attempts(
&self,
setup_intent: &str,
) -> FluentRequest<'_, request::GetSetupAttemptsRequest> {
FluentRequest {
client: self,
params: request::GetSetupAttemptsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
setup_intent: setup_intent.to_owned(),
starting_after: None,
},
}
}
///<p>Returns a list of SetupIntents.</p>
pub fn get_setup_intents(
&self,
) -> FluentRequest<'_, request::GetSetupIntentsRequest> {
FluentRequest {
client: self,
params: request::GetSetupIntentsRequest {
attach_to_self: None,
created: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
payment_method: None,
starting_after: None,
},
}
}
/**<p>Creates a SetupIntent object.</p>
<p>After you create the SetupIntent, attach a payment method and <a href="/docs/api/setup_intents/confirm">confirm</a>
it to collect any required permissions to charge the payment method later.</p>*/
pub fn post_setup_intents(
&self,
) -> FluentRequest<'_, request::PostSetupIntentsRequest> {
FluentRequest {
client: self,
params: request::PostSetupIntentsRequest {
},
}
}
/**<p>Retrieves the details of a SetupIntent that has previously been created. </p>
<p>Client-side retrieval using a publishable key is allowed when the <code>client_secret</code> is provided in the query string. </p>
<p>When retrieved with a publishable key, only a subset of properties will be returned. Please refer to the <a href="#setup_intent_object">SetupIntent</a> object reference for more details.</p>*/
pub fn get_setup_intents_intent(
&self,
intent: &str,
) -> FluentRequest<'_, request::GetSetupIntentsIntentRequest> {
FluentRequest {
client: self,
params: request::GetSetupIntentsIntentRequest {
client_secret: None,
expand: None,
intent: intent.to_owned(),
},
}
}
///<p>Updates a SetupIntent object.</p>
pub fn post_setup_intents_intent(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostSetupIntentsIntentRequest> {
FluentRequest {
client: self,
params: request::PostSetupIntentsIntentRequest {
intent: intent.to_owned(),
},
}
}
/**<p>You can cancel a SetupIntent object when it’s in one of these statuses: <code>requires_payment_method</code>, <code>requires_confirmation</code>, or <code>requires_action</code>. </p>
<p>After you cancel it, setup is abandoned and any operations on the SetupIntent fail with an error.</p>*/
pub fn post_setup_intents_intent_cancel(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostSetupIntentsIntentCancelRequest> {
FluentRequest {
client: self,
params: request::PostSetupIntentsIntentCancelRequest {
intent: intent.to_owned(),
},
}
}
/**<p>Confirm that your customer intends to set up the current or
provided payment method. For example, you would confirm a SetupIntent
when a customer hits the “Save” button on a payment method management
page on your website.</p>
<p>If the selected payment method does not require any additional
steps from the customer, the SetupIntent will transition to the
<code>succeeded</code> status.</p>
<p>Otherwise, it will transition to the <code>requires_action</code> status and
suggest additional actions via <code>next_action</code>. If setup fails,
the SetupIntent will transition to the
<code>requires_payment_method</code> status or the <code>canceled</code> status if the
confirmation limit is reached.</p>*/
pub fn post_setup_intents_intent_confirm(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostSetupIntentsIntentConfirmRequest> {
FluentRequest {
client: self,
params: request::PostSetupIntentsIntentConfirmRequest {
intent: intent.to_owned(),
},
}
}
///<p>Verifies microdeposits on a SetupIntent object.</p>
pub fn post_setup_intents_intent_verify_microdeposits(
&self,
intent: &str,
) -> FluentRequest<'_, request::PostSetupIntentsIntentVerifyMicrodepositsRequest> {
FluentRequest {
client: self,
params: request::PostSetupIntentsIntentVerifyMicrodepositsRequest {
intent: intent.to_owned(),
},
}
}
///<p>Returns a list of your shipping rates.</p>
pub fn get_shipping_rates(
&self,
) -> FluentRequest<'_, request::GetShippingRatesRequest> {
FluentRequest {
client: self,
params: request::GetShippingRatesRequest {
active: None,
created: None,
currency: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new shipping rate object.</p>
pub fn post_shipping_rates(
&self,
) -> FluentRequest<'_, request::PostShippingRatesRequest> {
FluentRequest {
client: self,
params: request::PostShippingRatesRequest {
},
}
}
///<p>Returns the shipping rate object with the given ID.</p>
pub fn get_shipping_rates_shipping_rate_token(
&self,
shipping_rate_token: &str,
) -> FluentRequest<'_, request::GetShippingRatesShippingRateTokenRequest> {
FluentRequest {
client: self,
params: request::GetShippingRatesShippingRateTokenRequest {
expand: None,
shipping_rate_token: shipping_rate_token.to_owned(),
},
}
}
///<p>Updates an existing shipping rate object.</p>
pub fn post_shipping_rates_shipping_rate_token(
&self,
shipping_rate_token: &str,
) -> FluentRequest<'_, request::PostShippingRatesShippingRateTokenRequest> {
FluentRequest {
client: self,
params: request::PostShippingRatesShippingRateTokenRequest {
shipping_rate_token: shipping_rate_token.to_owned(),
},
}
}
///<p>Returns a list of scheduled query runs.</p>
pub fn get_sigma_scheduled_query_runs(
&self,
) -> FluentRequest<'_, request::GetSigmaScheduledQueryRunsRequest> {
FluentRequest {
client: self,
params: request::GetSigmaScheduledQueryRunsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves the details of an scheduled query run.</p>
pub fn get_sigma_scheduled_query_runs_scheduled_query_run(
&self,
scheduled_query_run: &str,
) -> FluentRequest<'_, request::GetSigmaScheduledQueryRunsScheduledQueryRunRequest> {
FluentRequest {
client: self,
params: request::GetSigmaScheduledQueryRunsScheduledQueryRunRequest {
expand: None,
scheduled_query_run: scheduled_query_run.to_owned(),
},
}
}
///<p>Creates a new source object.</p>
pub fn post_sources(&self) -> FluentRequest<'_, request::PostSourcesRequest> {
FluentRequest {
client: self,
params: request::PostSourcesRequest {},
}
}
///<p>Retrieves an existing source object. Supply the unique source ID from a source creation request and Stripe will return the corresponding up-to-date source object information.</p>
pub fn get_sources_source(
&self,
source: &str,
) -> FluentRequest<'_, request::GetSourcesSourceRequest> {
FluentRequest {
client: self,
params: request::GetSourcesSourceRequest {
client_secret: None,
expand: None,
source: source.to_owned(),
},
}
}
/**<p>Updates the specified source by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>This request accepts the <code>metadata</code> and <code>owner</code> as arguments. It is also possible to update type specific information for selected payment methods. Please refer to our <a href="/docs/sources">payment method guides</a> for more detail.</p>*/
pub fn post_sources_source(
&self,
source: &str,
) -> FluentRequest<'_, request::PostSourcesSourceRequest> {
FluentRequest {
client: self,
params: request::PostSourcesSourceRequest {
source: source.to_owned(),
},
}
}
///<p>Retrieves a new Source MandateNotification.</p>
pub fn get_sources_source_mandate_notifications_mandate_notification(
&self,
mandate_notification: &str,
source: &str,
) -> FluentRequest<
'_,
request::GetSourcesSourceMandateNotificationsMandateNotificationRequest,
> {
FluentRequest {
client: self,
params: request::GetSourcesSourceMandateNotificationsMandateNotificationRequest {
expand: None,
mandate_notification: mandate_notification.to_owned(),
source: source.to_owned(),
},
}
}
///<p>List source transactions for a given source.</p>
pub fn get_sources_source_source_transactions(
&self,
source: &str,
) -> FluentRequest<'_, request::GetSourcesSourceSourceTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetSourcesSourceSourceTransactionsRequest {
ending_before: None,
expand: None,
limit: None,
source: source.to_owned(),
starting_after: None,
},
}
}
///<p>Retrieve an existing source transaction object. Supply the unique source ID from a source creation request and the source transaction ID and Stripe will return the corresponding up-to-date source object information.</p>
pub fn get_sources_source_source_transactions_source_transaction(
&self,
source: &str,
source_transaction: &str,
) -> FluentRequest<
'_,
request::GetSourcesSourceSourceTransactionsSourceTransactionRequest,
> {
FluentRequest {
client: self,
params: request::GetSourcesSourceSourceTransactionsSourceTransactionRequest {
expand: None,
source: source.to_owned(),
source_transaction: source_transaction.to_owned(),
},
}
}
///<p>Verify a given source.</p>
pub fn post_sources_source_verify(
&self,
source: &str,
) -> FluentRequest<'_, request::PostSourcesSourceVerifyRequest> {
FluentRequest {
client: self,
params: request::PostSourcesSourceVerifyRequest {
source: source.to_owned(),
},
}
}
///<p>Returns a list of your subscription items for a given subscription.</p>
pub fn get_subscription_items(
&self,
subscription: &str,
) -> FluentRequest<'_, request::GetSubscriptionItemsRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionItemsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
subscription: subscription.to_owned(),
},
}
}
///<p>Adds a new item to an existing subscription. No existing items will be changed or replaced.</p>
pub fn post_subscription_items(
&self,
) -> FluentRequest<'_, request::PostSubscriptionItemsRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionItemsRequest {
},
}
}
///<p>Retrieves the subscription item with the given ID.</p>
pub fn get_subscription_items_item(
&self,
item: &str,
) -> FluentRequest<'_, request::GetSubscriptionItemsItemRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionItemsItemRequest {
expand: None,
item: item.to_owned(),
},
}
}
///<p>Updates the plan or quantity of an item on a current subscription.</p>
pub fn post_subscription_items_item(
&self,
item: &str,
) -> FluentRequest<'_, request::PostSubscriptionItemsItemRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionItemsItemRequest {
item: item.to_owned(),
},
}
}
///<p>Deletes an item from the subscription. Removing a subscription item from a subscription will not cancel the subscription.</p>
pub fn delete_subscription_items_item(
&self,
item: &str,
) -> FluentRequest<'_, request::DeleteSubscriptionItemsItemRequest> {
FluentRequest {
client: self,
params: request::DeleteSubscriptionItemsItemRequest {
item: item.to_owned(),
},
}
}
/**<p>For the specified subscription item, returns a list of summary objects. Each object in the list provides usage information that’s been summarized from multiple usage records and over a subscription billing period (e.g., 15 usage records in the month of September).</p>
<p>The list is sorted in reverse-chronological order (newest first). The first list item represents the most current usage period that hasn’t ended yet. Since new usage records can still be added, the returned summary information for the subscription item’s ID should be seen as unstable until the subscription billing period ends.</p>*/
pub fn get_subscription_items_subscription_item_usage_record_summaries(
&self,
subscription_item: &str,
) -> FluentRequest<
'_,
request::GetSubscriptionItemsSubscriptionItemUsageRecordSummariesRequest,
> {
FluentRequest {
client: self,
params: request::GetSubscriptionItemsSubscriptionItemUsageRecordSummariesRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
subscription_item: subscription_item.to_owned(),
},
}
}
/**<p>Creates a usage record for a specified subscription item and date, and fills it with a quantity.</p>
<p>Usage records provide <code>quantity</code> information that Stripe uses to track how much a customer is using your service. With usage information and the pricing model set up by the <a href="https://stripe.com/docs/billing/subscriptions/metered-billing">metered billing</a> plan, Stripe helps you send accurate invoices to your customers.</p>
<p>The default calculation for usage is to add up all the <code>quantity</code> values of the usage records within a billing period. You can change this default behavior with the billing plan’s <code>aggregate_usage</code> <a href="/docs/api/plans/create#create_plan-aggregate_usage">parameter</a>. When there is more than one usage record with the same timestamp, Stripe adds the <code>quantity</code> values together. In most cases, this is the desired resolution, however, you can change this behavior with the <code>action</code> parameter.</p>
<p>The default pricing model for metered billing is <a href="/docs/api/plans/object#plan_object-billing_scheme">per-unit pricing</a>. For finer granularity, you can configure metered billing to have a <a href="https://stripe.com/docs/billing/subscriptions/tiers">tiered pricing</a> model.</p>*/
pub fn post_subscription_items_subscription_item_usage_records(
&self,
subscription_item: &str,
) -> FluentRequest<
'_,
request::PostSubscriptionItemsSubscriptionItemUsageRecordsRequest,
> {
FluentRequest {
client: self,
params: request::PostSubscriptionItemsSubscriptionItemUsageRecordsRequest {
subscription_item: subscription_item.to_owned(),
},
}
}
///<p>Retrieves the list of your subscription schedules.</p>
pub fn get_subscription_schedules(
&self,
) -> FluentRequest<'_, request::GetSubscriptionSchedulesRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionSchedulesRequest {
canceled_at: None,
completed_at: None,
created: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
released_at: None,
scheduled: None,
starting_after: None,
},
}
}
///<p>Creates a new subscription schedule object. Each customer can have up to 500 active or scheduled subscriptions.</p>
pub fn post_subscription_schedules(
&self,
) -> FluentRequest<'_, request::PostSubscriptionSchedulesRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionSchedulesRequest {
},
}
}
///<p>Retrieves the details of an existing subscription schedule. You only need to supply the unique subscription schedule identifier that was returned upon subscription schedule creation.</p>
pub fn get_subscription_schedules_schedule(
&self,
schedule: &str,
) -> FluentRequest<'_, request::GetSubscriptionSchedulesScheduleRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionSchedulesScheduleRequest {
expand: None,
schedule: schedule.to_owned(),
},
}
}
///<p>Updates an existing subscription schedule.</p>
pub fn post_subscription_schedules_schedule(
&self,
schedule: &str,
) -> FluentRequest<'_, request::PostSubscriptionSchedulesScheduleRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionSchedulesScheduleRequest {
schedule: schedule.to_owned(),
},
}
}
///<p>Cancels a subscription schedule and its associated subscription immediately (if the subscription schedule has an active subscription). A subscription schedule can only be canceled if its status is <code>not_started</code> or <code>active</code>.</p>
pub fn post_subscription_schedules_schedule_cancel(
&self,
schedule: &str,
) -> FluentRequest<'_, request::PostSubscriptionSchedulesScheduleCancelRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionSchedulesScheduleCancelRequest {
schedule: schedule.to_owned(),
},
}
}
///<p>Releases the subscription schedule immediately, which will stop scheduling of its phases, but leave any existing subscription in place. A schedule can only be released if its status is <code>not_started</code> or <code>active</code>. If the subscription schedule is currently associated with a subscription, releasing it will remove its <code>subscription</code> property and set the subscription’s ID to the <code>released_subscription</code> property.</p>
pub fn post_subscription_schedules_schedule_release(
&self,
schedule: &str,
) -> FluentRequest<'_, request::PostSubscriptionSchedulesScheduleReleaseRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionSchedulesScheduleReleaseRequest {
schedule: schedule.to_owned(),
},
}
}
///<p>By default, returns a list of subscriptions that have not been canceled. In order to list canceled subscriptions, specify <code>status=canceled</code>.</p>
pub fn get_subscriptions(
&self,
) -> FluentRequest<'_, request::GetSubscriptionsRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionsRequest {
automatic_tax: None,
collection_method: None,
created: None,
current_period_end: None,
current_period_start: None,
customer: None,
ending_before: None,
expand: None,
limit: None,
price: None,
starting_after: None,
status: None,
test_clock: None,
},
}
}
/**<p>Creates a new subscription on an existing customer. Each customer can have up to 500 active or scheduled subscriptions.</p>
<p>When you create a subscription with <code>collection_method=charge_automatically</code>, the first invoice is finalized as part of the request.
The <code>payment_behavior</code> parameter determines the exact behavior of the initial payment.</p>
<p>To start subscriptions where the first invoice always begins in a <code>draft</code> status, use <a href="/docs/billing/subscriptions/subscription-schedules#managing">subscription schedules</a> instead.
Schedules provide the flexibility to model more complex billing configurations that change over time.</p>*/
pub fn post_subscriptions(
&self,
) -> FluentRequest<'_, request::PostSubscriptionsRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionsRequest {
},
}
}
/**<p>Search for subscriptions you’ve previously created using Stripe’s <a href="/docs/search#search-query-language">Search Query Language</a>.
Don’t use search in read-after-write flows where strict consistency is necessary. Under normal operating
conditions, data is searchable in less than a minute. Occasionally, propagation of new or updated data can be up
to an hour behind during outages. Search functionality is not available to merchants in India.</p>*/
pub fn get_subscriptions_search(
&self,
query: &str,
) -> FluentRequest<'_, request::GetSubscriptionsSearchRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionsSearchRequest {
expand: None,
limit: None,
page: None,
query: query.to_owned(),
},
}
}
///<p>Retrieves the subscription with the given ID.</p>
pub fn get_subscriptions_subscription_exposed_id(
&self,
subscription_exposed_id: &str,
) -> FluentRequest<'_, request::GetSubscriptionsSubscriptionExposedIdRequest> {
FluentRequest {
client: self,
params: request::GetSubscriptionsSubscriptionExposedIdRequest {
expand: None,
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
/**<p>Updates an existing subscription to match the specified parameters.
When changing prices or quantities, we optionally prorate the price we charge next month to make up for any price changes.
To preview how the proration is calculated, use the <a href="/docs/api/invoices/upcoming">upcoming invoice</a> endpoint.</p>
<p>By default, we prorate subscription changes. For example, if a customer signs up on May 1 for a <currency>100</currency> price, they’ll be billed <currency>100</currency> immediately. If on May 15 they switch to a <currency>200</currency> price, then on June 1 they’ll be billed <currency>250</currency> (<currency>200</currency> for a renewal of her subscription, plus a <currency>50</currency> prorating adjustment for half of the previous month’s <currency>100</currency> difference). Similarly, a downgrade generates a credit that is applied to the next invoice. We also prorate when you make quantity changes.</p>
<p>Switching prices does not normally change the billing date or generate an immediate charge unless:</p>
<ul>
<li>The billing interval is changed (for example, from monthly to yearly).</li>
<li>The subscription moves from free to paid, or paid to free.</li>
<li>A trial starts or ends.</li>
</ul>
<p>In these cases, we apply a credit for the unused time on the previous price, immediately charge the customer using the new price, and reset the billing date.</p>
<p>If you want to charge for an upgrade immediately, pass <code>proration_behavior</code> as <code>always_invoice</code> to create prorations, automatically invoice the customer for those proration adjustments, and attempt to collect payment. If you pass <code>create_prorations</code>, the prorations are created but not automatically invoiced. If you want to bill the customer for the prorations before the subscription’s renewal date, you need to manually <a href="/docs/api/invoices/create">invoice the customer</a>.</p>
<p>If you don’t want to prorate, set the <code>proration_behavior</code> option to <code>none</code>. With this option, the customer is billed <currency>100</currency> on May 1 and <currency>200</currency> on June 1. Similarly, if you set <code>proration_behavior</code> to <code>none</code> when switching between different billing intervals (for example, from monthly to yearly), we don’t generate any credits for the old subscription’s unused time. We still reset the billing date and bill immediately for the new subscription.</p>
<p>Updating the quantity on a subscription many times in an hour may result in <a href="/docs/rate-limits">rate limiting</a>. If you need to bill for a frequently changing quantity, consider integrating <a href="/docs/billing/subscriptions/usage-based">usage-based billing</a> instead.</p>*/
pub fn post_subscriptions_subscription_exposed_id(
&self,
subscription_exposed_id: &str,
) -> FluentRequest<'_, request::PostSubscriptionsSubscriptionExposedIdRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionsSubscriptionExposedIdRequest {
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
/**<p>Cancels a customer’s subscription immediately. The customer will not be charged again for the subscription.</p>
<p>Note, however, that any pending invoice items that you’ve created will still be charged for at the end of the period, unless manually <a href="#delete_invoiceitem">deleted</a>. If you’ve set the subscription to cancel at the end of the period, any pending prorations will also be left in place and collected at the end of the period. But if the subscription is set to cancel immediately, pending prorations will be removed.</p>
<p>By default, upon subscription cancellation, Stripe will stop automatic collection of all finalized invoices for the customer. This is intended to prevent unexpected payment attempts after the customer has canceled a subscription. However, you can resume automatic collection of the invoices manually after subscription cancellation to have us proceed. Or, you could check for unpaid invoices before allowing the customer to cancel the subscription at all.</p>*/
pub fn delete_subscriptions_subscription_exposed_id(
&self,
subscription_exposed_id: &str,
) -> FluentRequest<'_, request::DeleteSubscriptionsSubscriptionExposedIdRequest> {
FluentRequest {
client: self,
params: request::DeleteSubscriptionsSubscriptionExposedIdRequest {
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
///<p>Removes the currently applied discount on a subscription.</p>
pub fn delete_subscriptions_subscription_exposed_id_discount(
&self,
subscription_exposed_id: &str,
) -> FluentRequest<
'_,
request::DeleteSubscriptionsSubscriptionExposedIdDiscountRequest,
> {
FluentRequest {
client: self,
params: request::DeleteSubscriptionsSubscriptionExposedIdDiscountRequest {
subscription_exposed_id: subscription_exposed_id.to_owned(),
},
}
}
///<p>Initiates resumption of a paused subscription, optionally resetting the billing cycle anchor and creating prorations. If a resumption invoice is generated, it must be paid or marked uncollectible before the subscription will be unpaused. If payment succeeds the subscription will become <code>active</code>, and if payment fails the subscription will be <code>past_due</code>. The resumption invoice will void automatically if not paid by the expiration date.</p>
pub fn post_subscriptions_subscription_resume(
&self,
subscription: &str,
) -> FluentRequest<'_, request::PostSubscriptionsSubscriptionResumeRequest> {
FluentRequest {
client: self,
params: request::PostSubscriptionsSubscriptionResumeRequest {
subscription: subscription.to_owned(),
},
}
}
///<p>Calculates tax based on input and returns a Tax <code>Calculation</code> object.</p>
pub fn post_tax_calculations(
&self,
) -> FluentRequest<'_, request::PostTaxCalculationsRequest> {
FluentRequest {
client: self,
params: request::PostTaxCalculationsRequest {
},
}
}
///<p>Retrieves the line items of a persisted tax calculation as a collection.</p>
pub fn get_tax_calculations_calculation_line_items(
&self,
calculation: &str,
) -> FluentRequest<'_, request::GetTaxCalculationsCalculationLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetTaxCalculationsCalculationLineItemsRequest {
calculation: calculation.to_owned(),
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Returns a list of Tax <code>Registration</code> objects.</p>
pub fn get_tax_registrations(
&self,
) -> FluentRequest<'_, request::GetTaxRegistrationsRequest> {
FluentRequest {
client: self,
params: request::GetTaxRegistrationsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Creates a new Tax <code>Registration</code> object.</p>
pub fn post_tax_registrations(
&self,
) -> FluentRequest<'_, request::PostTaxRegistrationsRequest> {
FluentRequest {
client: self,
params: request::PostTaxRegistrationsRequest {
},
}
}
/**<p>Updates an existing Tax <code>Registration</code> object.</p>
<p>A registration cannot be deleted after it has been created. If you wish to end a registration you may do so by setting <code>expires_at</code>.</p>*/
pub fn post_tax_registrations_id(
&self,
id: &str,
) -> FluentRequest<'_, request::PostTaxRegistrationsIdRequest> {
FluentRequest {
client: self,
params: request::PostTaxRegistrationsIdRequest {
id: id.to_owned(),
},
}
}
///<p>Retrieves Tax <code>Settings</code> for a merchant.</p>
pub fn get_tax_settings(&self) -> FluentRequest<'_, request::GetTaxSettingsRequest> {
FluentRequest {
client: self,
params: request::GetTaxSettingsRequest {
expand: None,
},
}
}
///<p>Updates Tax <code>Settings</code> parameters used in tax calculations. All parameters are editable but none can be removed once set.</p>
pub fn post_tax_settings(
&self,
) -> FluentRequest<'_, request::PostTaxSettingsRequest> {
FluentRequest {
client: self,
params: request::PostTaxSettingsRequest {},
}
}
///<p>Creates a Tax <code>Transaction</code> from a calculation.</p>
pub fn post_tax_transactions_create_from_calculation(
&self,
) -> FluentRequest<'_, request::PostTaxTransactionsCreateFromCalculationRequest> {
FluentRequest {
client: self,
params: request::PostTaxTransactionsCreateFromCalculationRequest {
},
}
}
///<p>Partially or fully reverses a previously created <code>Transaction</code>.</p>
pub fn post_tax_transactions_create_reversal(
&self,
) -> FluentRequest<'_, request::PostTaxTransactionsCreateReversalRequest> {
FluentRequest {
client: self,
params: request::PostTaxTransactionsCreateReversalRequest {
},
}
}
///<p>Retrieves a Tax <code>Transaction</code> object.</p>
pub fn get_tax_transactions_transaction(
&self,
transaction: &str,
) -> FluentRequest<'_, request::GetTaxTransactionsTransactionRequest> {
FluentRequest {
client: self,
params: request::GetTaxTransactionsTransactionRequest {
expand: None,
transaction: transaction.to_owned(),
},
}
}
///<p>Retrieves the line items of a committed standalone transaction as a collection.</p>
pub fn get_tax_transactions_transaction_line_items(
&self,
transaction: &str,
) -> FluentRequest<'_, request::GetTaxTransactionsTransactionLineItemsRequest> {
FluentRequest {
client: self,
params: request::GetTaxTransactionsTransactionLineItemsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
transaction: transaction.to_owned(),
},
}
}
///<p>A list of <a href="https://stripe.com/docs/tax/tax-categories">all tax codes available</a> to add to Products in order to allow specific tax calculations.</p>
pub fn get_tax_codes(&self) -> FluentRequest<'_, request::GetTaxCodesRequest> {
FluentRequest {
client: self,
params: request::GetTaxCodesRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Retrieves the details of an existing tax code. Supply the unique tax code ID and Stripe will return the corresponding tax code information.</p>
pub fn get_tax_codes_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTaxCodesIdRequest> {
FluentRequest {
client: self,
params: request::GetTaxCodesIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Returns a list of your tax rates. Tax rates are returned sorted by creation date, with the most recently created tax rates appearing first.</p>
pub fn get_tax_rates(&self) -> FluentRequest<'_, request::GetTaxRatesRequest> {
FluentRequest {
client: self,
params: request::GetTaxRatesRequest {
active: None,
created: None,
ending_before: None,
expand: None,
inclusive: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new tax rate.</p>
pub fn post_tax_rates(&self) -> FluentRequest<'_, request::PostTaxRatesRequest> {
FluentRequest {
client: self,
params: request::PostTaxRatesRequest {},
}
}
///<p>Retrieves a tax rate with the given ID</p>
pub fn get_tax_rates_tax_rate(
&self,
tax_rate: &str,
) -> FluentRequest<'_, request::GetTaxRatesTaxRateRequest> {
FluentRequest {
client: self,
params: request::GetTaxRatesTaxRateRequest {
expand: None,
tax_rate: tax_rate.to_owned(),
},
}
}
///<p>Updates an existing tax rate.</p>
pub fn post_tax_rates_tax_rate(
&self,
tax_rate: &str,
) -> FluentRequest<'_, request::PostTaxRatesTaxRateRequest> {
FluentRequest {
client: self,
params: request::PostTaxRatesTaxRateRequest {
tax_rate: tax_rate.to_owned(),
},
}
}
///<p>Returns a list of <code>Configuration</code> objects.</p>
pub fn get_terminal_configurations(
&self,
) -> FluentRequest<'_, request::GetTerminalConfigurationsRequest> {
FluentRequest {
client: self,
params: request::GetTerminalConfigurationsRequest {
ending_before: None,
expand: None,
is_account_default: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new <code>Configuration</code> object.</p>
pub fn post_terminal_configurations(
&self,
) -> FluentRequest<'_, request::PostTerminalConfigurationsRequest> {
FluentRequest {
client: self,
params: request::PostTerminalConfigurationsRequest {
},
}
}
///<p>Retrieves a <code>Configuration</code> object.</p>
pub fn get_terminal_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<'_, request::GetTerminalConfigurationsConfigurationRequest> {
FluentRequest {
client: self,
params: request::GetTerminalConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
expand: None,
},
}
}
///<p>Updates a new <code>Configuration</code> object.</p>
pub fn post_terminal_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<'_, request::PostTerminalConfigurationsConfigurationRequest> {
FluentRequest {
client: self,
params: request::PostTerminalConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
},
}
}
///<p>Deletes a <code>Configuration</code> object.</p>
pub fn delete_terminal_configurations_configuration(
&self,
configuration: &str,
) -> FluentRequest<'_, request::DeleteTerminalConfigurationsConfigurationRequest> {
FluentRequest {
client: self,
params: request::DeleteTerminalConfigurationsConfigurationRequest {
configuration: configuration.to_owned(),
},
}
}
///<p>To connect to a reader the Stripe Terminal SDK needs to retrieve a short-lived connection token from Stripe, proxied through your server. On your backend, add an endpoint that creates and returns a connection token.</p>
pub fn post_terminal_connection_tokens(
&self,
) -> FluentRequest<'_, request::PostTerminalConnectionTokensRequest> {
FluentRequest {
client: self,
params: request::PostTerminalConnectionTokensRequest {
},
}
}
///<p>Returns a list of <code>Location</code> objects.</p>
pub fn get_terminal_locations(
&self,
) -> FluentRequest<'_, request::GetTerminalLocationsRequest> {
FluentRequest {
client: self,
params: request::GetTerminalLocationsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
/**<p>Creates a new <code>Location</code> object.
For further details, including which address fields are required in each country, see the <a href="/docs/terminal/fleet/locations">Manage locations</a> guide.</p>*/
pub fn post_terminal_locations(
&self,
) -> FluentRequest<'_, request::PostTerminalLocationsRequest> {
FluentRequest {
client: self,
params: request::PostTerminalLocationsRequest {
},
}
}
///<p>Retrieves a <code>Location</code> object.</p>
pub fn get_terminal_locations_location(
&self,
location: &str,
) -> FluentRequest<'_, request::GetTerminalLocationsLocationRequest> {
FluentRequest {
client: self,
params: request::GetTerminalLocationsLocationRequest {
expand: None,
location: location.to_owned(),
},
}
}
///<p>Updates a <code>Location</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_terminal_locations_location(
&self,
location: &str,
) -> FluentRequest<'_, request::PostTerminalLocationsLocationRequest> {
FluentRequest {
client: self,
params: request::PostTerminalLocationsLocationRequest {
location: location.to_owned(),
},
}
}
///<p>Deletes a <code>Location</code> object.</p>
pub fn delete_terminal_locations_location(
&self,
location: &str,
) -> FluentRequest<'_, request::DeleteTerminalLocationsLocationRequest> {
FluentRequest {
client: self,
params: request::DeleteTerminalLocationsLocationRequest {
location: location.to_owned(),
},
}
}
///<p>Returns a list of <code>Reader</code> objects.</p>
pub fn get_terminal_readers(
&self,
) -> FluentRequest<'_, request::GetTerminalReadersRequest> {
FluentRequest {
client: self,
params: request::GetTerminalReadersRequest {
device_type: None,
ending_before: None,
expand: None,
limit: None,
location: None,
serial_number: None,
starting_after: None,
status: None,
},
}
}
///<p>Creates a new <code>Reader</code> object.</p>
pub fn post_terminal_readers(
&self,
) -> FluentRequest<'_, request::PostTerminalReadersRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersRequest {
},
}
}
///<p>Retrieves a <code>Reader</code> object.</p>
pub fn get_terminal_readers_reader(
&self,
reader: &str,
) -> FluentRequest<'_, request::GetTerminalReadersReaderRequest> {
FluentRequest {
client: self,
params: request::GetTerminalReadersReaderRequest {
expand: None,
reader: reader.to_owned(),
},
}
}
///<p>Updates a <code>Reader</code> object by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
pub fn post_terminal_readers_reader(
&self,
reader: &str,
) -> FluentRequest<'_, request::PostTerminalReadersReaderRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderRequest {
reader: reader.to_owned(),
},
}
}
///<p>Deletes a <code>Reader</code> object.</p>
pub fn delete_terminal_readers_reader(
&self,
reader: &str,
) -> FluentRequest<'_, request::DeleteTerminalReadersReaderRequest> {
FluentRequest {
client: self,
params: request::DeleteTerminalReadersReaderRequest {
reader: reader.to_owned(),
},
}
}
///<p>Cancels the current reader action.</p>
pub fn post_terminal_readers_reader_cancel_action(
&self,
reader: &str,
) -> FluentRequest<'_, request::PostTerminalReadersReaderCancelActionRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderCancelActionRequest {
reader: reader.to_owned(),
},
}
}
///<p>Initiates a payment flow on a Reader.</p>
pub fn post_terminal_readers_reader_process_payment_intent(
&self,
reader: &str,
) -> FluentRequest<
'_,
request::PostTerminalReadersReaderProcessPaymentIntentRequest,
> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderProcessPaymentIntentRequest {
reader: reader.to_owned(),
},
}
}
///<p>Initiates a setup intent flow on a Reader.</p>
pub fn post_terminal_readers_reader_process_setup_intent(
&self,
reader: &str,
) -> FluentRequest<'_, request::PostTerminalReadersReaderProcessSetupIntentRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderProcessSetupIntentRequest {
reader: reader.to_owned(),
},
}
}
///<p>Initiates a refund on a Reader</p>
pub fn post_terminal_readers_reader_refund_payment(
&self,
reader: &str,
) -> FluentRequest<'_, request::PostTerminalReadersReaderRefundPaymentRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderRefundPaymentRequest {
reader: reader.to_owned(),
},
}
}
///<p>Sets reader display to show cart details.</p>
pub fn post_terminal_readers_reader_set_reader_display(
&self,
reader: &str,
) -> FluentRequest<'_, request::PostTerminalReadersReaderSetReaderDisplayRequest> {
FluentRequest {
client: self,
params: request::PostTerminalReadersReaderSetReaderDisplayRequest {
reader: reader.to_owned(),
},
}
}
///<p>Create an incoming testmode bank transfer</p>
pub fn post_test_helpers_customers_customer_fund_cash_balance(
&self,
customer: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersCustomersCustomerFundCashBalanceRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersCustomersCustomerFundCashBalanceRequest {
customer: customer.to_owned(),
},
}
}
///<p>Create a test-mode authorization.</p>
pub fn post_test_helpers_issuing_authorizations(
&self,
) -> FluentRequest<'_, request::PostTestHelpersIssuingAuthorizationsRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingAuthorizationsRequest {
},
}
}
///<p>Capture a test-mode authorization.</p>
pub fn post_test_helpers_issuing_authorizations_authorization_capture(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingAuthorizationsAuthorizationCaptureRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingAuthorizationsAuthorizationCaptureRequest {
authorization: authorization.to_owned(),
},
}
}
///<p>Expire a test-mode Authorization.</p>
pub fn post_test_helpers_issuing_authorizations_authorization_expire(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingAuthorizationsAuthorizationExpireRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingAuthorizationsAuthorizationExpireRequest {
authorization: authorization.to_owned(),
},
}
}
///<p>Increment a test-mode Authorization.</p>
pub fn post_test_helpers_issuing_authorizations_authorization_increment(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingAuthorizationsAuthorizationIncrementRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingAuthorizationsAuthorizationIncrementRequest {
authorization: authorization.to_owned(),
},
}
}
///<p>Reverse a test-mode Authorization.</p>
pub fn post_test_helpers_issuing_authorizations_authorization_reverse(
&self,
authorization: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingAuthorizationsAuthorizationReverseRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingAuthorizationsAuthorizationReverseRequest {
authorization: authorization.to_owned(),
},
}
}
///<p>Updates the shipping status of the specified Issuing <code>Card</code> object to <code>delivered</code>.</p>
pub fn post_test_helpers_issuing_cards_card_shipping_deliver(
&self,
card: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingCardsCardShippingDeliverRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingCardsCardShippingDeliverRequest {
card: card.to_owned(),
},
}
}
///<p>Updates the shipping status of the specified Issuing <code>Card</code> object to <code>failure</code>.</p>
pub fn post_test_helpers_issuing_cards_card_shipping_fail(
&self,
card: &str,
) -> FluentRequest<'_, request::PostTestHelpersIssuingCardsCardShippingFailRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingCardsCardShippingFailRequest {
card: card.to_owned(),
},
}
}
///<p>Updates the shipping status of the specified Issuing <code>Card</code> object to <code>returned</code>.</p>
pub fn post_test_helpers_issuing_cards_card_shipping_return(
&self,
card: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingCardsCardShippingReturnRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingCardsCardShippingReturnRequest {
card: card.to_owned(),
},
}
}
///<p>Updates the shipping status of the specified Issuing <code>Card</code> object to <code>shipped</code>.</p>
pub fn post_test_helpers_issuing_cards_card_shipping_ship(
&self,
card: &str,
) -> FluentRequest<'_, request::PostTestHelpersIssuingCardsCardShippingShipRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingCardsCardShippingShipRequest {
card: card.to_owned(),
},
}
}
///<p>Allows the user to capture an arbitrary amount, also known as a forced capture.</p>
pub fn post_test_helpers_issuing_transactions_create_force_capture(
&self,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingTransactionsCreateForceCaptureRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingTransactionsCreateForceCaptureRequest {},
}
}
///<p>Allows the user to refund an arbitrary amount, also known as a unlinked refund.</p>
pub fn post_test_helpers_issuing_transactions_create_unlinked_refund(
&self,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingTransactionsCreateUnlinkedRefundRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingTransactionsCreateUnlinkedRefundRequest {},
}
}
///<p>Refund a test-mode Transaction.</p>
pub fn post_test_helpers_issuing_transactions_transaction_refund(
&self,
transaction: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersIssuingTransactionsTransactionRefundRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersIssuingTransactionsTransactionRefundRequest {
transaction: transaction.to_owned(),
},
}
}
///<p>Expire a refund with a status of <code>requires_action</code>.</p>
pub fn post_test_helpers_refunds_refund_expire(
&self,
refund: &str,
) -> FluentRequest<'_, request::PostTestHelpersRefundsRefundExpireRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersRefundsRefundExpireRequest {
refund: refund.to_owned(),
},
}
}
///<p>Presents a payment method on a simulated reader. Can be used to simulate accepting a payment, saving a card or refunding a transaction.</p>
pub fn post_test_helpers_terminal_readers_reader_present_payment_method(
&self,
reader: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTerminalReadersReaderPresentPaymentMethodRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTerminalReadersReaderPresentPaymentMethodRequest {
reader: reader.to_owned(),
},
}
}
///<p>Returns a list of your test clocks.</p>
pub fn get_test_helpers_test_clocks(
&self,
) -> FluentRequest<'_, request::GetTestHelpersTestClocksRequest> {
FluentRequest {
client: self,
params: request::GetTestHelpersTestClocksRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new test clock that can be attached to new customers and quotes.</p>
pub fn post_test_helpers_test_clocks(
&self,
) -> FluentRequest<'_, request::PostTestHelpersTestClocksRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersTestClocksRequest {
},
}
}
///<p>Retrieves a test clock.</p>
pub fn get_test_helpers_test_clocks_test_clock(
&self,
test_clock: &str,
) -> FluentRequest<'_, request::GetTestHelpersTestClocksTestClockRequest> {
FluentRequest {
client: self,
params: request::GetTestHelpersTestClocksTestClockRequest {
expand: None,
test_clock: test_clock.to_owned(),
},
}
}
///<p>Deletes a test clock.</p>
pub fn delete_test_helpers_test_clocks_test_clock(
&self,
test_clock: &str,
) -> FluentRequest<'_, request::DeleteTestHelpersTestClocksTestClockRequest> {
FluentRequest {
client: self,
params: request::DeleteTestHelpersTestClocksTestClockRequest {
test_clock: test_clock.to_owned(),
},
}
}
///<p>Starts advancing a test clock to a specified time in the future. Advancement is done when status changes to <code>Ready</code>.</p>
pub fn post_test_helpers_test_clocks_test_clock_advance(
&self,
test_clock: &str,
) -> FluentRequest<'_, request::PostTestHelpersTestClocksTestClockAdvanceRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersTestClocksTestClockAdvanceRequest {
test_clock: test_clock.to_owned(),
},
}
}
///<p>Transitions a test mode created InboundTransfer to the <code>failed</code> status. The InboundTransfer must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_inbound_transfers_id_fail(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryInboundTransfersIdFailRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryInboundTransfersIdFailRequest {
id: id.to_owned(),
},
}
}
///<p>Marks the test mode InboundTransfer object as returned and links the InboundTransfer to a ReceivedDebit. The InboundTransfer must already be in the <code>succeeded</code> state.</p>
pub fn post_test_helpers_treasury_inbound_transfers_id_return(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryInboundTransfersIdReturnRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryInboundTransfersIdReturnRequest {
id: id.to_owned(),
},
}
}
///<p>Transitions a test mode created InboundTransfer to the <code>succeeded</code> status. The InboundTransfer must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_inbound_transfers_id_succeed(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryInboundTransfersIdSucceedRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryInboundTransfersIdSucceedRequest {
id: id.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundPayment to the <code>failed</code> status. The OutboundPayment must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_payments_id_fail(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundPaymentsIdFailRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundPaymentsIdFailRequest {
id: id.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundPayment to the <code>posted</code> status. The OutboundPayment must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_payments_id_post(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundPaymentsIdPostRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundPaymentsIdPostRequest {
id: id.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundPayment to the <code>returned</code> status. The OutboundPayment must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_payments_id_return(
&self,
id: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundPaymentsIdReturnRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundPaymentsIdReturnRequest {
id: id.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundTransfer to the <code>failed</code> status. The OutboundTransfer must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_transfers_outbound_transfer_fail(
&self,
outbound_transfer: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferFailRequest {
outbound_transfer: outbound_transfer.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundTransfer to the <code>posted</code> status. The OutboundTransfer must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_transfers_outbound_transfer_post(
&self,
outbound_transfer: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferPostRequest {
outbound_transfer: outbound_transfer.to_owned(),
},
}
}
///<p>Transitions a test mode created OutboundTransfer to the <code>returned</code> status. The OutboundTransfer must already be in the <code>processing</code> state.</p>
pub fn post_test_helpers_treasury_outbound_transfers_outbound_transfer_return(
&self,
outbound_transfer: &str,
) -> FluentRequest<
'_,
request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnRequest,
> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryOutboundTransfersOutboundTransferReturnRequest {
outbound_transfer: outbound_transfer.to_owned(),
},
}
}
///<p>Use this endpoint to simulate a test mode ReceivedCredit initiated by a third party. In live mode, you can’t directly create ReceivedCredits initiated by third parties.</p>
pub fn post_test_helpers_treasury_received_credits(
&self,
) -> FluentRequest<'_, request::PostTestHelpersTreasuryReceivedCreditsRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryReceivedCreditsRequest {
},
}
}
///<p>Use this endpoint to simulate a test mode ReceivedDebit initiated by a third party. In live mode, you can’t directly create ReceivedDebits initiated by third parties.</p>
pub fn post_test_helpers_treasury_received_debits(
&self,
) -> FluentRequest<'_, request::PostTestHelpersTreasuryReceivedDebitsRequest> {
FluentRequest {
client: self,
params: request::PostTestHelpersTreasuryReceivedDebitsRequest {
},
}
}
/**<p>Creates a single-use token that represents a bank account’s details.
You can use this token with any API method in place of a bank account dictionary. You can only use this token once. To do so, attach it to a <a href="#accounts">Custom account</a>.</p>*/
pub fn post_tokens(&self) -> FluentRequest<'_, request::PostTokensRequest> {
FluentRequest {
client: self,
params: request::PostTokensRequest {},
}
}
///<p>Retrieves the token with the given ID.</p>
pub fn get_tokens_token(
&self,
token: &str,
) -> FluentRequest<'_, request::GetTokensTokenRequest> {
FluentRequest {
client: self,
params: request::GetTokensTokenRequest {
expand: None,
token: token.to_owned(),
},
}
}
///<p>Returns a list of top-ups.</p>
pub fn get_topups(&self) -> FluentRequest<'_, request::GetTopupsRequest> {
FluentRequest {
client: self,
params: request::GetTopupsRequest {
amount: None,
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Top up the balance of an account</p>
pub fn post_topups(&self) -> FluentRequest<'_, request::PostTopupsRequest> {
FluentRequest {
client: self,
params: request::PostTopupsRequest {},
}
}
///<p>Retrieves the details of a top-up that has previously been created. Supply the unique top-up ID that was returned from your previous request, and Stripe will return the corresponding top-up information.</p>
pub fn get_topups_topup(
&self,
topup: &str,
) -> FluentRequest<'_, request::GetTopupsTopupRequest> {
FluentRequest {
client: self,
params: request::GetTopupsTopupRequest {
expand: None,
topup: topup.to_owned(),
},
}
}
///<p>Updates the metadata of a top-up. Other top-up details are not editable by design.</p>
pub fn post_topups_topup(
&self,
topup: &str,
) -> FluentRequest<'_, request::PostTopupsTopupRequest> {
FluentRequest {
client: self,
params: request::PostTopupsTopupRequest {
topup: topup.to_owned(),
},
}
}
///<p>Cancels a top-up. Only pending top-ups can be canceled.</p>
pub fn post_topups_topup_cancel(
&self,
topup: &str,
) -> FluentRequest<'_, request::PostTopupsTopupCancelRequest> {
FluentRequest {
client: self,
params: request::PostTopupsTopupCancelRequest {
topup: topup.to_owned(),
},
}
}
///<p>Returns a list of existing transfers sent to connected accounts. The transfers are returned in sorted order, with the most recently created transfers appearing first.</p>
pub fn get_transfers(&self) -> FluentRequest<'_, request::GetTransfersRequest> {
FluentRequest {
client: self,
params: request::GetTransfersRequest {
created: None,
destination: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
transfer_group: None,
},
}
}
///<p>To send funds from your Stripe account to a connected account, you create a new transfer object. Your <a href="#balance">Stripe balance</a> must be able to cover the transfer amount, or you’ll receive an “Insufficient Funds” error.</p>
pub fn post_transfers(&self) -> FluentRequest<'_, request::PostTransfersRequest> {
FluentRequest {
client: self,
params: request::PostTransfersRequest {},
}
}
///<p>You can see a list of the reversals belonging to a specific transfer. Note that the 10 most recent reversals are always available by default on the transfer object. If you need more than those 10, you can use this API method and the <code>limit</code> and <code>starting_after</code> parameters to page through additional reversals.</p>
pub fn get_transfers_id_reversals(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTransfersIdReversalsRequest> {
FluentRequest {
client: self,
params: request::GetTransfersIdReversalsRequest {
ending_before: None,
expand: None,
id: id.to_owned(),
limit: None,
starting_after: None,
},
}
}
/**<p>When you create a new reversal, you must specify a transfer to create it on.</p>
<p>When reversing transfers, you can optionally reverse part of the transfer. You can do so as many times as you wish until the entire transfer has been reversed.</p>
<p>Once entirely reversed, a transfer can’t be reversed again. This method will return an error when called on an already-reversed transfer, or when trying to reverse more money than is left on a transfer.</p>*/
pub fn post_transfers_id_reversals(
&self,
id: &str,
) -> FluentRequest<'_, request::PostTransfersIdReversalsRequest> {
FluentRequest {
client: self,
params: request::PostTransfersIdReversalsRequest {
id: id.to_owned(),
},
}
}
///<p>Retrieves the details of an existing transfer. Supply the unique transfer ID from either a transfer creation request or the transfer list, and Stripe will return the corresponding transfer information.</p>
pub fn get_transfers_transfer(
&self,
transfer: &str,
) -> FluentRequest<'_, request::GetTransfersTransferRequest> {
FluentRequest {
client: self,
params: request::GetTransfersTransferRequest {
expand: None,
transfer: transfer.to_owned(),
},
}
}
/**<p>Updates the specified transfer by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>This request accepts only metadata as an argument.</p>*/
pub fn post_transfers_transfer(
&self,
transfer: &str,
) -> FluentRequest<'_, request::PostTransfersTransferRequest> {
FluentRequest {
client: self,
params: request::PostTransfersTransferRequest {
transfer: transfer.to_owned(),
},
}
}
///<p>By default, you can see the 10 most recent reversals stored directly on the transfer object, but you can also retrieve details about a specific reversal stored on the transfer.</p>
pub fn get_transfers_transfer_reversals_id(
&self,
id: &str,
transfer: &str,
) -> FluentRequest<'_, request::GetTransfersTransferReversalsIdRequest> {
FluentRequest {
client: self,
params: request::GetTransfersTransferReversalsIdRequest {
expand: None,
id: id.to_owned(),
transfer: transfer.to_owned(),
},
}
}
/**<p>Updates the specified reversal by setting the values of the parameters passed. Any parameters not provided will be left unchanged.</p>
<p>This request only accepts metadata and description as arguments.</p>*/
pub fn post_transfers_transfer_reversals_id(
&self,
id: &str,
transfer: &str,
) -> FluentRequest<'_, request::PostTransfersTransferReversalsIdRequest> {
FluentRequest {
client: self,
params: request::PostTransfersTransferReversalsIdRequest {
id: id.to_owned(),
transfer: transfer.to_owned(),
},
}
}
///<p>Returns a list of CreditReversals.</p>
pub fn get_treasury_credit_reversals(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryCreditReversalsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryCreditReversalsRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
received_credit: None,
starting_after: None,
status: None,
},
}
}
///<p>Reverses a ReceivedCredit and creates a CreditReversal object.</p>
pub fn post_treasury_credit_reversals(
&self,
) -> FluentRequest<'_, request::PostTreasuryCreditReversalsRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryCreditReversalsRequest {
},
}
}
///<p>Retrieves the details of an existing CreditReversal by passing the unique CreditReversal ID from either the CreditReversal creation request or CreditReversal list</p>
pub fn get_treasury_credit_reversals_credit_reversal(
&self,
credit_reversal: &str,
) -> FluentRequest<'_, request::GetTreasuryCreditReversalsCreditReversalRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryCreditReversalsCreditReversalRequest {
credit_reversal: credit_reversal.to_owned(),
expand: None,
},
}
}
///<p>Returns a list of DebitReversals.</p>
pub fn get_treasury_debit_reversals(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryDebitReversalsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryDebitReversalsRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
received_debit: None,
resolution: None,
starting_after: None,
status: None,
},
}
}
///<p>Reverses a ReceivedDebit and creates a DebitReversal object.</p>
pub fn post_treasury_debit_reversals(
&self,
) -> FluentRequest<'_, request::PostTreasuryDebitReversalsRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryDebitReversalsRequest {
},
}
}
///<p>Retrieves a DebitReversal object.</p>
pub fn get_treasury_debit_reversals_debit_reversal(
&self,
debit_reversal: &str,
) -> FluentRequest<'_, request::GetTreasuryDebitReversalsDebitReversalRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryDebitReversalsDebitReversalRequest {
debit_reversal: debit_reversal.to_owned(),
expand: None,
},
}
}
///<p>Returns a list of FinancialAccounts.</p>
pub fn get_treasury_financial_accounts(
&self,
) -> FluentRequest<'_, request::GetTreasuryFinancialAccountsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryFinancialAccountsRequest {
created: None,
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>Creates a new FinancialAccount. For now, each connected account can only have one FinancialAccount.</p>
pub fn post_treasury_financial_accounts(
&self,
) -> FluentRequest<'_, request::PostTreasuryFinancialAccountsRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryFinancialAccountsRequest {
},
}
}
///<p>Retrieves the details of a FinancialAccount.</p>
pub fn get_treasury_financial_accounts_financial_account(
&self,
financial_account: &str,
) -> FluentRequest<
'_,
request::GetTreasuryFinancialAccountsFinancialAccountRequest,
> {
FluentRequest {
client: self,
params: request::GetTreasuryFinancialAccountsFinancialAccountRequest {
expand: None,
financial_account: financial_account.to_owned(),
},
}
}
///<p>Updates the details of a FinancialAccount.</p>
pub fn post_treasury_financial_accounts_financial_account(
&self,
financial_account: &str,
) -> FluentRequest<
'_,
request::PostTreasuryFinancialAccountsFinancialAccountRequest,
> {
FluentRequest {
client: self,
params: request::PostTreasuryFinancialAccountsFinancialAccountRequest {
financial_account: financial_account.to_owned(),
},
}
}
///<p>Retrieves Features information associated with the FinancialAccount.</p>
pub fn get_treasury_financial_accounts_financial_account_features(
&self,
financial_account: &str,
) -> FluentRequest<
'_,
request::GetTreasuryFinancialAccountsFinancialAccountFeaturesRequest,
> {
FluentRequest {
client: self,
params: request::GetTreasuryFinancialAccountsFinancialAccountFeaturesRequest {
expand: None,
financial_account: financial_account.to_owned(),
},
}
}
///<p>Updates the Features associated with a FinancialAccount.</p>
pub fn post_treasury_financial_accounts_financial_account_features(
&self,
financial_account: &str,
) -> FluentRequest<
'_,
request::PostTreasuryFinancialAccountsFinancialAccountFeaturesRequest,
> {
FluentRequest {
client: self,
params: request::PostTreasuryFinancialAccountsFinancialAccountFeaturesRequest {
financial_account: financial_account.to_owned(),
},
}
}
///<p>Returns a list of InboundTransfers sent from the specified FinancialAccount.</p>
pub fn get_treasury_inbound_transfers(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryInboundTransfersRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryInboundTransfersRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Creates an InboundTransfer.</p>
pub fn post_treasury_inbound_transfers(
&self,
) -> FluentRequest<'_, request::PostTreasuryInboundTransfersRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryInboundTransfersRequest {
},
}
}
///<p>Retrieves the details of an existing InboundTransfer.</p>
pub fn get_treasury_inbound_transfers_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryInboundTransfersIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryInboundTransfersIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Cancels an InboundTransfer.</p>
pub fn post_treasury_inbound_transfers_inbound_transfer_cancel(
&self,
inbound_transfer: &str,
) -> FluentRequest<
'_,
request::PostTreasuryInboundTransfersInboundTransferCancelRequest,
> {
FluentRequest {
client: self,
params: request::PostTreasuryInboundTransfersInboundTransferCancelRequest {
inbound_transfer: inbound_transfer.to_owned(),
},
}
}
///<p>Returns a list of OutboundPayments sent from the specified FinancialAccount.</p>
pub fn get_treasury_outbound_payments(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryOutboundPaymentsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryOutboundPaymentsRequest {
customer: None,
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Creates an OutboundPayment.</p>
pub fn post_treasury_outbound_payments(
&self,
) -> FluentRequest<'_, request::PostTreasuryOutboundPaymentsRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryOutboundPaymentsRequest {
},
}
}
///<p>Retrieves the details of an existing OutboundPayment by passing the unique OutboundPayment ID from either the OutboundPayment creation request or OutboundPayment list.</p>
pub fn get_treasury_outbound_payments_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryOutboundPaymentsIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryOutboundPaymentsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Cancel an OutboundPayment.</p>
pub fn post_treasury_outbound_payments_id_cancel(
&self,
id: &str,
) -> FluentRequest<'_, request::PostTreasuryOutboundPaymentsIdCancelRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryOutboundPaymentsIdCancelRequest {
id: id.to_owned(),
},
}
}
///<p>Returns a list of OutboundTransfers sent from the specified FinancialAccount.</p>
pub fn get_treasury_outbound_transfers(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryOutboundTransfersRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryOutboundTransfersRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Creates an OutboundTransfer.</p>
pub fn post_treasury_outbound_transfers(
&self,
) -> FluentRequest<'_, request::PostTreasuryOutboundTransfersRequest> {
FluentRequest {
client: self,
params: request::PostTreasuryOutboundTransfersRequest {
},
}
}
///<p>Retrieves the details of an existing OutboundTransfer by passing the unique OutboundTransfer ID from either the OutboundTransfer creation request or OutboundTransfer list.</p>
pub fn get_treasury_outbound_transfers_outbound_transfer(
&self,
outbound_transfer: &str,
) -> FluentRequest<
'_,
request::GetTreasuryOutboundTransfersOutboundTransferRequest,
> {
FluentRequest {
client: self,
params: request::GetTreasuryOutboundTransfersOutboundTransferRequest {
expand: None,
outbound_transfer: outbound_transfer.to_owned(),
},
}
}
///<p>An OutboundTransfer can be canceled if the funds have not yet been paid out.</p>
pub fn post_treasury_outbound_transfers_outbound_transfer_cancel(
&self,
outbound_transfer: &str,
) -> FluentRequest<
'_,
request::PostTreasuryOutboundTransfersOutboundTransferCancelRequest,
> {
FluentRequest {
client: self,
params: request::PostTreasuryOutboundTransfersOutboundTransferCancelRequest {
outbound_transfer: outbound_transfer.to_owned(),
},
}
}
///<p>Returns a list of ReceivedCredits.</p>
pub fn get_treasury_received_credits(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryReceivedCreditsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryReceivedCreditsRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
linked_flows: None,
starting_after: None,
status: None,
},
}
}
///<p>Retrieves the details of an existing ReceivedCredit by passing the unique ReceivedCredit ID from the ReceivedCredit list.</p>
pub fn get_treasury_received_credits_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryReceivedCreditsIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryReceivedCreditsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Returns a list of ReceivedDebits.</p>
pub fn get_treasury_received_debits(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryReceivedDebitsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryReceivedDebitsRequest {
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
starting_after: None,
status: None,
},
}
}
///<p>Retrieves the details of an existing ReceivedDebit by passing the unique ReceivedDebit ID from the ReceivedDebit list</p>
pub fn get_treasury_received_debits_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryReceivedDebitsIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryReceivedDebitsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Retrieves a list of TransactionEntry objects.</p>
pub fn get_treasury_transaction_entries(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryTransactionEntriesRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryTransactionEntriesRequest {
created: None,
effective_at: None,
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
order_by: None,
starting_after: None,
transaction: None,
},
}
}
///<p>Retrieves a TransactionEntry object.</p>
pub fn get_treasury_transaction_entries_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryTransactionEntriesIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryTransactionEntriesIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Retrieves a list of Transaction objects.</p>
pub fn get_treasury_transactions(
&self,
financial_account: &str,
) -> FluentRequest<'_, request::GetTreasuryTransactionsRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryTransactionsRequest {
created: None,
ending_before: None,
expand: None,
financial_account: financial_account.to_owned(),
limit: None,
order_by: None,
starting_after: None,
status: None,
status_transitions: None,
},
}
}
///<p>Retrieves the details of an existing Transaction.</p>
pub fn get_treasury_transactions_id(
&self,
id: &str,
) -> FluentRequest<'_, request::GetTreasuryTransactionsIdRequest> {
FluentRequest {
client: self,
params: request::GetTreasuryTransactionsIdRequest {
expand: None,
id: id.to_owned(),
},
}
}
///<p>Returns a list of your webhook endpoints.</p>
pub fn get_webhook_endpoints(
&self,
) -> FluentRequest<'_, request::GetWebhookEndpointsRequest> {
FluentRequest {
client: self,
params: request::GetWebhookEndpointsRequest {
ending_before: None,
expand: None,
limit: None,
starting_after: None,
},
}
}
///<p>A webhook endpoint must have a <code>url</code> and a list of <code>enabled_events</code>. You may optionally specify the Boolean <code>connect</code> parameter. If set to true, then a Connect webhook endpoint that notifies the specified <code>url</code> about events from all connected accounts is created; otherwise an account webhook endpoint that notifies the specified <code>url</code> only about events from your account is created. You can also create webhook endpoints in the <a href="https://dashboard.stripe.com/account/webhooks">webhooks settings</a> section of the Dashboard.</p>
pub fn post_webhook_endpoints(
&self,
) -> FluentRequest<'_, request::PostWebhookEndpointsRequest> {
FluentRequest {
client: self,
params: request::PostWebhookEndpointsRequest {
},
}
}
///<p>Retrieves the webhook endpoint with the given ID.</p>
pub fn get_webhook_endpoints_webhook_endpoint(
&self,
webhook_endpoint: &str,
) -> FluentRequest<'_, request::GetWebhookEndpointsWebhookEndpointRequest> {
FluentRequest {
client: self,
params: request::GetWebhookEndpointsWebhookEndpointRequest {
expand: None,
webhook_endpoint: webhook_endpoint.to_owned(),
},
}
}
///<p>Updates the webhook endpoint. You may edit the <code>url</code>, the list of <code>enabled_events</code>, and the status of your endpoint.</p>
pub fn post_webhook_endpoints_webhook_endpoint(
&self,
webhook_endpoint: &str,
) -> FluentRequest<'_, request::PostWebhookEndpointsWebhookEndpointRequest> {
FluentRequest {
client: self,
params: request::PostWebhookEndpointsWebhookEndpointRequest {
webhook_endpoint: webhook_endpoint.to_owned(),
},
}
}
///<p>You can also delete webhook endpoints via the <a href="https://dashboard.stripe.com/account/webhooks">webhook endpoint management</a> page of the Stripe dashboard.</p>
pub fn delete_webhook_endpoints_webhook_endpoint(
&self,
webhook_endpoint: &str,
) -> FluentRequest<'_, request::DeleteWebhookEndpointsWebhookEndpointRequest> {
FluentRequest {
client: self,
params: request::DeleteWebhookEndpointsWebhookEndpointRequest {
webhook_endpoint: webhook_endpoint.to_owned(),
},
}
}
}
pub enum StripeAuthentication {
BasicAuth { basic_auth: String },
BearerAuth { bearer_auth: String },
}