Debian Codegraph @

stripe/params/issuing/_transaction_create_force_capture_params.py

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