Skip to content
This repository was archived by the owner on Aug 26, 2022. It is now read-only.

Commit e5495fd

Browse files
committed
Shorten enum names of business type, don't abbreviate corporation in models per PR reviews
1 parent f9a03b3 commit e5495fd

15 files changed

+63
-63
lines changed

api/client.yaml

Lines changed: 14 additions & 14 deletions
Original file line numberDiff line numberDiff line change
@@ -1939,7 +1939,7 @@ components:
19391939
required:
19401940
- firstName
19411941
- lastName
1942-
CreateCustomerBusinessCorp:
1942+
CreateCustomerBusinessCorporation:
19431943
allOf:
19441944
- $ref: '#/components/schemas/CreateCustomer'
19451945
- type: object
@@ -1954,11 +1954,11 @@ components:
19541954
discriminator:
19551955
propertyName: businessType
19561956
mapping:
1957-
individual, sole proprietor, or single-member LLC: '#/components/schemas/CreateCustomerBusinessIndividual'
1958-
corporation: '#/components/schemas/CreateCustomerBusinessCorp'
1959-
non-profit organization: '#/components/schemas/CreateCustomerBusinessCorp'
1960-
partnership: '#/components/schemas/CreateCustomerBusinessCorp'
1961-
limited liability company: '#/components/schemas/CreateCustomerBusinessCorp'
1957+
sole-proprietor: '#/components/schemas/CreateCustomerBusinessIndividual'
1958+
corporation: '#/components/schemas/CreateCustomerBusinessCorporation'
1959+
non-profit: '#/components/schemas/CreateCustomerBusinessCorporation'
1960+
partnership: '#/components/schemas/CreateCustomerBusinessCorporation'
1961+
llc: '#/components/schemas/CreateCustomerBusinessCorporation'
19621962
Customer:
19631963
type: object
19641964
properties:
@@ -2103,7 +2103,7 @@ components:
21032103
required:
21042104
- firstName
21052105
- lastName
2106-
CustomerBusinessCorp:
2106+
CustomerBusinessCorporation:
21072107
allOf:
21082108
- $ref: '#/components/schemas/Customer'
21092109
- type: object
@@ -2139,10 +2139,10 @@ components:
21392139
propertyName: businessType
21402140
mapping:
21412141
individual, sole proprietor, or single-member LLC: '#/components/schemas/CustomerBusinessIndividual'
2142-
corporation: '#/components/schemas/CustomerBusinessCorp'
2143-
non-profit organization: '#/components/schemas/CustomerBusinessCorp'
2144-
partnership: '#/components/schemas/CustomerBusinessCorp'
2145-
limited liability company: '#/components/schemas/CustomerBusinessCorp'
2142+
corporation: '#/components/schemas/CustomerBusinessCorporation'
2143+
non-profit organization: '#/components/schemas/CustomerBusinessCorporation'
2144+
partnership: '#/components/schemas/CustomerBusinessCorporation'
2145+
limited liability company: '#/components/schemas/CustomerBusinessCorporation'
21462146
Customers:
21472147
type: array
21482148
items:
@@ -2157,11 +2157,11 @@ components:
21572157
type: string
21582158
description: The type of business for business customers
21592159
enum:
2160-
- individual, sole proprietor, or single-member LLC
2160+
- sole-proprietor
21612161
- corporation
2162-
- non-profit organization
2162+
- non-profit
21632163
- partnership
2164-
- limited liability company
2164+
- llc
21652165
OwnerType:
21662166
type: string
21672167
description: The type of individual owner of a resource, such as SSN, phone, or address

