Class: Stigg::Models::V1::ContractCreateParams::Subscription
- Inherits:
-
Internal::Type::BaseModel
- Object
- Internal::Type::BaseModel
- Stigg::Models::V1::ContractCreateParams::Subscription
- Defined in:
- lib/stigg/models/v1/contract_create_params.rb,
sig/stigg/models/v1/contract_create_params.rbs
Defined Under Namespace
Classes: NewSubscription
Instance Attribute Summary collapse
-
#existing_subscription_id ⇒ String?
The subscription ref ID of an already-created custom subscription to link.
-
#new_subscription ⇒ Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription?
A new subscription to create, using the same body the provision-subscription endpoint accepts.
Instance Method Summary collapse
-
#initialize(existing_subscription_id: nil, new_subscription: nil) ⇒ Object
constructor
Some parameter documentations has been truncated, see Subscription for more details.
- #to_hash ⇒ {
Methods inherited from Internal::Type::BaseModel
==, #==, #[], coerce, #deconstruct_keys, #deep_to_h, dump, fields, hash, #hash, inherited, inspect, #inspect, known_fields, optional, recursively_to_h, required, #to_h, #to_json, #to_s, to_sorbet_type, #to_yaml
Methods included from Internal::Type::Converter
#coerce, coerce, #dump, dump, #inspect, inspect, meta_info, new_coerce_state, type_info
Methods included from Internal::Util::SorbetRuntimeSupport
#const_missing, #define_sorbet_constant!, #sorbet_constant_defined?, #to_sorbet_type, to_sorbet_type
Constructor Details
#initialize(existing_subscription_id: nil, new_subscription: nil) ⇒ Object
Some parameter documentations has been truncated, see Stigg::Models::V1::ContractCreateParams::Subscription for more details.
A single subscription on a contract: exactly one of newSubscription or existingSubscriptionId must be set.
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 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 92 class Subscription < Stigg::Internal::Type::BaseModel # @!attribute existing_subscription_id # The subscription ref ID of an already-created custom subscription to link # # @return [String, nil] optional :existing_subscription_id, String, api_name: :existingSubscriptionId # @!attribute new_subscription # A new subscription to create, using the same body the provision-subscription # endpoint accepts # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription, nil] optional :new_subscription, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription }, api_name: :newSubscription # @!method initialize(existing_subscription_id: nil, new_subscription: nil) # Some parameter documentations has been truncated, see # {Stigg::Models::V1::ContractCreateParams::Subscription} for more details. # # A single subscription on a contract: exactly one of newSubscription or # existingSubscriptionId must be set. # # @param existing_subscription_id [String] The subscription ref ID of an already-created custom subscription to link # # @param new_subscription [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription] A new subscription to create, using the same body the provision-subscription end # @see Stigg::Models::V1::ContractCreateParams::Subscription#new_subscription class NewSubscription < Stigg::Internal::Type::BaseModel # @!attribute customer_id # Customer ID to provision the subscription for # # @return [String] required :customer_id, String, api_name: :customerId # @!attribute plan_id # Plan ID to provision # # @return [String] required :plan_id, String, api_name: :planId # @!attribute id # Unique identifier for the subscription # # @return [String, nil] optional :id, String # @!attribute addons # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Addon>, nil] optional :addons, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Addon] } # @!attribute applied_coupon # Coupon configuration # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon, nil] optional :applied_coupon, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon }, api_name: :appliedCoupon # @!attribute await_payment_confirmation # Whether to wait for payment confirmation before returning the subscription # # @return [Boolean, nil] optional :await_payment_confirmation, Stigg::Internal::Type::Boolean, api_name: :awaitPaymentConfirmation # @!attribute billing_country_code # The ISO 3166-1 alpha-2 country code for billing # # @return [String, nil] optional :billing_country_code, String, api_name: :billingCountryCode, nil?: true # @!attribute billing_cycle_anchor # Billing cycle anchor behavior for the subscription # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingCycleAnchor, nil] optional :billing_cycle_anchor, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingCycleAnchor }, api_name: :billingCycleAnchor # @!attribute billing_id # External billing system identifier # # @return [String, nil] optional :billing_id, String, api_name: :billingId, nil?: true # @!attribute billing_information # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation, nil] optional :billing_information, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation }, api_name: :billingInformation # @!attribute billing_period # Billing period (MONTHLY or ANNUALLY) # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingPeriod, nil] optional :billing_period, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingPeriod }, api_name: :billingPeriod # @!attribute budget # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Budget, nil] optional :budget, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Budget }, nil?: true # @!attribute cancellation_date # Subscription cancellation date # # @return [Time, nil] optional :cancellation_date, Time, api_name: :cancellationDate # @!attribute charges # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Charge>, nil] optional :charges, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Charge] } # @!attribute checkout_options # Checkout page configuration for payment collection # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::CheckoutOptions, nil] optional :checkout_options, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::CheckoutOptions }, api_name: :checkoutOptions # @!attribute entitlements # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit>, nil] optional :entitlements, -> { Stigg::Internal::Type::ArrayOf[union: Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement] } # @!attribute metadata # Additional metadata for the subscription # # @return [Hash{Symbol=>String}, nil] optional :metadata, Stigg::Internal::Type::HashOf[String] # @!attribute minimum_spend # Minimum spend amount # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend, nil] optional :minimum_spend, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend }, api_name: :minimumSpend, nil?: true # @!attribute paying_customer_id # Optional paying customer ID for split billing scenarios # # @return [String, nil] optional :paying_customer_id, String, api_name: :payingCustomerId, nil?: true # @!attribute payment_collection_method # How payments should be collected for this subscription # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PaymentCollectionMethod, nil] optional :payment_collection_method, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PaymentCollectionMethod }, api_name: :paymentCollectionMethod # @!attribute price_overrides # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride>, nil] optional :price_overrides, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride] }, api_name: :priceOverrides # @!attribute resource_id # Optional resource ID for multi-instance subscriptions # # @return [String, nil] optional :resource_id, String, api_name: :resourceId, nil?: true # @!attribute salesforce_id # Salesforce ID # # @return [String, nil] optional :salesforce_id, String, api_name: :salesforceId, nil?: true # @!attribute schedule_strategy # Strategy for scheduling subscription changes # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::ScheduleStrategy, nil] optional :schedule_strategy, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::ScheduleStrategy }, api_name: :scheduleStrategy # @!attribute start_date # Subscription start date # # @return [Time, nil] optional :start_date, Time, api_name: :startDate # @!attribute trial_override_configuration # Trial period override settings # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration, nil] optional :trial_override_configuration, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration }, api_name: :trialOverrideConfiguration # @!attribute unit_quantity # Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed). # # @return [Integer, nil] optional :unit_quantity, Integer, api_name: :unitQuantity # @!method initialize(customer_id:, plan_id:, id: nil, addons: nil, applied_coupon: nil, await_payment_confirmation: nil, billing_country_code: nil, billing_cycle_anchor: nil, billing_id: nil, billing_information: nil, billing_period: nil, budget: nil, cancellation_date: nil, charges: nil, checkout_options: nil, entitlements: nil, metadata: nil, minimum_spend: nil, paying_customer_id: nil, payment_collection_method: nil, price_overrides: nil, resource_id: nil, salesforce_id: nil, schedule_strategy: nil, start_date: nil, trial_override_configuration: nil, unit_quantity: nil) # A new subscription to create, using the same body the provision-subscription # endpoint accepts # # @param customer_id [String] Customer ID to provision the subscription for # # @param plan_id [String] Plan ID to provision # # @param id [String] Unique identifier for the subscription # # @param addons [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Addon>] # # @param applied_coupon [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon] Coupon configuration # # @param await_payment_confirmation [Boolean] Whether to wait for payment confirmation before returning the subscription # # @param billing_country_code [String, nil] The ISO 3166-1 alpha-2 country code for billing # # @param billing_cycle_anchor [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingCycleAnchor] Billing cycle anchor behavior for the subscription # # @param billing_id [String, nil] External billing system identifier # # @param billing_information [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation] # # @param billing_period [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingPeriod] Billing period (MONTHLY or ANNUALLY) # # @param budget [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Budget, nil] # # @param cancellation_date [Time] Subscription cancellation date # # @param charges [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Charge>] # # @param checkout_options [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::CheckoutOptions] Checkout page configuration for payment collection # # @param entitlements [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit>] # # @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription # # @param minimum_spend [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend, nil] Minimum spend amount # # @param paying_customer_id [String, nil] Optional paying customer ID for split billing scenarios # # @param payment_collection_method [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PaymentCollectionMethod] How payments should be collected for this subscription # # @param price_overrides [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride>] # # @param resource_id [String, nil] Optional resource ID for multi-instance subscriptions # # @param salesforce_id [String, nil] Salesforce ID # # @param schedule_strategy [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::ScheduleStrategy] Strategy for scheduling subscription changes # # @param start_date [Time] Subscription start date # # @param trial_override_configuration [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration] Trial period override settings # # @param unit_quantity [Integer] Unit quantity for per-unit pricing. Minimum is 0 (zero is allowed). class Addon < Stigg::Internal::Type::BaseModel # @!attribute id # Addon ID # # @return [String] required :id, String # @!attribute quantity # Number of addon instances # # @return [Integer] required :quantity, Integer # @!method initialize(id:, quantity:) # Addon configuration # # @param id [String] Addon ID # # @param quantity [Integer] Number of addon instances end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#applied_coupon class AppliedCoupon < Stigg::Internal::Type::BaseModel # @!attribute billing_coupon_id # Billing provider coupon ID # # @return [String, nil] optional :billing_coupon_id, String, api_name: :billingCouponId # @!attribute configuration # Coupon timing configuration # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Configuration, nil] optional :configuration, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Configuration } # @!attribute coupon_id # Stigg coupon ID # # @return [String, nil] optional :coupon_id, String, api_name: :couponId # @!attribute discount # Ad-hoc discount configuration # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount, nil] optional :discount, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount } # @!attribute promotion_code # Promotion code to apply # # @return [String, nil] optional :promotion_code, String, api_name: :promotionCode # @!method initialize(billing_coupon_id: nil, configuration: nil, coupon_id: nil, discount: nil, promotion_code: nil) # Coupon configuration # # @param billing_coupon_id [String] Billing provider coupon ID # # @param configuration [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Configuration] Coupon timing configuration # # @param coupon_id [String] Stigg coupon ID # # @param discount [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount] Ad-hoc discount configuration # # @param promotion_code [String] Promotion code to apply # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon#configuration class Configuration < Stigg::Internal::Type::BaseModel # @!attribute start_date # Coupon start date # # @return [Time, nil] optional :start_date, Time, api_name: :startDate # @!method initialize(start_date: nil) # Coupon timing configuration # # @param start_date [Time] Coupon start date end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon#discount class Discount < Stigg::Internal::Type::BaseModel # @!attribute amounts_off # Fixed amounts off by currency # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff>, nil] optional :amounts_off, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff] }, api_name: :amountsOff, nil?: true # @!attribute description # Ad-hoc discount # # @return [String, nil] optional :description, String # @!attribute duration_in_months # Duration in months # # @return [Float, nil] optional :duration_in_months, Float, api_name: :durationInMonths # @!attribute name # Discount name # # @return [String, nil] optional :name, String # @!attribute percent_off # Percentage discount # # @return [Float, nil] optional :percent_off, Float, api_name: :percentOff # @!method initialize(amounts_off: nil, description: nil, duration_in_months: nil, name: nil, percent_off: nil) # Ad-hoc discount configuration # # @param amounts_off [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff>, nil] Fixed amounts off by currency # # @param description [String] Ad-hoc discount # # @param duration_in_months [Float] Duration in months # # @param name [String] Discount name # # @param percent_off [Float] Percentage discount class AmountsOff < Stigg::Internal::Type::BaseModel # @!attribute amount # The price amount # # @return [Float] required :amount, Float # @!attribute currency # ISO 4217 currency code # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency] required :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency } # @!method initialize(amount:, currency:) # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::AppliedCoupon::Discount::AmountsOff#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end end end end # Billing cycle anchor behavior for the subscription # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#billing_cycle_anchor module BillingCycleAnchor extend Stigg::Internal::Type::Enum UNCHANGED = :UNCHANGED NOW = :NOW # @!method self.values # @return [Array<Symbol>] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#billing_information class BillingInformation < Stigg::Internal::Type::BaseModel # @!attribute billing_address # Billing address for the subscription # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::BillingAddress, nil] optional :billing_address, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::BillingAddress }, api_name: :billingAddress # @!attribute charge_on_behalf_of_account # Stripe Connect account to charge on behalf of # # @return [String, nil] optional :charge_on_behalf_of_account, String, api_name: :chargeOnBehalfOfAccount, nil?: true # @!attribute integration_id # Billing integration identifier # # @return [String, nil] optional :integration_id, String, api_name: :integrationId, nil?: true # @!attribute invoice_days_until_due # Number of days until invoice is due # # @return [Float, nil] optional :invoice_days_until_due, Float, api_name: :invoiceDaysUntilDue # @!attribute is_backdated # Whether the subscription is backdated # # @return [Boolean, nil] optional :is_backdated, Stigg::Internal::Type::Boolean, api_name: :isBackdated # @!attribute is_invoice_paid # Whether the invoice is marked as paid # # @return [Boolean, nil] optional :is_invoice_paid, Stigg::Internal::Type::Boolean, api_name: :isInvoicePaid # @!attribute metadata # Additional metadata for the subscription # # @return [Hash{Symbol=>String}, nil] optional :metadata, Stigg::Internal::Type::HashOf[String] # @!attribute proration_behavior # How to handle proration for billing changes # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::ProrationBehavior, nil] optional :proration_behavior, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::ProrationBehavior }, api_name: :prorationBehavior # @!attribute tax_ids # Customer tax identification numbers # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::TaxID>, nil] optional :tax_ids, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::TaxID] }, api_name: :taxIds # @!attribute tax_percentage # Tax percentage (0-100) # # @return [Float, nil] optional :tax_percentage, Float, api_name: :taxPercentage # @!attribute tax_rate_ids # Tax rate identifiers to apply # # @return [Array<String>, nil] optional :tax_rate_ids, Stigg::Internal::Type::ArrayOf[String], api_name: :taxRateIds # @!method initialize(billing_address: nil, charge_on_behalf_of_account: nil, integration_id: nil, invoice_days_until_due: nil, is_backdated: nil, is_invoice_paid: nil, metadata: nil, proration_behavior: nil, tax_ids: nil, tax_percentage: nil, tax_rate_ids: nil) # @param billing_address [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::BillingAddress] Billing address for the subscription # # @param charge_on_behalf_of_account [String, nil] Stripe Connect account to charge on behalf of # # @param integration_id [String, nil] Billing integration identifier # # @param invoice_days_until_due [Float] Number of days until invoice is due # # @param is_backdated [Boolean] Whether the subscription is backdated # # @param is_invoice_paid [Boolean] Whether the invoice is marked as paid # # @param metadata [Hash{Symbol=>String}] Additional metadata for the subscription # # @param proration_behavior [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::ProrationBehavior] How to handle proration for billing changes # # @param tax_ids [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation::TaxID>] Customer tax identification numbers # # @param tax_percentage [Float] Tax percentage (0-100) # # @param tax_rate_ids [Array<String>] Tax rate identifiers to apply # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation#billing_address class BillingAddress < Stigg::Internal::Type::BaseModel # @!attribute city # # @return [String, nil] optional :city, String # @!attribute country # # @return [String, nil] optional :country, String # @!attribute line1 # # @return [String, nil] optional :line1, String # @!attribute line2 # # @return [String, nil] optional :line2, String # @!attribute postal_code # # @return [String, nil] optional :postal_code, String, api_name: :postalCode # @!attribute state # # @return [String, nil] optional :state, String # @!method initialize(city: nil, country: nil, line1: nil, line2: nil, postal_code: nil, state: nil) # Billing address for the subscription # # @param city [String] # @param country [String] # @param line1 [String] # @param line2 [String] # @param postal_code [String] # @param state [String] end # How to handle proration for billing changes # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::BillingInformation#proration_behavior module ProrationBehavior extend Stigg::Internal::Type::Enum INVOICE_IMMEDIATELY = :INVOICE_IMMEDIATELY CREATE_PRORATIONS = :CREATE_PRORATIONS NONE = :NONE # @!method self.values # @return [Array<Symbol>] end class TaxID < Stigg::Internal::Type::BaseModel # @!attribute type # The type of tax exemption identifier, such as VAT. # # @return [String] required :type, String # @!attribute value # The actual tax identifier value # # @return [String] required :value, String # @!method initialize(type:, value:) # Tax identifier with type and value for customer tax exemptions. # # @param type [String] The type of tax exemption identifier, such as VAT. # # @param value [String] The actual tax identifier value end end # Billing period (MONTHLY or ANNUALLY) # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#billing_period module BillingPeriod extend Stigg::Internal::Type::Enum MONTHLY = :MONTHLY ANNUALLY = :ANNUALLY # @!method self.values # @return [Array<Symbol>] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#budget class Budget < Stigg::Internal::Type::BaseModel # @!attribute has_soft_limit # Whether the budget is a soft limit # # @return [Boolean] required :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit # @!attribute limit # Maximum spending limit # # @return [Float] required :limit, Float # @!method initialize(has_soft_limit:, limit:) # @param has_soft_limit [Boolean] Whether the budget is a soft limit # # @param limit [Float] Maximum spending limit end class Charge < Stigg::Internal::Type::BaseModel # @!attribute id # Charge ID # # @return [String] required :id, String # @!attribute quantity # Charge quantity. Minimum is 0 (zero is allowed). # # @return [Float] required :quantity, Float # @!attribute type # Charge type # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Charge::Type] required :type, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Charge::Type } # @!method initialize(id:, quantity:, type:) # A charge selection for a subscription (references a catalog charge with a # quantity). # # @param id [String] Charge ID # # @param quantity [Float] Charge quantity. Minimum is 0 (zero is allowed). # # @param type [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Charge::Type] Charge type # Charge type # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Charge#type module Type extend Stigg::Internal::Type::Enum FEATURE = :FEATURE CREDIT = :CREDIT # @!method self.values # @return [Array<Symbol>] end end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#checkout_options class CheckoutOptions < Stigg::Internal::Type::BaseModel # @!attribute cancel_url # URL to redirect to if checkout is canceled # # @return [String] required :cancel_url, String, api_name: :cancelUrl # @!attribute success_url # URL to redirect to after successful checkout # # @return [String] required :success_url, String, api_name: :successUrl # @!attribute allow_promo_codes # Allow promotional codes during checkout # # @return [Boolean, nil] optional :allow_promo_codes, Stigg::Internal::Type::Boolean, api_name: :allowPromoCodes # @!attribute allow_tax_id_collection # Allow tax ID collection during checkout # # @return [Boolean, nil] optional :allow_tax_id_collection, Stigg::Internal::Type::Boolean, api_name: :allowTaxIdCollection # @!attribute collect_billing_address # Collect billing address during checkout # # @return [Boolean, nil] optional :collect_billing_address, Stigg::Internal::Type::Boolean, api_name: :collectBillingAddress # @!attribute collect_phone_number # Collect phone number during checkout # # @return [Boolean, nil] optional :collect_phone_number, Stigg::Internal::Type::Boolean, api_name: :collectPhoneNumber # @!attribute reference_id # Optional reference ID for the checkout session # # @return [String, nil] optional :reference_id, String, api_name: :referenceId, nil?: true # @!method initialize(cancel_url:, success_url:, allow_promo_codes: nil, allow_tax_id_collection: nil, collect_billing_address: nil, collect_phone_number: nil, reference_id: nil) # Checkout page configuration for payment collection # # @param cancel_url [String] URL to redirect to if checkout is canceled # # @param success_url [String] URL to redirect to after successful checkout # # @param allow_promo_codes [Boolean] Allow promotional codes during checkout # # @param allow_tax_id_collection [Boolean] Allow tax ID collection during checkout # # @param collect_billing_address [Boolean] Collect billing address during checkout # # @param collect_phone_number [Boolean] Collect phone number during checkout # # @param reference_id [String, nil] Optional reference ID for the checkout session end # Feature entitlement configuration for a subscription module Entitlement extend Stigg::Internal::Type::Union discriminator :type # Feature entitlement configuration for a subscription variant :FEATURE, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature } # Credit entitlement configuration for a subscription variant :CREDIT, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit } class Feature < Stigg::Internal::Type::BaseModel # @!attribute id # The feature ID to attach the entitlement to # # @return [String] required :id, String # @!attribute type # SubscriptionFeatureEntitlementRequest # # @return [Symbol, :FEATURE] required :type, const: :FEATURE # @!attribute has_soft_limit # Whether the usage limit is a soft limit # # @return [Boolean, nil] optional :has_soft_limit, Stigg::Internal::Type::Boolean, api_name: :hasSoftLimit # @!attribute has_unlimited_usage # Whether usage is unlimited # # @return [Boolean, nil] optional :has_unlimited_usage, Stigg::Internal::Type::Boolean, api_name: :hasUnlimitedUsage # @!attribute monthly_reset_period_configuration # Configuration for monthly reset period # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration, nil] optional :monthly_reset_period_configuration, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration }, api_name: :monthlyResetPeriodConfiguration, nil?: true # @!attribute reset_period # Period at which usage resets # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::ResetPeriod, nil] optional :reset_period, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::ResetPeriod }, api_name: :resetPeriod # @!attribute usage_limit # Maximum allowed usage for the feature # # @return [Integer, nil] optional :usage_limit, Integer, api_name: :usageLimit # @!attribute weekly_reset_period_configuration # Configuration for weekly reset period # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration, nil] optional :weekly_reset_period_configuration, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration }, api_name: :weeklyResetPeriodConfiguration, nil?: true # @!attribute yearly_reset_period_configuration # Configuration for yearly reset period # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration, nil] optional :yearly_reset_period_configuration, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration }, api_name: :yearlyResetPeriodConfiguration, nil?: true # @!method initialize(id:, has_soft_limit: nil, has_unlimited_usage: nil, monthly_reset_period_configuration: nil, reset_period: nil, usage_limit: nil, weekly_reset_period_configuration: nil, yearly_reset_period_configuration: nil, type: :FEATURE) # Feature entitlement configuration for a subscription # # @param id [String] The feature ID to attach the entitlement to # # @param has_soft_limit [Boolean] Whether the usage limit is a soft limit # # @param has_unlimited_usage [Boolean] Whether usage is unlimited # # @param monthly_reset_period_configuration [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration, nil] Configuration for monthly reset period # # @param reset_period [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::ResetPeriod] Period at which usage resets # # @param usage_limit [Integer] Maximum allowed usage for the feature # # @param weekly_reset_period_configuration [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration, nil] Configuration for weekly reset period # # @param yearly_reset_period_configuration [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration, nil] Configuration for yearly reset period # # @param type [Symbol, :FEATURE] SubscriptionFeatureEntitlementRequest # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature#monthly_reset_period_configuration class MonthlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel # @!attribute according_to # Reset anchor (SubscriptionStart or StartOfTheMonth) # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration::AccordingTo] required :according_to, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration::AccordingTo }, api_name: :accordingTo # @!method initialize(according_to:) # Configuration for monthly reset period # # @param according_to [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or StartOfTheMonth) # Reset anchor (SubscriptionStart or StartOfTheMonth) # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::MonthlyResetPeriodConfiguration#according_to module AccordingTo extend Stigg::Internal::Type::Enum SUBSCRIPTION_START = :SubscriptionStart START_OF_THE_MONTH = :StartOfTheMonth # @!method self.values # @return [Array<Symbol>] end end # Period at which usage resets # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature#reset_period module ResetPeriod extend Stigg::Internal::Type::Enum YEAR = :YEAR MONTH = :MONTH WEEK = :WEEK DAY = :DAY HOUR = :HOUR # @!method self.values # @return [Array<Symbol>] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature#weekly_reset_period_configuration class WeeklyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel # @!attribute according_to # Reset anchor (SubscriptionStart or specific day) # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration::AccordingTo] required :according_to, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration::AccordingTo }, api_name: :accordingTo # @!method initialize(according_to:) # Configuration for weekly reset period # # @param according_to [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart or specific day) # Reset anchor (SubscriptionStart or specific day) # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::WeeklyResetPeriodConfiguration#according_to module AccordingTo extend Stigg::Internal::Type::Enum SUBSCRIPTION_START = :SubscriptionStart EVERY_SUNDAY = :EverySunday EVERY_MONDAY = :EveryMonday EVERY_TUESDAY = :EveryTuesday EVERY_WEDNESDAY = :EveryWednesday EVERY_THURSDAY = :EveryThursday EVERY_FRIDAY = :EveryFriday EVERY_SATURDAY = :EverySaturday # @!method self.values # @return [Array<Symbol>] end end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature#yearly_reset_period_configuration class YearlyResetPeriodConfiguration < Stigg::Internal::Type::BaseModel # @!attribute according_to # Reset anchor (SubscriptionStart) # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration::AccordingTo] required :according_to, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration::AccordingTo }, api_name: :accordingTo # @!method initialize(according_to:) # Configuration for yearly reset period # # @param according_to [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration::AccordingTo] Reset anchor (SubscriptionStart) # Reset anchor (SubscriptionStart) # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature::YearlyResetPeriodConfiguration#according_to module AccordingTo extend Stigg::Internal::Type::Enum SUBSCRIPTION_START = :SubscriptionStart # @!method self.values # @return [Array<Symbol>] end end end class Credit < Stigg::Internal::Type::BaseModel # @!attribute id # The custom currency ID for the credit entitlement # # @return [String] required :id, String # @!attribute amount # Credit grant amount # # @return [Float] required :amount, Float # @!attribute cadence # Credit grant cadence (MONTH or YEAR) # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit::Cadence] required :cadence, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit::Cadence } # @!attribute type # SubscriptionCreditEntitlementRequest # # @return [Symbol, :CREDIT] required :type, const: :CREDIT # @!method initialize(id:, amount:, cadence:, type: :CREDIT) # Credit entitlement configuration for a subscription # # @param id [String] The custom currency ID for the credit entitlement # # @param amount [Float] Credit grant amount # # @param cadence [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit::Cadence] Credit grant cadence (MONTH or YEAR) # # @param type [Symbol, :CREDIT] SubscriptionCreditEntitlementRequest # Credit grant cadence (MONTH or YEAR) # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit#cadence module Cadence extend Stigg::Internal::Type::Enum MONTH = :MONTH YEAR = :YEAR # @!method self.values # @return [Array<Symbol>] end end # @!method self.variants # @return [Array(Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Feature, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::Entitlement::Credit)] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#minimum_spend class MinimumSpend < Stigg::Internal::Type::BaseModel # @!attribute amount # The price amount # # @return [Float, nil] optional :amount, Float # @!attribute currency # The price currency # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend::Currency, nil] optional :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend::Currency } # @!method initialize(amount: nil, currency: nil) # Minimum spend amount # # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend::Currency] The price currency # The price currency # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::MinimumSpend#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end end # How payments should be collected for this subscription # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#payment_collection_method module PaymentCollectionMethod extend Stigg::Internal::Type::Enum CHARGE = :CHARGE INVOICE = :INVOICE NONE = :NONE # @!method self.values # @return [Array<Symbol>] end class PriceOverride < Stigg::Internal::Type::BaseModel # @!attribute addon_id # Addon identifier for the price override # # @return [String, nil] optional :addon_id, String, api_name: :addonId, nil?: true # @!attribute amount # The price amount # # @return [Float, nil] optional :amount, Float # @!attribute base_charge # Whether this is a base charge override # # @return [Boolean, nil] optional :base_charge, Stigg::Internal::Type::Boolean, api_name: :baseCharge # @!attribute billing_country_code # The billing country code of the price # # @return [String, nil] optional :billing_country_code, String, api_name: :billingCountryCode # @!attribute block_size # Block size for pricing # # @return [Float, nil] optional :block_size, Float, api_name: :blockSize # @!attribute credit_grant_cadence # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditGrantCadence, nil] optional :credit_grant_cadence, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditGrantCadence }, api_name: :creditGrantCadence # @!attribute credit_rate # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditRate, nil] optional :credit_rate, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditRate }, api_name: :creditRate # @!attribute currency # The price currency # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Currency, nil] optional :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Currency } # @!attribute feature_id # Feature identifier for the price override # # @return [String, nil] optional :feature_id, String, api_name: :featureId, nil?: true # @!attribute tiers # Pricing tiers configuration # # @return [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier>, nil] optional :tiers, -> { Stigg::Internal::Type::ArrayOf[Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier] } # @!method initialize(addon_id: nil, amount: nil, base_charge: nil, billing_country_code: nil, block_size: nil, credit_grant_cadence: nil, credit_rate: nil, currency: nil, feature_id: nil, tiers: nil) # @param addon_id [String, nil] Addon identifier for the price override # # @param amount [Float] The price amount # # @param base_charge [Boolean] Whether this is a base charge override # # @param billing_country_code [String] The billing country code of the price # # @param block_size [Float] Block size for pricing # # @param credit_grant_cadence [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditGrantCadence] # # @param credit_rate [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::CreditRate] # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Currency] The price currency # # @param feature_id [String, nil] Feature identifier for the price override # # @param tiers [Array<Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier>] Pricing tiers configuration # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride#credit_grant_cadence module CreditGrantCadence extend Stigg::Internal::Type::Enum BEGINNING_OF_BILLING_PERIOD = :BEGINNING_OF_BILLING_PERIOD MONTHLY = :MONTHLY # @!method self.values # @return [Array<Symbol>] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride#credit_rate class CreditRate < Stigg::Internal::Type::BaseModel # @!attribute amount # The credit rate amount # # @return [Float] required :amount, Float # @!attribute currency_id # The custom currency refId for the credit rate # # @return [String] required :currency_id, String, api_name: :currencyId # @!attribute cost_formula # A custom formula for calculating cost based on single event dimensions # # @return [String, nil] optional :cost_formula, String, api_name: :costFormula, nil?: true # @!method initialize(amount:, currency_id:, cost_formula: nil) # @param amount [Float] The credit rate amount # # @param currency_id [String] The custom currency refId for the credit rate # # @param cost_formula [String, nil] A custom formula for calculating cost based on single event dimensions end # The price currency # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end class Tier < Stigg::Internal::Type::BaseModel # @!attribute flat_price # The flat fee price of the price tier # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice, nil] optional :flat_price, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice }, api_name: :flatPrice # @!attribute unit_price # The unit price of the price tier # # @return [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice, nil] optional :unit_price, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice }, api_name: :unitPrice # @!attribute up_to # The up to quantity of the price tier # # @return [Float, nil] optional :up_to, Float, api_name: :upTo # @!method initialize(flat_price: nil, unit_price: nil, up_to: nil) # @param flat_price [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice] The flat fee price of the price tier # # @param unit_price [Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice] The unit price of the price tier # # @param up_to [Float] The up to quantity of the price tier # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier#flat_price class FlatPrice < Stigg::Internal::Type::BaseModel # @!attribute amount # The price amount # # @return [Float] required :amount, Float # @!attribute currency # ISO 4217 currency code # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice::Currency] required :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice::Currency } # @!method initialize(amount:, currency:) # The flat fee price of the price tier # # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::FlatPrice#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier#unit_price class UnitPrice < Stigg::Internal::Type::BaseModel # @!attribute amount # The price amount # # @return [Float] required :amount, Float # @!attribute currency # ISO 4217 currency code # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice::Currency] required :currency, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice::Currency } # @!method initialize(amount:, currency:) # The unit price of the price tier # # @param amount [Float] The price amount # # @param currency [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice::Currency] ISO 4217 currency code # ISO 4217 currency code # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::PriceOverride::Tier::UnitPrice#currency module Currency extend Stigg::Internal::Type::Enum USD = :usd AED = :aed ALL = :all AMD = :amd ANG = :ang AUD = :aud AWG = :awg AZN = :azn BAM = :bam BBD = :bbd BDT = :bdt BGN = :bgn BIF = :bif BMD = :bmd BND = :bnd BSD = :bsd BWP = :bwp BYN = :byn BZD = :bzd BRL = :brl CAD = :cad CDF = :cdf CHF = :chf CNY = :cny CZK = :czk DKK = :dkk DOP = :dop DZD = :dzd EGP = :egp ETB = :etb EUR = :eur FJD = :fjd GBP = :gbp GEL = :gel GIP = :gip GMD = :gmd GYD = :gyd HKD = :hkd HRK = :hrk HTG = :htg IDR = :idr ILS = :ils INR = :inr ISK = :isk JMD = :jmd JPY = :jpy KES = :kes KGS = :kgs KHR = :khr KMF = :kmf KRW = :krw KYD = :kyd KZT = :kzt LBP = :lbp LKR = :lkr LRD = :lrd LSL = :lsl MAD = :mad MDL = :mdl MGA = :mga MKD = :mkd MMK = :mmk MNT = :mnt MOP = :mop MRO = :mro MVR = :mvr MWK = :mwk MXN = :mxn MYR = :myr MZN = :mzn NAD = :nad NGN = :ngn NOK = :nok NPR = :npr NZD = :nzd PGK = :pgk PHP = :php PKR = :pkr PLN = :pln QAR = :qar RON = :ron RSD = :rsd RUB = :rub RWF = :rwf SAR = :sar SBD = :sbd SCR = :scr SEK = :sek SGD = :sgd SLE = :sle SLL = :sll SOS = :sos SZL = :szl THB = :thb TJS = :tjs TOP = :top TRY = :try TTD = :ttd TZS = :tzs UAH = :uah UZS = :uzs VND = :vnd VUV = :vuv WST = :wst XAF = :xaf XCD = :xcd YER = :yer ZAR = :zar ZMW = :zmw CLP = :clp DJF = :djf GNF = :gnf UGX = :ugx PYG = :pyg XOF = :xof XPF = :xpf # @!method self.values # @return [Array<Symbol>] end end end end # Strategy for scheduling subscription changes # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#schedule_strategy module ScheduleStrategy extend Stigg::Internal::Type::Enum END_OF_BILLING_PERIOD = :END_OF_BILLING_PERIOD END_OF_BILLING_MONTH = :END_OF_BILLING_MONTH IMMEDIATE = :IMMEDIATE # @!method self.values # @return [Array<Symbol>] end # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription#trial_override_configuration class TrialOverrideConfiguration < Stigg::Internal::Type::BaseModel # @!attribute is_trial # Whether the subscription should start with a trial period # # @return [Boolean] required :is_trial, Stigg::Internal::Type::Boolean, api_name: :isTrial # @!attribute trial_end_behavior # Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION # # @return [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration::TrialEndBehavior, nil] optional :trial_end_behavior, enum: -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration::TrialEndBehavior }, api_name: :trialEndBehavior # @!attribute trial_end_date # Custom trial end date # # @return [Time, nil] optional :trial_end_date, Time, api_name: :trialEndDate # @!method initialize(is_trial:, trial_end_behavior: nil, trial_end_date: nil) # Trial period override settings # # @param is_trial [Boolean] Whether the subscription should start with a trial period # # @param trial_end_behavior [Symbol, Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration::TrialEndBehavior] Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION # # @param trial_end_date [Time] Custom trial end date # Behavior when trial ends: CONVERT_TO_PAID or CANCEL_SUBSCRIPTION # # @see Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription::TrialOverrideConfiguration#trial_end_behavior module TrialEndBehavior extend Stigg::Internal::Type::Enum CONVERT_TO_PAID = :CONVERT_TO_PAID CANCEL_SUBSCRIPTION = :CANCEL_SUBSCRIPTION # @!method self.values # @return [Array<Symbol>] end end end end |
Instance Attribute Details
#existing_subscription_id ⇒ String?
The subscription ref ID of an already-created custom subscription to link
97 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 97 optional :existing_subscription_id, String, api_name: :existingSubscriptionId |
#new_subscription ⇒ Stigg::Models::V1::ContractCreateParams::Subscription::NewSubscription?
A new subscription to create, using the same body the provision-subscription endpoint accepts
104 105 106 |
# File 'lib/stigg/models/v1/contract_create_params.rb', line 104 optional :new_subscription, -> { Stigg::V1::ContractCreateParams::Subscription::NewSubscription }, api_name: :newSubscription |
Instance Method Details
#to_hash ⇒ {
98 |
# File 'sig/stigg/models/v1/contract_create_params.rbs', line 98
def to_hash: -> {
|