feat: order action per status change
This commit is contained in:
33
bruno/api_v1/order/Change order address.yml
Normal file
33
bruno/api_v1/order/Change order address.yml
Normal file
@@ -0,0 +1,33 @@
|
||||
info:
|
||||
name: Change order address
|
||||
type: http
|
||||
seq: 3
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{bas_url}}/restricted/orders/change-order-address?order_id=1&country_id=1"
|
||||
params:
|
||||
- name: order_id
|
||||
value: "1"
|
||||
type: query
|
||||
- name: country_id
|
||||
value: "1"
|
||||
type: query
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"postal_code": "31-154",
|
||||
"city": "Kraków",
|
||||
"voivodeship": "śląskie",
|
||||
"street": "Długa",
|
||||
"building_no": "5",
|
||||
"recipient": "Adam Adamowicz"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
22
bruno/api_v1/order/Change order status.yml
Normal file
22
bruno/api_v1/order/Change order status.yml
Normal file
@@ -0,0 +1,22 @@
|
||||
info:
|
||||
name: Change order status
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: PATCH
|
||||
url: "{{bas_url}}/restricted/orders/change-order-status?order_id=2&status=PENDING"
|
||||
params:
|
||||
- name: order_id
|
||||
value: "2"
|
||||
type: query
|
||||
- name: status
|
||||
value: PENDING
|
||||
type: query
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
25
bruno/api_v1/order/List.yml
Normal file
25
bruno/api_v1/order/List.yml
Normal file
@@ -0,0 +1,25 @@
|
||||
info:
|
||||
name: List
|
||||
type: http
|
||||
seq: 1
|
||||
|
||||
http:
|
||||
method: GET
|
||||
url: "{{bas_url}}/restricted/orders/list?p=1&elems=30&sort=order_id,desc"
|
||||
params:
|
||||
- name: p
|
||||
value: "1"
|
||||
type: query
|
||||
- name: elems
|
||||
value: "30"
|
||||
type: query
|
||||
- name: sort
|
||||
value: order_id,desc
|
||||
type: query
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
37
bruno/api_v1/order/Place new order.yml
Normal file
37
bruno/api_v1/order/Place new order.yml
Normal file
@@ -0,0 +1,37 @@
|
||||
info:
|
||||
name: Place new order
|
||||
type: http
|
||||
seq: 2
|
||||
|
||||
http:
|
||||
method: POST
|
||||
url: "{{bas_url}}/restricted/orders/place-new-order?cart_id=1&name=Test+Order&country_id=1"
|
||||
params:
|
||||
- name: cart_id
|
||||
value: "1"
|
||||
type: query
|
||||
- name: name
|
||||
value: Test Order
|
||||
type: query
|
||||
- name: country_id
|
||||
value: "1"
|
||||
type: query
|
||||
body:
|
||||
type: json
|
||||
data: |-
|
||||
{
|
||||
"postal_code": "31-154",
|
||||
"city": "Kraków",
|
||||
"voivodeship": "małopolskie",
|
||||
"street": "Długa",
|
||||
"building_no": "5",
|
||||
"apartment_no": "7",
|
||||
"recipient": "Jan Kowalski"
|
||||
}
|
||||
auth: inherit
|
||||
|
||||
settings:
|
||||
encodeUrl: true
|
||||
timeout: 0
|
||||
followRedirects: true
|
||||
maxRedirects: 5
|
||||
7
bruno/api_v1/order/folder.yml
Normal file
7
bruno/api_v1/order/folder.yml
Normal file
@@ -0,0 +1,7 @@
|
||||
info:
|
||||
name: order
|
||||
type: folder
|
||||
seq: 13
|
||||
|
||||
request:
|
||||
auth: inherit
|
||||
Reference in New Issue
Block a user