-
Notifications
You must be signed in to change notification settings - Fork 0
Application Manager
Represents an ApplicationManager. (You most likely shouldn't be accessing this directly, use AcrosureClient#application instead.)
ApplicationManager(call_api)
Create an application manager.
Parameters:
Name | Type | Description |
---|---|---|
call_api | function | A function which call Acrosure API. |
call_api Function (which should be granted by AcrosureClient#callAPI )
Type:
- function
Confirm current application.
Parameters:
Name | Type | Description |
---|---|---|
application_id | string | An application id. |
Returns:
- Confirmed application
Type
- dict
Create an application.
Parameters:
Name | Type | Description |
---|---|---|
product_id | string | A product id. |
basic_data | dict | Application's basic_data. |
package_options | dict | Application's package_options. |
additional_data | dict | Application's additional_data. |
attachments | list | A list of files. |
package_code | string | A string of package_code. |
ref1 | string | A string of reference #1. |
ref2 | string | A string of reference #2. |
ref3 | string | A string of reference #3. |
group_policy_id | string | A string of group policy id. |
step | int | A number of current step. |
Returns:
- Created application
Type
- dict
Get an application with specify id or with current id.
Parameters:
Name | Type | Description |
---|---|---|
id | string | An application id. |
Returns:
- An application
Type
- dict
Get current application's package.
Parameters:
Name | Type | Description |
---|---|---|
id | string | An application id. |
Returns:
- Current application's package
Type
- list
Get available packages for current application.
Parameters:
Name | Type | Description |
---|---|---|
id | string | An application id. |
Returns:
- Available packages
Type
- list
Get applications list with or without query.
Parameters:
Name | Type | Description |
---|---|---|
query | dict | Query object (See Acrosure API document for more detail). |
Returns:
- Applications
Type
- list
Select package for current application.
Parameters:
Name | Type | Description |
---|---|---|
application_id | string | An application id. |
package_code | string | A string of package_code. |
Returns:
- Updated application
Type
- dict
Submit current application.
Parameters:
Name | Type | Description |
---|---|---|
id | string | An application id. |
Returns:
- Submitted application
Type
- dict
Update current application or with specified id.
Parameters:
Name | Type | Description |
---|---|---|
application_id | string | An application id. |
basic_data | dict | Application's basic_data. |
package_options | dict | Application's package_options. |
additional_data | dict | Application's additional_data. |
attachments | list | A list of files. |
package_code | string | A string of package_code. |
ref1 | string | A string of reference #1. |
ref2 | string | A string of reference #2. |
ref3 | string | A string of reference #3. |
group_policy_id | string | A string of group policy id. |
step | int | A number of current step. |
Returns:
- Updated application
Type
- dict