(
self,
account: AccountRecord,
session: AccountSessionState,
request: PreviewPaymentRequest,
*,
invitation_code: str,
ticket: str,
randstr: str,
allow_fallback_proxy: bool = False,
)
| 50 | ) |
| 51 | |
| 52 | def preview_payment( |
| 53 | self, |
| 54 | account: AccountRecord, |
| 55 | session: AccountSessionState, |
| 56 | request: PreviewPaymentRequest, |
| 57 | *, |
| 58 | invitation_code: str, |
| 59 | ticket: str, |
| 60 | randstr: str, |
| 61 | ) -> ApiCallResult: |
| 62 | return self._request( |
| 63 | account, |
| 64 | session, |
| 65 | "POST", |
| 66 | "/biz/pay/preview", |
| 67 | json_body={ |
| 68 | "productId": request.product_id, |
| 69 | "invitationCode": invitation_code, |
| 70 | "ticket": ticket, |
| 71 | "randstr": randstr, |
| 72 | }, |
| 73 | ) |
| 74 | |
| 75 | def create_sign( |
| 76 | self, |
| 77 | account: AccountRecord, |
| 78 | session: AccountSessionState, |
no test coverage detected