@delopay/sdk 0.226.0 → 0.228.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/index.d.cts CHANGED
@@ -7528,6 +7528,12 @@ interface ProfileCreateRequest {
7528
7528
  * on, they receive the payment id as before.
7529
7529
  */
7530
7530
  send_payment_id_to_processor?: boolean | null;
7531
+ /**
7532
+ * Whether the processor may see the cart line items. Unset or `false` (the
7533
+ * default) sends one neutral line for the order total instead, so methods
7534
+ * that require line items keep working; on, processors receive the items.
7535
+ */
7536
+ send_order_details_to_processor?: boolean | null;
7531
7537
  /**
7532
7538
  * The language this shop's hosted checkout renders in, as one BCP 47 tag
7533
7539
  * (e.g. `de`). Absent means the shop has not chosen one and the buyer's
@@ -7597,6 +7603,11 @@ interface ProfileUpdateRequest {
7597
7603
  * on, they receive the payment id as before.
7598
7604
  */
7599
7605
  send_payment_id_to_processor?: boolean | null;
7606
+ /**
7607
+ * Whether the processor may see the cart line items. Absent leaves the
7608
+ * setting unchanged; send `false` to withhold them again.
7609
+ */
7610
+ send_order_details_to_processor?: boolean | null;
7600
7611
  /**
7601
7612
  * The language this shop's hosted checkout renders in. Absent leaves it
7602
7613
  * unchanged; explicit `null` clears it again.
@@ -7628,6 +7639,8 @@ interface ProfileResponse {
7628
7639
  send_metadata_to_processor: boolean;
7629
7640
  /** Whether the shop's own payment id reaches processors; off, they receive the opaque processor reference instead. */
7630
7641
  send_payment_id_to_processor: boolean;
7642
+ /** Whether the cart line items reach processors; off, they receive one neutral line for the order total instead. */
7643
+ send_order_details_to_processor: boolean;
7631
7644
  is_tax_connector_enabled: boolean;
7632
7645
  is_network_tokenization_enabled: boolean;
7633
7646
  is_auto_retries_enabled: boolean;
@@ -10149,13 +10162,17 @@ interface SellToRestrictionCapabilitiesResponse {
10149
10162
  rails: SellToRestrictionRailCapability[];
10150
10163
  }
10151
10164
  /**
10152
- * What a buyer blocklist entry matches: the buyer's email address (compared
10153
- * without surrounding spaces and without regard to case), one IPv4 or IPv6
10154
- * address (equivalent notations are one entry), or a customer id. A
10155
- * `customer_id` entry always names a shop, because a customer id is unique
10156
- * inside one shop only.
10165
+ * A kind of identifier a buyer blocklist entry can name: the buyer's email
10166
+ * address (compared without surrounding spaces and without regard to case),
10167
+ * one IPv4 or IPv6 address (equivalent notations are one address), a customer
10168
+ * id, or DeloPay's device identifier (`device_id`, as shown on a payment's
10169
+ * device details; the signature after the last `.` may be left out). An entry
10170
+ * naming a `customer_id` always names a shop, because a customer id is unique
10171
+ * inside one shop only. A `device_id` is matched when the buyer opens the
10172
+ * hosted checkout and when the buyer's browser confirms; a merchant's
10173
+ * server-side create carries none.
10157
10174
  */
10158
- type BuyerBlocklistKind = 'email' | 'ip' | 'customer_id';
10175
+ type BuyerBlocklistKind = 'email' | 'ip' | 'customer_id' | 'device_id';
10159
10176
  /**
10160
10177
  * Which entries {@link BuyerBlocklist.list} returns: the entries that block in
10161
10178
  * every shop together with every shop's own entries (`all`), only the entries
@@ -10172,24 +10189,51 @@ interface BuyerBlocklistListQuery {
10172
10189
  scope?: BuyerBlocklistListScope | null;
10173
10190
  /** The shop to list, with `scope: 'shop'`. */
10174
10191
  profile_id?: string | null;
10175
- /** Only entries of this kind. */
10192
+ /**
10193
+ * Only entries that include an identifier of this kind, whatever else they
10194
+ * name: `email` also lists an entry naming an email together with an IP.
10195
+ */
10176
10196
  kind?: BuyerBlocklistKind | null;
10177
- /** Matches the blocked value or the note, ignoring case. */
10197
+ /** Matches any of the entry's identifiers or its note, ignoring case. */
10178
10198
  search?: string | null;
10179
10199
  /** Page size, 1 to 100. Defaults to 20. */
10180
10200
  limit?: number | null;
10181
10201
  /** How many entries to skip. Defaults to 0. */
10182
10202
  offset?: number | null;
10183
10203
  }
