Coverage for functions \ flipdare \ generated \ schema \ payment \ payment_create_request_schema.py: 100%

0 statements  

« prev     ^ index     » next       coverage.py v7.13.0, created at 2026-05-08 12:22 +1000

1#!/usr/bin/env python 

2# 

3# Copyright (c) 2026 Flipdare Pty Ltd. All rights reserved. 

4# 

5# This file is part of Flipdare's proprietary software and contains 

6# confidential and copyrighted material. Unauthorised copying, 

7# modification, distribution, or use of this file is strictly 

8# prohibited without prior written permission from Flipdare Pty Ltd. 

9# 

10# This software includes third-party components licensed under MIT, 

11# BSD, and Apache 2.0 licences. See THIRD_PARTY_NOTICES for details. 

12# 

13# NOTE: THIS FILE IS AUTO GENERATED. DO NOT EDIT. 

14# 

15# Generated by codegen_models.py 

16# 

17# Modify 'codegen_models.py' 

18# and re-run the script above to update. 

19# 

20 

21# pragma: no cover 

22 

23 

24from typing import TypedDict, NotRequired 

25from flipdare.generated.shared.stripe.stripe_currency_code import StripeCurrencyCode 

26from enum import StrEnum 

27 

28 

29class PaymentCreateRequestKey(StrEnum): 

30 IP_ADDRESS = "ip_address" 

31 DEVICE_FINGERPRINT = "device_fingerprint" 

32 CUSTOMER_UID = "customer_uid" 

33 CUSTOMER_ID = "customer_id" 

34 ACCOUNT_ID = "account_id" 

35 ACCOUNT_UID = "account_uid" 

36 DARE_ID = "dare_id" 

37 GID = "gid" 

38 EMAIL = "email" 

39 PLEDGE_AMOUNT = "pledge_amount" 

40 CURRENCY_CODE = "currency_code" 

41 NAME = "name" 

42 OVERWRITE = "overwrite" 

43 

44 

45class PaymentCreateRequestSchema(TypedDict): 

46 """Request body for creating a payment for a pledge.""" 

47 

48 ip_address: str 

49 device_fingerprint: str 

50 customer_uid: str 

51 customer_id: NotRequired[str] 

52 account_id: str 

53 account_uid: str 

54 dare_id: str 

55 gid: NotRequired[str] 

56 email: str 

57 pledge_amount: int 

58 currency_code: StripeCurrencyCode 

59 name: NotRequired[str] 

60 overwrite: NotRequired[bool]