Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/bnpl-payment-integration' into b…
Browse files Browse the repository at this point in the history
…npl-payment-integration

# Conflicts:
#	adapter/model.go
  • Loading branch information
deryacakmak committed Nov 14, 2023
2 parents 4f7e20e + 33bda32 commit 873ba62
Showing 1 changed file with 0 additions and 59 deletions.
59 changes: 0 additions & 59 deletions adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -474,17 +474,6 @@ const (
BnplCartItemType_OTHER BnplCartItemType = "OTHER"
)

// RecordType declaration
const (
RecordType_SEND RecordType = "SEND"
RecordType_RECEIVE RecordType = "RECEIVE"
)

// BankAccountTrackingSource declaration
const (
BankAccountTrackingSource_YKB BankAccountTrackingSource = "YKB"
)

// requests
type CreatePaymentRequest struct {
Price float64 `json:"price,omitempty"`
Expand Down Expand Up @@ -1593,30 +1582,6 @@ type Payout struct {
SubMerchantMemberPayoutAmount *float64 `json:"subMerchantMemberPayoutAmount"`
}

type ApmPaymentResponse struct {
Id *int64 `json:"id"`
CreatedDate *TimeResponse `json:"createdDate"`
Price *float64 `json:"price"`
PaidPrice *float64 `json:"paidPrice"`
WalletPrice *float64 `json:"walletPrice"`
Currency *Currency `json:"currency"`
BuyerMemberId *int64 `json:"buyerMemberId"`
ConversationId *string `json:"conversationId"`
ExternalId *string `json:"externalId"`
PaymentType *PaymentType `json:"paymentType"`
PaymentProvider *PaymentProvider `json:"paymentProvider"`
PaymentSource *PaymentSource `json:"paymentSource"`
PaymentGroup *PaymentGroup `json:"paymentGroup"`
PaymentStatus *PaymentStatus `json:"paymentStatus"`
PaymentChannel *string `json:"paymentChannel"`
OrderId *string `json:"orderId"`
PaymentError *PaymentError `json:"paymentError"`
ApmType ApmType `json:"apmType"`
TransactionId string `json:"transactionId"`
RedirectUrl *Currency `json:"redirectUrl"`
PaymentTransactions *[]PaymentTransactionResponse `json:"paymentTransactions"`
}

type PayoutStatus struct {
MerchantStatus *TransactionPayoutStatus `json:"merchantStatus"`
MerchantStatusDate *TimeResponse `json:"merchantStatusDate"`
Expand Down Expand Up @@ -1778,30 +1743,6 @@ type WebhookData struct {
PayloadId string
}

type SearchBankAccountTrackingRecordRequest struct {
SenderName string `schema:"senderName,omitempty"`
SenderIban string `schema:"senderIban,omitempty"`
Description string `schema:"description,omitempty"`
Currency Currency `schema:"currency,omitempty"`
MinRecordDate time.Time `schema:"minRecordDate,omitempty"`
MaxRecordDate time.Time `schema:"maxRecordDate,omitempty"`
Page int `schema:"page,omitempty"`
Size int `schema:"size,omitempty"`
}

type BankAccountTrackingRecordResponse struct {
Id int64 `json:"id"`
Key string `json:"key"`
SenderName string `json:"senderName"`
SenderIban string `json:"senderIban"`
Description string `json:"description"`
Currency Currency `json:"currency"`
Amount float64 `json:"amount"`
RecordDate TimeResponse `json:"recordDate"`
RecordType RecordType `json:"recordType"`
BankAccountTrackingSource BankAccountTrackingSource `json:"bankAccountTrackingSource"`
}

type RequestOptions struct {
BaseURL string
ApiKey string
Expand Down

0 comments on commit 873ba62

Please sign in to comment.