Debian Codegraph @

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