Skip to content

Commit

Permalink
Merge pull request #522 from getlipa/fix/add-creditor-reference-to-to…
Browse files Browse the repository at this point in the history
…pup-info

Add missing `creditor_reference` to `FiatTopupInfo`
  • Loading branch information
danielgranhao authored Jul 24, 2023
2 parents 5bf2559 + 45f4df9 commit dfd3c3f
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/fiat_topup.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -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,
Expand Down
1 change: 1 addition & 0 deletions src/lipalightninglib.udl
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit dfd3c3f

Please sign in to comment.