global-open-sdk-python 1.4.1__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 +56 -0
- com/alipay/ams/api/model/apple_pay_configuration.py +56 -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/available_payment_method.py +31 -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 +457 -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 +76 -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_accept_reason_type.py +11 -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/dispute_judged_result.py +10 -0
- com/alipay/ams/api/model/dispute_notification_type.py +15 -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 +129 -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 +13 -0
- com/alipay/ams/api/model/payment_method_type_item.py +40 -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_create_session_request.py +84 -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 +144 -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 +94 -0
- com/alipay/ams/api/request/notify/alipay_subscription_pay_notify.py +50 -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 +225 -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/subscription/alipay_subscription_update_request.py +104 -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_create_session_response.py +34 -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/subscription/alipay_subscription_update_response.py +11 -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.4.1.dist-info/LICENSE +21 -0
- global_open_sdk_python-1.4.1.dist-info/METADATA +32 -0
- global_open_sdk_python-1.4.1.dist-info/RECORD +297 -0
- global_open_sdk_python-1.4.1.dist-info/WHEEL +5 -0
- global_open_sdk_python-1.4.1.dist-info/top_level.txt +1 -0
|
@@ -0,0 +1,119 @@
|
|
|
1
|
+
from com.alipay.ams.api.model.address import Address
|
|
2
|
+
from com.alipay.ams.api.model.attachment import Attachment
|
|
3
|
+
from com.alipay.ams.api.model.contact_info import ContactInfo
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class RegistrationDetail(object):
|
|
7
|
+
def __init__(self):
|
|
8
|
+
self.__legal_name = None
|
|
9
|
+
self.__attachments = None # type: list[Attachment]
|
|
10
|
+
self.__contact_info = None # type: ContactInfo
|
|
11
|
+
self.__registration_type = None
|
|
12
|
+
self.__registration_no = None
|
|
13
|
+
self.__registration_address = None # type: Address
|
|
14
|
+
self.__business_type = None
|
|
15
|
+
self.__registration_effective_date = None
|
|
16
|
+
self.__registration_expire_date = None
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def legal_name(self):
|
|
20
|
+
return self.__legal_name
|
|
21
|
+
|
|
22
|
+
@legal_name.setter
|
|
23
|
+
def legal_name(self, value):
|
|
24
|
+
self.__legal_name = value
|
|
25
|
+
|
|
26
|
+
@property
|
|
27
|
+
def attachments(self):
|
|
28
|
+
return self.__attachments
|
|
29
|
+
|
|
30
|
+
@attachments.setter
|
|
31
|
+
def attachments(self, value):
|
|
32
|
+
self.__attachments = value
|
|
33
|
+
|
|
34
|
+
@property
|
|
35
|
+
def contact_info(self):
|
|
36
|
+
return self.__contact_info
|
|
37
|
+
|
|
38
|
+
@contact_info.setter
|
|
39
|
+
def contact_info(self, value):
|
|
40
|
+
self.__contact_info = value
|
|
41
|
+
|
|
42
|
+
@property
|
|
43
|
+
def registration_type(self):
|
|
44
|
+
return self.__registration_type
|
|
45
|
+
|
|
46
|
+
@registration_type.setter
|
|
47
|
+
def registration_type(self, value):
|
|
48
|
+
self.__registration_type = value
|
|
49
|
+
|
|
50
|
+
@property
|
|
51
|
+
def registration_no(self):
|
|
52
|
+
return self.__registration_no
|
|
53
|
+
|
|
54
|
+
@registration_no.setter
|
|
55
|
+
def registration_no(self, value):
|
|
56
|
+
self.__registration_no = value
|
|
57
|
+
|
|
58
|
+
@property
|
|
59
|
+
def registration_address(self):
|
|
60
|
+
return self.__registration_address
|
|
61
|
+
|
|
62
|
+
@registration_address.setter
|
|
63
|
+
def registration_address(self, value):
|
|
64
|
+
self.__registration_address = value
|
|
65
|
+
|
|
66
|
+
@property
|
|
67
|
+
def business_type(self):
|
|
68
|
+
return self.__business_type
|
|
69
|
+
|
|
70
|
+
@business_type.setter
|
|
71
|
+
def business_type(self, value):
|
|
72
|
+
self.__business_type = value
|
|
73
|
+
|
|
74
|
+
@property
|
|
75
|
+
def registration_effective_date(self):
|
|
76
|
+
return self.__registration_effective_date
|
|
77
|
+
|
|
78
|
+
@registration_effective_date.setter
|
|
79
|
+
def registration_effective_date(self, value):
|
|
80
|
+
self.__registration_effective_date = value
|
|
81
|
+
|
|
82
|
+
@property
|
|
83
|
+
def registration_expire_date(self):
|
|
84
|
+
return self.__registration_expire_date
|
|
85
|
+
|
|
86
|
+
@registration_expire_date.setter
|
|
87
|
+
def registration_expire_date(self, value):
|
|
88
|
+
self.__registration_expire_date = value
|
|
89
|
+
|
|
90
|
+
def to_ams_dict(self):
|
|
91
|
+
params = dict()
|
|
92
|
+
if hasattr(self, "legal_name") and self.legal_name:
|
|
93
|
+
params['legalName'] = self.legal_name
|
|
94
|
+
|
|
95
|
+
if hasattr(self, "attachments") and self.attachments:
|
|
96
|
+
params['attachments'] = self.attachments
|
|
97
|
+
|
|
98
|
+
if hasattr(self, "contact_info") and self.contact_info:
|
|
99
|
+
params['contactInfo'] = self.contact_info
|
|
100
|
+
|
|
101
|
+
if hasattr(self, "registration_type") and self.registration_type:
|
|
102
|
+
params['registrationType'] = self.registration_type
|
|
103
|
+
|
|
104
|
+
if hasattr(self, "registration_no") and self.registration_no:
|
|
105
|
+
params['registrationNo'] = self.registration_no
|
|
106
|
+
|
|
107
|
+
if hasattr(self, "registration_address") and self.registration_address:
|
|
108
|
+
params['registrationAddress'] = self.registration_address
|
|
109
|
+
|
|
110
|
+
if hasattr(self, "business_type") and self.business_type:
|
|
111
|
+
params['businessType'] = self.business_type
|
|
112
|
+
|
|
113
|
+
if hasattr(self, "registration_effective_date") and self.registration_effective_date:
|
|
114
|
+
params['registrationEffectiveDate'] = self.registration_effective_date
|
|
115
|
+
|
|
116
|
+
if hasattr(self, "registration_expire_date") and self.registration_expire_date:
|
|
117
|
+
params['registrationExpireDate'] = self.registration_expire_date
|
|
118
|
+
|
|
119
|
+
return params
|
|
@@ -0,0 +1,39 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
|
|
6
|
+
from com.alipay.ams.api.model.result_status_type import ResultStatusType
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
class Result(object):
|
|
10
|
+
def __init__(self):
|
|
11
|
+
self.__result_code = None
|
|
12
|
+
self.__result_message = None
|
|
13
|
+
self.__result_status = None
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def result_code(self):
|
|
17
|
+
return self.__result_code
|
|
18
|
+
|
|
19
|
+
@property
|
|
20
|
+
def result_message(self):
|
|
21
|
+
return self.__result_message
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def result_status(self):
|
|
25
|
+
return self.__result_status
|
|
26
|
+
|
|
27
|
+
def parse_rsp_body(self, result_body):
|
|
28
|
+
if type(result_body) == str:
|
|
29
|
+
result_body = json.loads(result_body)
|
|
30
|
+
|
|
31
|
+
if 'resultCode' in result_body:
|
|
32
|
+
self.__result_code = result_body['resultCode']
|
|
33
|
+
|
|
34
|
+
if 'resultMessage' in result_body:
|
|
35
|
+
self.__result_message = result_body['resultMessage']
|
|
36
|
+
|
|
37
|
+
if 'resultStatus' in result_body:
|
|
38
|
+
result_status = ResultStatusType.value_of(result_body['resultStatus'])
|
|
39
|
+
self.__result_status = result_status
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from enum import Enum, unique
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@unique
|
|
7
|
+
class ResultStatusType(Enum):
|
|
8
|
+
S = "S"
|
|
9
|
+
F = "F"
|
|
10
|
+
U = "U"
|
|
11
|
+
|
|
12
|
+
def to_ams_dict(self):
|
|
13
|
+
return self.name
|
|
14
|
+
|
|
15
|
+
@staticmethod
|
|
16
|
+
def value_of(value):
|
|
17
|
+
if not value:
|
|
18
|
+
return None
|
|
19
|
+
|
|
20
|
+
if ResultStatusType.S.value == value:
|
|
21
|
+
return ResultStatusType.S
|
|
22
|
+
elif ResultStatusType.F.value == value:
|
|
23
|
+
return ResultStatusType.F
|
|
24
|
+
elif ResultStatusType.U.value == value:
|
|
25
|
+
return ResultStatusType.U
|
|
26
|
+
else:
|
|
27
|
+
return None
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class RiskScoreDetail(object):
|
|
8
|
+
|
|
9
|
+
def __init__(self):
|
|
10
|
+
self.__risk_info_code = None
|
|
11
|
+
self.__risk_info_code_result = None
|
|
12
|
+
|
|
13
|
+
@property
|
|
14
|
+
def risk_info_code(self):
|
|
15
|
+
return self.__risk_info_code
|
|
16
|
+
|
|
17
|
+
@risk_info_code.setter
|
|
18
|
+
def risk_info_code(self, value):
|
|
19
|
+
self.__risk_info_code = value
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def risk_info_code_result(self):
|
|
23
|
+
return self.__risk_info_code_result
|
|
24
|
+
|
|
25
|
+
@risk_info_code_result.setter
|
|
26
|
+
def risk_info_code_result(self, value):
|
|
27
|
+
self.__risk_info_code_result = value
|
|
28
|
+
|
|
29
|
+
def parse_rsp_body(self, risk_score_detail_body):
|
|
30
|
+
if type(risk_score_detail_body) == str:
|
|
31
|
+
risk_score_detail_body = json.loads(risk_score_detail_body)
|
|
32
|
+
|
|
33
|
+
if 'riskInfoCode' in risk_score_detail_body:
|
|
34
|
+
self.__risk_info_code = risk_score_detail_body['riskInfoCode']
|
|
35
|
+
|
|
36
|
+
if 'riskInfoCodeResult' in risk_score_detail_body:
|
|
37
|
+
self.__risk_info_code_result = risk_score_detail_body['riskInfoCodeResult']
|
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
import json
|
|
5
|
+
|
|
6
|
+
from com.alipay.ams.api.model.risk_score_detail import RiskScoreDetail
|
|
7
|
+
from com.alipay.ams.api.model.risk_score_type import RiskScoreType
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
class RiskScoreResult(object):
|
|
11
|
+
|
|
12
|
+
def __init__(self):
|
|
13
|
+
self.__risk_score_type = None # type: RiskScoreType
|
|
14
|
+
self.__risk_score = None
|
|
15
|
+
self.__risk_score_details = None # type: list[RiskScoreDetail]
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def risk_score_type(self):
|
|
19
|
+
return self.__risk_score_type
|
|
20
|
+
|
|
21
|
+
@risk_score_type.setter
|
|
22
|
+
def risk_score_type(self, value):
|
|
23
|
+
self.__risk_score_type = value
|
|
24
|
+
|
|
25
|
+
@property
|
|
26
|
+
def risk_score(self):
|
|
27
|
+
return self.__risk_score
|
|
28
|
+
|
|
29
|
+
@risk_score.setter
|
|
30
|
+
def risk_score(self, value):
|
|
31
|
+
self.__risk_score = value
|
|
32
|
+
|
|
33
|
+
@property
|
|
34
|
+
def risk_score_details(self):
|
|
35
|
+
return self.__risk_score_details
|
|
36
|
+
|
|
37
|
+
@risk_score_details.setter
|
|
38
|
+
def risk_score_details(self, value):
|
|
39
|
+
self.__risk_score_details = value
|
|
40
|
+
|
|
41
|
+
def parse_rsp_body(self, risk_score_result_body):
|
|
42
|
+
if type(risk_score_result_body) == str:
|
|
43
|
+
risk_score_result_body = json.loads(risk_score_result_body)
|
|
44
|
+
|
|
45
|
+
if 'riskScoreType' in risk_score_result_body:
|
|
46
|
+
risk_score_type = RiskScoreType.value_of(risk_score_result_body['riskScoreType'])
|
|
47
|
+
self.__risk_score_type = risk_score_type
|
|
48
|
+
|
|
49
|
+
if 'riskScore' in risk_score_result_body:
|
|
50
|
+
self.__risk_score = risk_score_result_body['riskScore']
|
|
51
|
+
|
|
52
|
+
if 'riskScoreDetails' in risk_score_result_body:
|
|
53
|
+
self.__risk_score_details = []
|
|
54
|
+
for entry in risk_score_result_body['riskScoreDetails']:
|
|
55
|
+
risk_score_detail = RiskScoreDetail()
|
|
56
|
+
risk_score_detail.parse_rsp_body(entry)
|
|
57
|
+
self.__risk_score_details.append(risk_score_detail)
|
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from enum import Enum, unique
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@unique
|
|
7
|
+
class RiskScoreType(Enum):
|
|
8
|
+
NSF_SCORE = "NSF_SCORE"
|
|
9
|
+
FRAUD_SCORE = "FRAUD_SCORE"
|
|
10
|
+
|
|
11
|
+
def to_ams_dict(self):
|
|
12
|
+
return self.name
|
|
13
|
+
|
|
14
|
+
@staticmethod
|
|
15
|
+
def value_of(value):
|
|
16
|
+
if not value:
|
|
17
|
+
return None
|
|
18
|
+
|
|
19
|
+
if RiskScoreType.NSF_SCORE.value == value:
|
|
20
|
+
return RiskScoreType.NSF_SCORE
|
|
21
|
+
elif RiskScoreType.FRAUD_SCORE.value == value:
|
|
22
|
+
return RiskScoreType.FRAUD_SCORE
|
|
23
|
+
else:
|
|
24
|
+
return None
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from enum import Enum, unique
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
@unique
|
|
7
|
+
class ScopeType(Enum):
|
|
8
|
+
BASE_USER_INFO = "BASE_USER_INFO"
|
|
9
|
+
AGREEMENT_PAY = "AGREEMENT_PAY"
|
|
10
|
+
USER_INFO = "USER_INFO"
|
|
11
|
+
USER_LOGIN_ID = "USER_LOGIN_ID"
|
|
12
|
+
HASH_LOGIN_ID = "HASH_LOGIN_ID"
|
|
13
|
+
SEND_OTP = "SEND_OTP"
|
|
14
|
+
TAOBAO_REBIND = "TAOBAO_REBIND"
|
|
15
|
+
|
|
16
|
+
def to_ams_dict(self):
|
|
17
|
+
return self.name
|
|
@@ -0,0 +1,143 @@
|
|
|
1
|
+
from com.alipay.ams.api.model.account_holder_type import AccountHolderType
|
|
2
|
+
from com.alipay.ams.api.model.account_type import AccountType
|
|
3
|
+
from com.alipay.ams.api.model.address import Address
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class SettlementBankAccount:
|
|
7
|
+
def __init__(self):
|
|
8
|
+
self.__bank_account_no = None
|
|
9
|
+
self.__account_holder_name = None
|
|
10
|
+
self.__swift_code = None
|
|
11
|
+
self.__bank_region = None
|
|
12
|
+
self.__account_holder_type = None # type: AccountHolderType
|
|
13
|
+
self.__routing_number = None
|
|
14
|
+
self.__branch_code = None
|
|
15
|
+
self.__account_holder_tIN = None
|
|
16
|
+
self.__account_type = None # type: AccountType
|
|
17
|
+
self.__bank_name = None
|
|
18
|
+
self.__account_holder_address = None # type: Address
|
|
19
|
+
self.__iban = None
|
|
20
|
+
|
|
21
|
+
@property
|
|
22
|
+
def bank_account_no(self):
|
|
23
|
+
return self.__bank_account_no
|
|
24
|
+
|
|
25
|
+
@bank_account_no.setter
|
|
26
|
+
def bank_account_no(self, value):
|
|
27
|
+
self.__bank_account_no = value
|
|
28
|
+
|
|
29
|
+
@property
|
|
30
|
+
def account_holder_name(self):
|
|
31
|
+
return self.__account_holder_name
|
|
32
|
+
|
|
33
|
+
@account_holder_name.setter
|
|
34
|
+
def account_holder_name(self, value):
|
|
35
|
+
self.__account_holder_name = value
|
|
36
|
+
|
|
37
|
+
@property
|
|
38
|
+
def swift_code(self):
|
|
39
|
+
return self.__swift_code
|
|
40
|
+
|
|
41
|
+
@swift_code.setter
|
|
42
|
+
def swift_code(self, value):
|
|
43
|
+
self.__swift_code = value
|
|
44
|
+
|
|
45
|
+
@property
|
|
46
|
+
def bank_region(self):
|
|
47
|
+
return self.__bank_region
|
|
48
|
+
|
|
49
|
+
@bank_region.setter
|
|
50
|
+
def bank_region(self, value):
|
|
51
|
+
self.__bank_region = value
|
|
52
|
+
|
|
53
|
+
@property
|
|
54
|
+
def account_holder_type(self):
|
|
55
|
+
return self.__account_holder_type
|
|
56
|
+
|
|
57
|
+
@account_holder_type.setter
|
|
58
|
+
def account_holder_type(self, value):
|
|
59
|
+
self.__account_holder_type = value
|
|
60
|
+
|
|
61
|
+
@property
|
|
62
|
+
def routing_number(self):
|
|
63
|
+
return self.__routing_number
|
|
64
|
+
|
|
65
|
+
@routing_number.setter
|
|
66
|
+
def routing_number(self, value):
|
|
67
|
+
self.__routing_number = value
|
|
68
|
+
|
|
69
|
+
@property
|
|
70
|
+
def branch_code(self):
|
|
71
|
+
return self.__branch_code
|
|
72
|
+
|
|
73
|
+
@branch_code.setter
|
|
74
|
+
def branch_code(self, value):
|
|
75
|
+
self.__branch_code = value
|
|
76
|
+
|
|
77
|
+
@property
|
|
78
|
+
def account_holder_tIN(self):
|
|
79
|
+
return self.__account_holder_tIN
|
|
80
|
+
|
|
81
|
+
@account_holder_tIN.setter
|
|
82
|
+
def account_holder_tIN(self, value):
|
|
83
|
+
self.__account_holder_tIN = value
|
|
84
|
+
|
|
85
|
+
@property
|
|
86
|
+
def account_type(self):
|
|
87
|
+
return self.__account_type
|
|
88
|
+
|
|
89
|
+
@account_type.setter
|
|
90
|
+
def account_type(self, value):
|
|
91
|
+
self.__account_type = value
|
|
92
|
+
|
|
93
|
+
@property
|
|
94
|
+
def bank_name(self):
|
|
95
|
+
return self.__bank_name
|
|
96
|
+
|
|
97
|
+
@bank_name.setter
|
|
98
|
+
def bank_name(self, value):
|
|
99
|
+
self.__bank_name = value
|
|
100
|
+
|
|
101
|
+
@property
|
|
102
|
+
def account_holder_address(self):
|
|
103
|
+
return self.__account_holder_address
|
|
104
|
+
|
|
105
|
+
@account_holder_address.setter
|
|
106
|
+
def account_holder_address(self, value):
|
|
107
|
+
self.__account_holder_address = value
|
|
108
|
+
|
|
109
|
+
@property
|
|
110
|
+
def iban(self):
|
|
111
|
+
return self.__iban
|
|
112
|
+
|
|
113
|
+
@iban.setter
|
|
114
|
+
def iban(self, value):
|
|
115
|
+
self.__iban = value
|
|
116
|
+
|
|
117
|
+
def to_ams_dict(self):
|
|
118
|
+
params = dict()
|
|
119
|
+
if hasattr(self, "bank_account_no") and self.bank_account_no:
|
|
120
|
+
params['bankAccountNo'] = self.bank_account_no
|
|
121
|
+
if hasattr(self, "account_holder_name") and self.account_holder_name:
|
|
122
|
+
params['accountHolderName'] = self.account_holder_name
|
|
123
|
+
if hasattr(self, "swift_code") and self.swift_code:
|
|
124
|
+
params['swiftCode'] = self.swift_code
|
|
125
|
+
if hasattr(self, "bank_region") and self.bank_region:
|
|
126
|
+
params['bankRegion'] = self.bank_region
|
|
127
|
+
if hasattr(self, "account_holder_type") and self.account_holder_type:
|
|
128
|
+
params['accountHolderType'] = self.account_holder_type.value
|
|
129
|
+
if hasattr(self, "routing_number") and self.routing_number:
|
|
130
|
+
params['routingNumber'] = self.routing_number
|
|
131
|
+
if hasattr(self, "branch_code") and self.branch_code:
|
|
132
|
+
params['branchCode'] = self.branch_code
|
|
133
|
+
if hasattr(self, "account_holder_tIN") and self.account_holder_tIN:
|
|
134
|
+
params['accountHolderTIN'] = self.account_holder_tIN
|
|
135
|
+
if hasattr(self, "account_type") and self.account_type:
|
|
136
|
+
params['accountType'] = self.account_type.value
|
|
137
|
+
if hasattr(self, "bank_name") and self.bank_name:
|
|
138
|
+
params['bankName'] = self.bank_name
|
|
139
|
+
if hasattr(self, "account_holder_address") and self.account_holder_address:
|
|
140
|
+
params['accountHolderAddress'] = self.account_holder_address.to_ams_dict()
|
|
141
|
+
if hasattr(self, "iban") and self.iban:
|
|
142
|
+
params['iban'] = self.iban
|
|
143
|
+
return params
|
|
@@ -0,0 +1,32 @@
|
|
|
1
|
+
from com.alipay.ams.api.model.amount import Amount
|
|
2
|
+
from com.alipay.ams.api.model.settle_to_type import SettleToType
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class SettlementDetail:
|
|
6
|
+
def __init__(self):
|
|
7
|
+
self.__settle_to = None #type: SettleToType
|
|
8
|
+
self.__settlement_amount = None #type: Amount
|
|
9
|
+
|
|
10
|
+
@property
|
|
11
|
+
def settle_to(self):
|
|
12
|
+
return self.__settle_to
|
|
13
|
+
|
|
14
|
+
@settle_to.setter
|
|
15
|
+
def settle_to(self, value):
|
|
16
|
+
self.__settle_to = value
|
|
17
|
+
|
|
18
|
+
@property
|
|
19
|
+
def settlement_amount(self):
|
|
20
|
+
return self.__settlement_amount
|
|
21
|
+
|
|
22
|
+
@settlement_amount.setter
|
|
23
|
+
def settlement_amount(self, value):
|
|
24
|
+
self.__settlement_amount = value
|
|
25
|
+
|
|
26
|
+
def to_ams_dict(self):
|
|
27
|
+
params = dict()
|
|
28
|
+
if hasattr(self, 'settle_to') and self.settle_to:
|
|
29
|
+
params['settleTo'] = self.settle_to.value
|
|
30
|
+
if hasattr(self, 'settlement_amount') and self.settlement_amount:
|
|
31
|
+
params['settlementAmount'] = self.settlement_amount.to_ams_dict()
|
|
32
|
+
return params
|
|
@@ -0,0 +1,31 @@
|
|
|
1
|
+
from com.alipay.ams.api.model.settlement_bank_account import SettlementBankAccount
|
|
2
|
+
|
|
3
|
+
|
|
4
|
+
class SettlementInfo:
|
|
5
|
+
def __init__(self):
|
|
6
|
+
self.__settlement_currency = None
|
|
7
|
+
self.__settlement_bank_account = None #type: SettlementBankAccount
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def settlement_currency(self):
|
|
11
|
+
return self.__settlement_currency
|
|
12
|
+
|
|
13
|
+
@settlement_currency.setter
|
|
14
|
+
def settlement_currency(self, value):
|
|
15
|
+
self.__settlement_currency = value
|
|
16
|
+
|
|
17
|
+
@property
|
|
18
|
+
def settlement_bank_account(self):
|
|
19
|
+
return self.__settlement_bank_account
|
|
20
|
+
|
|
21
|
+
@settlement_bank_account.setter
|
|
22
|
+
def settlement_bank_account(self, value):
|
|
23
|
+
self.__settlement_bank_account = value
|
|
24
|
+
|
|
25
|
+
def to_ams_dict(self):
|
|
26
|
+
params = dict()
|
|
27
|
+
if hasattr(self, 'settlement_currency') and self.settlement_currency:
|
|
28
|
+
params['settlementCurrency'] = self.settlement_currency
|
|
29
|
+
if hasattr(self, 'settlement_bank_account') and self.settlement_bank_account:
|
|
30
|
+
params['settlementBankAccount'] = self.settlement_bank_account.to_ams_dict()
|
|
31
|
+
return params
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
|
|
4
|
+
|
|
5
|
+
class SettlementStrategy(object):
|
|
6
|
+
def __init__(self):
|
|
7
|
+
self.__settlement_currency = None
|
|
8
|
+
|
|
9
|
+
@property
|
|
10
|
+
def settlement_currency(self):
|
|
11
|
+
return self.__settlement_currency
|
|
12
|
+
|
|
13
|
+
@settlement_currency.setter
|
|
14
|
+
def settlement_currency(self, value):
|
|
15
|
+
self.__settlement_currency = value
|
|
16
|
+
|
|
17
|
+
def to_ams_dict(self):
|
|
18
|
+
params = dict()
|
|
19
|
+
if hasattr(self, "settlement_currency") and self.settlement_currency:
|
|
20
|
+
params['settlementCurrency'] = self.settlement_currency
|
|
21
|
+
|
|
22
|
+
return params
|
|
@@ -0,0 +1,61 @@
|
|
|
1
|
+
#!/usr/bin/env python
|
|
2
|
+
# -*- coding: utf-8 -*-
|
|
3
|
+
from com.alipay.ams.api.model.address import Address
|
|
4
|
+
from com.alipay.ams.api.model.user_name import UserName
|
|
5
|
+
|
|
6
|
+
|
|
7
|
+
class Shipping(object):
|
|
8
|
+
|
|
9
|
+
def __init__(self):
|
|
10
|
+
self.__shipping_name = None # type:UserName
|
|
11
|
+
self.__shipping_address = None # type:Address
|
|
12
|
+
self.__shipping_carrier = None
|
|
13
|
+
self.__shipping_phone_no = None
|
|
14
|
+
|
|
15
|
+
@property
|
|
16
|
+
def shipping_name(self):
|
|
17
|
+
return self.__shipping_name
|
|
18
|
+
|
|
19
|
+
@shipping_name.setter
|
|
20
|
+
def shipping_name(self, value):
|
|
21
|
+
self.__shipping_name = value
|
|
22
|
+
|
|
23
|
+
@property
|
|
24
|
+
def shipping_address(self):
|
|
25
|
+
return self.__shipping_address
|
|
26
|
+
|
|
27
|
+
@shipping_address.setter
|
|
28
|
+
def shipping_address(self, value):
|
|
29
|
+
self.__shipping_address = value
|
|
30
|
+
|
|
31
|
+
@property
|
|
32
|
+
def shipping_carrier(self):
|
|
33
|
+
return self.__shipping_carrier
|
|
34
|
+
|
|
35
|
+
@shipping_carrier.setter
|
|
36
|
+
def shipping_carrier(self, value):
|
|
37
|
+
self.__shipping_carrier = value
|
|
38
|
+
|
|
39
|
+
@property
|
|
40
|
+
def shipping_phone_no(self):
|
|
41
|
+
return self.__shipping_phone_no
|
|
42
|
+
|
|
43
|
+
@shipping_phone_no.setter
|
|
44
|
+
def shipping_phone_no(self, value):
|
|
45
|
+
self.__shipping_phone_no = value
|
|
46
|
+
|
|
47
|
+
def to_ams_dict(self):
|
|
48
|
+
params = dict()
|
|
49
|
+
if hasattr(self, "shipping_name") and self.shipping_name:
|
|
50
|
+
params['shippingName'] = self.shipping_name
|
|
51
|
+
|
|
52
|
+
if hasattr(self, "shipping_address") and self.shipping_address:
|
|
53
|
+
params['shippingAddress'] = self.shipping_address
|
|
54
|
+
|
|
55
|
+
if hasattr(self, "shipping_carrier") and self.shipping_carrier:
|
|
56
|
+
params['shippingCarrier'] = self.shipping_carrier
|
|
57
|
+
|
|
58
|
+
if hasattr(self, "shipping_phone_no") and self.shipping_phone_no:
|
|
59
|
+
params['shippingPhoneNo'] = self.shipping_phone_no
|
|
60
|
+
|
|
61
|
+
return params
|
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
|
|
2
|
+
class StockInfo:
|
|
3
|
+
def __init__(self):
|
|
4
|
+
self.__listed_region = None
|
|
5
|
+
self.__ticker_symbol = None
|
|
6
|
+
|
|
7
|
+
def get_listed_region(self):
|
|
8
|
+
return self.__listed_region
|
|
9
|
+
|
|
10
|
+
def set_listed_region(self, listed_region):
|
|
11
|
+
self.__listed_region = listed_region
|
|
12
|
+
|
|
13
|
+
def get_ticker_symbol(self):
|
|
14
|
+
return self.__ticker_symbol
|
|
15
|
+
|
|
16
|
+
def set_ticker_symbol(self, ticker_symbol):
|
|
17
|
+
self.__ticker_symbol = ticker_symbol
|
|
18
|
+
|
|
19
|
+
|
|
20
|
+
def to_ams_dict(self):
|
|
21
|
+
params = dict()
|
|
22
|
+
if hasattr(self, 'listed_region') and self.listed_region:
|
|
23
|
+
params['listedRegion'] = self.listed_region
|
|
24
|
+
if hasattr(self, 'ticker_symbol') and self.ticker_symbol:
|
|
25
|
+
params['tickerSymbol'] = self.ticker_symbol
|
|
26
|
+
return params
|