Skip to content

Commit c4d0111

Browse files
Merge pull request #630 from codex-team/fix/get-cloudpaymentid-from-compose-payment-api
chore: add cloudPaymentsPublicId to composePayment
2 parents a766c29 + 4e718ac commit c4d0111

File tree

3 files changed

+8
-1
lines changed

3 files changed

+8
-1
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "hawk.api",
3-
"version": "1.4.8",
3+
"version": "1.4.9",
44
"main": "index.ts",
55
"license": "BUSL-1.1",
66
"scripts": {

src/resolvers/billingNew.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,7 @@ export default {
8686
currency: string;
8787
checksum: string;
8888
nextPaymentDate: Date;
89+
cloudPaymentsPublicId: string;
8990
}> {
9091
const { workspaceId, tariffPlanId, shouldSaveCard } = input;
9192

@@ -178,6 +179,7 @@ debug: ${Boolean(workspace.isDebug)}`
178179
currency: 'RUB',
179180
checksum,
180181
nextPaymentDate,
182+
cloudPaymentsPublicId: process.env.CLOUDPAYMENTS_PUBLIC_ID || '',
181183
};
182184
},
183185
},

src/typeDefs/billing.ts

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -270,6 +270,11 @@ type ComposePaymentResponse {
270270
Next payment date (recurrent start)
271271
"""
272272
nextPaymentDate: DateTime!
273+
274+
"""
275+
CloudPayments public id (merchant identifier for payment widget)
276+
"""
277+
cloudPaymentsPublicId: String!
273278
}
274279
275280

0 commit comments

Comments
 (0)