Debian Codegraph @

stripe/params/test_helpers/issuing/_transaction_create_force_capture_params.py

raw
1 # -*- coding: utf-8 -*-
2 # File generated from our OpenAPI spec
3 from typing import List
4 from typing_extensions import Literal, NotRequired, TypedDict
5
6
7 class TransactionCreateForceCaptureParams(TypedDict):
8 amount: int
9 """
10 The total amount to attempt to capture. This amount is in the provided currency, or defaults to the cards currency, and in the [smallest currency unit](https://docs.stripe.com/currencies#zero-decimal).
11 """
12 card: str
13 """
14 Card associated with this transaction.
15 """
16 currency: NotRequired[str]
17 """
18 The currency of the capture. If not provided, defaults to the currency of the card. Three-letter [ISO currency code](https://www.iso.org/iso-4217-currency-codes.html), in lowercase. Must be a [supported currency](https://stripe.com/docs/currencies).
19 """
20 expand: NotRequired[List[str]]
21 """
22 Specifies which fields in the response should be expanded.
23 """
24 merchant_data: NotRequired[
25 "TransactionCreateForceCaptureParamsMerchantData"
26 ]
27 """
28 Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
29 """
30 purchase_details: NotRequired[
31 "TransactionCreateForceCaptureParamsPurchaseDetails"
32 ]
33 """
34 Additional purchase information that is optionally provided by the merchant.
35 """
36
37
38 class TransactionCreateForceCaptureParamsMerchantData(TypedDict):
39 category: NotRequired[
40 Literal[
41 "ac_refrigeration_repair",
42 "accounting_bookkeeping_services",
43 "advertising_services",
44 "agricultural_cooperative",
45 "airlines_air_carriers",
46 "airports_flying_fields",
47 "ambulance_services",
48 "amusement_parks_carnivals",
49 "antique_reproductions",
50 "antique_shops",
51 "aquariums",
52 "architectural_surveying_services",
53 "art_dealers_and_galleries",
54 "artists_supply_and_craft_shops",
55 "auto_and_home_supply_stores",
56 "auto_body_repair_shops",
57 "auto_paint_shops",
58 "auto_service_shops",
59 "automated_cash_disburse",
60 "automated_fuel_dispensers",
61 "automobile_associations",
62 "automotive_parts_and_accessories_stores",
63 "automotive_tire_stores",
64 "bail_and_bond_payments",
65 "bakeries",
66 "bands_orchestras",
67 "barber_and_beauty_shops",
68 "betting_casino_gambling",
69 "bicycle_shops",
70 "billiard_pool_establishments",
71 "boat_dealers",
72 "boat_rentals_and_leases",
73 "book_stores",
74 "books_periodicals_and_newspapers",
75 "bowling_alleys",
76 "bus_lines",
77 "business_secretarial_schools",
78 "buying_shopping_services",
79 "cable_satellite_and_other_pay_television_and_radio",
80 "camera_and_photographic_supply_stores",
81 "candy_nut_and_confectionery_stores",
82 "car_and_truck_dealers_new_used",
83 "car_and_truck_dealers_used_only",
84 "car_rental_agencies",
85 "car_washes",
86 "carpentry_services",
87 "carpet_upholstery_cleaning",
88 "caterers",
89 "charitable_and_social_service_organizations_fundraising",
90 "chemicals_and_allied_products",
91 "child_care_services",
92 "childrens_and_infants_wear_stores",
93 "chiropodists_podiatrists",
94 "chiropractors",
95 "cigar_stores_and_stands",
96 "civic_social_fraternal_associations",
97 "cleaning_and_maintenance",
98 "clothing_rental",
99 "colleges_universities",
100 "commercial_equipment",
101 "commercial_footwear",
102 "commercial_photography_art_and_graphics",
103 "commuter_transport_and_ferries",
104 "computer_network_services",
105 "computer_programming",
106 "computer_repair",
107 "computer_software_stores",
108 "computers_peripherals_and_software",
109 "concrete_work_services",
110 "construction_materials",
111 "consulting_public_relations",
112 "correspondence_schools",
113 "cosmetic_stores",
114 "counseling_services",
115 "country_clubs",
116 "courier_services",
117 "court_costs",
118 "credit_reporting_agencies",
119 "cruise_lines",
120 "dairy_products_stores",
121 "dance_hall_studios_schools",
122 "dating_escort_services",
123 "dentists_orthodontists",
124 "department_stores",
125 "detective_agencies",
126 "digital_goods_applications",
127 "digital_goods_games",
128 "digital_goods_large_volume",
129 "digital_goods_media",
130 "direct_marketing_catalog_merchant",
131 "direct_marketing_combination_catalog_and_retail_merchant",
132 "direct_marketing_inbound_telemarketing",
133 "direct_marketing_insurance_services",
134 "direct_marketing_other",
135 "direct_marketing_outbound_telemarketing",
136 "direct_marketing_subscription",
137 "direct_marketing_travel",
138 "discount_stores",
139 "doctors",
140 "door_to_door_sales",
141 "drapery_window_covering_and_upholstery_stores",
142 "drinking_places",
143 "drug_stores_and_pharmacies",
144 "drugs_drug_proprietaries_and_druggist_sundries",
145 "dry_cleaners",
146 "durable_goods",
147 "duty_free_stores",
148 "eating_places_restaurants",
149 "educational_services",
150 "electric_razor_stores",
151 "electric_vehicle_charging",
152 "electrical_parts_and_equipment",
153 "electrical_services",
154 "electronics_repair_shops",
155 "electronics_stores",
156 "elementary_secondary_schools",
157 "emergency_services_gcas_visa_use_only",
158 "employment_temp_agencies",
159 "equipment_rental",
160 "exterminating_services",
161 "family_clothing_stores",
162 "fast_food_restaurants",
163 "financial_institutions",
164 "fines_government_administrative_entities",
165 "fireplace_fireplace_screens_and_accessories_stores",
166 "floor_covering_stores",
167 "florists",
168 "florists_supplies_nursery_stock_and_flowers",
169 "freezer_and_locker_meat_provisioners",
170 "fuel_dealers_non_automotive",
171 "funeral_services_crematories",
172 "furniture_home_furnishings_and_equipment_stores_except_appliances",
173 "furniture_repair_refinishing",
174 "furriers_and_fur_shops",
175 "general_services",
176 "gift_card_novelty_and_souvenir_shops",
177 "glass_paint_and_wallpaper_stores",
178 "glassware_crystal_stores",
179 "golf_courses_public",
180 "government_licensed_horse_dog_racing_us_region_only",
181 "government_licensed_online_casions_online_gambling_us_region_only",
182 "government_owned_lotteries_non_us_region",
183 "government_owned_lotteries_us_region_only",
184 "government_services",
185 "grocery_stores_supermarkets",
186 "hardware_equipment_and_supplies",
187 "hardware_stores",
188 "health_and_beauty_spas",
189 "hearing_aids_sales_and_supplies",
190 "heating_plumbing_a_c",
191 "hobby_toy_and_game_shops",
192 "home_supply_warehouse_stores",
193 "hospitals",
194 "hotels_motels_and_resorts",
195 "household_appliance_stores",
196 "industrial_supplies",
197 "information_retrieval_services",
198 "insurance_default",
199 "insurance_underwriting_premiums",
200 "intra_company_purchases",
201 "jewelry_stores_watches_clocks_and_silverware_stores",
202 "landscaping_services",
203 "laundries",
204 "laundry_cleaning_services",
205 "legal_services_attorneys",
206 "luggage_and_leather_goods_stores",
207 "lumber_building_materials_stores",
208 "manual_cash_disburse",
209 "marinas_service_and_supplies",
210 "marketplaces",
211 "masonry_stonework_and_plaster",
212 "massage_parlors",
213 "medical_and_dental_labs",
214 "medical_dental_ophthalmic_and_hospital_equipment_and_supplies",
215 "medical_services",
216 "membership_organizations",
217 "mens_and_boys_clothing_and_accessories_stores",
218 "mens_womens_clothing_stores",
219 "metal_service_centers",
220 "miscellaneous_apparel_and_accessory_shops",
221 "miscellaneous_auto_dealers",
222 "miscellaneous_business_services",
223 "miscellaneous_food_stores",
224 "miscellaneous_general_merchandise",
225 "miscellaneous_general_services",
226 "miscellaneous_home_furnishing_specialty_stores",
227 "miscellaneous_publishing_and_printing",
228 "miscellaneous_recreation_services",
229 "miscellaneous_repair_shops",
230 "miscellaneous_specialty_retail",
231 "mobile_home_dealers",
232 "motion_picture_theaters",
233 "motor_freight_carriers_and_trucking",
234 "motor_homes_dealers",
235 "motor_vehicle_supplies_and_new_parts",
236 "motorcycle_shops_and_dealers",
237 "motorcycle_shops_dealers",
238 "music_stores_musical_instruments_pianos_and_sheet_music",
239 "news_dealers_and_newsstands",
240 "non_fi_money_orders",
241 "non_fi_stored_value_card_purchase_load",
242 "nondurable_goods",
243 "nurseries_lawn_and_garden_supply_stores",
244 "nursing_personal_care",
245 "office_and_commercial_furniture",
246 "opticians_eyeglasses",
247 "optometrists_ophthalmologist",
248 "orthopedic_goods_prosthetic_devices",
249 "osteopaths",
250 "package_stores_beer_wine_and_liquor",
251 "paints_varnishes_and_supplies",
252 "parking_lots_garages",
253 "passenger_railways",
254 "pawn_shops",
255 "pet_shops_pet_food_and_supplies",
256 "petroleum_and_petroleum_products",
257 "photo_developing",
258 "photographic_photocopy_microfilm_equipment_and_supplies",
259 "photographic_studios",
260 "picture_video_production",
261 "piece_goods_notions_and_other_dry_goods",
262 "plumbing_heating_equipment_and_supplies",
263 "political_organizations",
264 "postal_services_government_only",
265 "precious_stones_and_metals_watches_and_jewelry",
266 "professional_services",
267 "public_warehousing_and_storage",
268 "quick_copy_repro_and_blueprint",
269 "railroads",
270 "real_estate_agents_and_managers_rentals",
271 "record_stores",
272 "recreational_vehicle_rentals",
273 "religious_goods_stores",
274 "religious_organizations",
275 "roofing_siding_sheet_metal",
276 "secretarial_support_services",
277 "security_brokers_dealers",
278 "service_stations",
279 "sewing_needlework_fabric_and_piece_goods_stores",
280 "shoe_repair_hat_cleaning",
281 "shoe_stores",
282 "small_appliance_repair",
283 "snowmobile_dealers",
284 "special_trade_services",
285 "specialty_cleaning",
286 "sporting_goods_stores",
287 "sporting_recreation_camps",
288 "sports_and_riding_apparel_stores",
289 "sports_clubs_fields",
290 "stamp_and_coin_stores",
291 "stationary_office_supplies_printing_and_writing_paper",
292 "stationery_stores_office_and_school_supply_stores",
293 "swimming_pools_sales",
294 "t_ui_travel_germany",
295 "tailors_alterations",
296 "tax_payments_government_agencies",
297 "tax_preparation_services",
298 "taxicabs_limousines",
299 "telecommunication_equipment_and_telephone_sales",
300 "telecommunication_services",
301 "telegraph_services",
302 "tent_and_awning_shops",
303 "testing_laboratories",
304 "theatrical_ticket_agencies",
305 "timeshares",
306 "tire_retreading_and_repair",
307 "tolls_bridge_fees",
308 "tourist_attractions_and_exhibits",
309 "towing_services",
310 "trailer_parks_campgrounds",
311 "transportation_services",
312 "travel_agencies_tour_operators",
313 "truck_stop_iteration",
314 "truck_utility_trailer_rentals",
315 "typesetting_plate_making_and_related_services",
316 "typewriter_stores",
317 "u_s_federal_government_agencies_or_departments",
318 "uniforms_commercial_clothing",
319 "used_merchandise_and_secondhand_stores",
320 "utilities",
321 "variety_stores",
322 "veterinary_services",
323 "video_amusement_game_supplies",
324 "video_game_arcades",
325 "video_tape_rental_stores",
326 "vocational_trade_schools",
327 "watch_jewelry_repair",
328 "welding_repair",
329 "wholesale_clubs",
330 "wig_and_toupee_stores",
331 "wires_money_orders",
332 "womens_accessory_and_specialty_shops",
333 "womens_ready_to_wear_stores",
334 "wrecking_and_salvage_yards",
335 ]
336 ]
337 """
338 A categorization of the seller's type of business. See our [merchant categories guide](https://docs.stripe.com/issuing/merchant-categories) for a list of possible values.
339 """
340 city: NotRequired[str]
341 """
342 City where the seller is located
343 """
344 country: NotRequired[str]
345 """
346 Country where the seller is located
347 """
348 name: NotRequired[str]
349 """
350 Name of the seller
351 """
352 network_id: NotRequired[str]
353 """
354 Identifier assigned to the seller by the card network. Different card networks may assign different network_id fields to the same merchant.
355 """
356 postal_code: NotRequired[str]
357 """
358 Postal code where the seller is located
359 """
360 state: NotRequired[str]
361 """
362 State where the seller is located
363 """
364 terminal_id: NotRequired[str]
365 """
366 An ID assigned by the seller to the location of the sale.
367 """
368 url: NotRequired[str]
369 """
370 URL provided by the merchant on a 3DS request
371 """
372
373
374 class TransactionCreateForceCaptureParamsPurchaseDetails(TypedDict):
375 fleet: NotRequired[
376 "TransactionCreateForceCaptureParamsPurchaseDetailsFleet"
377 ]
378 """
379 Fleet-specific information for transactions using Fleet cards.
380 """
381 flight: NotRequired[
382 "TransactionCreateForceCaptureParamsPurchaseDetailsFlight"
383 ]
384 """
385 Information about the flight that was purchased with this transaction.
386 """
387 fuel: NotRequired["TransactionCreateForceCaptureParamsPurchaseDetailsFuel"]
388 """
389 Information about fuel that was purchased with this transaction.
390 """
391 lodging: NotRequired[
392 "TransactionCreateForceCaptureParamsPurchaseDetailsLodging"
393 ]
394 """
395 Information about lodging that was purchased with this transaction.
396 """
397 receipt: NotRequired[
398 List["TransactionCreateForceCaptureParamsPurchaseDetailsReceipt"]
399 ]
400 """
401 The line items in the purchase.
402 """
403 reference: NotRequired[str]
404 """
405 A merchant-specific order number.
406 """
407
408
409 class TransactionCreateForceCaptureParamsPurchaseDetailsFleet(TypedDict):
410 cardholder_prompt_data: NotRequired[
411 "TransactionCreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptData"
412 ]
413 """
414 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.
415 """
416 purchase_type: NotRequired[
417 Literal[
418 "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
419 ]
420 ]
421 """
422 The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
423 """
424 reported_breakdown: NotRequired[
425 "TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdown"
426 ]
427 """
428 More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
429 """
430 service_type: NotRequired[
431 Literal["full_service", "non_fuel_transaction", "self_service"]
432 ]
433 """
434 The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
435 """
436
437
438 class TransactionCreateForceCaptureParamsPurchaseDetailsFleetCardholderPromptData(
439 TypedDict,
440 ):
441 driver_id: NotRequired[str]
442 """
443 Driver ID.
444 """
445 odometer: NotRequired[int]
446 """
447 Odometer reading.
448 """
449 unspecified_id: NotRequired[str]
450 """
451 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.
452 """
453 user_id: NotRequired[str]
454 """
455 User ID.
456 """
457 vehicle_number: NotRequired[str]
458 """
459 Vehicle number.
460 """
461
462
463 class TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdown(
464 TypedDict,
465 ):
466 fuel: NotRequired[
467 "TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel"
468 ]
469 """
470 Breakdown of fuel portion of the purchase.
471 """
472 non_fuel: NotRequired[
473 "TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel"
474 ]
475 """
476 Breakdown of non-fuel portion of the purchase.
477 """
478 tax: NotRequired[
479 "TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTax"
480 ]
481 """
482 Information about tax included in this transaction.
483 """
484
485
486 class TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownFuel(
487 TypedDict,
488 ):
489 gross_amount_decimal: NotRequired[str]
490 """
491 Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
492 """
493
494
495 class TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownNonFuel(
496 TypedDict,
497 ):
498 gross_amount_decimal: NotRequired[str]
499 """
500 Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
501 """
502
503
504 class TransactionCreateForceCaptureParamsPurchaseDetailsFleetReportedBreakdownTax(
505 TypedDict,
506 ):
507 local_amount_decimal: NotRequired[str]
508 """
509 Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
510 """
511 national_amount_decimal: NotRequired[str]
512 """
513 Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
514 """
515
516
517 class TransactionCreateForceCaptureParamsPurchaseDetailsFlight(TypedDict):
518 departure_at: NotRequired[int]
519 """
520 The time that the flight departed.
521 """
522 passenger_name: NotRequired[str]
523 """
524 The name of the passenger.
525 """
526 refundable: NotRequired[bool]
527 """
528 Whether the ticket is refundable.
529 """
530 segments: NotRequired[
531 List["TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment"]
532 ]
533 """
534 The legs of the trip.
535 """
536 travel_agency: NotRequired[str]
537 """
538 The travel agency that issued the ticket.
539 """
540
541
542 class TransactionCreateForceCaptureParamsPurchaseDetailsFlightSegment(
543 TypedDict,
544 ):
545 arrival_airport_code: NotRequired[str]
546 """
547 The three-letter IATA airport code of the flight's destination.
548 """
549 carrier: NotRequired[str]
550 """
551 The airline carrier code.
552 """
553 departure_airport_code: NotRequired[str]
554 """
555 The three-letter IATA airport code that the flight departed from.
556 """
557 flight_number: NotRequired[str]
558 """
559 The flight number.
560 """
561 service_class: NotRequired[str]
562 """
563 The flight's service class.
564 """
565 stopover_allowed: NotRequired[bool]
566 """
567 Whether a stopover is allowed on this flight.
568 """
569
570
571 class TransactionCreateForceCaptureParamsPurchaseDetailsFuel(TypedDict):
572 industry_product_code: NotRequired[str]
573 """
574 [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
575 """
576 quantity_decimal: NotRequired[str]
577 """
578 The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
579 """
580 type: NotRequired[
581 Literal[
582 "diesel",
583 "other",
584 "unleaded_plus",
585 "unleaded_regular",
586 "unleaded_super",
587 ]
588 ]
589 """
590 The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
591 """
592 unit: NotRequired[
593 Literal[
594 "charging_minute",
595 "imperial_gallon",
596 "kilogram",
597 "kilowatt_hour",
598 "liter",
599 "other",
600 "pound",
601 "us_gallon",
602 ]
603 ]
604 """
605 The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
606 """
607 unit_cost_decimal: NotRequired[str]
608 """
609 The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
610 """
611
612
613 class TransactionCreateForceCaptureParamsPurchaseDetailsLodging(TypedDict):
614 check_in_at: NotRequired[int]
615 """
616 The time of checking into the lodging.
617 """
618 nights: NotRequired[int]
619 """
620 The number of nights stayed at the lodging.
621 """
622
623
624 class TransactionCreateForceCaptureParamsPurchaseDetailsReceipt(TypedDict):
625 description: NotRequired[str]
626 quantity: NotRequired[str]
627 total: NotRequired[int]
628 unit_cost: NotRequired[int]