|
@@ -1,5 +1,5 @@
|
|
|
class App.Webhook extends App.Model
|
|
|
- @configure 'Webhook', 'name', 'endpoint', 'signature_token', 'ssl_verify', 'basic_auth_username', 'basic_auth_password', 'note', 'active'
|
|
|
+ @configure 'Webhook', 'name', 'endpoint', 'signature_token', 'ssl_verify', 'basic_auth_username', 'basic_auth_password', 'custom_payload', 'note', 'active'
|
|
|
@extend Spine.Model.Ajax
|
|
|
@url: @apiPath + '/webhooks'
|
|
|
@configure_attributes = [
|
|
@@ -9,6 +9,7 @@ class App.Webhook extends App.Model
|
|
|
{ name: 'ssl_verify', display: __('SSL Verify'), tag: 'boolean', null: true, translate: true, options: { true: 'yes', false: 'no' }, default: true },
|
|
|
{ name: 'basic_auth_username', display: __('HTTP Basic Authentication Username'), tag: 'input', type: 'text', limit: 250, null: true, item_class: 'formGroup--halfSize' },
|
|
|
{ name: 'basic_auth_password', display: __('HTTP Basic Authentication Password'), tag: 'input', type: 'text', limit: 250, null: true, item_class: 'formGroup--halfSize' },
|
|
|
+ { name: 'custom_payload', display: __('Custom Payload'), tag: 'textarea', rows: 6, null: true, collapsible: true },
|
|
|
{ name: 'note', display: __('Note'), tag: 'textarea', note: '', limit: 250, null: true },
|
|
|
{ name: 'active', display: __('Active'), tag: 'active', default: true },
|
|
|
{ name: 'updated_at', display: __('Updated'), tag: 'datetime', readonly: 1 },
|