diff --git a/src/fiat_topup.rs b/src/fiat_topup.rs index dd7c3571..f49a2e31 100644 --- a/src/fiat_topup.rs +++ b/src/fiat_topup.rs @@ -18,6 +18,7 @@ pub enum TopupCurrency { #[derive(Debug)] pub struct FiatTopupInfo { pub debitor_iban: String, + pub creditor_reference: String, pub creditor_iban: String, pub creditor_bank_name: String, pub creditor_bank_street: String, @@ -36,6 +37,7 @@ impl FiatTopupInfo { fn from_pocket_create_order_response(create_order_response: CreateOrderResponse) -> Self { FiatTopupInfo { debitor_iban: create_order_response.payment_method.debitor_iban, + creditor_reference: create_order_response.payment_method.creditor_reference, creditor_iban: create_order_response.payment_method.creditor_iban, creditor_bank_name: create_order_response.payment_method.creditor_bank_name, creditor_bank_street: create_order_response.payment_method.creditor_bank_street, diff --git a/src/lipalightninglib.udl b/src/lipalightninglib.udl index 1f0273ab..db5854d9 100644 --- a/src/lipalightninglib.udl +++ b/src/lipalightninglib.udl @@ -375,6 +375,7 @@ enum TopupCurrency { // Information about a fiat top-up registration dictionary FiatTopupInfo { string debitor_iban; // The user should transfer fiat from this IBAN + string creditor_reference; // This reference should be included in the fiat transfer reference string creditor_iban; // The user should transfer fiat to this IBAN string creditor_bank_name; string creditor_bank_street;