metronome-sdk 0.1.0 → 0.3.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (80) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +39 -0
  3. data/README.md +1 -1
  4. data/lib/metronome_sdk/internal/transport/base_client.rb +1 -1
  5. data/lib/metronome_sdk/internal/type/array_of.rb +1 -0
  6. data/lib/metronome_sdk/internal/type/base_model.rb +3 -1
  7. data/lib/metronome_sdk/internal/type/converter.rb +27 -0
  8. data/lib/metronome_sdk/internal/type/hash_of.rb +1 -0
  9. data/lib/metronome_sdk/internal/type/union.rb +9 -7
  10. data/lib/metronome_sdk/models/commit.rb +35 -5
  11. data/lib/metronome_sdk/models/contract_without_amendments.rb +128 -2
  12. data/lib/metronome_sdk/models/credit.rb +21 -3
  13. data/lib/metronome_sdk/models/schedule_point_in_time.rb +14 -1
  14. data/lib/metronome_sdk/models/v1/alert_create_params.rb +9 -11
  15. data/lib/metronome_sdk/models/v1/contract_amend_params.rb +54 -5
  16. data/lib/metronome_sdk/models/v1/contract_create_params.rb +219 -23
  17. data/lib/metronome_sdk/models/v1/contracts/product_create_params.rb +8 -1
  18. data/lib/metronome_sdk/models/v1/customers/commit_create_params.rb +10 -1
  19. data/lib/metronome_sdk/models/v1/customers/customer_alert.rb +29 -1
  20. data/lib/metronome_sdk/models/v1/customers/invoice.rb +13 -1
  21. data/lib/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rb +2 -0
  22. data/lib/metronome_sdk/models/v2/contract_edit_commit_params.rb +12 -1
  23. data/lib/metronome_sdk/models/v2/contract_edit_credit_params.rb +12 -1
  24. data/lib/metronome_sdk/models/v2/contract_edit_params.rb +259 -37
  25. data/lib/metronome_sdk/models/v2/contract_get_edit_history_response.rb +602 -15
  26. data/lib/metronome_sdk/models/v2/contract_list_response.rb +194 -17
  27. data/lib/metronome_sdk/models/v2/contract_retrieve_response.rb +194 -17
  28. data/lib/metronome_sdk/resources/v1/alerts.rb +2 -2
  29. data/lib/metronome_sdk/resources/v1/contracts/products.rb +3 -1
  30. data/lib/metronome_sdk/resources/v2/contracts.rb +6 -2
  31. data/lib/metronome_sdk/version.rb +1 -1
  32. data/rbi/metronome_sdk/internal/transport/base_client.rbi +1 -1
  33. data/rbi/metronome_sdk/internal/type/converter.rbi +58 -0
  34. data/rbi/metronome_sdk/internal/type/union.rbi +9 -2
  35. data/rbi/metronome_sdk/models/commit.rbi +89 -15
  36. data/rbi/metronome_sdk/models/contract_without_amendments.rbi +304 -6
  37. data/rbi/metronome_sdk/models/credit.rbi +54 -9
  38. data/rbi/metronome_sdk/models/schedule_point_in_time.rbi +17 -1
  39. data/rbi/metronome_sdk/models/v1/alert_create_params.rbi +16 -18
  40. data/rbi/metronome_sdk/models/v1/contract_amend_params.rbi +76 -3
  41. data/rbi/metronome_sdk/models/v1/contract_create_params.rbi +433 -26
  42. data/rbi/metronome_sdk/models/v1/contracts/product_create_params.rbi +9 -0
  43. data/rbi/metronome_sdk/models/v1/customers/commit_create_params.rbi +13 -0
  44. data/rbi/metronome_sdk/models/v1/customers/customer_alert.rbi +60 -0
  45. data/rbi/metronome_sdk/models/v1/customers/invoice.rbi +16 -0
  46. data/rbi/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbi +10 -0
  47. data/rbi/metronome_sdk/models/v2/contract_edit_commit_params.rbi +14 -0
  48. data/rbi/metronome_sdk/models/v2/contract_edit_credit_params.rbi +14 -0
  49. data/rbi/metronome_sdk/models/v2/contract_edit_params.rbi +481 -38
  50. data/rbi/metronome_sdk/models/v2/contract_get_edit_history_response.rbi +1565 -42
  51. data/rbi/metronome_sdk/models/v2/contract_list_response.rbi +431 -37
  52. data/rbi/metronome_sdk/models/v2/contract_retrieve_response.rbi +431 -37
  53. data/rbi/metronome_sdk/resources/v1/alerts.rbi +5 -5
  54. data/rbi/metronome_sdk/resources/v1/contracts/products.rbi +2 -0
  55. data/rbi/metronome_sdk/resources/v2/contracts.rbi +12 -0
  56. data/sig/metronome_sdk/internal/transport/base_client.rbs +1 -1
  57. data/sig/metronome_sdk/internal/type/converter.rbs +17 -0
  58. data/sig/metronome_sdk/internal/type/union.rbs +2 -2
  59. data/sig/metronome_sdk/models/commit.rbs +50 -15
  60. data/sig/metronome_sdk/models/contract_without_amendments.rbs +120 -6
  61. data/sig/metronome_sdk/models/credit.rbs +30 -9
  62. data/sig/metronome_sdk/models/schedule_point_in_time.rbs +7 -0
  63. data/sig/metronome_sdk/models/v1/alert_create_params.rbs +9 -9
  64. data/sig/metronome_sdk/models/v1/contract_amend_params.rbs +38 -3
  65. data/sig/metronome_sdk/models/v1/contract_create_params.rbs +168 -6
  66. data/sig/metronome_sdk/models/v1/contracts/product_create_params.rbs +7 -0
  67. data/sig/metronome_sdk/models/v1/customers/commit_create_params.rbs +7 -0
  68. data/sig/metronome_sdk/models/v1/customers/customer_alert.rbs +21 -0
  69. data/sig/metronome_sdk/models/v1/customers/invoice.rbs +5 -0
  70. data/sig/metronome_sdk/models/v1/dashboard_get_embeddable_url_params.rbs +4 -0
  71. data/sig/metronome_sdk/models/v2/contract_edit_commit_params.rbs +5 -0
  72. data/sig/metronome_sdk/models/v2/contract_edit_credit_params.rbs +5 -0
  73. data/sig/metronome_sdk/models/v2/contract_edit_params.rbs +178 -6
  74. data/sig/metronome_sdk/models/v2/contract_get_edit_history_response.rbs +629 -6
  75. data/sig/metronome_sdk/models/v2/contract_list_response.rbs +205 -30
  76. data/sig/metronome_sdk/models/v2/contract_retrieve_response.rbs +205 -30
  77. data/sig/metronome_sdk/resources/v1/alerts.rbs +1 -1
  78. data/sig/metronome_sdk/resources/v1/contracts/products.rbs +1 -0
  79. data/sig/metronome_sdk/resources/v2/contracts.rbs +2 -0
  80. metadata +2 -2
