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 Feb 17, 2025
1 parent 7678f03 commit 0451400
Show file tree
Hide file tree
Showing 42 changed files with 71 additions and 71 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: 6.1.0
* Package version: 6.2.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"] = "6.1.0"
headerParams["xendit-lib-ver"] = "6.2.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/6.1.0/go",
UserAgent: "OpenAPI-Generator/6.2.0/go",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
| Name | Type | Required | Description | Examples |
|------------|:-------------:|:-------------:|-------------|:-------------:|
| **Issuer** | Pointer to **string** | | The bank code of the installment provider / issuer | |
| **AllowedTerms** | Pointer to **float32[]** | | An array containing list of installment tenor available to choose | |
| **Terms** | Pointer to **float32[]** | | An array containing list of installment tenor available to choose | |

## Methods

Expand Down Expand Up @@ -51,30 +51,30 @@ SetIssuer sets Issuer field to given value.

HasIssuer returns a boolean if a field has been set.

### GetAllowedTerms
### GetTerms

`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetAllowedTerms() []float32`
`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetTerms() []float32`

GetAllowedTerms returns the AllowedTerms field if non-nil, zero value otherwise.
GetTerms returns the Terms field if non-nil, zero value otherwise.

### GetAllowedTermsOk
### GetTermsOk

`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetAllowedTermsOk() (*[]float32, bool)`
`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetTermsOk() (*[]float32, bool)`

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

### SetAllowedTerms
### SetTerms

`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) SetAllowedTerms(v []float32)`
`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) SetTerms(v []float32)`

SetAllowedTerms sets AllowedTerms field to given value.
SetTerms sets Terms field to given value.

### HasAllowedTerms
### HasTerms

`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) HasAllowedTerms() bool`
`func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) HasTerms() bool`

HasAllowedTerms returns a boolean if a field has been set.
HasTerms returns a boolean if a field has been set.


[[Back to README]](../../README.md)
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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_channel_properties.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.8.7
API version: 1.8.8
*/


Expand Down
2 changes: 1 addition & 1 deletion invoice/model_channel_properties_cards.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.8.7
API version: 1.8.8
*/


Expand Down
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.8.7
API version: 1.8.8
*/


Expand Down
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.8.7
API version: 1.8.8
*/


Expand All @@ -23,7 +23,7 @@ type ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner struct {
// The bank code of the installment provider / issuer
Issuer *string `json:"issuer,omitempty"`
// An array containing list of installment tenor available to choose
AllowedTerms []float32 `json:"allowed_terms,omitempty"`
Terms []float32 `json:"terms,omitempty"`
}

// NewChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner instantiates a new ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner object
Expand Down Expand Up @@ -75,36 +75,36 @@ func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) SetIss
o.Issuer = &v
}

// GetAllowedTerms returns the AllowedTerms field value if set, zero value otherwise.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetAllowedTerms() []float32 {
if o == nil || utils.IsNil(o.AllowedTerms) {
// GetTerms returns the Terms field value if set, zero value otherwise.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetTerms() []float32 {
if o == nil || utils.IsNil(o.Terms) {
var ret []float32
return ret
}
return o.AllowedTerms
return o.Terms
}

// GetAllowedTermsOk returns a tuple with the AllowedTerms field value if set, nil otherwise
// GetTermsOk returns a tuple with the Terms field value if set, nil otherwise
// and a boolean to check if the value has been set.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetAllowedTermsOk() ([]float32, bool) {
if o == nil || utils.IsNil(o.AllowedTerms) {
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) GetTermsOk() ([]float32, bool) {
if o == nil || utils.IsNil(o.Terms) {
return nil, false
}
return o.AllowedTerms, true
return o.Terms, true
}

// HasAllowedTerms returns a boolean if a field has been set.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) HasAllowedTerms() bool {
if o != nil && !utils.IsNil(o.AllowedTerms) {
// HasTerms returns a boolean if a field has been set.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) HasTerms() bool {
if o != nil && !utils.IsNil(o.Terms) {
return true
}

return false
}

// SetAllowedTerms gets a reference to the given []float32 and assigns it to the AllowedTerms field.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) SetAllowedTerms(v []float32) {
o.AllowedTerms = v
// SetTerms gets a reference to the given []float32 and assigns it to the Terms field.
func (o *ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) SetTerms(v []float32) {
o.Terms = v
}

func (o ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) MarshalJSON() ([]byte, error) {
Expand All @@ -120,8 +120,8 @@ func (o ChannelPropertiesCardsInstallmentConfigurationAllowedTermsInner) ToMap()
if !utils.IsNil(o.Issuer) {
toSerialize["issuer"] = o.Issuer
}
if !utils.IsNil(o.AllowedTerms) {
toSerialize["allowed_terms"] = o.AllowedTerms
if !utils.IsNil(o.Terms) {
toSerialize["terms"] = o.Terms
}
return toSerialize, nil
}
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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


Expand Down
2 changes: 1 addition & 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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


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.8.7
API version: 1.8.8
*/


Expand Down
Loading

0 comments on commit 0451400

Please sign in to comment.