forked from square/square-connect-go-sdk
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathmodel_catalog_custom_attribute_value.patch
23 lines (23 loc) · 1.44 KB
/
model_catalog_custom_attribute_value.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
--- original/model_catalog_custom_attribute_value.go 2021-03-25 16:53:52.000000000 -0700
+++ model_catalog_custom_attribute_value.go 2021-03-25 16:54:18.000000000 -0700
@@ -14,16 +14,16 @@
// The name of the custom attribute.
Name string `json:"name,omitempty"`
// The string value of the custom attribute. Populated if `type` = `STRING`.
- StringValue string `json:"string_value,omitempty"`
+ StringValue *string `json:"string_value,omitempty"`
// The id of the [CatalogCustomAttributeDefinition](entity:CatalogCustomAttributeDefinition) this value belongs to.
CustomAttributeDefinitionId string `json:"custom_attribute_definition_id,omitempty"`
Type_ *CatalogCustomAttributeDefinitionType `json:"type,omitempty"`
// Populated if `type` = `NUMBER`. Contains a string representation of a decimal number, using a `.` as the decimal separator.
- NumberValue string `json:"number_value,omitempty"`
+ NumberValue *string `json:"number_value,omitempty"`
// A `true` or `false` value. Populated if `type` = `BOOLEAN`.
- BooleanValue bool `json:"boolean_value,omitempty"`
+ BooleanValue *bool `json:"boolean_value,omitempty"`
// One or more choices from `allowed_selections`. Populated if `type` = `SELECTION`.
- SelectionUidValues []string `json:"selection_uid_values,omitempty"`
+ SelectionUidValues *[]string `json:"selection_uid_values,omitempty"`
// A copy of key from the associated `CatalogCustomAttributeDefinition`.
Key string `json:"key,omitempty"`
}