@@ -479,6 +479,13 @@ module MetronomeSDK
479
479
  # @return [String, nil]
480
480
  optional :credit_type_id, String
481
481
 
482
+ # @!attribute do_not_invoice
483
+ # This field is only applicable to commit invoice schedules. If true, this
484
+ # schedule will not generate an invoice.
485
+ #
486
+ # @return [Boolean, nil]
487
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
488
+
482
489
  # @!attribute recurring_schedule
483
490
  # Enter the unit price and quantity for the charge or instead only send the
484
491
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -497,7 +504,7 @@ module MetronomeSDK
497
504
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractAmendParams::Commit::InvoiceSchedule::ScheduleItem]
498
505
  }
499
506
 
500
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
507
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
501
508
  # Some parameter documentations has been truncated, see
502
509
  # {MetronomeSDK::Models::V1::ContractAmendParams::Commit::InvoiceSchedule} for
503
510
  # more details.
@@ -509,6 +516,8 @@ module MetronomeSDK
509
516
  #
510
517
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
511
518
  #
519
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
520
+ #
512
521
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractAmendParams::Commit::InvoiceSchedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
513
522
  #
514
523
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractAmendParams::Commit::InvoiceSchedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -781,7 +790,20 @@ module MetronomeSDK
781
790
  # @return [Hash{Symbol=>String}, nil]
782
791
  optional :invoice_metadata, MetronomeSDK::Internal::Type::HashOf[String]
783
792
 
784
- # @!method initialize(payment_type:, invoice_metadata: nil)
793
+ # @!attribute on_session_payment
794
+ # If true, the payment will be made assuming the customer is present (i.e. on
795
+ # session).
796
+ #
797
+ # If false, the payment will be made assuming the customer is not present (i.e.
798
+ # off session). For cardholders from a country with an e-mandate requirement (e.g.
799
+ # India), the payment may be declined.
800
+ #
801
+ # If left blank, will default to false.
802
+ #
803
+ # @return [Boolean, nil]
804
+ optional :on_session_payment, MetronomeSDK::Internal::Type::Boolean
805
+
806
+ # @!method initialize(payment_type:, invoice_metadata: nil, on_session_payment: nil)
785
807
  # Some parameter documentations has been truncated, see
786
808
  # {MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig}
787
809
  # for more details.
@@ -791,6 +813,8 @@ module MetronomeSDK
791
813
  # @param payment_type [Symbol, MetronomeSDK::Models::V1::ContractAmendParams::Commit::PaymentGateConfig::StripeConfig::PaymentType] If left blank, will default to INVOICE
792
814
  #
793
815
  # @param invoice_metadata [Hash{Symbol=>String}] Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as
816
+ #
817
+ # @param on_session_payment [Boolean] If true, the payment will be made assuming the customer is present (i.e. on sess
794
818
 
795
819
  # If left blank, will default to INVOICE
