@paynow-gg/typescript-sdk 2.1.22 → 2.1.24

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.
@@ -422,6 +422,26 @@ export type BansGetBansQuery = {
422
422
  asc?: boolean;
423
423
  };
424
424
  export type BanType = "unknown" | "steam" | "ip" | "customer" | "customer_name" | "email";
425
+ /**
426
+ * Bizum payment method details
427
+ */
428
+ export interface BizumDetailsDto {
429
+ /**
430
+ * The buyer identifier assigned by the local payment processor
431
+ * @example "buyer_abc123"
432
+ */
433
+ buyer_id?: string | null;
434
+ }
435
+ /**
436
+ * BLIK payment method details
437
+ */
438
+ export interface BlikDetailsDto {
439
+ /**
440
+ * The buyer identifier assigned by BLIK
441
+ * @example "buyer_abc123"
442
+ */
443
+ buyer_id?: string | null;
444
+ }
425
445
  export interface CancelSubscriptionRequestDto {
426
446
  /**
427
447
  * Should the subscription be cancelled immediately (false) or on the next billing period (true)?
@@ -500,6 +520,26 @@ export interface CardDetailsDto {
500
520
  */
501
521
  payment_account_reference?: string | null;
502
522
  wallet?: CardWalletDto;
523
+ /**
524
+ * The brand to display for the card, which differs from 'brand' for co-branded cards
525
+ * @example "cartes_bancaires"
526
+ */
527
+ display_brand?: string | null;
528
+ networks?: CardNetworksDto;
529
+ }
530
+ /**
531
+ * Card networks the card can be processed on
532
+ */
533
+ export interface CardNetworksDto {
534
+ /**
535
+ * The networks the card can be processed on
536
+ */
537
+ available: Array<string>;
538
+ /**
539
+ * The network the customer chose to process the card on
540
+ * @example "cartes_bancaires"
541
+ */
542
+ preferred?: string | null;
503
543
  }
504
544
  /**
505
545
  * Digital wallet details for a card
@@ -510,6 +550,11 @@ export interface CardWalletDto {
510
550
  * @example "apple_pay"
511
551
  */
512
552
  type: string;
553
+ /**
554
+ * The last 4 digits of the device account number, for tokenized cards
555
+ * @example 9876
556
+ */
557
+ dynamic_last4?: string | null;
513
558
  }
