@spritz-finance/service-client 0.2.83 → 0.2.85

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.
@@ -460,6 +460,50 @@ export type CryptoExchangeRate = {
460
460
  symbol: Scalars['String']['output'];
461
461
  timestamp: Scalars['DateTimeISO']['output'];
462
462
  };
463
+ export type DebitCard = PayableAccount & {
464
+ __typename?: 'DebitCard';
465
+ country: Scalars['String']['output'];
466
+ createdAt: Scalars['DateTimeISO']['output'];
467
+ currency: Scalars['String']['output'];
468
+ dataSync?: Maybe<AccountDataSync>;
469
+ debitCardNetwork: DebitCardNetwork;
470
+ deliveryMethods: Array<PaymentDeliveryMethod>;
471
+ expirationDate: Scalars['String']['output'];
472
+ externalId?: Maybe<Scalars['String']['output']>;
473
+ id: Scalars['ID']['output'];
474
+ institution?: Maybe<PayableAccountInstitution>;
475
+ mask?: Maybe<Scalars['String']['output']>;
476
+ name?: Maybe<Scalars['String']['output']>;
477
+ originalName?: Maybe<Scalars['String']['output']>;
478
+ originator: PayableAccountOriginator;
479
+ payable: Scalars['Boolean']['output'];
480
+ paymentCount: Scalars['Int']['output'];
481
+ paymentVolume: Scalars['Float']['output'];
482
+ provider: Scalars['String']['output'];
483
+ testPaymentAvailable: Scalars['Boolean']['output'];
484
+ type: PayableAccountType;
485
+ user: User;
486
+ userId: Scalars['String']['output'];
487
+ verifying: Scalars['Boolean']['output'];
488
+ };
489
+ export type DebitCardInput = {
490
+ cardNumber: Scalars['String']['input'];
491
+ expirationDate: Scalars['String']['input'];
492
+ name?: InputMaybe<Scalars['String']['input']>;
493
+ };
494
+ export type DebitCardModule = {
495
+ __typename?: 'DebitCardModule';
496
+ payableTypes: Array<DebitCardPayable>;
497
+ status: ModuleStatus;
498
+ };
499
+ export declare enum DebitCardNetwork {
500
+ Mastercard = "Mastercard",
501
+ Visa = "Visa"
502
+ }
503
+ export type DebitCardPayable = {
504
+ __typename?: 'DebitCardPayable';
505
+ country: Scalars['String']['output'];
506
+ };
463
507
  export type DirectPayment = {
464
508
  __typename?: 'DirectPayment';
465
509
  account?: Maybe<BasicPayableAccount>;
@@ -491,6 +535,7 @@ export type DirectPayment = {
491
535
  totalAmount: Scalars['Float']['output'];
492
536
  totalTargetCurrencyAmount: Scalars['Float']['output'];
493
537
  transaction?: Maybe<DirectPaymentTransactionReference>;
538
+ transactionFee: Scalars['Float']['output'];
494
539
  transactionReferences: Array<DirectPaymentTransactionReference>;
495
540
  user: User;
496
541
  userId: Scalars['ObjectID']['output'];
@@ -542,6 +587,13 @@ export type ExternalPayment = {
542
587
  releaseDate?: Maybe<Scalars['DateTimeISO']['output']>;
543
588
  status: PaymentStatus;
544
589
  };
590
+ export type FeeCalculation = {
591
+ __typename?: 'FeeCalculation';
592
+ amount: Scalars['Float']['output'];
593
+ feeAmount: Scalars['Float']['output'];
594
+ minimumFeeApplied: Scalars['Boolean']['output'];
595
+ totalAmount: Scalars['Float']['output'];
596
+ };
545
597
  export type GasPrice = {
546
598
  __typename?: 'GasPrice';
547
599
  lastBlock: Scalars['Float']['output'];
@@ -797,6 +849,7 @@ export type Mutation = {
797
849
  createApiToken: ApiToken;
798
850
  createApiTokenFor?: Maybe<ApiToken>;
799
851
  createBankAccount: BankAccount;
852
+ createDebitCard: DebitCard;
800
853
  createDirectPayment: DirectPayment;
801
854
  createIntegrationToken: IntegrationToken;
802
855
  createIntegrator: Integrator;
@@ -855,6 +908,7 @@ export type Mutation = {
855
908
  updateAttributionSource?: Maybe<User>;
856
909
  updateCurrentUser: User;
857
910
  updateEntityAuthentication?: Maybe<MethodFiEntity>;
911
+ updateReferralCode: Referral;
858
912
  updateTokenPreferences: Scalars['Boolean']['output'];
859
913
  updateUserTimezone: User;
860
914
  };
@@ -914,6 +968,9 @@ export type MutationCreateApiTokenForArgs = {
914
968
  export type MutationCreateBankAccountArgs = {
915
969
  createAccountInput: BankAccountInput;
916
970
  };
971
+ export type MutationCreateDebitCardArgs = {
972
+ createDebitCardInput: DebitCardInput;
973
+ };
917
974
  export type MutationCreateDirectPaymentArgs = {
918
975
  createDirectPaymentInput: CreateDirectPaymentInput;
919
976
  };
@@ -1086,6 +1143,9 @@ export type MutationUpdateCurrentUserArgs = {
1086
1143
  export type MutationUpdateEntityAuthenticationArgs = {
1087
1144
  connectionId?: InputMaybe<Scalars['String']['input']>;
1088
1145
  };
1146
+ export type MutationUpdateReferralCodeArgs = {
1147
+ referralCode: Scalars['String']['input'];
1148
+ };
1089
1149
  export type MutationUpdateTokenPreferencesArgs = {
1090
1150
  tokenPreferencesInput: TokenPreferencesInput;
1091
1151
  };
@@ -1213,6 +1273,7 @@ export declare enum PayableAccountOriginator {
1213
1273
  export declare enum PayableAccountType {
1214
1274
  BankAccount = "BankAccount",
1215
1275
  Bill = "Bill",
1276
+ DebitCard = "DebitCard",
1216
1277
  VirtualCard = "VirtualCard"
1217
1278
  }
1218
1279
  export type Payment = {
@@ -1244,6 +1305,7 @@ export type Payment = {
1244
1305
  targetCurrencyAmount: Scalars['Float']['output'];
1245
1306
  targetCurrencyFee: Scalars['Float']['output'];
1246
1307
  targetCurrencyRate?: Maybe<Scalars['Float']['output']>;
1308
+ targetCurrencyTransactionFee: Scalars['Float']['output'];
1247
1309
  type: Scalars['String']['output'];
1248
1310
  user: User;
1249
1311
  userId: Scalars['ObjectID']['output'];
@@ -1252,6 +1314,7 @@ export type PaymentAddress = {
1252
1314
  __typename?: 'PaymentAddress';
1253
1315
  accountId: Scalars['ObjectID']['output'];
1254
1316
  address: Scalars['String']['output'];
1317
+ deployed: Scalars['Boolean']['output'];
1255
1318
  id: Scalars['ID']['output'];
1256
1319
  network: Scalars['String']['output'];
1257
1320
  userId: Scalars['ObjectID']['output'];
@@ -1386,11 +1449,13 @@ export type Query = {
1386
1449
  circleBalances: CircleBalances;
1387
1450
  coinbaseBalance: Scalars['Float']['output'];
1388
1451
  cryptoExchangeRate: CryptoExchangeRate;
1452
+ debitCards: Array<DebitCard>;
1389
1453
  /** @deprecated no longer in use */
1390
1454
  directPayment?: Maybe<DirectPayment>;
1391
1455
  directPayments: Array<DirectPayment>;
1392
1456
  estimateTransactionInput: Scalars['Float']['output'];
1393
1457
  exchangeRate: ExchangeRate;
1458
+ feeCalculator: FeeCalculation;
1394
1459
  findByWalletAddress: Array<User>;
1395
1460
  gasPrice?: Maybe<GasPrice>;
1396
1461
  getMethodFiAuthToken?: Maybe<Scalars['String']['output']>;
@@ -1410,6 +1475,7 @@ export type Query = {
1410
1475
  mercuryAccountInfo: MercuryAccountInfo;
1411
1476
  mercuryAccounts: Array<MercuryAccountInfo>;
1412
1477
  mercuryTransactions: Array<MercuryTransaction>;
1478
+ merkleCheckAddress: Scalars['JSON']['output'];
1413
1479
  methodFiACHReport: Array<MethodFiAchPull>;
1414
1480
  methodFiEntity?: Maybe<MethodFiEntity>;
1415
1481
  methodFiWebhooks: Array<MethodFiWebhook>;
@@ -1457,6 +1523,7 @@ export type Query = {
1457
1523
  usBankAccountInstitution?: Maybe<BankAccountInstitution>;
1458
1524
  /** @deprecated Use bankAccounts instead */
1459
1525
  userBankAccounts: Array<BankAccount>;
1526
+ userCardTransactions: Array<SimpleCardTransaction>;
1460
1527
  userPayableAccounts: Array<PayableAccount>;
1461
1528
  userPayment: Payment;
1462
1529
  userPayments: Array<Payment>;
@@ -1520,6 +1587,14 @@ export type QueryExchangeRateArgs = {
1520
1587
  base?: InputMaybe<Scalars['String']['input']>;
1521
1588
  target: Scalars['String']['input'];
1522
1589
  };
1590
+ export type QueryFeeCalculatorArgs = {
1591
+ accountType: Scalars['String']['input'];
1592
+ amount: Scalars['Float']['input'];
1593
+ currency: Scalars['String']['input'];
1594
+ deliveryMethod?: InputMaybe<PaymentDeliveryMethod>;
1595
+ network: Scalars['String']['input'];
1596
+ usdc: Scalars['Boolean']['input'];
1597
+ };
1523
1598
  export type QueryFindByWalletAddressArgs = {
1524
1599
  address: Scalars['String']['input'];
1525
1600
  };
@@ -1545,6 +1620,10 @@ export type QueryMerchantsArgs = {
1545
1620
  export type QueryMercuryTransactionsArgs = {
1546
1621
  accountId?: InputMaybe<Scalars['String']['input']>;
1547
1622
  };
1623
+ export type QueryMerkleCheckAddressArgs = {
1624
+ address: Scalars['String']['input'];
1625
+ network: Scalars['String']['input'];
1626
+ };
1548
1627
  export type QueryOutstandingDirectPaymentsArgs = {
1549
1628
  accountId?: InputMaybe<Scalars['String']['input']>;
1550
1629
  };
@@ -1620,6 +1699,9 @@ export type QueryTronBalanceArgs = {
1620
1699
  export type QueryUsBankAccountInstitutionArgs = {
1621
1700
  routingNumber: Scalars['String']['input'];
1622
1701
  };
1702
+ export type QueryUserCardTransactionsArgs = {
1703
+ accountId: Scalars['String']['input'];
1704
+ };
1623
1705
  export type QueryUserPayableAccountsArgs = {
1624
1706
  userId: Scalars['String']['input'];
1625
1707
  };
@@ -1654,16 +1736,24 @@ export type RawContract = {
1654
1736
  };
1655
1737
  export type Referral = {
1656
1738
  __typename?: 'Referral';
1657
- code: Scalars['String']['output'];
1658
1739
  createdAt: Scalars['DateTimeISO']['output'];
1659
1740
  id: Scalars['ID']['output'];
1660
1741
  maskedEmail: Scalars['String']['output'];
1661
1742
  note?: Maybe<Scalars['String']['output']>;
1743
+ referralClubRewards: Scalars['Float']['output'];
1662
1744
  referralClubStatus?: Maybe<ReferralClubStatus>;
1745
+ referralClubTransactionVolume: Scalars['Float']['output'];
1746
+ referralClubUserCount: Scalars['Float']['output'];
1747
+ referralCode: Scalars['String']['output'];
1663
1748
  referralStatus: ReferralStatus;
1664
1749
  referralTier?: Maybe<ReferralTier>;
1750
+ referralsConverted: Scalars['Float']['output'];
1751
+ referralsPending: Scalars['Float']['output'];
1752
+ referrerRewards: Scalars['Float']['output'];
1665
1753
  rewardsCheckedAt?: Maybe<Scalars['DateTimeISO']['output']>;
1666
1754
  shareUrl: Scalars['String']['output'];
1755
+ successfulSignups: Scalars['Float']['output'];
1756
+ totalRewards: Scalars['Float']['output'];
1667
1757
  userId: Scalars['String']['output'];
1668
1758
  };
1669
1759
  export declare enum ReferralClubStatus {
@@ -2028,6 +2118,7 @@ export type Verification = {
2028
2118
  bankAccount: BankAccountModule;
2029
2119
  bills: BillModule;
2030
2120
  checkbookUser?: Maybe<CheckbookUser>;
2121
+ debitCard: DebitCardModule;
2031
2122
  flows: Array<CognitoKycFlow>;
2032
2123
  identity: IdentityModule;
2033
2124
  methodFiEntity?: Maybe<MethodFiEntity>;
@@ -1,6 +1,6 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.ReferralTier = exports.ReferralStatus = exports.ReferralRewardType = exports.ReferralClubStatus = exports.PaymentType = exports.PaymentStatus = exports.PaymentSource = exports.PaymentProvider = exports.PaymentDeliveryMethod = exports.PayableAccountType = exports.PayableAccountOriginator = exports.OnrampPaymentStatus = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.CheckbookPaymentStatus = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.AccountSyncStatus = exports.AccountProvider = void 0;
3
+ exports.VirtualCardType = exports.UtxoInvoiceStatus = exports.SubscriptionType = exports.SubscriptionFrequency = exports.SubscriptionErrorType = exports.RewardTransactionType = exports.RewardProvider = exports.RewardCreditSource = exports.ReferralTier = exports.ReferralStatus = exports.ReferralRewardType = exports.ReferralClubStatus = exports.PaymentType = exports.PaymentStatus = exports.PaymentSource = exports.PaymentProvider = exports.PaymentDeliveryMethod = exports.PayableAccountType = exports.PayableAccountOriginator = exports.OnrampPaymentStatus = exports.Network = exports.ModuleStatus = exports.DirectPaymentTransactionReferenceStatus = exports.DirectPaymentStatus = exports.DebitCardNetwork = exports.CheckbookPaymentStatus = exports.BillType = exports.BasicPayableAccountType = exports.BankAccountType = exports.BankAccountSubType = exports.BankAccountPaymentType = exports.AppDomain = exports.AccountSyncStatus = exports.AccountProvider = void 0;
4
4
  var AccountProvider;
5
5
  (function (AccountProvider) {
6
6
  AccountProvider["Checkbook"] = "CHECKBOOK";
@@ -70,6 +70,11 @@ var CheckbookPaymentStatus;
70
70
  CheckbookPaymentStatus["Unpaid"] = "UNPAID";
71
71
  CheckbookPaymentStatus["Void"] = "VOID";
72
72
  })(CheckbookPaymentStatus || (exports.CheckbookPaymentStatus = CheckbookPaymentStatus = {}));
73
+ var DebitCardNetwork;
74
+ (function (DebitCardNetwork) {
75
+ DebitCardNetwork["Mastercard"] = "Mastercard";
76
+ DebitCardNetwork["Visa"] = "Visa";
77
+ })(DebitCardNetwork || (exports.DebitCardNetwork = DebitCardNetwork = {}));
73
78
  var DirectPaymentStatus;
74
79
  (function (DirectPaymentStatus) {
75
80
  DirectPaymentStatus["Completed"] = "COMPLETED";
@@ -129,6 +134,7 @@ var PayableAccountType;
129
134
  (function (PayableAccountType) {
130
135
  PayableAccountType["BankAccount"] = "BankAccount";
131
136
  PayableAccountType["Bill"] = "Bill";
137
+ PayableAccountType["DebitCard"] = "DebitCard";
132
138
  PayableAccountType["VirtualCard"] = "VirtualCard";
133
139
  })(PayableAccountType || (exports.PayableAccountType = PayableAccountType = {}));
134
140
  var PaymentDeliveryMethod;
@@ -1,5 +1,5 @@
1
1
  import { AxiosInstance } from 'axios';
2
- import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, PayableAccountInstitution as GraphInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
2
+ import { AccountProvider, AccountSyncStatus, BankAccount, Bill, BillType, DebitCard, PayableAccountInstitution as GraphInstitution, PayableAccountOriginator, PayableAccountType, VirtualCard } from './lib/graphClient/generated';
3
3
  export { AccountSyncStatus, PayableAccountOriginator, } from './lib/graphClient/generated';
4
4
  export declare enum BankAccountSubType {
5
5
  Business = "BUSINESS",
@@ -53,18 +53,20 @@ type PayableAccountModelExtension = {
53
53
  type BillModel = Omit<Bill, 'type' | 'institution'> & PayableAccountModelExtension;
54
54
  type BankAcountModel = Omit<BankAccount, 'type' | 'institution'> & PayableAccountModelExtension;
55
55
  type VirtualCardModel = Omit<VirtualCard, 'type' | 'institution'> & PayableAccountModelExtension;
56
- export type PayableAccount = BankAcountModel | VirtualCardModel | BillModel;
56
+ type DebitCardModel = Omit<DebitCard, 'type' | 'institution'> & PayableAccountModelExtension;
57
+ export type PayableAccount = BankAcountModel | VirtualCardModel | BillModel | DebitCardModel;
57
58
  export type PayableAccountBankAccount = BankAcountModel;
58
59
  export type PayableAccountVirtualCard = VirtualCardModel;
59
60
  export type PayableAccountBill = BillModel;
61
+ export type PayableAccountDebitCard = DebitCardModel;
60
62
  export type PayableAccountInstitution = GraphInstitution & {
61
63
  identificationNumber: string;
62
64
  };
63
65
  export declare class PayableAccountsServiceClient {
64
66
  client: AxiosInstance;
65
67
  constructor();
66
- getAccount(accountId: string): Promise<BillModel | BankAcountModel | VirtualCardModel>;
67
- getAccountByExternalId(externalId: string): Promise<BillModel | BankAcountModel | VirtualCardModel>;
68
+ getAccount(accountId: string): Promise<BillModel | BankAcountModel | VirtualCardModel | DebitCardModel>;
69
+ getAccountByExternalId(externalId: string): Promise<BillModel | BankAcountModel | VirtualCardModel | DebitCardModel>;
68
70
  getAccountsForUser(userId: string): Promise<PayableAccount[]>;
69
71
  getAccounts(accountIds: string[]): Promise<PayableAccount[]>;
70
72
  getAccountInstitution(institutionId: string): Promise<PayableAccountInstitution>;
@@ -6,6 +6,9 @@ type BankAccountPayableType = {
6
6
  type BillPayableType = {
7
7
  country: string;
8
8
  };
9
+ type DebitCardPayableType = {
10
+ country: string;
11
+ };
9
12
  type VCCPayableType = {
10
13
  type: string;
11
14
  };
@@ -41,6 +44,10 @@ export type Verification = {
41
44
  status: VerificationModuleStatus;
42
45
  payableTypes: BillPayableType[];
43
46
  };
47
+ debitCard?: {
48
+ status: VerificationModuleStatus;
49
+ payableTypes: DebitCardPayableType[];
50
+ };
44
51
  virtualCard: {
45
52
  status: VerificationModuleStatus;
46
53
  availableCardTypes: VCCPayableType[];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@spritz-finance/service-client",
3
- "version": "0.2.83",
3
+ "version": "0.2.85",
4
4
  "description": "Service client",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",