@metronome/sdk 3.8.0 → 3.9.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.
@@ -824,9 +824,6 @@ export namespace ContractCreateResponse {
824
824
  */
825
825
  custom_fields?: { [key: string]: string };
826
826
 
827
- /**
828
- * The billing provider configuration associated with the contract.
829
- */
830
827
  customer_billing_provider_configuration?: Contract.CustomerBillingProviderConfiguration;
831
828
 
832
829
  ending_before?: string;
@@ -918,13 +915,19 @@ export namespace ContractCreateResponse {
918
915
  frequency: 'MONTHLY' | 'QUARTERLY' | 'ANNUAL' | 'WEEKLY';
919
916
  }
920
917
 
921
- /**
922
- * The billing provider configuration associated with the contract.
923
- */
924
918
  export interface CustomerBillingProviderConfiguration {
925
- id?: string;
919
+ /**
920
+ * ID of this configuration; can be provided as the
921
+ * billing_provider_configuration_id when creating a contract.
922
+ */
923
+ id: string;
924
+
925
+ archived_at: string | null;
926
926
 
927
- billing_provider?:
927
+ /**
928
+ * The billing provider set for this configuration.
929
+ */
930
+ billing_provider:
928
931
  | 'aws_marketplace'
929
932
  | 'stripe'
930
933
  | 'netsuite'
@@ -935,7 +938,29 @@ export namespace ContractCreateResponse {
935
938
  | 'gcp_marketplace'
936
939
  | 'metronome';
937
940
 
938
- delivery_method?: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
941
+ /**
942
+ * Configuration for the billing provider. The structure of this object is specific
943
+ * to the billing provider.
944
+ */
945
+ configuration: { [key: string]: unknown };
946
+
947
+ customer_id: string;
948
+
949
+ /**
950
+ * The method to use for delivering invoices to this customer.
951
+ */
952
+ delivery_method: 'direct_to_billing_provider' | 'aws_sqs' | 'tackle' | 'aws_sns';
953
+
954
+ /**
955
+ * Configuration for the delivery method. The structure of this object is specific
956
+ * to the delivery method.
957
+ */
958
+ delivery_method_configuration: { [key: string]: unknown };
959
+
960
+ /**
961
+ * ID of the delivery method to use for this customer.
962
+ */
963
+ delivery_method_id: string;
939
964
  }
940
965
 
941
966
  /**
@@ -3963,7 +3963,7 @@ export namespace ContractEditParams {
3963
3963
  /**
3964
3964
  * When the billing provider update will take effect.
3965
3965
  */
3966
- effective_at: 'START_OF_CURRENT_PERIOD';
3966
+ effective_at: 'START_OF_CURRENT_PERIOD' | 'START_OF_NEXT_PERIOD';
3967
3967
  }
3968
3968
  }
3969
3969
 
@@ -5196,7 +5196,7 @@ export namespace ContractEditParams {
5196
5196
  /**
5197
5197
  * When the revenue system configuration update will take effect.
5198
5198
  */
5199
- effective_at: 'START_OF_CURRENT_PERIOD';
5199
+ effective_at: 'START_OF_CURRENT_PERIOD' | 'START_OF_NEXT_PERIOD';
5200
5200
  }
5201
5201
  }
5202
5202
 
package/src/version.ts CHANGED
@@ -1 +1 @@
1
- export const VERSION = '3.8.0'; // x-release-please-version
1
+ export const VERSION = '3.9.0'; // x-release-please-version
package/version.d.mts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.8.0";
1
+ export declare const VERSION = "3.9.0";
2
2
  //# sourceMappingURL=version.d.mts.map
package/version.d.ts CHANGED
@@ -1,2 +1,2 @@
1
- export declare const VERSION = "3.8.0";
1
+ export declare const VERSION = "3.9.0";
2
2
  //# sourceMappingURL=version.d.ts.map
package/version.js CHANGED
@@ -1,5 +1,5 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
3
  exports.VERSION = void 0;
4
- exports.VERSION = '3.8.0'; // x-release-please-version
4
+ exports.VERSION = '3.9.0'; // x-release-please-version
5
5
  //# sourceMappingURL=version.js.map
package/version.mjs CHANGED
@@ -1,2 +1,2 @@
1
- export const VERSION = '3.8.0'; // x-release-please-version
1
+ export const VERSION = '3.9.0'; // x-release-please-version
2
2
  //# sourceMappingURL=version.mjs.map