@arbiwallet/contracts 1.0.133 → 1.0.134

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/gen/deposit.ts CHANGED
@@ -87,6 +87,34 @@ export interface HandlePaymentDillDepositWebhookResponse {
87
87
  status: string;
88
88
  }
89
89
 
90
+ export interface GetPaymentDillDepositStatusRequest {
91
+ userId: string;
92
+ depositId: string;
93
+ }
94
+
95
+ export interface GetPaymentDillDepositStatusResponse {
96
+ depositId: string;
97
+ status: string;
98
+ paymentCurrency?: string | undefined;
99
+ purpose?: string | undefined;
100
+ requestedCreditAmount?: string | undefined;
101
+ amountMajor?: string | undefined;
102
+ creditAmount?: string | undefined;
103
+ creditAsset?: string | undefined;
104
+ creditNetwork?: string | undefined;
105
+ providerTransactionId?: string | undefined;
106
+ ledgerDepositId?: string | undefined;
107
+ cardTopupStatus?: string | undefined;
108
+ cardTopupError?: string | undefined;
109
+ cardCreateStatus?: string | undefined;
110
+ cardCreateError?: string | undefined;
111
+ createdCardId?: number | undefined;
112
+ createdAt?: string | undefined;
113
+ completedAt?: string | undefined;
114
+ expiresAt?: string | undefined;
115
+ expiredAt?: string | undefined;
116
+ }
117
+
90
118
  export const DEPOSIT_V1_PACKAGE_NAME = "deposit.v1";
91
119
 
92
120
  export interface DepositIntegrationClient {
@@ -101,6 +129,10 @@ export interface DepositIntegrationClient {
101
129
  handlePaymentDillDepositWebhook(
102
130
  request: HandlePaymentDillDepositWebhookRequest,
103
131
  ): Observable<HandlePaymentDillDepositWebhookResponse>;
132
+
133
+ getPaymentDillDepositStatus(
134
+ request: GetPaymentDillDepositStatusRequest,
135
+ ): Observable<GetPaymentDillDepositStatusResponse>;
104
136
  }
105
137
 
106
138
  export interface DepositIntegrationController {
@@ -125,6 +157,13 @@ export interface DepositIntegrationController {
125
157
  | Promise<HandlePaymentDillDepositWebhookResponse>
126
158
  | Observable<HandlePaymentDillDepositWebhookResponse>
127
159
  | HandlePaymentDillDepositWebhookResponse;
160
+
161
+ getPaymentDillDepositStatus(
162
+ request: GetPaymentDillDepositStatusRequest,
163
+ ):
164
+ | Promise<GetPaymentDillDepositStatusResponse>
165
+ | Observable<GetPaymentDillDepositStatusResponse>
166
+ | GetPaymentDillDepositStatusResponse;
128
167
  }
129
168
 
130
169
  export function DepositIntegrationControllerMethods() {
@@ -133,6 +172,7 @@ export function DepositIntegrationControllerMethods() {
133
172
  "applyBitGoCustodyAck",
134
173
  "createPaymentDillDeposit",
135
174
  "handlePaymentDillDepositWebhook",
175
+ "getPaymentDillDepositStatus",
136
176
  ];
137
177
  for (const method of grpcMethods) {
138
178
  const descriptor: any = Reflect.getOwnPropertyDescriptor(constructor.prototype, method);
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "@arbiwallet/contracts",
3
3
  "descriptions": "Generate and manage smart contracts for ArbiWallet",
4
- "version": "1.0.133",
4
+ "version": "1.0.134",
5
5
  "scripts": {
6
6
  "generate": "protoc -I ./proto ./proto/*.proto --ts_proto_out=./gen --ts_proto_opt=nestJs=true,package=omit"
7
7
  },
@@ -16,6 +16,9 @@ service DepositIntegration {
16
16
 
17
17
  rpc HandlePaymentDillDepositWebhook(HandlePaymentDillDepositWebhookRequest)
18
18
  returns (HandlePaymentDillDepositWebhookResponse);
19
+
20
+ rpc GetPaymentDillDepositStatus(GetPaymentDillDepositStatusRequest)
21
+ returns (GetPaymentDillDepositStatusResponse);
19
22
  }
20
23
 
21
24
  message ApplyBitGoCustodyAckRequest {
@@ -78,3 +81,31 @@ message HandlePaymentDillDepositWebhookResponse {
78
81
  string deposit_id = 2;
79
82
  string status = 3;
80
83
  }
84
+
85
+ message GetPaymentDillDepositStatusRequest {
86
+ string user_id = 1;
87
+ string deposit_id = 2;
88
+ }
89
+
90
+ message GetPaymentDillDepositStatusResponse {
91
+ string deposit_id = 1;
92
+ string status = 2;
93
+ optional string payment_currency = 3;
94
+ optional string purpose = 4;
95
+ optional string requested_credit_amount = 5;
96
+ optional string amount_major = 6;
97
+ optional string credit_amount = 7;
98
+ optional string credit_asset = 8;
99
+ optional string credit_network = 9;
100
+ optional string provider_transaction_id = 10;
101
+ optional string ledger_deposit_id = 11;
102
+ optional string card_topup_status = 12;
103
+ optional string card_topup_error = 13;
104
+ optional string card_create_status = 14;
105
+ optional string card_create_error = 15;
106
+ optional int64 created_card_id = 16;
107
+ optional string created_at = 17;
108
+ optional string completed_at = 18;
109
+ optional string expires_at = 19;
110
+ optional string expired_at = 20;
111
+ }