Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Regenerate sdk #117

Merged
merged 1 commit into from
Jun 27, 2024
Merged
Show file tree
Hide file tree
Changes from all 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
1 change: 1 addition & 0 deletions objects/account.go
Original file line number Diff line number Diff line change
Expand Up @@ -1767,6 +1767,7 @@ func (obj Account) GetWithdrawalRequests(requester *requester.Requester, first *
id
}
withdrawal_request_idempotency_key: idempotency_key
withdrawal_request_initiator: initiator
}
}
}
Expand Down
3 changes: 3 additions & 0 deletions objects/create_lnurl_invoice_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,7 @@ type CreateLnurlInvoiceInput struct {

// ExpirySecs The expiry of the invoice in seconds. Default value is 86400 (1 day).
ExpirySecs *int64 `json:"create_lnurl_invoice_input_expiry_secs"`

// ReceiverHash An optional, monthly-rotated, unique hashed identifier corresponding to the receiver of the payment.
ReceiverHash *string `json:"create_lnurl_invoice_input_receiver_hash"`
}
2 changes: 2 additions & 0 deletions objects/create_uma_invoice_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ type CreateUmaInvoiceInput struct {
MetadataHash string `json:"create_uma_invoice_input_metadata_hash"`

ExpirySecs *int64 `json:"create_uma_invoice_input_expiry_secs"`

ReceiverHash *string `json:"create_uma_invoice_input_receiver_hash"`
}
3 changes: 3 additions & 0 deletions objects/pay_uma_invoice_input.go
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,7 @@ type PayUmaInvoiceInput struct {
AmountMsats *int64 `json:"pay_uma_invoice_input_amount_msats"`

IdempotencyKey *string `json:"pay_uma_invoice_input_idempotency_key"`

// SenderHash An optional, monthly-rotated, unique hashed identifier corresponding to the sender of the payment.
SenderHash *string `json:"pay_uma_invoice_input_sender_hash"`
}
52 changes: 52 additions & 0 deletions objects/request_initiator.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
// Copyright ©, 2023-present, Lightspark Group, Inc. - All Rights Reserved
package objects

import (
"encoding/json"
)

type RequestInitiator int

const (
RequestInitiatorUndefined RequestInitiator = iota

RequestInitiatorCustomer

RequestInitiatorLightspark
)

func (a *RequestInitiator) UnmarshalJSON(b []byte) error {
var s string
if err := json.Unmarshal(b, &s); err != nil {
return err
}
switch s {
default:
*a = RequestInitiatorUndefined
case "CUSTOMER":
*a = RequestInitiatorCustomer
case "LIGHTSPARK":
*a = RequestInitiatorLightspark

}
return nil
}

func (a RequestInitiator) StringValue() string {
var s string
switch a {
default:
s = "undefined"
case RequestInitiatorCustomer:
s = "CUSTOMER"
case RequestInitiatorLightspark:
s = "LIGHTSPARK"

}
return s
}

func (a RequestInitiator) MarshalJSON() ([]byte, error) {
s := a.StringValue()
return json.Marshal(s)
}
1 change: 1 addition & 0 deletions objects/wallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -1140,6 +1140,7 @@ func (obj Wallet) GetWithdrawalRequests(requester *requester.Requester, first *i
id
}
withdrawal_request_idempotency_key: idempotency_key
withdrawal_request_initiator: initiator
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions objects/withdrawal_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,9 @@ type WithdrawalRequest struct {
// IdempotencyKey The idempotency key of the withdrawal request.
IdempotencyKey *string `json:"withdrawal_request_idempotency_key"`

// Initiator The initiator of the withdrawal.
Initiator RequestInitiator `json:"withdrawal_request_initiator"`

// Typename The typename of the object
Typename string `json:"__typename"`
}
Expand Down Expand Up @@ -116,6 +119,7 @@ fragment WithdrawalRequestFragment on WithdrawalRequest {
id
}
withdrawal_request_idempotency_key: idempotency_key
withdrawal_request_initiator: initiator
}
`
)
Expand Down
Loading