Skip to content

Commit

Permalink
adds negative balance limit for submerchants (#44)
Browse files Browse the repository at this point in the history
  • Loading branch information
AlicanAkkus committed Aug 22, 2023
1 parent 4bd393c commit a5b33ae
Showing 1 changed file with 33 additions and 31 deletions.
64 changes: 33 additions & 31 deletions adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -993,40 +993,42 @@ type RetrieveBinNumberResponse struct {
}

type CreateMemberRequest struct {
MemberExternalId string `json:"memberExternalId,omitempty"`
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
IdentityNumber string `json:"identityNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
MemberExternalId string `json:"memberExternalId,omitempty"`
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
IdentityNumber string `json:"identityNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
SubMerchantMaximumAllowedNegativeBalance float64 `json:"subMerchantMaximumAllowedNegativeBalance,omitempty"`
}

type UpdateMemberRequest struct {
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
IdentityNumber string `json:"identityNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
Name string `json:"name,omitempty"`
Address string `json:"address,omitempty"`
Email string `json:"email,omitempty"`
PhoneNumber string `json:"phoneNumber,omitempty"`
IdentityNumber string `json:"identityNumber,omitempty"`
ContactName string `json:"contactName,omitempty"`
ContactSurname string `json:"contactSurname,omitempty"`
MemberType MemberType `json:"memberType,omitempty"`
LegalCompanyTitle string `json:"legalCompanyTitle,omitempty"`
TaxOffice string `json:"taxOffice,omitempty"`
TaxNumber string `json:"taxNumber,omitempty"`
Iban string `json:"iban,omitempty"`
SettlementEarningsDestination SettlementEarningsDestination `json:"settlementEarningsDestination,omitempty"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
SubMerchantMaximumAllowedNegativeBalance float64 `json:"subMerchantMaximumAllowedNegativeBalance,omitempty"`
}

type SearchMembersRequest struct {
Expand Down

0 comments on commit a5b33ae

Please sign in to comment.