796
820
  #
@@ -1241,6 +1265,13 @@ module MetronomeSDK
1241
1265
  # @return [String, nil]
1242
1266
  optional :credit_type_id, String
1243
1267
 
1268
+ # @!attribute do_not_invoice
1269
+ # This field is only applicable to commit invoice schedules. If true, this
1270
+ # schedule will not generate an invoice.
1271
+ #
1272
+ # @return [Boolean, nil]
1273
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
1274
+
1244
1275
  # @!attribute recurring_schedule
1245
1276
  # Enter the unit price and quantity for the charge or instead only send the
1246
1277
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -1259,7 +1290,7 @@ module MetronomeSDK
1259
1290
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractAmendParams::Discount::Schedule::ScheduleItem]
1260
1291
  }
1261
1292
 
1262
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
1293
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
1263
1294
  # Some parameter documentations has been truncated, see
1264
1295
  # {MetronomeSDK::Models::V1::ContractAmendParams::Discount::Schedule} for more
1265
1296
  # details.
@@ -1268,6 +1299,8 @@ module MetronomeSDK
1268
1299
  #
1269
1300
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
1270
1301
  #
1302
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
1303
+ #
1271
1304
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractAmendParams::Discount::Schedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
1272
1305
  #
1273
1306
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractAmendParams::Discount::Schedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -1981,6 +2014,11 @@ module MetronomeSDK
1981
2014
  # @return [MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule]
1982
2015
  required :schedule, -> { MetronomeSDK::V1::ContractAmendParams::ScheduledCharge::Schedule }
1983
2016
 
2017
+ # @!attribute custom_fields
2018
+ #
2019
+ # @return [Hash{Symbol=>String}, nil]
2020
+ optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
2021
+
1984
2022
  # @!attribute name
1985
2023
  # displayed on invoices
1986
2024
  #
@@ -1993,11 +2031,13 @@ module MetronomeSDK
1993
2031
  # @return [String, nil]
1994
2032
  optional :netsuite_sales_order_id, String
1995
2033
 
1996
- # @!method initialize(product_id:, schedule:, name: nil, netsuite_sales_order_id: nil)
2034
+ # @!method initialize(product_id:, schedule:, custom_fields: nil, name: nil, netsuite_sales_order_id: nil)
1997
2035
  # @param product_id [String]
1998
2036
  #
1999
2037
  # @param schedule [MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule] Must provide either schedule_items or recurring_schedule.
2000
2038
  #
2039
+ # @param custom_fields [Hash{Symbol=>String}]
2040
+ #
2001
2041
  # @param name [String] displayed on invoices
2002
2042
  #
2003
2043
  # @param netsuite_sales_order_id [String] This field's availability is dependent on your client's configuration.
@@ -2010,6 +2050,13 @@ module MetronomeSDK
2010
2050
  # @return [String, nil]
2011
2051
  optional :credit_type_id, String
2012
2052
 
2053
+ # @!attribute do_not_invoice
2054
+ # This field is only applicable to commit invoice schedules. If true, this
2055
+ # schedule will not generate an invoice.
2056
+ #
2057
+ # @return [Boolean, nil]
2058
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
2059
+
2013
2060
  # @!attribute recurring_schedule
2014
2061
  # Enter the unit price and quantity for the charge or instead only send the
2015
2062
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -2030,7 +2077,7 @@ module MetronomeSDK
2030
2077
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractAmendParams::ScheduledCharge::Schedule::ScheduleItem]
2031
2078
  }
2032
2079
 
2033
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
2080
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
2034
2081
  # Some parameter documentations has been truncated, see
2035
2082
  # {MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule} for
2036
2083
  # more details.
@@ -2039,6 +2086,8 @@ module MetronomeSDK
2039
2086
  #
2040
2087
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
2041
2088
  #
2089
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
2090
+ #
2042
2091
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
2043
2092
  #
2044
2093
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractAmendParams::ScheduledCharge::Schedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -724,6 +724,13 @@ module MetronomeSDK
724
724
  # @return [String, nil]
725
725
  optional :credit_type_id, String
726
726
 
727
+ # @!attribute do_not_invoice
728
+ # This field is only applicable to commit invoice schedules. If true, this
729
+ # schedule will not generate an invoice.
730
+ #
731
+ # @return [Boolean, nil]
732
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
733
+
727
734
  # @!attribute recurring_schedule
728
735
  # Enter the unit price and quantity for the charge or instead only send the
729
736
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -742,7 +749,7 @@ module MetronomeSDK
742
749
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::Commit::InvoiceSchedule::ScheduleItem]
743
750
  }
744
751
 
745
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
752
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
746
753
  # Some parameter documentations has been truncated, see
747
754
  # {MetronomeSDK::Models::V1::ContractCreateParams::Commit::InvoiceSchedule} for
748
755
  # more details.
@@ -754,6 +761,8 @@ module MetronomeSDK
754
761
  #
755
762
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
756
763
  #
