86 lines
3.6 KiB
YAML
86 lines
3.6 KiB
YAML
include_action_files: [/plugins/stWebApiPlugin/config/generator/extendGenerator.php]
|
|
|
|
webapi:
|
|
fields:
|
|
id: {type: integer}
|
|
is_active: {type: boolean}
|
|
is_default: {type: boolean}
|
|
is_weekend_delivery: {type: boolean}
|
|
is_express_delivery: {type: boolean}
|
|
allow_in_selected_products: {type: boolean}
|
|
name: {type: string}
|
|
cost_brutto: {type: double}
|
|
cost_netto: {type: double}
|
|
free_from: {type: double}
|
|
weekend_delivery_cost_netto: {type: double}
|
|
express_delivery_cost_brutto: {type: double}
|
|
express_delivery_cost_netto: {type: double}
|
|
express_delivery_cost_brutto: {type: double}
|
|
delivery_id: {type: integer}
|
|
cost_type: {type: string}
|
|
payment_type_id: {type: integer}
|
|
payment_type_name: {type: string}
|
|
group: {type: string}
|
|
additional_cost_type: {type: string}
|
|
from: {type: double}
|
|
width: {type: double}
|
|
height: {type: double}
|
|
depth: {type: double}
|
|
type: {type: string}
|
|
type_id: {type: integer}
|
|
products: {type: ArrayOfInteger}
|
|
country: {type: string}
|
|
|
|
methods:
|
|
GetAvailableDeliveryList:
|
|
culture: true
|
|
peer: Delivery
|
|
type: list
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [=country, =products]
|
|
out:
|
|
- id
|
|
- type_id
|
|
- is_weekend_delivery
|
|
- is_express_delivery
|
|
- name
|
|
- cost_brutto
|
|
- cost_netto
|
|
- width
|
|
- height
|
|
- depth
|
|
GetAvailableDeliveryPaymentTypeList:
|
|
type: list
|
|
peer: DeliveryHasPaymentType
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [=delivery_id]
|
|
out: [payment_type_id, payment_type_name, cost_brutto, cost_netto]
|
|
GetDeliveryTypeList:
|
|
culture: false
|
|
peer: DeliveryType
|
|
type: list
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [_offset, _limit]
|
|
out: [id, name, type]
|
|
CountDeliveryI18n:
|
|
type: count
|
|
peer_method: doCountWithI18n
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
out: [_count]
|
|
GetDeliveryI18nList:
|
|
type: list
|
|
peer_method: doSelectWithI18n
|
|
inOutTypes: {in: object, out: array}
|
|
fields:
|
|
in: [_offset, _limit, _modified_from, _modified_to]
|
|
out: [id, name]
|
|
UpdateDeliveryI18n:
|
|
type: update
|
|
inOutTypes: {in: object, out: object}
|
|
fields:
|
|
in: [=id, name]
|
|
out: [_update] |