@zinn-digital/sdk 0.1.1794 → 0.1.1796
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/generated/schema.d.ts +22 -1
- package/package.json +1 -1
|
@@ -37700,6 +37700,8 @@ export interface paths {
|
|
|
37700
37700
|
* @description Re-enters the provisioning workflow for a service in `failed`. Setting email up is a multi-step operation against two backends — the mail account and the domain's DNS zone — and a failure part-way leaves a service that is real, may already hold a paid mailbox package, and is not usable. The automatic sweep cannot recover it: that re-drives services still `pending`, never one that failed after that point, so before this endpoint the only options were to look at the failure or delete the service.
|
|
37701
37701
|
*
|
|
37702
37702
|
* Safe to call twice. The provisioning workflow id is derived from the service id so a duplicate start converges on the run already going, the mail-account step is an ensure, and the DNS step is a convergent write. Calling it on a service that is already `pending` or `provisioning` is answered with its current state rather than an error — the caller asked for the state it is already in. Any other status is `409`. Requires `mail.manage`.
|
|
37703
|
+
*
|
|
37704
|
+
* A `zinn` service under a white-label entitlement with no reseller mail hostnames is `422` with the same sentence the records list gives: setting it up again would hand out our hostnames, so the refusal is identically true on every call and the caller shows the reason rather than offering another retry.
|
|
37703
37705
|
*/
|
|
37704
37706
|
post: operations["retryMailService"];
|
|
37705
37707
|
delete?: never;
|
|
@@ -67107,10 +67109,14 @@ export interface components {
|
|
|
67107
67109
|
/** Format: uuid */
|
|
67108
67110
|
org_id: string;
|
|
67109
67111
|
payout: components["schemas"]["MarketplacePayoutReadiness"];
|
|
67112
|
+
/** @description ISO-3166-1 alpha-2. */
|
|
67113
|
+
payout_bank_country?: string;
|
|
67110
67114
|
registered_address?: string;
|
|
67111
67115
|
rejection_reason?: string;
|
|
67112
67116
|
/** Format: date-time */
|
|
67113
67117
|
relationship_ended_at?: string | null;
|
|
67118
|
+
/** @description ISO-3166-1 alpha-2; empty means `country`. */
|
|
67119
|
+
residence_country?: string;
|
|
67114
67120
|
/**
|
|
67115
67121
|
* Format: date
|
|
67116
67122
|
* @description Ten years from the end of the relationship, not from upload — so an active seller's file is never deleted mid-relationship and a closed one ages out on a date a scheduled job can compute.
|
|
@@ -67177,7 +67183,11 @@ export interface components {
|
|
|
67177
67183
|
/** @description The outstanding DAC7 items in plain words, empty when complete. ⛔ Carried alongside the boolean because *"incomplete"* without *"incomplete how"* is not something a staff member chasing a seller can act on. */
|
|
67178
67184
|
dac7_missing: string[];
|
|
67179
67185
|
display_name: string;
|
|
67186
|
+
/** @description The items behind `needs_information`, in plain words. */
|
|
67187
|
+
information_missing?: string[];
|
|
67180
67188
|
legal_name: string;
|
|
67189
|
+
/** @description The seller still owes a DATA item: a DAC7 item or a KYC country item (residence or payout-bank country missing or not a country). The approval stands and the seller chase asks for it; the payout waits (`country_details_incomplete` or `dac7_data_incomplete`). */
|
|
67190
|
+
needs_information?: boolean;
|
|
67181
67191
|
/** Format: uuid */
|
|
67182
67192
|
org_id: string;
|
|
67183
67193
|
/** Format: date-time */
|
|
@@ -94317,7 +94327,7 @@ export interface components {
|
|
|
94317
94327
|
MarketplacePayoutReadiness: {
|
|
94318
94328
|
permitted: boolean;
|
|
94319
94329
|
/** @description Every reason at once, not the first — a seller told one problem at a time makes one round trip per problem. */
|
|
94320
|
-
reasons: ("no_verification" | "verification_not_approved" | "document_expired" | "document_missing" | "subject_not_approved" | "sanctions_not_screened" | "sanctions_not_clear" | "document_request_holds_payouts" | "vendor_not_approved" | "no_destination" | "destination_cooling_off" | "dac7_data_incomplete" | "identity_unverified")[];
|
|
94330
|
+
reasons: ("no_verification" | "verification_not_approved" | "document_expired" | "document_missing" | "subject_not_approved" | "sanctions_not_screened" | "sanctions_not_clear" | "document_request_holds_payouts" | "vendor_not_approved" | "no_destination" | "destination_cooling_off" | "dac7_data_incomplete" | "country_details_incomplete" | "identity_unverified")[];
|
|
94321
94331
|
};
|
|
94322
94332
|
MarketplacePayoutSchedule: {
|
|
94323
94333
|
currency: components["schemas"]["CurrencyCode"];
|
|
@@ -95099,9 +95109,13 @@ export interface components {
|
|
|
95099
95109
|
/** Format: uuid */
|
|
95100
95110
|
id: string;
|
|
95101
95111
|
legal_name: string;
|
|
95112
|
+
/** @description ISO-3166-1 alpha-2 country your payout bank is in. */
|
|
95113
|
+
payout_bank_country?: string;
|
|
95102
95114
|
registered_address?: string;
|
|
95103
95115
|
/** @description Shown to the seller verbatim. A rejection with no reason is repeated. */
|
|
95104
95116
|
rejection_reason?: string;
|
|
95117
|
+
/** @description ISO-3166-1 alpha-2 country you live in; empty means the same as `country`. */
|
|
95118
|
+
residence_country?: string;
|
|
95105
95119
|
/** @description The individual seller's primary residence. Individual track only. */
|
|
95106
95120
|
residential_address?: string;
|
|
95107
95121
|
/** Format: date-time */
|
|
@@ -95165,6 +95179,8 @@ export interface components {
|
|
|
95165
95179
|
/** @description What the file still needs, computed from the track. ⭐ Published so a screen renders the checklist rather than re-implementing the track rules and drifting from them. */
|
|
95166
95180
|
MarketplaceVerificationRequirements: {
|
|
95167
95181
|
can_submit: boolean;
|
|
95182
|
+
/** @description The DATA tokens still owed (DAC7 items such as `dac7:tin`, and the country items `dac7:country_invalid`, `dac7:tin_issued_in_invalid`, `kyc:payout_bank_country`, `kyc:payout_bank_country_invalid`, `kyc:residence_country_invalid`). Never documents. On an approved file these hold the payout until supplied. */
|
|
95183
|
+
information_needed?: string[];
|
|
95168
95184
|
/** @description Machine-readable tokens — `photo_id:missing:<subject_id>` for a person's document, `certificate_of_incorporation:missing` for a company-level one, `authorised_person:missing` when no one is named as able to act. */
|
|
95169
95185
|
missing: string[];
|
|
95170
95186
|
};
|
|
@@ -95176,7 +95192,11 @@ export interface components {
|
|
|
95176
95192
|
country?: string;
|
|
95177
95193
|
/** @description The name exactly as it appears on the documents — a person's on the individual track, the company's on the company track. Not the storefront name: a storefront name is chosen and a legal name is given, and screening the wrong one screens nothing. */
|
|
95178
95194
|
legal_name: string;
|
|
95195
|
+
/** @description ISO-3166-1 alpha-2 country the seller's payout bank is in (KYC, `docs/82` §7a). Required before a payout: a file without it reads `information_needed` and the payout is held with `country_details_incomplete`. Refused (422 `PAYOUT_BANK_COUNTRY_INVALID`) when it is not a country. ⭐ On an APPROVED file that owes information, this endpoint accepts the data items (country, residence and payout-bank country, TIN and its country, the residential address) and nothing else; the approval stands. `country` and `tin_issued_in` are refused the same way (`COUNTRY_INVALID`, `TIN_ISSUED_IN_INVALID`); a newly declared restricted country is refused with `COUNTRY_RESTRICTED`. */
|
|
95196
|
+
payout_bank_country?: string;
|
|
95179
95197
|
registered_address?: string;
|
|
95198
|
+
/** @description ISO-3166-1 alpha-2 country the seller LIVES in (KYC, `docs/82` §7a). Empty means the same as `country`. Refused (422 `RESIDENCE_COUNTRY_INVALID`) when it is not a country on the ISO list; omit the key to leave the stored value alone. */
|
|
95199
|
+
residence_country?: string;
|
|
95180
95200
|
/** @description The individual seller's primary residence, as DAC7 asks for it. Individual track only — on the company track the primary address is `registered_address`, and a second column would be one address in two places free to disagree. */
|
|
95181
95201
|
residential_address?: string;
|
|
95182
95202
|
/** @description Your VAT registration number. Required when `self_billing_vat_status` is `registered`: an invoice we raise in your name must show it, or neither of us can account for the tax on it. */
|
|
@@ -184394,6 +184414,7 @@ export interface operations {
|
|
|
184394
184414
|
};
|
|
184395
184415
|
content?: never;
|
|
184396
184416
|
};
|
|
184417
|
+
422: components["responses"]["UnprocessableEntity"];
|
|
184397
184418
|
};
|
|
184398
184419
|
};
|
|
184399
184420
|
getPublicMarketplaceListing: {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zinn-digital/sdk",
|
|
3
|
-
"version": "0.1.
|
|
3
|
+
"version": "0.1.1796",
|
|
4
4
|
"description": "Typed TypeScript client for the Zinn Digital Platform API, generated from its OpenAPI spec.",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"author": "Neil Lock \u2014 CEO, Zinn Digital\u00ae Ltd <office@zinndigital.com>",
|