Skip to content

Commit

Permalink
Generated Xendit go SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
xendit-devx-bot committed Dec 11, 2023
1 parent 78a9cc1 commit 10680ec
Show file tree
Hide file tree
Showing 48 changed files with 105 additions and 60 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
The official Xendit Go SDK provides a simple and convenient way to call Xendit's REST API
in applications written in Go.

* Package version: 4.0.0
* Package version: 4.1.0

# Getting Started

Expand Down
2 changes: 1 addition & 1 deletion client.go
Original file line number Diff line number Diff line change
Expand Up @@ -154,7 +154,7 @@ func (c *APIClient) PrepareRequest(
headerParams["xendit-lib"] = "go"

// TODO: overwrite this line from buddy pipeline
headerParams["xendit-lib-ver"] = "4.0.0"
headerParams["xendit-lib-ver"] = "4.1.0"

var body *bytes.Buffer

Expand Down
2 changes: 1 addition & 1 deletion configuration.go
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ var Default Configuration = *NewConfiguration()
func NewConfiguration() *Configuration {
cfg := &Configuration{
DefaultHeader: make(map[string]string),
UserAgent: "OpenAPI-Generator/4.0.0/go",
UserAgent: "OpenAPI-Generator/4.1.0/go",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
2 changes: 1 addition & 1 deletion docs/InvoiceApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### InvoiceCallback Object
>Invoice Callback Object
Model Documentation: [InvoiceCallback](/InvoiceCallback.md)
Model Documentation: [InvoiceCallback](invoice/InvoiceCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```go
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentMethodApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -668,7 +668,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### PaymentMethodCallback Object
>Callback for active or expired E-Wallet or Direct Debit account linking, Virtual Accounts or QR strings
Model Documentation: [PaymentMethodCallback](/PaymentMethodCallback.md)
Model Documentation: [PaymentMethodCallback](payment_method/PaymentMethodCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```go
Expand Down
2 changes: 1 addition & 1 deletion docs/PaymentRequestApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -544,7 +544,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### PaymentCallback Object
>Callback for successful or failed payments made via the Payments API
Model Documentation: [PaymentCallback](/PaymentCallback.md)
Model Documentation: [PaymentCallback](payment_request/PaymentCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```go
Expand Down
2 changes: 1 addition & 1 deletion docs/RefundApi.md
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,7 @@ Use the following callback objects provided by Xendit to receive callbacks (also
### RefundCallback Object
>Callback for successful or failed Refunds made via the Payments API
Model Documentation: [RefundCallback](/RefundCallback.md)
Model Documentation: [RefundCallback](refund/RefundCallback.md)
#### Usage Example
Note that the example is meant to illustrate the contents of the callback object -- you will not need to instantiate these objects in practice
```go
Expand Down
10 changes: 10 additions & 0 deletions docs/invoice/EwalletType.md
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,16 @@ Representing the available eWallet channels used for invoice-related transaction

* `JENIUSPAY` (value: `"JENIUSPAY"`)

* `MOMO` (value: `"MOMO"`)

* `ZALOPAY` (value: `"ZALOPAY"`)

* `VIETTELPAY` (value: `"VIETTELPAY"`)

* `VNPTWALLET` (value: `"VNPTWALLET"`)

* `APPOTA` (value: `"APPOTA"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.
Expand Down
8 changes: 4 additions & 4 deletions docs/payment_request/PaymentCallbackData.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ Represents the actual funds transaction/attempt made to a payment method
| **PaymentMethod** | [**PaymentMethod**](PaymentMethod.md) | ☑️ | | |
| **ChannelProperties** | Pointer to [**NullablePaymentRequestChannelProperties**](PaymentRequestChannelProperties.md) | | | |
| **PaymentDetail** | Pointer to **map[string]interface{}** | | | |
| **FailureCode** | Pointer to **map[string]interface{}** | | | |
| **FailureCode** | Pointer to **NullableString** | | | |
| **Created** | **string** | ☑️ | | |
| **Updated** | **string** | ☑️ | | |
| **Metadata** | Pointer to **map[string]interface{}** | | | |
Expand Down Expand Up @@ -321,20 +321,20 @@ HasPaymentDetail returns a boolean if a field has been set.
UnsetPaymentDetail ensures that no value is present for PaymentDetail, not even an explicit nil
### GetFailureCode

`func (o *PaymentCallbackData) GetFailureCode() map[string]interface{}`
`func (o *PaymentCallbackData) GetFailureCode() string`

GetFailureCode returns the FailureCode field if non-nil, zero value otherwise.

### GetFailureCodeOk

`func (o *PaymentCallbackData) GetFailureCodeOk() (*map[string]interface{}, bool)`
`func (o *PaymentCallbackData) GetFailureCodeOk() (*string, bool)`

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

### SetFailureCode

`func (o *PaymentCallbackData) SetFailureCode(v map[string]interface{})`
`func (o *PaymentCallbackData) SetFailureCode(v string)`

SetFailureCode sets FailureCode field to given value.

Expand Down
2 changes: 2 additions & 0 deletions docs/payment_request/QRCodeChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,8 @@ QR Code Channel Code

## Enum

* `QRIS` (value: `"QRIS"`)

* `DANA` (value: `"DANA"`)

* `RCBC` (value: `"RCBC"`)
Expand Down
6 changes: 6 additions & 0 deletions docs/payment_request/VirtualAccountChannelCode.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,12 @@ Virtual Account Channel Code

* `AMBANK` (value: `"AMBANK"`)

* `BNC` (value: `"BNC"`)

* `HANA` (value: `"HANA"`)

* `MUAMALAT` (value: `"MUAMALAT"`)

* `XENDIT_ENUM_DEFAULT_FALLBACK` (value: `UNKNOWN_ENUM_VALUE`)

If you encounter `UNKNOWN_ENUM_VALUE`, it means that this ENUM is unavailable in your current SDK version. Please upgrade to get the newest ENUM.
Expand Down
2 changes: 1 addition & 1 deletion invoice/model_address_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_alternative_display_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_bad_request_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_bank_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_create_invoice_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_customer_object.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_direct_debit.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_direct_debit_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_ewallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
12 changes: 11 additions & 1 deletion invoice/model_ewallet_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand All @@ -30,6 +30,11 @@ const (
EWALLETTYPE_ASTRAPAY EwalletType = "ASTRAPAY"
EWALLETTYPE_NEXCASH EwalletType = "NEXCASH"
EWALLETTYPE_JENIUSPAY EwalletType = "JENIUSPAY"
EWALLETTYPE_MOMO EwalletType = "MOMO"
EWALLETTYPE_ZALOPAY EwalletType = "ZALOPAY"
EWALLETTYPE_VIETTELPAY EwalletType = "VIETTELPAY"
EWALLETTYPE_VNPTWALLET EwalletType = "VNPTWALLET"
EWALLETTYPE_APPOTA EwalletType = "APPOTA"
EWALLETTYPE_XENDIT_ENUM_DEFAULT_FALLBACK EwalletType = "UNKNOWN_ENUM_VALUE"
)

Expand All @@ -45,6 +50,11 @@ var AllowedEwalletTypeEnumValues = []EwalletType{
"ASTRAPAY",
"NEXCASH",
"JENIUSPAY",
"MOMO",
"ZALOPAY",
"VIETTELPAY",
"VNPTWALLET",
"APPOTA",
"UNKNOWN_ENUM_VALUE",
}

Expand Down
2 changes: 1 addition & 1 deletion invoice/model_forbidden_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_callback.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_callback_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_client_type.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_currency.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_error404_response_definition.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_fee.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_not_found_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_payment_method.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_invoice_status.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_notification_channel.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_notification_preference.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_paylater.go
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ xendit-invoice-service
xendit-invoice-service descriptions
API version: 1.5.0
API version: 1.6.0
*/


Expand Down
Loading

0 comments on commit 10680ec

Please sign in to comment.