global-open-sdk-python 1.3.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- com/__init__.py +1 -0
- com/alipay/__init__.py +0 -0
- com/alipay/ams/__init__.py +0 -0
- com/alipay/ams/api/__init__.py +0 -0
- com/alipay/ams/api/default_alipay_client.py +114 -0
- com/alipay/ams/api/exception/__init__.py +0 -0
- com/alipay/ams/api/exception/exception.py +6 -0
- com/alipay/ams/api/model/__init__.py +0 -0
- com/alipay/ams/api/model/account_balance.py +49 -0
- com/alipay/ams/api/model/account_holder_type.py +10 -0
- com/alipay/ams/api/model/account_type.py +11 -0
- com/alipay/ams/api/model/acquirer_info.py +86 -0
- com/alipay/ams/api/model/address.py +121 -0
- com/alipay/ams/api/model/agreement_info.py +35 -0
- com/alipay/ams/api/model/amount.py +39 -0
- com/alipay/ams/api/model/amount_limit.py +44 -0
- com/alipay/ams/api/model/amount_limit_info.py +44 -0
- com/alipay/ams/api/model/antom_path_constants.py +55 -0
- com/alipay/ams/api/model/association_type.py +15 -0
- com/alipay/ams/api/model/attachment.py +54 -0
- com/alipay/ams/api/model/attachment_type.py +26 -0
- com/alipay/ams/api/model/auth_code_form.py +20 -0
- com/alipay/ams/api/model/auth_meta_data.py +32 -0
- com/alipay/ams/api/model/authentication_channel_type.py +12 -0
- com/alipay/ams/api/model/authentication_type.py +11 -0
- com/alipay/ams/api/model/authorization_error.py +27 -0
- com/alipay/ams/api/model/authorization_phase.py +10 -0
- com/alipay/ams/api/model/browser_info.py +65 -0
- com/alipay/ams/api/model/business_info.py +89 -0
- com/alipay/ams/api/model/business_type.py +13 -0
- com/alipay/ams/api/model/buyer.py +59 -0
- com/alipay/ams/api/model/cancellation_type.py +9 -0
- com/alipay/ams/api/model/capture_mode.py +10 -0
- com/alipay/ams/api/model/card_brand.py +54 -0
- com/alipay/ams/api/model/card_brand_type.py +13 -0
- com/alipay/ams/api/model/card_payment_method_detail.py +444 -0
- com/alipay/ams/api/model/card_verification_result.py +76 -0
- com/alipay/ams/api/model/certificate.py +65 -0
- com/alipay/ams/api/model/certificate_type.py +15 -0
- com/alipay/ams/api/model/challenge_action_form.py +63 -0
- com/alipay/ams/api/model/challenge_trigger_source_type.py +13 -0
- com/alipay/ams/api/model/challenge_type.py +14 -0
- com/alipay/ams/api/model/china_extra_trans_info.py +130 -0
- com/alipay/ams/api/model/class_type.py +11 -0
- com/alipay/ams/api/model/clearing_channel.py +7 -0
- com/alipay/ams/api/model/code_detail.py +53 -0
- com/alipay/ams/api/model/code_value_type.py +24 -0
- com/alipay/ams/api/model/company.py +141 -0
- com/alipay/ams/api/model/companyType.py +20 -0
- com/alipay/ams/api/model/company_unit_type.py +10 -0
- com/alipay/ams/api/model/contact.py +27 -0
- com/alipay/ams/api/model/contact_info.py +30 -0
- com/alipay/ams/api/model/coupon_payment_method_detail.py +107 -0
- com/alipay/ams/api/model/credit_pay_fee_type.py +9 -0
- com/alipay/ams/api/model/credit_pay_plan.py +41 -0
- com/alipay/ams/api/model/customer_belongs_to.py +47 -0
- com/alipay/ams/api/model/customer_id_type.py +14 -0
- com/alipay/ams/api/model/customs_info.py +28 -0
- com/alipay/ams/api/model/declaration_record.py +178 -0
- com/alipay/ams/api/model/delivery_method_type.py +10 -0
- com/alipay/ams/api/model/disable_reason_type.py +17 -0
- com/alipay/ams/api/model/discount.py +46 -0
- com/alipay/ams/api/model/discount_payment_method_detail.py +94 -0
- com/alipay/ams/api/model/display_type.py +33 -0
- com/alipay/ams/api/model/dispute_evidence_format_type.py +10 -0
- com/alipay/ams/api/model/dispute_evidence_type.py +10 -0
- com/alipay/ams/api/model/entity_associations.py +67 -0
- com/alipay/ams/api/model/env.py +229 -0
- com/alipay/ams/api/model/extend_info.py +21 -0
- com/alipay/ams/api/model/external_payment_method_detail.py +76 -0
- com/alipay/ams/api/model/funding_type.py +16 -0
- com/alipay/ams/api/model/gaming.py +55 -0
- com/alipay/ams/api/model/goods.py +108 -0
- com/alipay/ams/api/model/grant_type.py +12 -0
- com/alipay/ams/api/model/http_method.py +9 -0
- com/alipay/ams/api/model/identity_check_result.py +9 -0
- com/alipay/ams/api/model/in_store_payment_scenario.py +14 -0
- com/alipay/ams/api/model/individual.py +97 -0
- com/alipay/ams/api/model/installment.py +41 -0
- com/alipay/ams/api/model/interest_free.py +85 -0
- com/alipay/ams/api/model/leg.py +116 -0
- com/alipay/ams/api/model/legal_entity_type.py +10 -0
- com/alipay/ams/api/model/lodging.py +95 -0
- com/alipay/ams/api/model/logo.py +31 -0
- com/alipay/ams/api/model/merchant.py +107 -0
- com/alipay/ams/api/model/merchant_customs_info.py +28 -0
- com/alipay/ams/api/model/merchant_info.py +79 -0
- com/alipay/ams/api/model/merchant_registration_info.py +96 -0
- com/alipay/ams/api/model/merchant_type.py +10 -0
- com/alipay/ams/api/model/method_type.py +13 -0
- com/alipay/ams/api/model/order.py +186 -0
- com/alipay/ams/api/model/order_code_form.py +66 -0
- com/alipay/ams/api/model/order_info.py +22 -0
- com/alipay/ams/api/model/os_type.py +12 -0
- com/alipay/ams/api/model/passengers.py +39 -0
- com/alipay/ams/api/model/paymentOptionDetail.py +43 -0
- com/alipay/ams/api/model/payment_detail.py +32 -0
- com/alipay/ams/api/model/payment_factor.py +73 -0
- com/alipay/ams/api/model/payment_method.py +86 -0
- com/alipay/ams/api/model/payment_method_category_type.py +29 -0
- com/alipay/ams/api/model/payment_method_detail.py +126 -0
- com/alipay/ams/api/model/payment_method_detail_type.py +30 -0
- com/alipay/ams/api/model/payment_method_info.py +53 -0
- com/alipay/ams/api/model/payment_method_type.py +12 -0
- com/alipay/ams/api/model/payment_option.py +137 -0
- com/alipay/ams/api/model/payment_result_info.py +159 -0
- com/alipay/ams/api/model/payment_verification_data.py +34 -0
- com/alipay/ams/api/model/period_rule.py +48 -0
- com/alipay/ams/api/model/period_type.py +12 -0
- com/alipay/ams/api/model/plan.py +106 -0
- com/alipay/ams/api/model/presentment_mode.py +11 -0
- com/alipay/ams/api/model/product_code_type.py +13 -0
- com/alipay/ams/api/model/promotion_info.py +66 -0
- com/alipay/ams/api/model/promotion_result.py +49 -0
- com/alipay/ams/api/model/promotion_type.py +10 -0
- com/alipay/ams/api/model/psp_customer_info.py +78 -0
- com/alipay/ams/api/model/quote.py +84 -0
- com/alipay/ams/api/model/redirect_action_form.py +63 -0
- com/alipay/ams/api/model/refund_detail.py +35 -0
- com/alipay/ams/api/model/refund_from_type.py +11 -0
- com/alipay/ams/api/model/refund_record.py +66 -0
- com/alipay/ams/api/model/registration_detail.py +119 -0
- com/alipay/ams/api/model/result.py +39 -0
- com/alipay/ams/api/model/result_status_type.py +27 -0
- com/alipay/ams/api/model/risk_score_detail.py +37 -0
- com/alipay/ams/api/model/risk_score_result.py +57 -0
- com/alipay/ams/api/model/risk_score_type.py +24 -0
- com/alipay/ams/api/model/scope_type.py +17 -0
- com/alipay/ams/api/model/settle_to_type.py +10 -0
- com/alipay/ams/api/model/settlement_bank_account.py +143 -0
- com/alipay/ams/api/model/settlement_detail.py +32 -0
- com/alipay/ams/api/model/settlement_info.py +31 -0
- com/alipay/ams/api/model/settlement_strategy.py +22 -0
- com/alipay/ams/api/model/shipping.py +61 -0
- com/alipay/ams/api/model/stock_info.py +26 -0
- com/alipay/ams/api/model/store.py +107 -0
- com/alipay/ams/api/model/subscription_notification_type.py +14 -0
- com/alipay/ams/api/model/subscription_status.py +12 -0
- com/alipay/ams/api/model/support_bank.py +49 -0
- com/alipay/ams/api/model/support_card_brand.py +39 -0
- com/alipay/ams/api/model/terminal_type.py +13 -0
- com/alipay/ams/api/model/three_ds_result.py +78 -0
- com/alipay/ams/api/model/transaction.py +80 -0
- com/alipay/ams/api/model/transaction_status_type.py +33 -0
- com/alipay/ams/api/model/transaction_type.py +36 -0
- com/alipay/ams/api/model/transfer_from_detail.py +44 -0
- com/alipay/ams/api/model/transfer_to_detail.py +108 -0
- com/alipay/ams/api/model/transit.py +46 -0
- com/alipay/ams/api/model/transit_type.py +12 -0
- com/alipay/ams/api/model/trial.py +47 -0
- com/alipay/ams/api/model/user_identity_type.py +11 -0
- com/alipay/ams/api/model/user_name.py +77 -0
- com/alipay/ams/api/model/wallet_payment_method_type.py +20 -0
- com/alipay/ams/api/model/web_site.py +54 -0
- com/alipay/ams/api/net/__init__.py +0 -0
- com/alipay/ams/api/net/default_http_rpc.py +58 -0
- com/alipay/ams/api/request/__init__.py +0 -0
- com/alipay/ams/api/request/alipay_request.py +41 -0
- com/alipay/ams/api/request/auth/__init__.py +0 -0
- com/alipay/ams/api/request/auth/alipay_auth_apply_token_request.py +88 -0
- com/alipay/ams/api/request/auth/alipay_auth_consult_request.py +160 -0
- com/alipay/ams/api/request/auth/alipay_auth_query_token_request.py +32 -0
- com/alipay/ams/api/request/auth/alipay_auth_revoke_token_request.py +43 -0
- com/alipay/ams/api/request/declare/__init__.py +0 -0
- com/alipay/ams/api/request/declare/alipay_customs_declare_request.py +109 -0
- com/alipay/ams/api/request/declare/alipay_customs_query_request.py +28 -0
- com/alipay/ams/api/request/dispute/__init__.py +0 -0
- com/alipay/ams/api/request/dispute/alipay_accept_dispute_request.py +29 -0
- com/alipay/ams/api/request/dispute/alipay_download_dispute_evidence_request.py +40 -0
- com/alipay/ams/api/request/dispute/alipay_supply_defense_document_request.py +39 -0
- com/alipay/ams/api/request/marketplace/__init__.py +0 -0
- com/alipay/ams/api/request/marketplace/alipay_create_payout_request.py +53 -0
- com/alipay/ams/api/request/marketplace/alipay_create_transfer_request.py +53 -0
- com/alipay/ams/api/request/marketplace/alipay_inquire_balance_request.py +29 -0
- com/alipay/ams/api/request/marketplace/alipay_register_request.py +65 -0
- com/alipay/ams/api/request/marketplace/alipay_settle_request.py +51 -0
- com/alipay/ams/api/request/marketplace/alipay_settlement_info_update_request.py +62 -0
- com/alipay/ams/api/request/marketplace/alipay_submit_attachment_request.py +51 -0
- com/alipay/ams/api/request/merchant/__init__.py +0 -0
- com/alipay/ams/api/request/merchant/alipay_merchant_registration_info_query_request.py +30 -0
- com/alipay/ams/api/request/merchant/alipay_merchant_registration_request.py +78 -0
- com/alipay/ams/api/request/merchant/alipay_merchant_registration_status_query_request.py +42 -0
- com/alipay/ams/api/request/notify/__init__.py +0 -0
- com/alipay/ams/api/request/notify/alipay_auth_notify.py +67 -0
- com/alipay/ams/api/request/notify/alipay_capture_result_notify.py +64 -0
- com/alipay/ams/api/request/notify/alipay_dispute_notify.py +131 -0
- com/alipay/ams/api/request/notify/alipay_notify.py +28 -0
- com/alipay/ams/api/request/notify/alipay_pay_result_notify.py +111 -0
- com/alipay/ams/api/request/notify/alipay_refund_notify.py +67 -0
- com/alipay/ams/api/request/notify/alipay_subscription_notify.py +93 -0
- com/alipay/ams/api/request/notify/alipay_subscription_pay_notify.py +49 -0
- com/alipay/ams/api/request/notify/alipay_vaulting_notify.py +47 -0
- com/alipay/ams/api/request/pay/__init__.py +0 -0
- com/alipay/ams/api/request/pay/alipay_capture_request.py +70 -0
- com/alipay/ams/api/request/pay/alipay_create_order_request.py +94 -0
- com/alipay/ams/api/request/pay/alipay_create_session_request.py +202 -0
- com/alipay/ams/api/request/pay/alipay_pay_cancel_request.py +57 -0
- com/alipay/ams/api/request/pay/alipay_pay_consult_request.py +244 -0
- com/alipay/ams/api/request/pay/alipay_pay_query_request.py +60 -0
- com/alipay/ams/api/request/pay/alipay_pay_request.py +269 -0
- com/alipay/ams/api/request/pay/alipay_refund_query_request.py +51 -0
- com/alipay/ams/api/request/pay/alipay_refund_request.py +118 -0
- com/alipay/ams/api/request/pay/entry_code_payment_request.py +49 -0
- com/alipay/ams/api/request/pay/order_code_payment_request.py +46 -0
- com/alipay/ams/api/request/pay/user_presented_code_payment_request.py +50 -0
- com/alipay/ams/api/request/risks/__init__.py +0 -0
- com/alipay/ams/api/request/risks/inquiry_risk_score_request.py +68 -0
- com/alipay/ams/api/request/risks/risk_decide_request.py +121 -0
- com/alipay/ams/api/request/risks/risk_report_request.py +65 -0
- com/alipay/ams/api/request/risks/send_payment_result_request.py +73 -0
- com/alipay/ams/api/request/risks/send_refund_result_request.py +61 -0
- com/alipay/ams/api/request/subscription/__init__.py +0 -0
- com/alipay/ams/api/request/subscription/alipay_subscription_cancel_request.py +52 -0
- com/alipay/ams/api/request/subscription/alipay_subscription_change_request.py +140 -0
- com/alipay/ams/api/request/subscription/alipay_subscription_create_request.py +205 -0
- com/alipay/ams/api/request/users/__init__.py +0 -0
- com/alipay/ams/api/request/users/alipay_init_authentication_request.py +79 -0
- com/alipay/ams/api/request/users/alipay_user_query_info_request.py +32 -0
- com/alipay/ams/api/request/users/alipay_verify_authentication_request.py +56 -0
- com/alipay/ams/api/request/vaulting/__init__.py +0 -0
- com/alipay/ams/api/request/vaulting/alipay_vaulting_payment_method_request.py +84 -0
- com/alipay/ams/api/request/vaulting/alipay_vaulting_query_request.py +29 -0
- com/alipay/ams/api/request/vaulting/alipay_vaulting_session_request.py +84 -0
- com/alipay/ams/api/response/__init__.py +0 -0
- com/alipay/ams/api/response/alipay_response.py +22 -0
- com/alipay/ams/api/response/auth/__init__.py +0 -0
- com/alipay/ams/api/response/auth/alipay_auth_apply_token_response.py +57 -0
- com/alipay/ams/api/response/auth/alipay_auth_consult_response.py +68 -0
- com/alipay/ams/api/response/auth/alipay_auth_query_token_response.py +49 -0
- com/alipay/ams/api/response/auth/alipay_auth_revoke_token_response.py +21 -0
- com/alipay/ams/api/response/declare/__init__.py +0 -0
- com/alipay/ams/api/response/declare/alipay_customs_declare_response.py +54 -0
- com/alipay/ams/api/response/declare/alipay_customs_query_response.py +32 -0
- com/alipay/ams/api/response/dispute/__init__.py +0 -0
- com/alipay/ams/api/response/dispute/alipay_accept_dispute_response.py +24 -0
- com/alipay/ams/api/response/dispute/alipay_download_dispute_evidence_response.py +26 -0
- com/alipay/ams/api/response/dispute/alipay_supply_defense_document_response.py +24 -0
- com/alipay/ams/api/response/marketplace/__init__.py +0 -0
- com/alipay/ams/api/response/marketplace/alipay_create_payout_response.py +43 -0
- com/alipay/ams/api/response/marketplace/alipay_create_transfer_response.py +43 -0
- com/alipay/ams/api/response/marketplace/alipay_inquire_balance_response.py +26 -0
- com/alipay/ams/api/response/marketplace/alipay_register_response.py +18 -0
- com/alipay/ams/api/response/marketplace/alipay_settle_response.py +25 -0
- com/alipay/ams/api/response/marketplace/alipay_settlement_info_update_response.py +17 -0
- com/alipay/ams/api/response/marketplace/alipay_submit_attachment_response.py +26 -0
- com/alipay/ams/api/response/merchant/__init__.py +0 -0
- com/alipay/ams/api/response/merchant/alipay_merchant_registration_info_query_response.py +25 -0
- com/alipay/ams/api/response/merchant/alipay_merchant_registration_response.py +20 -0
- com/alipay/ams/api/response/merchant/alipay_merchant_registration_status_query_response.py +25 -0
- com/alipay/ams/api/response/pay/__init__.py +0 -0
- com/alipay/ams/api/response/pay/alipay_capture_response.py +59 -0
- com/alipay/ams/api/response/pay/alipay_create_order_response.py +55 -0
- com/alipay/ams/api/response/pay/alipay_create_session_response.py +32 -0
- com/alipay/ams/api/response/pay/alipay_pay_cancel_response.py +34 -0
- com/alipay/ams/api/response/pay/alipay_pay_consult_response.py +41 -0
- com/alipay/ams/api/response/pay/alipay_pay_query_response.py +245 -0
- com/alipay/ams/api/response/pay/alipay_pay_response.py +218 -0
- com/alipay/ams/api/response/pay/alipay_refund_query_response.py +68 -0
- com/alipay/ams/api/response/pay/alipay_refund_response.py +111 -0
- com/alipay/ams/api/response/risks/__init__.py +0 -0
- com/alipay/ams/api/response/risks/inquiry_risk_score_response.py +42 -0
- com/alipay/ams/api/response/risks/risk_decide_response.py +34 -0
- com/alipay/ams/api/response/risks/risk_report_response.py +11 -0
- com/alipay/ams/api/response/risks/send_payment_result_response.py +11 -0
- com/alipay/ams/api/response/risks/send_refund_result_response.py +11 -0
- com/alipay/ams/api/response/subscription/__init__.py +0 -0
- com/alipay/ams/api/response/subscription/alipay_subscription_cancel_response.py +12 -0
- com/alipay/ams/api/response/subscription/alipay_subscription_change_response.py +11 -0
- com/alipay/ams/api/response/subscription/alipay_subscription_create_response.py +40 -0
- com/alipay/ams/api/response/users/__init__.py +0 -0
- com/alipay/ams/api/response/users/alipay_init_authentication_response.py +21 -0
- com/alipay/ams/api/response/users/alipay_user_query_info_response.py +37 -0
- com/alipay/ams/api/response/users/alipay_verify_authentication_response.py +21 -0
- com/alipay/ams/api/response/vaulting/__init__.py +0 -0
- com/alipay/ams/api/response/vaulting/alipay_vaulting_payment_method_response.py +50 -0
- com/alipay/ams/api/response/vaulting/alipay_vaulting_query_response.py +53 -0
- com/alipay/ams/api/response/vaulting/alipay_vaulting_session_response.py +31 -0
- com/alipay/ams/api/tools/__init__.py +0 -0
- com/alipay/ams/api/tools/constants.py +17 -0
- com/alipay/ams/api/tools/date_tools.py +30 -0
- com/alipay/ams/api/tools/signature_tool.py +96 -0
- com/alipay/ams/api/tools/webhook_tool.py +10 -0
- global_open_sdk_python-1.3.0.dist-info/LICENSE +21 -0
- global_open_sdk_python-1.3.0.dist-info/METADATA +31 -0
- global_open_sdk_python-1.3.0.dist-info/RECORD +287 -0
- global_open_sdk_python-1.3.0.dist-info/WHEEL +5 -0
- global_open_sdk_python-1.3.0.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,218 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
4
|
+
from com.alipay.ams.api.model.challenge_action_form import ChallengeActionForm
|
|
5
|
+
from com.alipay.ams.api.model.order_code_form import OrderCodeForm
|
|
6
|
+
from com.alipay.ams.api.model.payment_result_info import PaymentResultInfo
|
|
7
|
+
from com.alipay.ams.api.model.promotion_result import PromotionResult
|
|
8
|
+
from com.alipay.ams.api.model.psp_customer_info import PspCustomerInfo
|
|
9
|
+
from com.alipay.ams.api.model.quote import Quote
|
|
10
|
+
from com.alipay.ams.api.model.redirect_action_form import RedirectActionForm
|
|
11
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
class AlipayPayResponse(AlipayResponse):
|
|
15
|
+
|
|
16
|
+
def __init__(self, rsp_body):
|
|
17
|
+
super(AlipayPayResponse, self).__init__()
|
|
18
|
+
self.__payment_request_id = None
|
|
19
|
+
self.__payment_id = None
|
|
20
|
+
self.__payment_amount = None # type: Amount
|
|
21
|
+
self.__actual_payment_amount = None # type: Amount
|
|
22
|
+
self.__payment_quote = None # type: Quote
|
|
23
|
+
self.__payment_time = None
|
|
24
|
+
self.__payment_create_time = None
|
|
25
|
+
self.__auth_expiry_time = None
|
|
26
|
+
self.__non_guarantee_coupon_value = None
|
|
27
|
+
self.__payment_action_form = None
|
|
28
|
+
self.__psp_customer_info = None
|
|
29
|
+
self.__challenge_action_form = None # type: ChallengeActionForm
|
|
30
|
+
self.__redirect_action_form = None # type: RedirectActionForm
|
|
31
|
+
self.__order_code_form = None # type: OrderCodeForm
|
|
32
|
+
self.__extend_info = None
|
|
33
|
+
self.__gross_settlement_amount = None # type: Amount
|
|
34
|
+
self.__settlement_quote = None # type: Quote
|
|
35
|
+
self.__payment_data = None
|
|
36
|
+
self.__app_identifier = None
|
|
37
|
+
self.__app_link_url = None
|
|
38
|
+
self.__normal_url = None
|
|
39
|
+
self.__scheme_url = None
|
|
40
|
+
self.__payment_result_info = None # type: PaymentResultInfo
|
|
41
|
+
self.__promotion_result = None # type: PromotionResult
|
|
42
|
+
self.__payment_method_type = None
|
|
43
|
+
self.__parse_rsp_body(rsp_body)
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def gross_settlement_amount(self):
|
|
47
|
+
return self.__gross_settlement_amount
|
|
48
|
+
|
|
49
|
+
@property
|
|
50
|
+
def settlement_quote(self):
|
|
51
|
+
return self.__settlement_quote
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def payment_request_id(self):
|
|
55
|
+
return self.__payment_request_id
|
|
56
|
+
|
|
57
|
+
@property
|
|
58
|
+
def payment_id(self):
|
|
59
|
+
return self.__payment_id
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def payment_amount(self):
|
|
63
|
+
return self.__payment_amount
|
|
64
|
+
|
|
65
|
+
@property
|
|
66
|
+
def actual_payment_amount(self):
|
|
67
|
+
return self.__actual_payment_amount
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def payment_quote(self):
|
|
71
|
+
return self.__payment_quote
|
|
72
|
+
|
|
73
|
+
@property
|
|
74
|
+
def payment_time(self):
|
|
75
|
+
return self.__payment_time
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def payment_create_time(self):
|
|
79
|
+
return self.__payment_create_time
|
|
80
|
+
|
|
81
|
+
@property
|
|
82
|
+
def auth_expiry_time(self):
|
|
83
|
+
return self.__auth_expiry_time
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def non_guarantee_coupon_value(self):
|
|
87
|
+
return self.__non_guarantee_coupon_value
|
|
88
|
+
|
|
89
|
+
@property
|
|
90
|
+
def payment_action_form(self):
|
|
91
|
+
return self.__payment_action_form
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def psp_customer_info(self):
|
|
95
|
+
return self.__psp_customer_info
|
|
96
|
+
|
|
97
|
+
@property
|
|
98
|
+
def challenge_action_form(self):
|
|
99
|
+
return self.__challenge_action_form
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def redirect_action_form(self):
|
|
103
|
+
return self.__redirect_action_form
|
|
104
|
+
|
|
105
|
+
@property
|
|
106
|
+
def order_code_form(self):
|
|
107
|
+
return self.__order_code_form
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def extend_info(self):
|
|
111
|
+
return self.__extend_info
|
|
112
|
+
|
|
113
|
+
@property
|
|
114
|
+
def payment_data(self):
|
|
115
|
+
return self.__payment_data
|
|
116
|
+
|
|
117
|
+
@property
|
|
118
|
+
def app_identifier(self):
|
|
119
|
+
return self.__app_identifier
|
|
120
|
+
|
|
121
|
+
@property
|
|
122
|
+
def app_link_url(self):
|
|
123
|
+
return self.__app_link_url
|
|
124
|
+
|
|
125
|
+
@property
|
|
126
|
+
def normal_url(self):
|
|
127
|
+
return self.__normal_url
|
|
128
|
+
|
|
129
|
+
@property
|
|
130
|
+
def scheme_url(self):
|
|
131
|
+
return self.__scheme_url
|
|
132
|
+
|
|
133
|
+
@property
|
|
134
|
+
def payment_result_info(self):
|
|
135
|
+
return self.__payment_result_info
|
|
136
|
+
|
|
137
|
+
@property
|
|
138
|
+
def promotion_result(self):
|
|
139
|
+
return self.__promotion_result
|
|
140
|
+
|
|
141
|
+
@property
|
|
142
|
+
def payment_method_type(self):
|
|
143
|
+
return self.__payment_method_type
|
|
144
|
+
|
|
145
|
+
def __parse_rsp_body(self, rsp_body):
|
|
146
|
+
response = super(AlipayPayResponse, self).parse_rsp_body(rsp_body)
|
|
147
|
+
if 'paymentRequestId' in response:
|
|
148
|
+
self.__payment_request_id = response['paymentRequestId']
|
|
149
|
+
if 'paymentId' in response:
|
|
150
|
+
self.__payment_id = response['paymentId']
|
|
151
|
+
if 'paymentAmount' in response:
|
|
152
|
+
payment_amount = Amount()
|
|
153
|
+
payment_amount.parse_rsp_body(response['paymentAmount'])
|
|
154
|
+
self.__payment_amount = payment_amount
|
|
155
|
+
if 'actualPaymentAmount' in response:
|
|
156
|
+
actual_payment_amount = Amount()
|
|
157
|
+
actual_payment_amount.parse_rsp_body(response['actualPaymentAmount'])
|
|
158
|
+
self.__actual_payment_amount = actual_payment_amount
|
|
159
|
+
if 'paymentQuote' in response:
|
|
160
|
+
quote = Quote()
|
|
161
|
+
quote.parse_rsp_body(response['paymentQuote'])
|
|
162
|
+
self.__payment_quote = quote
|
|
163
|
+
if 'paymentTime' in response:
|
|
164
|
+
self.__payment_time = response['paymentTime']
|
|
165
|
+
if 'paymentCreateTime' in response:
|
|
166
|
+
self.__payment_create_time = response['paymentCreateTime']
|
|
167
|
+
if 'authExpiryTime' in response:
|
|
168
|
+
self.__auth_expiry_time = response['authExpiryTime']
|
|
169
|
+
if 'nonGuaranteeCouponValue' in response:
|
|
170
|
+
self.__non_guarantee_coupon_value = response['nonGuaranteeCouponValue']
|
|
171
|
+
if 'paymentActionForm' in response:
|
|
172
|
+
self.__payment_action_form = response['paymentActionForm']
|
|
173
|
+
if 'pspCustomerInfo' in response:
|
|
174
|
+
psp_customer_info = PspCustomerInfo()
|
|
175
|
+
psp_customer_info.parse_rsp_body(response['pspCustomerInfo'])
|
|
176
|
+
self.__psp_customer_info = psp_customer_info
|
|
177
|
+
if 'challengeActionForm' in response:
|
|
178
|
+
challenge_action_form = ChallengeActionForm()
|
|
179
|
+
challenge_action_form.parse_rsp_body(response['challengeActionForm'])
|
|
180
|
+
self.__challenge_action_form = challenge_action_form
|
|
181
|
+
if 'redirectActionForm' in response:
|
|
182
|
+
redirect_action_form = RedirectActionForm()
|
|
183
|
+
redirect_action_form.parse_rsp_body(response['redirectActionForm'])
|
|
184
|
+
self.__redirect_action_form = redirect_action_form
|
|
185
|
+
if 'orderCodeForm' in response:
|
|
186
|
+
order_code_form = OrderCodeForm()
|
|
187
|
+
order_code_form.parse_rsp_body(response['orderCodeForm'])
|
|
188
|
+
self.__order_code_form = order_code_form
|
|
189
|
+
if 'extendInfo' in response:
|
|
190
|
+
self.__extend_info = response['extendInfo']
|
|
191
|
+
if 'grossSettlementAmount' in response:
|
|
192
|
+
gross_settlement_amount = Amount()
|
|
193
|
+
gross_settlement_amount.parse_rsp_body(response['grossSettlementAmount'])
|
|
194
|
+
self.__gross_settlement_amount = gross_settlement_amount
|
|
195
|
+
if 'settlementQuote' in response:
|
|
196
|
+
settlement_quote = Quote()
|
|
197
|
+
settlement_quote.parse_rsp_body(response['settlementQuote'])
|
|
198
|
+
self.__settlement_quote = settlement_quote
|
|
199
|
+
if 'paymentData' in response:
|
|
200
|
+
self.__payment_data = response['paymentData']
|
|
201
|
+
if 'appIdentifier' in response:
|
|
202
|
+
self.__app_identifier = response['appIdentifier']
|
|
203
|
+
if 'appLinkUrl' in response:
|
|
204
|
+
self.__app_link_url = response['appLinkUrl']
|
|
205
|
+
if 'normalUrl' in response:
|
|
206
|
+
self.__normal_url = response['normalUrl']
|
|
207
|
+
if 'schemeUrl' in response:
|
|
208
|
+
self.__scheme_url = response['schemeUrl']
|
|
209
|
+
if 'paymentResultInfo' in response:
|
|
210
|
+
payment_result_info = PaymentResultInfo()
|
|
211
|
+
payment_result_info.parse_rsp_body(response['paymentResultInfo'])
|
|
212
|
+
self.__payment_result_info = payment_result_info
|
|
213
|
+
if 'promotionResult' in response:
|
|
214
|
+
promotion_result = PromotionResult()
|
|
215
|
+
promotion_result.parse_rsp_body(response['promotionResult'])
|
|
216
|
+
self.__promotion_result = promotion_result
|
|
217
|
+
if 'paymentMethodType' in response:
|
|
218
|
+
self.__payment_method_type = response['paymentMethodType']
|
|
@@ -0,0 +1,68 @@
|
|
|
1
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
2
|
+
from com.alipay.ams.api.model.quote import Quote
|
|
3
|
+
from com.alipay.ams.api.model.transaction_status_type import TransactionStatusType
|
|
4
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AlipayRefundQueryResponse(AlipayResponse):
|
|
8
|
+
def __init__(self, rsp_body):
|
|
9
|
+
super(AlipayRefundQueryResponse, self).__init__()
|
|
10
|
+
self.__refund_request_id = None
|
|
11
|
+
self.__refund_id = None
|
|
12
|
+
self.__refund_amount = None # type: Amount
|
|
13
|
+
self.__refund_time = None
|
|
14
|
+
self.__refund_status = None # type:TransactionStatusType
|
|
15
|
+
self.__gross_settlement_amount = None # type: Amount
|
|
16
|
+
self.__settlement_quote = None # type: Quote
|
|
17
|
+
self.__parse_rsp_body(rsp_body)
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def refund_request_id(self):
|
|
21
|
+
return self.__refund_request_id
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def refund_id(self):
|
|
25
|
+
return self.__refund_id
|
|
26
|
+
|
|
27
|
+
@property
|
|
28
|
+
def refund_amount(self):
|
|
29
|
+
return self.__refund_amount
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def refund_time(self):
|
|
33
|
+
return self.__refund_time
|
|
34
|
+
|
|
35
|
+
@property
|
|
36
|
+
def refund_status(self):
|
|
37
|
+
return self.__refund_status
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def gross_settlement_amount(self):
|
|
41
|
+
return self.__gross_settlement_amount
|
|
42
|
+
|
|
43
|
+
@property
|
|
44
|
+
def settlement_quote(self):
|
|
45
|
+
return self.__settlement_quote
|
|
46
|
+
|
|
47
|
+
def __parse_rsp_body(self, rsp_body):
|
|
48
|
+
response = super(AlipayRefundQueryResponse, self).parse_rsp_body(rsp_body)
|
|
49
|
+
if 'refundRequestId' in response:
|
|
50
|
+
self.__refund_request_id = response['refundRequestId']
|
|
51
|
+
if 'refundId' in response:
|
|
52
|
+
self.__refund_id = response['refundId']
|
|
53
|
+
if 'refundAmount' in response:
|
|
54
|
+
refund_amount = Amount()
|
|
55
|
+
refund_amount.parse_rsp_body(response['refundAmount'])
|
|
56
|
+
self.__refund_amount = refund_amount
|
|
57
|
+
if 'refundTime' in response:
|
|
58
|
+
self.__refund_time = response['refundTime']
|
|
59
|
+
if 'refundStatus' in response:
|
|
60
|
+
self.__refund_status = response['refundStatus']
|
|
61
|
+
if 'grossSettlementAmount' in response:
|
|
62
|
+
gross_settlement_amount = Amount()
|
|
63
|
+
gross_settlement_amount.parse_rsp_body(response['grossSettlementAmount'])
|
|
64
|
+
self.__gross_settlement_amount = gross_settlement_amount
|
|
65
|
+
if 'settlementQuote' in response:
|
|
66
|
+
settlement_quote = Quote()
|
|
67
|
+
settlement_quote.parse_rsp_body(response['settlementQuote'])
|
|
68
|
+
self.__settlement_quote = settlement_quote
|
|
@@ -0,0 +1,111 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
4
|
+
from com.alipay.ams.api.model.quote import Quote
|
|
5
|
+
from com.alipay.ams.api.model.refund_detail import RefundDetail
|
|
6
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class AlipayRefundResponse(AlipayResponse):
|
|
10
|
+
|
|
11
|
+
def __init__(self, rsp_body):
|
|
12
|
+
super(AlipayRefundResponse, self).__init__()
|
|
13
|
+
self.__refund_request_id = None
|
|
14
|
+
self.__refund_id = None
|
|
15
|
+
self.__payment_id = None
|
|
16
|
+
self.__refund_amount = None # type: Amount
|
|
17
|
+
self.__refund_time = None
|
|
18
|
+
self.__refund_non_guarantee_coupon_amount = None
|
|
19
|
+
self.__acquirer_reference_no = None
|
|
20
|
+
self.__gross_settlement_amount = None # type: Amount
|
|
21
|
+
self.__settlement_quote = None # type: Quote
|
|
22
|
+
self.__refund_details = None # type:list:RefundDetail
|
|
23
|
+
self.__refund_source_account_no = None
|
|
24
|
+
self.__parse_rsp_body(rsp_body)
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def refund_request_id(self):
|
|
28
|
+
return self.__refund_request_id
|
|
29
|
+
|
|
30
|
+
@property
|
|
31
|
+
def refund_id(self):
|
|
32
|
+
return self.__refund_id
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def payment_id(self):
|
|
36
|
+
return self.__payment_id
|
|
37
|
+
|
|
38
|
+
@property
|
|
39
|
+
def refund_amount(self):
|
|
40
|
+
return self.__refund_amount
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def refund_time(self):
|
|
44
|
+
return self.__refund_time
|
|
45
|
+
|
|
46
|
+
@property
|
|
47
|
+
def refund_non_guarantee_coupon_amount(self):
|
|
48
|
+
return self.__refund_non_guarantee_coupon_amount
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def acquirer_reference_no(self):
|
|
52
|
+
return self.__acquirer_reference_no
|
|
53
|
+
|
|
54
|
+
@property
|
|
55
|
+
def gross_settlement_amount(self):
|
|
56
|
+
return self.__gross_settlement_amount
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def settlement_quote(self):
|
|
60
|
+
return self.__settlement_quote
|
|
61
|
+
|
|
62
|
+
@property
|
|
63
|
+
def refund_details(self):
|
|
64
|
+
return self.__refund_details
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def refund_source_account_no(self):
|
|
68
|
+
return self.__refund_source_account_no
|
|
69
|
+
|
|
70
|
+
def __parse_rsp_body(self, rsp_body):
|
|
71
|
+
response = super(AlipayRefundResponse, self).parse_rsp_body(rsp_body)
|
|
72
|
+
if 'refundRequestId' in response:
|
|
73
|
+
self.__refund_request_id = response['refundRequestId']
|
|
74
|
+
if 'paymentId' in response:
|
|
75
|
+
self.__payment_id = response['paymentId']
|
|
76
|
+
if 'refundId' in response:
|
|
77
|
+
self.__refund_id = response['refundId']
|
|
78
|
+
if 'refundAmount' in response:
|
|
79
|
+
refund_amount = Amount()
|
|
80
|
+
refund_amount.parse_rsp_body(response['refundAmount'])
|
|
81
|
+
self.__refund_amount = refund_amount
|
|
82
|
+
if 'refundTime' in response:
|
|
83
|
+
self.__refund_time = response['refundTime']
|
|
84
|
+
if 'refundNonGuaranteeCouponAmount' in response:
|
|
85
|
+
refund_non_guarantee_coupon_amount = Amount()
|
|
86
|
+
refund_non_guarantee_coupon_amount.parse_rsp_body(response['refundNonGuaranteeCouponAmount'])
|
|
87
|
+
self.__refund_non_guarantee_coupon_amount = refund_non_guarantee_coupon_amount
|
|
88
|
+
|
|
89
|
+
if 'acquirerReferenceNo' in response:
|
|
90
|
+
self.__acquirer_reference_no = response['acquirerReferenceNo']
|
|
91
|
+
|
|
92
|
+
if 'grossSettlementAmount' in response:
|
|
93
|
+
gross_settlement_amount = Amount()
|
|
94
|
+
gross_settlement_amount.parse_rsp_body(response['grossSettlementAmount'])
|
|
95
|
+
self.__gross_settlement_amount = gross_settlement_amount
|
|
96
|
+
|
|
97
|
+
if 'settlementQuote' in response:
|
|
98
|
+
settlement_quote = Quote()
|
|
99
|
+
settlement_quote.parse_rsp_body(response['settlementQuote'])
|
|
100
|
+
self.__settlement_quote = settlement_quote
|
|
101
|
+
|
|
102
|
+
if 'refundDetails' in response:
|
|
103
|
+
refund_details = []
|
|
104
|
+
for refund_detail in response['refundDetails']:
|
|
105
|
+
refund_detail_obj = RefundDetail()
|
|
106
|
+
refund_detail_obj.parse_rsp_body(refund_detail)
|
|
107
|
+
refund_details.append(refund_detail_obj)
|
|
108
|
+
self.__refund_details = refund_details
|
|
109
|
+
|
|
110
|
+
if 'refundSourceAccountNo' in response:
|
|
111
|
+
self.__refund_source_account_no = response['refundSourceAccountNo']
|
|
File without changes
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
from com.alipay.ams.api.model.risk_score_result import RiskScoreResult
|
|
5
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
6
|
+
|
|
7
|
+
|
|
8
|
+
class InquiryRiskScoreResponse(AlipayResponse):
|
|
9
|
+
|
|
10
|
+
def __init__(self, rsp_body):
|
|
11
|
+
super(InquiryRiskScoreResponse, self).__init__()
|
|
12
|
+
self.__result = None
|
|
13
|
+
self.__risk_score_results = None
|
|
14
|
+
self.__parse_rsp_body(rsp_body)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def result(self):
|
|
18
|
+
return self.__result
|
|
19
|
+
|
|
20
|
+
@result.setter
|
|
21
|
+
def result(self, value):
|
|
22
|
+
self.__result = value
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def risk_score_results(self):
|
|
26
|
+
return self.__risk_score_results
|
|
27
|
+
|
|
28
|
+
@risk_score_results.setter
|
|
29
|
+
def risk_score_results(self, value):
|
|
30
|
+
self.__risk_score_results = value
|
|
31
|
+
|
|
32
|
+
def __parse_rsp_body(self, rsp_body):
|
|
33
|
+
response = super(InquiryRiskScoreResponse, self).parse_rsp_body(rsp_body)
|
|
34
|
+
if 'result' in response:
|
|
35
|
+
self.__result = response['result']
|
|
36
|
+
|
|
37
|
+
if 'risk_score_results' in response:
|
|
38
|
+
self.__risk_score_results = []
|
|
39
|
+
for entry in response['risk_score_results']:
|
|
40
|
+
risk_score_result = RiskScoreResult()
|
|
41
|
+
risk_score_result.parse_rsp_body(entry)
|
|
42
|
+
self.__risk_score_results.append(risk_score_result)
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RiskDecideResponse(AlipayResponse):
|
|
5
|
+
def __init__(self, rsp_body):
|
|
6
|
+
super(RiskDecideResponse, self).__init__()
|
|
7
|
+
self.__decision = None
|
|
8
|
+
self.__authentication_decision = None
|
|
9
|
+
self.__parse_rsp_body(rsp_body)
|
|
10
|
+
|
|
11
|
+
@property
|
|
12
|
+
def decision(self):
|
|
13
|
+
return self.__decision
|
|
14
|
+
|
|
15
|
+
@decision.setter
|
|
16
|
+
def decision(self, decision):
|
|
17
|
+
self.__decision = decision
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def authentication_decision(self):
|
|
21
|
+
return self.__authentication_decision
|
|
22
|
+
|
|
23
|
+
|
|
24
|
+
@authentication_decision.setter
|
|
25
|
+
def authentication_decision(self, authentication_decision):
|
|
26
|
+
self.__authentication_decision = authentication_decision
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
def __parse_rsp_body(self, rsp_body):
|
|
30
|
+
response = super(RiskDecideResponse, self).parse_rsp_body(rsp_body)
|
|
31
|
+
if "decision" in response:
|
|
32
|
+
self.decision = response["decision"]
|
|
33
|
+
if "authentication_decision" in response:
|
|
34
|
+
self.authentication_decision = response["authenticationDecision"]
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class RiskReportResponse(AlipayResponse):
|
|
5
|
+
def __init__(self, rsp_body):
|
|
6
|
+
super(RiskReportResponse, self).__init__()
|
|
7
|
+
self.__parse_rsp_body(rsp_body)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def __parse_rsp_body(self, rsp_body):
|
|
11
|
+
response = super(RiskReportResponse, self).parse_rsp_body(rsp_body)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SendPaymentResultResponse(AlipayResponse):
|
|
5
|
+
|
|
6
|
+
def __init__(self, rsp_body):
|
|
7
|
+
super(SendPaymentResultResponse, self).__init__()
|
|
8
|
+
self.__parse_rsp_body(rsp_body)
|
|
9
|
+
|
|
10
|
+
def __parse_rsp_body(self, rsp_body):
|
|
11
|
+
response = super(SendPaymentResultResponse, self).parse_rsp_body(rsp_body)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SendRefundResultResponse(AlipayResponse):
|
|
5
|
+
def __init__(self, rsp_body):
|
|
6
|
+
super(SendRefundResultResponse, self).__init__()
|
|
7
|
+
self.__parse_rsp_body(rsp_body)
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
def __parse_rsp_body(self, rsp_body):
|
|
11
|
+
response = super(SendRefundResultResponse, self).parse_rsp_body(rsp_body)
|
|
File without changes
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AlipaySubscriptionCancelResponse(AlipayResponse):
|
|
5
|
+
|
|
6
|
+
def __init__(self, rsp_body):
|
|
7
|
+
super(AlipaySubscriptionCancelResponse, self).__init__()
|
|
8
|
+
|
|
9
|
+
self.__parse_rsp_body(rsp_body)
|
|
10
|
+
|
|
11
|
+
def __parse_rsp_body(self, rsp_body):
|
|
12
|
+
rsp_dict = super(AlipaySubscriptionCancelResponse, self).parse_rsp_body(rsp_body)
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AlipaySubscriptionChangeResponse(AlipayResponse):
|
|
5
|
+
def __init__(self, rsp_body):
|
|
6
|
+
super(AlipaySubscriptionChangeResponse, self).__init__()
|
|
7
|
+
|
|
8
|
+
self.__parse_rsp_body(rsp_body)
|
|
9
|
+
|
|
10
|
+
def __parse_rsp_body(self, rsp_body):
|
|
11
|
+
rsp_dict = super(AlipaySubscriptionChangeResponse, self).parse_rsp_body(rsp_body)
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class AlipaySubscriptionCreateResponse(AlipayResponse):
|
|
5
|
+
def __init__(self, rsp_body):
|
|
6
|
+
super(AlipaySubscriptionCreateResponse, self).__init__()
|
|
7
|
+
self.__scheme_url = None
|
|
8
|
+
self.__applink_url = None
|
|
9
|
+
self.__normal_url = None
|
|
10
|
+
self.__app_identifier = None
|
|
11
|
+
self.__parse_rsp_body(rsp_body)
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def scheme_url(self):
|
|
15
|
+
return self.__scheme_url
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def applink_url(self):
|
|
19
|
+
return self.__applink_url
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def normal_url(self):
|
|
23
|
+
return self.__normal_url
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def app_identifier(self):
|
|
27
|
+
return self.__app_identifier
|
|
28
|
+
|
|
29
|
+
def __parse_rsp_body(self, rsp_body):
|
|
30
|
+
rsp_dict = super(AlipaySubscriptionCreateResponse, self).parse_rsp_body(rsp_body)
|
|
31
|
+
if rsp_dict.get('schemeUrl'):
|
|
32
|
+
self.__scheme_url = rsp_dict.get('schemeUrl')
|
|
33
|
+
if rsp_dict.get('applinkUrl'):
|
|
34
|
+
self.__applink_url = rsp_dict.get('applinkUrl')
|
|
35
|
+
if rsp_dict.get('normalUrl'):
|
|
36
|
+
self.__normal_url = rsp_dict.get('normalUrl')
|
|
37
|
+
if rsp_dict.get('appIdentifier'):
|
|
38
|
+
self.__app_identifier = rsp_dict.get('appIdentifier')
|
|
39
|
+
|
|
40
|
+
|
|
File without changes
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AlipayInitAuthenticationResponse(AlipayResponse):
|
|
8
|
+
|
|
9
|
+
def __init__(self, rsp_body):
|
|
10
|
+
super(AlipayInitAuthenticationResponse, self).__init__()
|
|
11
|
+
self.__authentication_request_id = None
|
|
12
|
+
self.__parse_rsp_body(rsp_body)
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def authentication_request_id(self):
|
|
16
|
+
return self.__authentication_request_id
|
|
17
|
+
|
|
18
|
+
def __parse_rsp_body(self, rsp_body):
|
|
19
|
+
response = super(AlipayInitAuthenticationResponse, self).parse_rsp_body(rsp_body)
|
|
20
|
+
if 'authenticationRequestId' in response:
|
|
21
|
+
self.__authentication_request_id = response['authenticationRequestId']
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AlipayUserQueryInfoResponse(AlipayResponse):
|
|
8
|
+
|
|
9
|
+
def __init__(self, rsp_body):
|
|
10
|
+
super(AlipayUserQueryInfoResponse, self).__init__()
|
|
11
|
+
self.__user_id = None
|
|
12
|
+
self.__user_login_id = None
|
|
13
|
+
self.__hash_user_login_id = None
|
|
14
|
+
self.__parse_rsp_body(rsp_body)
|
|
15
|
+
|
|
16
|
+
@property
|
|
17
|
+
def user_id(self):
|
|
18
|
+
return self.__user_id
|
|
19
|
+
|
|
20
|
+
@property
|
|
21
|
+
def user_login_id(self):
|
|
22
|
+
return self.__user_login_id
|
|
23
|
+
|
|
24
|
+
@property
|
|
25
|
+
def hash_user_login_id(self):
|
|
26
|
+
return self.__hash_user_login_id
|
|
27
|
+
|
|
28
|
+
def __parse_rsp_body(self, rsp_body):
|
|
29
|
+
response = super(AlipayUserQueryInfoResponse, self).parse_rsp_body(rsp_body)
|
|
30
|
+
if 'userId' in response:
|
|
31
|
+
self.__user_id = response['userId']
|
|
32
|
+
|
|
33
|
+
if 'userLoginId' in response:
|
|
34
|
+
self.__user_login_id = response['userLoginId']
|
|
35
|
+
|
|
36
|
+
if 'hashUserLoginId' in response:
|
|
37
|
+
self.__hash_user_login_id = response['hashUserLoginId']
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
from com.alipay.ams.api.response.alipay_response import AlipayResponse
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class AlipayVerifyAuthenticationResponse(AlipayResponse):
|
|
8
|
+
|
|
9
|
+
def __init__(self, rsp_body):
|
|
10
|
+
super(AlipayVerifyAuthenticationResponse, self).__init__()
|
|
11
|
+
self.__is_passed = None
|
|
12
|
+
self.__parse_rsp_body(rsp_body)
|
|
13
|
+
|
|
14
|
+
@property
|
|
15
|
+
def is_passed(self):
|
|
16
|
+
return self.__is_passed
|
|
17
|
+
|
|
18
|
+
def __parse_rsp_body(self, rsp_body):
|
|
19
|
+
response = super(AlipayVerifyAuthenticationResponse, self).parse_rsp_body(rsp_body)
|
|
20
|
+
if 'isPassed' in response:
|
|
21
|
+
self.__is_passed = response['isPassed']
|
|
File without changes
|