@delopay/sdk 0.86.0 → 0.87.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
@@ -149,6 +149,13 @@ interface PaymentCreateRequest {
149
149
  description?: string | null;
150
150
  /** URL to redirect the customer to after payment (required for redirect-based methods). */
151
151
  return_url?: string | null;
152
+ /**
153
+ * How long the client secret / hosted checkout link stays usable, in
154
+ * seconds from creation. Omit to inherit the shop's default
155
+ * (`business_profile.session_expiry`, itself defaulting to 15 minutes).
156
+ * The backend rejects values outside its accepted window with a 400.
157
+ */
158
+ session_expiry?: number | null;
152
159
  /** Descriptor shown on the customer's bank statement (name portion). */
153
160
  statement_descriptor_name?: string | null;
154
161
  /** Descriptor shown on the customer's bank statement (suffix portion). */
@@ -211,6 +218,8 @@ interface PaymentCreateRequest {
211
218
  interface PaymentUpdateRequest {
212
219
  amount?: number | null;
213
220
  currency?: Currency | null;
221
+ /** See {@link PaymentCreateRequest.session_expiry}. */
222
+ session_expiry?: number | null;
214
223
  order_tax_amount?: number | null;
215
224
  amount_to_capture?: number | null;
216
225
  shipping_cost?: number | null;
@@ -346,6 +355,14 @@ interface PaymentResponse {
346
355
  client_secret?: string | null;
347
356
  /** ISO 8601 timestamp when the payment was created. */
348
357
  created?: string | null;
358
+ /**
359
+ * ISO 8601 timestamp when the payment (its client secret / hosted
360
+ * checkout link) expires — the backend's resolved `session_expiry`, which
361
+ * may differ from the requested one if it was omitted or clamped.
362
+ * Backends predating the field omit the key entirely (`undefined` here);
363
+ * backends that expose it may still send `null` when no expiry applies.
364
+ */
365
+ expires_on?: string | null;
349
366
  /** ISO 8601 timestamp of the last status update. */
350
367
  last_updated?: string | null;
351
368
  /** Whether the payment method is saved for future use. */
@@ -3856,11 +3873,15 @@ interface OperationLimitRule {
3856
3873
  merchant_id: string;
3857
3874
  operation: LimitedOperation;
3858
3875
  scope: OperationLimitScope;
3859
- scope_id?: string | null;
3860
- max_amount_per_operation?: number | null;
3861
- max_total_amount_per_window?: number | null;
3862
- max_count_per_window?: number | null;
3863
- max_payment_age_days?: number | null;
3876
+ /**
3877
+ * Always present on the wire (nullable, never omitted) — as are the four
3878
+ * limit fields below: the backend serializes every `Option` key.
3879
+ */
3880
+ scope_id: string | null;
3881
+ max_amount_per_operation: number | null;
3882
+ max_total_amount_per_window: number | null;
3883
+ max_count_per_window: number | null;
3884
+ max_payment_age_days: number | null;
3864
3885
  window_hours: number;
3865
3886
  /** ISO currency code of the amount fields. */
3866
3887
  currency: string;
package/dist/index.d.ts CHANGED
@@ -149,6 +149,13 @@ interface PaymentCreateRequest {
149
149
  description?: string | null;
150
150
  /** URL to redirect the customer to after payment (required for redirect-based methods). */
151
151
  return_url?: string | null;
152
+ /**
153
+ * How long the client secret / hosted checkout link stays usable, in
154
+ * seconds from creation. Omit to inherit the shop's default
155
+ * (`business_profile.session_expiry`, itself defaulting to 15 minutes).
156
+ * The backend rejects values outside its accepted window with a 400.
157
+ */
158
+ session_expiry?: number | null;
152
159
  /** Descriptor shown on the customer's bank statement (name portion). */
153
160
  statement_descriptor_name?: string | null;
154
161
  /** Descriptor shown on the customer's bank statement (suffix portion). */
@@ -211,6 +218,8 @@ interface PaymentCreateRequest {
211
218
  interface PaymentUpdateRequest {
212
219
  amount?: number | null;
213
220
  currency?: Currency | null;
221
+ /** See {@link PaymentCreateRequest.session_expiry}. */
222
+ session_expiry?: number | null;
214
223
  order_tax_amount?: number | null;
215
224
  amount_to_capture?: number | null;
216
225
  shipping_cost?: number | null;
@@ -346,6 +355,14 @@ interface PaymentResponse {
346
355
  client_secret?: string | null;
347
356
  /** ISO 8601 timestamp when the payment was created. */
348
357
  created?: string | null;
358
+ /**
359
+ * ISO 8601 timestamp when the payment (its client secret / hosted
360
+ * checkout link) expires — the backend's resolved `session_expiry`, which
361
+ * may differ from the requested one if it was omitted or clamped.
362
+ * Backends predating the field omit the key entirely (`undefined` here);
363
+ * backends that expose it may still send `null` when no expiry applies.
364
+ */
365
+ expires_on?: string | null;
349
366
  /** ISO 8601 timestamp of the last status update. */
350
367
  last_updated?: string | null;
351
368
  /** Whether the payment method is saved for future use. */
@@ -3856,11 +3873,15 @@ interface OperationLimitRule {
3856
3873
  merchant_id: string;
3857
3874
  operation: LimitedOperation;
3858
3875
  scope: OperationLimitScope;
3859
- scope_id?: string | null;
3860
- max_amount_per_operation?: number | null;
3861
- max_total_amount_per_window?: number | null;
3862
- max_count_per_window?: number | null;
3863
- max_payment_age_days?: number | null;
3876
+ /**
3877
+ * Always present on the wire (nullable, never omitted) — as are the four
3878
+ * limit fields below: the backend serializes every `Option` key.
3879
+ */
3880
+ scope_id: string | null;
3881
+ max_amount_per_operation: number | null;
3882
+ max_total_amount_per_window: number | null;
3883
+ max_count_per_window: number | null;
3884
+ max_payment_age_days: number | null;
3864
3885
  window_hours: number;
3865
3886
  /** ISO currency code of the amount fields. */
3866
3887
  currency: string;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@delopay/sdk",
3
- "version": "0.86.0",
3
+ "version": "0.87.0",
4
4
  "description": "Official Delopay TypeScript SDK",
5
5
  "type": "module",
6
6
  "sideEffects": false,