Skip to content

Commit 0835237

Browse files
authored
Merge pull request #126 from pluggyai/feat/add-isSandbox-to-payment-request
feat: add isSandbox to paymentRequest type
2 parents f1d38b6 + e498678 commit 0835237

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/types/payments/paymentRequest.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,7 @@ export type CreatePaymentRequest = {
4545
schedule?: PaymentRequestSchedule
4646
smartAccountId?: string
4747
clientPaymentId?: string
48+
isSandbox: boolean
4849
}
4950

5051
export type PaymentRequestSchedule =
@@ -147,6 +148,8 @@ export type PaymentRequest = {
147148
updatedAt: Date
148149
/**! Identification from client that can be used to track payment */
149150
clientPaymentId: string | null
151+
/**! Indicates if the paymentRequest is sandbox */
152+
isSandbox: boolean
150153
}
151154

152155
export type PaymentRequestAutomaticPix = Omit<PaymentRequest, 'amount'>
@@ -156,4 +159,4 @@ export type CallbackUrls = {
156159
error?: string
157160
}
158161

159-
export type CreatePaymentRequestAutomaticPix = Pick<CreatePaymentRequest, 'description' | 'recipientId' | 'customerId' | 'callbackUrls' | 'clientPaymentId'> & PaymentRequestAutomaticPixDetails
162+
export type CreatePaymentRequestAutomaticPix = Pick<CreatePaymentRequest, 'description' | 'recipientId' | 'customerId' | 'callbackUrls' | 'clientPaymentId'> & PaymentRequestAutomaticPixDetails & { isSandbox: boolean }

0 commit comments

Comments
 (0)