@delopay/sdk 0.292.0 → 0.295.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-JHQBYOCA.js → chunk-DEP2VVHN.js} +177 -1
- package/dist/chunk-DEP2VVHN.js.map +1 -0
- package/dist/{index-DNWBhj2U.d.cts → index-V6-GJx3L.d.cts} +307 -6
- package/dist/{index-DNWBhj2U.d.ts → index-V6-GJx3L.d.ts} +307 -6
- package/dist/index.cjs +176 -0
- package/dist/index.cjs.map +1 -1
- package/dist/index.d.cts +1 -1
- package/dist/index.d.ts +1 -1
- package/dist/index.js +1 -1
- package/dist/internal.cjs +201 -0
- package/dist/internal.cjs.map +1 -1
- package/dist/internal.d.cts +114 -3
- package/dist/internal.d.ts +114 -3
- package/dist/internal.js +26 -1
- package/dist/internal.js.map +1 -1
- package/package.json +1 -1
- package/dist/chunk-JHQBYOCA.js.map +0 -1
|
@@ -3272,6 +3272,33 @@ var Profiles = class {
|
|
|
3272
3272
|
constructor(request) {
|
|
3273
3273
|
this.request = request;
|
|
3274
3274
|
}
|
|
3275
|
+
/**
|
|
3276
|
+
* Hide a shop from ordinary navigation. Its identity, project membership,
|
|
3277
|
+
* settings and retained records remain unchanged. Requires shop write access.
|
|
3278
|
+
* Repeating the same state is safe; use restore() to make it visible again.
|
|
3279
|
+
*/
|
|
3280
|
+
async archive(accountId, profileId) {
|
|
3281
|
+
return this.request(
|
|
3282
|
+
"PUT",
|
|
3283
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/archive`,
|
|
3284
|
+
{ body: { is_archived: true } }
|
|
3285
|
+
);
|
|
3286
|
+
}
|
|
3287
|
+
/** Restore an archived shop to navigation with the same identity and project. */
|
|
3288
|
+
async restore(accountId, profileId) {
|
|
3289
|
+
return this.request(
|
|
3290
|
+
"PUT",
|
|
3291
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/${encodeURIComponent(profileId)}/archive`,
|
|
3292
|
+
{ body: { is_archived: false } }
|
|
3293
|
+
);
|
|
3294
|
+
}
|
|
3295
|
+
/** Archived shop identities in the caller's merchant and shop-read scope. */
|
|
3296
|
+
async listArchived(accountId) {
|
|
3297
|
+
return this.request(
|
|
3298
|
+
"GET",
|
|
3299
|
+
`/account/${encodeURIComponent(accountId)}/business-profile/archived`
|
|
3300
|
+
);
|
|
3301
|
+
}
|
|
3275
3302
|
async create(accountId, params) {
|
|
3276
3303
|
return this.request("POST", `/account/${encodeURIComponent(accountId)}/business-profile`, {
|
|
3277
3304
|
body: params
|
|
@@ -5006,6 +5033,52 @@ var Users = class {
|
|
|
5006
5033
|
async getTeamMemberDetails(userId) {
|
|
5007
5034
|
return this.request("GET", `/user/employees/${encodeURIComponent(userId)}/details`);
|
|
5008
5035
|
}
|
|
5036
|
+
/**
|
|
5037
|
+
* Supplied contacts and internal notes for a visible member in the current
|
|
5038
|
+
* merchant. Requires a session JWT and Users read permission. The returned
|
|
5039
|
+
* revision is required even for the first write; can_edit states write access.
|
|
5040
|
+
* An unknown or invisible member is refused with the same 404 UR_68 response.
|
|
5041
|
+
*/
|
|
5042
|
+
async getTeamMemberContactProfile(userId) {
|
|
5043
|
+
return this.request("GET", `/user/employees/${encodeURIComponent(userId)}/contact-profile`);
|
|
5044
|
+
}
|
|
5045
|
+
/**
|
|
5046
|
+
* Replace the supplied contacts, preserving notes and login/recovery identity.
|
|
5047
|
+
* Omitted optional contact fields are cleared. Requires Users write permission
|
|
5048
|
+
* and authority over the whole member. Send the exact last-read revision.
|
|
5049
|
+
* On a changed refusal, keep the draft and read again before resubmitting.
|
|
5050
|
+
* Structured UR_68 data is a TeamMemberRefusal with reason contact_profile.
|
|
5051
|
+
*/
|
|
5052
|
+
async updateTeamMemberContacts(userId, params) {
|
|
5053
|
+
return this.request("PUT", `/user/employees/${encodeURIComponent(userId)}/contact-profile`, {
|
|
5054
|
+
body: params
|
|
5055
|
+
});
|
|
5056
|
+
}
|
|
5057
|
+
/** Create a plain-text note with server-authored attribution; requires the current revision. */
|
|
5058
|
+
async createTeamMemberNote(userId, params) {
|
|
5059
|
+
return this.request("POST", `/user/employees/${encodeURIComponent(userId)}/notes`, {
|
|
5060
|
+
body: params
|
|
5061
|
+
});
|
|
5062
|
+
}
|
|
5063
|
+
/** Edit one note, retaining its original author and creation time. Uses the same write scope. */
|
|
5064
|
+
async updateTeamMemberNote(userId, noteId, params) {
|
|
5065
|
+
return this.request(
|
|
5066
|
+
"PUT",
|
|
5067
|
+
`/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,
|
|
5068
|
+
{ body: params }
|
|
5069
|
+
);
|
|
5070
|
+
}
|
|
5071
|
+
/**
|
|
5072
|
+
* Delete only the named member note. The exact profile revision is sent in the
|
|
5073
|
+
* query; contacts and all other notes remain. Returns the new profile revision.
|
|
5074
|
+
*/
|
|
5075
|
+
async deleteTeamMemberNote(userId, noteId, params) {
|
|
5076
|
+
return this.request(
|
|
5077
|
+
"DELETE",
|
|
5078
|
+
`/user/employees/${encodeURIComponent(userId)}/notes/${encodeURIComponent(noteId)}`,
|
|
5079
|
+
{ query: { expected_revision: params.expected_revision } }
|
|
5080
|
+
);
|
|
5081
|
+
}
|
|
5009
5082
|
/**
|
|
5010
5083
|
* Replace a team member's password with a temporary one, returned once.
|
|
5011
5084
|
* `POST /user/employees/{user_id}/reset-password`
|
|
@@ -5428,6 +5501,80 @@ var IdentityVerifications = class {
|
|
|
5428
5501
|
{ body: params, ...options }
|
|
5429
5502
|
);
|
|
5430
5503
|
}
|
|
5504
|
+
/**
|
|
5505
|
+
* A refund's screening by the transaction monitoring of the shop's
|
|
5506
|
+
* screening account, for a provider that screens refunds. Recorded only: it
|
|
5507
|
+
* never holds or reverses the refund. Answers 404 when the refund has no
|
|
5508
|
+
* screening. Needs permission to read payments.
|
|
5509
|
+
*
|
|
5510
|
+
* `GET /identity-verifications/refund-screenings/{refund_id}`
|
|
5511
|
+
*/
|
|
5512
|
+
async refundScreening(refundId, options) {
|
|
5513
|
+
return this.request(
|
|
5514
|
+
"GET",
|
|
5515
|
+
`/identity-verifications/refund-screenings/${encodeURIComponent(refundId)}`,
|
|
5516
|
+
options
|
|
5517
|
+
);
|
|
5518
|
+
}
|
|
5519
|
+
/**
|
|
5520
|
+
* A payout's screening by the transaction monitoring of the shop's
|
|
5521
|
+
* screening account, for a provider that screens payouts. Recorded only: it
|
|
5522
|
+
* never holds or reverses the payout. Answers 404 when the payout has no
|
|
5523
|
+
* screening. Needs permission to read payments.
|
|
5524
|
+
*
|
|
5525
|
+
* `GET /identity-verifications/payout-screenings/{payout_id}`
|
|
5526
|
+
*/
|
|
5527
|
+
async payoutScreening(payoutId, options) {
|
|
5528
|
+
return this.request(
|
|
5529
|
+
"GET",
|
|
5530
|
+
`/identity-verifications/payout-screenings/${encodeURIComponent(payoutId)}`,
|
|
5531
|
+
options
|
|
5532
|
+
);
|
|
5533
|
+
}
|
|
5534
|
+
/**
|
|
5535
|
+
* Whether an account assesses its shop's checkout devices. Needs permission
|
|
5536
|
+
* to read connectors.
|
|
5537
|
+
*
|
|
5538
|
+
* `GET /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`
|
|
5539
|
+
*/
|
|
5540
|
+
async deviceIntelligenceSetting(merchantConnectorId, options) {
|
|
5541
|
+
return this.request(
|
|
5542
|
+
"GET",
|
|
5543
|
+
`/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,
|
|
5544
|
+
options
|
|
5545
|
+
);
|
|
5546
|
+
}
|
|
5547
|
+
/**
|
|
5548
|
+
* Switch device intelligence of the account's shop. Switched on, every
|
|
5549
|
+
* checkout of the shop assesses the buyer's device and records the
|
|
5550
|
+
* provider's signal on the payment; it never holds or refuses a payment.
|
|
5551
|
+
* Switching on is refused when the provider has not switched the feature on
|
|
5552
|
+
* for the account. A shop has at most one device intelligence account.
|
|
5553
|
+
* Needs permission to edit connectors.
|
|
5554
|
+
*
|
|
5555
|
+
* `PUT /identity-verifications/accounts/{merchant_connector_id}/device-intelligence`
|
|
5556
|
+
*/
|
|
5557
|
+
async updateDeviceIntelligenceSetting(merchantConnectorId, params, options) {
|
|
5558
|
+
return this.request(
|
|
5559
|
+
"PUT",
|
|
5560
|
+
`/identity-verifications/accounts/${encodeURIComponent(merchantConnectorId)}/device-intelligence`,
|
|
5561
|
+
{ body: params, ...options }
|
|
5562
|
+
);
|
|
5563
|
+
}
|
|
5564
|
+
/**
|
|
5565
|
+
* A payment's device signal from its checkout's device assessment. Recorded
|
|
5566
|
+
* only: it never holds or refuses the payment. Answers 404 when the payment's
|
|
5567
|
+
* checkout was not assessed. Needs permission to read payments.
|
|
5568
|
+
*
|
|
5569
|
+
* `GET /identity-verifications/device-signals/{payment_id}`
|
|
5570
|
+
*/
|
|
5571
|
+
async deviceSignal(paymentId, options) {
|
|
5572
|
+
return this.request(
|
|
5573
|
+
"GET",
|
|
5574
|
+
`/identity-verifications/device-signals/${encodeURIComponent(paymentId)}`,
|
|
5575
|
+
options
|
|
5576
|
+
);
|
|
5577
|
+
}
|
|
5431
5578
|
};
|
|
5432
5579
|
|
|
5433
5580
|
// src/resources/webhooks.ts
|
|
@@ -14367,6 +14514,35 @@ var CheckoutSession = class {
|
|
|
14367
14514
|
headers: this.bearerHeaders(options?.headers)
|
|
14368
14515
|
});
|
|
14369
14516
|
}
|
|
14517
|
+
/**
|
|
14518
|
+
* Start the device assessment of the payment's checkout. `required` is
|
|
14519
|
+
* `false` when the shop assesses no devices, the payment's device is already
|
|
14520
|
+
* assessed, or the provider cannot start a session: go on without it. Run
|
|
14521
|
+
* the named `library` with the `token`, then call
|
|
14522
|
+
* {@link CheckoutSession.completeDeviceSession}.
|
|
14523
|
+
*
|
|
14524
|
+
* `POST /payment-link/{merchantId}/{paymentId}/device-session`
|
|
14525
|
+
*/
|
|
14526
|
+
async startDeviceSession(options) {
|
|
14527
|
+
return this.client.request("POST", `${this.linkBase}/device-session`, {
|
|
14528
|
+
...options,
|
|
14529
|
+
headers: this.bearerHeaders(options?.headers)
|
|
14530
|
+
});
|
|
14531
|
+
}
|
|
14532
|
+
/**
|
|
14533
|
+
* Report the device assessment finished. The router records it with the
|
|
14534
|
+
* provider and stores the signal on the payment. Refused with `400` when the
|
|
14535
|
+
* session and token are not the payment's pending ones.
|
|
14536
|
+
*
|
|
14537
|
+
* `POST /payment-link/{merchantId}/{paymentId}/device-session/complete`
|
|
14538
|
+
*/
|
|
14539
|
+
async completeDeviceSession(params, options) {
|
|
14540
|
+
await this.client.request("POST", `${this.linkBase}/device-session/complete`, {
|
|
14541
|
+
body: params,
|
|
14542
|
+
...options,
|
|
14543
|
+
headers: this.bearerHeaders(options?.headers)
|
|
14544
|
+
});
|
|
14545
|
+
}
|
|
14370
14546
|
/**
|
|
14371
14547
|
* Ask whether NomuPay's COPYandPAY widget may submit a card, from the
|
|
14372
14548
|
* form's pre-submit hook.
|
|
@@ -15397,4 +15573,4 @@ export {
|
|
|
15397
15573
|
decodeNativePanes,
|
|
15398
15574
|
encodeNativePanes
|
|
15399
15575
|
};
|
|
15400
|
-
//# sourceMappingURL=chunk-
|
|
15576
|
+
//# sourceMappingURL=chunk-DEP2VVHN.js.map
|