764
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
765
+ #
757
766
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractCreateParams::Commit::InvoiceSchedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
758
767
  #
759
768
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractCreateParams::Commit::InvoiceSchedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -1024,7 +1033,20 @@ module MetronomeSDK
1024
1033
  # @return [Hash{Symbol=>String}, nil]
1025
1034
  optional :invoice_metadata, MetronomeSDK::Internal::Type::HashOf[String]
1026
1035
 
1027
- # @!method initialize(payment_type:, invoice_metadata: nil)
1036
+ # @!attribute on_session_payment
1037
+ # If true, the payment will be made assuming the customer is present (i.e. on
1038
+ # session).
1039
+ #
1040
+ # If false, the payment will be made assuming the customer is not present (i.e.
1041
+ # off session). For cardholders from a country with an e-mandate requirement (e.g.
1042
+ # India), the payment may be declined.
1043
+ #
1044
+ # If left blank, will default to false.
1045
+ #
1046
+ # @return [Boolean, nil]
1047
+ optional :on_session_payment, MetronomeSDK::Internal::Type::Boolean
1048
+
1049
+ # @!method initialize(payment_type:, invoice_metadata: nil, on_session_payment: nil)
1028
1050
  # Some parameter documentations has been truncated, see
1029
1051
  # {MetronomeSDK::Models::V1::ContractCreateParams::Commit::PaymentGateConfig::StripeConfig}
1030
1052
  # for more details.
@@ -1034,6 +1056,8 @@ module MetronomeSDK
1034
1056
  # @param payment_type [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Commit::PaymentGateConfig::StripeConfig::PaymentType] If left blank, will default to INVOICE
1035
1057
  #
1036
1058
  # @param invoice_metadata [Hash{Symbol=>String}] Metadata to be added to the Stripe invoice. Only applicable if using INVOICE as
1059
+ #
1060
+ # @param on_session_payment [Boolean] If true, the payment will be made assuming the customer is present (i.e. on sess
1037
1061
 
1038
1062
  # If left blank, will default to INVOICE
1039
1063
  #
@@ -1484,6 +1508,13 @@ module MetronomeSDK
1484
1508
  # @return [String, nil]
1485
1509
  optional :credit_type_id, String
1486
1510
 
1511
+ # @!attribute do_not_invoice
1512
+ # This field is only applicable to commit invoice schedules. If true, this
1513
+ # schedule will not generate an invoice.
1514
+ #
1515
+ # @return [Boolean, nil]
1516
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
1517
+
1487
1518
  # @!attribute recurring_schedule
1488
1519
  # Enter the unit price and quantity for the charge or instead only send the
1489
1520
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -1502,7 +1533,7 @@ module MetronomeSDK
1502
1533
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::Discount::Schedule::ScheduleItem]
1503
1534
  }
1504
1535
 
1505
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
1536
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
1506
1537
  # Some parameter documentations has been truncated, see
1507
1538
  # {MetronomeSDK::Models::V1::ContractCreateParams::Discount::Schedule} for more
1508
1539
  # details.
@@ -1511,6 +1542,8 @@ module MetronomeSDK
1511
1542
  #
1512
1543
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
1513
1544
  #
1545
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
1546
+ #
1514
1547
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractCreateParams::Discount::Schedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
1515
1548
  #
1516
1549
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractCreateParams::Discount::Schedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -2581,6 +2614,13 @@ module MetronomeSDK
2581
2614
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::RecurringCommit::Specifier]
2582
2615
  }
2583
2616
 
2617
+ # @!attribute subscription_config
2618
+ # Attach a subscription to the recurring commit/credit.
2619
+ #
2620
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig, nil]
2621
+ optional :subscription_config,
2622
+ -> { MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig }
2623
+
2584
2624
  # @!attribute temporary_id
2585
2625
  # A temporary ID that can be used to reference the recurring commit for commit
2586
2626
  # specific overrides.
@@ -2588,7 +2628,7 @@ module MetronomeSDK
2588
2628
  # @return [String, nil]
2589
2629
  optional :temporary_id, String
2590
2630
 
2591
- # @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, invoice_amount: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, temporary_id: nil)
2631
+ # @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, invoice_amount: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil, temporary_id: nil)
2592
2632
  # Some parameter documentations has been truncated, see
2593
2633
  # {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit} for more
2594
2634
  # details.
@@ -2629,6 +2669,8 @@ module MetronomeSDK
2629
2669
  #
2630
2670
  # @param specifiers [Array<MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
2631
2671
  #
2672
+ # @param subscription_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
2673
+ #
2632
2674
  # @param temporary_id [String] A temporary ID that can be used to reference the recurring commit for commit spe
2633
2675
 
2634
2676
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit#access_amount
@@ -2644,8 +2686,8 @@ module MetronomeSDK
2644
2686
  required :unit_price, Float
2645
2687
 
2646
2688
  # @!attribute quantity
