@delopay/sdk 0.272.0 → 0.274.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/dist/{chunk-42VYNDXJ.js → chunk-R6E57AD4.js} +20 -6
- package/dist/chunk-R6E57AD4.js.map +1 -0
- package/dist/index.cjs +19 -5
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +80 -15
- package/dist/index.d.ts +80 -15
- package/dist/index.js +1 -1
- package/dist/internal.cjs +33 -5
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +48 -1
- package/dist/internal.d.ts +48 -1
- package/dist/internal.js +15 -1
- package/dist/internal.js.map +1 -1
- package/package.json +18 -17
- package/dist/chunk-42VYNDXJ.js.map +0 -1
package/dist/index.d.cts
CHANGED
|
@@ -269,10 +269,12 @@ interface PaymentCreateRequest {
|
|
|
269
269
|
/** URL to leave an unpaid hosted checkout; never falls back to `return_url`. */
|
|
270
270
|
cancel_url?: string | null;
|
|
271
271
|
/**
|
|
272
|
-
* How long the client secret
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
272
|
+
* How long the client secret stays usable, in seconds from creation. Omit to
|
|
273
|
+
* inherit the shop's default (`business_profile.session_expiry`, itself
|
|
274
|
+
* defaulting to 15 minutes). With `payment_link: true` it is also how long
|
|
275
|
+
* the checkout link stays payable; omitted, the link follows the shop's
|
|
276
|
+
* link expiry, else 48 hours. The backend rejects values outside its
|
|
277
|
+
* accepted window with a 400.
|
|
276
278
|
*/
|
|
277
279
|
session_expiry?: number | null;
|
|
278
280
|
/** Descriptor shown on the customer's bank statement (name portion). */
|
|
@@ -11386,6 +11388,16 @@ interface CheckoutMethodItem {
|
|
|
11386
11388
|
* `merchant_connector_id`.
|
|
11387
11389
|
*/
|
|
11388
11390
|
smart_routing?: boolean | null;
|
|
11391
|
+
/**
|
|
11392
|
+
* e-Payouts' Pay with card (`ppal:paypal_direct_form`) only: hold it back as
|
|
11393
|
+
* a fallback for the shop's other card forms. Absent or `true`: the checkout
|
|
11394
|
+
* draws it only while no other card form is drawn for the payment (no other
|
|
11395
|
+
* card account, every one past its cap or drawn away by the split, or the
|
|
11396
|
+
* card form could not be prepared at its processor). `false`: it is drawn
|
|
11397
|
+
* beside another card form too. Only on an item whose available entry
|
|
11398
|
+
* `supports_card_fallback`.
|
|
11399
|
+
*/
|
|
11400
|
+
card_fallback?: boolean | null;
|
|
11389
11401
|
/**
|
|
11390
11402
|
* `general` only: the method it stands for, the `capability` of an entry
|
|
11391
11403
|
* in {@link CheckoutMethodsResponse.general} (`wallet.paypal`).
|
|
@@ -11747,7 +11759,11 @@ interface AvailableCheckoutMethod {
|
|
|
11747
11759
|
default_icon_svg?: string | null;
|
|
11748
11760
|
/** Original provider artwork. Render as an image, never inline. */
|
|
11749
11761
|
default_icon_image?: string | null;
|
|
11750
|
-
/**
|
|
11762
|
+
/**
|
|
11763
|
+
* May sit in the express strip: the method draws its own button, a wallet's,
|
|
11764
|
+
* or PayPal's button and card fields on e-Payouts' PayPal Express and Pay
|
|
11765
|
+
* with card panes.
|
|
11766
|
+
*/
|
|
11751
11767
|
supports_native_element: boolean;
|
|
11752
11768
|
/** Follows a redirect when tapped, so `open_in` applies. */
|
|
11753
11769
|
supports_open_target: boolean;
|
|
@@ -11809,6 +11825,11 @@ interface AvailableCheckoutMethod {
|
|
|
11809
11825
|
* deployment that lets the render choose the account drawing it.
|
|
11810
11826
|
*/
|
|
11811
11827
|
supports_smart_routing?: boolean | null;
|
|
11828
|
+
/**
|
|
11829
|
+
* The item may set `card_fallback`: e-Payouts' Pay with card, a card form of
|
|
11830
|
+
* its own that the checkout holds back while another card form is drawn.
|
|
11831
|
+
*/
|
|
11832
|
+
supports_card_fallback?: boolean | null;
|
|
11812
11833
|
/** The processor's own limits on the method, where it states them. */
|
|
11813
11834
|
provider_limits?: CheckoutMethodProviderLimits | null;
|
|
11814
11835
|
}
|
|
@@ -16923,7 +16944,9 @@ interface PaneCapability {
|
|
|
16923
16944
|
* Whether this method can be drawn as the wallet's own button instead of a
|
|
16924
16945
|
* DeloPay tile — i.e. whether {@link Pane.nativeElement} means anything
|
|
16925
16946
|
* here. The router's answer, not the dashboard's: Apple Pay and Google Pay
|
|
16926
|
-
* on Stripe's wallet rail and on Airwallex's hosted-element rail
|
|
16947
|
+
* on Stripe's wallet rail and on Airwallex's hosted-element rail, and
|
|
16948
|
+
* e-Payouts' PayPal Express and Pay with card panes, which draw PayPal's
|
|
16949
|
+
* button and card fields.
|
|
16927
16950
|
*
|
|
16928
16951
|
* Optional because a router predating the field omits it; read absent as
|
|
16929
16952
|
* `false`, so the control is offered nowhere rather than on a method the
|
|
@@ -18409,8 +18432,14 @@ type BuyerCaseCategory = 'refund_request' | 'inquiry' | 'dispute' | 'bank_charge
|
|
|
18409
18432
|
type BuyerCaseOrigin = 'buyer_portal' | 'payment_provider' | 'bank_card_issuer' | 'unknown';
|
|
18410
18433
|
/** Where the case stands. */
|
|
18411
18434
|
type BuyerCaseState = 'waiting_for_merchant' | 'approved' | 'refund_pending' | 'refunded' | 'refund_failed' | 'declined' | 'open' | 'under_review' | 'resolved' | 'cancelled' | 'expired' | 'unknown';
|
|
18412
|
-
/**
|
|
18413
|
-
|
|
18435
|
+
/**
|
|
18436
|
+
* Who acts next on a case, or who acted in an event. `provider` is the payment
|
|
18437
|
+
* provider or, for a bank chargeback, the card issuer. `reviewer` is the
|
|
18438
|
+
* reviewers of the buyer's evidence: DeloPay's, or the shop's team where it
|
|
18439
|
+
* reviews the evidence. A case that is not closed names `reviewer` while a
|
|
18440
|
+
* submission waits, and `buyer` while their evidence is asked for.
|
|
18441
|
+
*/
|
|
18442
|
+
type BuyerCaseActor = 'buyer' | 'merchant' | 'provider' | 'reviewer' | 'nobody' | 'unknown';
|
|
18414
18443
|
/** In whose favour a case was decided. `pending` until decided; `unknown` when no decision was reported. */
|
|
18415
18444
|
type BuyerCaseOutcome = 'pending' | 'buyer_favour' | 'merchant_favour' | 'cancelled' | 'unknown';
|
|
18416
18445
|
/** Where the refund that answers a request stands at the payment provider. */
|
|
@@ -18425,8 +18454,25 @@ interface BuyerCaseRefund {
|
|
|
18425
18454
|
/** When the refund's current status was recorded. */
|
|
18426
18455
|
updated_at: string;
|
|
18427
18456
|
}
|
|
18428
|
-
/**
|
|
18429
|
-
|
|
18457
|
+
/**
|
|
18458
|
+
* What happened in a case. `status_changed` names the state reached;
|
|
18459
|
+
* `stage_changed` and `deadline_changed` are a dispute moving on with the
|
|
18460
|
+
* payment provider or card issuer. The `evidence_` kinds are steps on the
|
|
18461
|
+
* case's evidence that the buyer sees; they leave the case's state as it is.
|
|
18462
|
+
*/
|
|
18463
|
+
type BuyerCaseEventKind = 'opened' | 'approved' | 'declined' | 'refund_started' | 'refunded' | 'refund_failed' | 'status_changed' | 'stage_changed' | 'deadline_changed'
|
|
18464
|
+
/** The buyer handed in evidence. */
|
|
18465
|
+
| 'evidence_submitted'
|
|
18466
|
+
/** The buyer asked for more time to hand in evidence. */
|
|
18467
|
+
| 'evidence_extension_requested'
|
|
18468
|
+
/** A reviewer asked the buyer for more information, by the cut-off in `due_at`. */
|
|
18469
|
+
| 'evidence_information_requested'
|
|
18470
|
+
/** A reviewer answered the buyer. */
|
|
18471
|
+
| 'evidence_replied'
|
|
18472
|
+
/** A reviewer recorded the result of the evidence review, in `evidence_outcome`. */
|
|
18473
|
+
| 'evidence_reviewed'
|
|
18474
|
+
/** A reviewer moved the buyer's cut-off for evidence to `due_at`. */
|
|
18475
|
+
| 'evidence_deadline_changed';
|
|
18430
18476
|
/** How far a dispute has gone with the payment provider or card issuer. */
|
|
18431
18477
|
type BuyerCaseStage = 'inquiry' | 'dispute' | 'pre_arbitration' | 'arbitration';
|
|
18432
18478
|
/** One step of a case. */
|
|
@@ -18448,6 +18494,10 @@ interface BuyerCaseEvent {
|
|
|
18448
18494
|
currency?: string | null;
|
|
18449
18495
|
/** When DeloPay recorded the step, when it was recorded as it happened. Absent for a step read back from the case itself. */
|
|
18450
18496
|
recorded_at?: string | null;
|
|
18497
|
+
/** The buyer's cut-off for evidence that this step set. */
|
|
18498
|
+
due_at?: string | null;
|
|
18499
|
+
/** The result of an evidence review. */
|
|
18500
|
+
evidence_outcome?: BuyerEvidenceOutcome | null;
|
|
18451
18501
|
}
|
|
18452
18502
|
/** A buyer's case: a refund request or a dispute about one of their purchases, with where it stands, who acts next and what was recorded. */
|
|
18453
18503
|
interface BuyerCase {
|
|
@@ -18775,7 +18825,11 @@ interface BuyerEvidenceNote {
|
|
|
18775
18825
|
}
|
|
18776
18826
|
/** Who wrote a message, or who wrote last in a conversation. */
|
|
18777
18827
|
type BuyerConversationSide = 'buyer' | 'merchant';
|
|
18778
|
-
/**
|
|
18828
|
+
/**
|
|
18829
|
+
* Whether the team writes in a conversation. A closed one keeps its history and
|
|
18830
|
+
* takes no team message until the team reopens it; the buyer's next message
|
|
18831
|
+
* reopens it too.
|
|
18832
|
+
*/
|
|
18779
18833
|
type BuyerConversationStatus = 'open' | 'closed';
|
|
18780
18834
|
/** A conversation with a buyer as the shop's team sees it in the inbox. */
|
|
18781
18835
|
interface BuyerConversationSummary {
|
|
@@ -25268,8 +25322,9 @@ declare class BuyerAccount {
|
|
|
25268
25322
|
*/
|
|
25269
25323
|
listRecordMessages(record: string, query: BuyerPortalConversationQuery, options?: RequestExtras): Promise<BuyerPortalMessagePage>;
|
|
25270
25324
|
/**
|
|
25271
|
-
* A message from a confirmed record to one of its shops.
|
|
25272
|
-
*
|
|
25325
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
25326
|
+
* closed conversation reopens it. Sending again with the same
|
|
25327
|
+
* `client_message_id` returns the message the first send stored.
|
|
25273
25328
|
*/
|
|
25274
25329
|
sendRecordMessage(record: string, message: BuyerPortalMessageCreate, options?: RequestExtras): Promise<BuyerPortalMessage>;
|
|
25275
25330
|
/**
|
|
@@ -25377,8 +25432,9 @@ declare class BuyerPortal {
|
|
|
25377
25432
|
*/
|
|
25378
25433
|
listMessages(query?: BuyerPortalConversationQuery, options?: RequestExtras): Promise<BuyerPortalMessagePage>;
|
|
25379
25434
|
/**
|
|
25380
|
-
* A message to the shop.
|
|
25381
|
-
*
|
|
25435
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
25436
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
25437
|
+
* first send stored.
|
|
25382
25438
|
*/
|
|
25383
25439
|
sendMessage(message: BuyerPortalMessageCreate, options?: RequestExtras): Promise<BuyerPortalMessage>;
|
|
25384
25440
|
/**
|
|
@@ -27818,12 +27874,21 @@ declare class CheckoutSession {
|
|
|
27818
27874
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
27819
27875
|
* silently ignored by this route.
|
|
27820
27876
|
*
|
|
27877
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
27878
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
27879
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
27880
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
27881
|
+
* matches any.
|
|
27882
|
+
*
|
|
27821
27883
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
27822
27884
|
*/
|
|
27823
27885
|
fetchCheckoutData(params?: {
|
|
27824
27886
|
locale?: string;
|
|
27825
27887
|
theme?: string;
|
|
27826
27888
|
country?: string;
|
|
27889
|
+
cardOnly?: boolean;
|
|
27890
|
+
cardProvider?: string;
|
|
27891
|
+
cardAccount?: string;
|
|
27827
27892
|
}, options?: RequestExtras): Promise<CheckoutDataResponse>;
|
|
27828
27893
|
/**
|
|
27829
27894
|
* The subscription twin of {@link CheckoutSession.fetchCheckoutData}: the
|
package/dist/index.d.ts
CHANGED
|
@@ -269,10 +269,12 @@ interface PaymentCreateRequest {
|
|
|
269
269
|
/** URL to leave an unpaid hosted checkout; never falls back to `return_url`. */
|
|
270
270
|
cancel_url?: string | null;
|
|
271
271
|
/**
|
|
272
|
-
* How long the client secret
|
|
273
|
-
*
|
|
274
|
-
*
|
|
275
|
-
*
|
|
272
|
+
* How long the client secret stays usable, in seconds from creation. Omit to
|
|
273
|
+
* inherit the shop's default (`business_profile.session_expiry`, itself
|
|
274
|
+
* defaulting to 15 minutes). With `payment_link: true` it is also how long
|
|
275
|
+
* the checkout link stays payable; omitted, the link follows the shop's
|
|
276
|
+
* link expiry, else 48 hours. The backend rejects values outside its
|
|
277
|
+
* accepted window with a 400.
|
|
276
278
|
*/
|
|
277
279
|
session_expiry?: number | null;
|
|
278
280
|
/** Descriptor shown on the customer's bank statement (name portion). */
|
|
@@ -11386,6 +11388,16 @@ interface CheckoutMethodItem {
|
|
|
11386
11388
|
* `merchant_connector_id`.
|
|
11387
11389
|
*/
|
|
11388
11390
|
smart_routing?: boolean | null;
|
|
11391
|
+
/**
|
|
11392
|
+
* e-Payouts' Pay with card (`ppal:paypal_direct_form`) only: hold it back as
|
|
11393
|
+
* a fallback for the shop's other card forms. Absent or `true`: the checkout
|
|
11394
|
+
* draws it only while no other card form is drawn for the payment (no other
|
|
11395
|
+
* card account, every one past its cap or drawn away by the split, or the
|
|
11396
|
+
* card form could not be prepared at its processor). `false`: it is drawn
|
|
11397
|
+
* beside another card form too. Only on an item whose available entry
|
|
11398
|
+
* `supports_card_fallback`.
|
|
11399
|
+
*/
|
|
11400
|
+
card_fallback?: boolean | null;
|
|
11389
11401
|
/**
|
|
11390
11402
|
* `general` only: the method it stands for, the `capability` of an entry
|
|
11391
11403
|
* in {@link CheckoutMethodsResponse.general} (`wallet.paypal`).
|
|
@@ -11747,7 +11759,11 @@ interface AvailableCheckoutMethod {
|
|
|
11747
11759
|
default_icon_svg?: string | null;
|
|
11748
11760
|
/** Original provider artwork. Render as an image, never inline. */
|
|
11749
11761
|
default_icon_image?: string | null;
|
|
11750
|
-
/**
|
|
11762
|
+
/**
|
|
11763
|
+
* May sit in the express strip: the method draws its own button, a wallet's,
|
|
11764
|
+
* or PayPal's button and card fields on e-Payouts' PayPal Express and Pay
|
|
11765
|
+
* with card panes.
|
|
11766
|
+
*/
|
|
11751
11767
|
supports_native_element: boolean;
|
|
11752
11768
|
/** Follows a redirect when tapped, so `open_in` applies. */
|
|
11753
11769
|
supports_open_target: boolean;
|
|
@@ -11809,6 +11825,11 @@ interface AvailableCheckoutMethod {
|
|
|
11809
11825
|
* deployment that lets the render choose the account drawing it.
|
|
11810
11826
|
*/
|
|
11811
11827
|
supports_smart_routing?: boolean | null;
|
|
11828
|
+
/**
|
|
11829
|
+
* The item may set `card_fallback`: e-Payouts' Pay with card, a card form of
|
|
11830
|
+
* its own that the checkout holds back while another card form is drawn.
|
|
11831
|
+
*/
|
|
11832
|
+
supports_card_fallback?: boolean | null;
|
|
11812
11833
|
/** The processor's own limits on the method, where it states them. */
|
|
11813
11834
|
provider_limits?: CheckoutMethodProviderLimits | null;
|
|
11814
11835
|
}
|
|
@@ -16923,7 +16944,9 @@ interface PaneCapability {
|
|
|
16923
16944
|
* Whether this method can be drawn as the wallet's own button instead of a
|
|
16924
16945
|
* DeloPay tile — i.e. whether {@link Pane.nativeElement} means anything
|
|
16925
16946
|
* here. The router's answer, not the dashboard's: Apple Pay and Google Pay
|
|
16926
|
-
* on Stripe's wallet rail and on Airwallex's hosted-element rail
|
|
16947
|
+
* on Stripe's wallet rail and on Airwallex's hosted-element rail, and
|
|
16948
|
+
* e-Payouts' PayPal Express and Pay with card panes, which draw PayPal's
|
|
16949
|
+
* button and card fields.
|
|
16927
16950
|
*
|
|
16928
16951
|
* Optional because a router predating the field omits it; read absent as
|
|
16929
16952
|
* `false`, so the control is offered nowhere rather than on a method the
|
|
@@ -18409,8 +18432,14 @@ type BuyerCaseCategory = 'refund_request' | 'inquiry' | 'dispute' | 'bank_charge
|
|
|
18409
18432
|
type BuyerCaseOrigin = 'buyer_portal' | 'payment_provider' | 'bank_card_issuer' | 'unknown';
|
|
18410
18433
|
/** Where the case stands. */
|
|
18411
18434
|
type BuyerCaseState = 'waiting_for_merchant' | 'approved' | 'refund_pending' | 'refunded' | 'refund_failed' | 'declined' | 'open' | 'under_review' | 'resolved' | 'cancelled' | 'expired' | 'unknown';
|
|
18412
|
-
/**
|
|
18413
|
-
|
|
18435
|
+
/**
|
|
18436
|
+
* Who acts next on a case, or who acted in an event. `provider` is the payment
|
|
18437
|
+
* provider or, for a bank chargeback, the card issuer. `reviewer` is the
|
|
18438
|
+
* reviewers of the buyer's evidence: DeloPay's, or the shop's team where it
|
|
18439
|
+
* reviews the evidence. A case that is not closed names `reviewer` while a
|
|
18440
|
+
* submission waits, and `buyer` while their evidence is asked for.
|
|
18441
|
+
*/
|
|
18442
|
+
type BuyerCaseActor = 'buyer' | 'merchant' | 'provider' | 'reviewer' | 'nobody' | 'unknown';
|
|
18414
18443
|
/** In whose favour a case was decided. `pending` until decided; `unknown` when no decision was reported. */
|
|
18415
18444
|
type BuyerCaseOutcome = 'pending' | 'buyer_favour' | 'merchant_favour' | 'cancelled' | 'unknown';
|
|
18416
18445
|
/** Where the refund that answers a request stands at the payment provider. */
|
|
@@ -18425,8 +18454,25 @@ interface BuyerCaseRefund {
|
|
|
18425
18454
|
/** When the refund's current status was recorded. */
|
|
18426
18455
|
updated_at: string;
|
|
18427
18456
|
}
|
|
18428
|
-
/**
|
|
18429
|
-
|
|
18457
|
+
/**
|
|
18458
|
+
* What happened in a case. `status_changed` names the state reached;
|
|
18459
|
+
* `stage_changed` and `deadline_changed` are a dispute moving on with the
|
|
18460
|
+
* payment provider or card issuer. The `evidence_` kinds are steps on the
|
|
18461
|
+
* case's evidence that the buyer sees; they leave the case's state as it is.
|
|
18462
|
+
*/
|
|
18463
|
+
type BuyerCaseEventKind = 'opened' | 'approved' | 'declined' | 'refund_started' | 'refunded' | 'refund_failed' | 'status_changed' | 'stage_changed' | 'deadline_changed'
|
|
18464
|
+
/** The buyer handed in evidence. */
|
|
18465
|
+
| 'evidence_submitted'
|
|
18466
|
+
/** The buyer asked for more time to hand in evidence. */
|
|
18467
|
+
| 'evidence_extension_requested'
|
|
18468
|
+
/** A reviewer asked the buyer for more information, by the cut-off in `due_at`. */
|
|
18469
|
+
| 'evidence_information_requested'
|
|
18470
|
+
/** A reviewer answered the buyer. */
|
|
18471
|
+
| 'evidence_replied'
|
|
18472
|
+
/** A reviewer recorded the result of the evidence review, in `evidence_outcome`. */
|
|
18473
|
+
| 'evidence_reviewed'
|
|
18474
|
+
/** A reviewer moved the buyer's cut-off for evidence to `due_at`. */
|
|
18475
|
+
| 'evidence_deadline_changed';
|
|
18430
18476
|
/** How far a dispute has gone with the payment provider or card issuer. */
|
|
18431
18477
|
type BuyerCaseStage = 'inquiry' | 'dispute' | 'pre_arbitration' | 'arbitration';
|
|
18432
18478
|
/** One step of a case. */
|
|
@@ -18448,6 +18494,10 @@ interface BuyerCaseEvent {
|
|
|
18448
18494
|
currency?: string | null;
|
|
18449
18495
|
/** When DeloPay recorded the step, when it was recorded as it happened. Absent for a step read back from the case itself. */
|
|
18450
18496
|
recorded_at?: string | null;
|
|
18497
|
+
/** The buyer's cut-off for evidence that this step set. */
|
|
18498
|
+
due_at?: string | null;
|
|
18499
|
+
/** The result of an evidence review. */
|
|
18500
|
+
evidence_outcome?: BuyerEvidenceOutcome | null;
|
|
18451
18501
|
}
|
|
18452
18502
|
/** A buyer's case: a refund request or a dispute about one of their purchases, with where it stands, who acts next and what was recorded. */
|
|
18453
18503
|
interface BuyerCase {
|
|
@@ -18775,7 +18825,11 @@ interface BuyerEvidenceNote {
|
|
|
18775
18825
|
}
|
|
18776
18826
|
/** Who wrote a message, or who wrote last in a conversation. */
|
|
18777
18827
|
type BuyerConversationSide = 'buyer' | 'merchant';
|
|
18778
|
-
/**
|
|
18828
|
+
/**
|
|
18829
|
+
* Whether the team writes in a conversation. A closed one keeps its history and
|
|
18830
|
+
* takes no team message until the team reopens it; the buyer's next message
|
|
18831
|
+
* reopens it too.
|
|
18832
|
+
*/
|
|
18779
18833
|
type BuyerConversationStatus = 'open' | 'closed';
|
|
18780
18834
|
/** A conversation with a buyer as the shop's team sees it in the inbox. */
|
|
18781
18835
|
interface BuyerConversationSummary {
|
|
@@ -25268,8 +25322,9 @@ declare class BuyerAccount {
|
|
|
25268
25322
|
*/
|
|
25269
25323
|
listRecordMessages(record: string, query: BuyerPortalConversationQuery, options?: RequestExtras): Promise<BuyerPortalMessagePage>;
|
|
25270
25324
|
/**
|
|
25271
|
-
* A message from a confirmed record to one of its shops.
|
|
25272
|
-
*
|
|
25325
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
25326
|
+
* closed conversation reopens it. Sending again with the same
|
|
25327
|
+
* `client_message_id` returns the message the first send stored.
|
|
25273
25328
|
*/
|
|
25274
25329
|
sendRecordMessage(record: string, message: BuyerPortalMessageCreate, options?: RequestExtras): Promise<BuyerPortalMessage>;
|
|
25275
25330
|
/**
|
|
@@ -25377,8 +25432,9 @@ declare class BuyerPortal {
|
|
|
25377
25432
|
*/
|
|
25378
25433
|
listMessages(query?: BuyerPortalConversationQuery, options?: RequestExtras): Promise<BuyerPortalMessagePage>;
|
|
25379
25434
|
/**
|
|
25380
|
-
* A message to the shop.
|
|
25381
|
-
*
|
|
25435
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
25436
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
25437
|
+
* first send stored.
|
|
25382
25438
|
*/
|
|
25383
25439
|
sendMessage(message: BuyerPortalMessageCreate, options?: RequestExtras): Promise<BuyerPortalMessage>;
|
|
25384
25440
|
/**
|
|
@@ -27818,12 +27874,21 @@ declare class CheckoutSession {
|
|
|
27818
27874
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
27819
27875
|
* silently ignored by this route.
|
|
27820
27876
|
*
|
|
27877
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
27878
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
27879
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
27880
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
27881
|
+
* matches any.
|
|
27882
|
+
*
|
|
27821
27883
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
27822
27884
|
*/
|
|
27823
27885
|
fetchCheckoutData(params?: {
|
|
27824
27886
|
locale?: string;
|
|
27825
27887
|
theme?: string;
|
|
27826
27888
|
country?: string;
|
|
27889
|
+
cardOnly?: boolean;
|
|
27890
|
+
cardProvider?: string;
|
|
27891
|
+
cardAccount?: string;
|
|
27827
27892
|
}, options?: RequestExtras): Promise<CheckoutDataResponse>;
|
|
27828
27893
|
/**
|
|
27829
27894
|
* The subscription twin of {@link CheckoutSession.fetchCheckoutData}: the
|
package/dist/index.js
CHANGED
package/dist/internal.cjs
CHANGED
|
@@ -7862,8 +7862,9 @@ var BuyerAccount = class {
|
|
|
7862
7862
|
});
|
|
7863
7863
|
}
|
|
7864
7864
|
/**
|
|
7865
|
-
* A message from a confirmed record to one of its shops.
|
|
7866
|
-
*
|
|
7865
|
+
* A message from a confirmed record to one of its shops. A message to a
|
|
7866
|
+
* closed conversation reopens it. Sending again with the same
|
|
7867
|
+
* `client_message_id` returns the message the first send stored.
|
|
7867
7868
|
*/
|
|
7868
7869
|
async sendRecordMessage(record, message, options) {
|
|
7869
7870
|
return this.request("POST", `/buyer-account/records/${encodeURIComponent(record)}/messages`, {
|
|
@@ -8090,8 +8091,9 @@ var BuyerPortal = class {
|
|
|
8090
8091
|
});
|
|
8091
8092
|
}
|
|
8092
8093
|
/**
|
|
8093
|
-
* A message to the shop.
|
|
8094
|
-
*
|
|
8094
|
+
* A message to the shop. A message to a closed conversation reopens it.
|
|
8095
|
+
* Sending again with the same `client_message_id` returns the message the
|
|
8096
|
+
* first send stored.
|
|
8095
8097
|
*/
|
|
8096
8098
|
async sendMessage(message, options) {
|
|
8097
8099
|
return this.request("POST", "/buyer-portal/messages", { body: message, ...options });
|
|
@@ -12809,6 +12811,12 @@ var CheckoutSession = class {
|
|
|
12809
12811
|
* channel the backend's locale resolution reads; a `?locale=` query is
|
|
12810
12812
|
* silently ignored by this route.
|
|
12811
12813
|
*
|
|
12814
|
+
* `cardOnly` is a direct link to the card form (`payment_method=card`):
|
|
12815
|
+
* when the Stripe card form being prepared is the one the link names, its
|
|
12816
|
+
* PaymentIntent is created for `card` alone. `cardProvider` and
|
|
12817
|
+
* `cardAccount` name that form's connector and account; absent or blank
|
|
12818
|
+
* matches any.
|
|
12819
|
+
*
|
|
12812
12820
|
* `GET /payment-link/data/{merchantId}/{paymentId}`
|
|
12813
12821
|
*/
|
|
12814
12822
|
async fetchCheckoutData(params, options) {
|
|
@@ -12817,7 +12825,13 @@ var CheckoutSession = class {
|
|
|
12817
12825
|
"GET",
|
|
12818
12826
|
`/payment-link/data/${encodeURIComponent(this.merchantId)}/${encodeURIComponent(this.paymentId)}`,
|
|
12819
12827
|
{
|
|
12820
|
-
query: {
|
|
12828
|
+
query: {
|
|
12829
|
+
theme: params?.theme,
|
|
12830
|
+
country: country || void 0,
|
|
12831
|
+
card_only: params?.cardOnly || void 0,
|
|
12832
|
+
card_provider: params?.cardOnly ? params.cardProvider?.trim() || void 0 : void 0,
|
|
12833
|
+
card_account: params?.cardOnly ? params.cardAccount?.trim() || void 0 : void 0
|
|
12834
|
+
},
|
|
12821
12835
|
...options,
|
|
12822
12836
|
headers: {
|
|
12823
12837
|
...params?.locale ? {
|
|
@@ -14927,6 +14941,20 @@ var AdminPortal = class {
|
|
|
14927
14941
|
{ body: params }
|
|
14928
14942
|
);
|
|
14929
14943
|
}
|
|
14944
|
+
/**
|
|
14945
|
+
* Correct the funding type, issuing bank and issuing country recorded on
|
|
14946
|
+
* past card payments from the BIN table, across every merchant, oldest
|
|
14947
|
+
* first, one bounded page per call. Resume with the returned `next_after`
|
|
14948
|
+
* until it is `null`. A dry run, the default, reports without writing; a
|
|
14949
|
+
* payment that changed while the page ran is left alone and counted as a
|
|
14950
|
+
* conflict. Payments of merchants whose attempts are stored in Redis are
|
|
14951
|
+
* not corrected.
|
|
14952
|
+
*
|
|
14953
|
+
* `POST /admin-portal/card-funding/backfill`
|
|
14954
|
+
*/
|
|
14955
|
+
async backfillCardFunding(params = {}) {
|
|
14956
|
+
return this.request("POST", "/admin-portal/card-funding/backfill", { body: params });
|
|
14957
|
+
}
|
|
14930
14958
|
};
|
|
14931
14959
|
function transactionListQuery(params) {
|
|
14932
14960
|
if (!params) return void 0;
|