Skip to content

Commit

Permalink
Up Bank API Spec deepLinkURL (#17)
Browse files Browse the repository at this point in the history
* new api spec

* gofmt

* cleanup

* making deepLinkUrl not nullable

* gofmt
  • Loading branch information
ESteanes authored Oct 1, 2024
1 parent c65af90 commit b441fd9
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 4 deletions.
8 changes: 8 additions & 0 deletions datafetcher/upclient/api/openapi.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -2372,6 +2372,7 @@ components:
foreignAmount: ""
holdInfo: ""
transactionType: transactionType
deepLinkURL: deepLinkURL
createdAt: 2000-01-23T04:56:07.000+00:00
rawText: rawText
settledAt: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -2460,6 +2461,7 @@ components:
foreignAmount: ""
holdInfo: ""
transactionType: transactionType
deepLinkURL: deepLinkURL
createdAt: 2000-01-23T04:56:07.000+00:00
rawText: rawText
settledAt: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -2521,6 +2523,7 @@ components:
foreignAmount: ""
holdInfo: ""
transactionType: transactionType
deepLinkURL: deepLinkURL
createdAt: 2000-01-23T04:56:07.000+00:00
rawText: rawText
settledAt: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -3195,6 +3198,7 @@ components:
foreignAmount: ""
holdInfo: ""
transactionType: transactionType
deepLinkURL: deepLinkURL
createdAt: 2000-01-23T04:56:07.000+00:00
rawText: rawText
settledAt: 2000-01-23T04:56:07.000+00:00
Expand Down Expand Up @@ -3305,11 +3309,15 @@ components:
description: |
The customer who initated the transaction. For 2Up accounts this could be the customer who's card was used.
nullable: true
deepLinkURL:
description: A deep link to the transaction receipt screen in-app.
type: string
required:
- amount
- cardPurchaseMethod
- cashback
- createdAt
- deepLinkURL
- description
- foreignAmount
- holdInfo
Expand Down
23 changes: 22 additions & 1 deletion datafetcher/upclient/docs/TransactionResourceAttributes.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ Name | Type | Description | Notes
**TransactionType** | **NullableString** | A description of the transaction method used e.g. Purchase, BPAY Payment. |
**Note** | [**NullableNoteObject**](NoteObject.md) | A customer provided note about the transaction. Can only be provided by Up High subscribers. |
**PerformingCustomer** | [**NullableCustomerObject**](CustomerObject.md) | The customer who initated the transaction. For 2Up accounts this could be the customer who's card was used. |
**DeepLinkURL** | **string** | A deep link to the transaction receipt screen in-app. |

## Methods

### NewTransactionResourceAttributes

`func NewTransactionResourceAttributes(status TransactionStatusEnum, rawText NullableString, description string, message NullableString, isCategorizable bool, holdInfo NullableHoldInfoObject, roundUp NullableRoundUpObject, cashback NullableCashbackObject, amount MoneyObject, foreignAmount NullableMoneyObject, cardPurchaseMethod NullableCardPurchaseMethodObject, settledAt NullableTime, createdAt time.Time, transactionType NullableString, note NullableNoteObject, performingCustomer NullableCustomerObject, ) *TransactionResourceAttributes`
`func NewTransactionResourceAttributes(status TransactionStatusEnum, rawText NullableString, description string, message NullableString, isCategorizable bool, holdInfo NullableHoldInfoObject, roundUp NullableRoundUpObject, cashback NullableCashbackObject, amount MoneyObject, foreignAmount NullableMoneyObject, cardPurchaseMethod NullableCardPurchaseMethodObject, settledAt NullableTime, createdAt time.Time, transactionType NullableString, note NullableNoteObject, performingCustomer NullableCustomerObject, deepLinkURL string, ) *TransactionResourceAttributes`

NewTransactionResourceAttributes instantiates a new TransactionResourceAttributes object
This constructor will assign default values to properties that have it defined,
Expand Down Expand Up @@ -470,6 +471,26 @@ SetPerformingCustomer sets PerformingCustomer field to given value.
`func (o *TransactionResourceAttributes) UnsetPerformingCustomer()`

UnsetPerformingCustomer ensures that no value is present for PerformingCustomer, not even an explicit nil
### GetDeepLinkURL

`func (o *TransactionResourceAttributes) GetDeepLinkURL() string`

GetDeepLinkURL returns the DeepLinkURL field if non-nil, zero value otherwise.

### GetDeepLinkURLOk

`func (o *TransactionResourceAttributes) GetDeepLinkURLOk() (*string, bool)`

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

### SetDeepLinkURL

`func (o *TransactionResourceAttributes) SetDeepLinkURL(v string)`

SetDeepLinkURL sets DeepLinkURL field to given value.



[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)

Expand Down
31 changes: 30 additions & 1 deletion datafetcher/upclient/model_transaction_resource_attributes.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

9 changes: 7 additions & 2 deletions openapi.json
Original file line number Diff line number Diff line change
Expand Up @@ -908,7 +908,11 @@
"$ref": "#/components/schemas/CustomerObject"
}
]
}
},
"deepLinkURL": {
"type": "string",
"description": "A deep link to the transaction receipt screen in-app."
}
},
"required": [
"status",
Expand All @@ -926,7 +930,8 @@
"createdAt",
"transactionType",
"note",
"performingCustomer"
"performingCustomer",
"deepLinkURL"
]
},
"relationships": {
Expand Down

0 comments on commit b441fd9

Please sign in to comment.