@stashfin/grpc 1.5.0 → 1.5.3
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/package.json +1 -1
- package/ts/bbps/processwebhookv2.d.ts +157 -0
- package/ts/bbps/processwebhookv2.js +1175 -0
- package/ts/bbps.d.ts +21 -7
- package/ts/bbps.js +10 -0
package/package.json
CHANGED
|
@@ -0,0 +1,157 @@
|
|
|
1
|
+
import _m0 from "protobufjs/minimal";
|
|
2
|
+
export declare const protobufPackage = "bbps.processwebhookv2";
|
|
3
|
+
export interface PaymentDetails {
|
|
4
|
+
method: string;
|
|
5
|
+
pg_txn_id: string;
|
|
6
|
+
bank_ref_no?: string | undefined;
|
|
7
|
+
settled_at?: string | undefined;
|
|
8
|
+
remitter_name?: string | undefined;
|
|
9
|
+
upi_vpa?: string | undefined;
|
|
10
|
+
upi_masked_vpa?: string | undefined;
|
|
11
|
+
txn_process_type?: string | undefined;
|
|
12
|
+
bank_id?: string | undefined;
|
|
13
|
+
payment_category?: string | undefined;
|
|
14
|
+
item_code?: string | undefined;
|
|
15
|
+
additional_info: {
|
|
16
|
+
[key: string]: string;
|
|
17
|
+
};
|
|
18
|
+
}
|
|
19
|
+
export interface PaymentDetails_AdditionalInfoEntry {
|
|
20
|
+
key: string;
|
|
21
|
+
value: string;
|
|
22
|
+
}
|
|
23
|
+
export interface BDTransactionRequest {
|
|
24
|
+
event_type: string;
|
|
25
|
+
transaction_id: number;
|
|
26
|
+
subscriber_id: string;
|
|
27
|
+
order_ref: string;
|
|
28
|
+
amount_minor: number;
|
|
29
|
+
charged_total_minor: number;
|
|
30
|
+
currency: string;
|
|
31
|
+
status: string;
|
|
32
|
+
final: boolean;
|
|
33
|
+
transaction_date: string;
|
|
34
|
+
payment_details: PaymentDetails | undefined;
|
|
35
|
+
customer_ctx: {
|
|
36
|
+
[key: string]: string;
|
|
37
|
+
};
|
|
38
|
+
metadata: {
|
|
39
|
+
[key: string]: string;
|
|
40
|
+
};
|
|
41
|
+
timestamp: string;
|
|
42
|
+
signature: string;
|
|
43
|
+
}
|
|
44
|
+
export interface BDTransactionRequest_CustomerCtxEntry {
|
|
45
|
+
key: string;
|
|
46
|
+
value: string;
|
|
47
|
+
}
|
|
48
|
+
export interface BDTransactionRequest_MetadataEntry {
|
|
49
|
+
key: string;
|
|
50
|
+
value: string;
|
|
51
|
+
}
|
|
52
|
+
export interface TxnResponse {
|
|
53
|
+
id: number;
|
|
54
|
+
customer_id: number;
|
|
55
|
+
utility_name: string;
|
|
56
|
+
provider_name: string;
|
|
57
|
+
/** optional / nullable */
|
|
58
|
+
provider_logo?: string | undefined;
|
|
59
|
+
/** nullable */
|
|
60
|
+
account_no?: string | undefined;
|
|
61
|
+
final_amount: number;
|
|
62
|
+
status: string;
|
|
63
|
+
txn_id: string;
|
|
64
|
+
order_id: string;
|
|
65
|
+
/** optional / nullable */
|
|
66
|
+
bbps_ref_no?: string | undefined;
|
|
67
|
+
/** optional */
|
|
68
|
+
source_ref_no?: string | undefined;
|
|
69
|
+
/** use ISO 8601 string or Timestamp */
|
|
70
|
+
paid_at: string;
|
|
71
|
+
/** optional / nullable */
|
|
72
|
+
biller_status?: string | undefined;
|
|
73
|
+
}
|
|
74
|
+
export interface AuthSessionResponse {
|
|
75
|
+
customer_id: number;
|
|
76
|
+
auth_token?: string | undefined;
|
|
77
|
+
device_id?: string | undefined;
|
|
78
|
+
}
|
|
79
|
+
export interface BDTransactionResponse {
|
|
80
|
+
txnResponse: TxnResponse | undefined;
|
|
81
|
+
authSessionResponse: AuthSessionResponse | undefined;
|
|
82
|
+
}
|
|
83
|
+
export declare const PaymentDetails: {
|
|
84
|
+
encode(message: PaymentDetails, writer?: _m0.Writer): _m0.Writer;
|
|
85
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentDetails;
|
|
86
|
+
fromJSON(object: any): PaymentDetails;
|
|
87
|
+
toJSON(message: PaymentDetails): unknown;
|
|
88
|
+
create<I extends Exact<DeepPartial<PaymentDetails>, I>>(base?: I): PaymentDetails;
|
|
89
|
+
fromPartial<I extends Exact<DeepPartial<PaymentDetails>, I>>(object: I): PaymentDetails;
|
|
90
|
+
};
|
|
91
|
+
export declare const PaymentDetails_AdditionalInfoEntry: {
|
|
92
|
+
encode(message: PaymentDetails_AdditionalInfoEntry, writer?: _m0.Writer): _m0.Writer;
|
|
93
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): PaymentDetails_AdditionalInfoEntry;
|
|
94
|
+
fromJSON(object: any): PaymentDetails_AdditionalInfoEntry;
|
|
95
|
+
toJSON(message: PaymentDetails_AdditionalInfoEntry): unknown;
|
|
96
|
+
create<I extends Exact<DeepPartial<PaymentDetails_AdditionalInfoEntry>, I>>(base?: I): PaymentDetails_AdditionalInfoEntry;
|
|
97
|
+
fromPartial<I extends Exact<DeepPartial<PaymentDetails_AdditionalInfoEntry>, I>>(object: I): PaymentDetails_AdditionalInfoEntry;
|
|
98
|
+
};
|
|
99
|
+
export declare const BDTransactionRequest: {
|
|
100
|
+
encode(message: BDTransactionRequest, writer?: _m0.Writer): _m0.Writer;
|
|
101
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest;
|
|
102
|
+
fromJSON(object: any): BDTransactionRequest;
|
|
103
|
+
toJSON(message: BDTransactionRequest): unknown;
|
|
104
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(base?: I): BDTransactionRequest;
|
|
105
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest>, I>>(object: I): BDTransactionRequest;
|
|
106
|
+
};
|
|
107
|
+
export declare const BDTransactionRequest_CustomerCtxEntry: {
|
|
108
|
+
encode(message: BDTransactionRequest_CustomerCtxEntry, writer?: _m0.Writer): _m0.Writer;
|
|
109
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_CustomerCtxEntry;
|
|
110
|
+
fromJSON(object: any): BDTransactionRequest_CustomerCtxEntry;
|
|
111
|
+
toJSON(message: BDTransactionRequest_CustomerCtxEntry): unknown;
|
|
112
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest_CustomerCtxEntry>, I>>(base?: I): BDTransactionRequest_CustomerCtxEntry;
|
|
113
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_CustomerCtxEntry>, I>>(object: I): BDTransactionRequest_CustomerCtxEntry;
|
|
114
|
+
};
|
|
115
|
+
export declare const BDTransactionRequest_MetadataEntry: {
|
|
116
|
+
encode(message: BDTransactionRequest_MetadataEntry, writer?: _m0.Writer): _m0.Writer;
|
|
117
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionRequest_MetadataEntry;
|
|
118
|
+
fromJSON(object: any): BDTransactionRequest_MetadataEntry;
|
|
119
|
+
toJSON(message: BDTransactionRequest_MetadataEntry): unknown;
|
|
120
|
+
create<I extends Exact<DeepPartial<BDTransactionRequest_MetadataEntry>, I>>(base?: I): BDTransactionRequest_MetadataEntry;
|
|
121
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionRequest_MetadataEntry>, I>>(object: I): BDTransactionRequest_MetadataEntry;
|
|
122
|
+
};
|
|
123
|
+
export declare const TxnResponse: {
|
|
124
|
+
encode(message: TxnResponse, writer?: _m0.Writer): _m0.Writer;
|
|
125
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): TxnResponse;
|
|
126
|
+
fromJSON(object: any): TxnResponse;
|
|
127
|
+
toJSON(message: TxnResponse): unknown;
|
|
128
|
+
create<I extends Exact<DeepPartial<TxnResponse>, I>>(base?: I): TxnResponse;
|
|
129
|
+
fromPartial<I extends Exact<DeepPartial<TxnResponse>, I>>(object: I): TxnResponse;
|
|
130
|
+
};
|
|
131
|
+
export declare const AuthSessionResponse: {
|
|
132
|
+
encode(message: AuthSessionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
133
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): AuthSessionResponse;
|
|
134
|
+
fromJSON(object: any): AuthSessionResponse;
|
|
135
|
+
toJSON(message: AuthSessionResponse): unknown;
|
|
136
|
+
create<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(base?: I): AuthSessionResponse;
|
|
137
|
+
fromPartial<I extends Exact<DeepPartial<AuthSessionResponse>, I>>(object: I): AuthSessionResponse;
|
|
138
|
+
};
|
|
139
|
+
export declare const BDTransactionResponse: {
|
|
140
|
+
encode(message: BDTransactionResponse, writer?: _m0.Writer): _m0.Writer;
|
|
141
|
+
decode(input: _m0.Reader | Uint8Array, length?: number): BDTransactionResponse;
|
|
142
|
+
fromJSON(object: any): BDTransactionResponse;
|
|
143
|
+
toJSON(message: BDTransactionResponse): unknown;
|
|
144
|
+
create<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(base?: I): BDTransactionResponse;
|
|
145
|
+
fromPartial<I extends Exact<DeepPartial<BDTransactionResponse>, I>>(object: I): BDTransactionResponse;
|
|
146
|
+
};
|
|
147
|
+
type Builtin = Date | Function | Uint8Array | string | number | boolean | undefined;
|
|
148
|
+
export type DeepPartial<T> = T extends Builtin ? T : T extends globalThis.Array<infer U> ? globalThis.Array<DeepPartial<U>> : T extends ReadonlyArray<infer U> ? ReadonlyArray<DeepPartial<U>> : T extends {} ? {
|
|
149
|
+
[K in keyof T]?: DeepPartial<T[K]>;
|
|
150
|
+
} : Partial<T>;
|
|
151
|
+
type KeysOfUnion<T> = T extends T ? keyof T : never;
|
|
152
|
+
export type Exact<P, I extends P> = P extends Builtin ? P : P & {
|
|
153
|
+
[K in keyof P]: Exact<P[K], I[K]>;
|
|
154
|
+
} & {
|
|
155
|
+
[K in Exclude<keyof I, KeysOfUnion<P>>]: never;
|
|
156
|
+
};
|
|
157
|
+
export {};
|