Skip to content

Latest commit

 

History

History
306 lines (165 loc) · 14.6 KB

File metadata and controls

306 lines (165 loc) · 14.6 KB

WebhookCreate

Properties

Name Type Description Notes
Entity string Specify the entity that you want to enable webhooks for (e.g product, order, customer, category)
Action string Specify what action (event) will trigger the webhook (e.g add, delete, or update)
Callback Pointer to string Callback url that returns shipping rates. It should be able to accept POST requests with json data. [optional]
Label Pointer to string The name you give to the webhook [optional]
Fields Pointer to string Fields the webhook should send [optional] [default to "force_all"]
ResponseFields Pointer to string Set this parameter in order to choose which entity fields you want to retrieve [optional]
Active Pointer to bool Webhook status [optional] [default to true]
LangId Pointer to string Language id [optional]
StoreId Pointer to string Defines store id where the webhook should be assigned [optional]
FilteringConditions Pointer to ParamDefinitionFilteringConditionsFilterCondition <p>Defines the logic for filtering webhooks based on the entity's data. If provided, the webhook will only be sent if the entity matches the specified conditions. Pass <strong>null</strong> to disable filtering and receive all webhooks (for <strong>webhook.update</strong> method).</p><p>The filter accepts a recursive JSON object. The maximum nesting level is <strong>5</strong>. Exceeding this will result in a validation error. <p><strong>Strict Rule:</strong> Each level of the object must contain <strong>exactly one</strong> of the following keys:</p><ul><li><strong>Logical Groups:</strong><code>and</code>, <code>or</code>, <code>not</code> (used to combine multiple conditions).</li><li><strong>Condition:</strong><code>field</code>, <code>operator</code> and <code>value</code></li></ul><br/><p><strong>Logical Operators:</strong><ul><li><code>and</code>: Accepts an array of objects. All conditions must be true.</li><li><code>or</code>: Accepts an array of objects. At least one condition must be true.</li><li><code>not</code>: Accepts a single object. The condition inside must be false.</li></ul></p><br/><p><strong>Condition Object:</strong><ul><li><code>field</code>: The dot-notation path to the attribute (e.g., id, customer.email, items.price).</li><li><code>operator</code>: The comparison method (see list below).</li><li><code>value</code>: The value to compare against.</li></ul></p><br/><p>The list of available fields for filtering is returned by the <strong>webhook.events</strong> method in the <strong>filterable_fields</strong> property. The available fields depend on the webhook entity. If the list for a specific webhook is empty, it means that filtering is not supported for this entity or action.</p><p>The system validates operators against the field type defined in the entity schema.</p><p><ul><li><strong>string:</strong><code>eq</code>, <code>neq</code>, <code>in</code>, <code>not_in</code>, <code>like</code>, <code>not_like</code>.</li><li><strong>integer:</strong><code>eq</code>, <code>neq</code>, <code>gt</code>, <code>gte</code>, <code>lt</code>, <code>lte</code>.</li><li><strong>number:</strong><code>eq</code>, <code>neq</code>, <code>gt</code>, <code>gte</code>, <code>lt</code>, <code>lte</code>.</li><li><strong>boolean:</strong><code>eq</code>, <code>neq</code>.</li><li><strong>date:</strong><code>eq</code>, <code>neq</code>, <code>gt</code>, <code>gte</code>, <code>lt</code>, <code>lte</code>.</li><li><strong>array:</strong><code>eq</code>, <code>neq</code>, <code>in</code>, <code>not_in</code>.</li></ul></p><br/><p><strong>Operators:</strong><ul><li><code>eq</code>: Exact match. The field value must match the specified value exactly (case sensitive). For array-type fields, compares two arrays regardless of the element order.</li><li><code>neq</code>: Not equal. The field value must be different from the specified value.</li><li><code>like</code>: Partial match (SQL-style). Case-insensitive. Supported wildcards:<ul><li><strong>%</strong> - matches any sequence of characters (0 or more).</li><li><strong></strong> - matches exactly one character.</li></ul> If the value contains the '%' or '' characters, they must be escaped using a backslash ('\'). For example, if the string is 'demo_', the value should be specified as 'demo\_'.</li><li><code>not_like</code>: Inverted Partial Match. Ensures the pattern does not match.</li><li><code>in</code>: In List. The field value must match one of the values in the provided array. For array-type fields, the condition is considered valid if at least one element from the provided list exists in the array.</li><li><code>not_in</code>: Not In List. The field value must not be present in the provided array. For array-type fields, the condition is considered valid if none of the elements in the array exist in the provided list.</li><li><code>lt</code>: Less (Strictly Less). The value is strictly less than value.</li><li><code>lte</code>: Less than or equal to.</li><li><code>gt</code>: Strictly Greater. The value is strictly greater than value.</li><li><code>gte</code>: Greater than or equal to.</li></ul></p><br/><p><strong>Please note: the filter is universal for all platforms; however, for some platforms, certain fields may never be populated. Before defining a filter, make sure that the field is populated for the specific platform. Otherwise, a webhook configured with such a filter may never be triggered.</strong></p><br/> [optional]
IdempotencyKey Pointer to string A unique identifier associated with a specific request. Repeated requests with the same <strong>idempotency_key</strong> return a cached response without re-executing the business logic. <strong>Please note that the cache lifetime is 15 minutes.</strong> [optional]

