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

fix: Update spec to use string instead of enum for ProxyResponseTransform attributes #82

Merged
merged 3 commits into from
Sep 4, 2024
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
4 changes: 0 additions & 4 deletions .openapi-generator/FILES
Original file line number Diff line number Diff line change
Expand Up @@ -69,8 +69,6 @@ docs/ProxiesApi.md
docs/Proxy.md
docs/ProxyPaginatedList.md
docs/ProxyTransform.md
docs/ProxyTransformMatcher.md
docs/ProxyTransformType.md
docs/ReactRequest.md
docs/ReactResponse.md
docs/Reactor.md
Expand Down Expand Up @@ -178,8 +176,6 @@ model_problem_details.go
model_proxy.go
model_proxy_paginated_list.go
model_proxy_transform.go
model_proxy_transform_matcher.go
model_proxy_transform_type.go
model_react_request.go
model_react_response.go
model_reactor.go
Expand Down
4 changes: 1 addition & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ go get golang.org/x/net/context
Put the package under your project folder and add the following in import:

```golang
import basistheory "github.com/Basis-Theory/basistheory-go/v5"
import basistheory "github.com/Basis-Theory/basistheory-go/v6"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand Down Expand Up @@ -202,8 +202,6 @@ Class | Method | HTTP request | Description
- [Proxy](docs/Proxy.md)
- [ProxyPaginatedList](docs/ProxyPaginatedList.md)
- [ProxyTransform](docs/ProxyTransform.md)
- [ProxyTransformMatcher](docs/ProxyTransformMatcher.md)
- [ProxyTransformType](docs/ProxyTransformType.md)
- [ReactRequest](docs/ReactRequest.md)
- [ReactResponse](docs/ReactResponse.md)
- [Reactor](docs/Reactor.md)
Expand Down
84 changes: 38 additions & 46 deletions api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -3926,8 +3926,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
application:
tenant_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Expand Down Expand Up @@ -4001,8 +4001,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
properties:
name:
Expand Down Expand Up @@ -4951,8 +4951,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -4963,8 +4963,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand Down Expand Up @@ -5072,8 +5072,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -5084,8 +5084,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand All @@ -5100,8 +5100,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -5112,8 +5112,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand All @@ -5128,8 +5128,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -5140,8 +5140,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand All @@ -5156,8 +5156,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -5168,8 +5168,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand All @@ -5184,8 +5184,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
response_reactor_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
proxy_host: proxy_host
Expand All @@ -5196,8 +5196,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
modified_at: 2000-01-23T04:56:07.000+00:00
key: key
Expand All @@ -5216,35 +5216,27 @@ components:
example:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
properties:
type:
$ref: '#/components/schemas/ProxyTransformType'
nullable: true
type: string
code:
maxLength: 50000
nullable: true
type: string
matcher:
$ref: '#/components/schemas/ProxyTransformMatcher'
nullable: true
type: string
expression:
nullable: true
type: string
replacement:
nullable: true
type: string
type: object
ProxyTransformMatcher:
enum:
- REGEX
- CHASE_STRATUS_PAN
type: string
ProxyTransformType:
enum:
- CODE
- MASK
type: string
ReactRequest:
additionalProperties: false
example:
Expand Down Expand Up @@ -8579,8 +8571,8 @@ components:
response_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
application:
tenant_id: 046b6c7f-0b8a-43b9-b35d-6489e6daee91
Expand Down Expand Up @@ -8654,8 +8646,8 @@ components:
request_transform:
code: code
expression: expression
type: null
matcher: null
type: type
matcher: matcher
replacement: replacement
properties:
name:
Expand Down
36 changes: 28 additions & 8 deletions docs/ProxyTransform.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,9 +4,9 @@

Name | Type | Description | Notes
------------ | ------------- | ------------- | -------------
**Type** | Pointer to [**ProxyTransformType**](ProxyTransformType.md) | | [optional]
**Type** | Pointer to **NullableString** | | [optional]
**Code** | Pointer to **NullableString** | | [optional]
**Matcher** | Pointer to [**ProxyTransformMatcher**](ProxyTransformMatcher.md) | | [optional]
**Matcher** | Pointer to **NullableString** | | [optional]
**Expression** | Pointer to **NullableString** | | [optional]
**Replacement** | Pointer to **NullableString** | | [optional]

Expand All @@ -31,20 +31,20 @@ but it doesn't guarantee that properties required by API are set

### GetType

`func (o *ProxyTransform) GetType() ProxyTransformType`
`func (o *ProxyTransform) GetType() string`

GetType returns the Type field if non-nil, zero value otherwise.

### GetTypeOk

`func (o *ProxyTransform) GetTypeOk() (*ProxyTransformType, bool)`
`func (o *ProxyTransform) GetTypeOk() (*string, bool)`

GetTypeOk returns a tuple with the Type field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetType

`func (o *ProxyTransform) SetType(v ProxyTransformType)`
`func (o *ProxyTransform) SetType(v string)`

SetType sets Type field to given value.

Expand All @@ -54,6 +54,16 @@ SetType sets Type field to given value.

HasType returns a boolean if a field has been set.

### SetTypeNil

`func (o *ProxyTransform) SetTypeNil(b bool)`

SetTypeNil sets the value for Type to be an explicit nil

### UnsetType
`func (o *ProxyTransform) UnsetType()`

UnsetType ensures that no value is present for Type, not even an explicit nil
### GetCode

`func (o *ProxyTransform) GetCode() string`
Expand Down Expand Up @@ -91,20 +101,20 @@ HasCode returns a boolean if a field has been set.
UnsetCode ensures that no value is present for Code, not even an explicit nil
### GetMatcher

`func (o *ProxyTransform) GetMatcher() ProxyTransformMatcher`
`func (o *ProxyTransform) GetMatcher() string`

GetMatcher returns the Matcher field if non-nil, zero value otherwise.

### GetMatcherOk

`func (o *ProxyTransform) GetMatcherOk() (*ProxyTransformMatcher, bool)`
`func (o *ProxyTransform) GetMatcherOk() (*string, bool)`

GetMatcherOk returns a tuple with the Matcher field if it's non-nil, zero value otherwise
and a boolean to check if the value has been set.

### SetMatcher

`func (o *ProxyTransform) SetMatcher(v ProxyTransformMatcher)`
`func (o *ProxyTransform) SetMatcher(v string)`

SetMatcher sets Matcher field to given value.

Expand All @@ -114,6 +124,16 @@ SetMatcher sets Matcher field to given value.

HasMatcher returns a boolean if a field has been set.

### SetMatcherNil

`func (o *ProxyTransform) SetMatcherNil(b bool)`

SetMatcherNil sets the value for Matcher to be an explicit nil

### UnsetMatcher
`func (o *ProxyTransform) UnsetMatcher()`

UnsetMatcher ensures that no value is present for Matcher, not even an explicit nil
### GetExpression

`func (o *ProxyTransform) GetExpression() string`
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module github.com/Basis-Theory/basistheory-go/v5
module github.com/Basis-Theory/basistheory-go/v6

go 1.19

Expand Down
2 changes: 1 addition & 1 deletion internal/testutils/setup.go
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ package testutils

import (
"context"
"github.com/Basis-Theory/basistheory-go/v5"
"github.com/Basis-Theory/basistheory-go/v6"
"github.com/joho/godotenv"
"os"
"strings"
Expand Down
Loading
Loading