orb-billing 4.72.2 → 4.73.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.
- package/CHANGELOG.md +33 -0
- package/README.md +1 -1
- package/index.d.mts +5 -2
- package/index.d.ts +5 -2
- package/index.d.ts.map +1 -1
- package/index.js +3 -0
- package/index.js.map +1 -1
- package/index.mjs +3 -0
- package/index.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/alerts.d.ts +18 -0
- package/resources/alerts.d.ts.map +1 -1
- package/resources/alerts.js.map +1 -1
- package/resources/alerts.mjs.map +1 -1
- package/resources/beta/beta.d.ts +7492 -0
- package/resources/beta/beta.d.ts.map +1 -0
- package/resources/beta/beta.js +67 -0
- package/resources/beta/beta.js.map +1 -0
- package/resources/beta/beta.mjs +40 -0
- package/resources/beta/beta.mjs.map +1 -0
- package/resources/beta/external-plan-id.d.ts +7218 -0
- package/resources/beta/external-plan-id.d.ts.map +1 -0
- package/resources/beta/external-plan-id.js +40 -0
- package/resources/beta/external-plan-id.js.map +1 -0
- package/resources/beta/external-plan-id.mjs +36 -0
- package/resources/beta/external-plan-id.mjs.map +1 -0
- package/resources/beta/index.d.ts +3 -0
- package/resources/beta/index.d.ts.map +1 -0
- package/resources/beta/index.js +9 -0
- package/resources/beta/index.js.map +1 -0
- package/resources/beta/index.mjs +4 -0
- package/resources/beta/index.mjs.map +1 -0
- package/resources/beta.d.ts +2 -0
- package/resources/beta.d.ts.map +1 -0
- package/resources/beta.js +19 -0
- package/resources/beta.js.map +1 -0
- package/resources/beta.mjs +3 -0
- package/resources/beta.mjs.map +1 -0
- package/resources/credit-notes.d.ts +4 -4
- package/resources/credit-notes.d.ts.map +1 -1
- package/resources/customers/balance-transactions.d.ts +0 -7
- package/resources/customers/balance-transactions.d.ts.map +1 -1
- package/resources/customers/balance-transactions.js.map +1 -1
- package/resources/customers/balance-transactions.mjs.map +1 -1
- package/resources/customers/credits/ledger.d.ts +17 -0
- package/resources/customers/credits/ledger.d.ts.map +1 -1
- package/resources/customers/credits/ledger.js.map +1 -1
- package/resources/customers/credits/ledger.mjs.map +1 -1
- package/resources/customers/credits/top-ups.d.ts +2 -2
- package/resources/customers/customers.d.ts +16 -7
- package/resources/customers/customers.d.ts.map +1 -1
- package/resources/customers/customers.js +1 -4
- package/resources/customers/customers.js.map +1 -1
- package/resources/customers/customers.mjs +1 -4
- package/resources/customers/customers.mjs.map +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.d.ts +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.js +1 -1
- package/resources/dimensional-price-groups/dimensional-price-groups.mjs +1 -1
- package/resources/index.d.ts +2 -1
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js +3 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs +1 -0
- package/resources/index.mjs.map +1 -1
- package/resources/invoice-line-items.d.ts +149 -9
- package/resources/invoice-line-items.d.ts.map +1 -1
- package/resources/invoices.d.ts +386 -26
- package/resources/invoices.d.ts.map +1 -1
- package/resources/invoices.js.map +1 -1
- package/resources/invoices.mjs.map +1 -1
- package/resources/items.d.ts +23 -0
- package/resources/items.d.ts.map +1 -1
- package/resources/items.js +6 -0
- package/resources/items.js.map +1 -1
- package/resources/items.mjs +6 -0
- package/resources/items.mjs.map +1 -1
- package/resources/plans/external-plan-id.d.ts +1 -1
- package/resources/plans/external-plan-id.js +1 -1
- package/resources/plans/external-plan-id.mjs +1 -1
- package/resources/plans/plans.d.ts +1153 -22
- package/resources/plans/plans.d.ts.map +1 -1
- package/resources/plans/plans.js +1 -1
- package/resources/plans/plans.js.map +1 -1
- package/resources/plans/plans.mjs +1 -1
- package/resources/plans/plans.mjs.map +1 -1
- package/resources/prices/index.d.ts +1 -1
- package/resources/prices/index.d.ts.map +1 -1
- package/resources/prices/index.js.map +1 -1
- package/resources/prices/index.mjs.map +1 -1
- package/resources/prices/prices.d.ts +6180 -123
- package/resources/prices/prices.d.ts.map +1 -1
- package/resources/prices/prices.js +40 -1
- package/resources/prices/prices.js.map +1 -1
- package/resources/prices/prices.mjs +40 -1
- package/resources/prices/prices.mjs.map +1 -1
- package/resources/shared.d.ts +14 -14
- package/resources/shared.d.ts.map +1 -1
- package/resources/subscription-changes.d.ts +648 -87
- package/resources/subscription-changes.d.ts.map +1 -1
- package/resources/subscriptions.d.ts +9527 -2978
- package/resources/subscriptions.d.ts.map +1 -1
- package/resources/subscriptions.js.map +1 -1
- package/resources/subscriptions.mjs.map +1 -1
- package/src/index.ts +21 -0
- package/src/resources/alerts.ts +21 -0
- package/src/resources/beta/beta.ts +9106 -0
- package/src/resources/beta/external-plan-id.ts +8748 -0
- package/src/resources/beta/index.ts +14 -0
- package/src/resources/beta.ts +3 -0
- package/src/resources/credit-notes.ts +4 -4
- package/src/resources/customers/balance-transactions.ts +0 -7
- package/src/resources/customers/credits/ledger.ts +21 -0
- package/src/resources/customers/credits/top-ups.ts +2 -2
- package/src/resources/customers/customers.ts +22 -4
- package/src/resources/dimensional-price-groups/dimensional-price-groups.ts +1 -1
- package/src/resources/index.ts +9 -0
- package/src/resources/invoice-line-items.ts +177 -9
- package/src/resources/invoices.ts +458 -26
- package/src/resources/items.ts +29 -0
- package/src/resources/plans/external-plan-id.ts +1 -1
- package/src/resources/plans/plans.ts +1375 -30
- package/src/resources/prices/index.ts +2 -0
- package/src/resources/prices/prices.ts +7345 -135
- package/src/resources/shared.ts +18 -18
- package/src/resources/subscription-changes.ts +771 -102
- package/src/resources/subscriptions.ts +11189 -3391
- package/src/version.ts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
package/resources/invoices.d.ts
CHANGED
|
@@ -664,9 +664,13 @@ export declare namespace Invoice {
|
|
|
664
664
|
*/
|
|
665
665
|
amount: string;
|
|
666
666
|
/**
|
|
667
|
-
* The price IDs that this adjustment applies to.
|
|
667
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
668
668
|
*/
|
|
669
669
|
applies_to_price_ids: Array<string>;
|
|
670
|
+
/**
|
|
671
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
672
|
+
*/
|
|
673
|
+
filters: Array<MonetaryUsageDiscountAdjustment.Filter>;
|
|
670
674
|
/**
|
|
671
675
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
672
676
|
* that apply to only one price.
|
|
@@ -682,6 +686,22 @@ export declare namespace Invoice {
|
|
|
682
686
|
*/
|
|
683
687
|
usage_discount: number;
|
|
684
688
|
}
|
|
689
|
+
namespace MonetaryUsageDiscountAdjustment {
|
|
690
|
+
interface Filter {
|
|
691
|
+
/**
|
|
692
|
+
* The property of the price to filter on.
|
|
693
|
+
*/
|
|
694
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
695
|
+
/**
|
|
696
|
+
* Should prices that match the filter be included or excluded.
|
|
697
|
+
*/
|
|
698
|
+
operator: 'includes' | 'excludes';
|
|
699
|
+
/**
|
|
700
|
+
* The IDs or values that match this filter.
|
|
701
|
+
*/
|
|
702
|
+
values: Array<string>;
|
|
703
|
+
}
|
|
704
|
+
}
|
|
685
705
|
interface MonetaryAmountDiscountAdjustment {
|
|
686
706
|
id: string;
|
|
687
707
|
adjustment_type: 'amount_discount';
|
|
@@ -695,9 +715,13 @@ export declare namespace Invoice {
|
|
|
695
715
|
*/
|
|
696
716
|
amount_discount: string;
|
|
697
717
|
/**
|
|
698
|
-
* The price IDs that this adjustment applies to.
|
|
718
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
699
719
|
*/
|
|
700
720
|
applies_to_price_ids: Array<string>;
|
|
721
|
+
/**
|
|
722
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
723
|
+
*/
|
|
724
|
+
filters: Array<MonetaryAmountDiscountAdjustment.Filter>;
|
|
701
725
|
/**
|
|
702
726
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
703
727
|
* that apply to only one price.
|
|
@@ -708,6 +732,22 @@ export declare namespace Invoice {
|
|
|
708
732
|
*/
|
|
709
733
|
reason: string | null;
|
|
710
734
|
}
|
|
735
|
+
namespace MonetaryAmountDiscountAdjustment {
|
|
736
|
+
interface Filter {
|
|
737
|
+
/**
|
|
738
|
+
* The property of the price to filter on.
|
|
739
|
+
*/
|
|
740
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
741
|
+
/**
|
|
742
|
+
* Should prices that match the filter be included or excluded.
|
|
743
|
+
*/
|
|
744
|
+
operator: 'includes' | 'excludes';
|
|
745
|
+
/**
|
|
746
|
+
* The IDs or values that match this filter.
|
|
747
|
+
*/
|
|
748
|
+
values: Array<string>;
|
|
749
|
+
}
|
|
750
|
+
}
|
|
711
751
|
interface MonetaryPercentageDiscountAdjustment {
|
|
712
752
|
id: string;
|
|
713
753
|
adjustment_type: 'percentage_discount';
|
|
@@ -716,9 +756,13 @@ export declare namespace Invoice {
|
|
|
716
756
|
*/
|
|
717
757
|
amount: string;
|
|
718
758
|
/**
|
|
719
|
-
* The price IDs that this adjustment applies to.
|
|
759
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
720
760
|
*/
|
|
721
761
|
applies_to_price_ids: Array<string>;
|
|
762
|
+
/**
|
|
763
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
764
|
+
*/
|
|
765
|
+
filters: Array<MonetaryPercentageDiscountAdjustment.Filter>;
|
|
722
766
|
/**
|
|
723
767
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
724
768
|
* that apply to only one price.
|
|
@@ -734,6 +778,22 @@ export declare namespace Invoice {
|
|
|
734
778
|
*/
|
|
735
779
|
reason: string | null;
|
|
736
780
|
}
|
|
781
|
+
namespace MonetaryPercentageDiscountAdjustment {
|
|
782
|
+
interface Filter {
|
|
783
|
+
/**
|
|
784
|
+
* The property of the price to filter on.
|
|
785
|
+
*/
|
|
786
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
787
|
+
/**
|
|
788
|
+
* Should prices that match the filter be included or excluded.
|
|
789
|
+
*/
|
|
790
|
+
operator: 'includes' | 'excludes';
|
|
791
|
+
/**
|
|
792
|
+
* The IDs or values that match this filter.
|
|
793
|
+
*/
|
|
794
|
+
values: Array<string>;
|
|
795
|
+
}
|
|
796
|
+
}
|
|
737
797
|
interface MonetaryMinimumAdjustment {
|
|
738
798
|
id: string;
|
|
739
799
|
adjustment_type: 'minimum';
|
|
@@ -742,9 +802,13 @@ export declare namespace Invoice {
|
|
|
742
802
|
*/
|
|
743
803
|
amount: string;
|
|
744
804
|
/**
|
|
745
|
-
* The price IDs that this adjustment applies to.
|
|
805
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
746
806
|
*/
|
|
747
807
|
applies_to_price_ids: Array<string>;
|
|
808
|
+
/**
|
|
809
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
810
|
+
*/
|
|
811
|
+
filters: Array<MonetaryMinimumAdjustment.Filter>;
|
|
748
812
|
/**
|
|
749
813
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
750
814
|
* that apply to only one price.
|
|
@@ -764,6 +828,22 @@ export declare namespace Invoice {
|
|
|
764
828
|
*/
|
|
765
829
|
reason: string | null;
|
|
766
830
|
}
|
|
831
|
+
namespace MonetaryMinimumAdjustment {
|
|
832
|
+
interface Filter {
|
|
833
|
+
/**
|
|
834
|
+
* The property of the price to filter on.
|
|
835
|
+
*/
|
|
836
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
837
|
+
/**
|
|
838
|
+
* Should prices that match the filter be included or excluded.
|
|
839
|
+
*/
|
|
840
|
+
operator: 'includes' | 'excludes';
|
|
841
|
+
/**
|
|
842
|
+
* The IDs or values that match this filter.
|
|
843
|
+
*/
|
|
844
|
+
values: Array<string>;
|
|
845
|
+
}
|
|
846
|
+
}
|
|
767
847
|
interface MonetaryMaximumAdjustment {
|
|
768
848
|
id: string;
|
|
769
849
|
adjustment_type: 'maximum';
|
|
@@ -772,9 +852,13 @@ export declare namespace Invoice {
|
|
|
772
852
|
*/
|
|
773
853
|
amount: string;
|
|
774
854
|
/**
|
|
775
|
-
* The price IDs that this adjustment applies to.
|
|
855
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
776
856
|
*/
|
|
777
857
|
applies_to_price_ids: Array<string>;
|
|
858
|
+
/**
|
|
859
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
860
|
+
*/
|
|
861
|
+
filters: Array<MonetaryMaximumAdjustment.Filter>;
|
|
778
862
|
/**
|
|
779
863
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
780
864
|
* that apply to only one price.
|
|
@@ -790,34 +874,90 @@ export declare namespace Invoice {
|
|
|
790
874
|
*/
|
|
791
875
|
reason: string | null;
|
|
792
876
|
}
|
|
877
|
+
namespace MonetaryMaximumAdjustment {
|
|
878
|
+
interface Filter {
|
|
879
|
+
/**
|
|
880
|
+
* The property of the price to filter on.
|
|
881
|
+
*/
|
|
882
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
883
|
+
/**
|
|
884
|
+
* Should prices that match the filter be included or excluded.
|
|
885
|
+
*/
|
|
886
|
+
operator: 'includes' | 'excludes';
|
|
887
|
+
/**
|
|
888
|
+
* The IDs or values that match this filter.
|
|
889
|
+
*/
|
|
890
|
+
values: Array<string>;
|
|
891
|
+
}
|
|
892
|
+
}
|
|
793
893
|
/**
|
|
794
894
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
795
895
|
*/
|
|
796
896
|
interface Maximum {
|
|
797
897
|
/**
|
|
798
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
799
|
-
* maximums, this can be a subset of prices.
|
|
898
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
899
|
+
* phase maximums, this can be a subset of prices.
|
|
800
900
|
*/
|
|
801
901
|
applies_to_price_ids: Array<string>;
|
|
902
|
+
/**
|
|
903
|
+
* The filters that determine which prices to apply this maximum to.
|
|
904
|
+
*/
|
|
905
|
+
filters: Array<Maximum.Filter>;
|
|
802
906
|
/**
|
|
803
907
|
* Maximum amount applied
|
|
804
908
|
*/
|
|
805
909
|
maximum_amount: string;
|
|
806
910
|
}
|
|
911
|
+
namespace Maximum {
|
|
912
|
+
interface Filter {
|
|
913
|
+
/**
|
|
914
|
+
* The property of the price to filter on.
|
|
915
|
+
*/
|
|
916
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
917
|
+
/**
|
|
918
|
+
* Should prices that match the filter be included or excluded.
|
|
919
|
+
*/
|
|
920
|
+
operator: 'includes' | 'excludes';
|
|
921
|
+
/**
|
|
922
|
+
* The IDs or values that match this filter.
|
|
923
|
+
*/
|
|
924
|
+
values: Array<string>;
|
|
925
|
+
}
|
|
926
|
+
}
|
|
807
927
|
/**
|
|
808
928
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
809
929
|
*/
|
|
810
930
|
interface Minimum {
|
|
811
931
|
/**
|
|
812
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
813
|
-
* minimums, this can be a subset of prices.
|
|
932
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
933
|
+
* phase minimums, this can be a subset of prices.
|
|
814
934
|
*/
|
|
815
935
|
applies_to_price_ids: Array<string>;
|
|
936
|
+
/**
|
|
937
|
+
* The filters that determine which prices to apply this minimum to.
|
|
938
|
+
*/
|
|
939
|
+
filters: Array<Minimum.Filter>;
|
|
816
940
|
/**
|
|
817
941
|
* Minimum amount applied
|
|
818
942
|
*/
|
|
819
943
|
minimum_amount: string;
|
|
820
944
|
}
|
|
945
|
+
namespace Minimum {
|
|
946
|
+
interface Filter {
|
|
947
|
+
/**
|
|
948
|
+
* The property of the price to filter on.
|
|
949
|
+
*/
|
|
950
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
951
|
+
/**
|
|
952
|
+
* Should prices that match the filter be included or excluded.
|
|
953
|
+
*/
|
|
954
|
+
operator: 'includes' | 'excludes';
|
|
955
|
+
/**
|
|
956
|
+
* The IDs or values that match this filter.
|
|
957
|
+
*/
|
|
958
|
+
values: Array<string>;
|
|
959
|
+
}
|
|
960
|
+
}
|
|
821
961
|
interface MatrixSubLineItem {
|
|
822
962
|
/**
|
|
823
963
|
* The total amount for this sub line item.
|
|
@@ -905,26 +1045,66 @@ export declare namespace Invoice {
|
|
|
905
1045
|
}
|
|
906
1046
|
interface Maximum {
|
|
907
1047
|
/**
|
|
908
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
909
|
-
* maximums, this can be a subset of prices.
|
|
1048
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
1049
|
+
* phase maximums, this can be a subset of prices.
|
|
910
1050
|
*/
|
|
911
1051
|
applies_to_price_ids: Array<string>;
|
|
1052
|
+
/**
|
|
1053
|
+
* The filters that determine which prices to apply this maximum to.
|
|
1054
|
+
*/
|
|
1055
|
+
filters: Array<Maximum.Filter>;
|
|
912
1056
|
/**
|
|
913
1057
|
* Maximum amount applied
|
|
914
1058
|
*/
|
|
915
1059
|
maximum_amount: string;
|
|
916
1060
|
}
|
|
1061
|
+
namespace Maximum {
|
|
1062
|
+
interface Filter {
|
|
1063
|
+
/**
|
|
1064
|
+
* The property of the price to filter on.
|
|
1065
|
+
*/
|
|
1066
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1067
|
+
/**
|
|
1068
|
+
* Should prices that match the filter be included or excluded.
|
|
1069
|
+
*/
|
|
1070
|
+
operator: 'includes' | 'excludes';
|
|
1071
|
+
/**
|
|
1072
|
+
* The IDs or values that match this filter.
|
|
1073
|
+
*/
|
|
1074
|
+
values: Array<string>;
|
|
1075
|
+
}
|
|
1076
|
+
}
|
|
917
1077
|
interface Minimum {
|
|
918
1078
|
/**
|
|
919
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
920
|
-
* minimums, this can be a subset of prices.
|
|
1079
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
1080
|
+
* phase minimums, this can be a subset of prices.
|
|
921
1081
|
*/
|
|
922
1082
|
applies_to_price_ids: Array<string>;
|
|
1083
|
+
/**
|
|
1084
|
+
* The filters that determine which prices to apply this minimum to.
|
|
1085
|
+
*/
|
|
1086
|
+
filters: Array<Minimum.Filter>;
|
|
923
1087
|
/**
|
|
924
1088
|
* Minimum amount applied
|
|
925
1089
|
*/
|
|
926
1090
|
minimum_amount: string;
|
|
927
1091
|
}
|
|
1092
|
+
namespace Minimum {
|
|
1093
|
+
interface Filter {
|
|
1094
|
+
/**
|
|
1095
|
+
* The property of the price to filter on.
|
|
1096
|
+
*/
|
|
1097
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1098
|
+
/**
|
|
1099
|
+
* Should prices that match the filter be included or excluded.
|
|
1100
|
+
*/
|
|
1101
|
+
operator: 'includes' | 'excludes';
|
|
1102
|
+
/**
|
|
1103
|
+
* The IDs or values that match this filter.
|
|
1104
|
+
*/
|
|
1105
|
+
values: Array<string>;
|
|
1106
|
+
}
|
|
1107
|
+
}
|
|
928
1108
|
interface PaymentAttempt {
|
|
929
1109
|
/**
|
|
930
1110
|
* The ID of the payment attempt.
|
|
@@ -1539,9 +1719,13 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1539
1719
|
*/
|
|
1540
1720
|
amount: string;
|
|
1541
1721
|
/**
|
|
1542
|
-
* The price IDs that this adjustment applies to.
|
|
1722
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1543
1723
|
*/
|
|
1544
1724
|
applies_to_price_ids: Array<string>;
|
|
1725
|
+
/**
|
|
1726
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1727
|
+
*/
|
|
1728
|
+
filters: Array<MonetaryUsageDiscountAdjustment.Filter>;
|
|
1545
1729
|
/**
|
|
1546
1730
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1547
1731
|
* that apply to only one price.
|
|
@@ -1557,6 +1741,22 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1557
1741
|
*/
|
|
1558
1742
|
usage_discount: number;
|
|
1559
1743
|
}
|
|
1744
|
+
namespace MonetaryUsageDiscountAdjustment {
|
|
1745
|
+
interface Filter {
|
|
1746
|
+
/**
|
|
1747
|
+
* The property of the price to filter on.
|
|
1748
|
+
*/
|
|
1749
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1750
|
+
/**
|
|
1751
|
+
* Should prices that match the filter be included or excluded.
|
|
1752
|
+
*/
|
|
1753
|
+
operator: 'includes' | 'excludes';
|
|
1754
|
+
/**
|
|
1755
|
+
* The IDs or values that match this filter.
|
|
1756
|
+
*/
|
|
1757
|
+
values: Array<string>;
|
|
1758
|
+
}
|
|
1759
|
+
}
|
|
1560
1760
|
interface MonetaryAmountDiscountAdjustment {
|
|
1561
1761
|
id: string;
|
|
1562
1762
|
adjustment_type: 'amount_discount';
|
|
@@ -1570,9 +1770,13 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1570
1770
|
*/
|
|
1571
1771
|
amount_discount: string;
|
|
1572
1772
|
/**
|
|
1573
|
-
* The price IDs that this adjustment applies to.
|
|
1773
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1574
1774
|
*/
|
|
1575
1775
|
applies_to_price_ids: Array<string>;
|
|
1776
|
+
/**
|
|
1777
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1778
|
+
*/
|
|
1779
|
+
filters: Array<MonetaryAmountDiscountAdjustment.Filter>;
|
|
1576
1780
|
/**
|
|
1577
1781
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1578
1782
|
* that apply to only one price.
|
|
@@ -1583,6 +1787,22 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1583
1787
|
*/
|
|
1584
1788
|
reason: string | null;
|
|
1585
1789
|
}
|
|
1790
|
+
namespace MonetaryAmountDiscountAdjustment {
|
|
1791
|
+
interface Filter {
|
|
1792
|
+
/**
|
|
1793
|
+
* The property of the price to filter on.
|
|
1794
|
+
*/
|
|
1795
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1796
|
+
/**
|
|
1797
|
+
* Should prices that match the filter be included or excluded.
|
|
1798
|
+
*/
|
|
1799
|
+
operator: 'includes' | 'excludes';
|
|
1800
|
+
/**
|
|
1801
|
+
* The IDs or values that match this filter.
|
|
1802
|
+
*/
|
|
1803
|
+
values: Array<string>;
|
|
1804
|
+
}
|
|
1805
|
+
}
|
|
1586
1806
|
interface MonetaryPercentageDiscountAdjustment {
|
|
1587
1807
|
id: string;
|
|
1588
1808
|
adjustment_type: 'percentage_discount';
|
|
@@ -1591,9 +1811,13 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1591
1811
|
*/
|
|
1592
1812
|
amount: string;
|
|
1593
1813
|
/**
|
|
1594
|
-
* The price IDs that this adjustment applies to.
|
|
1814
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1595
1815
|
*/
|
|
1596
1816
|
applies_to_price_ids: Array<string>;
|
|
1817
|
+
/**
|
|
1818
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1819
|
+
*/
|
|
1820
|
+
filters: Array<MonetaryPercentageDiscountAdjustment.Filter>;
|
|
1597
1821
|
/**
|
|
1598
1822
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1599
1823
|
* that apply to only one price.
|
|
@@ -1609,6 +1833,22 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1609
1833
|
*/
|
|
1610
1834
|
reason: string | null;
|
|
1611
1835
|
}
|
|
1836
|
+
namespace MonetaryPercentageDiscountAdjustment {
|
|
1837
|
+
interface Filter {
|
|
1838
|
+
/**
|
|
1839
|
+
* The property of the price to filter on.
|
|
1840
|
+
*/
|
|
1841
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1842
|
+
/**
|
|
1843
|
+
* Should prices that match the filter be included or excluded.
|
|
1844
|
+
*/
|
|
1845
|
+
operator: 'includes' | 'excludes';
|
|
1846
|
+
/**
|
|
1847
|
+
* The IDs or values that match this filter.
|
|
1848
|
+
*/
|
|
1849
|
+
values: Array<string>;
|
|
1850
|
+
}
|
|
1851
|
+
}
|
|
1612
1852
|
interface MonetaryMinimumAdjustment {
|
|
1613
1853
|
id: string;
|
|
1614
1854
|
adjustment_type: 'minimum';
|
|
@@ -1617,9 +1857,13 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1617
1857
|
*/
|
|
1618
1858
|
amount: string;
|
|
1619
1859
|
/**
|
|
1620
|
-
* The price IDs that this adjustment applies to.
|
|
1860
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1621
1861
|
*/
|
|
1622
1862
|
applies_to_price_ids: Array<string>;
|
|
1863
|
+
/**
|
|
1864
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1865
|
+
*/
|
|
1866
|
+
filters: Array<MonetaryMinimumAdjustment.Filter>;
|
|
1623
1867
|
/**
|
|
1624
1868
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1625
1869
|
* that apply to only one price.
|
|
@@ -1639,6 +1883,22 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1639
1883
|
*/
|
|
1640
1884
|
reason: string | null;
|
|
1641
1885
|
}
|
|
1886
|
+
namespace MonetaryMinimumAdjustment {
|
|
1887
|
+
interface Filter {
|
|
1888
|
+
/**
|
|
1889
|
+
* The property of the price to filter on.
|
|
1890
|
+
*/
|
|
1891
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1892
|
+
/**
|
|
1893
|
+
* Should prices that match the filter be included or excluded.
|
|
1894
|
+
*/
|
|
1895
|
+
operator: 'includes' | 'excludes';
|
|
1896
|
+
/**
|
|
1897
|
+
* The IDs or values that match this filter.
|
|
1898
|
+
*/
|
|
1899
|
+
values: Array<string>;
|
|
1900
|
+
}
|
|
1901
|
+
}
|
|
1642
1902
|
interface MonetaryMaximumAdjustment {
|
|
1643
1903
|
id: string;
|
|
1644
1904
|
adjustment_type: 'maximum';
|
|
@@ -1647,9 +1907,13 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1647
1907
|
*/
|
|
1648
1908
|
amount: string;
|
|
1649
1909
|
/**
|
|
1650
|
-
* The price IDs that this adjustment applies to.
|
|
1910
|
+
* @deprecated The price IDs that this adjustment applies to.
|
|
1651
1911
|
*/
|
|
1652
1912
|
applies_to_price_ids: Array<string>;
|
|
1913
|
+
/**
|
|
1914
|
+
* The filters that determine which prices to apply this adjustment to.
|
|
1915
|
+
*/
|
|
1916
|
+
filters: Array<MonetaryMaximumAdjustment.Filter>;
|
|
1653
1917
|
/**
|
|
1654
1918
|
* True for adjustments that apply to an entire invocice, false for adjustments
|
|
1655
1919
|
* that apply to only one price.
|
|
@@ -1665,34 +1929,90 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1665
1929
|
*/
|
|
1666
1930
|
reason: string | null;
|
|
1667
1931
|
}
|
|
1932
|
+
namespace MonetaryMaximumAdjustment {
|
|
1933
|
+
interface Filter {
|
|
1934
|
+
/**
|
|
1935
|
+
* The property of the price to filter on.
|
|
1936
|
+
*/
|
|
1937
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1938
|
+
/**
|
|
1939
|
+
* Should prices that match the filter be included or excluded.
|
|
1940
|
+
*/
|
|
1941
|
+
operator: 'includes' | 'excludes';
|
|
1942
|
+
/**
|
|
1943
|
+
* The IDs or values that match this filter.
|
|
1944
|
+
*/
|
|
1945
|
+
values: Array<string>;
|
|
1946
|
+
}
|
|
1947
|
+
}
|
|
1668
1948
|
/**
|
|
1669
1949
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1670
1950
|
*/
|
|
1671
1951
|
interface Maximum {
|
|
1672
1952
|
/**
|
|
1673
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
1674
|
-
* maximums, this can be a subset of prices.
|
|
1953
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
1954
|
+
* phase maximums, this can be a subset of prices.
|
|
1675
1955
|
*/
|
|
1676
1956
|
applies_to_price_ids: Array<string>;
|
|
1957
|
+
/**
|
|
1958
|
+
* The filters that determine which prices to apply this maximum to.
|
|
1959
|
+
*/
|
|
1960
|
+
filters: Array<Maximum.Filter>;
|
|
1677
1961
|
/**
|
|
1678
1962
|
* Maximum amount applied
|
|
1679
1963
|
*/
|
|
1680
1964
|
maximum_amount: string;
|
|
1681
1965
|
}
|
|
1966
|
+
namespace Maximum {
|
|
1967
|
+
interface Filter {
|
|
1968
|
+
/**
|
|
1969
|
+
* The property of the price to filter on.
|
|
1970
|
+
*/
|
|
1971
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
1972
|
+
/**
|
|
1973
|
+
* Should prices that match the filter be included or excluded.
|
|
1974
|
+
*/
|
|
1975
|
+
operator: 'includes' | 'excludes';
|
|
1976
|
+
/**
|
|
1977
|
+
* The IDs or values that match this filter.
|
|
1978
|
+
*/
|
|
1979
|
+
values: Array<string>;
|
|
1980
|
+
}
|
|
1981
|
+
}
|
|
1682
1982
|
/**
|
|
1683
1983
|
* @deprecated This field is deprecated in favor of `adjustments`.
|
|
1684
1984
|
*/
|
|
1685
1985
|
interface Minimum {
|
|
1686
1986
|
/**
|
|
1687
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
1688
|
-
* minimums, this can be a subset of prices.
|
|
1987
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
1988
|
+
* phase minimums, this can be a subset of prices.
|
|
1689
1989
|
*/
|
|
1690
1990
|
applies_to_price_ids: Array<string>;
|
|
1991
|
+
/**
|
|
1992
|
+
* The filters that determine which prices to apply this minimum to.
|
|
1993
|
+
*/
|
|
1994
|
+
filters: Array<Minimum.Filter>;
|
|
1691
1995
|
/**
|
|
1692
1996
|
* Minimum amount applied
|
|
1693
1997
|
*/
|
|
1694
1998
|
minimum_amount: string;
|
|
1695
1999
|
}
|
|
2000
|
+
namespace Minimum {
|
|
2001
|
+
interface Filter {
|
|
2002
|
+
/**
|
|
2003
|
+
* The property of the price to filter on.
|
|
2004
|
+
*/
|
|
2005
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2006
|
+
/**
|
|
2007
|
+
* Should prices that match the filter be included or excluded.
|
|
2008
|
+
*/
|
|
2009
|
+
operator: 'includes' | 'excludes';
|
|
2010
|
+
/**
|
|
2011
|
+
* The IDs or values that match this filter.
|
|
2012
|
+
*/
|
|
2013
|
+
values: Array<string>;
|
|
2014
|
+
}
|
|
2015
|
+
}
|
|
1696
2016
|
interface MatrixSubLineItem {
|
|
1697
2017
|
/**
|
|
1698
2018
|
* The total amount for this sub line item.
|
|
@@ -1780,26 +2100,66 @@ export declare namespace InvoiceFetchUpcomingResponse {
|
|
|
1780
2100
|
}
|
|
1781
2101
|
interface Maximum {
|
|
1782
2102
|
/**
|
|
1783
|
-
* List of price_ids that this maximum amount applies to. For plan/plan
|
|
1784
|
-
* maximums, this can be a subset of prices.
|
|
2103
|
+
* @deprecated List of price_ids that this maximum amount applies to. For plan/plan
|
|
2104
|
+
* phase maximums, this can be a subset of prices.
|
|
1785
2105
|
*/
|
|
1786
2106
|
applies_to_price_ids: Array<string>;
|
|
2107
|
+
/**
|
|
2108
|
+
* The filters that determine which prices to apply this maximum to.
|
|
2109
|
+
*/
|
|
2110
|
+
filters: Array<Maximum.Filter>;
|
|
1787
2111
|
/**
|
|
1788
2112
|
* Maximum amount applied
|
|
1789
2113
|
*/
|
|
1790
2114
|
maximum_amount: string;
|
|
1791
2115
|
}
|
|
2116
|
+
namespace Maximum {
|
|
2117
|
+
interface Filter {
|
|
2118
|
+
/**
|
|
2119
|
+
* The property of the price to filter on.
|
|
2120
|
+
*/
|
|
2121
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2122
|
+
/**
|
|
2123
|
+
* Should prices that match the filter be included or excluded.
|
|
2124
|
+
*/
|
|
2125
|
+
operator: 'includes' | 'excludes';
|
|
2126
|
+
/**
|
|
2127
|
+
* The IDs or values that match this filter.
|
|
2128
|
+
*/
|
|
2129
|
+
values: Array<string>;
|
|
2130
|
+
}
|
|
2131
|
+
}
|
|
1792
2132
|
interface Minimum {
|
|
1793
2133
|
/**
|
|
1794
|
-
* List of price_ids that this minimum amount applies to. For plan/plan
|
|
1795
|
-
* minimums, this can be a subset of prices.
|
|
2134
|
+
* @deprecated List of price_ids that this minimum amount applies to. For plan/plan
|
|
2135
|
+
* phase minimums, this can be a subset of prices.
|
|
1796
2136
|
*/
|
|
1797
2137
|
applies_to_price_ids: Array<string>;
|
|
2138
|
+
/**
|
|
2139
|
+
* The filters that determine which prices to apply this minimum to.
|
|
2140
|
+
*/
|
|
2141
|
+
filters: Array<Minimum.Filter>;
|
|
1798
2142
|
/**
|
|
1799
2143
|
* Minimum amount applied
|
|
1800
2144
|
*/
|
|
1801
2145
|
minimum_amount: string;
|
|
1802
2146
|
}
|
|
2147
|
+
namespace Minimum {
|
|
2148
|
+
interface Filter {
|
|
2149
|
+
/**
|
|
2150
|
+
* The property of the price to filter on.
|
|
2151
|
+
*/
|
|
2152
|
+
field: 'price_id' | 'item_id' | 'price_type' | 'currency' | 'pricing_unit_id';
|
|
2153
|
+
/**
|
|
2154
|
+
* Should prices that match the filter be included or excluded.
|
|
2155
|
+
*/
|
|
2156
|
+
operator: 'includes' | 'excludes';
|
|
2157
|
+
/**
|
|
2158
|
+
* The IDs or values that match this filter.
|
|
2159
|
+
*/
|
|
2160
|
+
values: Array<string>;
|
|
2161
|
+
}
|
|
2162
|
+
}
|
|
1803
2163
|
interface PaymentAttempt {
|
|
1804
2164
|
/**
|
|
1805
2165
|
* The ID of the payment attempt.
|