pkg/client/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -97,16 +97,16 @@ Class | Method | HTTP request | Description
9797
- [CreateAddress](docs/CreateAddress.md)
9898
- [CreateCustomer](docs/CreateCustomer.md)
9999
- [CreateCustomerBusiness](docs/CreateCustomerBusiness.md)
100-
- [CreateCustomerBusinessCorp](docs/CreateCustomerBusinessCorp.md)
100+
- [CreateCustomerBusinessCorporation](docs/CreateCustomerBusinessCorporation.md)
101101
- [CreateCustomerBusinessIndividual](docs/CreateCustomerBusinessIndividual.md)
102102
- [CreateCustomerIndividual](docs/CreateCustomerIndividual.md)
103103
- [CreatePhone](docs/CreatePhone.md)
104104
- [CreateRepresentative](docs/CreateRepresentative.md)
105105
- [Customer](docs/Customer.md)
106106
- [CustomerBusiness](docs/CustomerBusiness.md)
107107
- [CustomerBusinessAllOf](docs/CustomerBusinessAllOf.md)
108-
- [CustomerBusinessCorp](docs/CustomerBusinessCorp.md)
109-
- [CustomerBusinessCorpAllOf](docs/CustomerBusinessCorpAllOf.md)
108+
- [CustomerBusinessCorporation](docs/CustomerBusinessCorporation.md)
109+
- [CustomerBusinessCorporationAllOf](docs/CustomerBusinessCorporationAllOf.md)
110110
- [CustomerBusinessIndividual](docs/CustomerBusinessIndividual.md)
111111
- [CustomerIndividual](docs/CustomerIndividual.md)
112112
- [CustomerIndividualAllOf](docs/CustomerIndividualAllOf.md)

pkg/client/api/openapi.yaml

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -2399,7 +2399,7 @@ components:
23992399
- firstName
24002400
- lastName
24012401
type: object
2402-
CreateCustomerBusinessCorp:
2402+
CreateCustomerBusinessCorporation:
24032403
allOf:
24042404
- $ref: '#/components/schemas/CreateCustomer'
24052405
- required:
@@ -2413,11 +2413,11 @@ components:
24132413
type: object
24142414
discriminator:
24152415
mapping:
2416-
individual, sole proprietor, or single-member LLC: '#/components/schemas/CreateCustomerBusinessIndividual'
2417-
corporation: '#/components/schemas/CreateCustomerBusinessCorp'
2418-
non-profit organization: '#/components/schemas/CreateCustomerBusinessCorp'
2419-
partnership: '#/components/schemas/CreateCustomerBusinessCorp'
2420-
limited liability company: '#/components/schemas/CreateCustomerBusinessCorp'
2416+
sole-proprietor: '#/components/schemas/CreateCustomerBusinessIndividual'
2417+
corporation: '#/components/schemas/CreateCustomerBusinessCorporation'
2418+
non-profit: '#/components/schemas/CreateCustomerBusinessCorporation'
2419+
partnership: '#/components/schemas/CreateCustomerBusinessCorporation'
2420+
llc: '#/components/schemas/CreateCustomerBusinessCorporation'
24212421
propertyName: businessType
24222422
Customer:
24232423
discriminator:
@@ -2645,21 +2645,21 @@ components:
26452645
allOf:
26462646
- $ref: '#/components/schemas/Customer'
26472647
- $ref: '#/components/schemas/CustomerIndividual_allOf'
2648-
CustomerBusinessCorp:
2648+
CustomerBusinessCorporation:
26492649
allOf:
26502650
- $ref: '#/components/schemas/Customer'
2651-
- $ref: '#/components/schemas/CustomerBusinessCorp_allOf'
2651+
- $ref: '#/components/schemas/CustomerBusinessCorporation_allOf'
26522652
CustomerBusiness:
26532653
allOf:
26542654
- $ref: '#/components/schemas/Customer'
26552655
- $ref: '#/components/schemas/CustomerBusiness_allOf'
26562656
discriminator:
26572657
mapping:
26582658
individual, sole proprietor, or single-member LLC: '#/components/schemas/CustomerBusinessIndividual'
2659-
corporation: '#/components/schemas/CustomerBusinessCorp'
2660-
non-profit organization: '#/components/schemas/CustomerBusinessCorp'
2661-
partnership: '#/components/schemas/CustomerBusinessCorp'
2662-
limited liability company: '#/components/schemas/CustomerBusinessCorp'
2659+
corporation: '#/components/schemas/CustomerBusinessCorporation'
2660+
non-profit organization: '#/components/schemas/CustomerBusinessCorporation'
2661+
partnership: '#/components/schemas/CustomerBusinessCorporation'
2662+
limited liability company: '#/components/schemas/CustomerBusinessCorporation'
26632663
propertyName: businessType
26642664
Customers:
26652665
items:
@@ -2674,11 +2674,11 @@ components:
26742674
BusinessType:
26752675
description: The type of business for business customers
26762676
enum:
2677-
- individual, sole proprietor, or single-member LLC
2677+
- sole-proprietor
26782678
- corporation
2679-
- non-profit organization
2679+
- non-profit
26802680
- partnership
2681-
- limited liability company
2681+
- llc
26822682
type: string
26832683
OwnerType:
26842684
description: The type of individual owner of a resource, such as SSN, phone,
@@ -3926,7 +3926,7 @@ components:
39263926
required:
39273927
- firstName
39283928
- lastName
3929-
CustomerBusinessCorp_allOf:
3929+
CustomerBusinessCorporation_allOf:
39303930
properties:
39313931
createdAt:
39323932
example: 2016-08-29T09:12:33.001Z

