@wix/packages 1.0.20 → 1.0.22
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wix/packages",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.22",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"registry": "https://registry.npmjs.org/",
|
|
6
6
|
"access": "public"
|
|
@@ -21,7 +21,7 @@
|
|
|
21
21
|
"type-bundles"
|
|
22
22
|
],
|
|
23
23
|
"dependencies": {
|
|
24
|
-
"@wix/packages_packages": "1.0.
|
|
24
|
+
"@wix/packages_packages": "1.0.21"
|
|
25
25
|
},
|
|
26
26
|
"devDependencies": {
|
|
27
27
|
"glob": "^10.4.1",
|
|
@@ -46,5 +46,5 @@
|
|
|
46
46
|
"fqdn": ""
|
|
47
47
|
}
|
|
48
48
|
},
|
|
49
|
-
"falconPackageHash": "
|
|
49
|
+
"falconPackageHash": "5a9077c2c4e054cfff67be2448ce40ae84764308af80a6d78fee466b"
|
|
50
50
|
}
|
|
@@ -546,12 +546,6 @@ interface ProductInstance extends ProductInstanceContractDetailsOneOf {
|
|
|
546
546
|
catalogProductId?: string;
|
|
547
547
|
/**
|
|
548
548
|
* Status of the product instance.
|
|
549
|
-
*
|
|
550
|
-
* + `PENDING`: The product instance isn't yet available to the customer.
|
|
551
|
-
* + `ENABLED`: The customer can use the product instance.
|
|
552
|
-
* + `CANCELED`: The product instance isn't any longer available to the customer.
|
|
553
|
-
* + `FAILED`: The product instance couldn't be delivered successfully and has never been available to the customer.
|
|
554
|
-
* + `AWAITING_ACTION`: The product instance isn't yet available to the customer, because an external provider or the customer must take an action.
|
|
555
549
|
* @readonly
|
|
556
550
|
*/
|
|
557
551
|
status?: Status;
|
|
@@ -610,26 +604,29 @@ interface ProductInstanceContractDetailsOneOf {
|
|
|
610
604
|
}
|
|
611
605
|
declare enum FailureReasonFailureReason {
|
|
612
606
|
UNKNOWN = "UNKNOWN",
|
|
613
|
-
/** The
|
|
607
|
+
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
614
608
|
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
615
|
-
/**
|
|
609
|
+
/** The product instance couldn't be created because an external process failed. */
|
|
616
610
|
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
617
611
|
}
|
|
618
612
|
declare enum IntervalIntervalUnit {
|
|
619
613
|
/** unknown interval unit */
|
|
620
614
|
UNKNOWN = "UNKNOWN",
|
|
621
|
-
/**
|
|
615
|
+
/** Day */
|
|
622
616
|
DAY = "DAY",
|
|
623
|
-
/**
|
|
617
|
+
/** Week */
|
|
624
618
|
WEEK = "WEEK",
|
|
625
|
-
/**
|
|
619
|
+
/** Month */
|
|
626
620
|
MONTH = "MONTH",
|
|
627
|
-
/**
|
|
621
|
+
/** Year */
|
|
628
622
|
YEAR = "YEAR"
|
|
629
623
|
}
|
|
630
624
|
declare enum CycleDescriptorType {
|
|
625
|
+
/** The payment type hasn't been set. */
|
|
631
626
|
UNKNOWN = "UNKNOWN",
|
|
627
|
+
/** The reseller pays Wix in a single payment. */
|
|
632
628
|
ONE_TIME = "ONE_TIME",
|
|
629
|
+
/** The reseller pays Wix on a recurring schedule. */
|
|
633
630
|
RECURRING = "RECURRING"
|
|
634
631
|
}
|
|
635
632
|
interface CycleInterval {
|
|
@@ -639,34 +636,50 @@ interface CycleInterval {
|
|
|
639
636
|
count?: number;
|
|
640
637
|
}
|
|
641
638
|
declare enum Status {
|
|
639
|
+
/** The product instance isn't yet available to the customer. */
|
|
642
640
|
PENDING = "PENDING",
|
|
641
|
+
/** The customer can use the product instance. */
|
|
643
642
|
ENABLED = "ENABLED",
|
|
643
|
+
/** The product instance isn't any longer available to the customer. */
|
|
644
644
|
CANCELED = "CANCELED",
|
|
645
|
+
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
645
646
|
FAILED = "FAILED",
|
|
647
|
+
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
646
648
|
AWAITING_ACTION = "AWAITING_ACTION"
|
|
647
649
|
}
|
|
648
650
|
interface FailureReason {
|
|
649
|
-
/**
|
|
650
|
-
* Failure code.
|
|
651
|
-
*
|
|
652
|
-
* + `DELIVERY_TIMEOUT`: The product instance couldn't be created because the Resellers API timed out.
|
|
653
|
-
* + `EXTERNAL_FAILURE`: The product instance couldn't be created because an external process failed. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
654
|
-
*/
|
|
651
|
+
/** Failure code. */
|
|
655
652
|
code?: FailureReasonFailureReason;
|
|
656
653
|
/** Failure message. */
|
|
657
654
|
message?: string;
|
|
658
655
|
}
|
|
659
656
|
interface ProductInstanceCycle {
|
|
660
|
-
/**
|
|
661
|
-
* Payment type.
|
|
662
|
-
* + `UNKNOWN`: The payment type hasn't been set.
|
|
663
|
-
* + `ONE_TIME`: The reseller pays Wix in a single payment.
|
|
664
|
-
* + `RECURRING`: The reseller pays Wix on a recurring schedule.
|
|
665
|
-
*/
|
|
657
|
+
/** Payment type. */
|
|
666
658
|
type?: CycleDescriptorType;
|
|
667
659
|
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
668
660
|
cycleDuration?: CycleInterval;
|
|
669
661
|
}
|
|
662
|
+
interface MigrateSubscriptionToPackagesRequest {
|
|
663
|
+
/** Created package. */
|
|
664
|
+
productInstance?: ProductInstance;
|
|
665
|
+
/** Existing subscriptionId to migrate */
|
|
666
|
+
subscriptionId?: string | null;
|
|
667
|
+
/** User id of the migration - only for Immigrator */
|
|
668
|
+
userId?: string | null;
|
|
669
|
+
}
|
|
670
|
+
interface MigrateSubscriptionToPackagesResponse {
|
|
671
|
+
package?: Package;
|
|
672
|
+
}
|
|
673
|
+
interface FixBrokenMigrationRequest {
|
|
674
|
+
/** Subscription id of the broken subscription */
|
|
675
|
+
subscriptionId?: string;
|
|
676
|
+
/** SBS service id that points to the broken subscription */
|
|
677
|
+
sbsServiceId?: string;
|
|
678
|
+
/** Owner of the broken subscription */
|
|
679
|
+
userId?: string;
|
|
680
|
+
}
|
|
681
|
+
interface FixBrokenMigrationResponse {
|
|
682
|
+
}
|
|
670
683
|
interface CreatePackageRequest {
|
|
671
684
|
/** Idempotency key. */
|
|
672
685
|
idempotencyKey?: string | null;
|
|
@@ -889,8 +902,7 @@ interface AdjustProductInstanceSpecificationsRequest {
|
|
|
889
902
|
billingInfo?: ProductInstanceCycle;
|
|
890
903
|
/**
|
|
891
904
|
* Discount code indicating that the reseller provisioned the product instance
|
|
892
|
-
* during a sale.
|
|
893
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
905
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
894
906
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
895
907
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
896
908
|
* valid. You can't add a discount code after you've created the
|
|
@@ -1650,27 +1662,6 @@ declare enum WebhookIdentityType {
|
|
|
1650
1662
|
WIX_USER = "WIX_USER",
|
|
1651
1663
|
APP = "APP"
|
|
1652
1664
|
}
|
|
1653
|
-
interface MigrateSubscriptionToPackagesRequest {
|
|
1654
|
-
/** Created package. */
|
|
1655
|
-
productInstance?: ProductInstance;
|
|
1656
|
-
/** Existing subscriptionId to migrate */
|
|
1657
|
-
subscriptionId?: string | null;
|
|
1658
|
-
/** User id of the migration - only for Immigrator */
|
|
1659
|
-
userId?: string | null;
|
|
1660
|
-
}
|
|
1661
|
-
interface MigrateSubscriptionToPackagesResponse {
|
|
1662
|
-
package?: Package;
|
|
1663
|
-
}
|
|
1664
|
-
interface FixBrokenMigrationRequest {
|
|
1665
|
-
/** Subscription id of the broken subscription */
|
|
1666
|
-
subscriptionId?: string;
|
|
1667
|
-
/** SBS service id that points to the broken subscription */
|
|
1668
|
-
sbsServiceId?: string;
|
|
1669
|
-
/** Owner of the broken subscription */
|
|
1670
|
-
userId?: string;
|
|
1671
|
-
}
|
|
1672
|
-
interface FixBrokenMigrationResponse {
|
|
1673
|
-
}
|
|
1674
1665
|
interface CycleIntervalNonNullableFields {
|
|
1675
1666
|
unit: IntervalIntervalUnit;
|
|
1676
1667
|
count: number;
|
|
@@ -1804,8 +1795,7 @@ interface AdjustProductInstanceSpecificationsOptions {
|
|
|
1804
1795
|
billingInfo?: ProductInstanceCycle;
|
|
1805
1796
|
/**
|
|
1806
1797
|
* Discount code indicating that the reseller provisioned the product instance
|
|
1807
|
-
* during a sale.
|
|
1808
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
1798
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
1809
1799
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
1810
1800
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
1811
1801
|
* valid. You can't add a discount code after you've created the
|
|
@@ -546,12 +546,6 @@ interface ProductInstance extends ProductInstanceContractDetailsOneOf {
|
|
|
546
546
|
catalogProductId?: string;
|
|
547
547
|
/**
|
|
548
548
|
* Status of the product instance.
|
|
549
|
-
*
|
|
550
|
-
* + `PENDING`: The product instance isn't yet available to the customer.
|
|
551
|
-
* + `ENABLED`: The customer can use the product instance.
|
|
552
|
-
* + `CANCELED`: The product instance isn't any longer available to the customer.
|
|
553
|
-
* + `FAILED`: The product instance couldn't be delivered successfully and has never been available to the customer.
|
|
554
|
-
* + `AWAITING_ACTION`: The product instance isn't yet available to the customer, because an external provider or the customer must take an action.
|
|
555
549
|
* @readonly
|
|
556
550
|
*/
|
|
557
551
|
status?: Status;
|
|
@@ -610,26 +604,29 @@ interface ProductInstanceContractDetailsOneOf {
|
|
|
610
604
|
}
|
|
611
605
|
declare enum FailureReasonFailureReason {
|
|
612
606
|
UNKNOWN = "UNKNOWN",
|
|
613
|
-
/** The
|
|
607
|
+
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
614
608
|
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
615
|
-
/**
|
|
609
|
+
/** The product instance couldn't be created because an external process failed. */
|
|
616
610
|
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
617
611
|
}
|
|
618
612
|
declare enum IntervalIntervalUnit {
|
|
619
613
|
/** unknown interval unit */
|
|
620
614
|
UNKNOWN = "UNKNOWN",
|
|
621
|
-
/**
|
|
615
|
+
/** Day */
|
|
622
616
|
DAY = "DAY",
|
|
623
|
-
/**
|
|
617
|
+
/** Week */
|
|
624
618
|
WEEK = "WEEK",
|
|
625
|
-
/**
|
|
619
|
+
/** Month */
|
|
626
620
|
MONTH = "MONTH",
|
|
627
|
-
/**
|
|
621
|
+
/** Year */
|
|
628
622
|
YEAR = "YEAR"
|
|
629
623
|
}
|
|
630
624
|
declare enum CycleDescriptorType {
|
|
625
|
+
/** The payment type hasn't been set. */
|
|
631
626
|
UNKNOWN = "UNKNOWN",
|
|
627
|
+
/** The reseller pays Wix in a single payment. */
|
|
632
628
|
ONE_TIME = "ONE_TIME",
|
|
629
|
+
/** The reseller pays Wix on a recurring schedule. */
|
|
633
630
|
RECURRING = "RECURRING"
|
|
634
631
|
}
|
|
635
632
|
interface CycleInterval {
|
|
@@ -639,34 +636,50 @@ interface CycleInterval {
|
|
|
639
636
|
count?: number;
|
|
640
637
|
}
|
|
641
638
|
declare enum Status {
|
|
639
|
+
/** The product instance isn't yet available to the customer. */
|
|
642
640
|
PENDING = "PENDING",
|
|
641
|
+
/** The customer can use the product instance. */
|
|
643
642
|
ENABLED = "ENABLED",
|
|
643
|
+
/** The product instance isn't any longer available to the customer. */
|
|
644
644
|
CANCELED = "CANCELED",
|
|
645
|
+
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
645
646
|
FAILED = "FAILED",
|
|
647
|
+
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
646
648
|
AWAITING_ACTION = "AWAITING_ACTION"
|
|
647
649
|
}
|
|
648
650
|
interface FailureReason {
|
|
649
|
-
/**
|
|
650
|
-
* Failure code.
|
|
651
|
-
*
|
|
652
|
-
* + `DELIVERY_TIMEOUT`: The product instance couldn't be created because the Resellers API timed out.
|
|
653
|
-
* + `EXTERNAL_FAILURE`: The product instance couldn't be created because an external process failed. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
654
|
-
*/
|
|
651
|
+
/** Failure code. */
|
|
655
652
|
code?: FailureReasonFailureReason;
|
|
656
653
|
/** Failure message. */
|
|
657
654
|
message?: string;
|
|
658
655
|
}
|
|
659
656
|
interface ProductInstanceCycle {
|
|
660
|
-
/**
|
|
661
|
-
* Payment type.
|
|
662
|
-
* + `UNKNOWN`: The payment type hasn't been set.
|
|
663
|
-
* + `ONE_TIME`: The reseller pays Wix in a single payment.
|
|
664
|
-
* + `RECURRING`: The reseller pays Wix on a recurring schedule.
|
|
665
|
-
*/
|
|
657
|
+
/** Payment type. */
|
|
666
658
|
type?: CycleDescriptorType;
|
|
667
659
|
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
668
660
|
cycleDuration?: CycleInterval;
|
|
669
661
|
}
|
|
662
|
+
interface MigrateSubscriptionToPackagesRequest {
|
|
663
|
+
/** Created package. */
|
|
664
|
+
productInstance?: ProductInstance;
|
|
665
|
+
/** Existing subscriptionId to migrate */
|
|
666
|
+
subscriptionId?: string | null;
|
|
667
|
+
/** User id of the migration - only for Immigrator */
|
|
668
|
+
userId?: string | null;
|
|
669
|
+
}
|
|
670
|
+
interface MigrateSubscriptionToPackagesResponse {
|
|
671
|
+
package?: Package;
|
|
672
|
+
}
|
|
673
|
+
interface FixBrokenMigrationRequest {
|
|
674
|
+
/** Subscription id of the broken subscription */
|
|
675
|
+
subscriptionId?: string;
|
|
676
|
+
/** SBS service id that points to the broken subscription */
|
|
677
|
+
sbsServiceId?: string;
|
|
678
|
+
/** Owner of the broken subscription */
|
|
679
|
+
userId?: string;
|
|
680
|
+
}
|
|
681
|
+
interface FixBrokenMigrationResponse {
|
|
682
|
+
}
|
|
670
683
|
interface CreatePackageRequest {
|
|
671
684
|
/** Idempotency key. */
|
|
672
685
|
idempotencyKey?: string | null;
|
|
@@ -889,8 +902,7 @@ interface AdjustProductInstanceSpecificationsRequest {
|
|
|
889
902
|
billingInfo?: ProductInstanceCycle;
|
|
890
903
|
/**
|
|
891
904
|
* Discount code indicating that the reseller provisioned the product instance
|
|
892
|
-
* during a sale.
|
|
893
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
905
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
894
906
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
895
907
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
896
908
|
* valid. You can't add a discount code after you've created the
|
|
@@ -1650,27 +1662,6 @@ declare enum WebhookIdentityType {
|
|
|
1650
1662
|
WIX_USER = "WIX_USER",
|
|
1651
1663
|
APP = "APP"
|
|
1652
1664
|
}
|
|
1653
|
-
interface MigrateSubscriptionToPackagesRequest {
|
|
1654
|
-
/** Created package. */
|
|
1655
|
-
productInstance?: ProductInstance;
|
|
1656
|
-
/** Existing subscriptionId to migrate */
|
|
1657
|
-
subscriptionId?: string | null;
|
|
1658
|
-
/** User id of the migration - only for Immigrator */
|
|
1659
|
-
userId?: string | null;
|
|
1660
|
-
}
|
|
1661
|
-
interface MigrateSubscriptionToPackagesResponse {
|
|
1662
|
-
package?: Package;
|
|
1663
|
-
}
|
|
1664
|
-
interface FixBrokenMigrationRequest {
|
|
1665
|
-
/** Subscription id of the broken subscription */
|
|
1666
|
-
subscriptionId?: string;
|
|
1667
|
-
/** SBS service id that points to the broken subscription */
|
|
1668
|
-
sbsServiceId?: string;
|
|
1669
|
-
/** Owner of the broken subscription */
|
|
1670
|
-
userId?: string;
|
|
1671
|
-
}
|
|
1672
|
-
interface FixBrokenMigrationResponse {
|
|
1673
|
-
}
|
|
1674
1665
|
interface CycleIntervalNonNullableFields {
|
|
1675
1666
|
unit: IntervalIntervalUnit;
|
|
1676
1667
|
count: number;
|
|
@@ -1804,8 +1795,7 @@ interface AdjustProductInstanceSpecificationsOptions {
|
|
|
1804
1795
|
billingInfo?: ProductInstanceCycle;
|
|
1805
1796
|
/**
|
|
1806
1797
|
* Discount code indicating that the reseller provisioned the product instance
|
|
1807
|
-
* during a sale.
|
|
1808
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
1798
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
1809
1799
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
1810
1800
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
1811
1801
|
* valid. You can't add a discount code after you've created the
|
|
@@ -68,12 +68,6 @@ interface ProductInstance$1 extends ProductInstanceContractDetailsOneOf$1 {
|
|
|
68
68
|
catalogProductId?: string;
|
|
69
69
|
/**
|
|
70
70
|
* Status of the product instance.
|
|
71
|
-
*
|
|
72
|
-
* + `PENDING`: The product instance isn't yet available to the customer.
|
|
73
|
-
* + `ENABLED`: The customer can use the product instance.
|
|
74
|
-
* + `CANCELED`: The product instance isn't any longer available to the customer.
|
|
75
|
-
* + `FAILED`: The product instance couldn't be delivered successfully and has never been available to the customer.
|
|
76
|
-
* + `AWAITING_ACTION`: The product instance isn't yet available to the customer, because an external provider or the customer must take an action.
|
|
77
71
|
* @readonly
|
|
78
72
|
*/
|
|
79
73
|
status?: Status$1;
|
|
@@ -132,26 +126,29 @@ interface ProductInstanceContractDetailsOneOf$1 {
|
|
|
132
126
|
}
|
|
133
127
|
declare enum FailureReasonFailureReason$1 {
|
|
134
128
|
UNKNOWN = "UNKNOWN",
|
|
135
|
-
/** The
|
|
129
|
+
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
136
130
|
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
137
|
-
/**
|
|
131
|
+
/** The product instance couldn't be created because an external process failed. */
|
|
138
132
|
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
139
133
|
}
|
|
140
134
|
declare enum IntervalIntervalUnit$1 {
|
|
141
135
|
/** unknown interval unit */
|
|
142
136
|
UNKNOWN = "UNKNOWN",
|
|
143
|
-
/**
|
|
137
|
+
/** Day */
|
|
144
138
|
DAY = "DAY",
|
|
145
|
-
/**
|
|
139
|
+
/** Week */
|
|
146
140
|
WEEK = "WEEK",
|
|
147
|
-
/**
|
|
141
|
+
/** Month */
|
|
148
142
|
MONTH = "MONTH",
|
|
149
|
-
/**
|
|
143
|
+
/** Year */
|
|
150
144
|
YEAR = "YEAR"
|
|
151
145
|
}
|
|
152
146
|
declare enum CycleDescriptorType$1 {
|
|
147
|
+
/** The payment type hasn't been set. */
|
|
153
148
|
UNKNOWN = "UNKNOWN",
|
|
149
|
+
/** The reseller pays Wix in a single payment. */
|
|
154
150
|
ONE_TIME = "ONE_TIME",
|
|
151
|
+
/** The reseller pays Wix on a recurring schedule. */
|
|
155
152
|
RECURRING = "RECURRING"
|
|
156
153
|
}
|
|
157
154
|
interface CycleInterval$1 {
|
|
@@ -161,30 +158,25 @@ interface CycleInterval$1 {
|
|
|
161
158
|
count?: number;
|
|
162
159
|
}
|
|
163
160
|
declare enum Status$1 {
|
|
161
|
+
/** The product instance isn't yet available to the customer. */
|
|
164
162
|
PENDING = "PENDING",
|
|
163
|
+
/** The customer can use the product instance. */
|
|
165
164
|
ENABLED = "ENABLED",
|
|
165
|
+
/** The product instance isn't any longer available to the customer. */
|
|
166
166
|
CANCELED = "CANCELED",
|
|
167
|
+
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
167
168
|
FAILED = "FAILED",
|
|
169
|
+
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
168
170
|
AWAITING_ACTION = "AWAITING_ACTION"
|
|
169
171
|
}
|
|
170
172
|
interface FailureReason$1 {
|
|
171
|
-
/**
|
|
172
|
-
* Failure code.
|
|
173
|
-
*
|
|
174
|
-
* + `DELIVERY_TIMEOUT`: The product instance couldn't be created because the Resellers API timed out.
|
|
175
|
-
* + `EXTERNAL_FAILURE`: The product instance couldn't be created because an external process failed. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
176
|
-
*/
|
|
173
|
+
/** Failure code. */
|
|
177
174
|
code?: FailureReasonFailureReason$1;
|
|
178
175
|
/** Failure message. */
|
|
179
176
|
message?: string;
|
|
180
177
|
}
|
|
181
178
|
interface ProductInstanceCycle$1 {
|
|
182
|
-
/**
|
|
183
|
-
* Payment type.
|
|
184
|
-
* + `UNKNOWN`: The payment type hasn't been set.
|
|
185
|
-
* + `ONE_TIME`: The reseller pays Wix in a single payment.
|
|
186
|
-
* + `RECURRING`: The reseller pays Wix on a recurring schedule.
|
|
187
|
-
*/
|
|
179
|
+
/** Payment type. */
|
|
188
180
|
type?: CycleDescriptorType$1;
|
|
189
181
|
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
190
182
|
cycleDuration?: CycleInterval$1;
|
|
@@ -370,8 +362,7 @@ interface AdjustProductInstanceSpecificationsRequest$1 {
|
|
|
370
362
|
billingInfo?: ProductInstanceCycle$1;
|
|
371
363
|
/**
|
|
372
364
|
* Discount code indicating that the reseller provisioned the product instance
|
|
373
|
-
* during a sale.
|
|
374
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
365
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
375
366
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
376
367
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
377
368
|
* valid. You can't add a discount code after you've created the
|
|
@@ -520,12 +511,6 @@ interface ProductInstance extends ProductInstanceContractDetailsOneOf {
|
|
|
520
511
|
catalogProductId?: string;
|
|
521
512
|
/**
|
|
522
513
|
* Status of the product instance.
|
|
523
|
-
*
|
|
524
|
-
* + `PENDING`: The product instance isn't yet available to the customer.
|
|
525
|
-
* + `ENABLED`: The customer can use the product instance.
|
|
526
|
-
* + `CANCELED`: The product instance isn't any longer available to the customer.
|
|
527
|
-
* + `FAILED`: The product instance couldn't be delivered successfully and has never been available to the customer.
|
|
528
|
-
* + `AWAITING_ACTION`: The product instance isn't yet available to the customer, because an external provider or the customer must take an action.
|
|
529
514
|
* @readonly
|
|
530
515
|
*/
|
|
531
516
|
status?: Status;
|
|
@@ -584,26 +569,29 @@ interface ProductInstanceContractDetailsOneOf {
|
|
|
584
569
|
}
|
|
585
570
|
declare enum FailureReasonFailureReason {
|
|
586
571
|
UNKNOWN = "UNKNOWN",
|
|
587
|
-
/** The
|
|
572
|
+
/** The product instance couldn't be created because the Resellers API timed out. */
|
|
588
573
|
DELIVERY_TIMEOUT = "DELIVERY_TIMEOUT",
|
|
589
|
-
/**
|
|
574
|
+
/** The product instance couldn't be created because an external process failed. */
|
|
590
575
|
EXTERNAL_FAILURE = "EXTERNAL_FAILURE"
|
|
591
576
|
}
|
|
592
577
|
declare enum IntervalIntervalUnit {
|
|
593
578
|
/** unknown interval unit */
|
|
594
579
|
UNKNOWN = "UNKNOWN",
|
|
595
|
-
/**
|
|
580
|
+
/** Day */
|
|
596
581
|
DAY = "DAY",
|
|
597
|
-
/**
|
|
582
|
+
/** Week */
|
|
598
583
|
WEEK = "WEEK",
|
|
599
|
-
/**
|
|
584
|
+
/** Month */
|
|
600
585
|
MONTH = "MONTH",
|
|
601
|
-
/**
|
|
586
|
+
/** Year */
|
|
602
587
|
YEAR = "YEAR"
|
|
603
588
|
}
|
|
604
589
|
declare enum CycleDescriptorType {
|
|
590
|
+
/** The payment type hasn't been set. */
|
|
605
591
|
UNKNOWN = "UNKNOWN",
|
|
592
|
+
/** The reseller pays Wix in a single payment. */
|
|
606
593
|
ONE_TIME = "ONE_TIME",
|
|
594
|
+
/** The reseller pays Wix on a recurring schedule. */
|
|
607
595
|
RECURRING = "RECURRING"
|
|
608
596
|
}
|
|
609
597
|
interface CycleInterval {
|
|
@@ -613,30 +601,25 @@ interface CycleInterval {
|
|
|
613
601
|
count?: number;
|
|
614
602
|
}
|
|
615
603
|
declare enum Status {
|
|
604
|
+
/** The product instance isn't yet available to the customer. */
|
|
616
605
|
PENDING = "PENDING",
|
|
606
|
+
/** The customer can use the product instance. */
|
|
617
607
|
ENABLED = "ENABLED",
|
|
608
|
+
/** The product instance isn't any longer available to the customer. */
|
|
618
609
|
CANCELED = "CANCELED",
|
|
610
|
+
/** The product instance couldn't be delivered successfully and has never been available to the customer. */
|
|
619
611
|
FAILED = "FAILED",
|
|
612
|
+
/** The product instance isn't yet available to the customer, because an external provider or the customer must take an action. */
|
|
620
613
|
AWAITING_ACTION = "AWAITING_ACTION"
|
|
621
614
|
}
|
|
622
615
|
interface FailureReason {
|
|
623
|
-
/**
|
|
624
|
-
* Failure code.
|
|
625
|
-
*
|
|
626
|
-
* + `DELIVERY_TIMEOUT`: The product instance couldn't be created because the Resellers API timed out.
|
|
627
|
-
* + `EXTERNAL_FAILURE`: The product instance couldn't be created because an external process failed. Contact the [Wix B2B sales team](mailto:bizdev@wix.com) for more information.
|
|
628
|
-
*/
|
|
616
|
+
/** Failure code. */
|
|
629
617
|
code?: FailureReasonFailureReason;
|
|
630
618
|
/** Failure message. */
|
|
631
619
|
message?: string;
|
|
632
620
|
}
|
|
633
621
|
interface ProductInstanceCycle {
|
|
634
|
-
/**
|
|
635
|
-
* Payment type.
|
|
636
|
-
* + `UNKNOWN`: The payment type hasn't been set.
|
|
637
|
-
* + `ONE_TIME`: The reseller pays Wix in a single payment.
|
|
638
|
-
* + `RECURRING`: The reseller pays Wix on a recurring schedule.
|
|
639
|
-
*/
|
|
622
|
+
/** Payment type. */
|
|
640
623
|
type?: CycleDescriptorType;
|
|
641
624
|
/** Duration of the billing cycle. Available only for `RECURRING` payments. */
|
|
642
625
|
cycleDuration?: CycleInterval;
|
|
@@ -822,8 +805,7 @@ interface AdjustProductInstanceSpecificationsRequest {
|
|
|
822
805
|
billingInfo?: ProductInstanceCycle;
|
|
823
806
|
/**
|
|
824
807
|
* Discount code indicating that the reseller provisioned the product instance
|
|
825
|
-
* during a sale.
|
|
826
|
-
* In case you pass a code that isn't valid, the call succeeds and
|
|
808
|
+
* during a sale. In case you pass a code that isn't valid, the call succeeds and
|
|
827
809
|
* no discount is applied to the product instance. Wix doesn't guarantee that a
|
|
828
810
|
* discount code reduces the price between Wix and the reseller, even when it's
|
|
829
811
|
* valid. You can't add a discount code after you've created the
|