Skip to content

Commit

Permalink
Fix stripe tax settingss command (#1137)
Browse files Browse the repository at this point in the history
* Fix `stripe tax settingss` command

* update command
  • Loading branch information
etsai-stripe committed Dec 20, 2023
1 parent ae62dc4 commit b07a577
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 2 additions & 0 deletions pkg/cmd/resource/resource.go
Original file line number Diff line number Diff line change
Expand Up @@ -51,6 +51,8 @@ func GetResourceCmdName(name string) string {
return "issuing"
case "terminal":
return "terminal"
case "settings":
return "settings"
default:
return name + "s"
}
Expand Down
6 changes: 3 additions & 3 deletions pkg/cmd/resources_cmds.go
Original file line number Diff line number Diff line change
Expand Up @@ -122,7 +122,7 @@ func addAllResourcesCmds(rootCmd *cobra.Command) {
rReportingReportTypesCmd := resource.NewResourceCmd(nsReportingCmd.Cmd, "report_types")
rTaxCalculationsCmd := resource.NewResourceCmd(nsTaxCmd.Cmd, "calculations")
rTaxRegistrationsCmd := resource.NewResourceCmd(nsTaxCmd.Cmd, "registrations")
rTaxSettingssCmd := resource.NewResourceCmd(nsTaxCmd.Cmd, "settingss")
rTaxSettingsCmd := resource.NewResourceCmd(nsTaxCmd.Cmd, "settings")
rTaxTransactionsCmd := resource.NewResourceCmd(nsTaxCmd.Cmd, "transactions")
rTerminalConfigurationsCmd := resource.NewResourceCmd(nsTerminalCmd.Cmd, "configurations")
rTerminalConnectionTokensCmd := resource.NewResourceCmd(nsTerminalCmd.Cmd, "connection_tokens")
Expand Down Expand Up @@ -3692,8 +3692,8 @@ func addAllResourcesCmds(rootCmd *cobra.Command) {
"active_from": "string",
"expires_at": "string",
}, &Config)
resource.NewOperationCmd(rTaxSettingssCmd.Cmd, "retrieve", "/v1/tax/settings", http.MethodGet, map[string]string{}, &Config)
resource.NewOperationCmd(rTaxSettingssCmd.Cmd, "update", "/v1/tax/settings", http.MethodPost, map[string]string{
resource.NewOperationCmd(rTaxSettingsCmd.Cmd, "retrieve", "/v1/tax/settings", http.MethodGet, map[string]string{}, &Config)
resource.NewOperationCmd(rTaxSettingsCmd.Cmd, "update", "/v1/tax/settings", http.MethodPost, map[string]string{
"defaults.tax_behavior": "string",
"defaults.tax_code": "string",
"head_office.address.city": "string",
Expand Down

0 comments on commit b07a577

Please sign in to comment.