Methods

NewWebhookCreate

func NewWebhookCreate(entity string, action string, ) *WebhookCreate

NewWebhookCreate instantiates a new WebhookCreate object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

NewWebhookCreateWithDefaults

func NewWebhookCreateWithDefaults() *WebhookCreate

NewWebhookCreateWithDefaults instantiates a new WebhookCreate object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

GetEntity

func (o *WebhookCreate) GetEntity() string

GetEntity returns the Entity field if non-nil, zero value otherwise.

GetEntityOk

func (o *WebhookCreate) GetEntityOk() (*string, bool)

GetEntityOk returns a tuple with the Entity field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetEntity

func (o *WebhookCreate) SetEntity(v string)

SetEntity sets Entity field to given value.

GetAction

func (o *WebhookCreate) GetAction() string

GetAction returns the Action field if non-nil, zero value otherwise.

GetActionOk

func (o *WebhookCreate) GetActionOk() (*string, bool)

GetActionOk returns a tuple with the Action field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetAction

func (o *WebhookCreate) SetAction(v string)

SetAction sets Action field to given value.

GetCallback

func (o *WebhookCreate) GetCallback() string

GetCallback returns the Callback field if non-nil, zero value otherwise.

GetCallbackOk

func (o *WebhookCreate) GetCallbackOk() (*string, bool)

GetCallbackOk returns a tuple with the Callback field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetCallback

func (o *WebhookCreate) SetCallback(v string)

SetCallback sets Callback field to given value.

HasCallback

func (o *WebhookCreate) HasCallback() bool

HasCallback returns a boolean if a field has been set.

GetLabel

func (o *WebhookCreate) GetLabel() string

GetLabel returns the Label field if non-nil, zero value otherwise.

GetLabelOk

func (o *WebhookCreate) GetLabelOk() (*string, bool)

GetLabelOk returns a tuple with the Label field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLabel

func (o *WebhookCreate) SetLabel(v string)

SetLabel sets Label field to given value.

HasLabel

func (o *WebhookCreate) HasLabel() bool

HasLabel returns a boolean if a field has been set.

GetFields

func (o *WebhookCreate) GetFields() string

GetFields returns the Fields field if non-nil, zero value otherwise.

GetFieldsOk

func (o *WebhookCreate) GetFieldsOk() (*string, bool)

GetFieldsOk returns a tuple with the Fields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFields

func (o *WebhookCreate) SetFields(v string)

