diff --git a/com/alipay/ams/api/model/aba_card.py b/com/alipay/ams/api/model/aba_card.py new file mode 100644 index 0000000..69c0b88 --- /dev/null +++ b/com/alipay/ams/api/model/aba_card.py @@ -0,0 +1,127 @@ +import json + + + + +class AbaCard: + def __init__(self): + + self.__asset_id = None # type: str + self.__card_nick_name = None # type: str + self.__masked_card_no = None # type: str + self.__card_status = None # type: str + self.__card_brand = None # type: str + self.__created_time = None # type: str + self.__updated_time = None # type: str + + + @property + def asset_id(self): + """ + 卡资产ID。 Card asset Id. + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def card_nick_name(self): + """ + 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。 User-defined card nickname, designed to help users manage multiple cards more conveniently. + """ + return self.__card_nick_name + + @card_nick_name.setter + def card_nick_name(self, value): + self.__card_nick_name = value + @property + def masked_card_no(self): + """ + 脱敏卡号。 Masked card number. + """ + return self.__masked_card_no + + @masked_card_no.setter + def masked_card_no(self, value): + self.__masked_card_no = value + @property + def card_status(self): + """ + 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is no longer valid. + """ + return self.__card_status + + @card_status.setter + def card_status(self, value): + self.__card_status = value + @property + def card_brand(self): + """ + 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: MASTERCARD: The card is part of the Mastercard network. + """ + return self.__card_brand + + @card_brand.setter + def card_brand(self, value): + self.__card_brand = value + @property + def created_time(self): + """ + Card creation time ISO 8601 + """ + return self.__created_time + + @created_time.setter + def created_time(self, value): + self.__created_time = value + @property + def updated_time(self): + """ + Card update time ISO 8601 + """ + return self.__updated_time + + @updated_time.setter + def updated_time(self, value): + self.__updated_time = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "card_nick_name") and self.card_nick_name is not None: + params['cardNickName'] = self.card_nick_name + if hasattr(self, "masked_card_no") and self.masked_card_no is not None: + params['maskedCardNo'] = self.masked_card_no + if hasattr(self, "card_status") and self.card_status is not None: + params['cardStatus'] = self.card_status + if hasattr(self, "card_brand") and self.card_brand is not None: + params['cardBrand'] = self.card_brand + if hasattr(self, "created_time") and self.created_time is not None: + params['createdTime'] = self.created_time + if hasattr(self, "updated_time") and self.updated_time is not None: + params['updatedTime'] = self.updated_time + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'cardNickName' in response_body: + self.__card_nick_name = response_body['cardNickName'] + if 'maskedCardNo' in response_body: + self.__masked_card_no = response_body['maskedCardNo'] + if 'cardStatus' in response_body: + self.__card_status = response_body['cardStatus'] + if 'cardBrand' in response_body: + self.__card_brand = response_body['cardBrand'] + if 'createdTime' in response_body: + self.__created_time = response_body['createdTime'] + if 'updatedTime' in response_body: + self.__updated_time = response_body['updatedTime'] diff --git a/com/alipay/ams/api/model/authorization_control.py b/com/alipay/ams/api/model/authorization_control.py new file mode 100644 index 0000000..1c0cd72 --- /dev/null +++ b/com/alipay/ams/api/model/authorization_control.py @@ -0,0 +1,131 @@ +import json +from com.alipay.ams.api.model.card_limit_detail import CardLimitDetail +from com.alipay.ams.api.model.card_limit_info import CardLimitInfo + + + + +class AuthorizationControl: + def __init__(self): + + self.__card_active_time = None # type: str + self.__card_cancel_time = None # type: str + self.__allowed_merchant_category_list = None # type: [str] + self.__allowed_auth_times = None # type: int + self.__allowed_currencies = None # type: [str] + self.__card_limit_detail = None # type: CardLimitDetail + self.__card_limit_info = None # type: CardLimitInfo + + + @property + def card_active_time(self): + """ + If not present, It will be activated when the card is created. Datetime UTC time: 2018-10-31T00:00:00+0800 ISO 8601 + """ + return self.__card_active_time + + @card_active_time.setter + def card_active_time(self, value): + self.__card_active_time = value + @property + def card_cancel_time(self): + """ + Datetime UTC time: 2018-10-31T00:00:00+0800 ISO 8601 + """ + return self.__card_cancel_time + + @card_cancel_time.setter + def card_cancel_time(self, value): + self.__card_cancel_time = value + @property + def allowed_merchant_category_list(self): + """ + Allowed MCC (Merchant Category Code) list. If not set or left empty, all transactions are allowed. + """ + return self.__allowed_merchant_category_list + + @allowed_merchant_category_list.setter + def allowed_merchant_category_list(self, value): + self.__allowed_merchant_category_list = value + @property + def allowed_auth_times(self): + """ + Indicates the number of allowed authorization times. If not set or left empty, all transactions are allowed. + """ + return self.__allowed_auth_times + + @allowed_auth_times.setter + def allowed_auth_times(self, value): + self.__allowed_auth_times = value + @property + def allowed_currencies(self): + """ + Allowed transaction currencies (ISO 4217 three-letter codes). If not set, no currency restriction applies. + """ + return self.__allowed_currencies + + @allowed_currencies.setter + def allowed_currencies(self, value): + self.__allowed_currencies = value + @property + def card_limit_detail(self): + """Gets the card_limit_detail of this AuthorizationControl. + + """ + return self.__card_limit_detail + + @card_limit_detail.setter + def card_limit_detail(self, value): + self.__card_limit_detail = value + @property + def card_limit_info(self): + """Gets the card_limit_info of this AuthorizationControl. + + """ + return self.__card_limit_info + + @card_limit_info.setter + def card_limit_info(self, value): + self.__card_limit_info = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "card_active_time") and self.card_active_time is not None: + params['cardActiveTime'] = self.card_active_time + if hasattr(self, "card_cancel_time") and self.card_cancel_time is not None: + params['cardCancelTime'] = self.card_cancel_time + if hasattr(self, "allowed_merchant_category_list") and self.allowed_merchant_category_list is not None: + params['allowedMerchantCategoryList'] = self.allowed_merchant_category_list + if hasattr(self, "allowed_auth_times") and self.allowed_auth_times is not None: + params['allowedAuthTimes'] = self.allowed_auth_times + if hasattr(self, "allowed_currencies") and self.allowed_currencies is not None: + params['allowedCurrencies'] = self.allowed_currencies + if hasattr(self, "card_limit_detail") and self.card_limit_detail is not None: + params['cardLimitDetail'] = self.card_limit_detail + if hasattr(self, "card_limit_info") and self.card_limit_info is not None: + params['cardLimitInfo'] = self.card_limit_info + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'cardActiveTime' in response_body: + self.__card_active_time = response_body['cardActiveTime'] + if 'cardCancelTime' in response_body: + self.__card_cancel_time = response_body['cardCancelTime'] + if 'allowedMerchantCategoryList' in response_body: + self.__allowed_merchant_category_list = response_body['allowedMerchantCategoryList'] + if 'allowedAuthTimes' in response_body: + self.__allowed_auth_times = response_body['allowedAuthTimes'] + if 'allowedCurrencies' in response_body: + self.__allowed_currencies = response_body['allowedCurrencies'] + if 'cardLimitDetail' in response_body: + self.__card_limit_detail = CardLimitDetail() + self.__card_limit_detail.parse_rsp_body(response_body['cardLimitDetail']) + if 'cardLimitInfo' in response_body: + self.__card_limit_info = CardLimitInfo() + self.__card_limit_info.parse_rsp_body(response_body['cardLimitInfo']) diff --git a/com/alipay/ams/api/model/card_limit_detail.py b/com/alipay/ams/api/model/card_limit_detail.py new file mode 100644 index 0000000..d678c77 --- /dev/null +++ b/com/alipay/ams/api/model/card_limit_detail.py @@ -0,0 +1,150 @@ +import json +from com.alipay.ams.api.model.amount import Amount +from com.alipay.ams.api.model.limit import Limit +from com.alipay.ams.api.model.limit import Limit +from com.alipay.ams.api.model.limit import Limit + + + + +class CardLimitDetail: + def __init__(self): + + self.__per_transaction_limit = None # type: Amount + self.__daily_limit = None # type: Limit + self.__monthly_limit = None # type: Limit + self.__per_card_limit = None # type: Limit + self.__daily_limit_max = None # type: str + self.__monthly_limit_max = None # type: str + self.__per_transaction_limit_max = None # type: str + self.__per_card_limit_max = None # type: str + + + @property + def per_transaction_limit(self): + """Gets the per_transaction_limit of this CardLimitDetail. + + """ + return self.__per_transaction_limit + + @per_transaction_limit.setter + def per_transaction_limit(self, value): + self.__per_transaction_limit = value + @property + def daily_limit(self): + """Gets the daily_limit of this CardLimitDetail. + + """ + return self.__daily_limit + + @daily_limit.setter + def daily_limit(self, value): + self.__daily_limit = value + @property + def monthly_limit(self): + """Gets the monthly_limit of this CardLimitDetail. + + """ + return self.__monthly_limit + + @monthly_limit.setter + def monthly_limit(self, value): + self.__monthly_limit = value + @property + def per_card_limit(self): + """Gets the per_card_limit of this CardLimitDetail. + + """ + return self.__per_card_limit + + @per_card_limit.setter + def per_card_limit(self, value): + self.__per_card_limit = value + @property + def daily_limit_max(self): + """Gets the daily_limit_max of this CardLimitDetail. + + """ + return self.__daily_limit_max + + @daily_limit_max.setter + def daily_limit_max(self, value): + self.__daily_limit_max = value + @property + def monthly_limit_max(self): + """Gets the monthly_limit_max of this CardLimitDetail. + + """ + return self.__monthly_limit_max + + @monthly_limit_max.setter + def monthly_limit_max(self, value): + self.__monthly_limit_max = value + @property + def per_transaction_limit_max(self): + """Gets the per_transaction_limit_max of this CardLimitDetail. + + """ + return self.__per_transaction_limit_max + + @per_transaction_limit_max.setter + def per_transaction_limit_max(self, value): + self.__per_transaction_limit_max = value + @property + def per_card_limit_max(self): + """Gets the per_card_limit_max of this CardLimitDetail. + + """ + return self.__per_card_limit_max + + @per_card_limit_max.setter + def per_card_limit_max(self, value): + self.__per_card_limit_max = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "per_transaction_limit") and self.per_transaction_limit is not None: + params['perTransactionLimit'] = self.per_transaction_limit + if hasattr(self, "daily_limit") and self.daily_limit is not None: + params['dailyLimit'] = self.daily_limit + if hasattr(self, "monthly_limit") and self.monthly_limit is not None: + params['monthlyLimit'] = self.monthly_limit + if hasattr(self, "per_card_limit") and self.per_card_limit is not None: + params['perCardLimit'] = self.per_card_limit + if hasattr(self, "daily_limit_max") and self.daily_limit_max is not None: + params['dailyLimitMax'] = self.daily_limit_max + if hasattr(self, "monthly_limit_max") and self.monthly_limit_max is not None: + params['monthlyLimitMax'] = self.monthly_limit_max + if hasattr(self, "per_transaction_limit_max") and self.per_transaction_limit_max is not None: + params['perTransactionLimitMax'] = self.per_transaction_limit_max + if hasattr(self, "per_card_limit_max") and self.per_card_limit_max is not None: + params['perCardLimitMax'] = self.per_card_limit_max + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'perTransactionLimit' in response_body: + self.__per_transaction_limit = Amount() + self.__per_transaction_limit.parse_rsp_body(response_body['perTransactionLimit']) + if 'dailyLimit' in response_body: + self.__daily_limit = Limit() + self.__daily_limit.parse_rsp_body(response_body['dailyLimit']) + if 'monthlyLimit' in response_body: + self.__monthly_limit = Limit() + self.__monthly_limit.parse_rsp_body(response_body['monthlyLimit']) + if 'perCardLimit' in response_body: + self.__per_card_limit = Limit() + self.__per_card_limit.parse_rsp_body(response_body['perCardLimit']) + if 'dailyLimitMax' in response_body: + self.__daily_limit_max = response_body['dailyLimitMax'] + if 'monthlyLimitMax' in response_body: + self.__monthly_limit_max = response_body['monthlyLimitMax'] + if 'perTransactionLimitMax' in response_body: + self.__per_transaction_limit_max = response_body['perTransactionLimitMax'] + if 'perCardLimitMax' in response_body: + self.__per_card_limit_max = response_body['perCardLimitMax'] diff --git a/com/alipay/ams/api/model/card_limit_info.py b/com/alipay/ams/api/model/card_limit_info.py new file mode 100644 index 0000000..9417335 --- /dev/null +++ b/com/alipay/ams/api/model/card_limit_info.py @@ -0,0 +1,97 @@ +import json + + + + +class CardLimitInfo: + def __init__(self): + + self.__currency = None # type: str + self.__daily_limit_max = None # type: str + self.__monthly_limit_max = None # type: str + self.__per_transaction_limit_max = None # type: str + self.__per_card_limit_max = None # type: str + + + @property + def currency(self): + """Gets the currency of this CardLimitInfo. + + """ + return self.__currency + + @currency.setter + def currency(self, value): + self.__currency = value + @property + def daily_limit_max(self): + """Gets the daily_limit_max of this CardLimitInfo. + + """ + return self.__daily_limit_max + + @daily_limit_max.setter + def daily_limit_max(self, value): + self.__daily_limit_max = value + @property + def monthly_limit_max(self): + """Gets the monthly_limit_max of this CardLimitInfo. + + """ + return self.__monthly_limit_max + + @monthly_limit_max.setter + def monthly_limit_max(self, value): + self.__monthly_limit_max = value + @property + def per_transaction_limit_max(self): + """Gets the per_transaction_limit_max of this CardLimitInfo. + + """ + return self.__per_transaction_limit_max + + @per_transaction_limit_max.setter + def per_transaction_limit_max(self, value): + self.__per_transaction_limit_max = value + @property + def per_card_limit_max(self): + """Gets the per_card_limit_max of this CardLimitInfo. + + """ + return self.__per_card_limit_max + + @per_card_limit_max.setter + def per_card_limit_max(self, value): + self.__per_card_limit_max = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "currency") and self.currency is not None: + params['currency'] = self.currency + if hasattr(self, "daily_limit_max") and self.daily_limit_max is not None: + params['dailyLimitMax'] = self.daily_limit_max + if hasattr(self, "monthly_limit_max") and self.monthly_limit_max is not None: + params['monthlyLimitMax'] = self.monthly_limit_max + if hasattr(self, "per_transaction_limit_max") and self.per_transaction_limit_max is not None: + params['perTransactionLimitMax'] = self.per_transaction_limit_max + if hasattr(self, "per_card_limit_max") and self.per_card_limit_max is not None: + params['perCardLimitMax'] = self.per_card_limit_max + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'currency' in response_body: + self.__currency = response_body['currency'] + if 'dailyLimitMax' in response_body: + self.__daily_limit_max = response_body['dailyLimitMax'] + if 'monthlyLimitMax' in response_body: + self.__monthly_limit_max = response_body['monthlyLimitMax'] + if 'perTransactionLimitMax' in response_body: + self.__per_transaction_limit_max = response_body['perTransactionLimitMax'] + if 'perCardLimitMax' in response_body: + self.__per_card_limit_max = response_body['perCardLimitMax'] diff --git a/com/alipay/ams/api/model/cardholder_info.py b/com/alipay/ams/api/model/cardholder_info.py new file mode 100644 index 0000000..452aaaa --- /dev/null +++ b/com/alipay/ams/api/model/cardholder_info.py @@ -0,0 +1,56 @@ +import json +from com.alipay.ams.api.model.user_name import UserName +from com.alipay.ams.api.model.address import Address + + + + +class CardholderInfo: + def __init__(self): + + self.__card_holder_name = None # type: UserName + self.__bill_address = None # type: Address + + + @property + def card_holder_name(self): + """Gets the card_holder_name of this CardholderInfo. + + """ + return self.__card_holder_name + + @card_holder_name.setter + def card_holder_name(self, value): + self.__card_holder_name = value + @property + def bill_address(self): + """Gets the bill_address of this CardholderInfo. + + """ + return self.__bill_address + + @bill_address.setter + def bill_address(self, value): + self.__bill_address = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "card_holder_name") and self.card_holder_name is not None: + params['cardHolderName'] = self.card_holder_name + if hasattr(self, "bill_address") and self.bill_address is not None: + params['billAddress'] = self.bill_address + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'cardHolderName' in response_body: + self.__card_holder_name = UserName() + self.__card_holder_name.parse_rsp_body(response_body['cardHolderName']) + if 'billAddress' in response_body: + self.__bill_address = Address() + self.__bill_address.parse_rsp_body(response_body['billAddress']) diff --git a/com/alipay/ams/api/model/fund_move_detail.py b/com/alipay/ams/api/model/fund_move_detail.py index 1c5ca8f..90a9409 100644 --- a/com/alipay/ams/api/model/fund_move_detail.py +++ b/com/alipay/ams/api/model/fund_move_detail.py @@ -8,6 +8,8 @@ def __init__(self): self.__memo = None # type: str self.__reference_transaction_id = None # type: str + self.__payer_asset_id = None # type: str + self.__beneficiary_asset_id = None # type: str @property @@ -30,6 +32,26 @@ def reference_transaction_id(self): @reference_transaction_id.setter def reference_transaction_id(self, value): self.__reference_transaction_id = value + @property + def payer_asset_id(self): + """Gets the payer_asset_id of this FundMoveDetail. + + """ + return self.__payer_asset_id + + @payer_asset_id.setter + def payer_asset_id(self, value): + self.__payer_asset_id = value + @property + def beneficiary_asset_id(self): + """Gets the beneficiary_asset_id of this FundMoveDetail. + + """ + return self.__beneficiary_asset_id + + @beneficiary_asset_id.setter + def beneficiary_asset_id(self, value): + self.__beneficiary_asset_id = value @@ -40,6 +62,10 @@ def to_ams_dict(self): params['memo'] = self.memo if hasattr(self, "reference_transaction_id") and self.reference_transaction_id is not None: params['referenceTransactionId'] = self.reference_transaction_id + if hasattr(self, "payer_asset_id") and self.payer_asset_id is not None: + params['payerAssetId'] = self.payer_asset_id + if hasattr(self, "beneficiary_asset_id") and self.beneficiary_asset_id is not None: + params['beneficiaryAssetId'] = self.beneficiary_asset_id return params @@ -50,3 +76,7 @@ def parse_rsp_body(self, response_body): self.__memo = response_body['memo'] if 'referenceTransactionId' in response_body: self.__reference_transaction_id = response_body['referenceTransactionId'] + if 'payerAssetId' in response_body: + self.__payer_asset_id = response_body['payerAssetId'] + if 'beneficiaryAssetId' in response_body: + self.__beneficiary_asset_id = response_body['beneficiaryAssetId'] diff --git a/com/alipay/ams/api/model/limit.py b/com/alipay/ams/api/model/limit.py new file mode 100644 index 0000000..c11c380 --- /dev/null +++ b/com/alipay/ams/api/model/limit.py @@ -0,0 +1,73 @@ +import json +from com.alipay.ams.api.model.amount import Amount +from com.alipay.ams.api.model.amount import Amount +from com.alipay.ams.api.model.amount import Amount + + + + +class Limit: + def __init__(self): + + self.__remaining_limit = None # type: Amount + self.__range_limit = None # type: Amount + self.__used_limit = None # type: Amount + + + @property + def remaining_limit(self): + """Gets the remaining_limit of this Limit. + + """ + return self.__remaining_limit + + @remaining_limit.setter + def remaining_limit(self, value): + self.__remaining_limit = value + @property + def range_limit(self): + """Gets the range_limit of this Limit. + + """ + return self.__range_limit + + @range_limit.setter + def range_limit(self, value): + self.__range_limit = value + @property + def used_limit(self): + """Gets the used_limit of this Limit. + + """ + return self.__used_limit + + @used_limit.setter + def used_limit(self, value): + self.__used_limit = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "remaining_limit") and self.remaining_limit is not None: + params['remainingLimit'] = self.remaining_limit + if hasattr(self, "range_limit") and self.range_limit is not None: + params['rangeLimit'] = self.range_limit + if hasattr(self, "used_limit") and self.used_limit is not None: + params['usedLimit'] = self.used_limit + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'remainingLimit' in response_body: + self.__remaining_limit = Amount() + self.__remaining_limit.parse_rsp_body(response_body['remainingLimit']) + if 'rangeLimit' in response_body: + self.__range_limit = Amount() + self.__range_limit.parse_rsp_body(response_body['rangeLimit']) + if 'usedLimit' in response_body: + self.__used_limit = Amount() + self.__used_limit.parse_rsp_body(response_body['usedLimit']) diff --git a/com/alipay/ams/api/model/result_result.py b/com/alipay/ams/api/model/result_result.py new file mode 100644 index 0000000..accb463 --- /dev/null +++ b/com/alipay/ams/api/model/result_result.py @@ -0,0 +1,69 @@ +import json +from com.alipay.ams.api.model.result_status_type import ResultStatusType + + + + +class ResultResult: + def __init__(self): + + self.__result_code = None # type: str + self.__result_status = None # type: ResultStatusType + self.__result_message = None # type: str + + + @property + def result_code(self): + """ + The result code. + """ + return self.__result_code + + @result_code.setter + def result_code(self, value): + self.__result_code = value + @property + def result_status(self): + """Gets the result_status of this ResultResult. + + """ + return self.__result_status + + @result_status.setter + def result_status(self, value): + self.__result_status = value + @property + def result_message(self): + """ + The result message. + """ + return self.__result_message + + @result_message.setter + def result_message(self, value): + self.__result_message = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result_code") and self.result_code is not None: + params['resultCode'] = self.result_code + if hasattr(self, "result_status") and self.result_status is not None: + params['resultStatus'] = self.result_status + if hasattr(self, "result_message") and self.result_message is not None: + params['resultMessage'] = self.result_message + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'resultCode' in response_body: + self.__result_code = response_body['resultCode'] + if 'resultStatus' in response_body: + result_status_temp = ResultStatusType.value_of(response_body['resultStatus']) + self.__result_status = result_status_temp + if 'resultMessage' in response_body: + self.__result_message = response_body['resultMessage'] diff --git a/com/alipay/ams/api/model/statement.py b/com/alipay/ams/api/model/statement.py index 708e8b2..952ef48 100644 --- a/com/alipay/ams/api/model/statement.py +++ b/com/alipay/ams/api/model/statement.py @@ -9,6 +9,8 @@ def __init__(self): self.__statement_id = None # type: str self.__fund_move_detail = None # type: FundMoveDetail + self.__transaction_type = None # type: str + self.__beneficiary_asset_id = None # type: str @property @@ -31,6 +33,26 @@ def fund_move_detail(self): @fund_move_detail.setter def fund_move_detail(self, value): self.__fund_move_detail = value + @property + def transaction_type(self): + """Gets the transaction_type of this Statement. + + """ + return self.__transaction_type + + @transaction_type.setter + def transaction_type(self, value): + self.__transaction_type = value + @property + def beneficiary_asset_id(self): + """Gets the beneficiary_asset_id of this Statement. + + """ + return self.__beneficiary_asset_id + + @beneficiary_asset_id.setter + def beneficiary_asset_id(self, value): + self.__beneficiary_asset_id = value @@ -41,6 +63,10 @@ def to_ams_dict(self): params['statementId'] = self.statement_id if hasattr(self, "fund_move_detail") and self.fund_move_detail is not None: params['fundMoveDetail'] = self.fund_move_detail + if hasattr(self, "transaction_type") and self.transaction_type is not None: + params['transactionType'] = self.transaction_type + if hasattr(self, "beneficiary_asset_id") and self.beneficiary_asset_id is not None: + params['beneficiaryAssetId'] = self.beneficiary_asset_id return params @@ -52,3 +78,7 @@ def parse_rsp_body(self, response_body): if 'fundMoveDetail' in response_body: self.__fund_move_detail = FundMoveDetail() self.__fund_move_detail.parse_rsp_body(response_body['fundMoveDetail']) + if 'transactionType' in response_body: + self.__transaction_type = response_body['transactionType'] + if 'beneficiaryAssetId' in response_body: + self.__beneficiary_asset_id = response_body['beneficiaryAssetId'] diff --git a/com/alipay/ams/api/request/aba/alipay_apply_card_request.py b/com/alipay/ams/api/request/aba/alipay_apply_card_request.py new file mode 100644 index 0000000..a6e125b --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_apply_card_request.py @@ -0,0 +1,134 @@ +import json +from com.alipay.ams.api.model.authorization_control import AuthorizationControl + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayApplyCardRequest(AlipayRequest): + def __init__(self): + super(AlipayApplyCardRequest, self).__init__("/ams/api/v1/aba/cards/applyCard") + + self.__request_id = None # type: str + self.__card_nick_name = None # type: str + self.__note = None # type: str + self.__card_bin_rule = None # type: str + self.__purpose = None # type: str + self.__metadata = None # type: {str: (str,)} + self.__authorization_control = None # type: AuthorizationControl + + + @property + def request_id(self): + """Gets the request_id of this AlipayApplyCardRequest. + + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def card_nick_name(self): + """Gets the card_nick_name of this AlipayApplyCardRequest. + + """ + return self.__card_nick_name + + @card_nick_name.setter + def card_nick_name(self, value): + self.__card_nick_name = value + @property + def note(self): + """Gets the note of this AlipayApplyCardRequest. + + """ + return self.__note + + @note.setter + def note(self, value): + self.__note = value + @property + def card_bin_rule(self): + """Gets the card_bin_rule of this AlipayApplyCardRequest. + + """ + return self.__card_bin_rule + + @card_bin_rule.setter + def card_bin_rule(self, value): + self.__card_bin_rule = value + @property + def purpose(self): + """Gets the purpose of this AlipayApplyCardRequest. + + """ + return self.__purpose + + @purpose.setter + def purpose(self, value): + self.__purpose = value + @property + def metadata(self): + """Gets the metadata of this AlipayApplyCardRequest. + + """ + return self.__metadata + + @metadata.setter + def metadata(self, value): + self.__metadata = value + @property + def authorization_control(self): + """Gets the authorization_control of this AlipayApplyCardRequest. + + """ + return self.__authorization_control + + @authorization_control.setter + def authorization_control(self, value): + self.__authorization_control = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "card_nick_name") and self.card_nick_name is not None: + params['cardNickName'] = self.card_nick_name + if hasattr(self, "note") and self.note is not None: + params['note'] = self.note + if hasattr(self, "card_bin_rule") and self.card_bin_rule is not None: + params['cardBinRule'] = self.card_bin_rule + if hasattr(self, "purpose") and self.purpose is not None: + params['purpose'] = self.purpose + if hasattr(self, "metadata") and self.metadata is not None: + params['metadata'] = self.metadata + if hasattr(self, "authorization_control") and self.authorization_control is not None: + params['authorizationControl'] = self.authorization_control + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'cardNickName' in response_body: + self.__card_nick_name = response_body['cardNickName'] + if 'note' in response_body: + self.__note = response_body['note'] + if 'cardBinRule' in response_body: + self.__card_bin_rule = response_body['cardBinRule'] + if 'purpose' in response_body: + self.__purpose = response_body['purpose'] + if 'metadata' in response_body: + self.__metadata = response_body['metadata'] + if 'authorizationControl' in response_body: + self.__authorization_control = AuthorizationControl() + self.__authorization_control.parse_rsp_body(response_body['authorizationControl']) diff --git a/com/alipay/ams/api/request/aba/alipay_inquire_card_detail_request.py b/com/alipay/ams/api/request/aba/alipay_inquire_card_detail_request.py new file mode 100644 index 0000000..37f30db --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_inquire_card_detail_request.py @@ -0,0 +1,42 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayInquireCardDetailRequest(AlipayRequest): + def __init__(self): + super(AlipayInquireCardDetailRequest, self).__init__("/ams/api/v1/aba/cards/inquireCardDetail") + + self.__asset_id = None # type: str + + + @property + def asset_id(self): + """ + 卡资产ID。 + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] diff --git a/com/alipay/ams/api/request/aba/alipay_inquire_card_request.py b/com/alipay/ams/api/request/aba/alipay_inquire_card_request.py new file mode 100644 index 0000000..e9e1b86 --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_inquire_card_request.py @@ -0,0 +1,102 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayInquireCardRequest(AlipayRequest): + def __init__(self): + super(AlipayInquireCardRequest, self).__init__("/ams/api/v1/aba/cards/inquireCard") + + self.__page_number = None # type: int + self.__page_size = None # type: int + self.__last_four_digits = None # type: str + self.__card_status = None # type: str + self.__card_nick_name = None # type: str + + + @property + def page_number(self): + """ + 页码 (Page number) + """ + return self.__page_number + + @page_number.setter + def page_number(self, value): + self.__page_number = value + @property + def page_size(self): + """ + 每页包含的条目数 (Number of entries per page). Max pageSize is 50. + """ + return self.__page_size + + @page_size.setter + def page_size(self, value): + self.__page_size = value + @property + def last_four_digits(self): + """ + 卡号后四位数字。(The last four digits of the card number.) + """ + return self.__last_four_digits + + @last_four_digits.setter + def last_four_digits(self, value): + self.__last_four_digits = value + @property + def card_status(self): + """ + 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 (Card Status. Possible values: ACTIVE: The card is active and can be used normally. FROZEN: The card is frozen and temporarily unavailable for use. CANCEL: The card has been canceled and is no longer valid.) + """ + return self.__card_status + + @card_status.setter + def card_status(self, value): + self.__card_status = value + @property + def card_nick_name(self): + """ + 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。(User-defined card nickname, designed to help users manage multiple cards more conveniently.) + """ + return self.__card_nick_name + + @card_nick_name.setter + def card_nick_name(self, value): + self.__card_nick_name = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "page_number") and self.page_number is not None: + params['pageNumber'] = self.page_number + if hasattr(self, "page_size") and self.page_size is not None: + params['pageSize'] = self.page_size + if hasattr(self, "last_four_digits") and self.last_four_digits is not None: + params['lastFourDigits'] = self.last_four_digits + if hasattr(self, "card_status") and self.card_status is not None: + params['cardStatus'] = self.card_status + if hasattr(self, "card_nick_name") and self.card_nick_name is not None: + params['cardNickName'] = self.card_nick_name + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'pageNumber' in response_body: + self.__page_number = response_body['pageNumber'] + if 'pageSize' in response_body: + self.__page_size = response_body['pageSize'] + if 'lastFourDigits' in response_body: + self.__last_four_digits = response_body['lastFourDigits'] + if 'cardStatus' in response_body: + self.__card_status = response_body['cardStatus'] + if 'cardNickName' in response_body: + self.__card_nick_name = response_body['cardNickName'] diff --git a/com/alipay/ams/api/request/aba/alipay_inquire_card_sensitive_info_request.py b/com/alipay/ams/api/request/aba/alipay_inquire_card_sensitive_info_request.py new file mode 100644 index 0000000..715f44b --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_inquire_card_sensitive_info_request.py @@ -0,0 +1,42 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayInquireCardSensitiveInfoRequest(AlipayRequest): + def __init__(self): + super(AlipayInquireCardSensitiveInfoRequest, self).__init__("/ams/api/v1/aba/cards/inquireCardSensitiveInfo") + + self.__asset_id = None # type: str + + + @property + def asset_id(self): + """ + 卡资产ID。 + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] diff --git a/com/alipay/ams/api/request/aba/alipay_inquiry_statement_detail_request.py b/com/alipay/ams/api/request/aba/alipay_inquiry_statement_detail_request.py new file mode 100644 index 0000000..127258d --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_inquiry_statement_detail_request.py @@ -0,0 +1,42 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayInquiryStatementDetailRequest(AlipayRequest): + def __init__(self): + super(AlipayInquiryStatementDetailRequest, self).__init__("/ams/api/v1/aba/accounts/inquiryStatementDetail") + + self.__statement_id = None # type: str + + + @property + def statement_id(self): + """Gets the statement_id of this AlipayInquiryStatementDetailRequest. + + """ + return self.__statement_id + + @statement_id.setter + def statement_id(self, value): + self.__statement_id = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "statement_id") and self.statement_id is not None: + params['statementId'] = self.statement_id + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'statementId' in response_body: + self.__statement_id = response_body['statementId'] diff --git a/com/alipay/ams/api/request/aba/alipay_inquiry_statement_request.py b/com/alipay/ams/api/request/aba/alipay_inquiry_statement_request.py new file mode 100644 index 0000000..1401224 --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_inquiry_statement_request.py @@ -0,0 +1,146 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayInquiryStatementRequest(AlipayRequest): + def __init__(self): + super(AlipayInquiryStatementRequest, self).__init__("/ams/api/v1/aba/accounts/inquiryStatement") + + self.__customer_id = None # type: str + self.__access_token = None # type: str + self.__start_time = None # type: bool, date, datetime, dict, float, int, list, str, none_type + self.__end_time = None # type: str + self.__transaction_type_list = None # type: [str] + self.__currency_list = None # type: [str] + self.__page_size = None # type: int + self.__page_number = None # type: int + + + @property + def customer_id(self): + """ + antom ABA merchant id + """ + return self.__customer_id + + @customer_id.setter + def customer_id(self, value): + self.__customer_id = value + @property + def access_token(self): + """ + access token for the relevant antom ABA merchant + """ + return self.__access_token + + @access_token.setter + def access_token(self, value): + self.__access_token = value + @property + def start_time(self): + """ + start time of statement query. The value follows the ISO 8601 standard format. The time interval between startTime and endTime cannot be more than 3 months (equivalent to 100 days). + """ + return self.__start_time + + @start_time.setter + def start_time(self, value): + self.__start_time = value + @property + def end_time(self): + """ + end time of statement query. The value follows the ISO 8601 standard format. The time interval between startTime and endTime cannot be more than 3 months (equivalent to 100 days). + """ + return self.__end_time + + @end_time.setter + def end_time(self, value): + self.__end_time = value + @property + def transaction_type_list(self): + """ + If no value passed, the API shall return all transactions. Antom only supports [0-1] single type for the current time. + """ + return self.__transaction_type_list + + @transaction_type_list.setter + def transaction_type_list(self, value): + self.__transaction_type_list = value + @property + def currency_list(self): + """ + If no value passed, the API shall return the defined transaction type with all currencies. The value shall follow the ISO currency standard (e.g., USD, EUR). + """ + return self.__currency_list + + @currency_list.setter + def currency_list(self, value): + self.__currency_list = value + @property + def page_size(self): + """ + Indicates the number of items on each page. + """ + return self.__page_size + + @page_size.setter + def page_size(self, value): + self.__page_size = value + @property + def page_number(self): + """ + Indicates the current page index that contains statement information. + """ + return self.__page_number + + @page_number.setter + def page_number(self, value): + self.__page_number = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "customer_id") and self.customer_id is not None: + params['customerId'] = self.customer_id + if hasattr(self, "access_token") and self.access_token is not None: + params['accessToken'] = self.access_token + if hasattr(self, "start_time") and self.start_time is not None: + params['startTime'] = self.start_time + if hasattr(self, "end_time") and self.end_time is not None: + params['endTime'] = self.end_time + if hasattr(self, "transaction_type_list") and self.transaction_type_list is not None: + params['transactionTypeList'] = self.transaction_type_list + if hasattr(self, "currency_list") and self.currency_list is not None: + params['currencyList'] = self.currency_list + if hasattr(self, "page_size") and self.page_size is not None: + params['pageSize'] = self.page_size + if hasattr(self, "page_number") and self.page_number is not None: + params['pageNumber'] = self.page_number + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'customerId' in response_body: + self.__customer_id = response_body['customerId'] + if 'accessToken' in response_body: + self.__access_token = response_body['accessToken'] + if 'startTime' in response_body: + if 'endTime' in response_body: + self.__end_time = response_body['endTime'] + if 'transactionTypeList' in response_body: + self.__transaction_type_list = response_body['transactionTypeList'] + if 'currencyList' in response_body: + self.__currency_list = response_body['currencyList'] + if 'pageSize' in response_body: + self.__page_size = response_body['pageSize'] + if 'pageNumber' in response_body: + self.__page_number = response_body['pageNumber'] diff --git a/com/alipay/ams/api/request/aba/alipay_update_card_request.py b/com/alipay/ams/api/request/aba/alipay_update_card_request.py new file mode 100644 index 0000000..be05bdb --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_update_card_request.py @@ -0,0 +1,134 @@ +import json +from com.alipay.ams.api.model.authorization_control import AuthorizationControl + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayUpdateCardRequest(AlipayRequest): + def __init__(self): + super(AlipayUpdateCardRequest, self).__init__("/ams/api/v1/aba/cards/updateCard") + + self.__asset_id = None # type: str + self.__request_id = None # type: str + self.__card_nick_name = None # type: str + self.__note = None # type: str + self.__purpose = None # type: str + self.__metadata = None # type: {str: (str,)} + self.__authorization_control = None # type: AuthorizationControl + + + @property + def asset_id(self): + """ + 卡资产ID。 Card asset Id + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def request_id(self): + """ + 针对本次申卡请求,由集成商指定的唯一请求号 The unique request number specified by the integrator for this card application request. + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def card_nick_name(self): + """ + The nickname of the Card. This parameter is useful for managing multiple cards. + """ + return self.__card_nick_name + + @card_nick_name.setter + def card_nick_name(self, value): + self.__card_nick_name = value + @property + def note(self): + """ + Note information of card application + """ + return self.__note + + @note.setter + def note(self, value): + self.__note = value + @property + def purpose(self): + """ + Purpose of the card. + """ + return self.__purpose + + @purpose.setter + def purpose(self, value): + self.__purpose = value + @property + def metadata(self): + """ + Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max number of keys: 30 - Total JSON string max length: 3096 (application-layer validation required) + """ + return self.__metadata + + @metadata.setter + def metadata(self, value): + self.__metadata = value + @property + def authorization_control(self): + """Gets the authorization_control of this AlipayUpdateCardRequest. + + """ + return self.__authorization_control + + @authorization_control.setter + def authorization_control(self, value): + self.__authorization_control = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "card_nick_name") and self.card_nick_name is not None: + params['cardNickName'] = self.card_nick_name + if hasattr(self, "note") and self.note is not None: + params['note'] = self.note + if hasattr(self, "purpose") and self.purpose is not None: + params['purpose'] = self.purpose + if hasattr(self, "metadata") and self.metadata is not None: + params['metadata'] = self.metadata + if hasattr(self, "authorization_control") and self.authorization_control is not None: + params['authorizationControl'] = self.authorization_control + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'cardNickName' in response_body: + self.__card_nick_name = response_body['cardNickName'] + if 'note' in response_body: + self.__note = response_body['note'] + if 'purpose' in response_body: + self.__purpose = response_body['purpose'] + if 'metadata' in response_body: + self.__metadata = response_body['metadata'] + if 'authorizationControl' in response_body: + self.__authorization_control = AuthorizationControl() + self.__authorization_control.parse_rsp_body(response_body['authorizationControl']) diff --git a/com/alipay/ams/api/request/aba/alipay_update_card_status_request.py b/com/alipay/ams/api/request/aba/alipay_update_card_status_request.py new file mode 100644 index 0000000..30e8d78 --- /dev/null +++ b/com/alipay/ams/api/request/aba/alipay_update_card_status_request.py @@ -0,0 +1,87 @@ +import json + + + +from com.alipay.ams.api.request.alipay_request import AlipayRequest + +class AlipayUpdateCardStatusRequest(AlipayRequest): + def __init__(self): + super(AlipayUpdateCardStatusRequest, self).__init__("/ams/api/v1/aba/cards/updateCardStatus") + + self.__asset_id = None # type: str + self.__request_id = None # type: str + self.__operate_type = None # type: str + self.__notify_url = None # type: str + + + @property + def asset_id(self): + """ + 卡资产ID。 Card asset Id + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def request_id(self): + """ + 针对本次申卡请求,由集成商指定的唯一请求号 The unique request number specified by the integrator for this card application request. + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def operate_type(self): + """ + 操作类型。可取值范围: FREEZE:冻结卡 UNFREEZE:解冻卡 CANCEL:删除卡 Enumeration of Operation Type. Possible values: FREEZE: Freeze the card UNFREEZE: Unfreeze the card CANCEL: Delete the card + """ + return self.__operate_type + + @operate_type.setter + def operate_type(self, value): + self.__operate_type = value + @property + def notify_url(self): + """ + Notification priority -> request.notifyUrl. If not provided, the notify URL configured by the user in the portal will be used. + """ + return self.__notify_url + + @notify_url.setter + def notify_url(self, value): + self.__notify_url = value + + + def to_ams_json(self): + json_str = json.dumps(obj=self.to_ams_dict(), default=lambda o: o.to_ams_dict(), indent=3) + return json_str + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "operate_type") and self.operate_type is not None: + params['operateType'] = self.operate_type + if hasattr(self, "notify_url") and self.notify_url is not None: + params['notifyUrl'] = self.notify_url + return params + + + def parse_rsp_body(self, response_body): + if isinstance(response_body, str): + response_body = json.loads(response_body) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'operateType' in response_body: + self.__operate_type = response_body['operateType'] + if 'notifyUrl' in response_body: + self.__notify_url = response_body['notifyUrl'] diff --git a/com/alipay/ams/api/response/aba/alipay_apply_card_response.py b/com/alipay/ams/api/response/aba/alipay_apply_card_response.py new file mode 100644 index 0000000..337fd1c --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_apply_card_response.py @@ -0,0 +1,146 @@ +import json +from com.alipay.ams.api.model.result import Result + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayApplyCardResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__result = None # type: Result + self.__request_id = None # type: str + self.__status = None # type: str + self.__asset_id = None # type: str + self.__cvv = None # type: str + self.__card_no = None # type: str + self.__expired_month = None # type: str + self.__expired_year = None # type: str + self.parse_rsp_body(rsp_body) + + + @property + def result(self): + """Gets the result of this AlipayApplyCardResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def request_id(self): + """Gets the request_id of this AlipayApplyCardResponse. + + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def status(self): + """Gets the status of this AlipayApplyCardResponse. + + """ + return self.__status + + @status.setter + def status(self, value): + self.__status = value + @property + def asset_id(self): + """Gets the asset_id of this AlipayApplyCardResponse. + + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def cvv(self): + """Gets the cvv of this AlipayApplyCardResponse. + + """ + return self.__cvv + + @cvv.setter + def cvv(self, value): + self.__cvv = value + @property + def card_no(self): + """Gets the card_no of this AlipayApplyCardResponse. + + """ + return self.__card_no + + @card_no.setter + def card_no(self, value): + self.__card_no = value + @property + def expired_month(self): + """Gets the expired_month of this AlipayApplyCardResponse. + + """ + return self.__expired_month + + @expired_month.setter + def expired_month(self, value): + self.__expired_month = value + @property + def expired_year(self): + """Gets the expired_year of this AlipayApplyCardResponse. + + """ + return self.__expired_year + + @expired_year.setter + def expired_year(self, value): + self.__expired_year = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "status") and self.status is not None: + params['status'] = self.status + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "cvv") and self.cvv is not None: + params['cvv'] = self.cvv + if hasattr(self, "card_no") and self.card_no is not None: + params['cardNo'] = self.card_no + if hasattr(self, "expired_month") and self.expired_month is not None: + params['expiredMonth'] = self.expired_month + if hasattr(self, "expired_year") and self.expired_year is not None: + params['expiredYear'] = self.expired_year + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayApplyCardResponse, self).parse_rsp_body(response_body) + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'status' in response_body: + self.__status = response_body['status'] + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'cvv' in response_body: + self.__cvv = response_body['cvv'] + if 'cardNo' in response_body: + self.__card_no = response_body['cardNo'] + if 'expiredMonth' in response_body: + self.__expired_month = response_body['expiredMonth'] + if 'expiredYear' in response_body: + self.__expired_year = response_body['expiredYear'] diff --git a/com/alipay/ams/api/response/aba/alipay_inquire_card_detail_response.py b/com/alipay/ams/api/response/aba/alipay_inquire_card_detail_response.py new file mode 100644 index 0000000..2452a08 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_inquire_card_detail_response.py @@ -0,0 +1,225 @@ +import json +from com.alipay.ams.api.model.result import Result +from com.alipay.ams.api.model.authorization_control import AuthorizationControl +from com.alipay.ams.api.model.cardholder_info import CardholderInfo + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayInquireCardDetailResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__result = None # type: Result + self.__asset_id = None # type: str + self.__card_nick_name = None # type: str + self.__card_status = None # type: str + self.__masked_card_no = None # type: str + self.__card_brand = None # type: str + self.__created_time = None # type: str + self.__updated_time = None # type: str + self.__purpose = None # type: str + self.__note = None # type: str + self.__metadata = None # type: {str: (str,)} + self.__authorization_control = None # type: AuthorizationControl + self.__cardholderinfo = None # type: CardholderInfo + self.parse_rsp_body(rsp_body) + + + @property + def result(self): + """Gets the result of this AlipayInquireCardDetailResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def asset_id(self): + """ + 卡资产ID。 Card asset Id. + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def card_nick_name(self): + """ + 由用户定义的卡昵称,可以帮助用户更方便地管理多张卡。 User-defined card nickname, designed to help users manage multiple cards more conveniently. + """ + return self.__card_nick_name + + @card_nick_name.setter + def card_nick_name(self, value): + self.__card_nick_name = value + @property + def card_status(self): + """ + 卡状态。可取值范围: ACTIVE:可正常使用 FROZEN:已冻结 CANCEL:已注销 Card Status: Represents the current state of the card. Possible values include: ACTIVE: The card is active and can be used normally. FROZEN: The card has been frozen and cannot be used temporarily. CANCEL: The card has been canceled and is no longer valid. + """ + return self.__card_status + + @card_status.setter + def card_status(self, value): + self.__card_status = value + @property + def masked_card_no(self): + """ + 脱敏卡号。 Masked card number. + """ + return self.__masked_card_no + + @masked_card_no.setter + def masked_card_no(self, value): + self.__masked_card_no = value + @property + def card_brand(self): + """ + 卡品牌。 可取值范围: MASTERCARD Card Brand: Indicates the brand or network of the card. Possible value: MASTERCARD: The card is part of the Mastercard network. + """ + return self.__card_brand + + @card_brand.setter + def card_brand(self, value): + self.__card_brand = value + @property + def created_time(self): + """ + Datetime UTC time: 2018-10-31T00:00:00+0800. ISO 8601 + """ + return self.__created_time + + @created_time.setter + def created_time(self, value): + self.__created_time = value + @property + def updated_time(self): + """ + Datetime UTC time: 2018-10-31T00:00:00+0800. ISO 8601 + """ + return self.__updated_time + + @updated_time.setter + def updated_time(self, value): + self.__updated_time = value + @property + def purpose(self): + """ + Purpose of the card + """ + return self.__purpose + + @purpose.setter + def purpose(self, value): + self.__purpose = value + @property + def note(self): + """ + Note information of card application + """ + return self.__note + + @note.setter + def note(self, value): + self.__note = value + @property + def metadata(self): + """ + Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max number of keys: 30 - Total JSON string max length: 3096 + """ + return self.__metadata + + @metadata.setter + def metadata(self, value): + self.__metadata = value + @property + def authorization_control(self): + """Gets the authorization_control of this AlipayInquireCardDetailResponse. + + """ + return self.__authorization_control + + @authorization_control.setter + def authorization_control(self, value): + self.__authorization_control = value + @property + def cardholderinfo(self): + """Gets the cardholderinfo of this AlipayInquireCardDetailResponse. + + """ + return self.__cardholderinfo + + @cardholderinfo.setter + def cardholderinfo(self, value): + self.__cardholderinfo = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "card_nick_name") and self.card_nick_name is not None: + params['cardNickName'] = self.card_nick_name + if hasattr(self, "card_status") and self.card_status is not None: + params['cardStatus'] = self.card_status + if hasattr(self, "masked_card_no") and self.masked_card_no is not None: + params['maskedCardNo'] = self.masked_card_no + if hasattr(self, "card_brand") and self.card_brand is not None: + params['cardBrand'] = self.card_brand + if hasattr(self, "created_time") and self.created_time is not None: + params['createdTime'] = self.created_time + if hasattr(self, "updated_time") and self.updated_time is not None: + params['updatedTime'] = self.updated_time + if hasattr(self, "purpose") and self.purpose is not None: + params['purpose'] = self.purpose + if hasattr(self, "note") and self.note is not None: + params['note'] = self.note + if hasattr(self, "metadata") and self.metadata is not None: + params['metadata'] = self.metadata + if hasattr(self, "authorization_control") and self.authorization_control is not None: + params['authorizationControl'] = self.authorization_control + if hasattr(self, "cardholderinfo") and self.cardholderinfo is not None: + params['cardholderinfo'] = self.cardholderinfo + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayInquireCardDetailResponse, self).parse_rsp_body(response_body) + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'cardNickName' in response_body: + self.__card_nick_name = response_body['cardNickName'] + if 'cardStatus' in response_body: + self.__card_status = response_body['cardStatus'] + if 'maskedCardNo' in response_body: + self.__masked_card_no = response_body['maskedCardNo'] + if 'cardBrand' in response_body: + self.__card_brand = response_body['cardBrand'] + if 'createdTime' in response_body: + self.__created_time = response_body['createdTime'] + if 'updatedTime' in response_body: + self.__updated_time = response_body['updatedTime'] + if 'purpose' in response_body: + self.__purpose = response_body['purpose'] + if 'note' in response_body: + self.__note = response_body['note'] + if 'metadata' in response_body: + self.__metadata = response_body['metadata'] + if 'authorizationControl' in response_body: + self.__authorization_control = AuthorizationControl() + self.__authorization_control.parse_rsp_body(response_body['authorizationControl']) + if 'cardholderinfo' in response_body: + self.__cardholderinfo = CardholderInfo() + self.__cardholderinfo.parse_rsp_body(response_body['cardholderinfo']) diff --git a/com/alipay/ams/api/response/aba/alipay_inquire_card_response.py b/com/alipay/ams/api/response/aba/alipay_inquire_card_response.py new file mode 100644 index 0000000..34f1df5 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_inquire_card_response.py @@ -0,0 +1,106 @@ +import json +from com.alipay.ams.api.model.result import Result +from com.alipay.ams.api.model.aba_card import AbaCard + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayInquireCardResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__result = None # type: Result + self.__total_count = None # type: int + self.__total_page_number = None # type: int + self.__current_page_number = None # type: int + self.__card_list = None # type: [AbaCard] + self.parse_rsp_body(rsp_body) + + + @property + def result(self): + """Gets the result of this AlipayInquireCardResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def total_count(self): + """ + Total card elements. + """ + return self.__total_count + + @total_count.setter + def total_count(self, value): + self.__total_count = value + @property + def total_page_number(self): + """ + Total number of pages. + """ + return self.__total_page_number + + @total_page_number.setter + def total_page_number(self, value): + self.__total_page_number = value + @property + def current_page_number(self): + """ + 当前页码。 此字段只有当 result.resultStatus = S 时才会按需返回。 Current page number This field will only be returned as needed when `result.resultStatus = S`. + """ + return self.__current_page_number + + @current_page_number.setter + def current_page_number(self, value): + self.__current_page_number = value + @property + def card_list(self): + """ + 卡列表 此字段只有当 result.resultStatus = S 时才会按需返回。 Card list This field will only be returned as needed when `result.resultStatus = S`. + """ + return self.__card_list + + @card_list.setter + def card_list(self, value): + self.__card_list = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "total_count") and self.total_count is not None: + params['totalCount'] = self.total_count + if hasattr(self, "total_page_number") and self.total_page_number is not None: + params['totalPageNumber'] = self.total_page_number + if hasattr(self, "current_page_number") and self.current_page_number is not None: + params['currentPageNumber'] = self.current_page_number + if hasattr(self, "card_list") and self.card_list is not None: + params['cardList'] = self.card_list + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayInquireCardResponse, self).parse_rsp_body(response_body) + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) + if 'totalCount' in response_body: + self.__total_count = response_body['totalCount'] + if 'totalPageNumber' in response_body: + self.__total_page_number = response_body['totalPageNumber'] + if 'currentPageNumber' in response_body: + self.__current_page_number = response_body['currentPageNumber'] + if 'cardList' in response_body: + self.__card_list = [] + for item in response_body['cardList']: + obj = AbaCard() + obj.parse_rsp_body(item) + self.__card_list.append(obj) diff --git a/com/alipay/ams/api/response/aba/alipay_inquire_card_sensitive_info_response.py b/com/alipay/ams/api/response/aba/alipay_inquire_card_sensitive_info_response.py new file mode 100644 index 0000000..f00ed35 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_inquire_card_sensitive_info_response.py @@ -0,0 +1,116 @@ +import json +from com.alipay.ams.api.model.result import Result + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayInquireCardSensitiveInfoResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__result = None # type: Result + self.__asset_id = None # type: str + self.__cvv = None # type: str + self.__card_no = None # type: str + self.__expired_month = None # type: str + self.__expired_year = None # type: str + self.parse_rsp_body(rsp_body) + + + @property + def result(self): + """Gets the result of this AlipayInquireCardSensitiveInfoResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def asset_id(self): + """ + 卡资产ID。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card Asset ID. This field will only be returned on demand when result.resultStatus = S. + """ + return self.__asset_id + + @asset_id.setter + def asset_id(self, value): + self.__asset_id = value + @property + def cvv(self): + """ + 加密cvv号。 此字段只有当 result.resultStatus = S 时才会按需返回。 CVV number. This field will only be returned on demand when result.resultStatus = S. + """ + return self.__cvv + + @cvv.setter + def cvv(self, value): + self.__cvv = value + @property + def card_no(self): + """ + 加密卡号。 此字段只有当 result.resultStatus = S 时才会按需返回。 card number. This field will only be returned on demand when result.resultStatus = S. + """ + return self.__card_no + + @card_no.setter + def card_no(self, value): + self.__card_no = value + @property + def expired_month(self): + """ + 卡片过期月份,格式为“MM“,如:”07“。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card expiration month, formatted as \"MM,\" e.g., \"07.\" This field will only be returned on demand when result.resultStatus = S. + """ + return self.__expired_month + + @expired_month.setter + def expired_month(self, value): + self.__expired_month = value + @property + def expired_year(self): + """ + 卡片过期年份,格式为“YY“,取年份后两位数字,如:”29“。 此字段只有当 result.resultStatus = S 时才会按需返回。 Card expiration year, formatted as \"YY,\" using the last two digits of the year, e.g., \"29.\" This field will only be returned on demand when result.resultStatus = S. + """ + return self.__expired_year + + @expired_year.setter + def expired_year(self, value): + self.__expired_year = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "asset_id") and self.asset_id is not None: + params['assetId'] = self.asset_id + if hasattr(self, "cvv") and self.cvv is not None: + params['cvv'] = self.cvv + if hasattr(self, "card_no") and self.card_no is not None: + params['cardNo'] = self.card_no + if hasattr(self, "expired_month") and self.expired_month is not None: + params['expiredMonth'] = self.expired_month + if hasattr(self, "expired_year") and self.expired_year is not None: + params['expiredYear'] = self.expired_year + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayInquireCardSensitiveInfoResponse, self).parse_rsp_body(response_body) + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) + if 'assetId' in response_body: + self.__asset_id = response_body['assetId'] + if 'cvv' in response_body: + self.__cvv = response_body['cvv'] + if 'cardNo' in response_body: + self.__card_no = response_body['cardNo'] + if 'expiredMonth' in response_body: + self.__expired_month = response_body['expiredMonth'] + if 'expiredYear' in response_body: + self.__expired_year = response_body['expiredYear'] diff --git a/com/alipay/ams/api/response/aba/alipay_inquiry_statement_detail_response.py b/com/alipay/ams/api/response/aba/alipay_inquiry_statement_detail_response.py new file mode 100644 index 0000000..b55dcc0 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_inquiry_statement_detail_response.py @@ -0,0 +1,73 @@ +import json +from com.alipay.ams.api.model.result import Result +from com.alipay.ams.api.model.statement import Statement + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayInquiryStatementDetailResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__result = None # type: Result + self.__statement = None # type: Statement + self.__metadata = None # type: {str: (str,)} + self.parse_rsp_body(rsp_body) + + + @property + def result(self): + """Gets the result of this AlipayInquiryStatementDetailResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def statement(self): + """Gets the statement of this AlipayInquiryStatementDetailResponse. + + """ + return self.__statement + + @statement.setter + def statement(self, value): + self.__statement = value + @property + def metadata(self): + """ + Customer metadata in key-value format. - Key max length: 32 - Value max length: 128 - Max number of keys: 30 - Total JSON string max length: 3096 + """ + return self.__metadata + + @metadata.setter + def metadata(self, value): + self.__metadata = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "statement") and self.statement is not None: + params['statement'] = self.statement + if hasattr(self, "metadata") and self.metadata is not None: + params['metadata'] = self.metadata + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayInquiryStatementDetailResponse, self).parse_rsp_body(response_body) + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) + if 'statement' in response_body: + self.__statement = Statement() + self.__statement.parse_rsp_body(response_body['statement']) + if 'metadata' in response_body: + self.__metadata = response_body['metadata'] diff --git a/com/alipay/ams/api/response/aba/alipay_inquiry_statement_response.py b/com/alipay/ams/api/response/aba/alipay_inquiry_statement_response.py new file mode 100644 index 0000000..c3c35da --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_inquiry_statement_response.py @@ -0,0 +1,106 @@ +import json +from com.alipay.ams.api.model.statement import Statement +from com.alipay.ams.api.model.result_result import ResultResult + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayInquiryStatementResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__statement_list = None # type: [Statement] + self.__result = None # type: ResultResult + self.__total_count = None # type: int + self.__total_page_number = None # type: int + self.__current_page_number = None # type: int + self.parse_rsp_body(rsp_body) + + + @property + def statement_list(self): + """Gets the statement_list of this AlipayInquiryStatementResponse. + + """ + return self.__statement_list + + @statement_list.setter + def statement_list(self, value): + self.__statement_list = value + @property + def result(self): + """Gets the result of this AlipayInquiryStatementResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + @property + def total_count(self): + """Gets the total_count of this AlipayInquiryStatementResponse. + + """ + return self.__total_count + + @total_count.setter + def total_count(self, value): + self.__total_count = value + @property + def total_page_number(self): + """Gets the total_page_number of this AlipayInquiryStatementResponse. + + """ + return self.__total_page_number + + @total_page_number.setter + def total_page_number(self, value): + self.__total_page_number = value + @property + def current_page_number(self): + """Gets the current_page_number of this AlipayInquiryStatementResponse. + + """ + return self.__current_page_number + + @current_page_number.setter + def current_page_number(self, value): + self.__current_page_number = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "statement_list") and self.statement_list is not None: + params['statementList'] = self.statement_list + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + if hasattr(self, "total_count") and self.total_count is not None: + params['totalCount'] = self.total_count + if hasattr(self, "total_page_number") and self.total_page_number is not None: + params['totalPageNumber'] = self.total_page_number + if hasattr(self, "current_page_number") and self.current_page_number is not None: + params['currentPageNumber'] = self.current_page_number + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayInquiryStatementResponse, self).parse_rsp_body(response_body) + if 'statementList' in response_body: + self.__statement_list = [] + for item in response_body['statementList']: + obj = Statement() + obj.parse_rsp_body(item) + self.__statement_list.append(obj) + if 'result' in response_body: + self.__result = ResultResult() + self.__result.parse_rsp_body(response_body['result']) + if 'totalCount' in response_body: + self.__total_count = response_body['totalCount'] + if 'totalPageNumber' in response_body: + self.__total_page_number = response_body['totalPageNumber'] + if 'currentPageNumber' in response_body: + self.__current_page_number = response_body['currentPageNumber'] diff --git a/com/alipay/ams/api/response/aba/alipay_update_card_response.py b/com/alipay/ams/api/response/aba/alipay_update_card_response.py new file mode 100644 index 0000000..bfb7d10 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_update_card_response.py @@ -0,0 +1,71 @@ +import json +from com.alipay.ams.api.model.result import Result + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayUpdateCardResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__status = None # type: str + self.__request_id = None # type: str + self.__result = None # type: Result + self.parse_rsp_body(rsp_body) + + + @property + def status(self): + """Gets the status of this AlipayUpdateCardResponse. + + """ + return self.__status + + @status.setter + def status(self, value): + self.__status = value + @property + def request_id(self): + """Gets the request_id of this AlipayUpdateCardResponse. + + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def result(self): + """Gets the result of this AlipayUpdateCardResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "status") and self.status is not None: + params['status'] = self.status + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayUpdateCardResponse, self).parse_rsp_body(response_body) + if 'status' in response_body: + self.__status = response_body['status'] + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result']) diff --git a/com/alipay/ams/api/response/aba/alipay_update_card_status_response.py b/com/alipay/ams/api/response/aba/alipay_update_card_status_response.py new file mode 100644 index 0000000..04abfa3 --- /dev/null +++ b/com/alipay/ams/api/response/aba/alipay_update_card_status_response.py @@ -0,0 +1,71 @@ +import json +from com.alipay.ams.api.model.result import Result + + + +from com.alipay.ams.api.response.alipay_response import AlipayResponse + +class AlipayUpdateCardStatusResponse(AlipayResponse): + def __init__(self, rsp_body): + super(AlipayResponse, self).__init__() + + self.__status = None # type: str + self.__request_id = None # type: str + self.__result = None # type: Result + self.parse_rsp_body(rsp_body) + + + @property + def status(self): + """Gets the status of this AlipayUpdateCardStatusResponse. + + """ + return self.__status + + @status.setter + def status(self, value): + self.__status = value + @property + def request_id(self): + """Gets the request_id of this AlipayUpdateCardStatusResponse. + + """ + return self.__request_id + + @request_id.setter + def request_id(self, value): + self.__request_id = value + @property + def result(self): + """Gets the result of this AlipayUpdateCardStatusResponse. + + """ + return self.__result + + @result.setter + def result(self, value): + self.__result = value + + + + + def to_ams_dict(self): + params = dict() + if hasattr(self, "status") and self.status is not None: + params['status'] = self.status + if hasattr(self, "request_id") and self.request_id is not None: + params['requestId'] = self.request_id + if hasattr(self, "result") and self.result is not None: + params['result'] = self.result + return params + + + def parse_rsp_body(self, response_body): + response_body = super(AlipayUpdateCardStatusResponse, self).parse_rsp_body(response_body) + if 'status' in response_body: + self.__status = response_body['status'] + if 'requestId' in response_body: + self.__request_id = response_body['requestId'] + if 'result' in response_body: + self.__result = Result() + self.__result.parse_rsp_body(response_body['result'])