514
559
  /**
515
560
  * Cash App payment method details
@@ -1548,6 +1593,7 @@ export interface CreateWebhookDto {
1548
1593
  discord_title?: string | null;
1549
1594
  discord_color?: string | null;
1550
1595
  discord_format?: WebhookDiscordFormatDto;
1596
+ discord_skip_zero_total_orders?: boolean | null;
1551
1597
  }
1552
1598
  export interface CreateWebstoreModuleDto {
1553
1599
  /**
@@ -2731,7 +2777,22 @@ export interface EmailTemplateResult {
2731
2777
  email_template?: EmailTemplateDto;
2732
2778
  }
2733
2779
  export type EmailTemplateStateDto = "unspecified" | "inactive" | "activating" | "active";
2734
- export type EmailTemplateTypeDto = "unspecified" | "layout" | "password_reset" | "email_verification" | "email_change" | "email_changed_notification" | "forgot_password" | "logged_in_new_location" | "welcome_login" | "order_completed" | "refund_initiated" | "subscription_canceled" | "subscription_renewal_failed" | "subscription_price_changed" | "subscription_change_verification_code" | "subscription_renewal_upcoming" | "subscription_manage_login" | "subscription_manage_no_history" | "payout_created" | "payout_completed" | "store_invite" | "store_lock_changed" | "abandoned_checkout_recovery_attempt" | "purchase_follow_up_attempt" | "downloadable_file_granted" | "discord_invite_link" | "gift_card_created" | "trial_ending_soon" | "invoice_generated" | "payment_method_type_approval" | "store_trust_event" | "data_subject_request_export_completed";
2780
+ export type EmailTemplateTypeDto = "unspecified" | "layout" | "password_reset" | "email_verification" | "email_change" | "email_changed_notification" | "forgot_password" | "logged_in_new_location" | "welcome_login" | "order_completed" | "refund_initiated" | "subscription_canceled" | "subscription_renewal_failed" | "subscription_price_changed" | "subscription_change_verification_code" | "subscription_renewal_upcoming" | "subscription_manage_login" | "subscription_manage_no_history" | "payout_created" | "payout_completed" | "store_invite" | "store_lock_changed" | "abandoned_checkout_recovery_attempt" | "purchase_follow_up_attempt" | "downloadable_file_granted" | "discord_invite_link" | "gift_card_created" | "trial_ending_soon" | "invoice_generated" | "payment_method_type_approval" | "store_trust_event" | "data_subject_request_export_completed" | "fast_checkout_deletion" | "fast_checkout_payment_method_created" | "fast_checkout_owner_device_verified";
2781
+ /**
2782
+ * EPS payment method details
2783
+ */
2784
+ export interface EpsDetailsDto {
2785
+ /**
2786
+ * The bank of the customer
2787
+ * @example "erste_bank_und_sparkassen"
2788
+ */
2789
+ bank?: string | null;
2790
+ /**
2791
+ * The verified name of the account owner
2792
+ * @example "John Doe"
2793
+ */
2794
+ payer_name?: string | null;
2795
+ }
2735
2796
  export interface ExecutedWebhookDto {
2736
2797
  id: FlakeId;
2737
2798
  /**
@@ -3445,6 +3506,16 @@ export type InvoicesListInvoicesQuery = {
3445
3506
  };
3446
3507
  export type InvoiceStatusDto = "invalid" | "pending" | "generated" | "failed";
3447
3508
  export type InvoiceTypeDto = "invalid" | "invoice" | "credit_note";
3509
+ /**
3510
+ * Kakao Pay payment method details
3511
+ */
3512
+ export interface KakaoPayDetailsDto {
3513
+ /**
3514
+ * The buyer identifier assigned by the local payment processor
3515
+ * @example "buyer_abc123"
3516
+ */
3517
+ buyer_id?: string | null;
3518
+ }
3448
3519
  /**
3449
3520
  * Klarna payment method details
3450
3521
  */
@@ -3460,6 +3531,26 @@ export interface KlarnaDetailsDto {
3460
3531
  */
3461
3532
  method_category?: string | null;
3462
3533
  }
3534
+ /**
3535
+ * Korean card payment method details
3536
+ */
3537
+ export interface KrCardDetailsDto {
3538
+ /**
3539
+ * The local card brand
3540
+ * @example "shinhan"
3541
+ */
3542
+ brand?: string | null;
3543
+ /**
3544
+ * The last 4 digits of the card number
3545
+ * @example 4242
3546
+ */
3547
+ last4?: string | null;
3548
+ /**
3549
+ * The buyer identifier assigned by the local payment processor
3550
+ * @example "buyer_abc123"
3551
+ */
3552
+ buyer_id?: string | null;
3553
+ }
3463
3554
  /**
3464
3555
  * The last payment decline object.
3465
3556
  */
@@ -3514,6 +3605,11 @@ export interface LinkDetailsDto {
3514
3605
  * @example "john.doe@example.com"
3515
3606
  */
3516
3607
  email: string;
3608
+ /**
3609
+ * The country code of the funding source behind the Link payment
3610
+ * @example "US"
3611
+ */
3612
+ country?: string | null;
3517
3613
  }
3518
3614
  /**
3519
3615
  * Represents the configuration settings for a coupon applied to marketing features.
@@ -3735,6 +3831,16 @@ export interface MoneyDto_V2 {
3735
3831
  */
3736
3832
  amount_minor_units: number;
3737
3833
  }
3834
+ /**
3835
+ * Naver Pay payment method details
3836
+ */
3837
+ export interface NaverPayDetailsDto {
3838
+ /**
3839
+ * The buyer identifier assigned by the local payment processor
3840
+ * @example "buyer_abc123"
3841
+ */
3842
+ buyer_id?: string | null;
3843
+ }
3738
3844
  /**
3739
3845
  * Represents a link in the storefront's navigation. Each link points at a tag, and links nest under
3740
3846
  * one another through 'parent_node_id' to form the navigation tree.
@@ -4397,6 +4503,16 @@ export interface PayByBankDetailsDto {
4397
4503
  */
4398
4504
  payer_name?: string | null;
4399
4505
  }