2647
- # This field is currently required. Upcoming recurring commit/credit configuration
2648
- # options will allow it to be optional.
2689
+ # This field is required unless a subscription is attached via
2690
+ # `subscription_config`.
2649
2691
  #
2650
2692
  # @return [Float, nil]
2651
2693
  optional :quantity, Float
@@ -2661,7 +2703,7 @@ module MetronomeSDK
2661
2703
  #
2662
2704
  # @param unit_price [Float]
2663
2705
  #
2664
- # @param quantity [Float] This field is currently required. Upcoming recurring commit/credit configuration
2706
+ # @param quantity [Float] This field is required unless a subscription is attached via `subscription_confi
2665
2707
  end
2666
2708
 
2667
2709
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit#commit_duration
@@ -2919,6 +2961,65 @@ module MetronomeSDK
2919
2961
  #
2920
2962
  # @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
2921
2963
  end
2964
+
2965
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit#subscription_config
2966
+ class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
2967
+ # @!attribute apply_seat_increase_config
2968
+ #
2969
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
2970
+ required :apply_seat_increase_config,
2971
+ -> {
2972
+ MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig
2973
+ }
2974
+
2975
+ # @!attribute subscription_id
2976
+ # ID of the subscription to configure on the recurring commit/credit.
2977
+ #
2978
+ # @return [String]
2979
+ required :subscription_id, String
2980
+
2981
+ # @!attribute allocation
2982
+ # If set to POOLED, allocation added per seat is pooled across the account.
2983
+ #
2984
+ # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation, nil]
2985
+ optional :allocation,
2986
+ enum: -> {
2987
+ MetronomeSDK::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation
2988
+ }
2989
+
2990
+ # @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
2991
+ # Attach a subscription to the recurring commit/credit.
2992
+ #
2993
+ # @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::ApplySeatIncreaseConfig]
2994
+ #
2995
+ # @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
2996
+ #
2997
+ # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
2998
+
2999
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#apply_seat_increase_config
3000
+ class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
3001
+ # @!attribute is_prorated
3002
+ # Indicates whether a mid-period seat increase should be prorated.
3003
+ #
3004
+ # @return [Boolean]
3005
+ required :is_prorated, MetronomeSDK::Internal::Type::Boolean
3006
+
3007
+ # @!method initialize(is_prorated:)
3008
+ # @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
3009
+ end
3010
+
3011
+ # If set to POOLED, allocation added per seat is pooled across the account.
3012
+ #
3013
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCommit::SubscriptionConfig#allocation
3014
+ module Allocation
3015
+ extend MetronomeSDK::Internal::Type::Enum
3016
+
3017
+ POOLED = :POOLED
3018
+
3019
+ # @!method self.values
3020
+ # @return [Array<Symbol>]
3021
+ end
3022
+ end
2922
3023
  end
2923
3024
 
2924
3025
  class RecurringCredit < MetronomeSDK::Internal::Type::BaseModel
@@ -3046,6 +3147,13 @@ module MetronomeSDK
3046
3147
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::RecurringCredit::Specifier]
3047
3148
  }
3048
3149
 
3150
+ # @!attribute subscription_config
3151
+ # Attach a subscription to the recurring commit/credit.
3152
+ #
3153
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig, nil]
3154
+ optional :subscription_config,
3155
+ -> { MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig }
3156
+
3049
3157
  # @!attribute temporary_id
3050
3158
  # A temporary ID that can be used to reference the recurring commit for commit
3051
3159
  # specific overrides.
@@ -3053,7 +3161,7 @@ module MetronomeSDK
3053
3161
  # @return [String, nil]
3054
3162
  optional :temporary_id, String
3055
3163
 
3056
- # @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, temporary_id: nil)
3164
+ # @!method initialize(access_amount:, commit_duration:, priority:, product_id:, starting_at:, applicable_product_ids: nil, applicable_product_tags: nil, description: nil, ending_before: nil, hierarchy_configuration: nil, name: nil, netsuite_sales_order_id: nil, proration: nil, rate_type: nil, recurrence_frequency: nil, rollover_fraction: nil, specifiers: nil, subscription_config: nil, temporary_id: nil)
3057
3165
  # Some parameter documentations has been truncated, see
3058
3166
  # {MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit} for more
3059
3167
  # details.
@@ -3092,6 +3200,8 @@ module MetronomeSDK
3092
3200
  #
3093
3201
  # @param specifiers [Array<MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::Specifier>] List of filters that determine what kind of customer usage draws down a commit o
3094
3202
  #
3203
+ # @param subscription_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig] Attach a subscription to the recurring commit/credit.
3204
+ #
3095
3205
  # @param temporary_id [String] A temporary ID that can be used to reference the recurring commit for commit spe
3096
3206
 
3097
3207
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit#access_amount
@@ -3107,8 +3217,8 @@ module MetronomeSDK
3107
3217
  required :unit_price, Float
3108
3218
 
3109
3219
  # @!attribute quantity
