@anrmk/str-package 0.2.27 → 0.2.30

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.
@@ -6,7 +6,7 @@ type TSyncResponse<T> = {
6
6
  };
7
7
 
8
8
  type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
9
- type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
9
+ type TPaymentStatus = "WAITING" | "CONFIRMING" | "CONFIRMED" | "BLOCKED" | "SENDING" | "PENDING" | "PARTIALLY_PAID" | "COMPLETED" | "FINISHED" | "FAILED" | "EXPIRED";
10
10
  type TCreatePaymentRequest = {
11
11
  amount: number;
12
12
  currency: string;
@@ -23,6 +23,7 @@ type TCreatePaymentResult = {
23
23
  type TPaymentProvider = {
24
24
  readonly id: TPaymentProviderId;
25
25
  createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
26
+ getPayment(paymentId: string): Promise<any>;
26
27
  };
27
28
 
28
29
  export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
@@ -6,7 +6,7 @@ type TSyncResponse<T> = {
6
6
  };
7
7
 
8
8
  type TPaymentProviderId = "FREE" | "CONFIRMO" | "MOONPAY" | "NOWPAYMENTS" | "ZEN";
9
- type TPaymentStatus = "CREATED" | "PENDING" | "COMPLETED" | "FAILED";
9
+ type TPaymentStatus = "WAITING" | "CONFIRMING" | "CONFIRMED" | "BLOCKED" | "SENDING" | "PENDING" | "PARTIALLY_PAID" | "COMPLETED" | "FINISHED" | "FAILED" | "EXPIRED";
10
10
  type TCreatePaymentRequest = {
11
11
  amount: number;
12
12
  currency: string;
@@ -23,6 +23,7 @@ type TCreatePaymentResult = {
23
23
  type TPaymentProvider = {
24
24
  readonly id: TPaymentProviderId;
25
25
  createPayment(request: TCreatePaymentRequest): Promise<TCreatePaymentResult>;
26
+ getPayment(paymentId: string): Promise<any>;
26
27
  };
27
28
 
28
29
  export type { TCreatePaymentRequest, TCreatePaymentResult, TPaymentProvider, TPaymentProviderId, TPaymentStatus, TSyncResponse };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@anrmk/str-package",
3
- "version": "0.2.27",
3
+ "version": "0.2.30",
4
4
  "description": "Shared providers, types, and utils for STR services",
5
5
  "license": "MIT",
6
6
  "type": "module",