@sniipwebmaster/transaction-service-client-grpcweb-ts 26.8.15607 → 26.9.15637
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/dependancies/ServiceServiceClientPb.ts +43 -0
- package/dependancies/service_pb.d.ts +166 -0
- package/dependancies/service_pb.js +1529 -208
- package/package.json +1 -1
|
@@ -1094,6 +1094,49 @@ export class SniipTransactionAPIServiceClient {
|
|
|
1094
1094
|
this.methodDescriptorGetPaymentMethodCategoryAvailability);
|
|
1095
1095
|
}
|
|
1096
1096
|
|
|
1097
|
+
methodDescriptorGetPaymentMethodAvailability = new grpcWeb.MethodDescriptor(
|
|
1098
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetPaymentMethodAvailability',
|
|
1099
|
+
grpcWeb.MethodType.UNARY,
|
|
1100
|
+
service_pb.GetPaymentMethodAvailabilityRequest,
|
|
1101
|
+
service_pb.PaymentMethodAvailabilityResponse,
|
|
1102
|
+
(request: service_pb.GetPaymentMethodAvailabilityRequest) => {
|
|
1103
|
+
return request.serializeBinary();
|
|
1104
|
+
},
|
|
1105
|
+
service_pb.PaymentMethodAvailabilityResponse.deserializeBinary
|
|
1106
|
+
);
|
|
1107
|
+
|
|
1108
|
+
getPaymentMethodAvailability(
|
|
1109
|
+
request: service_pb.GetPaymentMethodAvailabilityRequest,
|
|
1110
|
+
metadata?: grpcWeb.Metadata | null): Promise<service_pb.PaymentMethodAvailabilityResponse>;
|
|
1111
|
+
|
|
1112
|
+
getPaymentMethodAvailability(
|
|
1113
|
+
request: service_pb.GetPaymentMethodAvailabilityRequest,
|
|
1114
|
+
metadata: grpcWeb.Metadata | null,
|
|
1115
|
+
callback: (err: grpcWeb.RpcError,
|
|
1116
|
+
response: service_pb.PaymentMethodAvailabilityResponse) => void): grpcWeb.ClientReadableStream<service_pb.PaymentMethodAvailabilityResponse>;
|
|
1117
|
+
|
|
1118
|
+
getPaymentMethodAvailability(
|
|
1119
|
+
request: service_pb.GetPaymentMethodAvailabilityRequest,
|
|
1120
|
+
metadata?: grpcWeb.Metadata | null,
|
|
1121
|
+
callback?: (err: grpcWeb.RpcError,
|
|
1122
|
+
response: service_pb.PaymentMethodAvailabilityResponse) => void) {
|
|
1123
|
+
if (callback !== undefined) {
|
|
1124
|
+
return this.client_.rpcCall(
|
|
1125
|
+
this.hostname_ +
|
|
1126
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetPaymentMethodAvailability',
|
|
1127
|
+
request,
|
|
1128
|
+
metadata || {},
|
|
1129
|
+
this.methodDescriptorGetPaymentMethodAvailability,
|
|
1130
|
+
callback);
|
|
1131
|
+
}
|
|
1132
|
+
return this.client_.unaryCall(
|
|
1133
|
+
this.hostname_ +
|
|
1134
|
+
'/sniiptransactionapi.SniipTransactionAPIService/GetPaymentMethodAvailability',
|
|
1135
|
+
request,
|
|
1136
|
+
metadata || {},
|
|
1137
|
+
this.methodDescriptorGetPaymentMethodAvailability);
|
|
1138
|
+
}
|
|
1139
|
+
|
|
1097
1140
|
methodDescriptorGetPaymentDetailsBulk = new grpcWeb.MethodDescriptor(
|
|
1098
1141
|
'/sniiptransactionapi.SniipTransactionAPIService/GetPaymentDetailsBulk',
|
|
1099
1142
|
grpcWeb.MethodType.UNARY,
|
|
@@ -4771,6 +4771,9 @@ export class PaymentMethodCategoryAvailability extends jspb.Message {
|
|
|
4771
4771
|
hasPaymenterrordetail(): boolean;
|
|
4772
4772
|
clearPaymenterrordetail(): PaymentMethodCategoryAvailability;
|
|
4773
4773
|
|
|
4774
|
+
getReason(): PaymentErrorReason;
|
|
4775
|
+
setReason(value: PaymentErrorReason): PaymentMethodCategoryAvailability;
|
|
4776
|
+
|
|
4774
4777
|
serializeBinary(): Uint8Array;
|
|
4775
4778
|
toObject(includeInstance?: boolean): PaymentMethodCategoryAvailability.AsObject;
|
|
4776
4779
|
static toObject(includeInstance: boolean, msg: PaymentMethodCategoryAvailability): PaymentMethodCategoryAvailability.AsObject;
|
|
@@ -4784,6 +4787,7 @@ export namespace PaymentMethodCategoryAvailability {
|
|
|
4784
4787
|
category: PaymentMethodCategory,
|
|
4785
4788
|
selectable: boolean,
|
|
4786
4789
|
paymenterrordetail?: PaymentErrorDetail.AsObject,
|
|
4790
|
+
reason: PaymentErrorReason,
|
|
4787
4791
|
}
|
|
4788
4792
|
}
|
|
4789
4793
|
|
|
@@ -4813,6 +4817,156 @@ export namespace PaymentMethodCategoryAvailabilityResponse {
|
|
|
4813
4817
|
}
|
|
4814
4818
|
}
|
|
4815
4819
|
|
|
4820
|
+
export class WalletPaymentMethodDetail extends jspb.Message {
|
|
4821
|
+
getPaymenttype(): string;
|
|
4822
|
+
setPaymenttype(value: string): WalletPaymentMethodDetail;
|
|
4823
|
+
|
|
4824
|
+
getCardvariant(): string;
|
|
4825
|
+
setCardvariant(value: string): WalletPaymentMethodDetail;
|
|
4826
|
+
|
|
4827
|
+
serializeBinary(): Uint8Array;
|
|
4828
|
+
toObject(includeInstance?: boolean): WalletPaymentMethodDetail.AsObject;
|
|
4829
|
+
static toObject(includeInstance: boolean, msg: WalletPaymentMethodDetail): WalletPaymentMethodDetail.AsObject;
|
|
4830
|
+
static serializeBinaryToWriter(message: WalletPaymentMethodDetail, writer: jspb.BinaryWriter): void;
|
|
4831
|
+
static deserializeBinary(bytes: Uint8Array): WalletPaymentMethodDetail;
|
|
4832
|
+
static deserializeBinaryFromReader(message: WalletPaymentMethodDetail, reader: jspb.BinaryReader): WalletPaymentMethodDetail;
|
|
4833
|
+
}
|
|
4834
|
+
|
|
4835
|
+
export namespace WalletPaymentMethodDetail {
|
|
4836
|
+
export type AsObject = {
|
|
4837
|
+
paymenttype: string,
|
|
4838
|
+
cardvariant: string,
|
|
4839
|
+
}
|
|
4840
|
+
}
|
|
4841
|
+
|
|
4842
|
+
export class PaymentMethodAvailabilityRequest extends jspb.Message {
|
|
4843
|
+
getBillidsList(): Array<number>;
|
|
4844
|
+
setBillidsList(value: Array<number>): PaymentMethodAvailabilityRequest;
|
|
4845
|
+
clearBillidsList(): PaymentMethodAvailabilityRequest;
|
|
4846
|
+
addBillids(value: number, index?: number): PaymentMethodAvailabilityRequest;
|
|
4847
|
+
|
|
4848
|
+
getPaymentmethodidsList(): Array<number>;
|
|
4849
|
+
setPaymentmethodidsList(value: Array<number>): PaymentMethodAvailabilityRequest;
|
|
4850
|
+
clearPaymentmethodidsList(): PaymentMethodAvailabilityRequest;
|
|
4851
|
+
addPaymentmethodids(value: number, index?: number): PaymentMethodAvailabilityRequest;
|
|
4852
|
+
|
|
4853
|
+
getIsscheduled(): boolean;
|
|
4854
|
+
setIsscheduled(value: boolean): PaymentMethodAvailabilityRequest;
|
|
4855
|
+
|
|
4856
|
+
getIsbulk(): boolean;
|
|
4857
|
+
setIsbulk(value: boolean): PaymentMethodAvailabilityRequest;
|
|
4858
|
+
|
|
4859
|
+
getApplepaydetail(): WalletPaymentMethodDetail | undefined;
|
|
4860
|
+
setApplepaydetail(value?: WalletPaymentMethodDetail): PaymentMethodAvailabilityRequest;
|
|
4861
|
+
hasApplepaydetail(): boolean;
|
|
4862
|
+
clearApplepaydetail(): PaymentMethodAvailabilityRequest;
|
|
4863
|
+
|
|
4864
|
+
getGooglepaydetail(): WalletPaymentMethodDetail | undefined;
|
|
4865
|
+
setGooglepaydetail(value?: WalletPaymentMethodDetail): PaymentMethodAvailabilityRequest;
|
|
4866
|
+
hasGooglepaydetail(): boolean;
|
|
4867
|
+
clearGooglepaydetail(): PaymentMethodAvailabilityRequest;
|
|
4868
|
+
|
|
4869
|
+
serializeBinary(): Uint8Array;
|
|
4870
|
+
toObject(includeInstance?: boolean): PaymentMethodAvailabilityRequest.AsObject;
|
|
4871
|
+
static toObject(includeInstance: boolean, msg: PaymentMethodAvailabilityRequest): PaymentMethodAvailabilityRequest.AsObject;
|
|
4872
|
+
static serializeBinaryToWriter(message: PaymentMethodAvailabilityRequest, writer: jspb.BinaryWriter): void;
|
|
4873
|
+
static deserializeBinary(bytes: Uint8Array): PaymentMethodAvailabilityRequest;
|
|
4874
|
+
static deserializeBinaryFromReader(message: PaymentMethodAvailabilityRequest, reader: jspb.BinaryReader): PaymentMethodAvailabilityRequest;
|
|
4875
|
+
}
|
|
4876
|
+
|
|
4877
|
+
export namespace PaymentMethodAvailabilityRequest {
|
|
4878
|
+
export type AsObject = {
|
|
4879
|
+
billidsList: Array<number>,
|
|
4880
|
+
paymentmethodidsList: Array<number>,
|
|
4881
|
+
isscheduled: boolean,
|
|
4882
|
+
isbulk: boolean,
|
|
4883
|
+
applepaydetail?: WalletPaymentMethodDetail.AsObject,
|
|
4884
|
+
googlepaydetail?: WalletPaymentMethodDetail.AsObject,
|
|
4885
|
+
}
|
|
4886
|
+
}
|
|
4887
|
+
|
|
4888
|
+
export class GetPaymentMethodAvailabilityRequest extends jspb.Message {
|
|
4889
|
+
getData(): PaymentMethodAvailabilityRequest | undefined;
|
|
4890
|
+
setData(value?: PaymentMethodAvailabilityRequest): GetPaymentMethodAvailabilityRequest;
|
|
4891
|
+
hasData(): boolean;
|
|
4892
|
+
clearData(): GetPaymentMethodAvailabilityRequest;
|
|
4893
|
+
|
|
4894
|
+
serializeBinary(): Uint8Array;
|
|
4895
|
+
toObject(includeInstance?: boolean): GetPaymentMethodAvailabilityRequest.AsObject;
|
|
4896
|
+
static toObject(includeInstance: boolean, msg: GetPaymentMethodAvailabilityRequest): GetPaymentMethodAvailabilityRequest.AsObject;
|
|
4897
|
+
static serializeBinaryToWriter(message: GetPaymentMethodAvailabilityRequest, writer: jspb.BinaryWriter): void;
|
|
4898
|
+
static deserializeBinary(bytes: Uint8Array): GetPaymentMethodAvailabilityRequest;
|
|
4899
|
+
static deserializeBinaryFromReader(message: GetPaymentMethodAvailabilityRequest, reader: jspb.BinaryReader): GetPaymentMethodAvailabilityRequest;
|
|
4900
|
+
}
|
|
4901
|
+
|
|
4902
|
+
export namespace GetPaymentMethodAvailabilityRequest {
|
|
4903
|
+
export type AsObject = {
|
|
4904
|
+
data?: PaymentMethodAvailabilityRequest.AsObject,
|
|
4905
|
+
}
|
|
4906
|
+
}
|
|
4907
|
+
|
|
4908
|
+
export class PaymentMethodAvailability extends jspb.Message {
|
|
4909
|
+
getPaymentmethodid(): number;
|
|
4910
|
+
setPaymentmethodid(value: number): PaymentMethodAvailability;
|
|
4911
|
+
|
|
4912
|
+
getPaymenttype(): string;
|
|
4913
|
+
setPaymenttype(value: string): PaymentMethodAvailability;
|
|
4914
|
+
|
|
4915
|
+
getSelectable(): boolean;
|
|
4916
|
+
setSelectable(value: boolean): PaymentMethodAvailability;
|
|
4917
|
+
|
|
4918
|
+
getReason(): PaymentErrorReason;
|
|
4919
|
+
setReason(value: PaymentErrorReason): PaymentMethodAvailability;
|
|
4920
|
+
|
|
4921
|
+
getPaymenterrordetail(): PaymentErrorDetail | undefined;
|
|
4922
|
+
setPaymenterrordetail(value?: PaymentErrorDetail): PaymentMethodAvailability;
|
|
4923
|
+
hasPaymenterrordetail(): boolean;
|
|
4924
|
+
clearPaymenterrordetail(): PaymentMethodAvailability;
|
|
4925
|
+
|
|
4926
|
+
serializeBinary(): Uint8Array;
|
|
4927
|
+
toObject(includeInstance?: boolean): PaymentMethodAvailability.AsObject;
|
|
4928
|
+
static toObject(includeInstance: boolean, msg: PaymentMethodAvailability): PaymentMethodAvailability.AsObject;
|
|
4929
|
+
static serializeBinaryToWriter(message: PaymentMethodAvailability, writer: jspb.BinaryWriter): void;
|
|
4930
|
+
static deserializeBinary(bytes: Uint8Array): PaymentMethodAvailability;
|
|
4931
|
+
static deserializeBinaryFromReader(message: PaymentMethodAvailability, reader: jspb.BinaryReader): PaymentMethodAvailability;
|
|
4932
|
+
}
|
|
4933
|
+
|
|
4934
|
+
export namespace PaymentMethodAvailability {
|
|
4935
|
+
export type AsObject = {
|
|
4936
|
+
paymentmethodid: number,
|
|
4937
|
+
paymenttype: string,
|
|
4938
|
+
selectable: boolean,
|
|
4939
|
+
reason: PaymentErrorReason,
|
|
4940
|
+
paymenterrordetail?: PaymentErrorDetail.AsObject,
|
|
4941
|
+
}
|
|
4942
|
+
}
|
|
4943
|
+
|
|
4944
|
+
export class PaymentMethodAvailabilityResponse extends jspb.Message {
|
|
4945
|
+
getResponsecode(): ResponseCode | undefined;
|
|
4946
|
+
setResponsecode(value?: ResponseCode): PaymentMethodAvailabilityResponse;
|
|
4947
|
+
hasResponsecode(): boolean;
|
|
4948
|
+
clearResponsecode(): PaymentMethodAvailabilityResponse;
|
|
4949
|
+
|
|
4950
|
+
getPaymentmethodsList(): Array<PaymentMethodAvailability>;
|
|
4951
|
+
setPaymentmethodsList(value: Array<PaymentMethodAvailability>): PaymentMethodAvailabilityResponse;
|
|
4952
|
+
clearPaymentmethodsList(): PaymentMethodAvailabilityResponse;
|
|
4953
|
+
addPaymentmethods(value?: PaymentMethodAvailability, index?: number): PaymentMethodAvailability;
|
|
4954
|
+
|
|
4955
|
+
serializeBinary(): Uint8Array;
|
|
4956
|
+
toObject(includeInstance?: boolean): PaymentMethodAvailabilityResponse.AsObject;
|
|
4957
|
+
static toObject(includeInstance: boolean, msg: PaymentMethodAvailabilityResponse): PaymentMethodAvailabilityResponse.AsObject;
|
|
4958
|
+
static serializeBinaryToWriter(message: PaymentMethodAvailabilityResponse, writer: jspb.BinaryWriter): void;
|
|
4959
|
+
static deserializeBinary(bytes: Uint8Array): PaymentMethodAvailabilityResponse;
|
|
4960
|
+
static deserializeBinaryFromReader(message: PaymentMethodAvailabilityResponse, reader: jspb.BinaryReader): PaymentMethodAvailabilityResponse;
|
|
4961
|
+
}
|
|
4962
|
+
|
|
4963
|
+
export namespace PaymentMethodAvailabilityResponse {
|
|
4964
|
+
export type AsObject = {
|
|
4965
|
+
responsecode?: ResponseCode.AsObject,
|
|
4966
|
+
paymentmethodsList: Array<PaymentMethodAvailability.AsObject>,
|
|
4967
|
+
}
|
|
4968
|
+
}
|
|
4969
|
+
|
|
4816
4970
|
export class ShareBillReceiptEmailRequest extends jspb.Message {
|
|
4817
4971
|
getData(): PostShareBillReceiptEmailRequest | undefined;
|
|
4818
4972
|
setData(value?: PostShareBillReceiptEmailRequest): ShareBillReceiptEmailRequest;
|
|
@@ -5809,3 +5963,15 @@ export enum PaymentMethodCategory {
|
|
|
5809
5963
|
PAYMENT_METHOD_CATEGORY_WE_CHAT_PAY = 8,
|
|
5810
5964
|
PAYMENT_METHOD_CATEGORY_CLICK2PAY = 9,
|
|
5811
5965
|
}
|
|
5966
|
+
export enum PaymentErrorReason {
|
|
5967
|
+
PAYMENT_ERROR_REASON_UNKNOWN = 0,
|
|
5968
|
+
PAYMENT_ERROR_REASON_AMOUNT_BELOW_MIN = 1,
|
|
5969
|
+
PAYMENT_ERROR_REASON_AMOUNT_ABOVE_MAX = 2,
|
|
5970
|
+
PAYMENT_ERROR_REASON_PAYMENT_METHOD_NOT_ACCEPTED = 3,
|
|
5971
|
+
PAYMENT_ERROR_REASON_BILLER_CONFIG_UNDER_REVIEW = 4,
|
|
5972
|
+
PAYMENT_ERROR_REASON_BILLER_CONFIG_BLOCKED = 5,
|
|
5973
|
+
PAYMENT_ERROR_REASON_BILL_MISSING_SME_CONFIG = 6,
|
|
5974
|
+
PAYMENT_ERROR_REASON_NOT_AVAILABLE_FOR_BULK = 7,
|
|
5975
|
+
PAYMENT_ERROR_REASON_NOT_AVAILABLE_FOR_SCHEDULED = 8,
|
|
5976
|
+
PAYMENT_ERROR_REASON_PAYMENT_METHOD_EXPIRED = 9,
|
|
5977
|
+
}
|