@delopay/sdk 0.384.0 → 0.385.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.
@@ -17732,10 +17732,17 @@ interface StatementAdjustmentCreateRequest {
17732
17732
  }
17733
17733
  interface SettlementLineListParams {
17734
17734
  profile_id: string;
17735
- /** Calendar year (UTC) of the period to list. */
17736
- year: number;
17737
- /** Calendar month 1..=12 (UTC). */
17738
- month: number;
17735
+ /** Calendar year (UTC) of the month to list, with `month`. */
17736
+ year?: number;
17737
+ /** Calendar month 1..=12 (UTC), with `year`. */
17738
+ month?: number;
17739
+ /**
17740
+ * The start of one of the shop's statement periods, as
17741
+ * {@link Settlement.listPeriods} returns it (ISO 8601, UTC). Give this, or
17742
+ * `year` and `month`, not both: it is how a weekly or two-weekly statement's
17743
+ * own lines are read. A period named this way is listed whole.
17744
+ */
17745
+ period_start?: string;
17739
17746
  /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
17740
17747
  test_mode: boolean;
17741
17748
  limit?: number;
@@ -17732,10 +17732,17 @@ interface StatementAdjustmentCreateRequest {
17732
17732
  }
17733
17733
  interface SettlementLineListParams {
17734
17734
  profile_id: string;
17735
- /** Calendar year (UTC) of the period to list. */
17736
- year: number;
17737
- /** Calendar month 1..=12 (UTC). */
17738
- month: number;
17735
+ /** Calendar year (UTC) of the month to list, with `month`. */
17736
+ year?: number;
17737
+ /** Calendar month 1..=12 (UTC), with `year`. */
17738
+ month?: number;
17739
+ /**
17740
+ * The start of one of the shop's statement periods, as
17741
+ * {@link Settlement.listPeriods} returns it (ISO 8601, UTC). Give this, or
17742
+ * `year` and `month`, not both: it is how a weekly or two-weekly statement's
17743
+ * own lines are read. A period named this way is listed whole.
17744
+ */
17745
+ period_start?: string;
17739
17746
  /** Environment switch — see {@link SettlementStatementListParams.test_mode}. */
17740
17747
  test_mode: boolean;
17741
17748
  limit?: number;
package/dist/index.cjs CHANGED
@@ -10435,6 +10435,7 @@ var Settlement = class {
10435
10435
  profile_id: params.profile_id,
10436
10436
  year: params.year,
10437
10437
  month: params.month,
10438
+ period_start: params.period_start,
10438
10439
  test_mode: params.test_mode,
10439
10440
  limit: params.limit,
10440
10441
  offset: params.offset