SetFields sets Fields field to given value.

HasFields

func (o *WebhookCreate) HasFields() bool

HasFields returns a boolean if a field has been set.

GetResponseFields

func (o *WebhookCreate) GetResponseFields() string

GetResponseFields returns the ResponseFields field if non-nil, zero value otherwise.

GetResponseFieldsOk

func (o *WebhookCreate) GetResponseFieldsOk() (*string, bool)

GetResponseFieldsOk returns a tuple with the ResponseFields field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetResponseFields

func (o *WebhookCreate) SetResponseFields(v string)

SetResponseFields sets ResponseFields field to given value.

HasResponseFields

func (o *WebhookCreate) HasResponseFields() bool

HasResponseFields returns a boolean if a field has been set.

GetActive

func (o *WebhookCreate) GetActive() bool

GetActive returns the Active field if non-nil, zero value otherwise.

GetActiveOk

func (o *WebhookCreate) GetActiveOk() (*bool, bool)

GetActiveOk returns a tuple with the Active field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetActive

func (o *WebhookCreate) SetActive(v bool)

SetActive sets Active field to given value.

HasActive

func (o *WebhookCreate) HasActive() bool

HasActive returns a boolean if a field has been set.

GetLangId

func (o *WebhookCreate) GetLangId() string

GetLangId returns the LangId field if non-nil, zero value otherwise.

GetLangIdOk

func (o *WebhookCreate) GetLangIdOk() (*string, bool)

GetLangIdOk returns a tuple with the LangId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetLangId

func (o *WebhookCreate) SetLangId(v string)

SetLangId sets LangId field to given value.

HasLangId

func (o *WebhookCreate) HasLangId() bool

HasLangId returns a boolean if a field has been set.

GetStoreId

func (o *WebhookCreate) GetStoreId() string

GetStoreId returns the StoreId field if non-nil, zero value otherwise.

GetStoreIdOk

func (o *WebhookCreate) GetStoreIdOk() (*string, bool)

GetStoreIdOk returns a tuple with the StoreId field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetStoreId

func (o *WebhookCreate) SetStoreId(v string)

SetStoreId sets StoreId field to given value.

HasStoreId

func (o *WebhookCreate) HasStoreId() bool

HasStoreId returns a boolean if a field has been set.

GetFilteringConditions

func (o *WebhookCreate) GetFilteringConditions() ParamDefinitionFilteringConditionsFilterCondition

GetFilteringConditions returns the FilteringConditions field if non-nil, zero value otherwise.

GetFilteringConditionsOk

func (o *WebhookCreate) GetFilteringConditionsOk() (*ParamDefinitionFilteringConditionsFilterCondition, bool)

GetFilteringConditionsOk returns a tuple with the FilteringConditions field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetFilteringConditions

func (o *WebhookCreate) SetFilteringConditions(v ParamDefinitionFilteringConditionsFilterCondition)

SetFilteringConditions sets FilteringConditions field to given value.

HasFilteringConditions

func (o *WebhookCreate) HasFilteringConditions() bool

HasFilteringConditions returns a boolean if a field has been set.

GetIdempotencyKey

func (o *WebhookCreate) GetIdempotencyKey() string

GetIdempotencyKey returns the IdempotencyKey field if non-nil, zero value otherwise.

GetIdempotencyKeyOk

func (o *WebhookCreate) GetIdempotencyKeyOk() (*string, bool)

GetIdempotencyKeyOk returns a tuple with the IdempotencyKey field if it's non-nil, zero value otherwise and a boolean to check if the value has been set.

SetIdempotencyKey

func (o *WebhookCreate) SetIdempotencyKey(v string)

SetIdempotencyKey sets IdempotencyKey field to given value.

HasIdempotencyKey

func (o *WebhookCreate) HasIdempotencyKey() bool

HasIdempotencyKey returns a boolean if a field has been set.

[Back to Model list] [Back to API list] [Back to README]