@epcc-sdk/sdks-shopper 0.6.0 → 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.
@@ -4515,7 +4515,7 @@ type CustomerCheckout = {
4515
4515
  * An optional external ID reference for an order. It can contain alphanumeric characters, special characters, and spaces, and is not required to be unique. The maximum allowed length is 64 characters. It can be used to include an external reference from a separate company system.
4516
4516
  */
4517
4517
  external_ref?: string;
4518
- customer?: {
4518
+ customer: {
4519
4519
  /**
4520
4520
  * The ID of the customer.
4521
4521
  */
@@ -4556,7 +4556,7 @@ type AccountCheckout = {
4556
4556
  */
4557
4557
  member_id?: string;
4558
4558
  };
4559
- contact?: {
4559
+ contact: {
4560
4560
  /**
4561
4561
  * The name of the account member.
4562
4562
  */
@@ -5339,6 +5339,8 @@ type CartsResponse = {
5339
5339
  tax?: FormattedPriceData;
5340
5340
  discount?: FormattedPriceData;
5341
5341
  without_discount?: FormattedPriceData;
5342
+ shipping?: FormattedPriceData;
5343
+ shipping_discount?: FormattedPriceData;
5342
5344
  discounts?: {
5343
5345
  [key: string]: {
5344
5346
  amount?: number;
@@ -5354,12 +5356,33 @@ type CartsResponse = {
5354
5356
  * Cart Items Response
5355
5357
  */
5356
5358
  type CartItemsResponse = {
5357
- data?: Array<CartItemObject | CustomItemObject | SubscriptionItemObject | PromotionItemObject>;
5359
+ data?: Array<CartItemObject | CustomItemCartObject | SubscriptionItemCartObject | PromotionItemCartObject>;
5358
5360
  };
5359
5361
  /**
5360
5362
  * Cart Item Object
5361
5363
  */
5362
5364
  type CartItemObject = CartItemObjectData & CartItemResponse;
5365
+ /**
5366
+ * Custom Item Cart Object
5367
+ */
5368
+ type CustomItemCartObject = CartItemResponse & {
5369
+ type: "custom_item";
5370
+ quantity: number;
5371
+ };
5372
+ /**
5373
+ * Subscription Item Cart Object
5374
+ */
5375
+ type SubscriptionItemCartObject = CartItemResponse & {
5376
+ type: "subscription_item";
5377
+ quantity: number;
5378
+ };
5379
+ /**
5380
+ * Promotion Item Cart Object
5381
+ */
5382
+ type PromotionItemCartObject = CartItemResponse & {
5383
+ type: "promotion_item";
5384
+ quantity: number;
5385
+ };
5363
5386
  /**
5364
5387
  * Data.StripeConnectPayment
5365
5388
  */
@@ -5409,28 +5432,6 @@ type CartIncludedPromotion = {
5409
5432
  */
5410
5433
  end: string;
5411
5434
  };
5412
- /**
5413
- * Subscription Item Cart Object
5414
- */
5415
- type SubscriptionItemCartObject = SubscriptionItemObjectData & CartItemResponse;
5416
- /**
5417
- * Promotion Item Cart Object
5418
- */
5419
- type PromotionItemCartObject = PromotionItemObjectData & CartItemResponse & {
5420
- /**
5421
- * The unique identifier of the promotion item.
5422
- */
5423
- id?: string;
5424
- };
5425
- /**
5426
- * Custom Item Cart Object
5427
- */
5428
- type CustomItemCartObject = CustomItemObjectData & CartItemResponse & {
5429
- /**
5430
- * The unique identifier of the custom item.
5431
- */
5432
- id?: string;
5433
- };
5434
5435
  /**
5435
5436
  * Included is an array of resources that are included in the response.
5436
5437
  */
@@ -5996,6 +5997,10 @@ type ProrationPolicyAttributes = {
5996
5997
  */
5997
5998
  rounding: "up" | "down" | "nearest";
5998
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;
5999
6004
  };
6000
6005
  type ProrationPolicyUpdateAttributes = {
6001
6006
  external_ref?: ExternalRefUpdate;
@@ -6007,6 +6012,10 @@ type ProrationPolicyUpdateAttributes = {
6007
6012
  * Whether to round up or down
6008
6013
  */
6009
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;
6010
6019
  };
6011
6020
  type ProrationPolicyMeta = {
6012
6021
  owner: OwnerMeta;
@@ -6050,11 +6059,11 @@ type PricingOptionAttributes = {
6050
6059
  */
6051
6060
  end_behavior: "close" | "roll";
6052
6061
  /**
6053
- * Reserved for a future release. Intended to control whether a subscriber can pause a subscription, but currently has no effect — subscription pausing is only available to merchandizers, regardless of this value.
6062
+ * The subscriber can pause a subscription.
6054
6063
  */
6055
6064
  can_pause: boolean;
6056
6065
  /**
6057
- * Reserved for a future release. Intended to control whether a subscriber can resume a paused subscription, but currently has no effect — subscription resuming is only available to merchandizers, regardless of this value.
6066
+ * The subscriber can resume a paused subscription.
6058
6067
  */
6059
6068
  can_resume: boolean;
6060
6069
  /**
@@ -6097,11 +6106,11 @@ type PricingOptionUpdateAttributes = {
6097
6106
  */
6098
6107
  end_behavior?: "close" | "roll";
6099
6108
  /**
6100
- * Reserved for a future release. Intended to control whether a subscriber can pause a subscription, but currently has no effect — subscription pausing is only available to merchandizers, regardless of this value.
6109
+ * The subscriber can pause a subscription.
6101
6110
  */
6102
6111
  can_pause?: boolean;
6103
6112
  /**
6104
- * Reserved for a future release. Intended to control whether a subscriber can resume a paused subscription, but currently has no effect — subscription resuming is only available to merchandizers, regardless of this value.
6113
+ * The subscriber can resume a paused subscription.
6105
6114
  */
6106
6115
  can_resume?: boolean;
6107
6116
  /**
@@ -6447,6 +6456,18 @@ type SubscriptionMeta = {
6447
6456
  * A history of price updates that have been applied to this subscription.
6448
6457
  */
6449
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";
6450
6471
  };
6451
6472
  type SubscriptionTimestamps = SubscriptionsTimestamps & {
6452
6473
  /**
@@ -6562,12 +6583,28 @@ type ProrationPreviewAttributes = {
6562
6583
  * Whether submitting this prospective change would actually result in a proration.
6563
6584
  */
6564
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;
6565
6599
  /**
6566
6600
  * Why a previewed change would not result in a proration if actually submitted. Returned alongside
6567
- * `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.
6568
6605
  *
6569
6606
  */
6570
- rejection_reason: "negative_amount" | "no_change";
6607
+ rejection_reason: "negative_amount" | "no_change" | "refund_not_possible" | "refund_disallowed_by_policy";
6571
6608
  /**
6572
6609
  * The value as a whole number of the currency's smallest subdivision.
6573
6610
  */
@@ -11422,6 +11459,8 @@ type CartsResponseWritable = {
11422
11459
  tax?: FormattedPriceData;
11423
11460
  discount?: FormattedPriceData;
11424
11461
  without_discount?: FormattedPriceData;
11462
+ shipping?: FormattedPriceData;
11463
+ shipping_discount?: FormattedPriceData;
11425
11464
  discounts?: {
11426
11465
  [key: string]: {
11427
11466
  amount?: number;
@@ -11437,33 +11476,32 @@ type CartsResponseWritable = {
11437
11476
  * Cart Items Response
11438
11477
  */
11439
11478
  type CartItemsResponseWritable = {
11440
- data?: Array<CartItemObjectWritable | CustomItemObject | SubscriptionItemObjectWritable | PromotionItemObject>;
11479
+ data?: Array<CartItemObjectWritable | CustomItemCartObjectWritable | SubscriptionItemCartObjectWritable | PromotionItemCartObjectWritable>;
11441
11480
  };
11442
11481
  /**
11443
11482
  * Cart Item Object
11444
11483
  */
11445
11484
  type CartItemObjectWritable = CartItemObjectData & CartItemResponseWritable;
11446
11485
  /**
11447
- * Subscription Item Cart Object
11486
+ * Custom Item Cart Object
11448
11487
  */
11449
- type SubscriptionItemCartObjectWritable = SubscriptionItemObjectData & CartItemResponseWritable;
11488
+ type CustomItemCartObjectWritable = CartItemResponseWritable & {
11489
+ type: "custom_item";
11490
+ quantity: number;
11491
+ };
11450
11492
  /**
11451
- * Promotion Item Cart Object
11493
+ * Subscription Item Cart Object
11452
11494
  */
11453
- type PromotionItemCartObjectWritable = PromotionItemObjectData & CartItemResponseWritable & {
11454
- /**
11455
- * The unique identifier of the promotion item.
11456
- */
11457
- id?: string;
11495
+ type SubscriptionItemCartObjectWritable = CartItemResponseWritable & {
11496
+ type: "subscription_item";
11497
+ quantity: number;
11458
11498
  };
11459
11499
  /**
11460
- * Custom Item Cart Object
11500
+ * Promotion Item Cart Object
11461
11501
  */
11462
- type CustomItemCartObjectWritable = CustomItemObjectData & CartItemResponseWritable & {
11463
- /**
11464
- * The unique identifier of the custom item.
11465
- */
11466
- id?: string;
11502
+ type PromotionItemCartObjectWritable = CartItemResponseWritable & {
11503
+ type: "promotion_item";
11504
+ quantity: number;
11467
11505
  };
11468
11506
  /**
11469
11507
  * Included is an array of resources that are included in the response.
@@ -11700,6 +11738,18 @@ type SubscriptionMetaWritable = {
11700
11738
  * A history of price updates that have been applied to this subscription.
11701
11739
  */
11702
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";
11703
11753
  };
11704
11754
  type SubscriptionAttributesWritable = {
11705
11755
  external_ref?: ExternalRef;
@@ -4515,7 +4515,7 @@ type CustomerCheckout = {
4515
4515
  * An optional external ID reference for an order. It can contain alphanumeric characters, special characters, and spaces, and is not required to be unique. The maximum allowed length is 64 characters. It can be used to include an external reference from a separate company system.
4516
4516
  */
4517
4517
  external_ref?: string;
4518
- customer?: {
4518
+ customer: {
4519
4519
  /**
4520
4520
  * The ID of the customer.
4521
4521
  */
@@ -4556,7 +4556,7 @@ type AccountCheckout = {
4556
4556
  */
4557
4557
  member_id?: string;
4558
4558
  };
4559
- contact?: {
4559
+ contact: {
4560
4560
  /**
4561
4561
  * The name of the account member.
4562
4562
  */
@@ -5339,6 +5339,8 @@ type CartsResponse = {
5339
5339
  tax?: FormattedPriceData;
5340
5340
  discount?: FormattedPriceData;
5341
5341
  without_discount?: FormattedPriceData;
5342
+ shipping?: FormattedPriceData;
5343
+ shipping_discount?: FormattedPriceData;
5342
5344
  discounts?: {
5343
5345
  [key: string]: {
5344
5346
  amount?: number;
@@ -5354,12 +5356,33 @@ type CartsResponse = {
5354
5356
  * Cart Items Response
5355
5357
  */
5356
5358
  type CartItemsResponse = {
5357
- data?: Array<CartItemObject | CustomItemObject | SubscriptionItemObject | PromotionItemObject>;
5359
+ data?: Array<CartItemObject | CustomItemCartObject | SubscriptionItemCartObject | PromotionItemCartObject>;
5358
5360
  };
5359
5361
  /**
5360
5362
  * Cart Item Object
5361
5363
  */
5362
5364
  type CartItemObject = CartItemObjectData & CartItemResponse;
5365
+ /**
5366
+ * Custom Item Cart Object
5367
+ */
5368
+ type CustomItemCartObject = CartItemResponse & {
5369
+ type: "custom_item";
5370
+ quantity: number;
5371
+ };
5372
+ /**
5373
+ * Subscription Item Cart Object
5374
+ */
5375
+ type SubscriptionItemCartObject = CartItemResponse & {
5376
+ type: "subscription_item";
5377
+ quantity: number;
5378
+ };
5379
+ /**
5380
+ * Promotion Item Cart Object
5381
+ */
5382
+ type PromotionItemCartObject = CartItemResponse & {
5383
+ type: "promotion_item";
5384
+ quantity: number;
5385
+ };
5363
5386
  /**
5364
5387
  * Data.StripeConnectPayment
5365
5388
  */
@@ -5409,28 +5432,6 @@ type CartIncludedPromotion = {
5409
5432
  */
5410
5433
  end: string;
5411
5434
  };
5412
- /**
5413
- * Subscription Item Cart Object
5414
- */
5415
- type SubscriptionItemCartObject = SubscriptionItemObjectData & CartItemResponse;
5416
- /**
5417
- * Promotion Item Cart Object
5418
- */
5419
- type PromotionItemCartObject = PromotionItemObjectData & CartItemResponse & {
5420
- /**
5421
- * The unique identifier of the promotion item.
5422
- */
5423
- id?: string;
5424
- };
5425
- /**
5426
- * Custom Item Cart Object
5427
- */
5428
- type CustomItemCartObject = CustomItemObjectData & CartItemResponse & {
5429
- /**
5430
- * The unique identifier of the custom item.
5431
- */
5432
- id?: string;
5433
- };
5434
5435
  /**
5435
5436
  * Included is an array of resources that are included in the response.
5436
5437
  */
@@ -5996,6 +5997,10 @@ type ProrationPolicyAttributes = {
5996
5997
  */
5997
5998
  rounding: "up" | "down" | "nearest";
5998
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;
5999
6004
  };
6000
6005
  type ProrationPolicyUpdateAttributes = {
6001
6006
  external_ref?: ExternalRefUpdate;
@@ -6007,6 +6012,10 @@ type ProrationPolicyUpdateAttributes = {
6007
6012
  * Whether to round up or down
6008
6013
  */
6009
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;
6010
6019
  };
6011
6020
  type ProrationPolicyMeta = {
6012
6021
  owner: OwnerMeta;
@@ -6050,11 +6059,11 @@ type PricingOptionAttributes = {
6050
6059
  */
6051
6060
  end_behavior: "close" | "roll";
6052
6061
  /**
6053
- * Reserved for a future release. Intended to control whether a subscriber can pause a subscription, but currently has no effect — subscription pausing is only available to merchandizers, regardless of this value.
6062
+ * The subscriber can pause a subscription.
6054
6063
  */
6055
6064
  can_pause: boolean;
6056
6065
  /**
6057
- * Reserved for a future release. Intended to control whether a subscriber can resume a paused subscription, but currently has no effect — subscription resuming is only available to merchandizers, regardless of this value.
6066
+ * The subscriber can resume a paused subscription.
6058
6067
  */
6059
6068
  can_resume: boolean;
6060
6069
  /**
@@ -6097,11 +6106,11 @@ type PricingOptionUpdateAttributes = {
6097
6106
  */
6098
6107
  end_behavior?: "close" | "roll";
6099
6108
  /**
6100
- * Reserved for a future release. Intended to control whether a subscriber can pause a subscription, but currently has no effect — subscription pausing is only available to merchandizers, regardless of this value.
6109
+ * The subscriber can pause a subscription.
6101
6110
  */
6102
6111
  can_pause?: boolean;
6103
6112
  /**
6104
- * Reserved for a future release. Intended to control whether a subscriber can resume a paused subscription, but currently has no effect — subscription resuming is only available to merchandizers, regardless of this value.
6113
+ * The subscriber can resume a paused subscription.
6105
6114
  */
6106
6115
  can_resume?: boolean;
6107
6116
  /**
@@ -6447,6 +6456,18 @@ type SubscriptionMeta = {
6447
6456
  * A history of price updates that have been applied to this subscription.
6448
6457
  */
6449
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";
6450
6471
  };
6451
6472
  type SubscriptionTimestamps = SubscriptionsTimestamps & {
6452
6473
  /**
@@ -6562,12 +6583,28 @@ type ProrationPreviewAttributes = {
6562
6583
  * Whether submitting this prospective change would actually result in a proration.
6563
6584
  */
6564
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;
6565
6599
  /**
6566
6600
  * Why a previewed change would not result in a proration if actually submitted. Returned alongside
6567
- * `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.
6568
6605
  *
6569
6606
  */
6570
- rejection_reason: "negative_amount" | "no_change";
6607
+ rejection_reason: "negative_amount" | "no_change" | "refund_not_possible" | "refund_disallowed_by_policy";
6571
6608
  /**
6572
6609
  * The value as a whole number of the currency's smallest subdivision.
6573
6610
  */
@@ -11422,6 +11459,8 @@ type CartsResponseWritable = {
11422
11459
  tax?: FormattedPriceData;
11423
11460
  discount?: FormattedPriceData;
11424
11461
  without_discount?: FormattedPriceData;
11462
+ shipping?: FormattedPriceData;
11463
+ shipping_discount?: FormattedPriceData;
11425
11464
  discounts?: {
11426
11465
  [key: string]: {
11427
11466
  amount?: number;
@@ -11437,33 +11476,32 @@ type CartsResponseWritable = {
11437
11476
  * Cart Items Response
11438
11477
  */
11439
11478
  type CartItemsResponseWritable = {
11440
- data?: Array<CartItemObjectWritable | CustomItemObject | SubscriptionItemObjectWritable | PromotionItemObject>;
11479
+ data?: Array<CartItemObjectWritable | CustomItemCartObjectWritable | SubscriptionItemCartObjectWritable | PromotionItemCartObjectWritable>;
11441
11480
  };
11442
11481
  /**
11443
11482
  * Cart Item Object
11444
11483
  */
11445
11484
  type CartItemObjectWritable = CartItemObjectData & CartItemResponseWritable;
11446
11485
  /**
11447
- * Subscription Item Cart Object
11486
+ * Custom Item Cart Object
11448
11487
  */
11449
- type SubscriptionItemCartObjectWritable = SubscriptionItemObjectData & CartItemResponseWritable;
11488
+ type CustomItemCartObjectWritable = CartItemResponseWritable & {
11489
+ type: "custom_item";
11490
+ quantity: number;
11491
+ };
11450
11492
  /**
11451
- * Promotion Item Cart Object
11493
+ * Subscription Item Cart Object
11452
11494
  */
11453
- type PromotionItemCartObjectWritable = PromotionItemObjectData & CartItemResponseWritable & {
11454
- /**
11455
- * The unique identifier of the promotion item.
11456
- */
11457
- id?: string;
11495
+ type SubscriptionItemCartObjectWritable = CartItemResponseWritable & {
11496
+ type: "subscription_item";
11497
+ quantity: number;
11458
11498
  };
11459
11499
  /**
11460
- * Custom Item Cart Object
11500
+ * Promotion Item Cart Object
11461
11501
  */
11462
- type CustomItemCartObjectWritable = CustomItemObjectData & CartItemResponseWritable & {
11463
- /**
11464
- * The unique identifier of the custom item.
11465
- */
11466
- id?: string;
11502
+ type PromotionItemCartObjectWritable = CartItemResponseWritable & {
11503
+ type: "promotion_item";
11504
+ quantity: number;
11467
11505
  };
11468
11506
  /**
11469
11507
  * Included is an array of resources that are included in the response.
@@ -11700,6 +11738,18 @@ type SubscriptionMetaWritable = {
11700
11738
  * A history of price updates that have been applied to this subscription.
11701
11739
  */
11702
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";
11703
11753
  };
11704
11754
  type SubscriptionAttributesWritable = {
11705
11755
  external_ref?: ExternalRef;