@epcc-sdk/sdks-shopper 0.6.1 → 0.7.0
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 +3 -2
- package/dist/client/types.gen.cjs.map +1 -1
- package/dist/client/types.gen.d.cts +54 -6
- package/dist/client/types.gen.d.ts +54 -6
- package/dist/client/zod.gen.cjs +537 -360
- package/dist/client/zod.gen.cjs.map +1 -1
- package/dist/client/zod.gen.d.cts +6158 -5993
- package/dist/client/zod.gen.d.ts +6158 -5993
- package/dist/client/zod.gen.mjs +537 -360
- package/dist/client/zod.gen.mjs.map +1 -1
- package/package.json +1 -1
|
@@ -5997,6 +5997,10 @@ type ProrationPolicyAttributes = {
|
|
|
5997
5997
|
*/
|
|
5998
5998
|
rounding: "up" | "down" | "nearest";
|
|
5999
5999
|
external_ref?: ExternalRef;
|
|
6000
|
+
/**
|
|
6001
|
+
* Set to `true` to allow an automatic gateway refund when a proration would otherwise be rejected for netting negative.
|
|
6002
|
+
*/
|
|
6003
|
+
allow_negative_proration_refund?: boolean;
|
|
6000
6004
|
};
|
|
6001
6005
|
type ProrationPolicyUpdateAttributes = {
|
|
6002
6006
|
external_ref?: ExternalRefUpdate;
|
|
@@ -6008,6 +6012,10 @@ type ProrationPolicyUpdateAttributes = {
|
|
|
6008
6012
|
* Whether to round up or down
|
|
6009
6013
|
*/
|
|
6010
6014
|
rounding?: "up" | "down" | "nearest";
|
|
6015
|
+
/**
|
|
6016
|
+
* Set to `true` to allow an automatic gateway refund when a proration would otherwise be rejected for netting negative.
|
|
6017
|
+
*/
|
|
6018
|
+
allow_negative_proration_refund?: boolean;
|
|
6011
6019
|
};
|
|
6012
6020
|
type ProrationPolicyMeta = {
|
|
6013
6021
|
owner: OwnerMeta;
|
|
@@ -6051,11 +6059,11 @@ type PricingOptionAttributes = {
|
|
|
6051
6059
|
*/
|
|
6052
6060
|
end_behavior: "close" | "roll";
|
|
6053
6061
|
/**
|
|
6054
|
-
*
|
|
6062
|
+
* The subscriber can pause a subscription.
|
|
6055
6063
|
*/
|
|
6056
6064
|
can_pause: boolean;
|
|
6057
6065
|
/**
|
|
6058
|
-
*
|
|
6066
|
+
* The subscriber can resume a paused subscription.
|
|
6059
6067
|
*/
|
|
6060
6068
|
can_resume: boolean;
|
|
6061
6069
|
/**
|
|
@@ -6098,11 +6106,11 @@ type PricingOptionUpdateAttributes = {
|
|
|
6098
6106
|
*/
|
|
6099
6107
|
end_behavior?: "close" | "roll";
|
|
6100
6108
|
/**
|
|
6101
|
-
*
|
|
6109
|
+
* The subscriber can pause a subscription.
|
|
6102
6110
|
*/
|
|
6103
6111
|
can_pause?: boolean;
|
|
6104
6112
|
/**
|
|
6105
|
-
*
|
|
6113
|
+
* The subscriber can resume a paused subscription.
|
|
6106
6114
|
*/
|
|
6107
6115
|
can_resume?: boolean;
|
|
6108
6116
|
/**
|
|
@@ -6448,6 +6456,18 @@ type SubscriptionMeta = {
|
|
|
6448
6456
|
* A history of price updates that have been applied to this subscription.
|
|
6449
6457
|
*/
|
|
6450
6458
|
price_update_history?: Array<SubscriptionPriceUpdateHistoryEntry>;
|
|
6459
|
+
/**
|
|
6460
|
+
* The ID of the most recent Proration Refund issued for this subscription, if any.
|
|
6461
|
+
*/
|
|
6462
|
+
last_refund_id?: string;
|
|
6463
|
+
/**
|
|
6464
|
+
* The amount of the most recent Proration Refund issued for this subscription, if any.
|
|
6465
|
+
*/
|
|
6466
|
+
last_refund_amount?: number;
|
|
6467
|
+
/**
|
|
6468
|
+
* Who or what most recently paused this subscription, while it remains paused. Absent when the subscription has never been paused, or is not currently paused (cleared on resume). Only visible to merchandizer/store or organization-scoped callers.
|
|
6469
|
+
*/
|
|
6470
|
+
paused_by?: "subscriber" | "merchandizer" | "dunning";
|
|
6451
6471
|
};
|
|
6452
6472
|
type SubscriptionTimestamps = SubscriptionsTimestamps & {
|
|
6453
6473
|
/**
|
|
@@ -6563,12 +6583,28 @@ type ProrationPreviewAttributes = {
|
|
|
6563
6583
|
* Whether submitting this prospective change would actually result in a proration.
|
|
6564
6584
|
*/
|
|
6565
6585
|
would_prorate: boolean;
|
|
6586
|
+
/**
|
|
6587
|
+
* Whether this change would result in a Proration Refund - a real refund issued against the
|
|
6588
|
+
* subscription's previous invoice payment because the unused-time credit exceeds the new pricing
|
|
6589
|
+
* option's cost. Set alongside `would_prorate: true` for this case; omitted otherwise.
|
|
6590
|
+
*
|
|
6591
|
+
*/
|
|
6592
|
+
would_refund?: boolean | null;
|
|
6593
|
+
/**
|
|
6594
|
+
* The amount that would be refunded as a Proration Refund, as a whole number of the currency's
|
|
6595
|
+
* smallest subdivision. Set only when `would_refund` is `true`.
|
|
6596
|
+
*
|
|
6597
|
+
*/
|
|
6598
|
+
refund_amount?: number | null;
|
|
6566
6599
|
/**
|
|
6567
6600
|
* Why a previewed change would not result in a proration if actually submitted. Returned alongside
|
|
6568
|
-
* `would_prorate: false`; this is not an error response.
|
|
6601
|
+
* `would_prorate: false`; this is not an error response. `negative_amount` is retained for backward
|
|
6602
|
+
* compatibility but is no longer returned - a negative-net change now either proceeds with a
|
|
6603
|
+
* Proration Refund (`would_refund: true`), is rejected as `refund_not_possible`, or is rejected as
|
|
6604
|
+
* `refund_disallowed_by_policy` when the applicable proration policy does not allow refunds.
|
|
6569
6605
|
*
|
|
6570
6606
|
*/
|
|
6571
|
-
rejection_reason: "negative_amount" | "no_change";
|
|
6607
|
+
rejection_reason: "negative_amount" | "no_change" | "refund_not_possible" | "refund_disallowed_by_policy";
|
|
6572
6608
|
/**
|
|
6573
6609
|
* The value as a whole number of the currency's smallest subdivision.
|
|
6574
6610
|
*/
|
|
@@ -11702,6 +11738,18 @@ type SubscriptionMetaWritable = {
|
|
|
11702
11738
|
* A history of price updates that have been applied to this subscription.
|
|
11703
11739
|
*/
|
|
11704
11740
|
price_update_history?: Array<SubscriptionPriceUpdateHistoryEntry>;
|
|
11741
|
+
/**
|
|
11742
|
+
* The ID of the most recent Proration Refund issued for this subscription, if any.
|
|
11743
|
+
*/
|
|
11744
|
+
last_refund_id?: string;
|
|
11745
|
+
/**
|
|
11746
|
+
* The amount of the most recent Proration Refund issued for this subscription, if any.
|
|
11747
|
+
*/
|
|
11748
|
+
last_refund_amount?: number;
|
|
11749
|
+
/**
|
|
11750
|
+
* Who or what most recently paused this subscription, while it remains paused. Absent when the subscription has never been paused, or is not currently paused (cleared on resume). Only visible to merchandizer/store or organization-scoped callers.
|
|
11751
|
+
*/
|
|
11752
|
+
paused_by?: "subscriber" | "merchandizer" | "dunning";
|
|
11705
11753
|
};
|
|
11706
11754
|
type SubscriptionAttributesWritable = {
|
|
11707
11755
|
external_ref?: ExternalRef;
|
|
@@ -5997,6 +5997,10 @@ type ProrationPolicyAttributes = {
|
|
|
5997
5997
|
*/
|
|
5998
5998
|
rounding: "up" | "down" | "nearest";
|
|
5999
5999
|
external_ref?: ExternalRef;
|
|
6000
|
+
/**
|
|
6001
|
+
* Set to `true` to allow an automatic gateway refund when a proration would otherwise be rejected for netting negative.
|
|
6002
|
+
*/
|
|
6003
|
+
allow_negative_proration_refund?: boolean;
|
|
6000
6004
|
};
|
|
6001
6005
|
type ProrationPolicyUpdateAttributes = {
|
|
6002
6006
|
external_ref?: ExternalRefUpdate;
|
|
@@ -6008,6 +6012,10 @@ type ProrationPolicyUpdateAttributes = {
|
|
|
6008
6012
|
* Whether to round up or down
|
|
6009
6013
|
*/
|
|
6010
6014
|
rounding?: "up" | "down" | "nearest";
|
|
6015
|
+
/**
|
|
6016
|
+
* Set to `true` to allow an automatic gateway refund when a proration would otherwise be rejected for netting negative.
|
|
6017
|
+
*/
|
|
6018
|
+
allow_negative_proration_refund?: boolean;
|
|
6011
6019
|
};
|
|
6012
6020
|
type ProrationPolicyMeta = {
|
|
6013
6021
|
owner: OwnerMeta;
|
|
@@ -6051,11 +6059,11 @@ type PricingOptionAttributes = {
|
|
|
6051
6059
|
*/
|
|
6052
6060
|
end_behavior: "close" | "roll";
|
|
6053
6061
|
/**
|
|
6054
|
-
*
|
|
6062
|
+
* The subscriber can pause a subscription.
|
|
6055
6063
|
*/
|
|
6056
6064
|
can_pause: boolean;
|
|
6057
6065
|
/**
|
|
6058
|
-
*
|
|
6066
|
+
* The subscriber can resume a paused subscription.
|
|
6059
6067
|
*/
|
|
6060
6068
|
can_resume: boolean;
|
|
6061
6069
|
/**
|
|
@@ -6098,11 +6106,11 @@ type PricingOptionUpdateAttributes = {
|
|
|
6098
6106
|
*/
|
|
6099
6107
|
end_behavior?: "close" | "roll";
|
|
6100
6108
|
/**
|
|
6101
|
-
*
|
|
6109
|
+
* The subscriber can pause a subscription.
|
|
6102
6110
|
*/
|
|
6103
6111
|
can_pause?: boolean;
|
|
6104
6112
|
/**
|
|
6105
|
-
*
|
|
6113
|
+
* The subscriber can resume a paused subscription.
|
|
6106
6114
|
*/
|
|
6107
6115
|
can_resume?: boolean;
|
|
6108
6116
|
/**
|
|
@@ -6448,6 +6456,18 @@ type SubscriptionMeta = {
|
|
|
6448
6456
|
* A history of price updates that have been applied to this subscription.
|
|
6449
6457
|
*/
|
|
6450
6458
|
price_update_history?: Array<SubscriptionPriceUpdateHistoryEntry>;
|
|
6459
|
+
/**
|
|
6460
|
+
* The ID of the most recent Proration Refund issued for this subscription, if any.
|
|
6461
|
+
*/
|
|
6462
|
+
last_refund_id?: string;
|
|
6463
|
+
/**
|
|
6464
|
+
* The amount of the most recent Proration Refund issued for this subscription, if any.
|
|
6465
|
+
*/
|
|
6466
|
+
last_refund_amount?: number;
|
|
6467
|
+
/**
|
|
6468
|
+
* Who or what most recently paused this subscription, while it remains paused. Absent when the subscription has never been paused, or is not currently paused (cleared on resume). Only visible to merchandizer/store or organization-scoped callers.
|
|
6469
|
+
*/
|
|
6470
|
+
paused_by?: "subscriber" | "merchandizer" | "dunning";
|
|
6451
6471
|
};
|
|
6452
6472
|
type SubscriptionTimestamps = SubscriptionsTimestamps & {
|
|
6453
6473
|
/**
|
|
@@ -6563,12 +6583,28 @@ type ProrationPreviewAttributes = {
|
|
|
6563
6583
|
* Whether submitting this prospective change would actually result in a proration.
|
|
6564
6584
|
*/
|
|
6565
6585
|
would_prorate: boolean;
|
|
6586
|
+
/**
|
|
6587
|
+
* Whether this change would result in a Proration Refund - a real refund issued against the
|
|
6588
|
+
* subscription's previous invoice payment because the unused-time credit exceeds the new pricing
|
|
6589
|
+
* option's cost. Set alongside `would_prorate: true` for this case; omitted otherwise.
|
|
6590
|
+
*
|
|
6591
|
+
*/
|
|
6592
|
+
would_refund?: boolean | null;
|
|
6593
|
+
/**
|
|
6594
|
+
* The amount that would be refunded as a Proration Refund, as a whole number of the currency's
|
|
6595
|
+
* smallest subdivision. Set only when `would_refund` is `true`.
|
|
6596
|
+
*
|
|
6597
|
+
*/
|
|
6598
|
+
refund_amount?: number | null;
|
|
6566
6599
|
/**
|
|
6567
6600
|
* Why a previewed change would not result in a proration if actually submitted. Returned alongside
|
|
6568
|
-
* `would_prorate: false`; this is not an error response.
|
|
6601
|
+
* `would_prorate: false`; this is not an error response. `negative_amount` is retained for backward
|
|
6602
|
+
* compatibility but is no longer returned - a negative-net change now either proceeds with a
|
|
6603
|
+
* Proration Refund (`would_refund: true`), is rejected as `refund_not_possible`, or is rejected as
|
|
6604
|
+
* `refund_disallowed_by_policy` when the applicable proration policy does not allow refunds.
|
|
6569
6605
|
*
|
|
6570
6606
|
*/
|
|
6571
|
-
rejection_reason: "negative_amount" | "no_change";
|
|
6607
|
+
rejection_reason: "negative_amount" | "no_change" | "refund_not_possible" | "refund_disallowed_by_policy";
|
|
6572
6608
|
/**
|
|
6573
6609
|
* The value as a whole number of the currency's smallest subdivision.
|
|
6574
6610
|
*/
|
|
@@ -11702,6 +11738,18 @@ type SubscriptionMetaWritable = {
|
|
|
11702
11738
|
* A history of price updates that have been applied to this subscription.
|
|
11703
11739
|
*/
|
|
11704
11740
|
price_update_history?: Array<SubscriptionPriceUpdateHistoryEntry>;
|
|
11741
|
+
/**
|
|
11742
|
+
* The ID of the most recent Proration Refund issued for this subscription, if any.
|
|
11743
|
+
*/
|
|
11744
|
+
last_refund_id?: string;
|
|
11745
|
+
/**
|
|
11746
|
+
* The amount of the most recent Proration Refund issued for this subscription, if any.
|
|
11747
|
+
*/
|
|
11748
|
+
last_refund_amount?: number;
|
|
11749
|
+
/**
|
|
11750
|
+
* Who or what most recently paused this subscription, while it remains paused. Absent when the subscription has never been paused, or is not currently paused (cleared on resume). Only visible to merchandizer/store or organization-scoped callers.
|
|
11751
|
+
*/
|
|
11752
|
+
paused_by?: "subscriber" | "merchandizer" | "dunning";
|
|
11705
11753
|
};
|
|
11706
11754
|
type SubscriptionAttributesWritable = {
|
|
11707
11755
|
external_ref?: ExternalRef;
|