Skip to content

Commit

Permalink
Merge branch 'master' into issue-197-support-fulfillment-order
Browse files Browse the repository at this point in the history
  • Loading branch information
oliver006 authored Jul 15, 2023
2 parents b761e84 + b3a6cd1 commit 0de9852
Show file tree
Hide file tree
Showing 11 changed files with 3 additions and 24 deletions.
2 changes: 0 additions & 2 deletions customcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -237,7 +237,6 @@ func TestCustomCollectionCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -261,7 +260,6 @@ func TestCustomCollectionUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions customer_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -494,7 +494,6 @@ func TestCustomerCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -518,7 +517,6 @@ func TestCustomerUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions draft_order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,6 @@ func TestDraftOrderCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Namespace: "affiliates",
}

Expand All @@ -383,7 +382,6 @@ func TestDraftOrderUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Namespace: "affiliates",
}

Expand Down
1 change: 0 additions & 1 deletion fixtures/metafield.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
"namespace": "affiliates",
"key": "app_key",
"value": "app_value",
"value_type": "string",
"type": "single_line_text_field",
"description": "some amaaazing app's value",
"owner_id": 1,
Expand Down
1 change: 0 additions & 1 deletion metafield.go
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,6 @@ type Metafield struct {
ID int64 `json:"id,omitempty"`
Key string `json:"key,omitempty"`
Value interface{} `json:"value,omitempty"`
ValueType string `json:"value_type,omitempty"`
Type string `json:"type,omitempty"`
Namespace string `json:"namespace,omitempty"`
Description string `json:"description,omitempty"`
Expand Down
9 changes: 3 additions & 6 deletions metafield_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,6 @@ func TestMetafieldGet(t *testing.T) {
ID: 1,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
Description: "some amaaazing app's value",
Expand All @@ -115,7 +114,6 @@ func TestMetafieldCreate(t *testing.T) {
Namespace: "inventory",
Key: "warehouse",
Value: "25",
ValueType: "integer",
Type: "single_line_text_field",
}

Expand All @@ -135,10 +133,9 @@ func TestMetafieldUpdate(t *testing.T) {
httpmock.NewBytesResponder(200, loadFixture("metafield.json")))

metafield := Metafield{
ID: 1,
Value: "something new",
ValueType: "string",
Type: "single_line_text_field",
ID: 1,
Value: "something new",
Type: "single_line_text_field",
}

returnedMetafield, err := client.Metafield.Update(metafield)
Expand Down
2 changes: 0 additions & 2 deletions order_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,6 @@ func TestOrderCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -577,7 +576,6 @@ func TestOrderUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions page_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -223,7 +223,6 @@ func TestPageCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -247,7 +246,6 @@ func TestPageUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions product_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -392,7 +392,6 @@ func TestProductCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -416,7 +415,6 @@ func TestProductUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions smartcollection_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,6 @@ func TestSmartCollectionCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -264,7 +263,6 @@ func TestSmartCollectionUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down
2 changes: 0 additions & 2 deletions variant_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -320,7 +320,6 @@ func TestVariantCreateMetafield(t *testing.T) {
metafield := Metafield{
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand All @@ -344,7 +343,6 @@ func TestVariantUpdateMetafield(t *testing.T) {
ID: 2,
Key: "app_key",
Value: "app_value",
ValueType: "string",
Type: "single_line_text_field",
Namespace: "affiliates",
}
Expand Down

0 comments on commit 0de9852

Please sign in to comment.