@paynow-gg/typescript-sdk 1.0.41 → 1.0.43

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.
@@ -2191,7 +2191,7 @@ export interface components {
2191
2191
  };
2192
2192
  /** @description Represents a line item in a checkout session request.
2193
2193
  * Opposed to CreateCheckoutSessionLineDto, this is used while creating a checkout session using the Management API,
2194
- * and allows for creating inline products (which is subject to special approval) */
2194
+ * and allows for creating inline products and payout splits (subject to special approval) */
2195
2195
  CreateCheckoutSessionLineManagementDto: {
2196
2196
  /** @description Determines whether this line should create a subscription */
2197
2197
  subscription?: null | boolean;
@@ -2212,12 +2212,32 @@ export interface components {
2212
2212
  };
2213
2213
  product_id?: components["schemas"]["FlakeId"];
2214
2214
  inline_product?: components["schemas"]["InlineProductCreateDto"];
2215
+ /** @description Optional payout splits for line items (requires approval) */
2216
+ payout_splits?: null | components["schemas"]["CreateCheckoutSessionLineManagementPayoutSplitDto"][];
2215
2217
  /** @description Optional metadata to associate with the checkout session line.
2216
2218
  * Do not store any sensitive information here. */
2217
2219
  metadata?: null | {
2218
2220
  [key: string]: string;
2219
2221
  };
2220
2222
  };
2223
+ CreateCheckoutSessionLineManagementPayoutSplitDto: {
2224
+ /** @description The ID of the user's payout balance. */
2225
+ payout_id: string;
2226
+ /**
2227
+ * Format: int64
2228
+ * @description The percentage of the line amount this user receives (in basis points, e.g., 5000 = 50%)
2229
+ * NOTE: The last payout split needs to have a null percentage set (so the remaining amount gets properly allocated)
2230
+ * @example 5000
2231
+ */
2232
+ percentage?: null | number;
2233
+ /**
2234
+ * Format: int64
2235
+ * @description The platform fee percentage applied to this split (in basis points)
2236
+ * Only applicable to platforms.
2237
+ * @example 500
2238
+ */
2239
+ platform_fee?: null | number;
2240
+ };
2221
2241
  /** @description Request to create a new checkout session from your back-end server using the management API.
2222
2242
  * `customer_id` needs to be specified explicitly here instead of using a Customer token. */
