+ count() + +
+ + + +
+ public
+ count() : OrderCount
+
+
+
+
+
+
+ diff --git a/RELEASE_NOTES.md b/RELEASE_NOTES.md index ddd19845..26c419a0 100644 --- a/RELEASE_NOTES.md +++ b/RELEASE_NOTES.md @@ -1,4 +1,8 @@ +### New Features + + - Implement V2 Get Order and Get all Orders + ### Fixes - - Fixes issue with Product Option Value API + - Fixed error where amount was `int` instead of `float` in price rules diff --git a/docs/classes/BigCommerce-ApiV2-Api-Orders-OrdersApi.html b/docs/classes/BigCommerce-ApiV2-Api-Orders-OrdersApi.html index 68e14751..86ac9e23 100644 --- a/docs/classes/BigCommerce-ApiV2-Api-Orders-OrdersApi.html +++ b/docs/classes/BigCommerce-ApiV2-Api-Orders-OrdersApi.html @@ -99,17 +99,36 @@
Orders v2 API
-Currently only implements create.
+Some functionality for Orders is not available in V3, so this V2 API class has been implemented.
+
+ public
+ count() : OrderCount
+
+
+
+
+
+
+
+ public
+ get() : Order|null
+
+
+
+
+
+
+
+ public
+ getAll([array<string|int, mixed> $filters = [] ][, int $page = 1 ][, int $limit = 250 ]) : array<string|int, Order>
+
+
+
public
- string
+ string|null
$cart_id
@@ -1051,7 +1051,7 @@
public
- string
+ string|null
$customer_message
@@ -1935,7 +1935,7 @@
public
- string
+ string|null
$payment_provider_id
@@ -2271,7 +2271,7 @@
public
- string
+ string|null
$staff_notes
diff --git a/docs/classes/BigCommerce-ApiV2-ResourceModels-ResourceReference.html b/docs/classes/BigCommerce-ApiV2-ResourceModels-ResourceReference.html
new file mode 100644
index 00000000..33f38712
--- /dev/null
+++ b/docs/classes/BigCommerce-ApiV2-ResourceModels-ResourceReference.html
@@ -0,0 +1,403 @@
+
+
+
+
+
+ public
+ string
+ $resource
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $url
+
+
+
+
+
+
+
+
+
+ public
+ __construct([stdClass|null $optionObject = null ]) : mixed
+
+
+
+
+ public
+ jsonSerialize() : array<string|int, mixed>
+
+
+
+
+
+
+
+ public
+ string
+ $base_handling_cost
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $base_shipping_cost
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $base_wrapping_cost
+
+
+
+
+
+
+
+
+
+ public
+ OrderBillingAddress
+ $billing_address
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $cart_id
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $channel_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $coupon_discount
+
+
+
+
+
+
+
+
+
+ public
+ object
+ $coupons
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $currency_code
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $currency_exchange_rate
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $currency_id
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $customer_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $customer_locale
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $customer_message
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $date_created
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $date_modified
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $date_shipped
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $default_currency_code
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $default_currency_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $discount_amount
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $ebay_order_id
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $external_id
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $external_source
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $geoip_country
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $geoip_country_iso2
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $gift_certificate_amount
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $handling_cost_ex_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $handling_cost_inc_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $handling_cost_tax
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $handling_cost_tax_class_id
+
+
+
+
+
+
+
+
+
+ public
+ int|null
+ $id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $ip_address
+
+
+
+
+
+
+
+
+
+ public
+ bool
+ $is_deleted
+
+
+
+
+
+
+
+
+
+ public
+ bool
+ $is_email_opt_in
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $items_shipped
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $items_total
+
+
+
+
+
+
+
+
+
+ public
+ bool
+ $order_is_digital
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $order_source
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $payment_method
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $payment_provider_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $payment_status
+
+
+
+
+
+
+
+
+
+ public
+ ResourceReference
+ $products
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $refunded_amount
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $shipping_address_count
+
+
+
+
+
+
+
+
+
+ public
+ ResourceReference
+ $shipping_addresses
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $shipping_cost_ex_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $shipping_cost_inc_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $shipping_cost_tax
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $shipping_cost_tax_class_id
+
+
+
+
+
+
+
+
+
+ public
+ string|null
+ $staff_notes
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $status
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $status_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $store_credit_amount
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $subtotal_ex_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $subtotal_inc_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $subtotal_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $tax_provider_id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $total_ex_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $total_inc_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $wrapping_cost_ex_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $wrapping_cost_inc_tax
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $wrapping_cost_tax
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $wrapping_cost_tax_class_id
+
+
+
+
+
+
+
+
+
+ public
+ __construct([stdClass|null $optionObject = null ]) : mixed
+
+
+
+
+ public
+ jsonSerialize() : array<string|int, mixed>
+
+
+
+
+
+
+
+ public
+ int
+ $count
+
+
+
+
+
+
+
+
+
+ public
+ array<string|int, mixed>
+ $statuses
+
+
+
+ with name as the key
+
+ public
+ __construct([stdClass|null $optionObject = null ]) : mixed
+
+
+
+
+ public
+ jsonSerialize() : array<string|int, mixed>
+
+
+
+
+
+
+
+ public
+ int
+ $count
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $custom_label
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $id
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $name
+
+
+
+
+
+
+
+
+
+ public
+ int
+ $sort_order
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $system_description
+
+
+
+
+
+
+
+
+
+ public
+ string
+ $system_label
+
+
+
+
+
+
+
+
+
+ public
+ __construct([stdClass|null $optionObject = null ]) : mixed
+
+
+
+
+ public
+ jsonSerialize() : array<string|int, mixed>
+
+
+
+
+
+
+
+ public
+ order(int $orderId) : OrdersApi
+
+
+
+
public
- abstract getClient() : Client
+ abstract getClient() : BaseApiClient
@@ -165,7 +165,7 @@ V3ApiBase
+V3 Orders API
-Add constructors and some basic scaffolding that will work for all API classes -regardless of which endpoints they implement
+V3 API for Orders is quite limited, so a V2 API client is provided.
public
- int
+ float
$amount
diff --git a/docs/files/bigcommerce-api-orders-ordersapi.html b/docs/files/bigcommerce-api-orders-ordersapi.html
index 0d214ba5..c2d6ec1f 100644
--- a/docs/files/bigcommerce-api-orders-ordersapi.html
+++ b/docs/files/bigcommerce-api-orders-ordersapi.html
@@ -99,7 +99,7 @@