10184
- /** Body of {@link BuyerBlocklist.create}: block a buyer. */
10204
+ /**
10205
+ * Body of {@link BuyerBlocklist.create}: block a buyer, named by one or more
10206
+ * identifiers. The entry blocks a payment when any one of them matches. At
10207
+ * least one of `email`, `ip`, `customer_id` and `device_id` is required, and
10208
+ * each identifier may be named by only one entry in the same scope.
10209
+ */
10185
10210
  interface BuyerBlocklistEntryCreateRequest {
10186
- kind: BuyerBlocklistKind;
10187
- /** The email address, IP address or customer id to block. */
10188
- value: string;
10211
+ /** The buyer's email address. */
10212
+ email?: string | null;
10213
+ /** One IPv4 or IPv6 address of the buyer. */
10214
+ ip?: string | null;
10215
+ /** A customer id of the shop named in `profile_id`. */
10216
+ customer_id?: string | null;
10217
+ /** DeloPay's device identifier of the buyer's browser. */
10218
+ device_id?: string | null;
10219
+ /**
10220
+ * One identifier as `kind` and `value`, sent together. When given, it is
10221
+ * added to the identifier fields, and refused when it disagrees with the
10222
+ * field of its kind.
10223
+ *
10224
+ * @deprecated Use `email`, `ip`, `customer_id` or `device_id` instead.
10225
+ */
10226
+ kind?: BuyerBlocklistKind | null;
10227
+ /**
10228
+ * The identifier named by `kind`, sent together with it.
10229
+ *
10230
+ * @deprecated Use `email`, `ip`, `customer_id` or `device_id` instead.
10231
+ */
10232
+ value?: string | null;
10189
10233
  /**
10190
10234
  * The shop the entry blocks in. Omitted, the entry blocks in every shop of
10191
- * the merchant, which a `customer_id` entry cannot, and which only a
10192
- * merchant role may add.
10235
+ * the merchant, which an entry naming a `customer_id` cannot, and which only
10236
+ * a merchant role may add.
10193
10237
  */
10194
10238
  profile_id?: string | null;
10195
10239
  /**
@@ -10209,11 +10253,32 @@ interface BuyerBlocklistEntryDeleteRequest {
10209
10253
  /** Why the buyer is unblocked, kept in the audit log. At most 1024 characters. */
10210
10254
  reason?: string | null;
10211
10255
  }