2223
2243
  CreateCheckoutSessionManagementDto: {
@@ -2337,6 +2357,8 @@ export interface components {
2337
2357
  show_all_payment_methods_for_subscriptions: boolean;
2338
2358
  store_tax_inclusive_pricing: boolean;
2339
2359
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
2360
+ adaptive_currency_enabled: boolean;
2361
+ show_adaptive_currency_on_storefront: boolean;
2340
2362
  };
2341
2363
  CreateTrialEligibilityOverrideDto: {
2342
2364
  product_id: components["schemas"]["FlakeId"];
@@ -3219,6 +3241,66 @@ export interface components {
3219
3241
  * @example $0.00
3220
3242
  */
3221
3243
  giftcard_usage_amount_str: string;
3244
+ /**
3245
+ * @description The presentment currency code used for this order (currency shown to customer)
3246
+ * @example eur
3247
+ */
3248
+ presentment_currency: string;
3249
+ /**
3250
+ * Format: int32
3251
+ * @description The presentment subtotal amount in smallest currency unit
3252
+ * @example 9995
3253
+ */
3254
+ presentment_subtotal_amount: number;
3255
+ /**
3256
+ * @description The presentment subtotal amount formatted as a string
3257
+ * @example €99.95
3258
+ */
3259
+ readonly presentment_subtotal_amount_str: string;
3260
+ /**
3261
+ * Format: int32
3262
+ * @description The presentment discount amount in smallest currency unit
3263
+ * @example 500
3264
+ */
3265
+ presentment_discount_amount: number;
3266
+ /**
3267
+ * @description The presentment discount amount formatted as a string
3268
+ * @example €5.00
3269
+ */
3270
+ readonly presentment_discount_amount_str: string;
3271
+ /**
3272
+ * Format: int32
3273
+ * @description The presentment gift card usage amount in smallest currency unit
3274
+ * @example 0
3275
+ */
3276
+ presentment_giftcard_usage_amount: number;
3277
+ /**
3278
+ * @description The presentment gift card usage amount formatted as a string
3279
+ * @example €0.00
3280
+ */
3281
+ readonly presentment_giftcard_usage_amount_str: string;
3282
+ /**
3283
+ * Format: int32
3284
+ * @description The presentment tax amount in smallest currency unit
3285
+ * @example 999
3286
+ */
3287
+ presentment_tax_amount: number;
3288
+ /**
3289
+ * @description The presentment tax amount formatted as a string
3290
+ * @example €9.99
3291
+ */
3292
+ readonly presentment_tax_amount_str: string;
3293
+ /**
3294
+ * Format: int32
3295
+ * @description The presentment total amount in smallest currency unit
3296
+ * @example 10494
3297
+ */
3298
+ presentment_total_amount: number;
3299
+ /**
3300
+ * @description The presentment total amount formatted as a string
3301
+ * @example €104.94
3302
+ */
3303
+ readonly presentment_total_amount_str: string;
3222
3304
  /**
3223
3305
  * Format: date-time
3224
3306
  * @description The date and time when this order was created
@@ -3344,6 +3426,61 @@ export interface components {
3344
3426
  * @example $21.99
3345
3427
  */
3346
3428
  total_amount_str: string;
3429
+ /**
3430
+ * Format: int32
3431
+ * @description The presentment subtotal amount for this order line
3432
+ * @example 1999
3433
+ */
3434
+ presentment_subtotal_amount: number;
3435
+ /**
3436
+ * @description The presentment subtotal amount formatted as a string
3437
+ * @example €19.99
3438
+ */
3439
+ readonly presentment_subtotal_amount_str: string;
3440
+ /**
3441
+ * Format: int32
3442
+ * @description The presentment discount amount for this order line
3443
+ * @example 0
3444
+ */
3445
+ presentment_discount_amount: number;
3446
+ /**
3447
+ * @description The presentment discount amount formatted as a string
3448
+ * @example €0.00
3449
+ */
3450
+ readonly presentment_discount_amount_str: string;
3451
+ /**
3452
+ * Format: int32
3453
+ * @description The presentment tax amount for this order line
3454
+ * @example 200
3455
+ */
3456
+ presentment_tax_amount: number;
3457
+ /**
3458
+ * @description The presentment tax amount formatted as a string
3459
+ * @example €2.00
3460
+ */
3461
+ readonly presentment_tax_amount_str: string;
3462
+ /**
3463
+ * Format: int32
3464
+ * @description The presentment gift card usage amount for this order line
3465
+ * @example 0
3466
+ */
3467
+ presentment_giftcard_usage_amount: number;
3468
+ /**
3469
+ * @description The presentment gift card usage amount formatted as a string
3470
+ * @example €0.00
3471
+ */
3472
+ readonly presentment_giftcard_usage_amount_str: string;
3473
+ /**
3474
+ * Format: int32
3475
+ * @description The presentment total amount for this order line
3476
+ * @example 2199
3477
+ */
3478
+ presentment_total_amount: number;
3479
+ /**
3480
+ * @description The presentment total amount formatted as a string
3481
+ * @example €21.99
3482
+ */
3483
+ readonly presentment_total_amount_str: string;
3347
3484
  selected_gameserver_id?: components["schemas"]["FlakeId"];
3348
3485
  /**
3349
3486
  * @description Indicates whether tax is included in the base price, or added on top
@@ -4553,6 +4690,10 @@ export interface components {
4553
4690
  /** @description Whether store pricing is tax-inclusive. */
4554
4691
  store_tax_inclusive_pricing: boolean;
4555
4692
  block_prepaid_cards: components["schemas"]["PrepaidCardsBlockingTypeDto"];
4693
+ /** @description Whether the 'Adaptive Currency' feature is enabled. */
4694
+ adaptive_currency_enabled: boolean;
4695
+ /** @description Whether the displayed currency on the storefront should be the Adaptive Currency by default. */
4696
+ show_adaptive_currency_on_storefront: boolean;
4556
4697
  /**
4557
4698
  * Format: int64
4558
4699
  * @description Maximum checkout amount allowed in cents.
@@ -4704,6 +4845,73 @@ export interface components {
4704
4845
  initial_total_amount: number;
4705
4846
  /** @description Formatted string representation of the initial total amount. */
4706
4847
  initial_total_amount_str: string;
4848
+ /** @description Presentment currency code (currency shown to customer). */
4849
+ presentment_currency?: null | string;
4850
+ /**
4851
+ * Format: int64
4852
+ * @description Presentment subtotal amount in smallest currency units.
4853
+ */
4854
+ presentment_subtotal_amount?: null | number;
4855
+ /** @description Formatted string representation of the presentment subtotal amount. */
4856
+ readonly presentment_subtotal_amount_str?: null | string;
4857
+ /**
4858
+ * Format: int64
4859
+ * @description Presentment discount amount in smallest currency units.
4860
+ */
4861
+ presentment_discount_amount?: null | number;
4862
+ /** @description Formatted string representation of the presentment discount amount. */
4863
+ readonly presentment_discount_amount_str?: null | string;
4864
+ /**
4865
+ * Format: int64
4866
+ * @description Presentment tax amount in smallest currency units.
4867
+ */
4868
+ presentment_tax_amount?: null | number;
4869
+ /** @description Formatted string representation of the presentment tax amount. */
4870
+ readonly presentment_tax_amount_str?: null | string;
4871
+ /**
4872
+ * Format: int64
4873
+ * @description Presentment total amount in smallest currency units.
4874
+ */
4875
+ presentment_total_amount?: null | number;
4876
+ /** @description Formatted string representation of the presentment total amount. */
4877
+ readonly presentment_total_amount_str?: null | string;
4878
+ /**
4879
+ * Format: int64
4880
+ * @description Initial presentment discount amount in smallest currency units for the first billing cycle.
4881
+ */
4882
+ initial_presentment_discount_amount?: null | number;
4883
+ /** @description Formatted string representation of the initial presentment discount amount. */
4884
+ readonly initial_presentment_discount_amount_str?: null | string;
4885
+ /**
4886
+ * Format: int64
4887
+ * @description Initial presentment subtotal amount in smallest currency units for the first billing cycle.
4888
+ */
4889
+ initial_presentment_subtotal_amount?: null | number;
4890
+ /** @description Formatted string representation of the initial presentment subtotal amount. */
4891
+ readonly initial_presentment_subtotal_amount_str?: null | string;
4892
+ /**
4893
+ * Format: int64
4894
+ * @description Initial presentment gift card usage amount in smallest currency units.
4895
+ */
4896
+ initial_presentment_giftcard_usage_amount?: null | number;
4897
+ /** @description Formatted string representation of the initial presentment gift card usage amount. */
4898
+ readonly initial_presentment_giftcard_usage_amount_str?: null | string;
4899
+ /**
4900
+ * Format: int64
4901
+ * @description Initial presentment tax amount in smallest currency units for the first billing cycle.
4902
+ */
4903
+ initial_presentment_tax_amount?: null | number;
4904
+ /** @description Formatted string representation of the initial presentment tax amount. */
4905
+ readonly initial_presentment_tax_amount_str?: null | string;
4906
+ /**
4907
+ * Format: int64
4908
+ * @description Initial presentment total amount in smallest currency units for the first billing cycle.
4909
+ */
4910
+ initial_presentment_total_amount?: null | number;
4911
+ /** @description Formatted string representation of the initial presentment total amount. */
4912
+ readonly initial_presentment_total_amount_str?: null | string;
4913
+ /** @description The foreign exchange rate applied (if presentment currency differs from settlement currency). */
4914
+ fx_rate?: null | string;
4707
4915
  /** @description Identifier for the pricing region associated with this subscription. */
4708
4916
  pricing_region_id?: null | string;
4709
4917
  /**
@@ -5079,6 +5287,8 @@ export interface components {
5079
5287
  show_all_payment_methods_for_subscriptions?: boolean;
5080
5288
  store_tax_inclusive_pricing?: boolean;
5081
5289
  block_prepaid_cards?: components["schemas"]["PrepaidCardsBlockingTypeDto"];
5290
+ adaptive_currency_enabled?: boolean;
5291
+ show_adaptive_currency_on_storefront?: boolean;
5082
5292
  };
5083
5293
  UpdateTrialEligibilityOverrideDto: {
5084
5294
  product_id?: components["schemas"]["FlakeId"];