3110
- # This field is currently required. Upcoming recurring commit/credit configuration
3111
- # options will allow it to be optional.
3220
+ # This field is required unless a subscription is attached via
3221
+ # `subscription_config`.
3112
3222
  #
3113
3223
  # @return [Float, nil]
3114
3224
  optional :quantity, Float
@@ -3124,7 +3234,7 @@ module MetronomeSDK
3124
3234
  #
3125
3235
  # @param unit_price [Float]
3126
3236
  #
3127
- # @param quantity [Float] This field is currently required. Upcoming recurring commit/credit configuration
3237
+ # @param quantity [Float] This field is required unless a subscription is attached via `subscription_confi
3128
3238
  end
3129
3239
 
3130
3240
  # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit#commit_duration
@@ -3357,6 +3467,65 @@ module MetronomeSDK
3357
3467
  #
3358
3468
  # @param product_tags [Array<String>] If provided, the specifier will only apply to products with all the specified ta
3359
3469
  end
3470
+
3471
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit#subscription_config
3472
+ class SubscriptionConfig < MetronomeSDK::Internal::Type::BaseModel
3473
+ # @!attribute apply_seat_increase_config
3474
+ #
3475
+ # @return [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
3476
+ required :apply_seat_increase_config,
3477
+ -> {
3478
+ MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig
3479
+ }
3480
+
3481
+ # @!attribute subscription_id
3482
+ # ID of the subscription to configure on the recurring commit/credit.
3483
+ #
3484
+ # @return [String]
3485
+ required :subscription_id, String
3486
+
3487
+ # @!attribute allocation
3488
+ # If set to POOLED, allocation added per seat is pooled across the account.
3489
+ #
3490
+ # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation, nil]
3491
+ optional :allocation,
3492
+ enum: -> {
3493
+ MetronomeSDK::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation
3494
+ }
3495
+
3496
+ # @!method initialize(apply_seat_increase_config:, subscription_id:, allocation: nil)
3497
+ # Attach a subscription to the recurring commit/credit.
3498
+ #
3499
+ # @param apply_seat_increase_config [MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::ApplySeatIncreaseConfig]
3500
+ #
3501
+ # @param subscription_id [String] ID of the subscription to configure on the recurring commit/credit.
3502
+ #
3503
+ # @param allocation [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig::Allocation] If set to POOLED, allocation added per seat is pooled across the account.
3504
+
3505
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#apply_seat_increase_config
3506
+ class ApplySeatIncreaseConfig < MetronomeSDK::Internal::Type::BaseModel
3507
+ # @!attribute is_prorated
3508
+ # Indicates whether a mid-period seat increase should be prorated.
3509
+ #
3510
+ # @return [Boolean]
3511
+ required :is_prorated, MetronomeSDK::Internal::Type::Boolean
3512
+
3513
+ # @!method initialize(is_prorated:)
3514
+ # @param is_prorated [Boolean] Indicates whether a mid-period seat increase should be prorated.
3515
+ end
3516
+
3517
+ # If set to POOLED, allocation added per seat is pooled across the account.
3518
+ #
3519
+ # @see MetronomeSDK::Models::V1::ContractCreateParams::RecurringCredit::SubscriptionConfig#allocation
3520
+ module Allocation
3521
+ extend MetronomeSDK::Internal::Type::Enum
3522
+
3523
+ POOLED = :POOLED
3524
+
3525
+ # @!method self.values
3526
+ # @return [Array<Symbol>]
3527
+ end
3528
+ end
3360
3529
  end
3361
3530
 
3362
3531
  class ResellerRoyalty < MetronomeSDK::Internal::Type::BaseModel
@@ -3500,6 +3669,11 @@ module MetronomeSDK
3500
3669
  # @return [MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge::Schedule]
3501
3670
  required :schedule, -> { MetronomeSDK::V1::ContractCreateParams::ScheduledCharge::Schedule }
3502
3671
 
3672
+ # @!attribute custom_fields
3673
+ #
3674
+ # @return [Hash{Symbol=>String}, nil]
3675
+ optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
3676
+
3503
3677
  # @!attribute name
3504
3678
  # displayed on invoices
3505
3679
  #
@@ -3512,11 +3686,13 @@ module MetronomeSDK
3512
3686
  # @return [String, nil]
3513
3687
  optional :netsuite_sales_order_id, String
3514
3688
 
3515
- # @!method initialize(product_id:, schedule:, name: nil, netsuite_sales_order_id: nil)
3689
+ # @!method initialize(product_id:, schedule:, custom_fields: nil, name: nil, netsuite_sales_order_id: nil)
3516
3690
  # @param product_id [String]
3517
3691
  #
3518
3692
  # @param schedule [MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge::Schedule] Must provide either schedule_items or recurring_schedule.
3519
3693
  #
3694
+ # @param custom_fields [Hash{Symbol=>String}]
3695
+ #
3520
3696
  # @param name [String] displayed on invoices
3521
3697
  #
