@aepstore-dev/contracts 1.45.1 → 1.47.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/gen/payments.d.ts CHANGED
@@ -55,6 +55,25 @@ export interface BindCardRequest {
55
55
  userId: string;
56
56
  returnUrl: string;
57
57
  }
58
+ export interface GetPaymentIntentRequest {
59
+ intentId: string;
60
+ /** ownership check */
61
+ userId: string;
62
+ }
63
+ export interface PaymentIntentStatus {
64
+ id: string;
65
+ userId: string;
66
+ /** TOPUP | PREMIUM */
67
+ purpose: string;
68
+ /** PENDING | COMPLETED | FAILED | CANCELED */
69
+ status: string;
70
+ amount: string;
71
+ currency: string;
72
+ /** set when purpose=PREMIUM (else empty) */
73
+ purchaseId: string;
74
+ createdAt: string;
75
+ updatedAt: string;
76
+ }
58
77
  export interface CheckoutResponse {
59
78
  purchaseId: string;
60
79
  paymentId: string;
@@ -562,6 +581,11 @@ export interface PaymentsServiceClient {
562
581
  * persisted and the 1₽ credits USER_SPENDING so the user keeps it.
563
582
  */
564
583
  bindCard(request: BindCardRequest): Observable<CheckoutResponse>;
584
+ /**
585
+ * Poll an intent after returnUrl redirect: TOPUP/PREMIUM completion, bind-card
586
+ * completion. Ownership-checked by user_id.
587
+ */
588
+ getPaymentIntent(request: GetPaymentIntentRequest): Observable<PaymentIntentStatus>;
565
589
  /** ----- payout details ----- */
566
590
  updatePayoutDetails(request: UpdatePayoutDetailsRequest): Observable<UpdatePayoutDetailsResponse>;
567
591
  getPayoutDetails(request: GetPayoutDetailsRequest): Observable<UpdatePayoutDetailsResponse>;
@@ -619,6 +643,11 @@ export interface PaymentsServiceController {
619
643
  * persisted and the 1₽ credits USER_SPENDING so the user keeps it.
620
644
  */
621
645
  bindCard(request: BindCardRequest): Promise<CheckoutResponse> | Observable<CheckoutResponse> | CheckoutResponse;
646
+ /**
647
+ * Poll an intent after returnUrl redirect: TOPUP/PREMIUM completion, bind-card
648
+ * completion. Ownership-checked by user_id.
649
+ */
650
+ getPaymentIntent(request: GetPaymentIntentRequest): Promise<PaymentIntentStatus> | Observable<PaymentIntentStatus> | PaymentIntentStatus;
622
651
  /** ----- payout details ----- */
623
652
  updatePayoutDetails(request: UpdatePayoutDetailsRequest): Promise<UpdatePayoutDetailsResponse> | Observable<UpdatePayoutDetailsResponse> | UpdatePayoutDetailsResponse;
624
653
  getPayoutDetails(request: GetPayoutDetailsRequest): Promise<UpdatePayoutDetailsResponse> | Observable<UpdatePayoutDetailsResponse> | UpdatePayoutDetailsResponse;
package/gen/payments.js CHANGED
@@ -36,6 +36,7 @@ function PaymentsServiceControllerMethods() {
36
36
  "setDefaultSavedCard",
37
37
  "updateSavedCard",
38
38
  "bindCard",
39
+ "getPaymentIntent",
39
40
  "updatePayoutDetails",
40
41
  "getPayoutDetails",
41
42
  "getAdminOverview",
package/gen/payments.ts CHANGED
@@ -70,6 +70,27 @@ export interface BindCardRequest {
70
70
  returnUrl: string;
71
71
  }
72
72
 
73
+ export interface GetPaymentIntentRequest {
74
+ intentId: string;
75
+ /** ownership check */
76
+ userId: string;
77
+ }
78
+
79
+ export interface PaymentIntentStatus {
80
+ id: string;
81
+ userId: string;
82
+ /** TOPUP | PREMIUM */
83
+ purpose: string;
84
+ /** PENDING | COMPLETED | FAILED | CANCELED */
85
+ status: string;
86
+ amount: string;
87
+ currency: string;
88
+ /** set when purpose=PREMIUM (else empty) */
89
+ purchaseId: string;
90
+ createdAt: string;
91
+ updatedAt: string;
92
+ }
93
+
73
94
  export interface CheckoutResponse {
74
95
  purchaseId: string;
75
96
  paymentId: string;
@@ -665,6 +686,13 @@ export interface PaymentsServiceClient {
665
686
 
666
687
  bindCard(request: BindCardRequest): Observable<CheckoutResponse>;
667
688
 
689
+ /**
690
+ * Poll an intent after returnUrl redirect: TOPUP/PREMIUM completion, bind-card
691
+ * completion. Ownership-checked by user_id.
692
+ */
693
+
694
+ getPaymentIntent(request: GetPaymentIntentRequest): Observable<PaymentIntentStatus>;
695
+
668
696
  /** ----- payout details ----- */
669
697
 
670
698
  updatePayoutDetails(request: UpdatePayoutDetailsRequest): Observable<UpdatePayoutDetailsResponse>;
@@ -785,6 +813,15 @@ export interface PaymentsServiceController {
785
813
 
786
814
  bindCard(request: BindCardRequest): Promise<CheckoutResponse> | Observable<CheckoutResponse> | CheckoutResponse;
787
815
 
816
+ /**
817
+ * Poll an intent after returnUrl redirect: TOPUP/PREMIUM completion, bind-card
818
+ * completion. Ownership-checked by user_id.
819
+ */
820
+
821
+ getPaymentIntent(
822
+ request: GetPaymentIntentRequest,
823
+ ): Promise<PaymentIntentStatus> | Observable<PaymentIntentStatus> | PaymentIntentStatus;
824
+
788
825
  /** ----- payout details ----- */
789
826
 
790
827
  updatePayoutDetails(
@@ -841,6 +878,7 @@ export function PaymentsServiceControllerMethods() {
841
878
  "setDefaultSavedCard",
842
879
  "updateSavedCard",
843
880
  "bindCard",
881
+ "getPaymentIntent",
844
882
  "updatePayoutDetails",
845
883
  "getPayoutDetails",
846
884
  "getAdminOverview",
package/gen/support.d.ts CHANGED
@@ -79,9 +79,20 @@ export interface GetTicketRequest {
79
79
  }
80
80
  export interface ListMyTicketsRequest {
81
81
  authorId: string;
82
+ /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
82
83
  status: string;
83
84
  page: number;
84
85
  limit: number;
86
+ /** GENERAL|TECHNICAL|SALES */
87
+ department: string;
88
+ /** GENERAL|PAYMENT|... */
89
+ category: string;
90
+ /** contains in subject OR in any message body */
91
+ search: string;
92
+ /** ISO; inclusive lower bound on createdAt */
93
+ dateFrom: string;
94
+ /** ISO; inclusive upper bound on createdAt */
95
+ dateTo: string;
85
96
  }
86
97
  export interface ReplyTicketRequest {
87
98
  ticketId: string;
@@ -97,11 +108,18 @@ export interface CloseTicketRequest {
97
108
  isStaff: boolean;
98
109
  }
99
110
  export interface ListTicketsRequest {
111
+ /** single value OR comma-separated */
100
112
  status: string;
101
113
  category: string;
102
114
  assigneeId: string;
103
115
  page: number;
104
116
  limit: number;
117
+ department: string;
118
+ /** contains in subject OR in any message body */
119
+ search: string;
120
+ /** ISO; inclusive lower bound on createdAt */
121
+ dateFrom: string;
122
+ dateTo: string;
105
123
  }
106
124
  export interface AssignTicketRequest {
107
125
  ticketId: string;
package/gen/support.ts CHANGED
@@ -96,9 +96,20 @@ export interface GetTicketRequest {
96
96
 
97
97
  export interface ListMyTicketsRequest {
98
98
  authorId: string;
99
+ /** single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS") */
99
100
  status: string;
100
101
  page: number;
101
102
  limit: number;
103
+ /** GENERAL|TECHNICAL|SALES */
104
+ department: string;
105
+ /** GENERAL|PAYMENT|... */
106
+ category: string;
107
+ /** contains in subject OR in any message body */
108
+ search: string;
109
+ /** ISO; inclusive lower bound on createdAt */
110
+ dateFrom: string;
111
+ /** ISO; inclusive upper bound on createdAt */
112
+ dateTo: string;
102
113
  }
103
114
 
104
115
  export interface ReplyTicketRequest {
@@ -117,11 +128,18 @@ export interface CloseTicketRequest {
117
128
  }
118
129
 
119
130
  export interface ListTicketsRequest {
131
+ /** single value OR comma-separated */
120
132
  status: string;
121
133
  category: string;
122
134
  assigneeId: string;
123
135
  page: number;
124
136
  limit: number;
137
+ department: string;
138
+ /** contains in subject OR in any message body */
139
+ search: string;
140
+ /** ISO; inclusive lower bound on createdAt */
141
+ dateFrom: string;
142
+ dateTo: string;
125
143
  }
126
144
 
127
145
  export interface AssignTicketRequest {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aepstore-dev/contracts",
3
- "version": "1.45.1",
3
+ "version": "1.47.0",
4
4
  "description": "Protobuf definitions for aepstore microservices",
5
5
  "main": "./dist/index.js",
6
6
  "types": "./dist/index.d.ts",
@@ -46,6 +46,9 @@ service PaymentsService {
46
46
  // save_payment_method=true; after the webhook the SavedCard row is
47
47
  // persisted and the 1₽ credits USER_SPENDING so the user keeps it.
48
48
  rpc BindCard(BindCardRequest) returns (CheckoutResponse);
49
+ // Poll an intent after returnUrl redirect: TOPUP/PREMIUM completion, bind-card
50
+ // completion. Ownership-checked by user_id.
51
+ rpc GetPaymentIntent(GetPaymentIntentRequest) returns (PaymentIntentStatus);
49
52
 
50
53
  // ----- payout details -----
51
54
  rpc UpdatePayoutDetails(UpdatePayoutDetailsRequest) returns (UpdatePayoutDetailsResponse);
@@ -105,6 +108,23 @@ message BindCardRequest {
105
108
  string return_url = 2;
106
109
  }
107
110
 
111
+ message GetPaymentIntentRequest {
112
+ string intent_id = 1;
113
+ string user_id = 2; // ownership check
114
+ }
115
+
116
+ message PaymentIntentStatus {
117
+ string id = 1;
118
+ string user_id = 2;
119
+ string purpose = 3; // TOPUP | PREMIUM
120
+ string status = 4; // PENDING | COMPLETED | FAILED | CANCELED
121
+ string amount = 5;
122
+ string currency = 6;
123
+ string purchase_id = 7; // set when purpose=PREMIUM (else empty)
124
+ string created_at = 8;
125
+ string updated_at = 9;
126
+ }
127
+
108
128
  message CheckoutResponse {
109
129
  string purchase_id = 1;
110
130
  string payment_id = 2;
@@ -85,9 +85,14 @@ message GetTicketRequest {
85
85
 
86
86
  message ListMyTicketsRequest {
87
87
  string author_id = 1;
88
- string status = 2;
88
+ string status = 2; // single value OR comma-separated (e.g. "OPEN,PENDING,IN_PROGRESS")
89
89
  int32 page = 3;
90
90
  int32 limit = 4;
91
+ string department = 5; // GENERAL|TECHNICAL|SALES
92
+ string category = 6; // GENERAL|PAYMENT|...
93
+ string search = 7; // contains in subject OR in any message body
94
+ string date_from = 8; // ISO; inclusive lower bound on createdAt
95
+ string date_to = 9; // ISO; inclusive upper bound on createdAt
91
96
  }
92
97
 
93
98
  message ReplyTicketRequest {
@@ -105,11 +110,15 @@ message CloseTicketRequest {
105
110
  }
106
111
 
107
112
  message ListTicketsRequest {
108
- string status = 1;
113
+ string status = 1; // single value OR comma-separated
109
114
  string category = 2;
110
115
  string assignee_id = 3;
111
116
  int32 page = 4;
112
117
  int32 limit = 5;
118
+ string department = 6;
119
+ string search = 7; // contains in subject OR in any message body
120
+ string date_from = 8; // ISO; inclusive lower bound on createdAt
121
+ string date_to = 9;
113
122
  }
114
123
 
115
124
  message AssignTicketRequest {