hostinger-api-sdk 3.4.2 → 3.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +2 -2
- package/api.ts +784 -1
- package/base.ts +1 -1
- package/common.ts +1 -1
- package/configuration.ts +2 -2
- package/dist/api.d.ts +505 -1
- package/dist/api.js +551 -14
- package/dist/base.d.ts +1 -1
- package/dist/base.js +1 -1
- package/dist/common.d.ts +1 -1
- package/dist/common.js +1 -1
- package/dist/configuration.d.ts +1 -1
- package/dist/configuration.js +2 -2
- package/dist/esm/api.d.ts +505 -1
- package/dist/esm/api.js +534 -1
- package/dist/esm/base.d.ts +1 -1
- package/dist/esm/base.js +1 -1
- package/dist/esm/common.d.ts +1 -1
- package/dist/esm/common.js +1 -1
- package/dist/esm/configuration.d.ts +1 -1
- package/dist/esm/configuration.js +2 -2
- package/dist/esm/index.d.ts +1 -1
- package/dist/esm/index.js +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/docs/EcommerceV1WebhookStoreRequest.md +24 -0
- package/docs/EcommerceV1WebhookUpdateRequest.md +26 -0
- package/docs/EcommerceV1WebhookWebhookCreationResource.md +22 -0
- package/docs/EcommerceV1WebhookWebhookEndpointResource.md +44 -0
- package/docs/EcommerceV1WebhookWebhookListResource.md +20 -0
- package/docs/EcommerceV1WebhookWebhookResource.md +20 -0
- package/docs/EcommerceV1WebhookWebhookSecretResource.md +22 -0
- package/docs/EcommerceWebhooksApi.md +362 -0
- package/index.ts +1 -1
- package/package.json +1 -1
package/dist/base.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/base.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/common.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
package/dist/configuration.js
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
/**
|
|
5
5
|
* Hostinger API
|
|
6
6
|
*
|
|
7
|
-
* API Version: 3.4.
|
|
7
|
+
* API Version: 3.4.3
|
|
8
8
|
*
|
|
9
9
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
10
10
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -16,7 +16,7 @@ class Configuration {
|
|
|
16
16
|
var _a;
|
|
17
17
|
this.accessToken = param.accessToken;
|
|
18
18
|
this.basePath = param.basePath;
|
|
19
|
-
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.
|
|
19
|
+
this.baseOptions = Object.assign(Object.assign({}, param.baseOptions), { headers: Object.assign({ 'User-Agent': "hostinger-typescript-sdk/3.4.3" }, (_a = param.baseOptions) === null || _a === void 0 ? void 0 : _a.headers) });
|
|
20
20
|
this.formDataCtor = param.formDataCtor;
|
|
21
21
|
}
|
|
22
22
|
/**
|
package/dist/esm/api.d.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
/**
|
|
2
2
|
* Hostinger API
|
|
3
3
|
*
|
|
4
|
-
* API Version: 3.4.
|
|
4
|
+
* API Version: 3.4.3
|
|
5
5
|
*
|
|
6
6
|
* NOTE: This file is auto-generated, DO NOT EDIT THIS FILE MANUALLY!
|
|
7
7
|
* If you want to contribute or request a new feature, please create an issue or pull request on https://github.com/hostinger/api
|
|
@@ -6985,6 +6985,262 @@ export interface EcommerceV1VariantVariantResponseResource {
|
|
|
6985
6985
|
*/
|
|
6986
6986
|
'data': EcommerceV1VariantVariantResource;
|
|
6987
6987
|
}
|
|
6988
|
+
/**
|
|
6989
|
+
*
|
|
6990
|
+
* @export
|
|
6991
|
+
* @interface EcommerceV1WebhookStoreRequest
|
|
6992
|
+
*/
|
|
6993
|
+
export interface EcommerceV1WebhookStoreRequest {
|
|
6994
|
+
/**
|
|
6995
|
+
* HTTPS receiver on port 443, without credentials or a fragment. Must be a public destination: localhost, single-label and local-network names (.local, .home.arpa, .internal), Hostinger service domains and loopback, private, link-local or reserved IP addresses are rejected. Merchant-owned domains hosted by Hostinger are allowed.
|
|
6996
|
+
* @type {string}
|
|
6997
|
+
* @memberof EcommerceV1WebhookStoreRequest
|
|
6998
|
+
*/
|
|
6999
|
+
'url': string;
|
|
7000
|
+
/**
|
|
7001
|
+
* Event types to subscribe to. - `order.placed`: a customer places an order, before any online payment is completed. Orders paid online may not have an order number yet. - `order.paid`: an order becomes fully paid: an online payment is captured, a free order is placed or the merchant marks it as paid. Partial payments don\'t send it. - `order.cancelled`: an unpaid order is canceled, for example by the merchant, a connected sales channel or after a delayed payment fails. Paid orders can\'t be canceled, so a cancellation never involves a refund. - `order.refunded`: each time a full or partial refund is recorded, through the payment provider or manually. - `order.fulfilled`: a fulfillment leaves every item in the order fulfilled. Partial fulfillments send `fulfillment.created` instead. - `fulfillment.created`: each time items in an order are fulfilled, including partial fulfillments and digital items fulfilled automatically after payment. - `fulfillment.updated`: a fulfillment\'s tracking details change, or a connected shipping service or sales channel reports progress such as delivery. - `fulfillment.cancelled`: a fulfillment is canceled before it ships, for example when it is canceled or its shipping label is voided. - `product.created`: a product is added to the store, including drafts and products created in bulk. - `product.updated`: a product changes, including its details, variants, prices, stock, visibility or collections. Stock changes from orders also send it, so expect frequent events. - `product.deleted`: a product is deleted, individually or in bulk.
|
|
7002
|
+
* @type {Array<string>}
|
|
7003
|
+
* @memberof EcommerceV1WebhookStoreRequest
|
|
7004
|
+
*/
|
|
7005
|
+
'events': Array<EcommerceV1WebhookStoreRequestEventsEnum>;
|
|
7006
|
+
/**
|
|
7007
|
+
* Omit for store-wide delivery. IDs must belong to this store; empty arrays are invalid.
|
|
7008
|
+
* @type {Array<string>}
|
|
7009
|
+
* @memberof EcommerceV1WebhookStoreRequest
|
|
7010
|
+
*/
|
|
7011
|
+
'sales_channel_ids': Array<string>;
|
|
7012
|
+
}
|
|
7013
|
+
export declare const EcommerceV1WebhookStoreRequestEventsEnum: {
|
|
7014
|
+
readonly OrderPlaced: "order.placed";
|
|
7015
|
+
readonly OrderPaid: "order.paid";
|
|
7016
|
+
readonly OrderCancelled: "order.cancelled";
|
|
7017
|
+
readonly OrderRefunded: "order.refunded";
|
|
7018
|
+
readonly OrderFulfilled: "order.fulfilled";
|
|
7019
|
+
readonly FulfillmentCreated: "fulfillment.created";
|
|
7020
|
+
readonly FulfillmentUpdated: "fulfillment.updated";
|
|
7021
|
+
readonly FulfillmentCancelled: "fulfillment.cancelled";
|
|
7022
|
+
readonly ProductCreated: "product.created";
|
|
7023
|
+
readonly ProductUpdated: "product.updated";
|
|
7024
|
+
readonly ProductDeleted: "product.deleted";
|
|
7025
|
+
};
|
|
7026
|
+
export type EcommerceV1WebhookStoreRequestEventsEnum = typeof EcommerceV1WebhookStoreRequestEventsEnum[keyof typeof EcommerceV1WebhookStoreRequestEventsEnum];
|
|
7027
|
+
/**
|
|
7028
|
+
*
|
|
7029
|
+
* @export
|
|
7030
|
+
* @interface EcommerceV1WebhookUpdateRequest
|
|
7031
|
+
*/
|
|
7032
|
+
export interface EcommerceV1WebhookUpdateRequest {
|
|
7033
|
+
/**
|
|
7034
|
+
* HTTPS receiver on port 443, without credentials or a fragment. Omit to preserve. A changed URL must be a public destination under the same rules as creation; resending the saved URL unchanged is accepted.
|
|
7035
|
+
* @type {string}
|
|
7036
|
+
* @memberof EcommerceV1WebhookUpdateRequest
|
|
7037
|
+
*/
|
|
7038
|
+
'url': string;
|
|
7039
|
+
/**
|
|
7040
|
+
* Replacement event types. Omit to preserve. - `order.placed`: a customer places an order, before any online payment is completed. Orders paid online may not have an order number yet. - `order.paid`: an order becomes fully paid: an online payment is captured, a free order is placed or the merchant marks it as paid. Partial payments don\'t send it. - `order.cancelled`: an unpaid order is canceled, for example by the merchant, a connected sales channel or after a delayed payment fails. Paid orders can\'t be canceled, so a cancellation never involves a refund. - `order.refunded`: each time a full or partial refund is recorded, through the payment provider or manually. - `order.fulfilled`: a fulfillment leaves every item in the order fulfilled. Partial fulfillments send `fulfillment.created` instead. - `fulfillment.created`: each time items in an order are fulfilled, including partial fulfillments and digital items fulfilled automatically after payment. - `fulfillment.updated`: a fulfillment\'s tracking details change, or a connected shipping service or sales channel reports progress such as delivery. - `fulfillment.cancelled`: a fulfillment is canceled before it ships, for example when it is canceled or its shipping label is voided. - `product.created`: a product is added to the store, including drafts and products created in bulk. - `product.updated`: a product changes, including its details, variants, prices, stock, visibility or collections. Stock changes from orders also send it, so expect frequent events. - `product.deleted`: a product is deleted, individually or in bulk.
|
|
7041
|
+
* @type {Array<string>}
|
|
7042
|
+
* @memberof EcommerceV1WebhookUpdateRequest
|
|
7043
|
+
*/
|
|
7044
|
+
'events': Array<EcommerceV1WebhookUpdateRequestEventsEnum>;
|
|
7045
|
+
/**
|
|
7046
|
+
* Omit to preserve; null restores store-wide delivery. Empty or foreign-store IDs are invalid.
|
|
7047
|
+
* @type {Array<string>}
|
|
7048
|
+
* @memberof EcommerceV1WebhookUpdateRequest
|
|
7049
|
+
*/
|
|
7050
|
+
'sales_channel_ids': Array<string> | null;
|
|
7051
|
+
/**
|
|
7052
|
+
* Merchant-disabled endpoints can be enabled again; lifecycle-revoked endpoints cannot.
|
|
7053
|
+
* @type {boolean}
|
|
7054
|
+
* @memberof EcommerceV1WebhookUpdateRequest
|
|
7055
|
+
*/
|
|
7056
|
+
'enabled': boolean;
|
|
7057
|
+
}
|
|
7058
|
+
export declare const EcommerceV1WebhookUpdateRequestEventsEnum: {
|
|
7059
|
+
readonly OrderPlaced: "order.placed";
|
|
7060
|
+
readonly OrderPaid: "order.paid";
|
|
7061
|
+
readonly OrderCancelled: "order.cancelled";
|
|
7062
|
+
readonly OrderRefunded: "order.refunded";
|
|
7063
|
+
readonly OrderFulfilled: "order.fulfilled";
|
|
7064
|
+
readonly FulfillmentCreated: "fulfillment.created";
|
|
7065
|
+
readonly FulfillmentUpdated: "fulfillment.updated";
|
|
7066
|
+
readonly FulfillmentCancelled: "fulfillment.cancelled";
|
|
7067
|
+
readonly ProductCreated: "product.created";
|
|
7068
|
+
readonly ProductUpdated: "product.updated";
|
|
7069
|
+
readonly ProductDeleted: "product.deleted";
|
|
7070
|
+
};
|
|
7071
|
+
export type EcommerceV1WebhookUpdateRequestEventsEnum = typeof EcommerceV1WebhookUpdateRequestEventsEnum[keyof typeof EcommerceV1WebhookUpdateRequestEventsEnum];
|
|
7072
|
+
/**
|
|
7073
|
+
*
|
|
7074
|
+
* @export
|
|
7075
|
+
* @interface EcommerceV1WebhookWebhookCreationResource
|
|
7076
|
+
*/
|
|
7077
|
+
export interface EcommerceV1WebhookWebhookCreationResource {
|
|
7078
|
+
/**
|
|
7079
|
+
*
|
|
7080
|
+
* @type {EcommerceV1WebhookWebhookEndpointResource}
|
|
7081
|
+
* @memberof EcommerceV1WebhookWebhookCreationResource
|
|
7082
|
+
*/
|
|
7083
|
+
'endpoint': EcommerceV1WebhookWebhookEndpointResource;
|
|
7084
|
+
/**
|
|
7085
|
+
* New whsec_ signing secret. Save securely.
|
|
7086
|
+
* @type {string}
|
|
7087
|
+
* @memberof EcommerceV1WebhookWebhookCreationResource
|
|
7088
|
+
*/
|
|
7089
|
+
'secret': string;
|
|
7090
|
+
}
|
|
7091
|
+
/**
|
|
7092
|
+
*
|
|
7093
|
+
* @export
|
|
7094
|
+
* @interface EcommerceV1WebhookWebhookEndpointResource
|
|
7095
|
+
*/
|
|
7096
|
+
export interface EcommerceV1WebhookWebhookEndpointResource {
|
|
7097
|
+
/**
|
|
7098
|
+
* Webhook endpoint ID.
|
|
7099
|
+
* @type {string}
|
|
7100
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7101
|
+
*/
|
|
7102
|
+
'id': string;
|
|
7103
|
+
/**
|
|
7104
|
+
* Owning store ID.
|
|
7105
|
+
* @type {string}
|
|
7106
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7107
|
+
*/
|
|
7108
|
+
'store_id': string;
|
|
7109
|
+
/**
|
|
7110
|
+
* HTTPS receiver URL.
|
|
7111
|
+
* @type {string}
|
|
7112
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7113
|
+
*/
|
|
7114
|
+
'url': string;
|
|
7115
|
+
/**
|
|
7116
|
+
* Subscribed event types. - `order.placed`: a customer places an order, before any online payment is completed. Orders paid online may not have an order number yet. - `order.paid`: an order becomes fully paid: an online payment is captured, a free order is placed or the merchant marks it as paid. Partial payments don\'t send it. - `order.cancelled`: an unpaid order is canceled, for example by the merchant, a connected sales channel or after a delayed payment fails. Paid orders can\'t be canceled, so a cancellation never involves a refund. - `order.refunded`: each time a full or partial refund is recorded, through the payment provider or manually. - `order.fulfilled`: a fulfillment leaves every item in the order fulfilled. Partial fulfillments send `fulfillment.created` instead. - `fulfillment.created`: each time items in an order are fulfilled, including partial fulfillments and digital items fulfilled automatically after payment. - `fulfillment.updated`: a fulfillment\'s tracking details change, or a connected shipping service or sales channel reports progress such as delivery. - `fulfillment.cancelled`: a fulfillment is canceled before it ships, for example when it is canceled or its shipping label is voided. - `product.created`: a product is added to the store, including drafts and products created in bulk. - `product.updated`: a product changes, including its details, variants, prices, stock, visibility or collections. Stock changes from orders also send it, so expect frequent events. - `product.deleted`: a product is deleted, individually or in bulk.
|
|
7117
|
+
* @type {Array<string>}
|
|
7118
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7119
|
+
*/
|
|
7120
|
+
'events': Array<EcommerceV1WebhookWebhookEndpointResourceEventsEnum>;
|
|
7121
|
+
/**
|
|
7122
|
+
* Channel filter; null means store-wide.
|
|
7123
|
+
* @type {Array<string>}
|
|
7124
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7125
|
+
*/
|
|
7126
|
+
'sales_channel_ids': Array<string> | null;
|
|
7127
|
+
/**
|
|
7128
|
+
* Whether delivery is enabled.
|
|
7129
|
+
* @type {boolean}
|
|
7130
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7131
|
+
*/
|
|
7132
|
+
'enabled': boolean;
|
|
7133
|
+
/**
|
|
7134
|
+
* Reason delivery was disabled. receiver_gone and receiver_failing are automatic health disables that can be resumed with enabled: true; store_* reasons are permanent revocations.
|
|
7135
|
+
* @type {string}
|
|
7136
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7137
|
+
*/
|
|
7138
|
+
'disabled_reason': EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum | null;
|
|
7139
|
+
/**
|
|
7140
|
+
*
|
|
7141
|
+
* @type {string}
|
|
7142
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7143
|
+
*/
|
|
7144
|
+
'disabled_at': string | null;
|
|
7145
|
+
/**
|
|
7146
|
+
* Start of the current failure streak; null after a successful delivery attempt, a URL change or re-enabling.
|
|
7147
|
+
* @type {string}
|
|
7148
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7149
|
+
*/
|
|
7150
|
+
'failing_since': string | null;
|
|
7151
|
+
/**
|
|
7152
|
+
* When the latest delivery attempt started, whether or not it reached the receiver; null before any attempt.
|
|
7153
|
+
* @type {string}
|
|
7154
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7155
|
+
*/
|
|
7156
|
+
'last_attempted_at': string | null;
|
|
7157
|
+
/**
|
|
7158
|
+
* When the latest successful delivery completed; null before any success.
|
|
7159
|
+
* @type {string}
|
|
7160
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7161
|
+
*/
|
|
7162
|
+
'last_succeeded_at': string | null;
|
|
7163
|
+
/**
|
|
7164
|
+
*
|
|
7165
|
+
* @type {string}
|
|
7166
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7167
|
+
*/
|
|
7168
|
+
'created_at': string;
|
|
7169
|
+
/**
|
|
7170
|
+
*
|
|
7171
|
+
* @type {string}
|
|
7172
|
+
* @memberof EcommerceV1WebhookWebhookEndpointResource
|
|
7173
|
+
*/
|
|
7174
|
+
'updated_at': string;
|
|
7175
|
+
}
|
|
7176
|
+
export declare const EcommerceV1WebhookWebhookEndpointResourceEventsEnum: {
|
|
7177
|
+
readonly OrderPlaced: "order.placed";
|
|
7178
|
+
readonly OrderPaid: "order.paid";
|
|
7179
|
+
readonly OrderCancelled: "order.cancelled";
|
|
7180
|
+
readonly OrderRefunded: "order.refunded";
|
|
7181
|
+
readonly OrderFulfilled: "order.fulfilled";
|
|
7182
|
+
readonly FulfillmentCreated: "fulfillment.created";
|
|
7183
|
+
readonly FulfillmentUpdated: "fulfillment.updated";
|
|
7184
|
+
readonly FulfillmentCancelled: "fulfillment.cancelled";
|
|
7185
|
+
readonly ProductCreated: "product.created";
|
|
7186
|
+
readonly ProductUpdated: "product.updated";
|
|
7187
|
+
readonly ProductDeleted: "product.deleted";
|
|
7188
|
+
};
|
|
7189
|
+
export type EcommerceV1WebhookWebhookEndpointResourceEventsEnum = typeof EcommerceV1WebhookWebhookEndpointResourceEventsEnum[keyof typeof EcommerceV1WebhookWebhookEndpointResourceEventsEnum];
|
|
7190
|
+
export declare const EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum: {
|
|
7191
|
+
readonly MerchantDisabled: "merchant_disabled";
|
|
7192
|
+
readonly StoreTransferred: "store_transferred";
|
|
7193
|
+
readonly StoreSuspended: "store_suspended";
|
|
7194
|
+
readonly StoreDeleted: "store_deleted";
|
|
7195
|
+
readonly ReceiverGone: "receiver_gone";
|
|
7196
|
+
readonly ReceiverFailing: "receiver_failing";
|
|
7197
|
+
};
|
|
7198
|
+
export type EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum = typeof EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum[keyof typeof EcommerceV1WebhookWebhookEndpointResourceDisabledReasonEnum];
|
|
7199
|
+
/**
|
|
7200
|
+
*
|
|
7201
|
+
* @export
|
|
7202
|
+
* @interface EcommerceV1WebhookWebhookListResource
|
|
7203
|
+
*/
|
|
7204
|
+
export interface EcommerceV1WebhookWebhookListResource {
|
|
7205
|
+
/**
|
|
7206
|
+
*
|
|
7207
|
+
* @type {Array<EcommerceV1WebhookWebhookEndpointResource>}
|
|
7208
|
+
* @memberof EcommerceV1WebhookWebhookListResource
|
|
7209
|
+
*/
|
|
7210
|
+
'endpoints': Array<EcommerceV1WebhookWebhookEndpointResource>;
|
|
7211
|
+
}
|
|
7212
|
+
/**
|
|
7213
|
+
*
|
|
7214
|
+
* @export
|
|
7215
|
+
* @interface EcommerceV1WebhookWebhookResource
|
|
7216
|
+
*/
|
|
7217
|
+
export interface EcommerceV1WebhookWebhookResource {
|
|
7218
|
+
/**
|
|
7219
|
+
*
|
|
7220
|
+
* @type {EcommerceV1WebhookWebhookEndpointResource}
|
|
7221
|
+
* @memberof EcommerceV1WebhookWebhookResource
|
|
7222
|
+
*/
|
|
7223
|
+
'endpoint': EcommerceV1WebhookWebhookEndpointResource;
|
|
7224
|
+
}
|
|
7225
|
+
/**
|
|
7226
|
+
*
|
|
7227
|
+
* @export
|
|
7228
|
+
* @interface EcommerceV1WebhookWebhookSecretResource
|
|
7229
|
+
*/
|
|
7230
|
+
export interface EcommerceV1WebhookWebhookSecretResource {
|
|
7231
|
+
/**
|
|
7232
|
+
*
|
|
7233
|
+
* @type {EcommerceV1WebhookWebhookEndpointResource}
|
|
7234
|
+
* @memberof EcommerceV1WebhookWebhookSecretResource
|
|
7235
|
+
*/
|
|
7236
|
+
'endpoint': EcommerceV1WebhookWebhookEndpointResource;
|
|
7237
|
+
/**
|
|
7238
|
+
* New whsec_ signing secret, returned only on create or rotation. Save securely.
|
|
7239
|
+
* @type {string}
|
|
7240
|
+
* @memberof EcommerceV1WebhookWebhookSecretResource
|
|
7241
|
+
*/
|
|
7242
|
+
'secret': string;
|
|
7243
|
+
}
|
|
6988
7244
|
/**
|
|
6989
7245
|
*
|
|
6990
7246
|
* @export
|
|
@@ -25509,6 +25765,254 @@ export declare class EcommerceStoresApi extends BaseAPI {
|
|
|
25509
25765
|
*/
|
|
25510
25766
|
getStoresV1(page?: number, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceGetStoresV1200Response, any, {}, any>>;
|
|
25511
25767
|
}
|
|
25768
|
+
/**
|
|
25769
|
+
* EcommerceWebhooksApi - axios parameter creator
|
|
25770
|
+
* @export
|
|
25771
|
+
*/
|
|
25772
|
+
export declare const EcommerceWebhooksApiAxiosParamCreator: (configuration?: Configuration) => {
|
|
25773
|
+
/**
|
|
25774
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25775
|
+
* @summary Create an ecommerce webhook
|
|
25776
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25777
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
25778
|
+
* @param {*} [options] Override http request option.
|
|
25779
|
+
* @throws {RequiredError}
|
|
25780
|
+
*/
|
|
25781
|
+
createAnEcommerceWebhookV1: (storeId: string, ecommerceV1WebhookStoreRequest: EcommerceV1WebhookStoreRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25782
|
+
/**
|
|
25783
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
25784
|
+
* @summary Delete an ecommerce webhook
|
|
25785
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25786
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25787
|
+
* @param {*} [options] Override http request option.
|
|
25788
|
+
* @throws {RequiredError}
|
|
25789
|
+
*/
|
|
25790
|
+
deleteAnEcommerceWebhookV1: (storeId: string, endpointId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25791
|
+
/**
|
|
25792
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
25793
|
+
* @summary Get an ecommerce webhook
|
|
25794
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25795
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25796
|
+
* @param {*} [options] Override http request option.
|
|
25797
|
+
* @throws {RequiredError}
|
|
25798
|
+
*/
|
|
25799
|
+
getAnEcommerceWebhookV1: (storeId: string, endpointId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25800
|
+
/**
|
|
25801
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
25802
|
+
* @summary List ecommerce webhooks
|
|
25803
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25804
|
+
* @param {*} [options] Override http request option.
|
|
25805
|
+
* @throws {RequiredError}
|
|
25806
|
+
*/
|
|
25807
|
+
listEcommerceWebhooksV1: (storeId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25808
|
+
/**
|
|
25809
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25810
|
+
* @summary Rotate an ecommerce webhook secret
|
|
25811
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25812
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25813
|
+
* @param {*} [options] Override http request option.
|
|
25814
|
+
* @throws {RequiredError}
|
|
25815
|
+
*/
|
|
25816
|
+
rotateAnEcommerceWebhookSecretV1: (storeId: string, endpointId: string, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25817
|
+
/**
|
|
25818
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25819
|
+
* @summary Update an ecommerce webhook
|
|
25820
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25821
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25822
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
25823
|
+
* @param {*} [options] Override http request option.
|
|
25824
|
+
* @throws {RequiredError}
|
|
25825
|
+
*/
|
|
25826
|
+
updateAnEcommerceWebhookV1: (storeId: string, endpointId: string, ecommerceV1WebhookUpdateRequest: EcommerceV1WebhookUpdateRequest, options?: RawAxiosRequestConfig) => Promise<RequestArgs>;
|
|
25827
|
+
};
|
|
25828
|
+
/**
|
|
25829
|
+
* EcommerceWebhooksApi - functional programming interface
|
|
25830
|
+
* @export
|
|
25831
|
+
*/
|
|
25832
|
+
export declare const EcommerceWebhooksApiFp: (configuration?: Configuration) => {
|
|
25833
|
+
/**
|
|
25834
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25835
|
+
* @summary Create an ecommerce webhook
|
|
25836
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25837
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
25838
|
+
* @param {*} [options] Override http request option.
|
|
25839
|
+
* @throws {RequiredError}
|
|
25840
|
+
*/
|
|
25841
|
+
createAnEcommerceWebhookV1(storeId: string, ecommerceV1WebhookStoreRequest: EcommerceV1WebhookStoreRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1WebhookWebhookCreationResource>>;
|
|
25842
|
+
/**
|
|
25843
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
25844
|
+
* @summary Delete an ecommerce webhook
|
|
25845
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25846
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25847
|
+
* @param {*} [options] Override http request option.
|
|
25848
|
+
* @throws {RequiredError}
|
|
25849
|
+
*/
|
|
25850
|
+
deleteAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<CommonSuccessEmptyResource>>;
|
|
25851
|
+
/**
|
|
25852
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
25853
|
+
* @summary Get an ecommerce webhook
|
|
25854
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25855
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25856
|
+
* @param {*} [options] Override http request option.
|
|
25857
|
+
* @throws {RequiredError}
|
|
25858
|
+
*/
|
|
25859
|
+
getAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1WebhookWebhookResource>>;
|
|
25860
|
+
/**
|
|
25861
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
25862
|
+
* @summary List ecommerce webhooks
|
|
25863
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25864
|
+
* @param {*} [options] Override http request option.
|
|
25865
|
+
* @throws {RequiredError}
|
|
25866
|
+
*/
|
|
25867
|
+
listEcommerceWebhooksV1(storeId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1WebhookWebhookListResource>>;
|
|
25868
|
+
/**
|
|
25869
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25870
|
+
* @summary Rotate an ecommerce webhook secret
|
|
25871
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25872
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25873
|
+
* @param {*} [options] Override http request option.
|
|
25874
|
+
* @throws {RequiredError}
|
|
25875
|
+
*/
|
|
25876
|
+
rotateAnEcommerceWebhookSecretV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1WebhookWebhookSecretResource>>;
|
|
25877
|
+
/**
|
|
25878
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25879
|
+
* @summary Update an ecommerce webhook
|
|
25880
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25881
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25882
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
25883
|
+
* @param {*} [options] Override http request option.
|
|
25884
|
+
* @throws {RequiredError}
|
|
25885
|
+
*/
|
|
25886
|
+
updateAnEcommerceWebhookV1(storeId: string, endpointId: string, ecommerceV1WebhookUpdateRequest: EcommerceV1WebhookUpdateRequest, options?: RawAxiosRequestConfig): Promise<(axios?: AxiosInstance, basePath?: string) => AxiosPromise<EcommerceV1WebhookWebhookResource>>;
|
|
25887
|
+
};
|
|
25888
|
+
/**
|
|
25889
|
+
* EcommerceWebhooksApi - factory interface
|
|
25890
|
+
* @export
|
|
25891
|
+
*/
|
|
25892
|
+
export declare const EcommerceWebhooksApiFactory: (configuration?: Configuration, basePath?: string, axios?: AxiosInstance) => {
|
|
25893
|
+
/**
|
|
25894
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25895
|
+
* @summary Create an ecommerce webhook
|
|
25896
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25897
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
25898
|
+
* @param {*} [options] Override http request option.
|
|
25899
|
+
* @throws {RequiredError}
|
|
25900
|
+
*/
|
|
25901
|
+
createAnEcommerceWebhookV1(storeId: string, ecommerceV1WebhookStoreRequest: EcommerceV1WebhookStoreRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1WebhookWebhookCreationResource>;
|
|
25902
|
+
/**
|
|
25903
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
25904
|
+
* @summary Delete an ecommerce webhook
|
|
25905
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25906
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25907
|
+
* @param {*} [options] Override http request option.
|
|
25908
|
+
* @throws {RequiredError}
|
|
25909
|
+
*/
|
|
25910
|
+
deleteAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): AxiosPromise<CommonSuccessEmptyResource>;
|
|
25911
|
+
/**
|
|
25912
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
25913
|
+
* @summary Get an ecommerce webhook
|
|
25914
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25915
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25916
|
+
* @param {*} [options] Override http request option.
|
|
25917
|
+
* @throws {RequiredError}
|
|
25918
|
+
*/
|
|
25919
|
+
getAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1WebhookWebhookResource>;
|
|
25920
|
+
/**
|
|
25921
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
25922
|
+
* @summary List ecommerce webhooks
|
|
25923
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25924
|
+
* @param {*} [options] Override http request option.
|
|
25925
|
+
* @throws {RequiredError}
|
|
25926
|
+
*/
|
|
25927
|
+
listEcommerceWebhooksV1(storeId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1WebhookWebhookListResource>;
|
|
25928
|
+
/**
|
|
25929
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25930
|
+
* @summary Rotate an ecommerce webhook secret
|
|
25931
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25932
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25933
|
+
* @param {*} [options] Override http request option.
|
|
25934
|
+
* @throws {RequiredError}
|
|
25935
|
+
*/
|
|
25936
|
+
rotateAnEcommerceWebhookSecretV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1WebhookWebhookSecretResource>;
|
|
25937
|
+
/**
|
|
25938
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25939
|
+
* @summary Update an ecommerce webhook
|
|
25940
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25941
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25942
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
25943
|
+
* @param {*} [options] Override http request option.
|
|
25944
|
+
* @throws {RequiredError}
|
|
25945
|
+
*/
|
|
25946
|
+
updateAnEcommerceWebhookV1(storeId: string, endpointId: string, ecommerceV1WebhookUpdateRequest: EcommerceV1WebhookUpdateRequest, options?: RawAxiosRequestConfig): AxiosPromise<EcommerceV1WebhookWebhookResource>;
|
|
25947
|
+
};
|
|
25948
|
+
/**
|
|
25949
|
+
* EcommerceWebhooksApi - object-oriented interface
|
|
25950
|
+
* @export
|
|
25951
|
+
* @class EcommerceWebhooksApi
|
|
25952
|
+
* @extends {BaseAPI}
|
|
25953
|
+
*/
|
|
25954
|
+
export declare class EcommerceWebhooksApi extends BaseAPI {
|
|
25955
|
+
/**
|
|
25956
|
+
* Create an enabled subscription for your store to receive ecommerce events in external automation systems. Save the whsec_ signing secret securely; it is returned once. Up to ten endpoints, including disabled endpoints, may exist per store. Deliveries follow Standard Webhooks: verify the webhook-id, webhook-timestamp and webhook-signature headers against the raw body with an official Standard Webhooks library before parsing. Events can arrive out of order or more than once; deduplicate by event id. 400: the URL is not a public destination, or webhook_sales_channel_invalid (a channel ID does not belong to this store). 409 codes: webhook_endpoint_limit_reached, webhook_store_inactive, webhook_endpoint_catalog_busy (a catalog change is in progress; retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25957
|
+
* @summary Create an ecommerce webhook
|
|
25958
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25959
|
+
* @param {EcommerceV1WebhookStoreRequest} ecommerceV1WebhookStoreRequest
|
|
25960
|
+
* @param {*} [options] Override http request option.
|
|
25961
|
+
* @throws {RequiredError}
|
|
25962
|
+
* @memberof EcommerceWebhooksApi
|
|
25963
|
+
*/
|
|
25964
|
+
createAnEcommerceWebhookV1(storeId: string, ecommerceV1WebhookStoreRequest: EcommerceV1WebhookStoreRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1WebhookWebhookCreationResource, any, {}, any>>;
|
|
25965
|
+
/**
|
|
25966
|
+
* Delete a subscription owned by your store, retaining delivery audit records.
|
|
25967
|
+
* @summary Delete an ecommerce webhook
|
|
25968
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25969
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25970
|
+
* @param {*} [options] Override http request option.
|
|
25971
|
+
* @throws {RequiredError}
|
|
25972
|
+
* @memberof EcommerceWebhooksApi
|
|
25973
|
+
*/
|
|
25974
|
+
deleteAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<CommonSuccessEmptyResource, any, {}, any>>;
|
|
25975
|
+
/**
|
|
25976
|
+
* Get a subscription owned by your store, without signing secrets.
|
|
25977
|
+
* @summary Get an ecommerce webhook
|
|
25978
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25979
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25980
|
+
* @param {*} [options] Override http request option.
|
|
25981
|
+
* @throws {RequiredError}
|
|
25982
|
+
* @memberof EcommerceWebhooksApi
|
|
25983
|
+
*/
|
|
25984
|
+
getAnEcommerceWebhookV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1WebhookWebhookResource, any, {}, any>>;
|
|
25985
|
+
/**
|
|
25986
|
+
* List your store\'s subscriptions for external automation systems, without signing secrets.
|
|
25987
|
+
* @summary List ecommerce webhooks
|
|
25988
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25989
|
+
* @param {*} [options] Override http request option.
|
|
25990
|
+
* @throws {RequiredError}
|
|
25991
|
+
* @memberof EcommerceWebhooksApi
|
|
25992
|
+
*/
|
|
25993
|
+
listEcommerceWebhooksV1(storeId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1WebhookWebhookListResource, any, {}, any>>;
|
|
25994
|
+
/**
|
|
25995
|
+
* Explicitly rotate the signing secret of an enabled endpoint on an active store. Save the new secret securely. Prior secrets retain their original 24-hour overlap deadlines. Repeated calls create distinct secrets, up to five live secrets. Wait for an old secret to expire at the limit. After a lost response, explicitly rotate again; stored secrets cannot be retrieved. No daily renewal is required. 409 codes: webhook_endpoint_disabled (endpoint is disabled or revoked), webhook_store_inactive, webhook_secret_rotation_limit_reached (five live secrets). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
25996
|
+
* @summary Rotate an ecommerce webhook secret
|
|
25997
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
25998
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
25999
|
+
* @param {*} [options] Override http request option.
|
|
26000
|
+
* @throws {RequiredError}
|
|
26001
|
+
* @memberof EcommerceWebhooksApi
|
|
26002
|
+
*/
|
|
26003
|
+
rotateAnEcommerceWebhookSecretV1(storeId: string, endpointId: string, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1WebhookWebhookSecretResource, any, {}, any>>;
|
|
26004
|
+
/**
|
|
26005
|
+
* Change the receiver, events, channel filter or enabled state. Omitted fields are preserved; a null channel filter restores store-wide delivery. Endpoints disabled automatically after a 410 Gone (receiver_gone) or persistent delivery failures (receiver_failing) resume with enabled: true; events from the disabled period are not sent. Lifecycle-revoked endpoints cannot be enabled again: delete them and create fresh subscriptions after recovery. 400 codes: webhook_destination_not_allowed (the new URL, or the saved URL when enabling, is not a public destination), webhook_sales_channel_invalid. 409 codes: webhook_endpoint_revoked, webhook_store_inactive, webhook_endpoint_catalog_busy (retry). Errors return the upstream code in `message`, as `[Ecommerce:<code>] <reason>`.
|
|
26006
|
+
* @summary Update an ecommerce webhook
|
|
26007
|
+
* @param {string} storeId ID of the store owned by your account.
|
|
26008
|
+
* @param {string} endpointId Webhook endpoint ID belonging to this store.
|
|
26009
|
+
* @param {EcommerceV1WebhookUpdateRequest} ecommerceV1WebhookUpdateRequest
|
|
26010
|
+
* @param {*} [options] Override http request option.
|
|
26011
|
+
* @throws {RequiredError}
|
|
26012
|
+
* @memberof EcommerceWebhooksApi
|
|
26013
|
+
*/
|
|
26014
|
+
updateAnEcommerceWebhookV1(storeId: string, endpointId: string, ecommerceV1WebhookUpdateRequest: EcommerceV1WebhookUpdateRequest, options?: RawAxiosRequestConfig): Promise<import("axios").AxiosResponse<EcommerceV1WebhookWebhookResource, any, {}, any>>;
|
|
26015
|
+
}
|
|
25512
26016
|
/**
|
|
25513
26017
|
* GPUCatalogApi - axios parameter creator
|
|
25514
26018
|
* @export
|