Skip to content

Commit

Permalink
Updates fbs documentation for digital delivery notes
Browse files Browse the repository at this point in the history
  • Loading branch information
alexandrosth committed Dec 23, 2024
1 parent 0201306 commit d1dfa75
Show file tree
Hide file tree
Showing 11 changed files with 26 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": true,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": true,
"fbs_delivery_note": "ΤΛΑΠΟ0454022",
"fbs_delivery_note_url": "https://statics.scdn.gr/merchants/samples/fbs_delivery_note.pdf",
"store_pickup": false
}
}'
Original file line number Diff line number Diff line change
Expand Up @@ -115,6 +115,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false,
"accept_options": {
"number_of_parcels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -123,6 +123,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false,
"accept_options": {
"number_of_parcels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false,
"accept_options": {
"number_of_parcels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false,
"rejection_info": {
"reason": "Το κατάστημά μας είναι κλειστό για προσωπικούς λόγους",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": true,
"accept_options": {
"number_of_parcels": [
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@
"gift_wrap": false,
"fulfilled_by_skroutz": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"store_pickup": false,
"accept_options": {
"number_of_parcels": [
Expand Down
1 change: 1 addition & 0 deletions source/localizable/smart_cart/_order_object.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ Name | Type | Value | Description
`reject_options` | Object | | [Reject options](#reject-options) (available for orders with state `"open"`)
`fulfilled_by_skroutz` | Boolean | | Whether the order is fulfilled by skroutz
`fbs_delivery_note` | String | | Order's delivery note from warehouse for orders that are fulfilled by Skroutz
`fbs_delivery_note_url` | String | | Order's digital delivery note PDF url from warehouse for orders that are fulfilled by Skroutz
`store_pickup` | Boolean | | Whether the order will be picked up by the user at the store
`shipping_cost` | Double | | The order's shipping cost in euros (only available for FBM (Fulfilled By Merchant) orders)
`commission` | Double | | Order's total commission in euros
Expand Down
18 changes: 16 additions & 2 deletions source/localizable/smart_cart/webhook.html.md.erb
Original file line number Diff line number Diff line change
Expand Up @@ -112,6 +112,7 @@ Name | Type | Value | Description
`courier_voucher` | Object | `{ "old": null, "new": "https://b.scdn.gr/path-to/voucher.pdf" }` | The order's shipment courier voucher URL (optional)
`courier_tracking_codes` | Object | `{ "old": [], "new": ["123456789"] }` | The order's shipment courier tracking codes (optional)
`fbs_delivery_note` | Object | `{ "old": null, "new": "ΤΛΑΠΟ0454022" }` | The order's fulfilled by Skroutz warehouse delivery note (optional)
`fbs_delivery_note_url` | Object | `{ "old": null, "new": "https://b.scdn.gr/path-to/fbs_delivery_note.pdf" }` | The order's fulfilled by Skroutz warehouse digital delivery note PDF url (optional)
`pickup_window` | Object | `{ "old": null, "new: { from: "2019-11-02T15:00:00+02:00", "to": "2019-11-02T16:00:00+02:00" } }` | The order's shipment pickup window (optional). It is sent when the order is accepted.
`number_of_parcels` | Integer | `{ "old": null, "new": 2 }` | The order's shipment number of parcels (optional). It is sent when the order is accepted.
`pickup_address` | String | `{ "old": null, "new": "Πανεπιστημίου 2, Τ.Κ. 12345, Αθήνα, Αττική" }` | The order's pickup address (optional).
Expand Down Expand Up @@ -254,6 +255,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -394,7 +396,8 @@ Would send a Webhook request payload just like if the order was cancelled by the
"fulfilled_by_skroutz": false,
"store_pickup": false,
"commission": 5.32,
"fbs_delivery_note": null
"fbs_delivery_note": null,
"fbs_delivery_note_url": null
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -526,7 +529,8 @@ Would send a Webhook request payload just like if the order was cancelled by the
"fulfilled_by_skroutz": false,
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null
"fbs_delivery_note": null,
"fbs_delivery_note_url": null
},
"changes": {
"state": {
Expand Down Expand Up @@ -567,6 +571,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"fulfilled_by_skroutz": false,
"store_pickup": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"courier": "ACS",
"courier_voucher": null,
"courier_tracking_codes": [],
Expand Down Expand Up @@ -609,6 +614,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -751,6 +757,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null
"fbs_delivery_note_url": null
"pickup_window": { from: "2019-11-02T15:00:00+02:00", "to": "2019-11-02T16:00:00+02:00" },
"number_of_parcels": 1,
"pickup_address": "Πανεπιστημίου 2, Τ.Κ. 12345, Αθήνα, Αττική"
Expand Down Expand Up @@ -812,6 +819,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"fulfilled_by_skroutz": false,
"store_pickup": false,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"courier": "ACS",
"courier_voucher": null,
"courier_tracking_codes": [],
Expand Down Expand Up @@ -854,6 +862,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -1008,6 +1017,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 19.00,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -1154,6 +1164,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 19.00,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -1285,6 +1296,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -1403,6 +1415,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.73,
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down Expand Up @@ -1535,6 +1548,7 @@ Would send a Webhook request payload just like if the order was cancelled by the
"store_pickup": false,
"commission": 4.05
"fbs_delivery_note": null,
"fbs_delivery_note_url": null,
"accept_options": {
"number_of_parcels": [
1
Expand Down

0 comments on commit d1dfa75

Please sign in to comment.