4506
+ /**
4507
+ * Payco payment method details
4508
+ */
4509
+ export interface PaycoDetailsDto {
4510
+ /**
4511
+ * The buyer identifier assigned by the local payment processor
4512
+ * @example "buyer_abc123"
4513
+ */
4514
+ buyer_id?: string | null;
4515
+ }
4400
4516
  export interface PaymentAcceptanceDistributionDataDto {
4401
4517
  /**
4402
4518
  * @format int64
@@ -4628,6 +4744,16 @@ export interface PaymentMethodDetailsDto {
4628
4744
  pay_by_bank?: PayByBankDetailsDto;
4629
4745
  pix?: PixDetailsDto;
4630
4746
  paysafecard?: PaysafeCardDetailsDto;
4747
+ kr_card?: KrCardDetailsDto;
4748
+ kakao_pay?: KakaoPayDetailsDto;
4749
+ naver_pay?: NaverPayDetailsDto;
4750
+ samsung_pay?: SamsungPayDetailsDto;
4751
+ payco?: PaycoDetailsDto;
4752
+ bizum?: BizumDetailsDto;
4753
+ blik?: BlikDetailsDto;
4754
+ swish?: SwishDetailsDto;
4755
+ upi?: UpiDetailsDto;
4756
+ eps?: EpsDetailsDto;
4631
4757
  }
4632
4758
  export interface PaymentMethodDistributionDataDto {
4633
4759
  /**
@@ -4645,7 +4771,6 @@ export interface PaymentMethodDistributionDto {
4645
4771
  */
4646
4772
  export interface PaymentMethodDto {
4647
4773
  id: FlakeId;
4648
- customer_id: FlakeId;
4649
4774
  /**
4650
4775
  * The payment gateway provider
4651
4776
  */
@@ -6208,6 +6333,16 @@ export interface SalesTaxJurisdictionTaxDto {
6208
6333
  */
6209
6334
  tax_rate: string;
6210
6335
  }
6336
+ /**
6337
+ * Samsung Pay payment method details
6338
+ */
6339
+ export interface SamsungPayDetailsDto {
6340
+ /**
6341
+ * The buyer identifier assigned by the local payment processor
6342
+ * @example "buyer_abc123"
6343
+ */
6344
+ buyer_id?: string | null;
6345
+ }
6211
6346
  export interface SearchDashboardResponseDto {
6212
6347
  stores: Array<StoreResult>;
6213
6348
  customers: Array<CustomerResult>;
@@ -6342,6 +6477,15 @@ export interface SetDiscordActionDto {
6342
6477
  role_id?: FlakeId;
6343
6478
  message?: string | null;
6344
6479
  }
6480
+ /**
6481
+ * Represents a request to enable or disable a store's hosted webstore.
6482
+ */
6483
+ export interface SetWebstoreActiveRequestDto {
6484
+ /**
6485
+ * Whether the hosted webstore is served to customers. A disabled webstore shows a not-active page.
6486
+ */
6487
+ is_active: boolean;
6488
+ }
6345
6489
  /**
6346
6490
  * Represents a request to attach a custom domain to a webstore.
6347
6491
  */
@@ -8327,6 +8471,21 @@ export interface SubscriptionsSummaryForRangeDto_V2 {
8327
8471
  * - `canceled`: The subscription has been canceled and will no longer renew.
8328
8472
  */
8329
8473
  export type SubscriptionStatusDto = "invalid" | "created" | "active" | "canceled";
8474
+ /**
8475
+ * Swish payment method details
8476
+ */
8477
+ export interface SwishDetailsDto {
8478
+ /**
8479
+ * A unique fingerprint for this Swish account
8480
+ * @example "fingerprint_xyz789"
8481
+ */
8482
+ fingerprint?: string | null;
8483
+ /**
8484
+ * The last 4 digits of the phone number of the Swish account
8485
+ * @example 6789
8486
+ */
8487
+ verified_phone_last4?: string | null;
8488
+ }
8330
8489
  export interface TagDto {
8331
8490
  id: FlakeId;
8332
8491
  store_id: FlakeId;
@@ -9320,6 +9479,7 @@ export interface UpdateWebhookDto {
9320
9479
  discord_title?: string | null;
9321
9480
  discord_color?: string | null;
9322
9481
  discord_format?: WebhookDiscordFormatDto;
9482
+ discord_skip_zero_total_orders?: boolean | null;
9323
9483
  }
9324
9484
  export interface UpdateWebstoreModuleDto {
9325
9485
  /**
@@ -9395,6 +9555,16 @@ export interface UpdateWebstoreTemplateVariableDto {
9395
9555
  */
9396
9556
  value?: string;
9397
9557
  }
9558
+ /**
9559
+ * UPI payment method details
9560
+ */
9561
+ export interface UpiDetailsDto {
9562
+ /**
9563
+ * The Virtual Payment Address of the customer
9564
+ * @example "johndoe@upi"
9565
+ */
9566
+ vpa?: string | null;
9567
+ }
9398
9568
  export type UpsellDiscountTypeDto = "unknown" | "none" | "fixed" | "percentage";
9399
9569
  /**
9400
9570
  * - `unknown`: Unknown upsell type.
@@ -9786,6 +9956,11 @@ export interface WebhookSubscriptionDto {
9786
9956
  */
9787
9957
  discord_color?: string | null;
9788
9958
  discord_format?: WebhookDiscordFormatDto;
9959
+ /**
9960
+ * Whether orders with a total of zero are left out of the 'OnOrderCompleted' deliveries. Only used
9961
+ * by the 'DiscordV1' type.
9962
+ */
9963
+ discord_skip_zero_total_orders: boolean;
9789
9964
  }
9790
9965
  /**
9791
9966
  * Specifies the payload format a webhook delivers.