3522
3698
  # @param netsuite_sales_order_id [String] This field's availability is dependent on your client's configuration.
@@ -3529,6 +3705,13 @@ module MetronomeSDK
3529
3705
  # @return [String, nil]
3530
3706
  optional :credit_type_id, String
3531
3707
 
3708
+ # @!attribute do_not_invoice
3709
+ # This field is only applicable to commit invoice schedules. If true, this
3710
+ # schedule will not generate an invoice.
3711
+ #
3712
+ # @return [Boolean, nil]
3713
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
3714
+
3532
3715
  # @!attribute recurring_schedule
3533
3716
  # Enter the unit price and quantity for the charge or instead only send the
3534
3717
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -3549,7 +3732,7 @@ module MetronomeSDK
3549
3732
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::ContractCreateParams::ScheduledCharge::Schedule::ScheduleItem]
3550
3733
  }
3551
3734
 
3552
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
3735
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
3553
3736
  # Some parameter documentations has been truncated, see
3554
3737
  # {MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge::Schedule} for
3555
3738
  # more details.
@@ -3558,6 +3741,8 @@ module MetronomeSDK
3558
3741
  #
3559
3742
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
3560
3743
  #
3744
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
3745
+ #
3561
3746
  # @param recurring_schedule [MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge::Schedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
3562
3747
  #
3563
3748
  # @param schedule_items [Array<MetronomeSDK::Models::V1::ContractCreateParams::ScheduledCharge::Schedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.
@@ -4019,7 +4204,14 @@ module MetronomeSDK
4019
4204
  # @return [Time, nil]
4020
4205
  optional :starting_at, Time
4021
4206
 
4022
- # @!method initialize(collection_schedule:, initial_quantity:, proration:, subscription_rate:, custom_fields: nil, description: nil, ending_before: nil, name: nil, starting_at: nil)
4207
+ # @!attribute temporary_id
4208
+ # A temporary ID used to reference the subscription in recurring commit/credit
4209
+ # subscription configs created within the same payload.
4210
+ #
4211
+ # @return [String, nil]
4212
+ optional :temporary_id, String
4213
+
4214
+ # @!method initialize(collection_schedule:, initial_quantity:, proration:, subscription_rate:, custom_fields: nil, description: nil, ending_before: nil, name: nil, starting_at: nil, temporary_id: nil)
4023
4215
  # Some parameter documentations has been truncated, see
4024
4216
  # {MetronomeSDK::Models::V1::ContractCreateParams::Subscription} for more details.
4025
4217
  #
@@ -4040,6 +4232,8 @@ module MetronomeSDK
4040
4232
  # @param name [String]
4041
4233
  #
4042
4234
  # @param starting_at [Time] Inclusive start time for the subscription. If not provided, defaults to contract
4235
+ #
4236
+ # @param temporary_id [String] A temporary ID used to reference the subscription in recurring commit/credit sub
4043
4237
 
4044
4238
  # @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription#collection_schedule
4045
4239
  module CollectionSchedule
@@ -4055,10 +4249,11 @@ module MetronomeSDK
4055
4249
  # @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription#proration
4056
4250
  class Proration < MetronomeSDK::Internal::Type::BaseModel
4057
4251
  # @!attribute invoice_behavior
4058
- # Indicates how mid-period quantity adjustments are invoiced. If BILL_IMMEDIATELY
4059
- # is selected, the quantity increase will be billed on the scheduled date. If
4060
- # BILL_ON_NEXT_COLLECTION_DATE is selected, the quantity increase will be billed
4061
- # for in-arrears at the end of the period.
4252
+ # Indicates how mid-period quantity adjustments are invoiced.
4253
+ # **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
4254
+ # quantity increase will be billed immediately on the scheduled date.
4255
+ # **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
4256
+ # in-arrears at the end of the period.
4062
4257
  #
4063
4258
  # @return [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior, nil]
4064
4259
  optional :invoice_behavior,
@@ -4077,14 +4272,15 @@ module MetronomeSDK
4077
4272
  # {MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration} for
4078
4273
  # more details.
4079
4274
  #
4080
- # @param invoice_behavior [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior] Indicates how mid-period quantity adjustments are invoiced. If BILL_IMMEDIATELY
4275
+ # @param invoice_behavior [Symbol, MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration::InvoiceBehavior] Indicates how mid-period quantity adjustments are invoiced.
4081
4276
  #
4082
4277
  # @param is_prorated [Boolean] Indicates if the partial period will be prorated or charged a full amount.
4083
4278
 
4084
- # Indicates how mid-period quantity adjustments are invoiced. If BILL_IMMEDIATELY
4085
- # is selected, the quantity increase will be billed on the scheduled date. If
4086
- # BILL_ON_NEXT_COLLECTION_DATE is selected, the quantity increase will be billed
4087
- # for in-arrears at the end of the period.
4279
+ # Indicates how mid-period quantity adjustments are invoiced.
4280
+ # **BILL_IMMEDIATELY**: Only available when collection schedule is `ADVANCE`. The
4281
+ # quantity increase will be billed immediately on the scheduled date.
4282
+ # **BILL_ON_NEXT_COLLECTION_DATE**: The quantity increase will be billed for
4283
+ # in-arrears at the end of the period.
4088
4284
  #
