Skip to content
Merged
Show file tree
Hide file tree
Changes from 4 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "hawk.api",
"version": "1.4.8",
"version": "1.4.9",
"main": "index.ts",
"license": "BUSL-1.1",
"scripts": {
Expand Down
2 changes: 2 additions & 0 deletions src/resolvers/billingNew.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ export default {
currency: string;
checksum: string;
nextPaymentDate: Date;
cloudPaymentsPublicId: string;
}> {
const { workspaceId, tariffPlanId, shouldSaveCard } = input;

Expand Down Expand Up @@ -178,6 +179,7 @@ debug: ${Boolean(workspace.isDebug)}`
currency: 'RUB',
checksum,
nextPaymentDate,
cloudPaymentsPublicId: process.env.CLOUDPAYMENTS_PUBLIC_ID || '',
};
},
},
Expand Down
5 changes: 5 additions & 0 deletions src/typeDefs/billing.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,6 +270,11 @@ type ComposePaymentResponse {
Next payment date (recurrent start)
"""
nextPaymentDate: DateTime!

"""
CloudPayments public id (merchant identifier for widget)
"""
cloudPaymentsPublicId: String!
}


Expand Down