Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
15 changes: 15 additions & 0 deletions com/alipay/ams/api/model/authorization_control.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def __init__(self):
self.__allowed_merchant_category_list = None # type: [str]
self.__allowed_auth_times = None # type: int
self.__allowed_currencies = None # type: [str]
self.__payment_preference_currencies = None # type: [str]
self.__card_limit_detail = None # type: CardLimitDetail
self.__card_limit_info = None # type: CardLimitInfo
self.__refund_preference = None # type: RefundPreference
Expand Down Expand Up @@ -70,6 +71,16 @@ def allowed_currencies(self):
def allowed_currencies(self, value):
self.__allowed_currencies = value
@property
def payment_preference_currencies(self):
"""
An ordered list of ISO 4217 currency codes that defines the card-level balance-consumption priority. Only applyCard accepts this field in a request; do not send it to updateCard. For applyCard, the list must not contain duplicates and every currency must be supported by Antom. Omission, null, or an empty list configures no card-level preference. The field participates in requestId idempotency, and invalid values, more than 9 entries, duplicates, or capability-disabled use return PARAM_ILLEGAL. For inquireCardDetail, a configured list is returned in stored order; an enabled merchant without a card-level preference receives null, and a disabled merchant does not receive the field. For inquireCardSensitiveInfo, a whitelisted merchant receives the configured list, the child field is omitted when no card-level preference exists, and a non-whitelisted merchant does not receive the parent cardDetail object. The initially supported currencies are USD, EUR, GBP, HKD, AUD, CAD, CNH, JPY, and NZD; the supported set is configuration-driven and can change without an API contract change.
"""
return self.__payment_preference_currencies

