Debian Codegraph @

stripe/params/test_helpers/issuing/_transaction_create_unlinked_refund_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 TransactionCreateUnlinkedRefundParams(TypedDict):
8 amount: int
9 """
10 The total amount to attempt to refund. 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 unlinked refund transaction.
15 """
16 currency: NotRequired[str]
17 """
18 The currency of the unlinked refund. 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 "TransactionCreateUnlinkedRefundParamsMerchantData"
26 ]
27 """
28 Details about the seller (grocery store, e-commerce website, etc.) where the card authorization happened.
29 """
30 purchase_details: NotRequired[
31 "TransactionCreateUnlinkedRefundParamsPurchaseDetails"
32 ]
33 """
34 Additional purchase information that is optionally provided by the merchant.
35 """
36
37
38 class TransactionCreateUnlinkedRefundParamsMerchantData(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 TransactionCreateUnlinkedRefundParamsPurchaseDetails(TypedDict):
375 fleet: NotRequired[
376 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet"
377 ]
378 """
379 Fleet-specific information for transactions using Fleet cards.
380 """
381 flight: NotRequired[
382 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight"
383 ]
384 """
385 Information about the flight that was purchased with this transaction.
386 """
387 fuel: NotRequired[
388 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel"
389 ]
390 """
391 Information about fuel that was purchased with this transaction.
392 """
393 lodging: NotRequired[
394 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging"
395 ]
396 """
397 Information about lodging that was purchased with this transaction.
398 """
399 receipt: NotRequired[
400 List["TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt"]
401 ]
402 """
403 The line items in the purchase.
404 """
405 reference: NotRequired[str]
406 """
407 A merchant-specific order number.
408 """
409
410
411 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleet(TypedDict):
412 cardholder_prompt_data: NotRequired[
413 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptData"
414 ]
415 """
416 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.
417 """
418 purchase_type: NotRequired[
419 Literal[
420 "fuel_and_non_fuel_purchase", "fuel_purchase", "non_fuel_purchase"
421 ]
422 ]
423 """
424 The type of purchase. One of `fuel_purchase`, `non_fuel_purchase`, or `fuel_and_non_fuel_purchase`.
425 """
426 reported_breakdown: NotRequired[
427 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdown"
428 ]
429 """
430 More information about the total amount. This information is not guaranteed to be accurate as some merchants may provide unreliable data.
431 """
432 service_type: NotRequired[
433 Literal["full_service", "non_fuel_transaction", "self_service"]
434 ]
435 """
436 The type of fuel service. One of `non_fuel_transaction`, `full_service`, or `self_service`.
437 """
438
439
440 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetCardholderPromptData(
441 TypedDict,
442 ):
443 driver_id: NotRequired[str]
444 """
445 Driver ID.
446 """
447 odometer: NotRequired[int]
448 """
449 Odometer reading.
450 """
451 unspecified_id: NotRequired[str]
452 """
453 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.
454 """
455 user_id: NotRequired[str]
456 """
457 User ID.
458 """
459 vehicle_number: NotRequired[str]
460 """
461 Vehicle number.
462 """
463
464
465 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdown(
466 TypedDict,
467 ):
468 fuel: NotRequired[
469 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuel"
470 ]
471 """
472 Breakdown of fuel portion of the purchase.
473 """
474 non_fuel: NotRequired[
475 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuel"
476 ]
477 """
478 Breakdown of non-fuel portion of the purchase.
479 """
480 tax: NotRequired[
481 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTax"
482 ]
483 """
484 Information about tax included in this transaction.
485 """
486
487
488 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownFuel(
489 TypedDict,
490 ):
491 gross_amount_decimal: NotRequired[str]
492 """
493 Gross fuel amount that should equal Fuel Volume multipled by Fuel Unit Cost, inclusive of taxes.
494 """
495
496
497 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownNonFuel(
498 TypedDict,
499 ):
500 gross_amount_decimal: NotRequired[str]
501 """
502 Gross non-fuel amount that should equal the sum of the line items, inclusive of taxes.
503 """
504
505
506 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFleetReportedBreakdownTax(
507 TypedDict,
508 ):
509 local_amount_decimal: NotRequired[str]
510 """
511 Amount of state or provincial Sales Tax included in the transaction amount. Null if not reported by merchant or not subject to tax.
512 """
513 national_amount_decimal: NotRequired[str]
514 """
515 Amount of national Sales Tax or VAT included in the transaction amount. Null if not reported by merchant or not subject to tax.
516 """
517
518
519 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlight(TypedDict):
520 departure_at: NotRequired[int]
521 """
522 The time that the flight departed.
523 """
524 passenger_name: NotRequired[str]
525 """
526 The name of the passenger.
527 """
528 refundable: NotRequired[bool]
529 """
530 Whether the ticket is refundable.
531 """
532 segments: NotRequired[
533 List[
534 "TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment"
535 ]
536 ]
537 """
538 The legs of the trip.
539 """
540 travel_agency: NotRequired[str]
541 """
542 The travel agency that issued the ticket.
543 """
544
545
546 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFlightSegment(
547 TypedDict,
548 ):
549 arrival_airport_code: NotRequired[str]
550 """
551 The three-letter IATA airport code of the flight's destination.
552 """
553 carrier: NotRequired[str]
554 """
555 The airline carrier code.
556 """
557 departure_airport_code: NotRequired[str]
558 """
559 The three-letter IATA airport code that the flight departed from.
560 """
561 flight_number: NotRequired[str]
562 """
563 The flight number.
564 """
565 service_class: NotRequired[str]
566 """
567 The flight's service class.
568 """
569 stopover_allowed: NotRequired[bool]
570 """
571 Whether a stopover is allowed on this flight.
572 """
573
574
575 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsFuel(TypedDict):
576 industry_product_code: NotRequired[str]
577 """
578 [Conexxus Payment System Product Code](https://www.conexxus.org/conexxus-payment-system-product-codes) identifying the primary fuel product purchased.
579 """
580 quantity_decimal: NotRequired[str]
581 """
582 The quantity of `unit`s of fuel that was dispensed, represented as a decimal string with at most 12 decimal places.
583 """
584 type: NotRequired[
585 Literal[
586 "diesel",
587 "other",
588 "unleaded_plus",
589 "unleaded_regular",
590 "unleaded_super",
591 ]
592 ]
593 """
594 The type of fuel that was purchased. One of `diesel`, `unleaded_plus`, `unleaded_regular`, `unleaded_super`, or `other`.
595 """
596 unit: NotRequired[
597 Literal[
598 "charging_minute",
599 "imperial_gallon",
600 "kilogram",
601 "kilowatt_hour",
602 "liter",
603 "other",
604 "pound",
605 "us_gallon",
606 ]
607 ]
608 """
609 The units for `quantity_decimal`. One of `charging_minute`, `imperial_gallon`, `kilogram`, `kilowatt_hour`, `liter`, `pound`, `us_gallon`, or `other`.
610 """
611 unit_cost_decimal: NotRequired[str]
612 """
613 The cost in cents per each unit of fuel, represented as a decimal string with at most 12 decimal places.
614 """
615
616
617 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsLodging(TypedDict):
618 check_in_at: NotRequired[int]
619 """
620 The time of checking into the lodging.
621 """
622 nights: NotRequired[int]
623 """
624 The number of nights stayed at the lodging.
625 """
626
627
628 class TransactionCreateUnlinkedRefundParamsPurchaseDetailsReceipt(TypedDict):
629 description: NotRequired[str]
630 quantity: NotRequired[str]
631 total: NotRequired[int]
632 unit_cost: NotRequired[int]