4089
4285
  # @see MetronomeSDK::Models::V1::ContractCreateParams::Subscription::Proration#invoice_behavior
4090
4286
  module InvoiceBehavior
@@ -38,6 +38,11 @@ module MetronomeSDK
38
38
  # @return [Array<String>, nil]
39
39
  optional :composite_tags, MetronomeSDK::Internal::Type::ArrayOf[String]
40
40
 
41
+ # @!attribute custom_fields
42
+ #
43
+ # @return [Hash{Symbol=>String}, nil]
44
+ optional :custom_fields, MetronomeSDK::Internal::Type::HashOf[String]
45
+
41
46
  # @!attribute exclude_free_usage
42
47
  # Beta feature only available for composite products. If true, products with $0
43
48
  # will not be included when computing composite usage. Defaults to false
@@ -107,7 +112,7 @@ module MetronomeSDK
107
112
  # @return [Array<String>, nil]
108
113
  optional :tags, MetronomeSDK::Internal::Type::ArrayOf[String]
109
114
 
110
- # @!method initialize(name:, type:, billable_metric_id: nil, composite_product_ids: nil, composite_tags: nil, exclude_free_usage: nil, is_refundable: nil, netsuite_internal_item_id: nil, netsuite_overage_item_id: nil, presentation_group_key: nil, pricing_group_key: nil, quantity_conversion: nil, quantity_rounding: nil, tags: nil, request_options: {})
115
+ # @!method initialize(name:, type:, billable_metric_id: nil, composite_product_ids: nil, composite_tags: nil, custom_fields: nil, exclude_free_usage: nil, is_refundable: nil, netsuite_internal_item_id: nil, netsuite_overage_item_id: nil, presentation_group_key: nil, pricing_group_key: nil, quantity_conversion: nil, quantity_rounding: nil, tags: nil, request_options: {})
111
116
  # Some parameter documentations has been truncated, see
112
117
  # {MetronomeSDK::Models::V1::Contracts::ProductCreateParams} for more details.
113
118
  #
@@ -121,6 +126,8 @@ module MetronomeSDK
121
126
  #
122
127
  # @param composite_tags [Array<String>] Required for COMPOSITE products
123
128
  #
129
+ # @param custom_fields [Hash{Symbol=>String}]
130
+ #
124
131
  # @param exclude_free_usage [Boolean] Beta feature only available for composite products. If true, products with $0 wi
125
132
  #
126
133
  # @param is_refundable [Boolean] This field's availability is dependent on your client's configuration. Defaults
@@ -244,6 +244,13 @@ module MetronomeSDK
244
244
  # @return [String, nil]
245
245
  optional :credit_type_id, String
246
246
 
247
+ # @!attribute do_not_invoice
248
+ # This field is only applicable to commit invoice schedules. If true, this
249
+ # schedule will not generate an invoice.
250
+ #
251
+ # @return [Boolean, nil]
252
+ optional :do_not_invoice, MetronomeSDK::Internal::Type::Boolean
253
+
247
254
  # @!attribute recurring_schedule
248
255
  # Enter the unit price and quantity for the charge or instead only send the
249
256
  # amount. If amount is sent, the unit price is assumed to be the amount and
@@ -264,7 +271,7 @@ module MetronomeSDK
264
271
  MetronomeSDK::Internal::Type::ArrayOf[MetronomeSDK::V1::Customers::CommitCreateParams::InvoiceSchedule::ScheduleItem]
265
272
  }
266
273
 
267
- # @!method initialize(credit_type_id: nil, recurring_schedule: nil, schedule_items: nil)
274
+ # @!method initialize(credit_type_id: nil, do_not_invoice: nil, recurring_schedule: nil, schedule_items: nil)
268
275
  # Some parameter documentations has been truncated, see
269
276
  # {MetronomeSDK::Models::V1::Customers::CommitCreateParams::InvoiceSchedule} for
270
277
  # more details.
@@ -276,6 +283,8 @@ module MetronomeSDK
276
283
  #
277
284
  # @param credit_type_id [String] Defaults to USD (cents) if not passed.
278
285
  #
286
+ # @param do_not_invoice [Boolean] This field is only applicable to commit invoice schedules. If true, this schedul
287
+ #
279
288
  # @param recurring_schedule [MetronomeSDK::Models::V1::Customers::CommitCreateParams::InvoiceSchedule::RecurringSchedule] Enter the unit price and quantity for the charge or instead only send the amount
280
289
  #
281
290
  # @param schedule_items [Array<MetronomeSDK::Models::V1::Customers::CommitCreateParams::InvoiceSchedule::ScheduleItem>] Either provide amount or provide both unit_price and quantity.