Skip to content

Commit

Permalink
removing settlement earnings destination from member requests
Browse files Browse the repository at this point in the history
  • Loading branch information
Alican Akkus authored and Alican Akkus committed Apr 28, 2023
1 parent 227f0d5 commit cd0c259
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 17 deletions.
31 changes: 15 additions & 16 deletions adapter/model.go
Original file line number Diff line number Diff line change
Expand Up @@ -942,22 +942,21 @@ 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"`
IsBuyer bool `json:"isBuyer,omitempty"`
IsSubMerchant bool `json:"isSubMerchant,omitempty"`
}

type UpdateMemberRequest struct {
Expand Down
2 changes: 1 addition & 1 deletion tests/onboarding_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ func Test_UpdateSubMerchantMember(t *testing.T) {
LegalCompanyTitle: "Dem Zeytinyağı Üretim Ltd. Şti.",
Name: "Dem Zeytinyağı Üretim Ltd. Şti.",
MemberType: craftgate.LIMITED_OR_JOINT_STOCK_COMPANY,
SettlementEarningsDestination: craftgate.SettlementEarningsDestinationIBAN,
SettlementEarningsDestination: craftgate.SettlementEarningsDestinationWALLET,
TaxNumber: "1111111114",
TaxOffice: "Erenköy",
Address: "Suadiye Mah. Örnek Cd. No:23, 34740 Kadıköy/İstanbul",
Expand Down

0 comments on commit cd0c259

Please sign in to comment.