Bastian de Byl
043da741fa
feat: add discount and savings fields to Order struct
...
Added Discount struct with comprehensive discount information and added discount-related fields (Discounts, SavedAmount, TotalRebateRate) to Order struct to expose discount data from Snipcart API.
🤖 Generated with [Claude Code](https://claude.com/claude-code )
Co-Authored-By: Claude <noreply@anthropic.com >
2025-10-03 10:49:36 -04:00
Bastian de Byl
a2fdeafc3c
noticket - add missing shippingAddressSameAsBilling order field
2024-11-05 18:42:03 -05:00
Bastian de Byl
5e2a2afd42
added OrderNotification, OrderNotifications, client.GetOrderNotifications
2023-09-25 13:05:05 -04:00
Bastian de Byl
b586a3184c
added TotalTaxes to Order
2023-08-11 11:29:15 -04:00
Bastian de Byl
805491571c
added missing Completed field for completion date of order
2023-07-29 17:34:01 -04:00
Bastian de Byl
10a9427598
corrected CustomField.Options field to string from []string
2023-07-27 13:48:13 -04:00
Bastian de Byl
3816c67b95
added more data types to CustomField struct
2023-07-27 13:44:06 -04:00
Bastian de Byl
c18376739b
added TotalTaxable to Order
2023-07-03 13:31:26 -04:00
Bastian de Byl
6d85149be8
corrected Taxes to Order (new OrderTax struct)
2023-07-03 13:21:06 -04:00
Bastian de Byl
cf4ad9642d
added Taxes to Order (omitempty)
2023-07-03 13:18:42 -04:00
Bastian de Byl
e1adf8cf4f
added Offset and Limit to Orders struct
2023-07-03 12:14:40 -04:00
Bastian de Byl
73195a090f
added ShippingError and ShippingErrors struct
2023-06-06 19:54:21 -04:00
Bastian de Byl
db81f246bf
corrected TaxContent time for epoch (unix time) int from time.Time
2023-06-06 19:12:01 -04:00
Bastian de Byl
9c7218f937
added TaxWebhook struct
2023-06-06 19:07:14 -04:00
Bastian de Byl
543935289f
removed unused snipcart/client.go file
2023-06-06 18:38:42 -04:00
Bastian de Byl
a4127264ef
expanded webhook tax coverage, moved and renamed items to exclude Snipcart preamble
2023-06-06 18:28:10 -04:00
Bastian de Byl
5a74c2bae8
main corrected Operation in ProductCustomField to float64 from int
2023-05-12 15:23:14 -04:00
Bastian de Byl
d7f1571e09
main added CustomFields to snipcart product
2023-05-12 15:20:36 -04:00
Bastian de Byl
f18e21f181
main return only one product for GetProductById
2023-05-12 10:46:54 -04:00
Bastian de Byl
d56cf589da
main correct the output of GetProductById
2023-05-12 03:14:07 -04:00
Bastian de Byl
9e631a91b1
corrected SnipcartProductsResponse, added GetProductById
2023-05-12 00:36:50 -04:00
Bastian de Byl
e575ff03a8
added GetProducts, SnipcartProductsResponse, SnipcartProductVariant
2023-05-12 00:01:55 -04:00
Bastian de Byl
0ec82e6397
modified NewClient to return ptr
2023-05-03 14:22:29 -04:00
Bastian de Byl
687a5df39f
added ValidateWebhook(token) func to client
2023-05-03 14:20:15 -04:00
Bastian de Byl
131af89f4f
moved enums to enums.go, added SendNotification, Notification structs & enums
2023-04-12 16:56:01 -04:00
Bastian de Byl
b93afeec2f
added Created and Modified times to SnipcartOrder
2023-04-09 18:31:53 -04:00
Bastian de Byl
b08b64f5b2
added SnipcartTax and SnipcartWebhookTaxResponse
2023-04-06 17:59:48 -04:00
Bastian de Byl
ad93704f41
renamed Order.ShippingRate to Order.ShippingRateId
2023-04-03 21:20:22 -04:00
Bastian de Byl
b97ee3132b
consolidated webhook order to just order
2023-03-29 13:24:09 -04:00
Bastian de Byl
cfdde462f4
added more order struct details
2023-03-29 13:14:30 -04:00
Bastian de Byl
e039b583e2
fixed Curreny to Currency typo
2023-03-13 00:26:11 -04:00
Bastian de Byl
26571a41fa
changed ShippingAddress State to Province
2023-03-13 00:16:22 -04:00
Bastian de Byl
559a100e90
added more missing OrderEventContent fields
2023-03-13 00:14:47 -04:00
Bastian de Byl
6ff851823e
added missing OrderEventContent fields
2023-03-13 00:12:11 -04:00
Bastian de Byl
db6e320b7f
added webhook specific structs
2023-03-13 00:07:50 -04:00
Bastian de Byl
563e6baeda
main added Metadata field to SnipcartOrder struct
2023-03-02 17:19:50 -05:00
Bastian de Byl
36ca8d6f83
added initial webhook main function
2023-02-26 20:36:12 -05:00
Bastian de Byl
d182b35d56
updated helper module
2023-02-26 15:26:59 -05:00
Bastian de Byl
1d5b44c7e9
renamed SnipcartProvider to Client
2023-02-26 14:41:04 -05:00
Bastian de Byl
84941b7acd
corrected Price related field types
2023-02-26 14:17:31 -05:00
Bastian de Byl
28f77f63b9
added Total and Subtotal to SnipcartOrder
2023-02-26 14:16:26 -05:00
Bastian de Byl
2a97bca474
added TotalPrice to SnipcartItem
2023-02-26 14:14:52 -05:00
Bastian de Byl
2d91d1d122
corrected SnipcartItem
2023-02-26 14:11:55 -05:00
Bastian de Byl
bfb6497d25
fixed UpdateOrder method
2023-02-26 02:38:14 -05:00
Bastian de Byl
82b88cbaf5
fixed data Put in UpdateOrder again with bytes buffer
2023-02-26 02:14:57 -05:00
Bastian de Byl
994cabc20e
fixed data Put in UpdateOrder
2023-02-26 02:13:20 -05:00
Bastian de Byl
bde3d07c28
added unique struct for UpdateOrder
2023-02-26 02:08:36 -05:00
Bastian de Byl
0bf0abd435
fixed order pointer in UpdateOrder
2023-02-26 02:04:24 -05:00
Bastian de Byl
82106ee4e0
added UpdateOrder function, fixed response statuscode handling
2023-02-26 02:01:02 -05:00
Bastian de Byl
c1091f12b0
changed ShippingCost type to float64 in SnipcartOrder
2023-02-26 01:32:24 -05:00