@getlatedev/node 0.2.1428 → 0.2.1430

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.
@@ -15817,15 +15817,23 @@ export type TreasuryTopup = {
15817
15817
  */
15818
15818
  feeCoveredByZernio?: boolean;
15819
15819
  /**
15820
- * Gross amount charged
15820
+ * The amount you asked for. A top-up charges the card fee on top of it and credits what Stripe delivers, at least this amount. Older top-ups charged this amount and credited it minus the fee.
15821
15821
  */
15822
15822
  amountCents?: number;
15823
15823
  /**
15824
- * Stripe processing fee you paid; null until Stripe reports it, 0 when Zernio covers it
15824
+ * Card fee. Once paid, the fee Stripe took (chargedCents minus netCents). Before, the fee charged on top, or null on an older top-up. 0 when Zernio covers it (`payout_batch`).
15825
+ */
15826
+ feeCents?: (number) | null;
15827
+ /**
15828
+ * What your card was charged: amountCents plus the card fee charged on top, or amountCents on an older top-up and on a `payout_batch` payment.
15829
+ */
15830
+ chargedCents?: number;
15831
+ /**
15832
+ * feeCents once the top-up is paid; null before. Kept for older clients: read feeCents.
15825
15833
  */
15826
15834
  stripeFeeCents?: (number) | null;
15827
15835
  /**
15828
- * Amount credited to your balance: gross minus the Stripe fee, or the whole charge when Zernio covers the fee; null until Stripe reports it
15836
+ * Amount credited to your balance, what Stripe delivered; null until paid. At least amountCents on a top-up that charged the fee on top, and amountCents on `payout_batch` payments.
15829
15837
  */
15830
15838
  netCents?: (number) | null;
15831
15839
  /**
@@ -23631,7 +23639,7 @@ export type GetBalanceError = ({
23631
23639
  export type CreateTopupData = {
23632
23640
  body: {
23633
23641
  /**
23634
- * Amount in cents, minimum $10
23642
+ * Amount to credit to your balance, in cents: $10 to $100,000. The card fee is charged on top.
23635
23643
  */
23636
23644
  amountCents: number;
23637
23645
  /**
@@ -23660,6 +23668,22 @@ export type CreateTopupData = {
23660
23668
 
23661
23669
  export type CreateTopupResponse = ({
23662
23670
  topupId: string;
23671
+ /**
23672
+ * Credited to your balance once paid: exactly this when feeIsExact, else at least this.
23673
+ */
23674
+ amountCents: number;
23675
+ /**
23676
+ * Card fee, charged on top of amountCents.
23677
+ */
23678
+ feeCents: number;
23679
+ /**
23680
+ * What the card is charged: amountCents plus feeCents.
23681
+ */
23682
+ chargedCents: number;
23683
+ /**
23684
+ * True when feeCents is exactly Stripe's fee for this card. False when it is the region's highest rate, so Stripe may take less and the difference is added to your balance.
23685
+ */
23686
+ feeIsExact: boolean;
23663
23687
  status: 'succeeded' | 'processing' | 'requires_action';
23664
23688
  /**
23665
23689
  * PaymentIntent client secret for Stripe.js handleNextAction; set only when status is requires_action
@@ -23746,6 +23770,34 @@ export type ListTopupsError = (ErrorResponse | {
23746
23770
  required_group?: 'publishing' | 'engagement' | 'messages' | 'contacts' | 'analytics' | 'ads' | 'telephony' | 'accounts' | 'billing' | 'webhooks' | 'commerce' | 'creator_campaigns' | 'money' | 'calendar' | 'files';
23747
23771
  });
23748
23772
 
23773
+ export type GetTopupCardFeeData = {
23774
+ query?: {
23775
+ /**
23776
+ * A saved card of the billing owner's (`pm_...`). Defaults to the default payment method.
23777
+ */
23778
+ paymentMethodId?: string;
23779
+ };
23780
+ };
23781
+
23782
+ export type GetTopupCardFeeResponse = ({
23783
+ /**
23784
+ * Percentage of the charge, in basis points (315 is 3.15%).
23785
+ */
23786
+ feeBps: number;
23787
+ /**
23788
+ * Fixed part of the fee, in cents.
23789
+ */
23790
+ fixedCents: number;
23791
+ /**
23792
+ * True when this is exactly Stripe's rate for the card.
23793
+ */
23794
+ feeIsExact: boolean;
23795
+ });
23796
+
23797
+ export type GetTopupCardFeeError = (ErrorResponse | {
23798
+ error?: string;
23799
+ });
23800
+
23749
23801
  export type GetTopupReceiptData = {
23750
23802
  path: {
23751
23803
  topupId: string;
@@ -23755,6 +23807,18 @@ export type GetTopupReceiptData = {
23755
23807
  export type GetTopupReceiptResponse = ({
23756
23808
  url: string;
23757
23809
  format: 'pdf' | 'page';
23810
+ /**
23811
+ * As in the top-up list.
23812
+ */
23813
+ amountCents: number;
23814
+ /**
23815
+ * Card fee paid, as in the top-up list.
23816
+ */
23817
+ feeCents: (number) | null;
23818
+ /**
23819
+ * What the card was charged, the total on the receipt.
23820
+ */
23821
+ chargedCents: number;
23758
23822
  });
23759
23823
 
23760
23824
  export type GetTopupReceiptError = (ErrorResponse | {
@@ -68364,6 +68428,41 @@ export type RemoveCampaignParticipantResponse = ({
68364
68428
 
68365
68429
  export type RemoveCampaignParticipantError = (ErrorResponse);
68366
68430
 
68431
+ export type MoveCampaignParticipantData = {
68432
+ body: {
68433
+ /**
68434
+ * Campaign to move the participant to. Same owner, not closed.
68435
+ */
68436
+ targetCampaignId: string;
68437
+ };
68438
+ path: {
68439
+ /**
68440
+ * Campaign the participant is in now.
68441
+ */
68442
+ campaignId: string;
68443
+ /**
68444
+ * Participant ID.
68445
+ */
68446
+ participantId: string;
68447
+ };
68448
+ };
68449
+
68450
+ export type MoveCampaignParticipantResponse = ({
68451
+ participant: CampaignParticipant;
68452
+ submissions: {
68453
+ /**
68454
+ * Posts that moved to the target.
68455
+ */
68456
+ moved: number;
68457
+ /**
68458
+ * Undecided posts rejected in this campaign because they did not fit the target.
68459
+ */
68460
+ rejected: number;
68461
+ };
68462
+ });
68463
+
68464
+ export type MoveCampaignParticipantError = (ErrorResponse);
68465
+
68367
68466
  export type ResendCampaignParticipantInviteData = {
68368
68467
  headers?: {
68369
68468
  /**