stripe 15.12.0 → 16.1.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 +48 -2
- package/VERSION +1 -1
- package/cjs/apiVersion.js +1 -1
- package/cjs/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/cjs/stripe.core.js +1 -1
- package/esm/apiVersion.js +1 -1
- package/esm/resources/TestHelpers/Issuing/Authorizations.js +4 -0
- package/esm/stripe.core.js +1 -1
- package/package.json +5 -1
- package/types/BalanceTransactionSources.d.ts +0 -1
- package/types/Billing/MetersResource.d.ts +6 -2
- package/types/Capabilities.d.ts +28 -8
- package/types/Checkout/Sessions.d.ts +15 -1
- package/types/Checkout/SessionsResource.d.ts +2 -2
- package/types/CreditNotesResource.d.ts +21 -0
- package/types/CustomersResource.d.ts +4 -2
- package/types/FinancialConnections/Sessions.d.ts +14 -0
- package/types/FinancialConnections/SessionsResource.d.ts +14 -0
- package/types/Invoices.d.ts +15 -1
- package/types/InvoicesResource.d.ts +38 -3
- package/types/Issuing/Authorizations.d.ts +173 -0
- package/types/Issuing/Transactions.d.ts +112 -6
- package/types/PaymentIntents.d.ts +13 -0
- package/types/PaymentIntentsResource.d.ts +48 -0
- package/types/PaymentLinks.d.ts +4 -1
- package/types/PaymentLinksResource.d.ts +10 -4
- package/types/SetupIntents.d.ts +13 -0
- package/types/SetupIntentsResource.d.ts +48 -0
- package/types/Subscriptions.d.ts +13 -0
- package/types/SubscriptionsResource.d.ts +32 -0
- package/types/Tax/Calculations.d.ts +2 -1
- package/types/Tax/CalculationsResource.d.ts +3 -2
- package/types/Tax/Transactions.d.ts +2 -1
- package/types/TaxIds.d.ts +2 -1
- package/types/TaxIdsResource.d.ts +2 -1
- package/types/Terminal/Configurations.d.ts +14 -0
- package/types/Terminal/ConfigurationsResource.d.ts +36 -0
- package/types/TestHelpers/Issuing/AuthorizationsResource.d.ts +480 -7
- package/types/TestHelpers/Issuing/TransactionsResource.d.ts +262 -14
- package/types/WebhookEndpointsResource.d.ts +2 -1
- package/types/index.d.ts +0 -1
- package/types/lib.d.ts +1 -1
- package/types/test/typescriptTest.ts +3 -3
- package/types/PlatformTaxFees.d.ts +0 -35
|
@@ -35,6 +35,16 @@ declare module 'stripe' {
|
|
|
35
35
|
*/
|
|
36
36
|
expand?: Array<string>;
|
|
37
37
|
|
|
38
|
+
/**
|
|
39
|
+
* Fleet-specific information for authorizations using Fleet cards.
|
|
40
|
+
*/
|
|
41
|
+
fleet?: AuthorizationCreateParams.Fleet;
|
|
42
|
+
|
|
43
|
+
/**
|
|
44
|
+
* Information about fuel that was purchased with this transaction.
|
|
45
|
+
*/
|
|
46
|
+
fuel?: AuthorizationCreateParams.Fuel;
|
|
47
|
+
|
|
38
48
|
/**
|
|
39
49
|
* If set `true`, you may provide [amount](https://stripe.com/docs/api/issuing/authorizations/approve#approve_issuing_authorization-amount) to control how much to hold for the authorization.
|
|
40
50
|
*/
|
|
@@ -81,6 +91,158 @@ declare module 'stripe' {
|
|
|
81
91
|
| 'online'
|
|
82
92
|
| 'swipe';
|
|
83
93
|
|
|
94
|
+
interface Fleet {
|
|
95
|
+
/**
|
|
96
|
+
* Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
|
97
|
+
*/
|
|
98
|
+
cardholder_prompt_data?: Fleet.CardholderPromptData;
|
|
99
|
+
|
|
100
|
+
/**
|
|
101
|
+
* The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
|
102
|
+
*/
|
|
103
|
+
purchase_type?: Fleet.PurchaseType;
|
|
104
|
+
|
|
105
|
+
/**
|
|
106
|
+
* More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
|
107
|
+
*/
|
|
108
|
+
reported_breakdown?: Fleet.ReportedBreakdown;
|
|
109
|
+
|
|
110
|
+
/**
|
|
111
|
+
* The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
|
112
|
+
*/
|
|
113
|
+
service_type?: Fleet.ServiceType;
|
|
114
|
+
}
|
|
115
|
+
|
|
116
|
+
namespace Fleet {
|
|
117
|
+
interface CardholderPromptData {
|
|
118
|
+
/**
|
|
119
|
+
* Driver ID.
|
|
120
|
+
*/
|
|
121
|
+
driver_id?: string;
|
|
122
|
+
|
|
123
|
+
/**
|
|
124
|
+
* Odometer reading.
|
|
125
|
+
*/
|
|
126
|
+
odometer?: number;
|
|
127
|
+
|
|
128
|
+
/**
|
|
129
|
+
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
|
130
|
+
*/
|
|
131
|
+
unspecified_id?: string;
|
|
132
|
+
|
|
133
|
+
/**
|
|
134
|
+
* User ID.
|
|
135
|
+
*/
|
|
136
|
+
user_id?: string;
|
|
137
|
+
|
|
138
|
+
/**
|
|
139
|
+
* Vehicle number.
|
|
140
|
+
*/
|
|
141
|
+
vehicle_number?: string;
|
|
142
|
+
}
|
|
143
|
+
|
|
144
|
+
type PurchaseType =
|
|
145
|
+
| 'fuel_and_non_fuel_purchase'
|
|
146
|
+
| 'fuel_purchase'
|
|
147
|
+
| 'non_fuel_purchase';
|
|
148
|
+
|
|
149
|
+
interface ReportedBreakdown {
|
|
150
|
+
/**
|
|
151
|
+
* Breakdown of fuel portion of the purchase.
|
|
152
|
+
*/
|
|
153
|
+
fuel?: ReportedBreakdown.Fuel;
|
|
154
|
+
|
|
155
|
+
/**
|
|
156
|
+
* Breakdown of non-fuel portion of the purchase.
|
|
157
|
+
*/
|
|
158
|
+
non_fuel?: ReportedBreakdown.NonFuel;
|
|
159
|
+
|
|
160
|
+
/**
|
|
161
|
+
* Information about tax included in this transaction.
|
|
162
|
+
*/
|
|
163
|
+
tax?: ReportedBreakdown.Tax;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
namespace ReportedBreakdown {
|
|
167
|
+
interface Fuel {
|
|
168
|
+
/**
|
|
169
|
+
* Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
|
170
|
+
*/
|
|
171
|
+
gross_amount_decimal?: string;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
interface NonFuel {
|
|
175
|
+
/**
|
|
176
|
+
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
|
177
|
+
*/
|
|
178
|
+
gross_amount_decimal?: string;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
interface Tax {
|
|
182
|
+
/**
|
|
183
|
+
* Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
184
|
+
*/
|
|
185
|
+
local_amount_decimal?: string;
|
|
186
|
+
|
|
187
|
+
/**
|
|
188
|
+
* Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
189
|
+
*/
|
|
190
|
+
national_amount_decimal?: string;
|
|
191
|
+
}
|
|
192
|
+
}
|
|
193
|
+
|
|
194
|
+
type ServiceType =
|
|
195
|
+
| 'full_service'
|
|
196
|
+
| 'non_fuel_transaction'
|
|
197
|
+
| 'self_service';
|
|
198
|
+
}
|
|
199
|
+
|
|
200
|
+
interface Fuel {
|
|
201
|
+
/**
|
|
202
|
+
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
203
|
+
*/
|
|
204
|
+
industry_product_code?: string;
|
|
205
|
+
|
|
206
|
+
/**
|
|
207
|
+
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
|
208
|
+
*/
|
|
209
|
+
quantity_decimal?: string;
|
|
210
|
+
|
|
211
|
+
/**
|
|
212
|
+
* The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
|
213
|
+
*/
|
|
214
|
+
type?: Fuel.Type;
|
|
215
|
+
|
|
216
|
+
/**
|
|
217
|
+
* The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
|
218
|
+
*/
|
|
219
|
+
unit?: Fuel.Unit;
|
|
220
|
+
|
|
221
|
+
/**
|
|
222
|
+
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
|
223
|
+
*/
|
|
224
|
+
unit_cost_decimal?: string;
|
|
225
|
+
}
|
|
226
|
+
|
|
227
|
+
namespace Fuel {
|
|
228
|
+
type Type =
|
|
229
|
+
| 'diesel'
|
|
230
|
+
| 'other'
|
|
231
|
+
| 'unleaded_plus'
|
|
232
|
+
| 'unleaded_regular'
|
|
233
|
+
| 'unleaded_super';
|
|
234
|
+
|
|
235
|
+
type Unit =
|
|
236
|
+
| 'charging_minute'
|
|
237
|
+
| 'imperial_gallon'
|
|
238
|
+
| 'kilogram'
|
|
239
|
+
| 'kilowatt_hour'
|
|
240
|
+
| 'liter'
|
|
241
|
+
| 'other'
|
|
242
|
+
| 'pound'
|
|
243
|
+
| 'us_gallon';
|
|
244
|
+
}
|
|
245
|
+
|
|
84
246
|
interface MerchantData {
|
|
85
247
|
/**
|
|
86
248
|
* A categorization of the seller's type of business. See our [merchant categories guide](https://stripe.com/docs/issuing/merchant-categories) for a list of possible values.
|
|
@@ -540,6 +702,11 @@ declare module 'stripe' {
|
|
|
540
702
|
|
|
541
703
|
namespace AuthorizationCaptureParams {
|
|
542
704
|
interface PurchaseDetails {
|
|
705
|
+
/**
|
|
706
|
+
* Fleet-specific information for transactions using Fleet cards.
|
|
707
|
+
*/
|
|
708
|
+
fleet?: PurchaseDetails.Fleet;
|
|
709
|
+
|
|
543
710
|
/**
|
|
544
711
|
* Information about the flight that was purchased with this transaction.
|
|
545
712
|
*/
|
|
@@ -567,6 +734,112 @@ declare module 'stripe' {
|
|
|
567
734
|
}
|
|
568
735
|
|
|
569
736
|
namespace PurchaseDetails {
|
|
737
|
+
interface Fleet {
|
|
738
|
+
/**
|
|
739
|
+
* Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
|
740
|
+
*/
|
|
741
|
+
cardholder_prompt_data?: Fleet.CardholderPromptData;
|
|
742
|
+
|
|
743
|
+
/**
|
|
744
|
+
* The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
|
745
|
+
*/
|
|
746
|
+
purchase_type?: Fleet.PurchaseType;
|
|
747
|
+
|
|
748
|
+
/**
|
|
749
|
+
* More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
|
750
|
+
*/
|
|
751
|
+
reported_breakdown?: Fleet.ReportedBreakdown;
|
|
752
|
+
|
|
753
|
+
/**
|
|
754
|
+
* The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
|
755
|
+
*/
|
|
756
|
+
service_type?: Fleet.ServiceType;
|
|
757
|
+
}
|
|
758
|
+
|
|
759
|
+
namespace Fleet {
|
|
760
|
+
interface CardholderPromptData {
|
|
761
|
+
/**
|
|
762
|
+
* Driver ID.
|
|
763
|
+
*/
|
|
764
|
+
driver_id?: string;
|
|
765
|
+
|
|
766
|
+
/**
|
|
767
|
+
* Odometer reading.
|
|
768
|
+
*/
|
|
769
|
+
odometer?: number;
|
|
770
|
+
|
|
771
|
+
/**
|
|
772
|
+
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
|
773
|
+
*/
|
|
774
|
+
unspecified_id?: string;
|
|
775
|
+
|
|
776
|
+
/**
|
|
777
|
+
* User ID.
|
|
778
|
+
*/
|
|
779
|
+
user_id?: string;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* Vehicle number.
|
|
783
|
+
*/
|
|
784
|
+
vehicle_number?: string;
|
|
785
|
+
}
|
|
786
|
+
|
|
787
|
+
type PurchaseType =
|
|
788
|
+
| 'fuel_and_non_fuel_purchase'
|
|
789
|
+
| 'fuel_purchase'
|
|
790
|
+
| 'non_fuel_purchase';
|
|
791
|
+
|
|
792
|
+
interface ReportedBreakdown {
|
|
793
|
+
/**
|
|
794
|
+
* Breakdown of fuel portion of the purchase.
|
|
795
|
+
*/
|
|
796
|
+
fuel?: ReportedBreakdown.Fuel;
|
|
797
|
+
|
|
798
|
+
/**
|
|
799
|
+
* Breakdown of non-fuel portion of the purchase.
|
|
800
|
+
*/
|
|
801
|
+
non_fuel?: ReportedBreakdown.NonFuel;
|
|
802
|
+
|
|
803
|
+
/**
|
|
804
|
+
* Information about tax included in this transaction.
|
|
805
|
+
*/
|
|
806
|
+
tax?: ReportedBreakdown.Tax;
|
|
807
|
+
}
|
|
808
|
+
|
|
809
|
+
namespace ReportedBreakdown {
|
|
810
|
+
interface Fuel {
|
|
811
|
+
/**
|
|
812
|
+
* Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
|
813
|
+
*/
|
|
814
|
+
gross_amount_decimal?: string;
|
|
815
|
+
}
|
|
816
|
+
|
|
817
|
+
interface NonFuel {
|
|
818
|
+
/**
|
|
819
|
+
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
|
820
|
+
*/
|
|
821
|
+
gross_amount_decimal?: string;
|
|
822
|
+
}
|
|
823
|
+
|
|
824
|
+
interface Tax {
|
|
825
|
+
/**
|
|
826
|
+
* Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
827
|
+
*/
|
|
828
|
+
local_amount_decimal?: string;
|
|
829
|
+
|
|
830
|
+
/**
|
|
831
|
+
* Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
832
|
+
*/
|
|
833
|
+
national_amount_decimal?: string;
|
|
834
|
+
}
|
|
835
|
+
}
|
|
836
|
+
|
|
837
|
+
type ServiceType =
|
|
838
|
+
| 'full_service'
|
|
839
|
+
| 'non_fuel_transaction'
|
|
840
|
+
| 'self_service';
|
|
841
|
+
}
|
|
842
|
+
|
|
570
843
|
interface Flight {
|
|
571
844
|
/**
|
|
572
845
|
* The time that the flight departed.
|
|
@@ -629,13 +902,23 @@ declare module 'stripe' {
|
|
|
629
902
|
}
|
|
630
903
|
|
|
631
904
|
interface Fuel {
|
|
905
|
+
/**
|
|
906
|
+
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
907
|
+
*/
|
|
908
|
+
industry_product_code?: string;
|
|
909
|
+
|
|
910
|
+
/**
|
|
911
|
+
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
|
912
|
+
*/
|
|
913
|
+
quantity_decimal?: string;
|
|
914
|
+
|
|
632
915
|
/**
|
|
633
916
|
* The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
|
634
917
|
*/
|
|
635
918
|
type?: Fuel.Type;
|
|
636
919
|
|
|
637
920
|
/**
|
|
638
|
-
* The units for `
|
|
921
|
+
* The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
|
639
922
|
*/
|
|
640
923
|
unit?: Fuel.Unit;
|
|
641
924
|
|
|
@@ -643,11 +926,6 @@ declare module 'stripe' {
|
|
|
643
926
|
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
|
644
927
|
*/
|
|
645
928
|
unit_cost_decimal?: string;
|
|
646
|
-
|
|
647
|
-
/**
|
|
648
|
-
* The volume of the fuel that was pumped, represented as a decimal string with at most 12 decimal places.
|
|
649
|
-
*/
|
|
650
|
-
volume_decimal?: string;
|
|
651
929
|
}
|
|
652
930
|
|
|
653
931
|
namespace Fuel {
|
|
@@ -658,7 +936,15 @@ declare module 'stripe' {
|
|
|
658
936
|
| 'unleaded_regular'
|
|
659
937
|
| 'unleaded_super';
|
|
660
938
|
|
|
661
|
-
type Unit =
|
|
939
|
+
type Unit =
|
|
940
|
+
| 'charging_minute'
|
|
941
|
+
| 'imperial_gallon'
|
|
942
|
+
| 'kilogram'
|
|
943
|
+
| 'kilowatt_hour'
|
|
944
|
+
| 'liter'
|
|
945
|
+
| 'other'
|
|
946
|
+
| 'pound'
|
|
947
|
+
| 'us_gallon';
|
|
662
948
|
}
|
|
663
949
|
|
|
664
950
|
interface Lodging {
|
|
@@ -695,6 +981,184 @@ declare module 'stripe' {
|
|
|
695
981
|
}
|
|
696
982
|
}
|
|
697
983
|
|
|
984
|
+
namespace Issuing {
|
|
985
|
+
interface AuthorizationFinalizeAmountParams {
|
|
986
|
+
/**
|
|
987
|
+
* The final authorization amount that will be captured by the merchant. This amount is in the authorization currency and in the [smallest currency unit](https://stripe.com/docs/currencies#zero-decimal).
|
|
988
|
+
*/
|
|
989
|
+
final_amount: number;
|
|
990
|
+
|
|
991
|
+
/**
|
|
992
|
+
* Specifies which fields in the response should be expanded.
|
|
993
|
+
*/
|
|
994
|
+
expand?: Array<string>;
|
|
995
|
+
|
|
996
|
+
/**
|
|
997
|
+
* Fleet-specific information for authorizations using Fleet cards.
|
|
998
|
+
*/
|
|
999
|
+
fleet?: AuthorizationFinalizeAmountParams.Fleet;
|
|
1000
|
+
|
|
1001
|
+
/**
|
|
1002
|
+
* Information about fuel that was purchased with this transaction.
|
|
1003
|
+
*/
|
|
1004
|
+
fuel?: AuthorizationFinalizeAmountParams.Fuel;
|
|
1005
|
+
}
|
|
1006
|
+
|
|
1007
|
+
namespace AuthorizationFinalizeAmountParams {
|
|
1008
|
+
interface Fleet {
|
|
1009
|
+
/**
|
|
1010
|
+
* Answers to prompts presented to the cardholder at the point of sale. Prompted fields vary depending on the configuration of your physical fleet cards. Typical points of sale support only numeric entry.
|
|
1011
|
+
*/
|
|
1012
|
+
cardholder_prompt_data?: Fleet.CardholderPromptData;
|
|
1013
|
+
|
|
1014
|
+
/**
|
|
1015
|
+
* The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
|
|
1016
|
+
*/
|
|
1017
|
+
purchase_type?: Fleet.PurchaseType;
|
|
1018
|
+
|
|
1019
|
+
/**
|
|
1020
|
+
* More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
|
|
1021
|
+
*/
|
|
1022
|
+
reported_breakdown?: Fleet.ReportedBreakdown;
|
|
1023
|
+
|
|
1024
|
+
/**
|
|
1025
|
+
* The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
|
|
1026
|
+
*/
|
|
1027
|
+
service_type?: Fleet.ServiceType;
|
|
1028
|
+
}
|
|
1029
|
+
|
|
1030
|
+
namespace Fleet {
|
|
1031
|
+
interface CardholderPromptData {
|
|
1032
|
+
/**
|
|
1033
|
+
* Driver ID.
|
|
1034
|
+
*/
|
|
1035
|
+
driver_id?: string;
|
|
1036
|
+
|
|
1037
|
+
/**
|
|
1038
|
+
* Odometer reading.
|
|
1039
|
+
*/
|
|
1040
|
+
odometer?: number;
|
|
1041
|
+
|
|
1042
|
+
/**
|
|
1043
|
+
* An alphanumeric ID. This field is used when a vehicle ID, driver ID, or generic ID is entered by the cardholder, but the merchant or card network did not specify the prompt type.
|
|
1044
|
+
*/
|
|
1045
|
+
unspecified_id?: string;
|
|
1046
|
+
|
|
1047
|
+
/**
|
|
1048
|
+
* User ID.
|
|
1049
|
+
*/
|
|
1050
|
+
user_id?: string;
|
|
1051
|
+
|
|
1052
|
+
/**
|
|
1053
|
+
* Vehicle number.
|
|
1054
|
+
*/
|
|
1055
|
+
vehicle_number?: string;
|
|
1056
|
+
}
|
|
1057
|
+
|
|
1058
|
+
type PurchaseType =
|
|
1059
|
+
| 'fuel_and_non_fuel_purchase'
|
|
1060
|
+
| 'fuel_purchase'
|
|
1061
|
+
| 'non_fuel_purchase';
|
|
1062
|
+
|
|
1063
|
+
interface ReportedBreakdown {
|
|
1064
|
+
/**
|
|
1065
|
+
* Breakdown of fuel portion of the purchase.
|
|
1066
|
+
*/
|
|
1067
|
+
fuel?: ReportedBreakdown.Fuel;
|
|
1068
|
+
|
|
1069
|
+
/**
|
|
1070
|
+
* Breakdown of non-fuel portion of the purchase.
|
|
1071
|
+
*/
|
|
1072
|
+
non_fuel?: ReportedBreakdown.NonFuel;
|
|
1073
|
+
|
|
1074
|
+
/**
|
|
1075
|
+
* Information about tax included in this transaction.
|
|
1076
|
+
*/
|
|
1077
|
+
tax?: ReportedBreakdown.Tax;
|
|
1078
|
+
}
|
|
1079
|
+
|
|
1080
|
+
namespace ReportedBreakdown {
|
|
1081
|
+
interface Fuel {
|
|
1082
|
+
/**
|
|
1083
|
+
* Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
|
|
1084
|
+
*/
|
|
1085
|
+
gross_amount_decimal?: string;
|
|
1086
|
+
}
|
|
1087
|
+
|
|
1088
|
+
interface NonFuel {
|
|
1089
|
+
/**
|
|
1090
|
+
* Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
|
|
1091
|
+
*/
|
|
1092
|
+
gross_amount_decimal?: string;
|
|
1093
|
+
}
|
|
1094
|
+
|
|
1095
|
+
interface Tax {
|
|
1096
|
+
/**
|
|
1097
|
+
* Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
1098
|
+
*/
|
|
1099
|
+
local_amount_decimal?: string;
|
|
1100
|
+
|
|
1101
|
+
/**
|
|
1102
|
+
* Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
|
|
1103
|
+
*/
|
|
1104
|
+
national_amount_decimal?: string;
|
|
1105
|
+
}
|
|
1106
|
+
}
|
|
1107
|
+
|
|
1108
|
+
type ServiceType =
|
|
1109
|
+
| 'full_service'
|
|
1110
|
+
| 'non_fuel_transaction'
|
|
1111
|
+
| 'self_service';
|
|
1112
|
+
}
|
|
1113
|
+
|
|
1114
|
+
interface Fuel {
|
|
1115
|
+
/**
|
|
1116
|
+
* [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
|
|
1117
|
+
*/
|
|
1118
|
+
industry_product_code?: string;
|
|
1119
|
+
|
|
1120
|
+
/**
|
|
1121
|
+
* The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
|
|
1122
|
+
*/
|
|
1123
|
+
quantity_decimal?: string;
|
|
1124
|
+
|
|
1125
|
+
/**
|
|
1126
|
+
* The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
|
|
1127
|
+
*/
|
|
1128
|
+
type?: Fuel.Type;
|
|
1129
|
+
|
|
1130
|
+
/**
|
|
1131
|
+
* The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
|
|
1132
|
+
*/
|
|
1133
|
+
unit?: Fuel.Unit;
|
|
1134
|
+
|
|
1135
|
+
/**
|
|
1136
|
+
* The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
|
|
1137
|
+
*/
|
|
1138
|
+
unit_cost_decimal?: string;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
namespace Fuel {
|
|
1142
|
+
type Type =
|
|
1143
|
+
| 'diesel'
|
|
1144
|
+
| 'other'
|
|
1145
|
+
| 'unleaded_plus'
|
|
1146
|
+
| 'unleaded_regular'
|
|
1147
|
+
| 'unleaded_super';
|
|
1148
|
+
|
|
1149
|
+
type Unit =
|
|
1150
|
+
| 'charging_minute'
|
|
1151
|
+
| 'imperial_gallon'
|
|
1152
|
+
| 'kilogram'
|
|
1153
|
+
| 'kilowatt_hour'
|
|
1154
|
+
| 'liter'
|
|
1155
|
+
| 'other'
|
|
1156
|
+
| 'pound'
|
|
1157
|
+
| 'us_gallon';
|
|
1158
|
+
}
|
|
1159
|
+
}
|
|
1160
|
+
}
|
|
1161
|
+
|
|
698
1162
|
namespace Issuing {
|
|
699
1163
|
interface AuthorizationIncrementParams {
|
|
700
1164
|
/**
|
|
@@ -764,6 +1228,15 @@ declare module 'stripe' {
|
|
|
764
1228
|
options?: RequestOptions
|
|
765
1229
|
): Promise<Stripe.Response<Stripe.Issuing.Authorization>>;
|
|
766
1230
|
|
|
1231
|
+
/**
|
|
1232
|
+
* Finalize the amount on an Authorization prior to capture, when the initial authorization was for an estimated amount.
|
|
1233
|
+
*/
|
|
1234
|
+
finalizeAmount(
|
|
1235
|
+
id: string,
|
|
1236
|
+
params: AuthorizationFinalizeAmountParams,
|
|
1237
|
+
options?: RequestOptions
|
|
1238
|
+
): Promise<Stripe.Response<Stripe.Issuing.Authorization>>;
|
|
1239
|
+
|
|
767
1240
|
/**
|
|
768
1241
|
* Increment a test-mode Authorization.
|
|
769
1242
|
*/
|