@whop/sdk 0.0.11 → 0.0.13
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/CHANGELOG.md +31 -0
- package/client.d.mts +4 -4
- package/client.d.mts.map +1 -1
- package/client.d.ts +4 -4
- package/client.d.ts.map +1 -1
- package/client.js.map +1 -1
- package/client.mjs.map +1 -1
- package/package.json +1 -1
- package/resources/checkout-configurations.d.mts +4 -0
- package/resources/checkout-configurations.d.mts.map +1 -1
- package/resources/checkout-configurations.d.ts +4 -0
- package/resources/checkout-configurations.d.ts.map +1 -1
- package/resources/companies.d.mts +47 -3
- package/resources/companies.d.mts.map +1 -1
- package/resources/companies.d.ts +47 -3
- package/resources/companies.d.ts.map +1 -1
- package/resources/companies.js +13 -1
- package/resources/companies.js.map +1 -1
- package/resources/companies.mjs +13 -1
- package/resources/companies.mjs.map +1 -1
- package/resources/index.d.mts +2 -2
- package/resources/index.d.mts.map +1 -1
- package/resources/index.d.ts +2 -2
- package/resources/index.d.ts.map +1 -1
- package/resources/index.js.map +1 -1
- package/resources/index.mjs.map +1 -1
- package/resources/plans.d.mts +8 -0
- package/resources/plans.d.mts.map +1 -1
- package/resources/plans.d.ts +8 -0
- package/resources/plans.d.ts.map +1 -1
- package/resources/products.d.mts +1 -1
- package/resources/products.d.ts +1 -1
- package/resources/shared.d.mts +4 -0
- package/resources/shared.d.mts.map +1 -1
- package/resources/shared.d.ts +4 -0
- package/resources/shared.d.ts.map +1 -1
- package/resources/webhooks.d.mts +269 -2
- package/resources/webhooks.d.mts.map +1 -1
- package/resources/webhooks.d.ts +269 -2
- package/resources/webhooks.d.ts.map +1 -1
- package/resources/webhooks.js.map +1 -1
- package/resources/webhooks.mjs.map +1 -1
- package/resources/withdrawals.d.mts +26 -34
- package/resources/withdrawals.d.mts.map +1 -1
- package/resources/withdrawals.d.ts +26 -34
- package/resources/withdrawals.d.ts.map +1 -1
- package/src/client.ts +6 -0
- package/src/resources/checkout-configurations.ts +5 -0
- package/src/resources/companies.ts +61 -2
- package/src/resources/index.ts +3 -0
- package/src/resources/plans.ts +10 -0
- package/src/resources/products.ts +1 -1
- package/src/resources/shared.ts +5 -0
- package/src/resources/webhooks.ts +417 -0
- package/src/resources/withdrawals.ts +76 -95
- package/src/version.ts +1 -1
- package/version.d.mts +1 -1
- package/version.d.ts +1 -1
- package/version.js +1 -1
- package/version.mjs +1 -1
|
@@ -6,6 +6,7 @@ import * as PaymentsAPI from './payments';
|
|
|
6
6
|
import * as RefundsAPI from './refunds';
|
|
7
7
|
import * as SetupIntentsAPI from './setup-intents';
|
|
8
8
|
import * as Shared from './shared';
|
|
9
|
+
import * as WithdrawalsAPI from './withdrawals';
|
|
9
10
|
import { Webhook } from 'standardwebhooks';
|
|
10
11
|
|
|
11
12
|
export class Webhooks extends APIResource {
|
|
@@ -379,6 +380,418 @@ export interface SetupIntentCanceledWebhookEvent {
|
|
|
379
380
|
type: 'setup_intent.canceled';
|
|
380
381
|
}
|
|
381
382
|
|
|
383
|
+
export interface WithdrawalCreatedWebhookEvent {
|
|
384
|
+
/**
|
|
385
|
+
* A unique ID for every single webhook request
|
|
386
|
+
*/
|
|
387
|
+
id: string;
|
|
388
|
+
|
|
389
|
+
/**
|
|
390
|
+
* The API version for this webhook
|
|
391
|
+
*/
|
|
392
|
+
api_version: 'v1';
|
|
393
|
+
|
|
394
|
+
/**
|
|
395
|
+
* A withdrawal request.
|
|
396
|
+
*/
|
|
397
|
+
data: WithdrawalCreatedWebhookEvent.Data;
|
|
398
|
+
|
|
399
|
+
/**
|
|
400
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
401
|
+
*/
|
|
402
|
+
timestamp: string;
|
|
403
|
+
|
|
404
|
+
/**
|
|
405
|
+
* The webhook event type
|
|
406
|
+
*/
|
|
407
|
+
type: 'withdrawal.created';
|
|
408
|
+
}
|
|
409
|
+
|
|
410
|
+
export namespace WithdrawalCreatedWebhookEvent {
|
|
411
|
+
/**
|
|
412
|
+
* A withdrawal request.
|
|
413
|
+
*/
|
|
414
|
+
export interface Data {
|
|
415
|
+
/**
|
|
416
|
+
* Internal ID of the withdrawal request.
|
|
417
|
+
*/
|
|
418
|
+
id: string;
|
|
419
|
+
|
|
420
|
+
/**
|
|
421
|
+
* How much money was attempted to be withdrawn, in a float type.
|
|
422
|
+
*/
|
|
423
|
+
amount: number;
|
|
424
|
+
|
|
425
|
+
/**
|
|
426
|
+
* When the withdrawal request was created.
|
|
427
|
+
*/
|
|
428
|
+
created_at: string;
|
|
429
|
+
|
|
430
|
+
/**
|
|
431
|
+
* The currency of the withdrawal request.
|
|
432
|
+
*/
|
|
433
|
+
currency: Shared.Currency;
|
|
434
|
+
|
|
435
|
+
/**
|
|
436
|
+
* The different error codes a payout can be in.
|
|
437
|
+
*/
|
|
438
|
+
error_code:
|
|
439
|
+
| 'account_closed'
|
|
440
|
+
| 'account_does_not_exist'
|
|
441
|
+
| 'account_information_invalid'
|
|
442
|
+
| 'account_number_invalid_region'
|
|
443
|
+
| 'account_frozen'
|
|
444
|
+
| 'account_lookup_failed'
|
|
445
|
+
| 'account_not_found'
|
|
446
|
+
| 'amount_out_of_bounds'
|
|
447
|
+
| 'attributes_not_validated'
|
|
448
|
+
| 'b2b_payments_prohibited'
|
|
449
|
+
| 'bank_statement_required'
|
|
450
|
+
| 'compliance_review'
|
|
451
|
+
| 'currency_not_supported'
|
|
452
|
+
| 'deposit_canceled'
|
|
453
|
+
| 'deposit_failed'
|
|
454
|
+
| 'deposit_rejected'
|
|
455
|
+
| 'destination_unavailable'
|
|
456
|
+
| 'exceeded_account_limit'
|
|
457
|
+
| 'expired_quote'
|
|
458
|
+
| 'generic_payout_error'
|
|
459
|
+
| 'technical_problem'
|
|
460
|
+
| 'identification_number_invalid'
|
|
461
|
+
| 'invalid_account_number'
|
|
462
|
+
| 'invalid_bank_code'
|
|
463
|
+
| 'invalid_beneficiary'
|
|
464
|
+
| 'invalid_branch_number'
|
|
465
|
+
| 'invalid_branch_code'
|
|
466
|
+
| 'invalid_phone_number'
|
|
467
|
+
| 'invalid_routing_number'
|
|
468
|
+
| 'invalid_swift_code'
|
|
469
|
+
| 'invalid_company_details'
|
|
470
|
+
| 'manual_cancelation'
|
|
471
|
+
| 'misc_error'
|
|
472
|
+
| 'missing_city_and_country'
|
|
473
|
+
| 'missing_phone_number'
|
|
474
|
+
| 'missing_remittance_info'
|
|
475
|
+
| 'payee_name_invalid'
|
|
476
|
+
| 'receiving_account_locked'
|
|
477
|
+
| 'rejected_by_compliance'
|
|
478
|
+
| 'rtp_not_supported'
|
|
479
|
+
| 'non_transaction_account'
|
|
480
|
+
| 'source_token_insufficient_funds'
|
|
481
|
+
| 'ssn_invalid'
|
|
482
|
+
| 'wallet_screenshot_required'
|
|
483
|
+
| 'unsupported_region'
|
|
484
|
+
| null;
|
|
485
|
+
|
|
486
|
+
/**
|
|
487
|
+
* The error message for the withdrawal, if any.
|
|
488
|
+
*/
|
|
489
|
+
error_message: string | null;
|
|
490
|
+
|
|
491
|
+
/**
|
|
492
|
+
* The estimated availability date for the withdrawal, if any.
|
|
493
|
+
*/
|
|
494
|
+
estimated_availability: string | null;
|
|
495
|
+
|
|
496
|
+
/**
|
|
497
|
+
* The fee amount that was charged for the withdrawal. This is in the same currency
|
|
498
|
+
* as the withdrawal amount.
|
|
499
|
+
*/
|
|
500
|
+
fee_amount: number;
|
|
501
|
+
|
|
502
|
+
/**
|
|
503
|
+
* The different fee types for a withdrawal.
|
|
504
|
+
*/
|
|
505
|
+
fee_type: WithdrawalsAPI.WithdrawalFeeTypes | null;
|
|
506
|
+
|
|
507
|
+
/**
|
|
508
|
+
* The ledger account associated with the withdrawal.
|
|
509
|
+
*/
|
|
510
|
+
ledger_account: Data.LedgerAccount;
|
|
511
|
+
|
|
512
|
+
/**
|
|
513
|
+
* The payout token used for the withdrawal, if applicable.
|
|
514
|
+
*/
|
|
515
|
+
payout_token: Data.PayoutToken | null;
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* The speed of the withdrawal.
|
|
519
|
+
*/
|
|
520
|
+
speed: WithdrawalsAPI.WithdrawalSpeeds;
|
|
521
|
+
|
|
522
|
+
/**
|
|
523
|
+
* Status of the withdrawal.
|
|
524
|
+
*/
|
|
525
|
+
status: WithdrawalsAPI.WithdrawalStatus;
|
|
526
|
+
|
|
527
|
+
/**
|
|
528
|
+
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
529
|
+
* available.
|
|
530
|
+
*/
|
|
531
|
+
trace_code: string | null;
|
|
532
|
+
|
|
533
|
+
/**
|
|
534
|
+
* The type of withdrawal.
|
|
535
|
+
*/
|
|
536
|
+
withdrawal_type: WithdrawalsAPI.WithdrawalTypes;
|
|
537
|
+
}
|
|
538
|
+
|
|
539
|
+
export namespace Data {
|
|
540
|
+
/**
|
|
541
|
+
* The ledger account associated with the withdrawal.
|
|
542
|
+
*/
|
|
543
|
+
export interface LedgerAccount {
|
|
544
|
+
/**
|
|
545
|
+
* The ID of the LedgerAccount.
|
|
546
|
+
*/
|
|
547
|
+
id: string;
|
|
548
|
+
|
|
549
|
+
/**
|
|
550
|
+
* The ID of the company associated with this ledger account.
|
|
551
|
+
*/
|
|
552
|
+
company_id: string | null;
|
|
553
|
+
}
|
|
554
|
+
|
|
555
|
+
/**
|
|
556
|
+
* The payout token used for the withdrawal, if applicable.
|
|
557
|
+
*/
|
|
558
|
+
export interface PayoutToken {
|
|
559
|
+
/**
|
|
560
|
+
* The ID of the payout token
|
|
561
|
+
*/
|
|
562
|
+
id: string;
|
|
563
|
+
|
|
564
|
+
/**
|
|
565
|
+
* The date and time the payout token was created
|
|
566
|
+
*/
|
|
567
|
+
created_at: string;
|
|
568
|
+
|
|
569
|
+
/**
|
|
570
|
+
* The currency code of the payout destination. This is the currency that payouts
|
|
571
|
+
* will be made in for this token.
|
|
572
|
+
*/
|
|
573
|
+
destination_currency_code: string;
|
|
574
|
+
|
|
575
|
+
/**
|
|
576
|
+
* An optional nickname for the payout token to help the user identify it. This is
|
|
577
|
+
* not used by the provider and is only for the user's reference.
|
|
578
|
+
*/
|
|
579
|
+
nickname: string | null;
|
|
580
|
+
|
|
581
|
+
/**
|
|
582
|
+
* The name of the payer associated with the payout token.
|
|
583
|
+
*/
|
|
584
|
+
payer_name: string | null;
|
|
585
|
+
}
|
|
586
|
+
}
|
|
587
|
+
}
|
|
588
|
+
|
|
589
|
+
export interface WithdrawalUpdatedWebhookEvent {
|
|
590
|
+
/**
|
|
591
|
+
* A unique ID for every single webhook request
|
|
592
|
+
*/
|
|
593
|
+
id: string;
|
|
594
|
+
|
|
595
|
+
/**
|
|
596
|
+
* The API version for this webhook
|
|
597
|
+
*/
|
|
598
|
+
api_version: 'v1';
|
|
599
|
+
|
|
600
|
+
/**
|
|
601
|
+
* A withdrawal request.
|
|
602
|
+
*/
|
|
603
|
+
data: WithdrawalUpdatedWebhookEvent.Data;
|
|
604
|
+
|
|
605
|
+
/**
|
|
606
|
+
* The timestamp in ISO 8601 format that the webhook was sent at on the server
|
|
607
|
+
*/
|
|
608
|
+
timestamp: string;
|
|
609
|
+
|
|
610
|
+
/**
|
|
611
|
+
* The webhook event type
|
|
612
|
+
*/
|
|
613
|
+
type: 'withdrawal.updated';
|
|
614
|
+
}
|
|
615
|
+
|
|
616
|
+
export namespace WithdrawalUpdatedWebhookEvent {
|
|
617
|
+
/**
|
|
618
|
+
* A withdrawal request.
|
|
619
|
+
*/
|
|
620
|
+
export interface Data {
|
|
621
|
+
/**
|
|
622
|
+
* Internal ID of the withdrawal request.
|
|
623
|
+
*/
|
|
624
|
+
id: string;
|
|
625
|
+
|
|
626
|
+
/**
|
|
627
|
+
* How much money was attempted to be withdrawn, in a float type.
|
|
628
|
+
*/
|
|
629
|
+
amount: number;
|
|
630
|
+
|
|
631
|
+
/**
|
|
632
|
+
* When the withdrawal request was created.
|
|
633
|
+
*/
|
|
634
|
+
created_at: string;
|
|
635
|
+
|
|
636
|
+
/**
|
|
637
|
+
* The currency of the withdrawal request.
|
|
638
|
+
*/
|
|
639
|
+
currency: Shared.Currency;
|
|
640
|
+
|
|
641
|
+
/**
|
|
642
|
+
* The different error codes a payout can be in.
|
|
643
|
+
*/
|
|
644
|
+
error_code:
|
|
645
|
+
| 'account_closed'
|
|
646
|
+
| 'account_does_not_exist'
|
|
647
|
+
| 'account_information_invalid'
|
|
648
|
+
| 'account_number_invalid_region'
|
|
649
|
+
| 'account_frozen'
|
|
650
|
+
| 'account_lookup_failed'
|
|
651
|
+
| 'account_not_found'
|
|
652
|
+
| 'amount_out_of_bounds'
|
|
653
|
+
| 'attributes_not_validated'
|
|
654
|
+
| 'b2b_payments_prohibited'
|
|
655
|
+
| 'bank_statement_required'
|
|
656
|
+
| 'compliance_review'
|
|
657
|
+
| 'currency_not_supported'
|
|
658
|
+
| 'deposit_canceled'
|
|
659
|
+
| 'deposit_failed'
|
|
660
|
+
| 'deposit_rejected'
|
|
661
|
+
| 'destination_unavailable'
|
|
662
|
+
| 'exceeded_account_limit'
|
|
663
|
+
| 'expired_quote'
|
|
664
|
+
| 'generic_payout_error'
|
|
665
|
+
| 'technical_problem'
|
|
666
|
+
| 'identification_number_invalid'
|
|
667
|
+
| 'invalid_account_number'
|
|
668
|
+
| 'invalid_bank_code'
|
|
669
|
+
| 'invalid_beneficiary'
|
|
670
|
+
| 'invalid_branch_number'
|
|
671
|
+
| 'invalid_branch_code'
|
|
672
|
+
| 'invalid_phone_number'
|
|
673
|
+
| 'invalid_routing_number'
|
|
674
|
+
| 'invalid_swift_code'
|
|
675
|
+
| 'invalid_company_details'
|
|
676
|
+
| 'manual_cancelation'
|
|
677
|
+
| 'misc_error'
|
|
678
|
+
| 'missing_city_and_country'
|
|
679
|
+
| 'missing_phone_number'
|
|
680
|
+
| 'missing_remittance_info'
|
|
681
|
+
| 'payee_name_invalid'
|
|
682
|
+
| 'receiving_account_locked'
|
|
683
|
+
| 'rejected_by_compliance'
|
|
684
|
+
| 'rtp_not_supported'
|
|
685
|
+
| 'non_transaction_account'
|
|
686
|
+
| 'source_token_insufficient_funds'
|
|
687
|
+
| 'ssn_invalid'
|
|
688
|
+
| 'wallet_screenshot_required'
|
|
689
|
+
| 'unsupported_region'
|
|
690
|
+
| null;
|
|
691
|
+
|
|
692
|
+
/**
|
|
693
|
+
* The error message for the withdrawal, if any.
|
|
694
|
+
*/
|
|
695
|
+
error_message: string | null;
|
|
696
|
+
|
|
697
|
+
/**
|
|
698
|
+
* The estimated availability date for the withdrawal, if any.
|
|
699
|
+
*/
|
|
700
|
+
estimated_availability: string | null;
|
|
701
|
+
|
|
702
|
+
/**
|
|
703
|
+
* The fee amount that was charged for the withdrawal. This is in the same currency
|
|
704
|
+
* as the withdrawal amount.
|
|
705
|
+
*/
|
|
706
|
+
fee_amount: number;
|
|
707
|
+
|
|
708
|
+
/**
|
|
709
|
+
* The different fee types for a withdrawal.
|
|
710
|
+
*/
|
|
711
|
+
fee_type: WithdrawalsAPI.WithdrawalFeeTypes | null;
|
|
712
|
+
|
|
713
|
+
/**
|
|
714
|
+
* The ledger account associated with the withdrawal.
|
|
715
|
+
*/
|
|
716
|
+
ledger_account: Data.LedgerAccount;
|
|
717
|
+
|
|
718
|
+
/**
|
|
719
|
+
* The payout token used for the withdrawal, if applicable.
|
|
720
|
+
*/
|
|
721
|
+
payout_token: Data.PayoutToken | null;
|
|
722
|
+
|
|
723
|
+
/**
|
|
724
|
+
* The speed of the withdrawal.
|
|
725
|
+
*/
|
|
726
|
+
speed: WithdrawalsAPI.WithdrawalSpeeds;
|
|
727
|
+
|
|
728
|
+
/**
|
|
729
|
+
* Status of the withdrawal.
|
|
730
|
+
*/
|
|
731
|
+
status: WithdrawalsAPI.WithdrawalStatus;
|
|
732
|
+
|
|
733
|
+
/**
|
|
734
|
+
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
735
|
+
* available.
|
|
736
|
+
*/
|
|
737
|
+
trace_code: string | null;
|
|
738
|
+
|
|
739
|
+
/**
|
|
740
|
+
* The type of withdrawal.
|
|
741
|
+
*/
|
|
742
|
+
withdrawal_type: WithdrawalsAPI.WithdrawalTypes;
|
|
743
|
+
}
|
|
744
|
+
|
|
745
|
+
export namespace Data {
|
|
746
|
+
/**
|
|
747
|
+
* The ledger account associated with the withdrawal.
|
|
748
|
+
*/
|
|
749
|
+
export interface LedgerAccount {
|
|
750
|
+
/**
|
|
751
|
+
* The ID of the LedgerAccount.
|
|
752
|
+
*/
|
|
753
|
+
id: string;
|
|
754
|
+
|
|
755
|
+
/**
|
|
756
|
+
* The ID of the company associated with this ledger account.
|
|
757
|
+
*/
|
|
758
|
+
company_id: string | null;
|
|
759
|
+
}
|
|
760
|
+
|
|
761
|
+
/**
|
|
762
|
+
* The payout token used for the withdrawal, if applicable.
|
|
763
|
+
*/
|
|
764
|
+
export interface PayoutToken {
|
|
765
|
+
/**
|
|
766
|
+
* The ID of the payout token
|
|
767
|
+
*/
|
|
768
|
+
id: string;
|
|
769
|
+
|
|
770
|
+
/**
|
|
771
|
+
* The date and time the payout token was created
|
|
772
|
+
*/
|
|
773
|
+
created_at: string;
|
|
774
|
+
|
|
775
|
+
/**
|
|
776
|
+
* The currency code of the payout destination. This is the currency that payouts
|
|
777
|
+
* will be made in for this token.
|
|
778
|
+
*/
|
|
779
|
+
destination_currency_code: string;
|
|
780
|
+
|
|
781
|
+
/**
|
|
782
|
+
* An optional nickname for the payout token to help the user identify it. This is
|
|
783
|
+
* not used by the provider and is only for the user's reference.
|
|
784
|
+
*/
|
|
785
|
+
nickname: string | null;
|
|
786
|
+
|
|
787
|
+
/**
|
|
788
|
+
* The name of the payer associated with the payout token.
|
|
789
|
+
*/
|
|
790
|
+
payer_name: string | null;
|
|
791
|
+
}
|
|
792
|
+
}
|
|
793
|
+
}
|
|
794
|
+
|
|
382
795
|
export interface CourseLessonInteractionCompletedWebhookEvent {
|
|
383
796
|
/**
|
|
384
797
|
* A unique ID for every single webhook request
|
|
@@ -1011,6 +1424,8 @@ export type UnwrapWebhookEvent =
|
|
|
1011
1424
|
| SetupIntentRequiresActionWebhookEvent
|
|
1012
1425
|
| SetupIntentSucceededWebhookEvent
|
|
1013
1426
|
| SetupIntentCanceledWebhookEvent
|
|
1427
|
+
| WithdrawalCreatedWebhookEvent
|
|
1428
|
+
| WithdrawalUpdatedWebhookEvent
|
|
1014
1429
|
| CourseLessonInteractionCompletedWebhookEvent
|
|
1015
1430
|
| PaymentSucceededWebhookEvent
|
|
1016
1431
|
| PaymentFailedWebhookEvent
|
|
@@ -1035,6 +1450,8 @@ export declare namespace Webhooks {
|
|
|
1035
1450
|
type SetupIntentRequiresActionWebhookEvent as SetupIntentRequiresActionWebhookEvent,
|
|
1036
1451
|
type SetupIntentSucceededWebhookEvent as SetupIntentSucceededWebhookEvent,
|
|
1037
1452
|
type SetupIntentCanceledWebhookEvent as SetupIntentCanceledWebhookEvent,
|
|
1453
|
+
type WithdrawalCreatedWebhookEvent as WithdrawalCreatedWebhookEvent,
|
|
1454
|
+
type WithdrawalUpdatedWebhookEvent as WithdrawalUpdatedWebhookEvent,
|
|
1038
1455
|
type CourseLessonInteractionCompletedWebhookEvent as CourseLessonInteractionCompletedWebhookEvent,
|
|
1039
1456
|
type PaymentSucceededWebhookEvent as PaymentSucceededWebhookEvent,
|
|
1040
1457
|
type PaymentFailedWebhookEvent as PaymentFailedWebhookEvent,
|
|
@@ -87,6 +87,67 @@ export interface WithdrawalRetrieveResponse {
|
|
|
87
87
|
*/
|
|
88
88
|
currency: Shared.Currency;
|
|
89
89
|
|
|
90
|
+
/**
|
|
91
|
+
* The different error codes a payout can be in.
|
|
92
|
+
*/
|
|
93
|
+
error_code:
|
|
94
|
+
| 'account_closed'
|
|
95
|
+
| 'account_does_not_exist'
|
|
96
|
+
| 'account_information_invalid'
|
|
97
|
+
| 'account_number_invalid_region'
|
|
98
|
+
| 'account_frozen'
|
|
99
|
+
| 'account_lookup_failed'
|
|
100
|
+
| 'account_not_found'
|
|
101
|
+
| 'amount_out_of_bounds'
|
|
102
|
+
| 'attributes_not_validated'
|
|
103
|
+
| 'b2b_payments_prohibited'
|
|
104
|
+
| 'bank_statement_required'
|
|
105
|
+
| 'compliance_review'
|
|
106
|
+
| 'currency_not_supported'
|
|
107
|
+
| 'deposit_canceled'
|
|
108
|
+
| 'deposit_failed'
|
|
109
|
+
| 'deposit_rejected'
|
|
110
|
+
| 'destination_unavailable'
|
|
111
|
+
| 'exceeded_account_limit'
|
|
112
|
+
| 'expired_quote'
|
|
113
|
+
| 'generic_payout_error'
|
|
114
|
+
| 'technical_problem'
|
|
115
|
+
| 'identification_number_invalid'
|
|
116
|
+
| 'invalid_account_number'
|
|
117
|
+
| 'invalid_bank_code'
|
|
118
|
+
| 'invalid_beneficiary'
|
|
119
|
+
| 'invalid_branch_number'
|
|
120
|
+
| 'invalid_branch_code'
|
|
121
|
+
| 'invalid_phone_number'
|
|
122
|
+
| 'invalid_routing_number'
|
|
123
|
+
| 'invalid_swift_code'
|
|
124
|
+
| 'invalid_company_details'
|
|
125
|
+
| 'manual_cancelation'
|
|
126
|
+
| 'misc_error'
|
|
127
|
+
| 'missing_city_and_country'
|
|
128
|
+
| 'missing_phone_number'
|
|
129
|
+
| 'missing_remittance_info'
|
|
130
|
+
| 'payee_name_invalid'
|
|
131
|
+
| 'receiving_account_locked'
|
|
132
|
+
| 'rejected_by_compliance'
|
|
133
|
+
| 'rtp_not_supported'
|
|
134
|
+
| 'non_transaction_account'
|
|
135
|
+
| 'source_token_insufficient_funds'
|
|
136
|
+
| 'ssn_invalid'
|
|
137
|
+
| 'wallet_screenshot_required'
|
|
138
|
+
| 'unsupported_region'
|
|
139
|
+
| null;
|
|
140
|
+
|
|
141
|
+
/**
|
|
142
|
+
* The error message for the withdrawal, if any.
|
|
143
|
+
*/
|
|
144
|
+
error_message: string | null;
|
|
145
|
+
|
|
146
|
+
/**
|
|
147
|
+
* The estimated availability date for the withdrawal, if any.
|
|
148
|
+
*/
|
|
149
|
+
estimated_availability: string | null;
|
|
150
|
+
|
|
90
151
|
/**
|
|
91
152
|
* The fee amount that was charged for the withdrawal. This is in the same currency
|
|
92
153
|
* as the withdrawal amount.
|
|
@@ -99,9 +160,9 @@ export interface WithdrawalRetrieveResponse {
|
|
|
99
160
|
fee_type: WithdrawalFeeTypes | null;
|
|
100
161
|
|
|
101
162
|
/**
|
|
102
|
-
* The
|
|
163
|
+
* The ledger account associated with the withdrawal.
|
|
103
164
|
*/
|
|
104
|
-
|
|
165
|
+
ledger_account: WithdrawalRetrieveResponse.LedgerAccount;
|
|
105
166
|
|
|
106
167
|
/**
|
|
107
168
|
* The payout token used for the withdrawal, if applicable.
|
|
@@ -118,6 +179,12 @@ export interface WithdrawalRetrieveResponse {
|
|
|
118
179
|
*/
|
|
119
180
|
status: WithdrawalStatus;
|
|
120
181
|
|
|
182
|
+
/**
|
|
183
|
+
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
184
|
+
* available.
|
|
185
|
+
*/
|
|
186
|
+
trace_code: string | null;
|
|
187
|
+
|
|
121
188
|
/**
|
|
122
189
|
* The type of withdrawal.
|
|
123
190
|
*/
|
|
@@ -126,104 +193,18 @@ export interface WithdrawalRetrieveResponse {
|
|
|
126
193
|
|
|
127
194
|
export namespace WithdrawalRetrieveResponse {
|
|
128
195
|
/**
|
|
129
|
-
* The
|
|
196
|
+
* The ledger account associated with the withdrawal.
|
|
130
197
|
*/
|
|
131
|
-
export interface
|
|
198
|
+
export interface LedgerAccount {
|
|
132
199
|
/**
|
|
133
|
-
* The
|
|
200
|
+
* The ID of the LedgerAccount.
|
|
134
201
|
*/
|
|
135
202
|
id: string;
|
|
136
203
|
|
|
137
204
|
/**
|
|
138
|
-
* The
|
|
139
|
-
*/
|
|
140
|
-
created_at: string;
|
|
141
|
-
|
|
142
|
-
/**
|
|
143
|
-
* The different error codes a payout can be in.
|
|
205
|
+
* The ID of the company associated with this ledger account.
|
|
144
206
|
*/
|
|
145
|
-
|
|
146
|
-
| 'account_closed'
|
|
147
|
-
| 'account_does_not_exist'
|
|
148
|
-
| 'account_information_invalid'
|
|
149
|
-
| 'account_number_invalid_region'
|
|
150
|
-
| 'account_frozen'
|
|
151
|
-
| 'account_lookup_failed'
|
|
152
|
-
| 'account_not_found'
|
|
153
|
-
| 'amount_out_of_bounds'
|
|
154
|
-
| 'attributes_not_validated'
|
|
155
|
-
| 'b2b_payments_prohibited'
|
|
156
|
-
| 'bank_statement_required'
|
|
157
|
-
| 'compliance_review'
|
|
158
|
-
| 'currency_not_supported'
|
|
159
|
-
| 'deposit_canceled'
|
|
160
|
-
| 'deposit_failed'
|
|
161
|
-
| 'deposit_rejected'
|
|
162
|
-
| 'destination_unavailable'
|
|
163
|
-
| 'exceeded_account_limit'
|
|
164
|
-
| 'expired_quote'
|
|
165
|
-
| 'generic_payout_error'
|
|
166
|
-
| 'technical_problem'
|
|
167
|
-
| 'identification_number_invalid'
|
|
168
|
-
| 'invalid_account_number'
|
|
169
|
-
| 'invalid_bank_code'
|
|
170
|
-
| 'invalid_beneficiary'
|
|
171
|
-
| 'invalid_branch_number'
|
|
172
|
-
| 'invalid_branch_code'
|
|
173
|
-
| 'invalid_phone_number'
|
|
174
|
-
| 'invalid_routing_number'
|
|
175
|
-
| 'invalid_swift_code'
|
|
176
|
-
| 'invalid_company_details'
|
|
177
|
-
| 'manual_cancelation'
|
|
178
|
-
| 'misc_error'
|
|
179
|
-
| 'missing_city_and_country'
|
|
180
|
-
| 'missing_phone_number'
|
|
181
|
-
| 'missing_remittance_info'
|
|
182
|
-
| 'payee_name_invalid'
|
|
183
|
-
| 'receiving_account_locked'
|
|
184
|
-
| 'rejected_by_compliance'
|
|
185
|
-
| 'rtp_not_supported'
|
|
186
|
-
| 'non_transaction_account'
|
|
187
|
-
| 'source_token_insufficient_funds'
|
|
188
|
-
| 'ssn_invalid'
|
|
189
|
-
| 'wallet_screenshot_required'
|
|
190
|
-
| 'unsupported_region'
|
|
191
|
-
| null;
|
|
192
|
-
|
|
193
|
-
/**
|
|
194
|
-
* The error message for the payout.
|
|
195
|
-
*/
|
|
196
|
-
error_message: string | null;
|
|
197
|
-
|
|
198
|
-
/**
|
|
199
|
-
* The estimated availability date of the payout.
|
|
200
|
-
*/
|
|
201
|
-
estimated_availability: string | null;
|
|
202
|
-
|
|
203
|
-
/**
|
|
204
|
-
* The name of the payer for the payout.
|
|
205
|
-
*/
|
|
206
|
-
payer_name: string | null;
|
|
207
|
-
|
|
208
|
-
/**
|
|
209
|
-
* The status of the payout.
|
|
210
|
-
*/
|
|
211
|
-
status:
|
|
212
|
-
| 'scheduled'
|
|
213
|
-
| 'pending'
|
|
214
|
-
| 'processing'
|
|
215
|
-
| 'completed'
|
|
216
|
-
| 'canceled'
|
|
217
|
-
| 'ready_for_pickup'
|
|
218
|
-
| 'hold'
|
|
219
|
-
| 'error'
|
|
220
|
-
| 'expired';
|
|
221
|
-
|
|
222
|
-
/**
|
|
223
|
-
* The trace code for the payout, if applicable. Provided on ACH transactions when
|
|
224
|
-
* available.
|
|
225
|
-
*/
|
|
226
|
-
trace_code: string | null;
|
|
207
|
+
company_id: string | null;
|
|
227
208
|
}
|
|
228
209
|
|
|
229
210
|
/**
|
|
@@ -253,9 +234,9 @@ export namespace WithdrawalRetrieveResponse {
|
|
|
253
234
|
nickname: string | null;
|
|
254
235
|
|
|
255
236
|
/**
|
|
256
|
-
* The
|
|
237
|
+
* The name of the payer associated with the payout token.
|
|
257
238
|
*/
|
|
258
|
-
|
|
239
|
+
payer_name: string | null;
|
|
259
240
|
}
|
|
260
241
|
}
|
|
261
242
|
|
package/src/version.ts
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.13'; // x-release-please-version
|
package/version.d.mts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.13";
|
|
2
2
|
//# sourceMappingURL=version.d.mts.map
|
package/version.d.ts
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export declare const VERSION = "0.0.
|
|
1
|
+
export declare const VERSION = "0.0.13";
|
|
2
2
|
//# sourceMappingURL=version.d.ts.map
|
package/version.js
CHANGED
package/version.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export const VERSION = '0.0.
|
|
1
|
+
export const VERSION = '0.0.13'; // x-release-please-version
|
|
2
2
|
//# sourceMappingURL=version.mjs.map
|