10212
- /** One blocked buyer. */
10256
+ /**
10257
+ * One blocked buyer. The entry blocks a payment when any one of its
10258
+ * identifiers matches; at least one of them is not `null`.
10259
+ */
10213
10260
  interface BuyerBlocklistEntryResponse {
10214
10261
  id: string;
10262
+ /** The buyer's email address, normalised as it is matched. `null` when the entry names none. */
10263
+ email: string | null;
10264
+ /** The buyer's IP address in canonical form. `null` when the entry names none. */
10265
+ ip: string | null;
10266
+ /** The blocked customer id. `null` when the entry names none. */
10267
+ customer_id: string | null;
10268
+ /** The blocked device identifier, without its signature. `null` when the entry names none. */
10269
+ device_id: string | null;
10270
+ /**
10271
+ * The kind of the entry's first identifier, in the order `customer_id`,
10272
+ * `email`, `ip`, `device_id`.
10273
+ *
10274
+ * @deprecated Read `email`, `ip`, `customer_id` and `device_id` instead.
10275
+ */
10215
10276
  kind: BuyerBlocklistKind;
10216
- /** The blocked value, normalised as it is matched. */
10277
+ /**
10278
+ * The entry's first identifier (see `kind`), normalised as it is matched.
10279
+ *
10280
+ * @deprecated Read `email`, `ip`, `customer_id` and `device_id` instead.
10281
+ */
10217
10282
  value: string;
10218
10283
  /** The shop the entry blocks in. `null` when it blocks in every shop. */
10219
10284
  profile_id: string | null;
@@ -20041,9 +20106,11 @@ declare class SellToRestrictions {
20041
20106
  }
20042
20107
 
20043
20108
  /**
20044
- * Buyer blocklist: the buyers a merchant refuses to sell to again, by email
20045
- * address, IP address or customer id, in every shop of the merchant or in one
20046
- * shop. A blocked buyer's hosted checkout and confirms fail with error code
20109
+ * Buyer blocklist: the buyers a merchant refuses to sell to again, in every
20110
+ * shop of the merchant or in one shop. One entry names the buyer by email
20111
+ * address, IP address, customer id and device id, at most one of each and at
20112
+ * least one in total, and blocks a payment when any one of them matches. A
20113
+ * blocked buyer's hosted checkout and confirms fail with error code
20047
20114
  * `DE_14`, and the payments create response marks the buyer with
20048
20115
  * `buyer_blocked` and the entry's `buyer_block_note`. This is not the card
20049
20116
  * blocklist (`client.blocklist`), which is a separate list.
@@ -20057,16 +20124,18 @@ declare class BuyerBlocklist {
20057
20124
  private readonly request;
20058
20125
  constructor(request: RequestFn);
20059
20126
  /**
20060
- * One page of blocked buyers, newest first, filtered by scope, kind and a
20061
- * search over the value and the note. Expired entries are not listed.
20127
+ * One page of blocked buyers, newest first, filtered by scope, by `kind`
20128
+ * (the entries that include an identifier of that kind) and by a search
20129
+ * over every identifier and the note. Expired entries are not listed.
20062
20130
  * `GET /buyer-blocklist`
20063
20131
  */
20064
20132
  list(params?: BuyerBlocklistListQuery): Promise<BuyerBlocklistListResponse>;
20065
20133
  /**
20066
20134
  * Block a buyer in one shop or, without `profile_id`, in every shop of the
20067
- * merchant. The value is normalised as it is matched; a value already
20068
- * blocked in that scope is refused. The change is recorded in the audit log
20069
- * before it is made.
20135
+ * merchant, named by one or more of `email`, `ip`, `customer_id` and
20136
+ * `device_id`. Each identifier is normalised as it is matched; an
20137
+ * identifier another entry already names in that scope is refused. The
20138
+ * change is recorded in the audit log before it is made.
20070
20139
  * `POST /buyer-blocklist`
20071
20140
  */
20072
20141
  create(params: BuyerBlocklistEntryCreateRequest): Promise<BuyerBlocklistEntryResponse>;
@@ -20639,9 +20708,15 @@ declare class Invoices {
20639
20708
  */
20640
20709
  listForProduct(productId: string, params?: Omit<InvoiceListQuery, 'product_id'>, options?: RequestExtras): Promise<InvoiceList>;
20641
20710
  /**
20642
- * The documents of one period as CSV (`text/csv; charset=utf-8`), with the
20643
- * list's filters. Amounts are decimal in each document's currency; drafts
20644
- * have an empty number.
20711
+ * The documents of one period, with the list's filters, as CSV
20712
+ * (`text/csv; charset=utf-8`) by default. Amounts are decimal in each
20713
+ * document's currency; drafts have an empty number.
20714
+ *
20715
+ * Another file is asked for with `Accept` in `options.headers`:
20716
+ * `application/json` (the rows as `records`, with `record_count` and the
20717
+ * filters applied), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
20718
+ * (an Excel workbook) or `application/zip` (the stored PDF of every issued or
20719
+ * voided document, with the CSV as `invoices.csv`; at most 500 documents).
20645
20720
  * `GET /invoices/export`
20646
20721
  */
20647
20722
  export(params: InvoiceExportParams, options?: RequestExtras): Promise<Blob>;
package/dist/index.d.ts CHANGED
@@ -7528,6 +7528,12 @@ interface ProfileCreateRequest {
7528
7528
  * on, they receive the payment id as before.
7529
7529
  */
7530
7530
  send_payment_id_to_processor?: boolean | null;
7531
+ /**
7532
+ * Whether the processor may see the cart line items. Unset or `false` (the
7533
+ * default) sends one neutral line for the order total instead, so methods
7534
+ * that require line items keep working; on, processors receive the items.
7535
+ */
7536
+ send_order_details_to_processor?: boolean | null;
7531
7537
  /**
7532
7538
  * The language this shop's hosted checkout renders in, as one BCP 47 tag
7533
7539
  * (e.g. `de`). Absent means the shop has not chosen one and the buyer's
@@ -7597,6 +7603,11 @@ interface ProfileUpdateRequest {
7597
7603
  * on, they receive the payment id as before.
7598
7604
  */
7599
7605
  send_payment_id_to_processor?: boolean | null;
7606
+ /**
7607
+ * Whether the processor may see the cart line items. Absent leaves the
7608
+ * setting unchanged; send `false` to withhold them again.
7609
+ */
7610
+ send_order_details_to_processor?: boolean | null;
7600
7611
  /**
7601
7612
  * The language this shop's hosted checkout renders in. Absent leaves it
7602
7613
  * unchanged; explicit `null` clears it again.
@@ -7628,6 +7639,8 @@ interface ProfileResponse {
7628
7639
  send_metadata_to_processor: boolean;
7629
7640
  /** Whether the shop's own payment id reaches processors; off, they receive the opaque processor reference instead. */
7630
7641
  send_payment_id_to_processor: boolean;
7642
+ /** Whether the cart line items reach processors; off, they receive one neutral line for the order total instead. */
7643
+ send_order_details_to_processor: boolean;
7631
7644
  is_tax_connector_enabled: boolean;
7632
7645
  is_network_tokenization_enabled: boolean;
7633
7646
  is_auto_retries_enabled: boolean;
@@ -10149,13 +10162,17 @@ interface SellToRestrictionCapabilitiesResponse {
10149
10162
  rails: SellToRestrictionRailCapability[];
10150
10163
  }
10151
10164
  /**
10152
- * What a buyer blocklist entry matches: the buyer's email address (compared
10153
- * without surrounding spaces and without regard to case), one IPv4 or IPv6
10154
- * address (equivalent notations are one entry), or a customer id. A
10155
- * `customer_id` entry always names a shop, because a customer id is unique
10156
- * inside one shop only.
10165
+ * A kind of identifier a buyer blocklist entry can name: the buyer's email
10166
+ * address (compared without surrounding spaces and without regard to case),
10167
+ * one IPv4 or IPv6 address (equivalent notations are one address), a customer
10168
+ * id, or DeloPay's device identifier (`device_id`, as shown on a payment's
10169
+ * device details; the signature after the last `.` may be left out). An entry
10170
+ * naming a `customer_id` always names a shop, because a customer id is unique
10171
+ * inside one shop only. A `device_id` is matched when the buyer opens the
10172
+ * hosted checkout and when the buyer's browser confirms; a merchant's
10173
+ * server-side create carries none.
10157
10174
  */
10158
- type BuyerBlocklistKind = 'email' | 'ip' | 'customer_id';
10175
+ type BuyerBlocklistKind = 'email' | 'ip' | 'customer_id' | 'device_id';
10159
10176
  /**
10160
10177
  * Which entries {@link BuyerBlocklist.list} returns: the entries that block in
10161
10178
  * every shop together with every shop's own entries (`all`), only the entries
@@ -10172,24 +10189,51 @@ interface BuyerBlocklistListQuery {
10172
10189
  scope?: BuyerBlocklistListScope | null;
10173
10190
  /** The shop to list, with `scope: 'shop'`. */
10174
10191
  profile_id?: string | null;
10175
- /** Only entries of this kind. */
10192
+ /**
10193
+ * Only entries that include an identifier of this kind, whatever else they
10194
+ * name: `email` also lists an entry naming an email together with an IP.
10195
+ */
10176
10196
  kind?: BuyerBlocklistKind | null;
10177
- /** Matches the blocked value or the note, ignoring case. */
10197
+ /** Matches any of the entry's identifiers or its note, ignoring case. */
10178
10198
  search?: string | null;
10179
10199
  /** Page size, 1 to 100. Defaults to 20. */
10180
10200
  limit?: number | null;
10181
10201
  /** How many entries to skip. Defaults to 0. */
10182
10202
  offset?: number | null;
10183
10203
  }
10184
- /** Body of {@link BuyerBlocklist.create}: block a buyer. */
10204
+ /**
10205
+ * Body of {@link BuyerBlocklist.create}: block a buyer, named by one or more
10206
+ * identifiers. The entry blocks a payment when any one of them matches. At
10207
+ * least one of `email`, `ip`, `customer_id` and `device_id` is required, and
10208
+ * each identifier may be named by only one entry in the same scope.
10209
+ */
10185
10210
  interface BuyerBlocklistEntryCreateRequest {
10186
- kind: BuyerBlocklistKind;
10187
- /** The email address, IP address or customer id to block. */
10188
- value: string;
10211
+ /** The buyer's email address. */
10212
+ email?: string | null;
10213
+ /** One IPv4 or IPv6 address of the buyer. */
10214
+ ip?: string | null;
10215
+ /** A customer id of the shop named in `profile_id`. */
10216
+ customer_id?: string | null;
10217
+ /** DeloPay's device identifier of the buyer's browser. */
10218
+ device_id?: string | null;
10219
+ /**
10220
+ * One identifier as `kind` and `value`, sent together. When given, it is
10221
+ * added to the identifier fields, and refused when it disagrees with the
10222
+ * field of its kind.
10223
+ *
10224
+ * @deprecated Use `email`, `ip`, `customer_id` or `device_id` instead.
10225
+ */
10226
+ kind?: BuyerBlocklistKind | null;
10227
+ /**
10228
+ * The identifier named by `kind`, sent together with it.
10229
+ *
10230
+ * @deprecated Use `email`, `ip`, `customer_id` or `device_id` instead.
10231
+ */
10232
+ value?: string | null;
10189
10233
  /**
10190
10234
  * The shop the entry blocks in. Omitted, the entry blocks in every shop of
10191
- * the merchant, which a `customer_id` entry cannot, and which only a
10192
- * merchant role may add.
10235
+ * the merchant, which an entry naming a `customer_id` cannot, and which only
10236
+ * a merchant role may add.
10193
10237
  */
10194
10238
  profile_id?: string | null;
10195
10239
  /**
@@ -10209,11 +10253,32 @@ interface BuyerBlocklistEntryDeleteRequest {
10209
10253
  /** Why the buyer is unblocked, kept in the audit log. At most 1024 characters. */
10210
10254
  reason?: string | null;
10211
10255
  }
10212
- /** One blocked buyer. */
10256
+ /**
10257
+ * One blocked buyer. The entry blocks a payment when any one of its
10258
+ * identifiers matches; at least one of them is not `null`.
10259
+ */
10213
10260
  interface BuyerBlocklistEntryResponse {
10214
10261
  id: string;
10262
+ /** The buyer's email address, normalised as it is matched. `null` when the entry names none. */
10263
+ email: string | null;
10264
+ /** The buyer's IP address in canonical form. `null` when the entry names none. */
10265
+ ip: string | null;
10266
+ /** The blocked customer id. `null` when the entry names none. */
10267
+ customer_id: string | null;
10268
+ /** The blocked device identifier, without its signature. `null` when the entry names none. */
10269
+ device_id: string | null;
10270
+ /**
10271
+ * The kind of the entry's first identifier, in the order `customer_id`,
10272
+ * `email`, `ip`, `device_id`.
10273
+ *
10274
+ * @deprecated Read `email`, `ip`, `customer_id` and `device_id` instead.
10275
+ */
10215
10276
  kind: BuyerBlocklistKind;
10216
- /** The blocked value, normalised as it is matched. */
10277
+ /**
10278
+ * The entry's first identifier (see `kind`), normalised as it is matched.
10279
+ *
10280
+ * @deprecated Read `email`, `ip`, `customer_id` and `device_id` instead.
10281
+ */
10217
10282
  value: string;
10218
10283
  /** The shop the entry blocks in. `null` when it blocks in every shop. */
10219
10284
  profile_id: string | null;
@@ -20041,9 +20106,11 @@ declare class SellToRestrictions {
20041
20106
  }
20042
20107
 
20043
20108
  /**
20044
- * Buyer blocklist: the buyers a merchant refuses to sell to again, by email
20045
- * address, IP address or customer id, in every shop of the merchant or in one
20046
- * shop. A blocked buyer's hosted checkout and confirms fail with error code
20109
+ * Buyer blocklist: the buyers a merchant refuses to sell to again, in every
20110
+ * shop of the merchant or in one shop. One entry names the buyer by email
20111
+ * address, IP address, customer id and device id, at most one of each and at
20112
+ * least one in total, and blocks a payment when any one of them matches. A
20113
+ * blocked buyer's hosted checkout and confirms fail with error code
20047
20114
  * `DE_14`, and the payments create response marks the buyer with
20048
20115
  * `buyer_blocked` and the entry's `buyer_block_note`. This is not the card
20049
20116
  * blocklist (`client.blocklist`), which is a separate list.
@@ -20057,16 +20124,18 @@ declare class BuyerBlocklist {
20057
20124
  private readonly request;
20058
20125
  constructor(request: RequestFn);
20059
20126
  /**
20060
- * One page of blocked buyers, newest first, filtered by scope, kind and a
20061
- * search over the value and the note. Expired entries are not listed.
20127
+ * One page of blocked buyers, newest first, filtered by scope, by `kind`
20128
+ * (the entries that include an identifier of that kind) and by a search
20129
+ * over every identifier and the note. Expired entries are not listed.
20062
20130
  * `GET /buyer-blocklist`
20063
20131
  */
20064
20132
  list(params?: BuyerBlocklistListQuery): Promise<BuyerBlocklistListResponse>;
20065
20133
  /**
20066
20134
  * Block a buyer in one shop or, without `profile_id`, in every shop of the
20067
- * merchant. The value is normalised as it is matched; a value already
20068
- * blocked in that scope is refused. The change is recorded in the audit log
20069
- * before it is made.
20135
+ * merchant, named by one or more of `email`, `ip`, `customer_id` and
20136
+ * `device_id`. Each identifier is normalised as it is matched; an
20137
+ * identifier another entry already names in that scope is refused. The
20138
+ * change is recorded in the audit log before it is made.
20070
20139
  * `POST /buyer-blocklist`
20071
20140
  */
20072
20141
  create(params: BuyerBlocklistEntryCreateRequest): Promise<BuyerBlocklistEntryResponse>;
@@ -20639,9 +20708,15 @@ declare class Invoices {
20639
20708
  */
20640
20709
  listForProduct(productId: string, params?: Omit<InvoiceListQuery, 'product_id'>, options?: RequestExtras): Promise<InvoiceList>;
20641
20710
  /**
20642
- * The documents of one period as CSV (`text/csv; charset=utf-8`), with the
20643
- * list's filters. Amounts are decimal in each document's currency; drafts
20644
- * have an empty number.
20711
+ * The documents of one period, with the list's filters, as CSV
20712
+ * (`text/csv; charset=utf-8`) by default. Amounts are decimal in each
20713
+ * document's currency; drafts have an empty number.
20714
+ *
20715
+ * Another file is asked for with `Accept` in `options.headers`:
20716
+ * `application/json` (the rows as `records`, with `record_count` and the
20717
+ * filters applied), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
20718
+ * (an Excel workbook) or `application/zip` (the stored PDF of every issued or
20719
+ * voided document, with the CSV as `invoices.csv`; at most 500 documents).
20645
20720
  * `GET /invoices/export`
20646
20721
  */
20647
20722
  export(params: InvoiceExportParams, options?: RequestExtras): Promise<Blob>;
package/dist/index.js CHANGED
@@ -222,7 +222,7 @@ import {
222
222
  validatePanes,
223
223
  verticalGapValue,
224
224
  visibleCustomFields
225
- } from "./chunk-ILCBRQSO.js";
225
+ } from "./chunk-UVKPIUOO.js";
226
226
  export {
227
227
  AIRWALLEX_AUTOFILL_TREATMENTS,
228
228
  AIRWALLEX_CARD_LAYOUTS,
package/dist/internal.cjs CHANGED
@@ -5391,8 +5391,9 @@ var BuyerBlocklist = class {
5391
5391
  this.request = request;
5392
5392
  }
5393
5393
  /**
5394
- * One page of blocked buyers, newest first, filtered by scope, kind and a
5395
- * search over the value and the note. Expired entries are not listed.
5394
+ * One page of blocked buyers, newest first, filtered by scope, by `kind`
5395
+ * (the entries that include an identifier of that kind) and by a search
5396
+ * over every identifier and the note. Expired entries are not listed.
5396
5397
  * `GET /buyer-blocklist`
5397
5398
  */
5398
5399
  async list(params) {
@@ -5402,9 +5403,10 @@ var BuyerBlocklist = class {
5402
5403
  }
5403
5404
  /**
5404
5405
  * Block a buyer in one shop or, without `profile_id`, in every shop of the
5405
- * merchant. The value is normalised as it is matched; a value already
5406
- * blocked in that scope is refused. The change is recorded in the audit log
5407
- * before it is made.
5406
+ * merchant, named by one or more of `email`, `ip`, `customer_id` and
5407
+ * `device_id`. Each identifier is normalised as it is matched; an
5408
+ * identifier another entry already names in that scope is refused. The
5409
+ * change is recorded in the audit log before it is made.
5408
5410
  * `POST /buyer-blocklist`
5409
5411
  */
5410
5412
  async create(params) {
@@ -6199,9 +6201,15 @@ var Invoices = class {
6199
6201
  });
6200
6202
  }
6201
6203
  /**
6202
- * The documents of one period as CSV (`text/csv; charset=utf-8`), with the
6203
- * list's filters. Amounts are decimal in each document's currency; drafts
6204
- * have an empty number.
6204
+ * The documents of one period, with the list's filters, as CSV
6205
+ * (`text/csv; charset=utf-8`) by default. Amounts are decimal in each
6206
+ * document's currency; drafts have an empty number.
6207
+ *
6208
+ * Another file is asked for with `Accept` in `options.headers`:
6209
+ * `application/json` (the rows as `records`, with `record_count` and the
6210
+ * filters applied), `application/vnd.openxmlformats-officedocument.spreadsheetml.sheet`
6211
+ * (an Excel workbook) or `application/zip` (the stored PDF of every issued or
6212
+ * voided document, with the CSV as `invoices.csv`; at most 500 documents).
6205
6213
  * `GET /invoices/export`
6206
6214
  */
6207
6215
  async export(params, options) {