@payment_preference_currencies.setter
def payment_preference_currencies(self, value):
self.__payment_preference_currencies = value
@property
def card_limit_detail(self):
"""Gets the card_limit_detail of this AuthorizationControl.

Expand Down Expand Up @@ -115,6 +126,8 @@ def to_ams_dict(self):
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, "payment_preference_currencies") and self.payment_preference_currencies is not None:
params['paymentPreferenceCurrencies'] = self.payment_preference_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:
Expand All @@ -137,6 +150,8 @@ def parse_rsp_body(self, response_body):
self.__allowed_auth_times = response_body['allowedAuthTimes']
if 'allowedCurrencies' in response_body:
self.__allowed_currencies = response_body['allowedCurrencies']
if 'paymentPreferenceCurrencies' in response_body:
self.__payment_preference_currencies = response_body['paymentPreferenceCurrencies']
if 'cardLimitDetail' in response_body:
self.__card_limit_detail = CardLimitDetail()
self.__card_limit_detail.parse_rsp_body(response_body['cardLimitDetail'])
Expand Down
37 changes: 37 additions & 0 deletions com/alipay/ams/api/model/billing_subscription_status_change.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
import json




class BillingSubscriptionStatusChange:
def __init__(self):

self.__action = None # type: str


@property
def action(self):
"""
The subscription status change action. The currently supported value is PAUSE, which pauses payment collection and changes the subscription status from ACTIVE to PAUSED. To reactivate a paused subscription, call the resume subscription API. Maximum length: 10 characters.
"""
return self.__action

@action.setter
def action(self, value):
self.__action = value




def to_ams_dict(self):
params = dict()
if hasattr(self, "action") and self.action is not None:
params['action'] = self.action
return params


def parse_rsp_body(self, response_body):
if isinstance(response_body, str):
response_body = json.loads(response_body)
if 'action' in response_body:
self.__action = response_body['action']
8 changes: 4 additions & 4 deletions com/alipay/ams/api/model/paginator.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ def __init__(self):
@property
def current_page(self):
"""
The current page number, start from 1.
The current page number, starting from 1.
"""
return self.__current_page

Expand All @@ -25,7 +25,7 @@ def current_page(self, value):
@property
def page_size(self):
"""
The maximum records returned per page.
The number of records returned per page.
"""
return self.__page_size

Expand All @@ -35,7 +35,7 @@ def page_size(self, value):
@property
def total_page(self):
"""
Total number of pages.
The total number of pages.
"""
return self.__total_page

Expand All @@ -45,7 +45,7 @@ def total_page(self, value):
@property
def total_count(self):
"""
Total items that match the criteria.
The total number of records that match the query criteria.
"""
return self.__total_count

Expand Down
2 changes: 1 addition & 1 deletion com/alipay/ams/api/model/tax_breakdown.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def __init__(self):
@property
def tax_type(self):
"""
The tax type. Maximum length: 32 characters.
The tax type. Supported values include CUIT, GST, VAT, CBS, IBS, HST, PST, RST, QST, JCT, SERVICE_TAX, IGV, SALES_TAX, and PERSONAL_PROPERTY_LEASE_TRANSACTION_TAX.
"""
return self.__tax_type

Expand Down
142 changes: 142 additions & 0 deletions com/alipay/ams/api/model/tax_calculated_address.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,142 @@
import json




class TaxCalculatedAddress:
def __init__(self):

self.__country = None # type: str
self.__region = None # type: str
self.__county = None # type: str
self.__city = None # type: str
self.__district = None # type: str
self.__line1 = None # type: str
self.__line2 = None # type: str
self.__postal_code = None # type: str


@property
def country(self):
"""
The country or region code. Maximum length: 2 characters.
"""
return self.__country

@country.setter
def country(self, value):
self.__country = value
@property
def region(self):
"""
The region. Maximum length: 10 characters.
"""
return self.__region

@region.setter
def region(self, value):
self.__region = value
@property
def county(self):
"""
The county. Maximum length: 64 characters.
"""
return self.__county

@county.setter
def county(self, value):
self.__county = value
@property
def city(self):
"""
The city. Maximum length: 64 characters.
"""
return self.__city

@city.setter
def city(self, value):
self.__city = value
@property
def district(self):
"""
The district. Maximum length: 64 characters.
"""
return self.__district

@district.setter
def district(self, value):
self.__district = value
@property
def line1(self):
"""
The first address line. Maximum length: 256 characters.
"""
return self.__line1

@line1.setter
def line1(self, value):
self.__line1 = value
@property
def line2(self):
"""
The second address line. Maximum length: 256 characters.
"""
return self.__line2

@line2.setter
def line2(self, value):
self.__line2 = value
@property
def postal_code(self):
"""
The postal code. Maximum length: 16 characters.
"""
return self.__postal_code

@postal_code.setter
def postal_code(self, value):
self.__postal_code = value




def to_ams_dict(self):
params = dict()
if hasattr(self, "country") and self.country is not None:
params['country'] = self.country
if hasattr(self, "region") and self.region is not None:
params['region'] = self.region
if hasattr(self, "county") and self.county is not None:
params['county'] = self.county
if hasattr(self, "city") and self.city is not None:
params['city'] = self.city
if hasattr(self, "district") and self.district is not None:
params['district'] = self.district
if hasattr(self, "line1") and self.line1 is not None:
params['line1'] = self.line1
if hasattr(self, "line2") and self.line2 is not None:
params['line2'] = self.line2
if hasattr(self, "postal_code") and self.postal_code is not None:
params['postalCode'] = self.postal_code
return params


def parse_rsp_body(self, response_body):
if isinstance(response_body, str):
response_body = json.loads(response_body)
if 'country' in response_body:
self.__country = response_body['country']
if 'region' in response_body:
self.__region = response_body['region']
if 'county' in response_body:
self.__county = response_body['county']
if 'city' in response_body:
self.__city = response_body['city']
if 'district' in response_body:
self.__district = response_body['district']
if 'line1' in response_body:
self.__line1 = response_body['line1']
if 'line2' in response_body:
self.__line2 = response_body['line2']
if 'postalCode' in response_body:
self.__postal_code = response_body['postalCode']
39 changes: 39 additions & 0 deletions com/alipay/ams/api/model/tax_calculated_business_details.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import json
from com.alipay.ams.api.model.tax_calculated_address import TaxCalculatedAddress




class TaxCalculatedBusinessDetails:
def __init__(self):

self.__address = None # type: TaxCalculatedAddress


@property
def address(self):
"""Gets the address of this TaxCalculatedBusinessDetails.

"""
return self.__address

@address.setter
def address(self, value):
self.__address = value




def to_ams_dict(self):
params = dict()
if hasattr(self, "address") and self.address is not None:
params['address'] = self.address
return params


def parse_rsp_body(self, response_body):
if isinstance(response_body, str):
response_body = json.loads(response_body)
if 'address' in response_body:
self.__address = TaxCalculatedAddress()
self.__address.parse_rsp_body(response_body['address'])
Loading