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

removing settlement earnings destination from member requests #33

Merged
merged 1 commit into from
May 4, 2023
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
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