@opengov/ppf-backend-types 1.155.0-beta.2313.1.0 → 1.155.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/CHANGELOG.md +2 -2
- package/dist/types/enums.d.ts +32 -0
- package/dist/types/enums.d.ts.map +1 -1
- package/dist/types/enums.js +36 -1
- package/dist/types/enums.js.map +1 -1
- package/dist/types/generated.d.ts +65 -30
- package/dist/types/generated.d.ts.map +1 -1
- package/dist/types/generated.js +36 -1
- package/dist/types/generated.js.map +1 -1
- package/package.json +3 -3
- package/src/types/enums.ts +35 -0
- package/src/types/generated.ts +69 -37
- package/tsconfig.build.tsbuildinfo +1 -1
package/src/types/generated.ts
CHANGED
|
@@ -237,11 +237,14 @@ export type FuturePaymentFlowRequest = {
|
|
|
237
237
|
export type FuturePaymentFlowResponse = FlowResponseType & {
|
|
238
238
|
__typename?: "FuturePaymentFlowResponse";
|
|
239
239
|
applicationMetadata?: Maybe<ApplicationMetadataResponse>;
|
|
240
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
241
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
240
242
|
flowType: PaymentProcessorFlow;
|
|
241
243
|
idempotencyKey?: Maybe<Scalars["String"]>;
|
|
242
244
|
paymentAccountToken?: Maybe<Scalars["PaymentAccountToken"]>;
|
|
243
245
|
paymentMethodDetails?: Maybe<PaymentMethodDetails>;
|
|
244
246
|
status: Scalars["String"];
|
|
247
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
245
248
|
};
|
|
246
249
|
|
|
247
250
|
export type Header = {
|
|
@@ -278,8 +281,7 @@ export type InvalidSignature = ResponseErrorMessage & {
|
|
|
278
281
|
|
|
279
282
|
/**
|
|
280
283
|
* Omit `suite` (or pass null/blank) for every product on the entity plus
|
|
281
|
-
* blankets. Set `suite` for that product plus blankets. Ordered by
|
|
282
|
-
* ASC, compared as text (LexoRank).
|
|
284
|
+
* blankets. Set `suite` for that product plus blankets. Ordered by priority ASC.
|
|
283
285
|
* Use the omit-suite list as `orderedIds` for `reorderRoutingRules`.
|
|
284
286
|
*/
|
|
285
287
|
export type ListPublishedRoutingRulesInput = {
|
|
@@ -308,7 +310,6 @@ export type Mutation = {
|
|
|
308
310
|
onlineRefund: FlowGrantResponse;
|
|
309
311
|
/** Requests a grant to perform the ONLINE_VOID flow. */
|
|
310
312
|
onlineVoid: FlowGrantResponse;
|
|
311
|
-
reorderRoutingRules: ReorderRoutingRulesResult;
|
|
312
313
|
saveRoutingRule: SaveRoutingRuleResult;
|
|
313
314
|
/** Requests a grant to perform the TERMINAL_PAYMENT flow. */
|
|
314
315
|
terminalPayment: FlowGrantResponse;
|
|
@@ -358,10 +359,6 @@ export type MutationonlineVoidArgs = {
|
|
|
358
359
|
request: OnlineVoidFlowRequest;
|
|
359
360
|
};
|
|
360
361
|
|
|
361
|
-
export type MutationreorderRoutingRulesArgs = {
|
|
362
|
-
input: ReorderRoutingRulesInput;
|
|
363
|
-
};
|
|
364
|
-
|
|
365
362
|
export type MutationsaveRoutingRuleArgs = {
|
|
366
363
|
input: SaveRoutingRuleInput;
|
|
367
364
|
};
|
|
@@ -405,6 +402,8 @@ export type OfflinePaymentFlowResponse = FlowResponseType & {
|
|
|
405
402
|
currency?: Maybe<Scalars["String"]>;
|
|
406
403
|
description?: Maybe<Scalars["String"]>;
|
|
407
404
|
entityID: Scalars["String"];
|
|
405
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
406
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
408
407
|
flowType: PaymentProcessorFlow;
|
|
409
408
|
idempotencyKey?: Maybe<Scalars["String"]>;
|
|
410
409
|
items?: Maybe<Array<Maybe<FeeItemResponse>>>;
|
|
@@ -419,6 +418,7 @@ export type OfflinePaymentFlowResponse = FlowResponseType & {
|
|
|
419
418
|
sourceApp: Scalars["String"];
|
|
420
419
|
status: Scalars["String"];
|
|
421
420
|
transactionID?: Maybe<Scalars["String"]>;
|
|
421
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
422
422
|
userID: Scalars["ID"];
|
|
423
423
|
};
|
|
424
424
|
|
|
@@ -506,6 +506,8 @@ export type OnlinePaymentFlowResponse = FlowResponseType & {
|
|
|
506
506
|
currency?: Maybe<Scalars["String"]>;
|
|
507
507
|
description?: Maybe<Scalars["String"]>;
|
|
508
508
|
destinationPaymentID?: Maybe<Scalars["String"]>;
|
|
509
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
510
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
509
511
|
flowType: PaymentProcessorFlow;
|
|
510
512
|
idempotencyKey?: Maybe<Scalars["String"]>;
|
|
511
513
|
payer?: Maybe<Payer>;
|
|
@@ -518,6 +520,7 @@ export type OnlinePaymentFlowResponse = FlowResponseType & {
|
|
|
518
520
|
processingFee?: Maybe<Scalars["Float"]>;
|
|
519
521
|
status: Scalars["String"];
|
|
520
522
|
transactionID?: Maybe<Scalars["String"]>;
|
|
523
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
521
524
|
};
|
|
522
525
|
|
|
523
526
|
export type OnlineRefundFlowRequest = {
|
|
@@ -540,11 +543,15 @@ export type OnlineRefundFlowRequest = {
|
|
|
540
543
|
export type OnlineRefundFlowResponse = FlowResponseType & {
|
|
541
544
|
__typename?: "OnlineRefundFlowResponse";
|
|
542
545
|
amount: Scalars["Float"];
|
|
546
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
547
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
543
548
|
flowType: PaymentProcessorFlow;
|
|
544
549
|
idempotencyKey?: Maybe<Scalars["String"]>;
|
|
550
|
+
originalPaymentID?: Maybe<Scalars["ID"]>;
|
|
545
551
|
paymentID: Scalars["ID"];
|
|
546
552
|
status: Scalars["String"];
|
|
547
553
|
transactionID?: Maybe<Scalars["String"]>;
|
|
554
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
548
555
|
};
|
|
549
556
|
|
|
550
557
|
export type OnlineVoidFlowRequest = {
|
|
@@ -559,9 +566,13 @@ export type OnlineVoidFlowRequest = {
|
|
|
559
566
|
|
|
560
567
|
export type OnlineVoidFlowResponse = FlowResponseType & {
|
|
561
568
|
__typename?: "OnlineVoidFlowResponse";
|
|
569
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
570
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
562
571
|
flowType: PaymentProcessorFlow;
|
|
572
|
+
originalPaymentID?: Maybe<Scalars["ID"]>;
|
|
563
573
|
status: Scalars["String"];
|
|
564
574
|
transactionID?: Maybe<Scalars["String"]>;
|
|
575
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
565
576
|
};
|
|
566
577
|
|
|
567
578
|
export { OpenGovTenant };
|
|
@@ -578,6 +589,52 @@ export enum PaymentChannel {
|
|
|
578
589
|
WEB = "WEB",
|
|
579
590
|
}
|
|
580
591
|
|
|
592
|
+
export type PaymentEventFailure = {
|
|
593
|
+
__typename?: "PaymentEventFailure";
|
|
594
|
+
achReturnCode?: Maybe<Scalars["String"]>;
|
|
595
|
+
category: PaymentFailureCategory;
|
|
596
|
+
code?: Maybe<Scalars["String"]>;
|
|
597
|
+
message: Scalars["String"];
|
|
598
|
+
payerActionRequired: Scalars["Boolean"];
|
|
599
|
+
processorCode?: Maybe<Scalars["String"]>;
|
|
600
|
+
retryable: Scalars["Boolean"];
|
|
601
|
+
};
|
|
602
|
+
|
|
603
|
+
export enum PaymentEventStatus {
|
|
604
|
+
AUTHORIZED = "AUTHORIZED",
|
|
605
|
+
AWAITING_ACTION = "AWAITING_ACTION",
|
|
606
|
+
AWAITING_EXTERNAL_ACTION = "AWAITING_EXTERNAL_ACTION",
|
|
607
|
+
CANCELLED = "CANCELLED",
|
|
608
|
+
CAPTURED = "CAPTURED",
|
|
609
|
+
CREATED = "CREATED",
|
|
610
|
+
DECLINED = "DECLINED",
|
|
611
|
+
FAILED = "FAILED",
|
|
612
|
+
FUNDED = "FUNDED",
|
|
613
|
+
SETTLED = "SETTLED",
|
|
614
|
+
VOIDED = "VOIDED",
|
|
615
|
+
}
|
|
616
|
+
|
|
617
|
+
export enum PaymentEventTransactionType {
|
|
618
|
+
AUTHORIZATION = "AUTHORIZATION",
|
|
619
|
+
CAPTURE = "CAPTURE",
|
|
620
|
+
CHARGEBACK = "CHARGEBACK",
|
|
621
|
+
REFUND = "REFUND",
|
|
622
|
+
VOID = "VOID",
|
|
623
|
+
}
|
|
624
|
+
|
|
625
|
+
export enum PaymentFailureCategory {
|
|
626
|
+
ACH_RETURN = "ACH_RETURN",
|
|
627
|
+
AUTHENTICATION_REQUIRED = "AUTHENTICATION_REQUIRED",
|
|
628
|
+
CARD_DECLINED = "CARD_DECLINED",
|
|
629
|
+
CHARGEBACK_LOST = "CHARGEBACK_LOST",
|
|
630
|
+
DUPLICATE = "DUPLICATE",
|
|
631
|
+
EXPIRED_CARD = "EXPIRED_CARD",
|
|
632
|
+
INSUFFICIENT_FUNDS = "INSUFFICIENT_FUNDS",
|
|
633
|
+
INVALID_ACCOUNT = "INVALID_ACCOUNT",
|
|
634
|
+
PPF_ERROR = "PPF_ERROR",
|
|
635
|
+
PROCESSOR_ERROR = "PROCESSOR_ERROR",
|
|
636
|
+
}
|
|
637
|
+
|
|
581
638
|
export type PaymentMetadataResponse = {
|
|
582
639
|
__typename?: "PaymentMetadataResponse";
|
|
583
640
|
amount?: Maybe<Scalars["Float"]>;
|
|
@@ -695,26 +752,6 @@ export type RefundMethodDetails = {
|
|
|
695
752
|
userID?: Maybe<Scalars["String"]>;
|
|
696
753
|
};
|
|
697
754
|
|
|
698
|
-
/**
|
|
699
|
-
* `orderedIds` must be every published route on the entity, across all products,
|
|
700
|
-
* in the new order. Priority is one order per entity, so partial reorders are
|
|
701
|
-
* rejected. The server restamps `priority` as ascending LexoRank strings.
|
|
702
|
-
*/
|
|
703
|
-
export type ReorderRoutingRulesInput = {
|
|
704
|
-
entity: Scalars["String"];
|
|
705
|
-
orderedIds: Array<Scalars["ID"]>;
|
|
706
|
-
};
|
|
707
|
-
|
|
708
|
-
export type ReorderRoutingRulesResult =
|
|
709
|
-
| InternalError
|
|
710
|
-
| InvalidCommunity
|
|
711
|
-
| ReorderRoutingRulesSuccess;
|
|
712
|
-
|
|
713
|
-
export type ReorderRoutingRulesSuccess = {
|
|
714
|
-
__typename?: "ReorderRoutingRulesSuccess";
|
|
715
|
-
rules: Array<RoutingRule>;
|
|
716
|
-
};
|
|
717
|
-
|
|
718
755
|
/** Common interface for mutation responses that fail for predictable reasons. */
|
|
719
756
|
export type ResponseErrorMessage = {
|
|
720
757
|
message: Scalars["String"];
|
|
@@ -729,11 +766,7 @@ export type RoutingRule = {
|
|
|
729
766
|
entity: Scalars["String"];
|
|
730
767
|
id: Scalars["ID"];
|
|
731
768
|
notes?: Maybe<Scalars["String"]>;
|
|
732
|
-
|
|
733
|
-
* LexoRank string. Route order is the lexicographic order of this field, so
|
|
734
|
-
* sort on it as text — never parse it as a number.
|
|
735
|
-
*/
|
|
736
|
-
priority: Scalars["String"];
|
|
769
|
+
priority: Scalars["Int"];
|
|
737
770
|
publishedAt?: Maybe<Scalars["DateTime"]>;
|
|
738
771
|
ruleGroupId: Scalars["String"];
|
|
739
772
|
state: Scalars["String"];
|
|
@@ -754,11 +787,7 @@ export type SaveRoutingRuleInput = {
|
|
|
754
787
|
entity: Scalars["String"];
|
|
755
788
|
id?: InputMaybe<Scalars["ID"]>;
|
|
756
789
|
notes?: InputMaybe<Scalars["String"]>;
|
|
757
|
-
|
|
758
|
-
* LexoRank string (e.g. `0|i00007:`). Omit to let the server pick; use
|
|
759
|
-
* `reorderRoutingRules` to change the order of an existing list.
|
|
760
|
-
*/
|
|
761
|
-
priority?: InputMaybe<Scalars["String"]>;
|
|
790
|
+
priority?: InputMaybe<Scalars["Int"]>;
|
|
762
791
|
state?: InputMaybe<Scalars["String"]>;
|
|
763
792
|
suite?: InputMaybe<Scalars["String"]>;
|
|
764
793
|
};
|
|
@@ -844,6 +873,8 @@ export type UpdatePaymentFlowResponse = FlowResponseType & {
|
|
|
844
873
|
currency?: Maybe<Scalars["String"]>;
|
|
845
874
|
destinationPaymentID?: Maybe<Scalars["String"]>;
|
|
846
875
|
entityID: Scalars["String"];
|
|
876
|
+
eventStatus?: Maybe<PaymentEventStatus>;
|
|
877
|
+
failure?: Maybe<PaymentEventFailure>;
|
|
847
878
|
flowType: PaymentProcessorFlow;
|
|
848
879
|
last4?: Maybe<Scalars["String"]>;
|
|
849
880
|
paymentReference: Scalars["String"];
|
|
@@ -853,4 +884,5 @@ export type UpdatePaymentFlowResponse = FlowResponseType & {
|
|
|
853
884
|
status?: Maybe<PaymentStatus>;
|
|
854
885
|
tenantID: OpenGovTenant;
|
|
855
886
|
transactionID?: Maybe<Scalars["String"]>;
|
|
887
|
+
transactionType?: Maybe<PaymentEventTransactionType>;
|
|
856
888
|
};
|