pkg/client/docs/CreateCustomerBusinessCorp.md renamed to pkg/client/docs/CreateCustomerBusinessCorporation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CreateCustomerBusinessCorp
1+
# CreateCustomerBusinessCorporation
22

33
## Properties
44

pkg/client/docs/CustomerBusinessCorp.md renamed to pkg/client/docs/CustomerBusinessCorporation.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CustomerBusinessCorp
1+
# CustomerBusinessCorporation
22

33
## Properties
44

pkg/client/docs/CustomerBusinessCorpAllOf.md renamed to pkg/client/docs/CustomerBusinessCorporationAllOf.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# CustomerBusinessCorpAllOf
1+
# CustomerBusinessCorporationAllOf
22

33
## Properties
44

pkg/client/model_business_type.go

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ type BusinessType string
1414

1515
// List of BusinessType
1616
const (
17-
BUSINESSTYPE_INDIVIDUAL_SOLE_PROPRIETOR_OR_SINGLE_MEMBER_LLC BusinessType = "individual, sole proprietor, or single-member LLC"
18-
BUSINESSTYPE_CORPORATION BusinessType = "corporation"
19-
BUSINESSTYPE_NON_PROFIT_ORGANIZATION BusinessType = "non-profit organization"
20-
BUSINESSTYPE_PARTNERSHIP BusinessType = "partnership"
21-
BUSINESSTYPE_LIMITED_LIABILITY_COMPANY BusinessType = "limited liability company"
17+
BUSINESSTYPE_SOLE_PROPRIETOR BusinessType = "sole-proprietor"
18+
BUSINESSTYPE_CORPORATION BusinessType = "corporation"
19+
BUSINESSTYPE_NON_PROFIT BusinessType = "non-profit"
20+
BUSINESSTYPE_PARTNERSHIP BusinessType = "partnership"
21+
BUSINESSTYPE_LLC BusinessType = "llc"
2222
)

pkg/client/model_create_customer_business_corp.go renamed to pkg/client/model_create_customer_business_corporation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -9,8 +9,8 @@
99

1010
package client
1111

12-
// CreateCustomerBusinessCorp struct for CreateCustomerBusinessCorp
13-
type CreateCustomerBusinessCorp struct {
12+
// CreateCustomerBusinessCorporation struct for CreateCustomerBusinessCorporation
13+
type CreateCustomerBusinessCorporation struct {
1414
// Given Name or First Name
1515
FirstName string `json:"firstName,omitempty"`
1616
// Middle Name

pkg/client/model_customer_business_corp.go renamed to pkg/client/model_customer_business_corporation.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"time"
1414
)
1515

16-
// CustomerBusinessCorp struct for CustomerBusinessCorp
17-
type CustomerBusinessCorp struct {
16+
// CustomerBusinessCorporation struct for CustomerBusinessCorporation
17+
type CustomerBusinessCorporation struct {
1818
// The unique identifier for the customer who owns the account
1919
CustomerID string `json:"customerID"`
2020
// Given Name or First Name

pkg/client/model_customer_business_corp_all_of.go renamed to pkg/client/model_customer_business_corporation_all_of.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@ import (
1313
"time"
1414
)
1515

16-
// CustomerBusinessCorpAllOf struct for CustomerBusinessCorpAllOf
17-
type CustomerBusinessCorpAllOf struct {
16+
// CustomerBusinessCorporationAllOf struct for CustomerBusinessCorporationAllOf
17+
type CustomerBusinessCorporationAllOf struct {
1818
CreatedAt time.Time `json:"createdAt,omitempty"`
1919
// Last time the object was modified
2020
LastModified time.Time `json:"lastModified,omitempty"`

0 commit comments

Comments
 (0)