Repository URL to install this package:
|
Version:
3.3.202-c2ee258 ▾
|
alipay-sdk-python
/
alipay
/
aop
/
api
/
domain
/
AlipayOpenOperationBizfeeAftechCreateandpayModel.py
|
|---|
#!/usr/bin/env python
# -*- coding: utf-8 -*-
import json
from alipay.aop.api.constant.ParamConstants import *
class AlipayOpenOperationBizfeeAftechCreateandpayModel(object):
def __init__(self):
self._app_name = None
self._currency = None
self._customer = None
self._gmt_service = None
self._inst_code = None
self._order_amount = None
self._order_no = None
self._out_biz_no = None
self._product_code = None
self._properties = None
self._refundable_amount = None
self._tnt_inst_id = None
@property
def app_name(self):
return self._app_name
@app_name.setter
def app_name(self, value):
self._app_name = value
@property
def currency(self):
return self._currency
@currency.setter
def currency(self, value):
self._currency = value
@property
def customer(self):
return self._customer
@customer.setter
def customer(self, value):
self._customer = value
@property
def gmt_service(self):
return self._gmt_service
@gmt_service.setter
def gmt_service(self, value):
self._gmt_service = value
@property
def inst_code(self):
return self._inst_code
@inst_code.setter
def inst_code(self, value):
self._inst_code = value
@property
def order_amount(self):
return self._order_amount
@order_amount.setter
def order_amount(self, value):
self._order_amount = value
@property
def order_no(self):
return self._order_no
@order_no.setter
def order_no(self, value):
self._order_no = value
@property
def out_biz_no(self):
return self._out_biz_no
@out_biz_no.setter
def out_biz_no(self, value):
self._out_biz_no = value
@property
def product_code(self):
return self._product_code
@product_code.setter
def product_code(self, value):
self._product_code = value
@property
def properties(self):
return self._properties
@properties.setter
def properties(self, value):
self._properties = value
@property
def refundable_amount(self):
return self._refundable_amount
@refundable_amount.setter
def refundable_amount(self, value):
self._refundable_amount = value
@property
def tnt_inst_id(self):
return self._tnt_inst_id
@tnt_inst_id.setter
def tnt_inst_id(self, value):
self._tnt_inst_id = value
def to_alipay_dict(self):
params = dict()
if self.app_name:
if hasattr(self.app_name, 'to_alipay_dict'):
params['app_name'] = self.app_name.to_alipay_dict()
else:
params['app_name'] = self.app_name
if self.currency:
if hasattr(self.currency, 'to_alipay_dict'):
params['currency'] = self.currency.to_alipay_dict()
else:
params['currency'] = self.currency
if self.customer:
if hasattr(self.customer, 'to_alipay_dict'):
params['customer'] = self.customer.to_alipay_dict()
else:
params['customer'] = self.customer
if self.gmt_service:
if hasattr(self.gmt_service, 'to_alipay_dict'):
params['gmt_service'] = self.gmt_service.to_alipay_dict()
else:
params['gmt_service'] = self.gmt_service
if self.inst_code:
if hasattr(self.inst_code, 'to_alipay_dict'):
params['inst_code'] = self.inst_code.to_alipay_dict()
else:
params['inst_code'] = self.inst_code
if self.order_amount:
if hasattr(self.order_amount, 'to_alipay_dict'):
params['order_amount'] = self.order_amount.to_alipay_dict()
else:
params['order_amount'] = self.order_amount
if self.order_no:
if hasattr(self.order_no, 'to_alipay_dict'):
params['order_no'] = self.order_no.to_alipay_dict()
else:
params['order_no'] = self.order_no
if self.out_biz_no:
if hasattr(self.out_biz_no, 'to_alipay_dict'):
params['out_biz_no'] = self.out_biz_no.to_alipay_dict()
else:
params['out_biz_no'] = self.out_biz_no
if self.product_code:
if hasattr(self.product_code, 'to_alipay_dict'):
params['product_code'] = self.product_code.to_alipay_dict()
else:
params['product_code'] = self.product_code
if self.properties:
if hasattr(self.properties, 'to_alipay_dict'):
params['properties'] = self.properties.to_alipay_dict()
else:
params['properties'] = self.properties
if self.refundable_amount:
if hasattr(self.refundable_amount, 'to_alipay_dict'):
params['refundable_amount'] = self.refundable_amount.to_alipay_dict()
else:
params['refundable_amount'] = self.refundable_amount
if self.tnt_inst_id:
if hasattr(self.tnt_inst_id, 'to_alipay_dict'):
params['tnt_inst_id'] = self.tnt_inst_id.to_alipay_dict()
else:
params['tnt_inst_id'] = self.tnt_inst_id
return params
@staticmethod
def from_alipay_dict(d):
if not d:
return None
o = AlipayOpenOperationBizfeeAftechCreateandpayModel()
if 'app_name' in d:
o.app_name = d['app_name']
if 'currency' in d:
o.currency = d['currency']
if 'customer' in d:
o.customer = d['customer']
if 'gmt_service' in d:
o.gmt_service = d['gmt_service']
if 'inst_code' in d:
o.inst_code = d['inst_code']
if 'order_amount' in d:
o.order_amount = d['order_amount']
if 'order_no' in d:
o.order_no = d['order_no']
if 'out_biz_no' in d:
o.out_biz_no = d['out_biz_no']
if 'product_code' in d:
o.product_code = d['product_code']
if 'properties' in d:
o.properties = d['properties']
if 'refundable_amount' in d:
o.refundable_amount = d['refundable_amount']
if 'tnt_inst_id' in d:
o.tnt_inst_id = d['tnt_inst_id']
return o