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
|
# Copyright 2020 Google LLC
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
require 'date'
require 'google/apis/core/base_service'
require 'google/apis/core/json_representation'
require 'google/apis/core/hashable'
require 'google/apis/errors'
module Google
module Apis
module AndroidpublisherV3
# Represents a targeting rule of the form: User never had `scope` before.
class AcquisitionTargetingRule
include Google::Apis::Core::Hashable
# Defines the scope of subscriptions which a targeting rule can match to target
# offers to users based on past or current entitlement.
# Corresponds to the JSON property `scope`
# @return [Google::Apis::AndroidpublisherV3::TargetingRuleScope]
attr_accessor :scope
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@scope = args[:scope] if args.key?(:scope)
end
end
# Request message for ActivateBasePlan.
class ActivateBasePlanRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for ActivateSubscriptionOffer.
class ActivateSubscriptionOfferRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Information about an APK. The resource for ApksService.
class Apk
include Google::Apis::Core::Hashable
# Represents the binary payload of an APK.
# Corresponds to the JSON property `binary`
# @return [Google::Apis::AndroidpublisherV3::ApkBinary]
attr_accessor :binary
# The version code of the APK, as specified in the manifest file.
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@binary = args[:binary] if args.key?(:binary)
@version_code = args[:version_code] if args.key?(:version_code)
end
end
# Represents the binary payload of an APK.
class ApkBinary
include Google::Apis::Core::Hashable
# A sha1 hash of the APK payload, encoded as a hex string and matching the
# output of the sha1sum command.
# Corresponds to the JSON property `sha1`
# @return [String]
attr_accessor :sha1
# A sha256 hash of the APK payload, encoded as a hex string and matching the
# output of the sha256sum command.
# Corresponds to the JSON property `sha256`
# @return [String]
attr_accessor :sha256
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@sha1 = args[:sha1] if args.key?(:sha1)
@sha256 = args[:sha256] if args.key?(:sha256)
end
end
# Request to create a new externally hosted APK.
class ApksAddExternallyHostedRequest
include Google::Apis::Core::Hashable
# Defines an APK available for this application that is hosted externally and
# not uploaded to Google Play. This function is only available to organizations
# using Managed Play whose application is configured to restrict distribution to
# the organizations.
# Corresponds to the JSON property `externallyHostedApk`
# @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk]
attr_accessor :externally_hosted_apk
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
end
end
# Response for creating a new externally hosted APK.
class ApksAddExternallyHostedResponse
include Google::Apis::Core::Hashable
# Defines an APK available for this application that is hosted externally and
# not uploaded to Google Play. This function is only available to organizations
# using Managed Play whose application is configured to restrict distribution to
# the organizations.
# Corresponds to the JSON property `externallyHostedApk`
# @return [Google::Apis::AndroidpublisherV3::ExternallyHostedApk]
attr_accessor :externally_hosted_apk
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@externally_hosted_apk = args[:externally_hosted_apk] if args.key?(:externally_hosted_apk)
end
end
# Response listing all APKs.
class ApksListResponse
include Google::Apis::Core::Hashable
# All APKs.
# Corresponds to the JSON property `apks`
# @return [Array<Google::Apis::AndroidpublisherV3::Apk>]
attr_accessor :apks
# The kind of this response ("androidpublisher#apksListResponse").
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@apks = args[:apks] if args.key?(:apks)
@kind = args[:kind] if args.key?(:kind)
end
end
# The app details. The resource for DetailsService.
class AppDetails
include Google::Apis::Core::Hashable
# The user-visible support email for this app.
# Corresponds to the JSON property `contactEmail`
# @return [String]
attr_accessor :contact_email
# The user-visible support telephone number for this app.
# Corresponds to the JSON property `contactPhone`
# @return [String]
attr_accessor :contact_phone
# The user-visible website for this app.
# Corresponds to the JSON property `contactWebsite`
# @return [String]
attr_accessor :contact_website
# Default language code, in BCP 47 format (eg "en-US").
# Corresponds to the JSON property `defaultLanguage`
# @return [String]
attr_accessor :default_language
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@contact_email = args[:contact_email] if args.key?(:contact_email)
@contact_phone = args[:contact_phone] if args.key?(:contact_phone)
@contact_website = args[:contact_website] if args.key?(:contact_website)
@default_language = args[:default_language] if args.key?(:default_language)
end
end
# An app edit. The resource for EditsService.
class AppEdit
include Google::Apis::Core::Hashable
# Output only. The time (as seconds since Epoch) at which the edit will expire
# and will be no longer valid for use.
# Corresponds to the JSON property `expiryTimeSeconds`
# @return [String]
attr_accessor :expiry_time_seconds
# Output only. Identifier of the edit. Can be used in subsequent API calls.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expiry_time_seconds = args[:expiry_time_seconds] if args.key?(:expiry_time_seconds)
@id = args[:id] if args.key?(:id)
end
end
# Request message for ArchiveSubscription.
class ArchiveSubscriptionRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a base plan that automatically renews at the end of its
# subscription period.
class AutoRenewingBasePlanType
include Google::Apis::Core::Hashable
# Required. Subscription period, specified in ISO 8601 format. For a list of
# acceptable billing periods, refer to the help center.
# Corresponds to the JSON property `billingPeriodDuration`
# @return [String]
attr_accessor :billing_period_duration
# Grace period of the subscription, specified in ISO 8601 format. Acceptable
# values are P0D (zero days), P3D (3 days), P7D (7 days), P14D (14 days), and
# P30D (30 days). If not specified, a default value will be used based on the
# recurring period duration.
# Corresponds to the JSON property `gracePeriodDuration`
# @return [String]
attr_accessor :grace_period_duration
# Whether the renewing base plan is backward compatible. The backward compatible
# base plan is returned by the Google Play Billing Library deprecated method
# querySkuDetailsAsync(). Only one renewing base plan can be marked as legacy
# compatible for a given subscription.
# Corresponds to the JSON property `legacyCompatible`
# @return [Boolean]
attr_accessor :legacy_compatible
alias_method :legacy_compatible?, :legacy_compatible
# Subscription offer id which is legacy compatible. The backward compatible
# subscription offer is returned by the Google Play Billing Library deprecated
# method querySkuDetailsAsync(). Only one subscription offer can be marked as
# legacy compatible for a given renewing base plan. To have no Subscription
# offer as legacy compatible set this field as empty string.
# Corresponds to the JSON property `legacyCompatibleSubscriptionOfferId`
# @return [String]
attr_accessor :legacy_compatible_subscription_offer_id
# The proration mode for the base plan determines what happens when a user
# switches to this plan from another base plan. If unspecified, defaults to
# CHARGE_ON_NEXT_BILLING_DATE.
# Corresponds to the JSON property `prorationMode`
# @return [String]
attr_accessor :proration_mode
# Whether users should be able to resubscribe to this base plan in Google Play
# surfaces. Defaults to RESUBSCRIBE_STATE_ACTIVE if not specified.
# Corresponds to the JSON property `resubscribeState`
# @return [String]
attr_accessor :resubscribe_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
@grace_period_duration = args[:grace_period_duration] if args.key?(:grace_period_duration)
@legacy_compatible = args[:legacy_compatible] if args.key?(:legacy_compatible)
@legacy_compatible_subscription_offer_id = args[:legacy_compatible_subscription_offer_id] if args.key?(:legacy_compatible_subscription_offer_id)
@proration_mode = args[:proration_mode] if args.key?(:proration_mode)
@resubscribe_state = args[:resubscribe_state] if args.key?(:resubscribe_state)
end
end
# Information related to an auto renewing plan.
class AutoRenewingPlan
include Google::Apis::Core::Hashable
# If the subscription is currently set to auto-renew, e.g. the user has not
# canceled the subscription
# Corresponds to the JSON property `autoRenewEnabled`
# @return [Boolean]
attr_accessor :auto_renew_enabled
alias_method :auto_renew_enabled?, :auto_renew_enabled
# Price change related information of a subscription item.
# Corresponds to the JSON property `priceChangeDetails`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionItemPriceChangeDetails]
attr_accessor :price_change_details
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_renew_enabled = args[:auto_renew_enabled] if args.key?(:auto_renew_enabled)
@price_change_details = args[:price_change_details] if args.key?(:price_change_details)
end
end
# A single base plan for a subscription.
class BasePlan
include Google::Apis::Core::Hashable
# Represents a base plan that automatically renews at the end of its
# subscription period.
# Corresponds to the JSON property `autoRenewingBasePlanType`
# @return [Google::Apis::AndroidpublisherV3::AutoRenewingBasePlanType]
attr_accessor :auto_renewing_base_plan_type
# Required. Immutable. The unique identifier of this base plan. Must be unique
# within the subscription, and conform with RFC-1034. That is, this ID can only
# contain lower-case letters (a-z), numbers (0-9), and hyphens (-), and be at
# most 63 characters.
# Corresponds to the JSON property `basePlanId`
# @return [String]
attr_accessor :base_plan_id
# List of up to 20 custom tags specified for this base plan, and returned to the
# app through the billing library. Subscription offers for this base plan will
# also receive these offer tags in the billing library.
# Corresponds to the JSON property `offerTags`
# @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
attr_accessor :offer_tags
# Pricing information for any new locations Play may launch in.
# Corresponds to the JSON property `otherRegionsConfig`
# @return [Google::Apis::AndroidpublisherV3::OtherRegionsBasePlanConfig]
attr_accessor :other_regions_config
# Represents a base plan that does not automatically renew at the end of the
# base plan, and must be manually renewed by the user.
# Corresponds to the JSON property `prepaidBasePlanType`
# @return [Google::Apis::AndroidpublisherV3::PrepaidBasePlanType]
attr_accessor :prepaid_base_plan_type
# Region-specific information for this base plan.
# Corresponds to the JSON property `regionalConfigs`
# @return [Array<Google::Apis::AndroidpublisherV3::RegionalBasePlanConfig>]
attr_accessor :regional_configs
# Output only. The state of the base plan, i.e. whether it's active. Draft and
# inactive base plans can be activated or deleted. Active base plans can be made
# inactive. Inactive base plans can be canceled. This field cannot be changed by
# updating the resource. Use the dedicated endpoints instead.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_renewing_base_plan_type = args[:auto_renewing_base_plan_type] if args.key?(:auto_renewing_base_plan_type)
@base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
@offer_tags = args[:offer_tags] if args.key?(:offer_tags)
@other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
@prepaid_base_plan_type = args[:prepaid_base_plan_type] if args.key?(:prepaid_base_plan_type)
@regional_configs = args[:regional_configs] if args.key?(:regional_configs)
@state = args[:state] if args.key?(:state)
end
end
# Information about an app bundle. The resource for BundlesService.
class Bundle
include Google::Apis::Core::Hashable
# A sha1 hash of the upload payload, encoded as a hex string and matching the
# output of the sha1sum command.
# Corresponds to the JSON property `sha1`
# @return [String]
attr_accessor :sha1
# A sha256 hash of the upload payload, encoded as a hex string and matching the
# output of the sha256sum command.
# Corresponds to the JSON property `sha256`
# @return [String]
attr_accessor :sha256
# The version code of the Android App Bundle, as specified in the Android App
# Bundle's base module APK manifest file.
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@sha1 = args[:sha1] if args.key?(:sha1)
@sha256 = args[:sha256] if args.key?(:sha256)
@version_code = args[:version_code] if args.key?(:version_code)
end
end
# Response listing all app bundles.
class BundlesListResponse
include Google::Apis::Core::Hashable
# All app bundles.
# Corresponds to the JSON property `bundles`
# @return [Array<Google::Apis::AndroidpublisherV3::Bundle>]
attr_accessor :bundles
# The kind of this response ("androidpublisher#bundlesListResponse").
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@bundles = args[:bundles] if args.key?(:bundles)
@kind = args[:kind] if args.key?(:kind)
end
end
# Result of the cancel survey when the subscription was canceled by the user.
class CancelSurveyResult
include Google::Apis::Core::Hashable
# The reason the user selected in the cancel survey.
# Corresponds to the JSON property `reason`
# @return [String]
attr_accessor :reason
# Only set for CANCEL_SURVEY_REASON_OTHERS. This is the user's freeform response
# to the survey.
# Corresponds to the JSON property `reasonUserInput`
# @return [String]
attr_accessor :reason_user_input
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reason = args[:reason] if args.key?(:reason)
@reason_user_input = args[:reason_user_input] if args.key?(:reason_user_input)
end
end
# Information specific to a subscription in canceled state.
class CanceledStateContext
include Google::Apis::Core::Hashable
# Information specific to cancellations initiated by developers.
# Corresponds to the JSON property `developerInitiatedCancellation`
# @return [Google::Apis::AndroidpublisherV3::DeveloperInitiatedCancellation]
attr_accessor :developer_initiated_cancellation
# Information specific to cancellations caused by subscription replacement.
# Corresponds to the JSON property `replacementCancellation`
# @return [Google::Apis::AndroidpublisherV3::ReplacementCancellation]
attr_accessor :replacement_cancellation
# Information specific to cancellations initiated by Google system.
# Corresponds to the JSON property `systemInitiatedCancellation`
# @return [Google::Apis::AndroidpublisherV3::SystemInitiatedCancellation]
attr_accessor :system_initiated_cancellation
# Information specific to cancellations initiated by users.
# Corresponds to the JSON property `userInitiatedCancellation`
# @return [Google::Apis::AndroidpublisherV3::UserInitiatedCancellation]
attr_accessor :user_initiated_cancellation
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@developer_initiated_cancellation = args[:developer_initiated_cancellation] if args.key?(:developer_initiated_cancellation)
@replacement_cancellation = args[:replacement_cancellation] if args.key?(:replacement_cancellation)
@system_initiated_cancellation = args[:system_initiated_cancellation] if args.key?(:system_initiated_cancellation)
@user_initiated_cancellation = args[:user_initiated_cancellation] if args.key?(:user_initiated_cancellation)
end
end
# An entry of conversation between user and developer.
class Comment
include Google::Apis::Core::Hashable
# Developer entry from conversation between user and developer.
# Corresponds to the JSON property `developerComment`
# @return [Google::Apis::AndroidpublisherV3::DeveloperComment]
attr_accessor :developer_comment
# User entry from conversation between user and developer.
# Corresponds to the JSON property `userComment`
# @return [Google::Apis::AndroidpublisherV3::UserComment]
attr_accessor :user_comment
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@developer_comment = args[:developer_comment] if args.key?(:developer_comment)
@user_comment = args[:user_comment] if args.key?(:user_comment)
end
end
# Request message for ConvertRegionPrices.
class ConvertRegionPricesRequest
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `price`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :price
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@price = args[:price] if args.key?(:price)
end
end
# Response message for ConvertRegionPrices.
class ConvertRegionPricesResponse
include Google::Apis::Core::Hashable
# Converted other regions prices.
# Corresponds to the JSON property `convertedOtherRegionsPrice`
# @return [Google::Apis::AndroidpublisherV3::ConvertedOtherRegionsPrice]
attr_accessor :converted_other_regions_price
# Map from region code to converted region price.
# Corresponds to the JSON property `convertedRegionPrices`
# @return [Hash<String,Google::Apis::AndroidpublisherV3::ConvertedRegionPrice>]
attr_accessor :converted_region_prices
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@converted_other_regions_price = args[:converted_other_regions_price] if args.key?(:converted_other_regions_price)
@converted_region_prices = args[:converted_region_prices] if args.key?(:converted_region_prices)
end
end
# Converted other regions prices.
class ConvertedOtherRegionsPrice
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `eurPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :eur_price
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `usdPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :usd_price
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eur_price = args[:eur_price] if args.key?(:eur_price)
@usd_price = args[:usd_price] if args.key?(:usd_price)
end
end
# A converted region price.
class ConvertedRegionPrice
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `price`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :price
# The region code of the region.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `taxAmount`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :tax_amount
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@price = args[:price] if args.key?(:price)
@region_code = args[:region_code] if args.key?(:region_code)
@tax_amount = args[:tax_amount] if args.key?(:tax_amount)
end
end
# Country targeting specification.
class CountryTargeting
include Google::Apis::Core::Hashable
# Countries to target, specified as two letter [CLDR codes](https://unicode.org/
# cldr/charts/latest/supplemental/territory_containment_un_m_49.html).
# Corresponds to the JSON property `countries`
# @return [Array<String>]
attr_accessor :countries
# Include "rest of world" as well as explicitly targeted countries.
# Corresponds to the JSON property `includeRestOfWorld`
# @return [Boolean]
attr_accessor :include_rest_of_world
alias_method :include_rest_of_world?, :include_rest_of_world
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@countries = args[:countries] if args.key?(:countries)
@include_rest_of_world = args[:include_rest_of_world] if args.key?(:include_rest_of_world)
end
end
# Request message for DeactivateBasePlan.
class DeactivateBasePlanRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Request message for DeactivateSubscriptionOffer.
class DeactivateSubscriptionOfferRequest
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents a deobfuscation file.
class DeobfuscationFile
include Google::Apis::Core::Hashable
# The type of the deobfuscation file.
# Corresponds to the JSON property `symbolType`
# @return [String]
attr_accessor :symbol_type
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@symbol_type = args[:symbol_type] if args.key?(:symbol_type)
end
end
# Responses for the upload.
class DeobfuscationFilesUploadResponse
include Google::Apis::Core::Hashable
# Represents a deobfuscation file.
# Corresponds to the JSON property `deobfuscationFile`
# @return [Google::Apis::AndroidpublisherV3::DeobfuscationFile]
attr_accessor :deobfuscation_file
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deobfuscation_file = args[:deobfuscation_file] if args.key?(:deobfuscation_file)
end
end
# Developer entry from conversation between user and developer.
class DeveloperComment
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970.
# Corresponds to the JSON property `lastModified`
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
attr_accessor :last_modified
# The content of the comment, i.e. reply body.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_modified = args[:last_modified] if args.key?(:last_modified)
@text = args[:text] if args.key?(:text)
end
end
# Information specific to cancellations initiated by developers.
class DeveloperInitiatedCancellation
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# LINT.IfChange A group of devices. A group is defined by a set of device
# selectors. A device belongs to the group if it matches any selector (logical
# OR).
class DeviceGroup
include Google::Apis::Core::Hashable
# Device selectors for this group. A device matching any of the selectors is
# included in this group.
# Corresponds to the JSON property `deviceSelectors`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceSelector>]
attr_accessor :device_selectors
# The name of the group.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_selectors = args[:device_selectors] if args.key?(:device_selectors)
@name = args[:name] if args.key?(:name)
end
end
# Identifier of a device.
class DeviceId
include Google::Apis::Core::Hashable
# Value of Build.BRAND.
# Corresponds to the JSON property `buildBrand`
# @return [String]
attr_accessor :build_brand
# Value of Build.DEVICE.
# Corresponds to the JSON property `buildDevice`
# @return [String]
attr_accessor :build_device
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@build_brand = args[:build_brand] if args.key?(:build_brand)
@build_device = args[:build_device] if args.key?(:build_device)
end
end
# Characteristics of the user's device.
class DeviceMetadata
include Google::Apis::Core::Hashable
# Device CPU make, e.g. "Qualcomm"
# Corresponds to the JSON property `cpuMake`
# @return [String]
attr_accessor :cpu_make
# Device CPU model, e.g. "MSM8974"
# Corresponds to the JSON property `cpuModel`
# @return [String]
attr_accessor :cpu_model
# Device class (e.g. tablet)
# Corresponds to the JSON property `deviceClass`
# @return [String]
attr_accessor :device_class
# OpenGL version
# Corresponds to the JSON property `glEsVersion`
# @return [Fixnum]
attr_accessor :gl_es_version
# Device manufacturer (e.g. Motorola)
# Corresponds to the JSON property `manufacturer`
# @return [String]
attr_accessor :manufacturer
# Comma separated list of native platforms (e.g. "arm", "arm7")
# Corresponds to the JSON property `nativePlatform`
# @return [String]
attr_accessor :native_platform
# Device model name (e.g. Droid)
# Corresponds to the JSON property `productName`
# @return [String]
attr_accessor :product_name
# Device RAM in Megabytes, e.g. "2048"
# Corresponds to the JSON property `ramMb`
# @return [Fixnum]
attr_accessor :ram_mb
# Screen density in DPI
# Corresponds to the JSON property `screenDensityDpi`
# @return [Fixnum]
attr_accessor :screen_density_dpi
# Screen height in pixels
# Corresponds to the JSON property `screenHeightPx`
# @return [Fixnum]
attr_accessor :screen_height_px
# Screen width in pixels
# Corresponds to the JSON property `screenWidthPx`
# @return [Fixnum]
attr_accessor :screen_width_px
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cpu_make = args[:cpu_make] if args.key?(:cpu_make)
@cpu_model = args[:cpu_model] if args.key?(:cpu_model)
@device_class = args[:device_class] if args.key?(:device_class)
@gl_es_version = args[:gl_es_version] if args.key?(:gl_es_version)
@manufacturer = args[:manufacturer] if args.key?(:manufacturer)
@native_platform = args[:native_platform] if args.key?(:native_platform)
@product_name = args[:product_name] if args.key?(:product_name)
@ram_mb = args[:ram_mb] if args.key?(:ram_mb)
@screen_density_dpi = args[:screen_density_dpi] if args.key?(:screen_density_dpi)
@screen_height_px = args[:screen_height_px] if args.key?(:screen_height_px)
@screen_width_px = args[:screen_width_px] if args.key?(:screen_width_px)
end
end
# Conditions about a device's RAM capabilities.
class DeviceRam
include Google::Apis::Core::Hashable
# Maximum RAM in bytes (bound excluded).
# Corresponds to the JSON property `maxBytes`
# @return [Fixnum]
attr_accessor :max_bytes
# Minimum RAM in bytes (bound included).
# Corresponds to the JSON property `minBytes`
# @return [Fixnum]
attr_accessor :min_bytes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_bytes = args[:max_bytes] if args.key?(:max_bytes)
@min_bytes = args[:min_bytes] if args.key?(:min_bytes)
end
end
# Selector for a device group. A selector consists of a set of conditions on the
# device that should all match (logical AND) to determine a device group
# eligibility. For instance, if a selector specifies RAM conditions, device
# model inclusion and device model exclusion, a device is considered to match if:
# device matches RAM conditions AND device matches one of the included device
# models AND device doesn't match excluded device models
class DeviceSelector
include Google::Apis::Core::Hashable
# Conditions about a device's RAM capabilities.
# Corresponds to the JSON property `deviceRam`
# @return [Google::Apis::AndroidpublisherV3::DeviceRam]
attr_accessor :device_ram
# Device models excluded by this selector, even if they match all other
# conditions.
# Corresponds to the JSON property `excludedDeviceIds`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceId>]
attr_accessor :excluded_device_ids
# A device that has any of these system features is excluded by this selector,
# even if it matches all other conditions.
# Corresponds to the JSON property `forbiddenSystemFeatures`
# @return [Array<Google::Apis::AndroidpublisherV3::SystemFeature>]
attr_accessor :forbidden_system_features
# Device models included by this selector.
# Corresponds to the JSON property `includedDeviceIds`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceId>]
attr_accessor :included_device_ids
# A device needs to have all these system features to be included by the
# selector.
# Corresponds to the JSON property `requiredSystemFeatures`
# @return [Array<Google::Apis::AndroidpublisherV3::SystemFeature>]
attr_accessor :required_system_features
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_ram = args[:device_ram] if args.key?(:device_ram)
@excluded_device_ids = args[:excluded_device_ids] if args.key?(:excluded_device_ids)
@forbidden_system_features = args[:forbidden_system_features] if args.key?(:forbidden_system_features)
@included_device_ids = args[:included_device_ids] if args.key?(:included_device_ids)
@required_system_features = args[:required_system_features] if args.key?(:required_system_features)
end
end
# The device spec used to generate a system APK.
class DeviceSpec
include Google::Apis::Core::Hashable
# Screen dpi.
# Corresponds to the JSON property `screenDensity`
# @return [Fixnum]
attr_accessor :screen_density
# Supported ABI architectures in the order of preference. The values should be
# the string as reported by the platform, e.g. "armeabi-v7a", "x86_64".
# Corresponds to the JSON property `supportedAbis`
# @return [Array<String>]
attr_accessor :supported_abis
# All installed locales represented as BCP-47 strings, e.g. "en-US".
# Corresponds to the JSON property `supportedLocales`
# @return [Array<String>]
attr_accessor :supported_locales
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@screen_density = args[:screen_density] if args.key?(:screen_density)
@supported_abis = args[:supported_abis] if args.key?(:supported_abis)
@supported_locales = args[:supported_locales] if args.key?(:supported_locales)
end
end
# A single device tier. Devices matching any of the device groups in
# device_group_names are considered to match the tier.
class DeviceTier
include Google::Apis::Core::Hashable
# Groups of devices included in this tier. These groups must be defined
# explicitly under device_groups in this configuration.
# Corresponds to the JSON property `deviceGroupNames`
# @return [Array<String>]
attr_accessor :device_group_names
# The priority level of the tier. Tiers are evaluated in descending order of
# level: the highest level tier has the highest priority. The highest tier
# matching a given device is selected for that device. You should use a
# contiguous range of levels for your tiers in a tier set; tier levels in a tier
# set must be unique. For instance, if your tier set has 4 tiers (including the
# global fallback), you should define tiers 1, 2 and 3 in this configuration.
# Note: tier 0 is implicitly defined as a global fallback and selected for
# devices that don't match any of the tiers explicitly defined here. You mustn't
# define level 0 explicitly in this configuration.
# Corresponds to the JSON property `level`
# @return [Fixnum]
attr_accessor :level
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_group_names = args[:device_group_names] if args.key?(:device_group_names)
@level = args[:level] if args.key?(:level)
end
end
# LINT.IfChange Configuration describing device targeting criteria for the
# content of an app.
class DeviceTierConfig
include Google::Apis::Core::Hashable
# Definition of device groups for the app.
# Corresponds to the JSON property `deviceGroups`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceGroup>]
attr_accessor :device_groups
# Output only. The device tier config ID.
# Corresponds to the JSON property `deviceTierConfigId`
# @return [Fixnum]
attr_accessor :device_tier_config_id
# A set of device tiers. A tier set determines what variation of app content
# gets served to a specific device, for device-targeted content. You should
# assign a priority level to each tier, which determines the ordering by which
# they are evaluated by Play. See the documentation of DeviceTier.level for more
# details.
# Corresponds to the JSON property `deviceTierSet`
# @return [Google::Apis::AndroidpublisherV3::DeviceTierSet]
attr_accessor :device_tier_set
# Definition of user country sets for the app.
# Corresponds to the JSON property `userCountrySets`
# @return [Array<Google::Apis::AndroidpublisherV3::UserCountrySet>]
attr_accessor :user_country_sets
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_groups = args[:device_groups] if args.key?(:device_groups)
@device_tier_config_id = args[:device_tier_config_id] if args.key?(:device_tier_config_id)
@device_tier_set = args[:device_tier_set] if args.key?(:device_tier_set)
@user_country_sets = args[:user_country_sets] if args.key?(:user_country_sets)
end
end
# A set of device tiers. A tier set determines what variation of app content
# gets served to a specific device, for device-targeted content. You should
# assign a priority level to each tier, which determines the ordering by which
# they are evaluated by Play. See the documentation of DeviceTier.level for more
# details.
class DeviceTierSet
include Google::Apis::Core::Hashable
# Device tiers belonging to the set.
# Corresponds to the JSON property `deviceTiers`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceTier>]
attr_accessor :device_tiers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_tiers = args[:device_tiers] if args.key?(:device_tiers)
end
end
# An expansion file. The resource for ExpansionFilesService.
class ExpansionFile
include Google::Apis::Core::Hashable
# If set, this field indicates that this APK has an expansion file uploaded to
# it: this APK does not reference another APK's expansion file. The field's
# value is the size of the uploaded expansion file in bytes.
# Corresponds to the JSON property `fileSize`
# @return [Fixnum]
attr_accessor :file_size
# If set, this APK's expansion file references another APK's expansion file. The
# file_size field will not be set.
# Corresponds to the JSON property `referencesVersion`
# @return [Fixnum]
attr_accessor :references_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@file_size = args[:file_size] if args.key?(:file_size)
@references_version = args[:references_version] if args.key?(:references_version)
end
end
# Response for uploading an expansion file.
class ExpansionFilesUploadResponse
include Google::Apis::Core::Hashable
# An expansion file. The resource for ExpansionFilesService.
# Corresponds to the JSON property `expansionFile`
# @return [Google::Apis::AndroidpublisherV3::ExpansionFile]
attr_accessor :expansion_file
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expansion_file = args[:expansion_file] if args.key?(:expansion_file)
end
end
# User account identifier in the third-party service.
class ExternalAccountIdentifiers
include Google::Apis::Core::Hashable
# User account identifier in the third-party service. Only present if account
# linking happened as part of the subscription purchase flow.
# Corresponds to the JSON property `externalAccountId`
# @return [String]
attr_accessor :external_account_id
# An obfuscated version of the id that is uniquely associated with the user's
# account in your app. Present for the following purchases: * If account linking
# happened as part of the subscription purchase flow. * It was specified using
# https://developer.android.com/reference/com/android/billingclient/api/
# BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalAccountId`
# @return [String]
attr_accessor :obfuscated_external_account_id
# An obfuscated version of the id that is uniquely associated with the user's
# profile in your app. Only present if specified using https://developer.android.
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
# setobfuscatedprofileid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalProfileId`
# @return [String]
attr_accessor :obfuscated_external_profile_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@external_account_id = args[:external_account_id] if args.key?(:external_account_id)
@obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
@obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
end
end
# Defines an APK available for this application that is hosted externally and
# not uploaded to Google Play. This function is only available to organizations
# using Managed Play whose application is configured to restrict distribution to
# the organizations.
class ExternallyHostedApk
include Google::Apis::Core::Hashable
# The application label.
# Corresponds to the JSON property `applicationLabel`
# @return [String]
attr_accessor :application_label
# A certificate (or array of certificates if a certificate-chain is used) used
# to sign this APK, represented as a base64 encoded byte array.
# Corresponds to the JSON property `certificateBase64s`
# @return [Array<String>]
attr_accessor :certificate_base64s
# The URL at which the APK is hosted. This must be an https URL.
# Corresponds to the JSON property `externallyHostedUrl`
# @return [String]
attr_accessor :externally_hosted_url
# The sha1 checksum of this APK, represented as a base64 encoded byte array.
# Corresponds to the JSON property `fileSha1Base64`
# @return [String]
attr_accessor :file_sha1_base64
# The sha256 checksum of this APK, represented as a base64 encoded byte array.
# Corresponds to the JSON property `fileSha256Base64`
# @return [String]
attr_accessor :file_sha256_base64
# The file size in bytes of this APK.
# Corresponds to the JSON property `fileSize`
# @return [Fixnum]
attr_accessor :file_size
# The icon image from the APK, as a base64 encoded byte array.
# Corresponds to the JSON property `iconBase64`
# @return [String]
attr_accessor :icon_base64
# The maximum SDK supported by this APK (optional).
# Corresponds to the JSON property `maximumSdk`
# @return [Fixnum]
attr_accessor :maximum_sdk
# The minimum SDK targeted by this APK.
# Corresponds to the JSON property `minimumSdk`
# @return [Fixnum]
attr_accessor :minimum_sdk
# The native code environments supported by this APK (optional).
# Corresponds to the JSON property `nativeCodes`
# @return [Array<String>]
attr_accessor :native_codes
# The package name.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# The features required by this APK (optional).
# Corresponds to the JSON property `usesFeatures`
# @return [Array<String>]
attr_accessor :uses_features
# The permissions requested by this APK.
# Corresponds to the JSON property `usesPermissions`
# @return [Array<Google::Apis::AndroidpublisherV3::UsesPermission>]
attr_accessor :uses_permissions
# The version code of this APK.
# Corresponds to the JSON property `versionCode`
# @return [Fixnum]
attr_accessor :version_code
# The version name of this APK.
# Corresponds to the JSON property `versionName`
# @return [String]
attr_accessor :version_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@application_label = args[:application_label] if args.key?(:application_label)
@certificate_base64s = args[:certificate_base64s] if args.key?(:certificate_base64s)
@externally_hosted_url = args[:externally_hosted_url] if args.key?(:externally_hosted_url)
@file_sha1_base64 = args[:file_sha1_base64] if args.key?(:file_sha1_base64)
@file_sha256_base64 = args[:file_sha256_base64] if args.key?(:file_sha256_base64)
@file_size = args[:file_size] if args.key?(:file_size)
@icon_base64 = args[:icon_base64] if args.key?(:icon_base64)
@maximum_sdk = args[:maximum_sdk] if args.key?(:maximum_sdk)
@minimum_sdk = args[:minimum_sdk] if args.key?(:minimum_sdk)
@native_codes = args[:native_codes] if args.key?(:native_codes)
@package_name = args[:package_name] if args.key?(:package_name)
@uses_features = args[:uses_features] if args.key?(:uses_features)
@uses_permissions = args[:uses_permissions] if args.key?(:uses_permissions)
@version_code = args[:version_code] if args.key?(:version_code)
@version_name = args[:version_name] if args.key?(:version_name)
end
end
# Response to list generated APKs.
class GeneratedApksListResponse
include Google::Apis::Core::Hashable
# All generated APKs, grouped by the APK signing key.
# Corresponds to the JSON property `generatedApks`
# @return [Array<Google::Apis::AndroidpublisherV3::GeneratedApksPerSigningKey>]
attr_accessor :generated_apks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@generated_apks = args[:generated_apks] if args.key?(:generated_apks)
end
end
# Download metadata for split, standalone and universal APKs, as well as asset
# pack slices, signed with a given key.
class GeneratedApksPerSigningKey
include Google::Apis::Core::Hashable
# SHA256 hash of the APK signing public key certificate.
# Corresponds to the JSON property `certificateSha256Hash`
# @return [String]
attr_accessor :certificate_sha256_hash
# List of asset pack slices which will be served for this app bundle, signed
# with a key corresponding to certificate_sha256_hash.
# Corresponds to the JSON property `generatedAssetPackSlices`
# @return [Array<Google::Apis::AndroidpublisherV3::GeneratedAssetPackSlice>]
attr_accessor :generated_asset_pack_slices
# List of generated split APKs, signed with a key corresponding to
# certificate_sha256_hash.
# Corresponds to the JSON property `generatedSplitApks`
# @return [Array<Google::Apis::AndroidpublisherV3::GeneratedSplitApk>]
attr_accessor :generated_split_apks
# List of generated standalone APKs, signed with a key corresponding to
# certificate_sha256_hash.
# Corresponds to the JSON property `generatedStandaloneApks`
# @return [Array<Google::Apis::AndroidpublisherV3::GeneratedStandaloneApk>]
attr_accessor :generated_standalone_apks
# Download metadata for a universal APK.
# Corresponds to the JSON property `generatedUniversalApk`
# @return [Google::Apis::AndroidpublisherV3::GeneratedUniversalApk]
attr_accessor :generated_universal_apk
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@certificate_sha256_hash = args[:certificate_sha256_hash] if args.key?(:certificate_sha256_hash)
@generated_asset_pack_slices = args[:generated_asset_pack_slices] if args.key?(:generated_asset_pack_slices)
@generated_split_apks = args[:generated_split_apks] if args.key?(:generated_split_apks)
@generated_standalone_apks = args[:generated_standalone_apks] if args.key?(:generated_standalone_apks)
@generated_universal_apk = args[:generated_universal_apk] if args.key?(:generated_universal_apk)
end
end
# Download metadata for an asset pack slice.
class GeneratedAssetPackSlice
include Google::Apis::Core::Hashable
# Download ID, which uniquely identifies the APK to download. Should be supplied
# to `generatedapks.download` method.
# Corresponds to the JSON property `downloadId`
# @return [String]
attr_accessor :download_id
# Name of the module that this asset slice belongs to.
# Corresponds to the JSON property `moduleName`
# @return [String]
attr_accessor :module_name
# Asset slice ID.
# Corresponds to the JSON property `sliceId`
# @return [String]
attr_accessor :slice_id
# Asset module version.
# Corresponds to the JSON property `version`
# @return [Fixnum]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_id = args[:download_id] if args.key?(:download_id)
@module_name = args[:module_name] if args.key?(:module_name)
@slice_id = args[:slice_id] if args.key?(:slice_id)
@version = args[:version] if args.key?(:version)
end
end
# Download metadata for a split APK.
class GeneratedSplitApk
include Google::Apis::Core::Hashable
# Download ID, which uniquely identifies the APK to download. Should be supplied
# to `generatedapks.download` method.
# Corresponds to the JSON property `downloadId`
# @return [String]
attr_accessor :download_id
# Name of the module that this APK belongs to.
# Corresponds to the JSON property `moduleName`
# @return [String]
attr_accessor :module_name
# Split ID. Empty for the main split of the base module.
# Corresponds to the JSON property `splitId`
# @return [String]
attr_accessor :split_id
# ID of the generated variant.
# Corresponds to the JSON property `variantId`
# @return [Fixnum]
attr_accessor :variant_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_id = args[:download_id] if args.key?(:download_id)
@module_name = args[:module_name] if args.key?(:module_name)
@split_id = args[:split_id] if args.key?(:split_id)
@variant_id = args[:variant_id] if args.key?(:variant_id)
end
end
# Download metadata for a standalone APK.
class GeneratedStandaloneApk
include Google::Apis::Core::Hashable
# Download ID, which uniquely identifies the APK to download. Should be supplied
# to `generatedapks.download` method.
# Corresponds to the JSON property `downloadId`
# @return [String]
attr_accessor :download_id
# ID of the generated variant.
# Corresponds to the JSON property `variantId`
# @return [Fixnum]
attr_accessor :variant_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_id = args[:download_id] if args.key?(:download_id)
@variant_id = args[:variant_id] if args.key?(:variant_id)
end
end
# Download metadata for a universal APK.
class GeneratedUniversalApk
include Google::Apis::Core::Hashable
# Download ID, which uniquely identifies the APK to download. Should be supplied
# to `generatedapks.download` method.
# Corresponds to the JSON property `downloadId`
# @return [String]
attr_accessor :download_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@download_id = args[:download_id] if args.key?(:download_id)
end
end
# An access grant resource.
class Grant
include Google::Apis::Core::Hashable
# The permissions granted to the user for this app.
# Corresponds to the JSON property `appLevelPermissions`
# @return [Array<String>]
attr_accessor :app_level_permissions
# Required. Resource name for this grant, following the pattern "developers/`
# developer`/users/`email`/grants/`package_name`". If this grant is for a draft
# app, the app ID will be used in this resource name instead of the package name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Immutable. The package name of the app. This will be empty for draft apps.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@app_level_permissions = args[:app_level_permissions] if args.key?(:app_level_permissions)
@name = args[:name] if args.key?(:name)
@package_name = args[:package_name] if args.key?(:package_name)
end
end
# An uploaded image. The resource for ImagesService.
class Image
include Google::Apis::Core::Hashable
# A unique id representing this image.
# Corresponds to the JSON property `id`
# @return [String]
attr_accessor :id
# A sha1 hash of the image.
# Corresponds to the JSON property `sha1`
# @return [String]
attr_accessor :sha1
# A sha256 hash of the image.
# Corresponds to the JSON property `sha256`
# @return [String]
attr_accessor :sha256
# A URL that will serve a preview of the image.
# Corresponds to the JSON property `url`
# @return [String]
attr_accessor :url
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@id = args[:id] if args.key?(:id)
@sha1 = args[:sha1] if args.key?(:sha1)
@sha256 = args[:sha256] if args.key?(:sha256)
@url = args[:url] if args.key?(:url)
end
end
# Response for deleting all images.
class ImagesDeleteAllResponse
include Google::Apis::Core::Hashable
# The deleted images.
# Corresponds to the JSON property `deleted`
# @return [Array<Google::Apis::AndroidpublisherV3::Image>]
attr_accessor :deleted
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deleted = args[:deleted] if args.key?(:deleted)
end
end
# Response listing all images.
class ImagesListResponse
include Google::Apis::Core::Hashable
# All listed Images.
# Corresponds to the JSON property `images`
# @return [Array<Google::Apis::AndroidpublisherV3::Image>]
attr_accessor :images
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@images = args[:images] if args.key?(:images)
end
end
# Response for uploading an image.
class ImagesUploadResponse
include Google::Apis::Core::Hashable
# An uploaded image. The resource for ImagesService.
# Corresponds to the JSON property `image`
# @return [Google::Apis::AndroidpublisherV3::Image]
attr_accessor :image
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@image = args[:image] if args.key?(:image)
end
end
# An in-app product. The resource for InappproductsService.
class InAppProduct
include Google::Apis::Core::Hashable
# Default language of the localized data, as defined by BCP-47. e.g. "en-US".
# Corresponds to the JSON property `defaultLanguage`
# @return [String]
attr_accessor :default_language
# Definition of a price, i.e. currency and units.
# Corresponds to the JSON property `defaultPrice`
# @return [Google::Apis::AndroidpublisherV3::Price]
attr_accessor :default_price
# Grace period of the subscription, specified in ISO 8601 format. Allows
# developers to give their subscribers a grace period when the payment for the
# new recurrence period is declined. Acceptable values are P0D (zero days), P3D (
# three days), P7D (seven days), P14D (14 days), and P30D (30 days).
# Corresponds to the JSON property `gracePeriod`
# @return [String]
attr_accessor :grace_period
# List of localized title and description data. Map key is the language of the
# localized data, as defined by BCP-47, e.g. "en-US".
# Corresponds to the JSON property `listings`
# @return [Hash<String,Google::Apis::AndroidpublisherV3::InAppProductListing>]
attr_accessor :listings
# Details about taxation and legal compliance for managed products.
# Corresponds to the JSON property `managedProductTaxesAndComplianceSettings`
# @return [Google::Apis::AndroidpublisherV3::ManagedProductTaxAndComplianceSettings]
attr_accessor :managed_product_taxes_and_compliance_settings
# Package name of the parent app.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Prices per buyer region. None of these can be zero, as in-app products are
# never free. Map key is region code, as defined by ISO 3166-2.
# Corresponds to the JSON property `prices`
# @return [Hash<String,Google::Apis::AndroidpublisherV3::Price>]
attr_accessor :prices
# The type of the product, e.g. a recurring subscription.
# Corresponds to the JSON property `purchaseType`
# @return [String]
attr_accessor :purchase_type
# Stock-keeping-unit (SKU) of the product, unique within an app.
# Corresponds to the JSON property `sku`
# @return [String]
attr_accessor :sku
# The status of the product, e.g. whether it's active.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Subscription period, specified in ISO 8601 format. Acceptable values are P1W (
# one week), P1M (one month), P3M (three months), P6M (six months), and P1Y (one
# year).
# Corresponds to the JSON property `subscriptionPeriod`
# @return [String]
attr_accessor :subscription_period
# Details about taxation, Google Play policy and legal compliance for
# subscription products.
# Corresponds to the JSON property `subscriptionTaxesAndComplianceSettings`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
attr_accessor :subscription_taxes_and_compliance_settings
# Trial period, specified in ISO 8601 format. Acceptable values are anything
# between P7D (seven days) and P999D (999 days).
# Corresponds to the JSON property `trialPeriod`
# @return [String]
attr_accessor :trial_period
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@default_language = args[:default_language] if args.key?(:default_language)
@default_price = args[:default_price] if args.key?(:default_price)
@grace_period = args[:grace_period] if args.key?(:grace_period)
@listings = args[:listings] if args.key?(:listings)
@managed_product_taxes_and_compliance_settings = args[:managed_product_taxes_and_compliance_settings] if args.key?(:managed_product_taxes_and_compliance_settings)
@package_name = args[:package_name] if args.key?(:package_name)
@prices = args[:prices] if args.key?(:prices)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
@sku = args[:sku] if args.key?(:sku)
@status = args[:status] if args.key?(:status)
@subscription_period = args[:subscription_period] if args.key?(:subscription_period)
@subscription_taxes_and_compliance_settings = args[:subscription_taxes_and_compliance_settings] if args.key?(:subscription_taxes_and_compliance_settings)
@trial_period = args[:trial_period] if args.key?(:trial_period)
end
end
# Store listing of a single in-app product.
class InAppProductListing
include Google::Apis::Core::Hashable
# Localized entitlement benefits for a subscription.
# Corresponds to the JSON property `benefits`
# @return [Array<String>]
attr_accessor :benefits
# Description for the store listing.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Title for the store listing.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@description = args[:description] if args.key?(:description)
@title = args[:title] if args.key?(:title)
end
end
# Response listing all in-app products.
class InappproductsListResponse
include Google::Apis::Core::Hashable
# All in-app products.
# Corresponds to the JSON property `inappproduct`
# @return [Array<Google::Apis::AndroidpublisherV3::InAppProduct>]
attr_accessor :inappproduct
# The kind of this response ("androidpublisher#inappproductsListResponse").
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# Information about the current page. List operations that supports paging
# return only one "page" of results. This protocol buffer message describes the
# page that has been returned.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
attr_accessor :page_info
# Pagination information returned by a List operation when token pagination is
# enabled. List operations that supports paging return only one "page" of
# results. This protocol buffer message describes the page that has been
# returned. When using token pagination, clients should use the next/previous
# token to get another page of the result. The presence or absence of next/
# previous token indicates whether a next/previous page is available and
# provides a mean of accessing this page. ListRequest.page_token should be set
# to either next_page_token or previous_page_token to access another page.
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
attr_accessor :token_pagination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@inappproduct = args[:inappproduct] if args.key?(:inappproduct)
@kind = args[:kind] if args.key?(:kind)
@page_info = args[:page_info] if args.key?(:page_info)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
end
end
# An artifact resource which gets created when uploading an APK or Android App
# Bundle through internal app sharing.
class InternalAppSharingArtifact
include Google::Apis::Core::Hashable
# The sha256 fingerprint of the certificate used to sign the generated artifact.
# Corresponds to the JSON property `certificateFingerprint`
# @return [String]
attr_accessor :certificate_fingerprint
# The download URL generated for the uploaded artifact. Users that are
# authorized to download can follow the link to the Play Store app to install it.
# Corresponds to the JSON property `downloadUrl`
# @return [String]
attr_accessor :download_url
# The sha256 hash of the artifact represented as a lowercase hexadecimal number,
# matching the output of the sha256sum command.
# Corresponds to the JSON property `sha256`
# @return [String]
attr_accessor :sha256
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@certificate_fingerprint = args[:certificate_fingerprint] if args.key?(:certificate_fingerprint)
@download_url = args[:download_url] if args.key?(:download_url)
@sha256 = args[:sha256] if args.key?(:sha256)
end
end
# Contains the introductory price information for a subscription.
class IntroductoryPriceInfo
include Google::Apis::Core::Hashable
# Introductory price of the subscription, not including tax. The currency is the
# same as price_currency_code. Price is expressed in micro-units, where 1,000,
# 000 micro-units represents one unit of the currency. For example, if the
# subscription price is €1.99, price_amount_micros is 1990000.
# Corresponds to the JSON property `introductoryPriceAmountMicros`
# @return [Fixnum]
attr_accessor :introductory_price_amount_micros
# ISO 4217 currency code for the introductory subscription price. For example,
# if the price is specified in British pounds sterling, price_currency_code is "
# GBP".
# Corresponds to the JSON property `introductoryPriceCurrencyCode`
# @return [String]
attr_accessor :introductory_price_currency_code
# The number of billing period to offer introductory pricing.
# Corresponds to the JSON property `introductoryPriceCycles`
# @return [Fixnum]
attr_accessor :introductory_price_cycles
# Introductory price period, specified in ISO 8601 format. Common values are (
# but not limited to) "P1W" (one week), "P1M" (one month), "P3M" (three months),
# "P6M" (six months), and "P1Y" (one year).
# Corresponds to the JSON property `introductoryPricePeriod`
# @return [String]
attr_accessor :introductory_price_period
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@introductory_price_amount_micros = args[:introductory_price_amount_micros] if args.key?(:introductory_price_amount_micros)
@introductory_price_currency_code = args[:introductory_price_currency_code] if args.key?(:introductory_price_currency_code)
@introductory_price_cycles = args[:introductory_price_cycles] if args.key?(:introductory_price_cycles)
@introductory_price_period = args[:introductory_price_period] if args.key?(:introductory_price_period)
end
end
# Response listing existing device tier configs.
class ListDeviceTierConfigsResponse
include Google::Apis::Core::Hashable
# Device tier configs created by the developer.
# Corresponds to the JSON property `deviceTierConfigs`
# @return [Array<Google::Apis::AndroidpublisherV3::DeviceTierConfig>]
attr_accessor :device_tier_configs
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_tier_configs = args[:device_tier_configs] if args.key?(:device_tier_configs)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
end
end
# Response message for ListSubscriptionOffers.
class ListSubscriptionOffersResponse
include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The subscription offers from the specified subscription.
# Corresponds to the JSON property `subscriptionOffers`
# @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOffer>]
attr_accessor :subscription_offers
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@subscription_offers = args[:subscription_offers] if args.key?(:subscription_offers)
end
end
# Response message for ListSubscriptions.
class ListSubscriptionsResponse
include Google::Apis::Core::Hashable
# A token, which can be sent as `page_token` to retrieve the next page. If this
# field is omitted, there are no subsequent pages.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The subscriptions from the specified app.
# Corresponds to the JSON property `subscriptions`
# @return [Array<Google::Apis::AndroidpublisherV3::Subscription>]
attr_accessor :subscriptions
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@subscriptions = args[:subscriptions] if args.key?(:subscriptions)
end
end
# A response containing one or more users with access to an account.
class ListUsersResponse
include Google::Apis::Core::Hashable
# A token to pass to subsequent calls in order to retrieve subsequent results.
# This will not be set if there are no more results to return.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
# The resulting users.
# Corresponds to the JSON property `users`
# @return [Array<Google::Apis::AndroidpublisherV3::User>]
attr_accessor :users
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@users = args[:users] if args.key?(:users)
end
end
# A localized store listing. The resource for ListingsService.
class Listing
include Google::Apis::Core::Hashable
# Full description of the app.
# Corresponds to the JSON property `fullDescription`
# @return [String]
attr_accessor :full_description
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# Short description of the app.
# Corresponds to the JSON property `shortDescription`
# @return [String]
attr_accessor :short_description
# Localized title of the app.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
# URL of a promotional YouTube video for the app.
# Corresponds to the JSON property `video`
# @return [String]
attr_accessor :video
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@full_description = args[:full_description] if args.key?(:full_description)
@language = args[:language] if args.key?(:language)
@short_description = args[:short_description] if args.key?(:short_description)
@title = args[:title] if args.key?(:title)
@video = args[:video] if args.key?(:video)
end
end
# Response listing all localized listings.
class ListingsListResponse
include Google::Apis::Core::Hashable
# The kind of this response ("androidpublisher#listingsListResponse").
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# All localized listings.
# Corresponds to the JSON property `listings`
# @return [Array<Google::Apis::AndroidpublisherV3::Listing>]
attr_accessor :listings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@listings = args[:listings] if args.key?(:listings)
end
end
# Localized text in given language.
class LocalizedText
include Google::Apis::Core::Hashable
# Language localization code (a BCP-47 language tag; for example, "de-AT" for
# Austrian German).
# Corresponds to the JSON property `language`
# @return [String]
attr_accessor :language
# The text in the given language.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@language = args[:language] if args.key?(:language)
@text = args[:text] if args.key?(:text)
end
end
# Details about taxation and legal compliance for managed products.
class ManagedProductTaxAndComplianceSettings
include Google::Apis::Core::Hashable
# Digital content or service classification for products distributed to users in
# the European Economic Area (EEA). The withdrawal regime under EEA consumer
# laws depends on this classification. Refer to the [Help Center article](https:/
# /support.google.com/googleplay/android-developer/answer/10463498) for more
# information.
# Corresponds to the JSON property `eeaWithdrawalRightType`
# @return [String]
attr_accessor :eea_withdrawal_right_type
# A mapping from region code to tax rate details. The keys are region codes as
# defined by Unicode's "CLDR".
# Corresponds to the JSON property `taxRateInfoByRegionCode`
# @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
attr_accessor :tax_rate_info_by_region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
@tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
end
end
# Request message for MigrateBasePlanPrices.
class MigrateBasePlanPricesRequest
include Google::Apis::Core::Hashable
# Required. The regional prices to update.
# Corresponds to the JSON property `regionalPriceMigrations`
# @return [Array<Google::Apis::AndroidpublisherV3::RegionalPriceMigrationConfig>]
attr_accessor :regional_price_migrations
# The version of the available regions being used for the specified resource.
# Corresponds to the JSON property `regionsVersion`
# @return [Google::Apis::AndroidpublisherV3::RegionsVersion]
attr_accessor :regions_version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@regional_price_migrations = args[:regional_price_migrations] if args.key?(:regional_price_migrations)
@regions_version = args[:regions_version] if args.key?(:regions_version)
end
end
# Response message for MigrateBasePlanPrices.
class MigrateBasePlanPricesResponse
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Represents an amount of money with its currency type.
class Money
include Google::Apis::Core::Hashable
# The three-letter currency code defined in ISO 4217.
# Corresponds to the JSON property `currencyCode`
# @return [String]
attr_accessor :currency_code
# Number of nano (10^-9) units of the amount. The value must be between -999,999,
# 999 and +999,999,999 inclusive. If `units` is positive, `nanos` must be
# positive or zero. If `units` is zero, `nanos` can be positive, zero, or
# negative. If `units` is negative, `nanos` must be negative or zero. For
# example $-1.75 is represented as `units`=-1 and `nanos`=-750,000,000.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# The whole units of the amount. For example if `currencyCode` is `"USD"`, then
# 1 unit is one US dollar.
# Corresponds to the JSON property `units`
# @return [Fixnum]
attr_accessor :units
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency_code = args[:currency_code] if args.key?(:currency_code)
@nanos = args[:nanos] if args.key?(:nanos)
@units = args[:units] if args.key?(:units)
end
end
# Offer details information related to a purchase line item.
class OfferDetails
include Google::Apis::Core::Hashable
# The base plan ID. Present for all base plan and offers.
# Corresponds to the JSON property `basePlanId`
# @return [String]
attr_accessor :base_plan_id
# The offer ID. Only present for discounted offers.
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# The latest offer tags associated with the offer. It includes tags inherited
# from the base plan.
# Corresponds to the JSON property `offerTags`
# @return [Array<String>]
attr_accessor :offer_tags
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@offer_tags = args[:offer_tags] if args.key?(:offer_tags)
end
end
# Represents a custom tag specified for base plans and subscription offers.
class OfferTag
include Google::Apis::Core::Hashable
# Must conform with RFC-1034. That is, this string can only contain lower-case
# letters (a-z), numbers (0-9), and hyphens (-), and be at most 20 characters.
# Corresponds to the JSON property `tag`
# @return [String]
attr_accessor :tag
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@tag = args[:tag] if args.key?(:tag)
end
end
# Pricing information for any new locations Play may launch in.
class OtherRegionsBasePlanConfig
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `eurPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :eur_price
# Whether the base plan is available for new subscribers in any new locations
# Play may launch in. If not specified, this will default to false.
# Corresponds to the JSON property `newSubscriberAvailability`
# @return [Boolean]
attr_accessor :new_subscriber_availability
alias_method :new_subscriber_availability?, :new_subscriber_availability
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `usdPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :usd_price
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eur_price = args[:eur_price] if args.key?(:eur_price)
@new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
@usd_price = args[:usd_price] if args.key?(:usd_price)
end
end
# Configuration for any new locations Play may launch in specified on a
# subscription offer.
class OtherRegionsSubscriptionOfferConfig
include Google::Apis::Core::Hashable
# Whether the subscription offer in any new locations Play may launch in the
# future. If not specified, this will default to false.
# Corresponds to the JSON property `otherRegionsNewSubscriberAvailability`
# @return [Boolean]
attr_accessor :other_regions_new_subscriber_availability
alias_method :other_regions_new_subscriber_availability?, :other_regions_new_subscriber_availability
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@other_regions_new_subscriber_availability = args[:other_regions_new_subscriber_availability] if args.key?(:other_regions_new_subscriber_availability)
end
end
# Configuration for any new locations Play may launch in for a single offer
# phase.
class OtherRegionsSubscriptionOfferPhaseConfig
include Google::Apis::Core::Hashable
# Pricing information for any new locations Play may launch in.
# Corresponds to the JSON property `absoluteDiscounts`
# @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
attr_accessor :absolute_discounts
# Pricing information for any new locations Play may launch in.
# Corresponds to the JSON property `otherRegionsPrices`
# @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhasePrices]
attr_accessor :other_regions_prices
# The fraction of the base plan price prorated over the phase duration that the
# user pays for this offer phase. For example, if the base plan price for this
# region is $12 for a period of 1 year, then a 50% discount for a phase of a
# duration of 3 months would correspond to a price of $1.50. The discount must
# be specified as a fraction strictly larger than 0 and strictly smaller than 1.
# The resulting price will be rounded to the nearest billable unit (e.g. cents
# for USD). The relative discount is considered invalid if the discounted price
# ends up being smaller than the minimum price allowed in any new locations Play
# may launch in.
# Corresponds to the JSON property `relativeDiscount`
# @return [Float]
attr_accessor :relative_discount
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@absolute_discounts = args[:absolute_discounts] if args.key?(:absolute_discounts)
@other_regions_prices = args[:other_regions_prices] if args.key?(:other_regions_prices)
@relative_discount = args[:relative_discount] if args.key?(:relative_discount)
end
end
# Pricing information for any new locations Play may launch in.
class OtherRegionsSubscriptionOfferPhasePrices
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `eurPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :eur_price
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `usdPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :usd_price
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eur_price = args[:eur_price] if args.key?(:eur_price)
@usd_price = args[:usd_price] if args.key?(:usd_price)
end
end
# Information about the current page. List operations that supports paging
# return only one "page" of results. This protocol buffer message describes the
# page that has been returned.
class PageInfo
include Google::Apis::Core::Hashable
# Maximum number of results returned in one page. ! The number of results
# included in the API response.
# Corresponds to the JSON property `resultPerPage`
# @return [Fixnum]
attr_accessor :result_per_page
# Index of the first result returned in the current page.
# Corresponds to the JSON property `startIndex`
# @return [Fixnum]
attr_accessor :start_index
# Total number of results available on the backend ! The total number of results
# in the result set.
# Corresponds to the JSON property `totalResults`
# @return [Fixnum]
attr_accessor :total_results
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@result_per_page = args[:result_per_page] if args.key?(:result_per_page)
@start_index = args[:start_index] if args.key?(:start_index)
@total_results = args[:total_results] if args.key?(:total_results)
end
end
# Information specific to a subscription in paused state.
class PausedStateContext
include Google::Apis::Core::Hashable
# Time at which the subscription will be automatically resumed.
# Corresponds to the JSON property `autoResumeTime`
# @return [String]
attr_accessor :auto_resume_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_resume_time = args[:auto_resume_time] if args.key?(:auto_resume_time)
end
end
# Represents a base plan that does not automatically renew at the end of the
# base plan, and must be manually renewed by the user.
class PrepaidBasePlanType
include Google::Apis::Core::Hashable
# Required. Subscription period, specified in ISO 8601 format. For a list of
# acceptable billing periods, refer to the help center.
# Corresponds to the JSON property `billingPeriodDuration`
# @return [String]
attr_accessor :billing_period_duration
# Whether users should be able to extend this prepaid base plan in Google Play
# surfaces. Defaults to TIME_EXTENSION_ACTIVE if not specified.
# Corresponds to the JSON property `timeExtension`
# @return [String]
attr_accessor :time_extension
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
@time_extension = args[:time_extension] if args.key?(:time_extension)
end
end
# Information related to a prepaid plan.
class PrepaidPlan
include Google::Apis::Core::Hashable
# If present, this is the time after which top up purchases are allowed for the
# prepaid plan. Will not be present for expired prepaid plans.
# Corresponds to the JSON property `allowExtendAfterTime`
# @return [String]
attr_accessor :allow_extend_after_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@allow_extend_after_time = args[:allow_extend_after_time] if args.key?(:allow_extend_after_time)
end
end
# Definition of a price, i.e. currency and units.
class Price
include Google::Apis::Core::Hashable
# 3 letter Currency code, as defined by ISO 4217. See java/com/google/common/
# money/CurrencyCode.java
# Corresponds to the JSON property `currency`
# @return [String]
attr_accessor :currency
# Price in 1/million of the currency base unit, represented as a string.
# Corresponds to the JSON property `priceMicros`
# @return [String]
attr_accessor :price_micros
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@currency = args[:currency] if args.key?(:currency)
@price_micros = args[:price_micros] if args.key?(:price_micros)
end
end
# A ProductPurchase resource indicates the status of a user's inapp product
# purchase.
class ProductPurchase
include Google::Apis::Core::Hashable
# The acknowledgement state of the inapp product. Possible values are: 0. Yet to
# be acknowledged 1. Acknowledged
# Corresponds to the JSON property `acknowledgementState`
# @return [Fixnum]
attr_accessor :acknowledgement_state
# The consumption state of the inapp product. Possible values are: 0. Yet to be
# consumed 1. Consumed
# Corresponds to the JSON property `consumptionState`
# @return [Fixnum]
attr_accessor :consumption_state
# A developer-specified string that contains supplemental information about an
# order.
# Corresponds to the JSON property `developerPayload`
# @return [String]
attr_accessor :developer_payload
# This kind represents an inappPurchase object in the androidpublisher service.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# An obfuscated version of the id that is uniquely associated with the user's
# account in your app. Only present if specified using https://developer.android.
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
# setobfuscatedaccountid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalAccountId`
# @return [String]
attr_accessor :obfuscated_external_account_id
# An obfuscated version of the id that is uniquely associated with the user's
# profile in your app. Only present if specified using https://developer.android.
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
# setobfuscatedprofileid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalProfileId`
# @return [String]
attr_accessor :obfuscated_external_profile_id
# The order id associated with the purchase of the inapp product.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# The inapp product SKU. May not be present.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# The purchase state of the order. Possible values are: 0. Purchased 1. Canceled
# 2. Pending
# Corresponds to the JSON property `purchaseState`
# @return [Fixnum]
attr_accessor :purchase_state
# The time the product was purchased, in milliseconds since the epoch (Jan 1,
# 1970).
# Corresponds to the JSON property `purchaseTimeMillis`
# @return [Fixnum]
attr_accessor :purchase_time_millis
# The purchase token generated to identify this purchase. May not be present.
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token
# The type of purchase of the inapp product. This field is only set if this
# purchase was not made using the standard in-app billing flow. Possible values
# are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
# purchased using a promo code) 2. Rewarded (i.e. from watching a video ad
# instead of paying)
# Corresponds to the JSON property `purchaseType`
# @return [Fixnum]
attr_accessor :purchase_type
# The quantity associated with the purchase of the inapp product. If not present,
# the quantity is 1.
# Corresponds to the JSON property `quantity`
# @return [Fixnum]
attr_accessor :quantity
# ISO 3166-1 alpha-2 billing region code of the user at the time the product was
# granted.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
@consumption_state = args[:consumption_state] if args.key?(:consumption_state)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
@kind = args[:kind] if args.key?(:kind)
@obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
@obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
@order_id = args[:order_id] if args.key?(:order_id)
@product_id = args[:product_id] if args.key?(:product_id)
@purchase_state = args[:purchase_state] if args.key?(:purchase_state)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
@quantity = args[:quantity] if args.key?(:quantity)
@region_code = args[:region_code] if args.key?(:region_code)
end
end
# Request for the product.purchases.acknowledge API.
class ProductPurchasesAcknowledgeRequest
include Google::Apis::Core::Hashable
# Payload to attach to the purchase.
# Corresponds to the JSON property `developerPayload`
# @return [String]
attr_accessor :developer_payload
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
end
end
# Configuration for a base plan specific to a region.
class RegionalBasePlanConfig
include Google::Apis::Core::Hashable
# Whether the base plan in the specified region is available for new subscribers.
# Existing subscribers will not have their subscription canceled if this value
# is set to false. If not specified, this will default to false.
# Corresponds to the JSON property `newSubscriberAvailability`
# @return [Boolean]
attr_accessor :new_subscriber_availability
alias_method :new_subscriber_availability?, :new_subscriber_availability
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `price`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :price
# Required. Region code this configuration applies to, as defined by ISO 3166-2,
# e.g. "US".
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
@price = args[:price] if args.key?(:price)
@region_code = args[:region_code] if args.key?(:region_code)
end
end
# Configuration for a price migration.
class RegionalPriceMigrationConfig
include Google::Apis::Core::Hashable
# Required. The cutoff time for historical prices that subscribers can remain
# paying. Subscribers who are on a price that was created before this cutoff
# time will be migrated to the currently-offered price. These subscribers will
# receive a notification that they will be paying a different price. Subscribers
# who do not agree to the new price will have their subscription ended at the
# next renewal.
# Corresponds to the JSON property `oldestAllowedPriceVersionTime`
# @return [String]
attr_accessor :oldest_allowed_price_version_time
# Required. Region code this configuration applies to, as defined by ISO 3166-2,
# e.g. "US".
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@oldest_allowed_price_version_time = args[:oldest_allowed_price_version_time] if args.key?(:oldest_allowed_price_version_time)
@region_code = args[:region_code] if args.key?(:region_code)
end
end
# Configuration for a subscription offer in a single region.
class RegionalSubscriptionOfferConfig
include Google::Apis::Core::Hashable
# Whether the subscription offer in the specified region is available for new
# subscribers. Existing subscribers will not have their subscription cancelled
# if this value is set to false. If not specified, this will default to false.
# Corresponds to the JSON property `newSubscriberAvailability`
# @return [Boolean]
attr_accessor :new_subscriber_availability
alias_method :new_subscriber_availability?, :new_subscriber_availability
# Required. Immutable. Region code this configuration applies to, as defined by
# ISO 3166-2, e.g. "US".
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_subscriber_availability = args[:new_subscriber_availability] if args.key?(:new_subscriber_availability)
@region_code = args[:region_code] if args.key?(:region_code)
end
end
# Configuration for a single phase of a subscription offer in a single region.
class RegionalSubscriptionOfferPhaseConfig
include Google::Apis::Core::Hashable
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `absoluteDiscount`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :absolute_discount
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `price`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :price
# Required. Immutable. The region to which this config applies.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# The fraction of the base plan price prorated over the phase duration that the
# user pays for this offer phase. For example, if the base plan price for this
# region is $12 for a period of 1 year, then a 50% discount for a phase of a
# duration of 3 months would correspond to a price of $1.50. The discount must
# be specified as a fraction strictly larger than 0 and strictly smaller than 1.
# The resulting price will be rounded to the nearest billable unit (e.g. cents
# for USD). The relative discount is considered invalid if the discounted price
# ends up being smaller than the minimum price allowed in this region.
# Corresponds to the JSON property `relativeDiscount`
# @return [Float]
attr_accessor :relative_discount
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@absolute_discount = args[:absolute_discount] if args.key?(:absolute_discount)
@price = args[:price] if args.key?(:price)
@region_code = args[:region_code] if args.key?(:region_code)
@relative_discount = args[:relative_discount] if args.key?(:relative_discount)
end
end
# Specified details about taxation in a given geographical region.
class RegionalTaxRateInfo
include Google::Apis::Core::Hashable
# You must tell us if your app contains streaming products to correctly charge
# US state and local sales tax. Field only supported in United States.
# Corresponds to the JSON property `eligibleForStreamingServiceTaxRate`
# @return [Boolean]
attr_accessor :eligible_for_streaming_service_tax_rate
alias_method :eligible_for_streaming_service_tax_rate?, :eligible_for_streaming_service_tax_rate
# To collect communications or amusement taxes in the United States, choose the
# appropriate tax category. [Learn more](https://support.google.com/googleplay/
# android-developer/answer/10463498#streaming_tax).
# Corresponds to the JSON property `streamingTaxType`
# @return [String]
attr_accessor :streaming_tax_type
# Tax tier to specify reduced tax rate. Developers who sell digital news,
# magazines, newspapers, books, or audiobooks in various regions may be eligible
# for reduced tax rates. [Learn more](https://support.google.com/googleplay/
# android-developer/answer/10463498).
# Corresponds to the JSON property `taxTier`
# @return [String]
attr_accessor :tax_tier
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eligible_for_streaming_service_tax_rate = args[:eligible_for_streaming_service_tax_rate] if args.key?(:eligible_for_streaming_service_tax_rate)
@streaming_tax_type = args[:streaming_tax_type] if args.key?(:streaming_tax_type)
@tax_tier = args[:tax_tier] if args.key?(:tax_tier)
end
end
# The version of the available regions being used for the specified resource.
class RegionsVersion
include Google::Apis::Core::Hashable
# Required. A string representing version of the available regions being used
# for the specified resource. The current version is 2022/02.
# Corresponds to the JSON property `version`
# @return [String]
attr_accessor :version
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@version = args[:version] if args.key?(:version)
end
end
# Information specific to cancellations caused by subscription replacement.
class ReplacementCancellation
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# An Android app review.
class Review
include Google::Apis::Core::Hashable
# The name of the user who wrote the review.
# Corresponds to the JSON property `authorName`
# @return [String]
attr_accessor :author_name
# A repeated field containing comments for the review.
# Corresponds to the JSON property `comments`
# @return [Array<Google::Apis::AndroidpublisherV3::Comment>]
attr_accessor :comments
# Unique identifier for this review.
# Corresponds to the JSON property `reviewId`
# @return [String]
attr_accessor :review_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@author_name = args[:author_name] if args.key?(:author_name)
@comments = args[:comments] if args.key?(:comments)
@review_id = args[:review_id] if args.key?(:review_id)
end
end
# The result of replying/updating a reply to review.
class ReviewReplyResult
include Google::Apis::Core::Hashable
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970.
# Corresponds to the JSON property `lastEdited`
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
attr_accessor :last_edited
# The reply text that was applied.
# Corresponds to the JSON property `replyText`
# @return [String]
attr_accessor :reply_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@last_edited = args[:last_edited] if args.key?(:last_edited)
@reply_text = args[:reply_text] if args.key?(:reply_text)
end
end
# Response listing reviews.
class ReviewsListResponse
include Google::Apis::Core::Hashable
# Information about the current page. List operations that supports paging
# return only one "page" of results. This protocol buffer message describes the
# page that has been returned.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
attr_accessor :page_info
# List of reviews.
# Corresponds to the JSON property `reviews`
# @return [Array<Google::Apis::AndroidpublisherV3::Review>]
attr_accessor :reviews
# Pagination information returned by a List operation when token pagination is
# enabled. List operations that supports paging return only one "page" of
# results. This protocol buffer message describes the page that has been
# returned. When using token pagination, clients should use the next/previous
# token to get another page of the result. The presence or absence of next/
# previous token indicates whether a next/previous page is available and
# provides a mean of accessing this page. ListRequest.page_token should be set
# to either next_page_token or previous_page_token to access another page.
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
attr_accessor :token_pagination
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_info = args[:page_info] if args.key?(:page_info)
@reviews = args[:reviews] if args.key?(:reviews)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
end
end
# Request to reply to review or update existing reply.
class ReviewsReplyRequest
include Google::Apis::Core::Hashable
# The text to set as the reply. Replies of more than approximately 350
# characters will be rejected. HTML tags will be stripped.
# Corresponds to the JSON property `replyText`
# @return [String]
attr_accessor :reply_text
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@reply_text = args[:reply_text] if args.key?(:reply_text)
end
end
# Response on status of replying to a review.
class ReviewsReplyResponse
include Google::Apis::Core::Hashable
# The result of replying/updating a reply to review.
# Corresponds to the JSON property `result`
# @return [Google::Apis::AndroidpublisherV3::ReviewReplyResult]
attr_accessor :result
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@result = args[:result] if args.key?(:result)
end
end
# Information associated with purchases made with 'Subscribe with Google'.
class SubscribeWithGoogleInfo
include Google::Apis::Core::Hashable
# The email address of the user when the subscription was purchased.
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# The family name of the user when the subscription was purchased.
# Corresponds to the JSON property `familyName`
# @return [String]
attr_accessor :family_name
# The given name of the user when the subscription was purchased.
# Corresponds to the JSON property `givenName`
# @return [String]
attr_accessor :given_name
# The Google profile id of the user when the subscription was purchased.
# Corresponds to the JSON property `profileId`
# @return [String]
attr_accessor :profile_id
# The profile name of the user when the subscription was purchased.
# Corresponds to the JSON property `profileName`
# @return [String]
attr_accessor :profile_name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@email_address = args[:email_address] if args.key?(:email_address)
@family_name = args[:family_name] if args.key?(:family_name)
@given_name = args[:given_name] if args.key?(:given_name)
@profile_id = args[:profile_id] if args.key?(:profile_id)
@profile_name = args[:profile_name] if args.key?(:profile_name)
end
end
# A single subscription for an app.
class Subscription
include Google::Apis::Core::Hashable
# Output only. Whether this subscription is archived. Archived subscriptions are
# not available to any subscriber any longer, cannot be updated, and are not
# returned in list requests unless the show archived flag is passed in.
# Corresponds to the JSON property `archived`
# @return [Boolean]
attr_accessor :archived
alias_method :archived?, :archived
# The set of base plans for this subscription. Represents the prices and
# duration of the subscription if no other offers apply.
# Corresponds to the JSON property `basePlans`
# @return [Array<Google::Apis::AndroidpublisherV3::BasePlan>]
attr_accessor :base_plans
# Required. List of localized listings for this subscription. Must contain at
# least an entry for the default language of the parent app.
# Corresponds to the JSON property `listings`
# @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionListing>]
attr_accessor :listings
# Immutable. Package name of the parent app.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Immutable. Unique product ID of the product. Unique within the parent app.
# Product IDs must be composed of lower-case letters (a-z), numbers (0-9),
# underscores (_) and dots (.). It must start with a lower-case letter or number,
# and be between 1 and 40 (inclusive) characters in length.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Details about taxation, Google Play policy and legal compliance for
# subscription products.
# Corresponds to the JSON property `taxAndComplianceSettings`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionTaxAndComplianceSettings]
attr_accessor :tax_and_compliance_settings
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@archived = args[:archived] if args.key?(:archived)
@base_plans = args[:base_plans] if args.key?(:base_plans)
@listings = args[:listings] if args.key?(:listings)
@package_name = args[:package_name] if args.key?(:package_name)
@product_id = args[:product_id] if args.key?(:product_id)
@tax_and_compliance_settings = args[:tax_and_compliance_settings] if args.key?(:tax_and_compliance_settings)
end
end
# Information provided by the user when they complete the subscription
# cancellation flow (cancellation reason survey).
class SubscriptionCancelSurveyResult
include Google::Apis::Core::Hashable
# The cancellation reason the user chose in the survey. Possible values are: 0.
# Other 1. I don't use this service enough 2. Technical issues 3. Cost-related
# reasons 4. I found a better app
# Corresponds to the JSON property `cancelSurveyReason`
# @return [Fixnum]
attr_accessor :cancel_survey_reason
# The customized input cancel reason from the user. Only present when
# cancelReason is 0.
# Corresponds to the JSON property `userInputCancelReason`
# @return [String]
attr_accessor :user_input_cancel_reason
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cancel_survey_reason = args[:cancel_survey_reason] if args.key?(:cancel_survey_reason)
@user_input_cancel_reason = args[:user_input_cancel_reason] if args.key?(:user_input_cancel_reason)
end
end
# A SubscriptionDeferralInfo contains the data needed to defer a subscription
# purchase to a future expiry time.
class SubscriptionDeferralInfo
include Google::Apis::Core::Hashable
# The desired next expiry time to assign to the subscription, in milliseconds
# since the Epoch. The given time must be later/greater than the current expiry
# time for the subscription.
# Corresponds to the JSON property `desiredExpiryTimeMillis`
# @return [Fixnum]
attr_accessor :desired_expiry_time_millis
# The expected expiry time for the subscription. If the current expiry time for
# the subscription is not the value specified here, the deferral will not occur.
# Corresponds to the JSON property `expectedExpiryTimeMillis`
# @return [Fixnum]
attr_accessor :expected_expiry_time_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@desired_expiry_time_millis = args[:desired_expiry_time_millis] if args.key?(:desired_expiry_time_millis)
@expected_expiry_time_millis = args[:expected_expiry_time_millis] if args.key?(:expected_expiry_time_millis)
end
end
# Price change related information of a subscription item.
class SubscriptionItemPriceChangeDetails
include Google::Apis::Core::Hashable
# The renewal time at which the price change will become effective for the user.
# This is subject to change(to a future time) due to cases where the renewal
# time shifts like pause.
# Corresponds to the JSON property `expectedNewPriceChargeTime`
# @return [String]
attr_accessor :expected_new_price_charge_time
# Represents an amount of money with its currency type.
# Corresponds to the JSON property `newPrice`
# @return [Google::Apis::AndroidpublisherV3::Money]
attr_accessor :new_price
# Price change mode specifies how the subscription item price is changing.
# Corresponds to the JSON property `priceChangeMode`
# @return [String]
attr_accessor :price_change_mode
# State the price change is currently in.
# Corresponds to the JSON property `priceChangeState`
# @return [String]
attr_accessor :price_change_state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@expected_new_price_charge_time = args[:expected_new_price_charge_time] if args.key?(:expected_new_price_charge_time)
@new_price = args[:new_price] if args.key?(:new_price)
@price_change_mode = args[:price_change_mode] if args.key?(:price_change_mode)
@price_change_state = args[:price_change_state] if args.key?(:price_change_state)
end
end
# The consumer-visible metadata of a subscription.
class SubscriptionListing
include Google::Apis::Core::Hashable
# A list of benefits shown to the user on platforms such as the Play Store and
# in restoration flows in the language of this listing. Plain text. Ordered list
# of at most four benefits.
# Corresponds to the JSON property `benefits`
# @return [Array<String>]
attr_accessor :benefits
# The description of this subscription in the language of this listing. Maximum
# length - 80 characters. Plain text.
# Corresponds to the JSON property `description`
# @return [String]
attr_accessor :description
# Required. The language of this listing, as defined by BCP-47, e.g. "en-US".
# Corresponds to the JSON property `languageCode`
# @return [String]
attr_accessor :language_code
# Required. The title of this subscription in the language of this listing.
# Plain text.
# Corresponds to the JSON property `title`
# @return [String]
attr_accessor :title
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@benefits = args[:benefits] if args.key?(:benefits)
@description = args[:description] if args.key?(:description)
@language_code = args[:language_code] if args.key?(:language_code)
@title = args[:title] if args.key?(:title)
end
end
# A single, temporary offer
class SubscriptionOffer
include Google::Apis::Core::Hashable
# Required. Immutable. The ID of the base plan to which this offer is an
# extension.
# Corresponds to the JSON property `basePlanId`
# @return [String]
attr_accessor :base_plan_id
# Required. Immutable. Unique ID of this subscription offer. Must be unique
# within the base plan.
# Corresponds to the JSON property `offerId`
# @return [String]
attr_accessor :offer_id
# List of up to 20 custom tags specified for this offer, and returned to the app
# through the billing library.
# Corresponds to the JSON property `offerTags`
# @return [Array<Google::Apis::AndroidpublisherV3::OfferTag>]
attr_accessor :offer_tags
# Configuration for any new locations Play may launch in specified on a
# subscription offer.
# Corresponds to the JSON property `otherRegionsConfig`
# @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferConfig]
attr_accessor :other_regions_config
# Required. Immutable. The package name of the app the parent subscription
# belongs to.
# Corresponds to the JSON property `packageName`
# @return [String]
attr_accessor :package_name
# Required. The phases of this subscription offer. Must contain at least one
# entry, and may contain at most five. Users will always receive all these
# phases in the specified order. Phases may not be added, removed, or reordered
# after initial creation.
# Corresponds to the JSON property `phases`
# @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionOfferPhase>]
attr_accessor :phases
# Required. Immutable. The ID of the parent subscription this offer belongs to.
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
# Required. The region-specific configuration of this offer. Must contain at
# least one entry.
# Corresponds to the JSON property `regionalConfigs`
# @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferConfig>]
attr_accessor :regional_configs
# Output only. The current state of this offer. Can be changed using Activate
# and Deactivate actions. NB: the base plan state supersedes this state, so an
# active offer may not be available if the base plan is not active.
# Corresponds to the JSON property `state`
# @return [String]
attr_accessor :state
# Defines the rule a user needs to satisfy to receive this offer.
# Corresponds to the JSON property `targeting`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionOfferTargeting]
attr_accessor :targeting
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@base_plan_id = args[:base_plan_id] if args.key?(:base_plan_id)
@offer_id = args[:offer_id] if args.key?(:offer_id)
@offer_tags = args[:offer_tags] if args.key?(:offer_tags)
@other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
@package_name = args[:package_name] if args.key?(:package_name)
@phases = args[:phases] if args.key?(:phases)
@product_id = args[:product_id] if args.key?(:product_id)
@regional_configs = args[:regional_configs] if args.key?(:regional_configs)
@state = args[:state] if args.key?(:state)
@targeting = args[:targeting] if args.key?(:targeting)
end
end
# A single phase of a subscription offer.
class SubscriptionOfferPhase
include Google::Apis::Core::Hashable
# Required. The duration of a single recurrence of this phase. Specified in ISO
# 8601 format.
# Corresponds to the JSON property `duration`
# @return [String]
attr_accessor :duration
# Configuration for any new locations Play may launch in for a single offer
# phase.
# Corresponds to the JSON property `otherRegionsConfig`
# @return [Google::Apis::AndroidpublisherV3::OtherRegionsSubscriptionOfferPhaseConfig]
attr_accessor :other_regions_config
# Required. The number of times this phase repeats. If this offer phase is not
# free, each recurrence charges the user the price of this offer phase.
# Corresponds to the JSON property `recurrenceCount`
# @return [Fixnum]
attr_accessor :recurrence_count
# Required. The region-specific configuration of this offer phase. This list
# must contain exactly one entry for each region for which the subscription
# offer has a regional config.
# Corresponds to the JSON property `regionalConfigs`
# @return [Array<Google::Apis::AndroidpublisherV3::RegionalSubscriptionOfferPhaseConfig>]
attr_accessor :regional_configs
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@duration = args[:duration] if args.key?(:duration)
@other_regions_config = args[:other_regions_config] if args.key?(:other_regions_config)
@recurrence_count = args[:recurrence_count] if args.key?(:recurrence_count)
@regional_configs = args[:regional_configs] if args.key?(:regional_configs)
end
end
# Defines the rule a user needs to satisfy to receive this offer.
class SubscriptionOfferTargeting
include Google::Apis::Core::Hashable
# Represents a targeting rule of the form: User never had `scope` before.
# Corresponds to the JSON property `acquisitionRule`
# @return [Google::Apis::AndroidpublisherV3::AcquisitionTargetingRule]
attr_accessor :acquisition_rule
# Represents a targeting rule of the form: User currently has `scope` [with
# billing period `billing_period`].
# Corresponds to the JSON property `upgradeRule`
# @return [Google::Apis::AndroidpublisherV3::UpgradeTargetingRule]
attr_accessor :upgrade_rule
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acquisition_rule = args[:acquisition_rule] if args.key?(:acquisition_rule)
@upgrade_rule = args[:upgrade_rule] if args.key?(:upgrade_rule)
end
end
# Contains the price change information for a subscription that can be used to
# control the user journey for the price change in the app. This can be in the
# form of seeking confirmation from the user or tailoring the experience for a
# successful conversion.
class SubscriptionPriceChange
include Google::Apis::Core::Hashable
# Definition of a price, i.e. currency and units.
# Corresponds to the JSON property `newPrice`
# @return [Google::Apis::AndroidpublisherV3::Price]
attr_accessor :new_price
# The current state of the price change. Possible values are: 0. Outstanding:
# State for a pending price change waiting for the user to agree. In this state,
# you can optionally seek confirmation from the user using the In-App API. 1.
# Accepted: State for an accepted price change that the subscription will renew
# with unless it's canceled. The price change takes effect on a future date when
# the subscription renews. Note that the change might not occur when the
# subscription is renewed next.
# Corresponds to the JSON property `state`
# @return [Fixnum]
attr_accessor :state
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_price = args[:new_price] if args.key?(:new_price)
@state = args[:state] if args.key?(:state)
end
end
# A SubscriptionPurchase resource indicates the status of a user's subscription
# purchase.
class SubscriptionPurchase
include Google::Apis::Core::Hashable
# The acknowledgement state of the subscription product. Possible values are: 0.
# Yet to be acknowledged 1. Acknowledged
# Corresponds to the JSON property `acknowledgementState`
# @return [Fixnum]
attr_accessor :acknowledgement_state
# Whether the subscription will automatically be renewed when it reaches its
# current expiry time.
# Corresponds to the JSON property `autoRenewing`
# @return [Boolean]
attr_accessor :auto_renewing
alias_method :auto_renewing?, :auto_renewing
# Time at which the subscription will be automatically resumed, in milliseconds
# since the Epoch. Only present if the user has requested to pause the
# subscription.
# Corresponds to the JSON property `autoResumeTimeMillis`
# @return [Fixnum]
attr_accessor :auto_resume_time_millis
# The reason why a subscription was canceled or is not auto-renewing. Possible
# values are: 0. User canceled the subscription 1. Subscription was canceled by
# the system, for example because of a billing problem 2. Subscription was
# replaced with a new subscription 3. Subscription was canceled by the developer
# Corresponds to the JSON property `cancelReason`
# @return [Fixnum]
attr_accessor :cancel_reason
# Information provided by the user when they complete the subscription
# cancellation flow (cancellation reason survey).
# Corresponds to the JSON property `cancelSurveyResult`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionCancelSurveyResult]
attr_accessor :cancel_survey_result
# ISO 3166-1 alpha-2 billing country/region code of the user at the time the
# subscription was granted.
# Corresponds to the JSON property `countryCode`
# @return [String]
attr_accessor :country_code
# A developer-specified string that contains supplemental information about an
# order.
# Corresponds to the JSON property `developerPayload`
# @return [String]
attr_accessor :developer_payload
# The email address of the user when the subscription was purchased. Only
# present for purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `emailAddress`
# @return [String]
attr_accessor :email_address
# Time at which the subscription will expire, in milliseconds since the Epoch.
# Corresponds to the JSON property `expiryTimeMillis`
# @return [Fixnum]
attr_accessor :expiry_time_millis
# User account identifier in the third-party service. Only present if account
# linking happened as part of the subscription purchase flow.
# Corresponds to the JSON property `externalAccountId`
# @return [String]
attr_accessor :external_account_id
# The family name of the user when the subscription was purchased. Only present
# for purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `familyName`
# @return [String]
attr_accessor :family_name
# The given name of the user when the subscription was purchased. Only present
# for purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `givenName`
# @return [String]
attr_accessor :given_name
# Contains the introductory price information for a subscription.
# Corresponds to the JSON property `introductoryPriceInfo`
# @return [Google::Apis::AndroidpublisherV3::IntroductoryPriceInfo]
attr_accessor :introductory_price_info
# This kind represents a subscriptionPurchase object in the androidpublisher
# service.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The purchase token of the originating purchase if this subscription is one of
# the following: 0. Re-signup of a canceled but non-lapsed subscription 1.
# Upgrade/downgrade from a previous subscription For example, suppose a user
# originally signs up and you receive purchase token X, then the user cancels
# and goes through the resignup flow (before their subscription lapses) and you
# receive purchase token Y, and finally the user upgrades their subscription and
# you receive purchase token Z. If you call this API with purchase token Z, this
# field will be set to Y. If you call this API with purchase token Y, this field
# will be set to X. If you call this API with purchase token X, this field will
# not be set.
# Corresponds to the JSON property `linkedPurchaseToken`
# @return [String]
attr_accessor :linked_purchase_token
# An obfuscated version of the id that is uniquely associated with the user's
# account in your app. Present for the following purchases: * If account linking
# happened as part of the subscription purchase flow. * It was specified using
# https://developer.android.com/reference/com/android/billingclient/api/
# BillingFlowParams.Builder#setobfuscatedaccountid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalAccountId`
# @return [String]
attr_accessor :obfuscated_external_account_id
# An obfuscated version of the id that is uniquely associated with the user's
# profile in your app. Only present if specified using https://developer.android.
# com/reference/com/android/billingclient/api/BillingFlowParams.Builder#
# setobfuscatedprofileid when the purchase was made.
# Corresponds to the JSON property `obfuscatedExternalProfileId`
# @return [String]
attr_accessor :obfuscated_external_profile_id
# The order id of the latest recurring order associated with the purchase of the
# subscription. If the subscription was canceled because payment was declined,
# this will be the order id from the payment declined order.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# The payment state of the subscription. Possible values are: 0. Payment pending
# 1. Payment received 2. Free trial 3. Pending deferred upgrade/downgrade Not
# present for canceled, expired subscriptions.
# Corresponds to the JSON property `paymentState`
# @return [Fixnum]
attr_accessor :payment_state
# Price of the subscription, For tax exclusive countries, the price doesn't
# include tax. For tax inclusive countries, the price includes tax. Price is
# expressed in micro-units, where 1,000,000 micro-units represents one unit of
# the currency. For example, if the subscription price is €1.99,
# price_amount_micros is 1990000.
# Corresponds to the JSON property `priceAmountMicros`
# @return [Fixnum]
attr_accessor :price_amount_micros
# Contains the price change information for a subscription that can be used to
# control the user journey for the price change in the app. This can be in the
# form of seeking confirmation from the user or tailoring the experience for a
# successful conversion.
# Corresponds to the JSON property `priceChange`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionPriceChange]
attr_accessor :price_change
# ISO 4217 currency code for the subscription price. For example, if the price
# is specified in British pounds sterling, price_currency_code is "GBP".
# Corresponds to the JSON property `priceCurrencyCode`
# @return [String]
attr_accessor :price_currency_code
# The Google profile id of the user when the subscription was purchased. Only
# present for purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `profileId`
# @return [String]
attr_accessor :profile_id
# The profile name of the user when the subscription was purchased. Only present
# for purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `profileName`
# @return [String]
attr_accessor :profile_name
# The promotion code applied on this purchase. This field is only set if a
# vanity code promotion is applied when the subscription was purchased.
# Corresponds to the JSON property `promotionCode`
# @return [String]
attr_accessor :promotion_code
# The type of promotion applied on this purchase. This field is only set if a
# promotion is applied when the subscription was purchased. Possible values are:
# 0. One time code 1. Vanity code
# Corresponds to the JSON property `promotionType`
# @return [Fixnum]
attr_accessor :promotion_type
# The type of purchase of the subscription. This field is only set if this
# purchase was not made using the standard in-app billing flow. Possible values
# are: 0. Test (i.e. purchased from a license testing account) 1. Promo (i.e.
# purchased using a promo code)
# Corresponds to the JSON property `purchaseType`
# @return [Fixnum]
attr_accessor :purchase_type
# Time at which the subscription was granted, in milliseconds since the Epoch.
# Corresponds to the JSON property `startTimeMillis`
# @return [Fixnum]
attr_accessor :start_time_millis
# The time at which the subscription was canceled by the user, in milliseconds
# since the epoch. Only present if cancelReason is 0.
# Corresponds to the JSON property `userCancellationTimeMillis`
# @return [Fixnum]
attr_accessor :user_cancellation_time_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
@auto_renewing = args[:auto_renewing] if args.key?(:auto_renewing)
@auto_resume_time_millis = args[:auto_resume_time_millis] if args.key?(:auto_resume_time_millis)
@cancel_reason = args[:cancel_reason] if args.key?(:cancel_reason)
@cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result)
@country_code = args[:country_code] if args.key?(:country_code)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
@email_address = args[:email_address] if args.key?(:email_address)
@expiry_time_millis = args[:expiry_time_millis] if args.key?(:expiry_time_millis)
@external_account_id = args[:external_account_id] if args.key?(:external_account_id)
@family_name = args[:family_name] if args.key?(:family_name)
@given_name = args[:given_name] if args.key?(:given_name)
@introductory_price_info = args[:introductory_price_info] if args.key?(:introductory_price_info)
@kind = args[:kind] if args.key?(:kind)
@linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
@obfuscated_external_account_id = args[:obfuscated_external_account_id] if args.key?(:obfuscated_external_account_id)
@obfuscated_external_profile_id = args[:obfuscated_external_profile_id] if args.key?(:obfuscated_external_profile_id)
@order_id = args[:order_id] if args.key?(:order_id)
@payment_state = args[:payment_state] if args.key?(:payment_state)
@price_amount_micros = args[:price_amount_micros] if args.key?(:price_amount_micros)
@price_change = args[:price_change] if args.key?(:price_change)
@price_currency_code = args[:price_currency_code] if args.key?(:price_currency_code)
@profile_id = args[:profile_id] if args.key?(:profile_id)
@profile_name = args[:profile_name] if args.key?(:profile_name)
@promotion_code = args[:promotion_code] if args.key?(:promotion_code)
@promotion_type = args[:promotion_type] if args.key?(:promotion_type)
@purchase_type = args[:purchase_type] if args.key?(:purchase_type)
@start_time_millis = args[:start_time_millis] if args.key?(:start_time_millis)
@user_cancellation_time_millis = args[:user_cancellation_time_millis] if args.key?(:user_cancellation_time_millis)
end
end
# Item-level info for a subscription purchase.
class SubscriptionPurchaseLineItem
include Google::Apis::Core::Hashable
# Information related to an auto renewing plan.
# Corresponds to the JSON property `autoRenewingPlan`
# @return [Google::Apis::AndroidpublisherV3::AutoRenewingPlan]
attr_accessor :auto_renewing_plan
# Time at which the subscription expired or will expire unless the access is
# extended (ex. renews).
# Corresponds to the JSON property `expiryTime`
# @return [String]
attr_accessor :expiry_time
# Offer details information related to a purchase line item.
# Corresponds to the JSON property `offerDetails`
# @return [Google::Apis::AndroidpublisherV3::OfferDetails]
attr_accessor :offer_details
# Information related to a prepaid plan.
# Corresponds to the JSON property `prepaidPlan`
# @return [Google::Apis::AndroidpublisherV3::PrepaidPlan]
attr_accessor :prepaid_plan
# The purchased product ID (for example, 'monthly001').
# Corresponds to the JSON property `productId`
# @return [String]
attr_accessor :product_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@auto_renewing_plan = args[:auto_renewing_plan] if args.key?(:auto_renewing_plan)
@expiry_time = args[:expiry_time] if args.key?(:expiry_time)
@offer_details = args[:offer_details] if args.key?(:offer_details)
@prepaid_plan = args[:prepaid_plan] if args.key?(:prepaid_plan)
@product_id = args[:product_id] if args.key?(:product_id)
end
end
# Indicates the status of a user's subscription purchase.
class SubscriptionPurchaseV2
include Google::Apis::Core::Hashable
# The acknowledgement state of the subscription.
# Corresponds to the JSON property `acknowledgementState`
# @return [String]
attr_accessor :acknowledgement_state
# Information specific to a subscription in canceled state.
# Corresponds to the JSON property `canceledStateContext`
# @return [Google::Apis::AndroidpublisherV3::CanceledStateContext]
attr_accessor :canceled_state_context
# User account identifier in the third-party service.
# Corresponds to the JSON property `externalAccountIdentifiers`
# @return [Google::Apis::AndroidpublisherV3::ExternalAccountIdentifiers]
attr_accessor :external_account_identifiers
# This kind represents a SubscriptionPurchaseV2 object in the androidpublisher
# service.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The order id of the latest order associated with the purchase of the
# subscription. For autoRenewing subscription, this is the order id of signup
# order if it is not renewed yet, or the last recurring order id (success,
# pending, or declined order). For prepaid subscription, this is the order id
# associated with the queried purchase token.
# Corresponds to the JSON property `latestOrderId`
# @return [String]
attr_accessor :latest_order_id
# Item-level info for a subscription purchase. The items in the same purchase
# should be either all with AutoRenewingPlan or all with PrepaidPlan.
# Corresponds to the JSON property `lineItems`
# @return [Array<Google::Apis::AndroidpublisherV3::SubscriptionPurchaseLineItem>]
attr_accessor :line_items
# The purchase token of the old subscription if this subscription is one of the
# following: * Re-signup of a canceled but non-lapsed subscription * Upgrade/
# downgrade from a previous subscription. * Convert from prepaid to auto
# renewing subscription. * Convert from an auto renewing subscription to prepaid.
# * Topup a prepaid subscription.
# Corresponds to the JSON property `linkedPurchaseToken`
# @return [String]
attr_accessor :linked_purchase_token
# Information specific to a subscription in paused state.
# Corresponds to the JSON property `pausedStateContext`
# @return [Google::Apis::AndroidpublisherV3::PausedStateContext]
attr_accessor :paused_state_context
# ISO 3166-1 alpha-2 billing country/region code of the user at the time the
# subscription was granted.
# Corresponds to the JSON property `regionCode`
# @return [String]
attr_accessor :region_code
# Time at which the subscription was granted. Not set for pending subscriptions (
# subscription was created but awaiting payment during signup).
# Corresponds to the JSON property `startTime`
# @return [String]
attr_accessor :start_time
# Information associated with purchases made with 'Subscribe with Google'.
# Corresponds to the JSON property `subscribeWithGoogleInfo`
# @return [Google::Apis::AndroidpublisherV3::SubscribeWithGoogleInfo]
attr_accessor :subscribe_with_google_info
# The current state of the subscription.
# Corresponds to the JSON property `subscriptionState`
# @return [String]
attr_accessor :subscription_state
# Whether this subscription purchase is a test purchase.
# Corresponds to the JSON property `testPurchase`
# @return [Google::Apis::AndroidpublisherV3::TestPurchase]
attr_accessor :test_purchase
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@acknowledgement_state = args[:acknowledgement_state] if args.key?(:acknowledgement_state)
@canceled_state_context = args[:canceled_state_context] if args.key?(:canceled_state_context)
@external_account_identifiers = args[:external_account_identifiers] if args.key?(:external_account_identifiers)
@kind = args[:kind] if args.key?(:kind)
@latest_order_id = args[:latest_order_id] if args.key?(:latest_order_id)
@line_items = args[:line_items] if args.key?(:line_items)
@linked_purchase_token = args[:linked_purchase_token] if args.key?(:linked_purchase_token)
@paused_state_context = args[:paused_state_context] if args.key?(:paused_state_context)
@region_code = args[:region_code] if args.key?(:region_code)
@start_time = args[:start_time] if args.key?(:start_time)
@subscribe_with_google_info = args[:subscribe_with_google_info] if args.key?(:subscribe_with_google_info)
@subscription_state = args[:subscription_state] if args.key?(:subscription_state)
@test_purchase = args[:test_purchase] if args.key?(:test_purchase)
end
end
# Request for the purchases.subscriptions.acknowledge API.
class SubscriptionPurchasesAcknowledgeRequest
include Google::Apis::Core::Hashable
# Payload to attach to the purchase.
# Corresponds to the JSON property `developerPayload`
# @return [String]
attr_accessor :developer_payload
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@developer_payload = args[:developer_payload] if args.key?(:developer_payload)
end
end
# Request for the purchases.subscriptions.defer API.
class SubscriptionPurchasesDeferRequest
include Google::Apis::Core::Hashable
# A SubscriptionDeferralInfo contains the data needed to defer a subscription
# purchase to a future expiry time.
# Corresponds to the JSON property `deferralInfo`
# @return [Google::Apis::AndroidpublisherV3::SubscriptionDeferralInfo]
attr_accessor :deferral_info
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@deferral_info = args[:deferral_info] if args.key?(:deferral_info)
end
end
# Response for the purchases.subscriptions.defer API.
class SubscriptionPurchasesDeferResponse
include Google::Apis::Core::Hashable
# The new expiry time for the subscription in milliseconds since the Epoch.
# Corresponds to the JSON property `newExpiryTimeMillis`
# @return [Fixnum]
attr_accessor :new_expiry_time_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@new_expiry_time_millis = args[:new_expiry_time_millis] if args.key?(:new_expiry_time_millis)
end
end
# Details about taxation, Google Play policy and legal compliance for
# subscription products.
class SubscriptionTaxAndComplianceSettings
include Google::Apis::Core::Hashable
# Digital content or service classification for products distributed to users in
# the European Economic Area (EEA). The withdrawal regime under EEA consumer
# laws depends on this classification. Refer to the [Help Center article](https:/
# /support.google.com/googleplay/android-developer/answer/10463498) for more
# information.
# Corresponds to the JSON property `eeaWithdrawalRightType`
# @return [String]
attr_accessor :eea_withdrawal_right_type
# A mapping from region code to tax rate details. The keys are region codes as
# defined by Unicode's "CLDR".
# Corresponds to the JSON property `taxRateInfoByRegionCode`
# @return [Hash<String,Google::Apis::AndroidpublisherV3::RegionalTaxRateInfo>]
attr_accessor :tax_rate_info_by_region_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@eea_withdrawal_right_type = args[:eea_withdrawal_right_type] if args.key?(:eea_withdrawal_right_type)
@tax_rate_info_by_region_code = args[:tax_rate_info_by_region_code] if args.key?(:tax_rate_info_by_region_code)
end
end
# Response to list previously created system APK variants.
class SystemApksListResponse
include Google::Apis::Core::Hashable
# All system APK variants created.
# Corresponds to the JSON property `variants`
# @return [Array<Google::Apis::AndroidpublisherV3::Variant>]
attr_accessor :variants
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@variants = args[:variants] if args.key?(:variants)
end
end
# Representation of a system feature.
class SystemFeature
include Google::Apis::Core::Hashable
# The name of the feature.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@name = args[:name] if args.key?(:name)
end
end
# Information specific to cancellations initiated by Google system.
class SystemInitiatedCancellation
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# Defines the scope of subscriptions which a targeting rule can match to target
# offers to users based on past or current entitlement.
class TargetingRuleScope
include Google::Apis::Core::Hashable
# The scope of the current targeting rule is the subscription with the specified
# subscription ID. Must be a subscription within the same parent app.
# Corresponds to the JSON property `specificSubscriptionInApp`
# @return [String]
attr_accessor :specific_subscription_in_app
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@specific_subscription_in_app = args[:specific_subscription_in_app] if args.key?(:specific_subscription_in_app)
end
end
# Whether this subscription purchase is a test purchase.
class TestPurchase
include Google::Apis::Core::Hashable
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
end
end
# The testers of an app. The resource for TestersService. Note: while it is
# possible in the Play Console UI to add testers via email lists, email lists
# are not supported by this resource.
class Testers
include Google::Apis::Core::Hashable
# All testing Google Groups, as email addresses.
# Corresponds to the JSON property `googleGroups`
# @return [Array<String>]
attr_accessor :google_groups
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@google_groups = args[:google_groups] if args.key?(:google_groups)
end
end
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970.
class Timestamp
include Google::Apis::Core::Hashable
# Non-negative fractions of a second at nanosecond resolution. Must be from 0 to
# 999,999,999 inclusive.
# Corresponds to the JSON property `nanos`
# @return [Fixnum]
attr_accessor :nanos
# Represents seconds of UTC time since Unix epoch.
# Corresponds to the JSON property `seconds`
# @return [Fixnum]
attr_accessor :seconds
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@nanos = args[:nanos] if args.key?(:nanos)
@seconds = args[:seconds] if args.key?(:seconds)
end
end
# Pagination information returned by a List operation when token pagination is
# enabled. List operations that supports paging return only one "page" of
# results. This protocol buffer message describes the page that has been
# returned. When using token pagination, clients should use the next/previous
# token to get another page of the result. The presence or absence of next/
# previous token indicates whether a next/previous page is available and
# provides a mean of accessing this page. ListRequest.page_token should be set
# to either next_page_token or previous_page_token to access another page.
class TokenPagination
include Google::Apis::Core::Hashable
# Tokens to pass to the standard list field 'page_token'. Whenever available,
# tokens are preferred over manipulating start_index.
# Corresponds to the JSON property `nextPageToken`
# @return [String]
attr_accessor :next_page_token
#
# Corresponds to the JSON property `previousPageToken`
# @return [String]
attr_accessor :previous_page_token
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@next_page_token = args[:next_page_token] if args.key?(:next_page_token)
@previous_page_token = args[:previous_page_token] if args.key?(:previous_page_token)
end
end
# A track configuration. The resource for TracksService.
class Track
include Google::Apis::Core::Hashable
# In a read request, represents all active releases in the track. In an update
# request, represents desired changes.
# Corresponds to the JSON property `releases`
# @return [Array<Google::Apis::AndroidpublisherV3::TrackRelease>]
attr_accessor :releases
# Identifier of the track.
# Corresponds to the JSON property `track`
# @return [String]
attr_accessor :track
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@releases = args[:releases] if args.key?(:releases)
@track = args[:track] if args.key?(:track)
end
end
# Resource for per-track country availability information.
class TrackCountryAvailability
include Google::Apis::Core::Hashable
# A list of one or more countries where artifacts in this track are available.
# This list includes all countries that are targeted by the track, even if only
# specific carriers are targeted in that country.
# Corresponds to the JSON property `countries`
# @return [Array<Google::Apis::AndroidpublisherV3::TrackTargetedCountry>]
attr_accessor :countries
# Whether artifacts in this track are available to "rest of the world" countries.
# Corresponds to the JSON property `restOfWorld`
# @return [Boolean]
attr_accessor :rest_of_world
alias_method :rest_of_world?, :rest_of_world
# Whether this track's availability is synced with the default production track.
# See https://support.google.com/googleplay/android-developer/answer/7550024 for
# more information on syncing country availability with production. Note that if
# this is true, the returned "countries" and "rest_of_world" fields will reflect
# the values for the default production track.
# Corresponds to the JSON property `syncWithProduction`
# @return [Boolean]
attr_accessor :sync_with_production
alias_method :sync_with_production?, :sync_with_production
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@countries = args[:countries] if args.key?(:countries)
@rest_of_world = args[:rest_of_world] if args.key?(:rest_of_world)
@sync_with_production = args[:sync_with_production] if args.key?(:sync_with_production)
end
end
# A release within a track.
class TrackRelease
include Google::Apis::Core::Hashable
# Country targeting specification.
# Corresponds to the JSON property `countryTargeting`
# @return [Google::Apis::AndroidpublisherV3::CountryTargeting]
attr_accessor :country_targeting
# In-app update priority of the release. All newly added APKs in the release
# will be considered at this priority. Can take values in the range [0, 5], with
# 5 the highest priority. Defaults to 0. in_app_update_priority can not be
# updated once the release is rolled out. See https://developer.android.com/
# guide/playcore/in-app-updates.
# Corresponds to the JSON property `inAppUpdatePriority`
# @return [Fixnum]
attr_accessor :in_app_update_priority
# The release name. Not required to be unique. If not set, the name is generated
# from the APK's version_name. If the release contains multiple APKs, the name
# is generated from the date.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# A description of what is new in this release.
# Corresponds to the JSON property `releaseNotes`
# @return [Array<Google::Apis::AndroidpublisherV3::LocalizedText>]
attr_accessor :release_notes
# The status of the release.
# Corresponds to the JSON property `status`
# @return [String]
attr_accessor :status
# Fraction of users who are eligible for a staged release. 0 < fraction < 1. Can
# only be set when status is "inProgress" or "halted".
# Corresponds to the JSON property `userFraction`
# @return [Float]
attr_accessor :user_fraction
# Version codes of all APKs in the release. Must include version codes to retain
# from previous releases.
# Corresponds to the JSON property `versionCodes`
# @return [Array<Fixnum>]
attr_accessor :version_codes
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country_targeting = args[:country_targeting] if args.key?(:country_targeting)
@in_app_update_priority = args[:in_app_update_priority] if args.key?(:in_app_update_priority)
@name = args[:name] if args.key?(:name)
@release_notes = args[:release_notes] if args.key?(:release_notes)
@status = args[:status] if args.key?(:status)
@user_fraction = args[:user_fraction] if args.key?(:user_fraction)
@version_codes = args[:version_codes] if args.key?(:version_codes)
end
end
# Representation of a single country where the contents of a track are available.
class TrackTargetedCountry
include Google::Apis::Core::Hashable
# The country to target, as a two-letter CLDR code.
# Corresponds to the JSON property `countryCode`
# @return [String]
attr_accessor :country_code
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country_code = args[:country_code] if args.key?(:country_code)
end
end
# Response listing all tracks.
class TracksListResponse
include Google::Apis::Core::Hashable
# The kind of this response ("androidpublisher#tracksListResponse").
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# All tracks.
# Corresponds to the JSON property `tracks`
# @return [Array<Google::Apis::AndroidpublisherV3::Track>]
attr_accessor :tracks
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@tracks = args[:tracks] if args.key?(:tracks)
end
end
# Represents a targeting rule of the form: User currently has `scope` [with
# billing period `billing_period`].
class UpgradeTargetingRule
include Google::Apis::Core::Hashable
# The specific billing period duration, specified in ISO 8601 format, that a
# user must be currently subscribed to to be eligible for this rule. If not
# specified, users subscribed to any billing period are matched.
# Corresponds to the JSON property `billingPeriodDuration`
# @return [String]
attr_accessor :billing_period_duration
# Limit this offer to only once per user. If set to true, a user can never be
# eligible for this offer again if they ever subscribed to this offer.
# Corresponds to the JSON property `oncePerUser`
# @return [Boolean]
attr_accessor :once_per_user
alias_method :once_per_user?, :once_per_user
# Defines the scope of subscriptions which a targeting rule can match to target
# offers to users based on past or current entitlement.
# Corresponds to the JSON property `scope`
# @return [Google::Apis::AndroidpublisherV3::TargetingRuleScope]
attr_accessor :scope
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@billing_period_duration = args[:billing_period_duration] if args.key?(:billing_period_duration)
@once_per_user = args[:once_per_user] if args.key?(:once_per_user)
@scope = args[:scope] if args.key?(:scope)
end
end
# A user resource.
class User
include Google::Apis::Core::Hashable
# Output only. The state of the user's access to the Play Console.
# Corresponds to the JSON property `accessState`
# @return [String]
attr_accessor :access_state
# Permissions for the user which apply across the developer account.
# Corresponds to the JSON property `developerAccountPermissions`
# @return [Array<String>]
attr_accessor :developer_account_permissions
# Immutable. The user's email address.
# Corresponds to the JSON property `email`
# @return [String]
attr_accessor :email
# The time at which the user's access expires, if set. When setting this value,
# it must always be in the future.
# Corresponds to the JSON property `expirationTime`
# @return [String]
attr_accessor :expiration_time
# Output only. Per-app permissions for the user.
# Corresponds to the JSON property `grants`
# @return [Array<Google::Apis::AndroidpublisherV3::Grant>]
attr_accessor :grants
# Required. Resource name for this user, following the pattern "developers/`
# developer`/users/`email`".
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
# Output only. Whether there are more permissions for the user that are not
# represented here. This can happen if the caller does not have permission to
# manage all apps in the account. This is also `true` if this user is the
# account owner. If this field is `true`, it should be taken as a signal that
# this user cannot be fully managed via the API. That is, the API caller is not
# be able to manage all of the permissions this user holds, either because it
# doesn't know about them or because the user is the account owner.
# Corresponds to the JSON property `partial`
# @return [Boolean]
attr_accessor :partial
alias_method :partial?, :partial
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@access_state = args[:access_state] if args.key?(:access_state)
@developer_account_permissions = args[:developer_account_permissions] if args.key?(:developer_account_permissions)
@email = args[:email] if args.key?(:email)
@expiration_time = args[:expiration_time] if args.key?(:expiration_time)
@grants = args[:grants] if args.key?(:grants)
@name = args[:name] if args.key?(:name)
@partial = args[:partial] if args.key?(:partial)
end
end
# User entry from conversation between user and developer.
class UserComment
include Google::Apis::Core::Hashable
# Integer Android SDK version of the user's device at the time the review was
# written, e.g. 23 is Marshmallow. May be absent.
# Corresponds to the JSON property `androidOsVersion`
# @return [Fixnum]
attr_accessor :android_os_version
# Integer version code of the app as installed at the time the review was
# written. May be absent.
# Corresponds to the JSON property `appVersionCode`
# @return [Fixnum]
attr_accessor :app_version_code
# String version name of the app as installed at the time the review was written.
# May be absent.
# Corresponds to the JSON property `appVersionName`
# @return [String]
attr_accessor :app_version_name
# Codename for the reviewer's device, e.g. klte, flounder. May be absent.
# Corresponds to the JSON property `device`
# @return [String]
attr_accessor :device
# Characteristics of the user's device.
# Corresponds to the JSON property `deviceMetadata`
# @return [Google::Apis::AndroidpublisherV3::DeviceMetadata]
attr_accessor :device_metadata
# A Timestamp represents a point in time independent of any time zone or local
# calendar, encoded as a count of seconds and fractions of seconds at nanosecond
# resolution. The count is relative to an epoch at UTC midnight on January 1,
# 1970.
# Corresponds to the JSON property `lastModified`
# @return [Google::Apis::AndroidpublisherV3::Timestamp]
attr_accessor :last_modified
# Untranslated text of the review, where the review was translated. If the
# review was not translated this is left blank.
# Corresponds to the JSON property `originalText`
# @return [String]
attr_accessor :original_text
# Language code for the reviewer. This is taken from the device settings so is
# not guaranteed to match the language the review is written in. May be absent.
# Corresponds to the JSON property `reviewerLanguage`
# @return [String]
attr_accessor :reviewer_language
# The star rating associated with the review, from 1 to 5.
# Corresponds to the JSON property `starRating`
# @return [Fixnum]
attr_accessor :star_rating
# The content of the comment, i.e. review body. In some cases users have been
# able to write a review with separate title and body; in those cases the title
# and body are concatenated and separated by a tab character.
# Corresponds to the JSON property `text`
# @return [String]
attr_accessor :text
# Number of users who have given this review a thumbs down.
# Corresponds to the JSON property `thumbsDownCount`
# @return [Fixnum]
attr_accessor :thumbs_down_count
# Number of users who have given this review a thumbs up.
# Corresponds to the JSON property `thumbsUpCount`
# @return [Fixnum]
attr_accessor :thumbs_up_count
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@android_os_version = args[:android_os_version] if args.key?(:android_os_version)
@app_version_code = args[:app_version_code] if args.key?(:app_version_code)
@app_version_name = args[:app_version_name] if args.key?(:app_version_name)
@device = args[:device] if args.key?(:device)
@device_metadata = args[:device_metadata] if args.key?(:device_metadata)
@last_modified = args[:last_modified] if args.key?(:last_modified)
@original_text = args[:original_text] if args.key?(:original_text)
@reviewer_language = args[:reviewer_language] if args.key?(:reviewer_language)
@star_rating = args[:star_rating] if args.key?(:star_rating)
@text = args[:text] if args.key?(:text)
@thumbs_down_count = args[:thumbs_down_count] if args.key?(:thumbs_down_count)
@thumbs_up_count = args[:thumbs_up_count] if args.key?(:thumbs_up_count)
end
end
# A set of user countries. A country set determines what variation of app
# content gets served to a specific location.
class UserCountrySet
include Google::Apis::Core::Hashable
# List of country codes representing countries. A Country code is represented in
# ISO 3166 alpha-2 format. For Example:- "IT" for Italy, "GE" for Georgia.
# Corresponds to the JSON property `countryCodes`
# @return [Array<String>]
attr_accessor :country_codes
# Country set name.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@country_codes = args[:country_codes] if args.key?(:country_codes)
@name = args[:name] if args.key?(:name)
end
end
# Information specific to cancellations initiated by users.
class UserInitiatedCancellation
include Google::Apis::Core::Hashable
# Result of the cancel survey when the subscription was canceled by the user.
# Corresponds to the JSON property `cancelSurveyResult`
# @return [Google::Apis::AndroidpublisherV3::CancelSurveyResult]
attr_accessor :cancel_survey_result
# The time at which the subscription was canceled by the user. The user might
# still have access to the subscription after this time. Use line_items.
# expiry_time to determine if a user still has access.
# Corresponds to the JSON property `cancelTime`
# @return [String]
attr_accessor :cancel_time
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@cancel_survey_result = args[:cancel_survey_result] if args.key?(:cancel_survey_result)
@cancel_time = args[:cancel_time] if args.key?(:cancel_time)
end
end
# A permission used by this APK.
class UsesPermission
include Google::Apis::Core::Hashable
# Optionally, the maximum SDK version for which the permission is required.
# Corresponds to the JSON property `maxSdkVersion`
# @return [Fixnum]
attr_accessor :max_sdk_version
# The name of the permission requested.
# Corresponds to the JSON property `name`
# @return [String]
attr_accessor :name
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@max_sdk_version = args[:max_sdk_version] if args.key?(:max_sdk_version)
@name = args[:name] if args.key?(:name)
end
end
# APK that is suitable for inclusion in a system image. The resource of
# SystemApksService.
class Variant
include Google::Apis::Core::Hashable
# The device spec used to generate a system APK.
# Corresponds to the JSON property `deviceSpec`
# @return [Google::Apis::AndroidpublisherV3::DeviceSpec]
attr_accessor :device_spec
# Output only. The ID of a previously created system APK variant.
# Corresponds to the JSON property `variantId`
# @return [Fixnum]
attr_accessor :variant_id
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@device_spec = args[:device_spec] if args.key?(:device_spec)
@variant_id = args[:variant_id] if args.key?(:variant_id)
end
end
# A VoidedPurchase resource indicates a purchase that was either canceled/
# refunded/charged-back.
class VoidedPurchase
include Google::Apis::Core::Hashable
# This kind represents a voided purchase object in the androidpublisher service.
# Corresponds to the JSON property `kind`
# @return [String]
attr_accessor :kind
# The order id which uniquely identifies a one-time purchase, subscription
# purchase, or subscription renewal.
# Corresponds to the JSON property `orderId`
# @return [String]
attr_accessor :order_id
# The time at which the purchase was made, in milliseconds since the epoch (Jan
# 1, 1970).
# Corresponds to the JSON property `purchaseTimeMillis`
# @return [Fixnum]
attr_accessor :purchase_time_millis
# The token which uniquely identifies a one-time purchase or subscription. To
# uniquely identify subscription renewals use order_id (available starting from
# version 3 of the API).
# Corresponds to the JSON property `purchaseToken`
# @return [String]
attr_accessor :purchase_token
# The reason why the purchase was voided, possible values are: 0. Other 1.
# Remorse 2. Not_received 3. Defective 4. Accidental_purchase 5. Fraud 6.
# Friendly_fraud 7. Chargeback
# Corresponds to the JSON property `voidedReason`
# @return [Fixnum]
attr_accessor :voided_reason
# The initiator of voided purchase, possible values are: 0. User 1. Developer 2.
# Google
# Corresponds to the JSON property `voidedSource`
# @return [Fixnum]
attr_accessor :voided_source
# The time at which the purchase was canceled/refunded/charged-back, in
# milliseconds since the epoch (Jan 1, 1970).
# Corresponds to the JSON property `voidedTimeMillis`
# @return [Fixnum]
attr_accessor :voided_time_millis
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@kind = args[:kind] if args.key?(:kind)
@order_id = args[:order_id] if args.key?(:order_id)
@purchase_time_millis = args[:purchase_time_millis] if args.key?(:purchase_time_millis)
@purchase_token = args[:purchase_token] if args.key?(:purchase_token)
@voided_reason = args[:voided_reason] if args.key?(:voided_reason)
@voided_source = args[:voided_source] if args.key?(:voided_source)
@voided_time_millis = args[:voided_time_millis] if args.key?(:voided_time_millis)
end
end
# Response for the voidedpurchases.list API.
class VoidedPurchasesListResponse
include Google::Apis::Core::Hashable
# Information about the current page. List operations that supports paging
# return only one "page" of results. This protocol buffer message describes the
# page that has been returned.
# Corresponds to the JSON property `pageInfo`
# @return [Google::Apis::AndroidpublisherV3::PageInfo]
attr_accessor :page_info
# Pagination information returned by a List operation when token pagination is
# enabled. List operations that supports paging return only one "page" of
# results. This protocol buffer message describes the page that has been
# returned. When using token pagination, clients should use the next/previous
# token to get another page of the result. The presence or absence of next/
# previous token indicates whether a next/previous page is available and
# provides a mean of accessing this page. ListRequest.page_token should be set
# to either next_page_token or previous_page_token to access another page.
# Corresponds to the JSON property `tokenPagination`
# @return [Google::Apis::AndroidpublisherV3::TokenPagination]
attr_accessor :token_pagination
#
# Corresponds to the JSON property `voidedPurchases`
# @return [Array<Google::Apis::AndroidpublisherV3::VoidedPurchase>]
attr_accessor :voided_purchases
def initialize(**args)
update!(**args)
end
# Update properties of this object
def update!(**args)
@page_info = args[:page_info] if args.key?(:page_info)
@token_pagination = args[:token_pagination] if args.key?(:token_pagination)
@voided_purchases = args[:voided_purchases] if args.key?(:voided_purchases)
end
end
end
end
end
|