diff --git a/app/graphql/generated.ts b/app/graphql/generated.ts index dd60e6cc3e..6f64314e8c 100644 --- a/app/graphql/generated.ts +++ b/app/graphql/generated.ts @@ -618,6 +618,18 @@ export type LnUpdate = { readonly walletId: Scalars['WalletId']['output']; }; +export type LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput = { + /** Amount in satoshis. */ + readonly amount: Scalars['SatAmount']['input']; + readonly descriptionHash?: InputMaybe; + /** Optional invoice expiration time in minutes. */ + readonly expiresIn?: InputMaybe; + /** Optional memo for the lightning invoice. Acts as a note to the recipient. */ + readonly memo?: InputMaybe; + /** Wallet ID for a USD wallet which belongs to the account of any user. */ + readonly recipientWalletId: Scalars['WalletId']['input']; +}; + export type LnUsdInvoiceCreateInput = { /** Amount in USD cents. */ readonly amount: Scalars['CentAmount']['input']; @@ -737,6 +749,13 @@ export type Mutation = { * Returns payment status (success, failed, pending, already_paid). */ readonly lnNoAmountUsdInvoicePaymentSend: PaymentSendPayload; + /** + * Returns a lightning invoice denominated in satoshis for an associated wallet. + * When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. + * Expires after 'expiresIn' or 5 minutes (short expiry time because there is a USD/BTC exchange rate + * associated with the amount). + */ + readonly lnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipient: LnInvoicePayload; /** * Returns a lightning invoice denominated in satoshis for an associated wallet. * When invoice is paid the equivalent value at invoice creation will be credited to a USD wallet. @@ -896,6 +915,11 @@ export type MutationLnNoAmountUsdInvoicePaymentSendArgs = { }; +export type MutationLnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientArgs = { + input: LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput; +}; + + export type MutationLnUsdInvoiceCreateArgs = { input: LnUsdInvoiceCreateInput; }; @@ -6723,6 +6747,7 @@ export type ResolversTypes = { LnPaymentRequest: ResolverTypeWrapper; LnPaymentSecret: ResolverTypeWrapper; LnUpdate: ResolverTypeWrapper; + LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput: LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput; LnUsdInvoiceCreateInput: LnUsdInvoiceCreateInput; LnUsdInvoiceCreateOnBehalfOfRecipientInput: LnUsdInvoiceCreateOnBehalfOfRecipientInput; LnUsdInvoiceFeeProbeInput: LnUsdInvoiceFeeProbeInput; @@ -6926,6 +6951,7 @@ export type ResolversParentTypes = { LnPaymentRequest: Scalars['LnPaymentRequest']['output']; LnPaymentSecret: Scalars['LnPaymentSecret']['output']; LnUpdate: LnUpdate; + LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput: LnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipientInput; LnUsdInvoiceCreateInput: LnUsdInvoiceCreateInput; LnUsdInvoiceCreateOnBehalfOfRecipientInput: LnUsdInvoiceCreateOnBehalfOfRecipientInput; LnUsdInvoiceFeeProbeInput: LnUsdInvoiceFeeProbeInput; @@ -7439,6 +7465,7 @@ export type MutationResolvers>; lnNoAmountUsdInvoiceFeeProbe?: Resolver>; lnNoAmountUsdInvoicePaymentSend?: Resolver>; + lnUsdInvoiceBtcDenominatedCreateOnBehalfOfRecipient?: Resolver>; lnUsdInvoiceCreate?: Resolver>; lnUsdInvoiceCreateOnBehalfOfRecipient?: Resolver>; lnUsdInvoiceFeeProbe?: Resolver>;