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 Aug 1, 2024
1 parent d0b432c commit 6d99757
Show file tree
Hide file tree
Showing 246 changed files with 1,916 additions and 499 deletions.
6 changes: 3 additions & 3 deletions 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: 5.0.0
* Package version: 6.0.0

# Getting Started

Expand All @@ -14,13 +14,13 @@ in applications written in Go.
Install xendit-go with:

```shell
go get github.com/xendit/xendit-go/v5
go get github.com/xendit/xendit-go/v6
```

Put the package under your project folder and add the following in import:

```golang
import xendit "github.com/xendit/xendit-go/v5"
import xendit "github.com/xendit/xendit-go/v6"
```

To use a proxy, set the environment variable `HTTP_PROXY`:
Expand Down
4 changes: 2 additions & 2 deletions balance_and_transaction/api_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/url"
"strconv"

common "github.com/xendit/xendit-go/v5/common"
utils "github.com/xendit/xendit-go/v5/utils"
common "github.com/xendit/xendit-go/v6/common"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
4 changes: 2 additions & 2 deletions balance_and_transaction/api_transaction.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/url"
"strconv"

common "github.com/xendit/xendit-go/v5/common"
utils "github.com/xendit/xendit-go/v5/utils"
common "github.com/xendit/xendit-go/v6/common"
utils "github.com/xendit/xendit-go/v6/utils"
"strings"
"reflect"
)
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_balance.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the Balance type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_date_range_filter.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_fee_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the FeeResponse type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_link_item.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the LinkItem type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_server_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the ServerError type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_transaction_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_transactions_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the TransactionsResponse type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion balance_and_transaction/model_validation_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package balance_and_transaction
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the ValidationError type satisfies the MappedNullable interface at compile time
Expand Down
20 changes: 10 additions & 10 deletions client.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,16 +20,16 @@ import (
"strings"
"time"

common "github.com/xendit/xendit-go/v5/common"
common "github.com/xendit/xendit-go/v6/common"

invoice "github.com/xendit/xendit-go/v5/invoice"
paymentrequest "github.com/xendit/xendit-go/v5/payment_request"
paymentmethod "github.com/xendit/xendit-go/v5/payment_method"
refund "github.com/xendit/xendit-go/v5/refund"
balance "github.com/xendit/xendit-go/v5/balance_and_transaction"
transaction "github.com/xendit/xendit-go/v5/balance_and_transaction"
customer "github.com/xendit/xendit-go/v5/customer"
payout "github.com/xendit/xendit-go/v5/payout"
invoice "github.com/xendit/xendit-go/v6/invoice"
paymentrequest "github.com/xendit/xendit-go/v6/payment_request"
paymentmethod "github.com/xendit/xendit-go/v6/payment_method"
refund "github.com/xendit/xendit-go/v6/refund"
balance "github.com/xendit/xendit-go/v6/balance_and_transaction"
transaction "github.com/xendit/xendit-go/v6/balance_and_transaction"
customer "github.com/xendit/xendit-go/v6/customer"
payout "github.com/xendit/xendit-go/v6/payout"

)

Expand Down 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"] = "5.0.0"
headerParams["xendit-lib-ver"] = "6.0.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/5.0.0/go",
UserAgent: "OpenAPI-Generator/6.0.0/go",
Debug: false,
Servers: ServerConfigurations{
{
Expand Down
4 changes: 2 additions & 2 deletions customer/api_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ import (
"net/url"
"strconv"

common "github.com/xendit/xendit-go/v5/common"
utils "github.com/xendit/xendit-go/v5/utils"
common "github.com/xendit/xendit-go/v6/common"
utils "github.com/xendit/xendit-go/v6/utils"
"strings"
)

Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_bank.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountBank type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_card.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountCard type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_ewallet.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountEwallet type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_otc.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountOTC type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_pay_later.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountPayLater type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_account_qr_code.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AccountQRCode type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_address.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion customer/model_address_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the AddressRequest type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_business_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the BusinessDetail type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_create_customer_400_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the CreateCustomer400Response type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_create_customer_400_response_all_of.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the CreateCustomer400ResponseAllOf type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion customer/model_customer_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the CustomerRequest type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_employment_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the EmploymentDetail type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_error.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the Error type satisfies the MappedNullable interface at compile time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the GetCustomerByReferenceID200Response type satisfies the MappedNullable interface at compile time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the GetCustomerByReferenceID400Response type satisfies the MappedNullable interface at compile time
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the GetCustomerByReferenceID400ResponseAllOf type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_identity_account_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the IdentityAccountRequest type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_identity_account_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
"time"
)

Expand Down
2 changes: 1 addition & 1 deletion customer/model_individual_detail.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the IndividualDetail type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_kyc_document_request.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the KYCDocumentRequest type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_kyc_document_response.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the KYCDocumentResponse type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_patch_customer.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the PatchCustomer type satisfies the MappedNullable interface at compile time
Expand Down
2 changes: 1 addition & 1 deletion customer/model_response_data_not_found.go
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ package customer
import (
"encoding/json"

utils "github.com/xendit/xendit-go/v5/utils"
utils "github.com/xendit/xendit-go/v6/utils"
)

// checks if the ResponseDataNotFound type satisfies the MappedNullable interface at compile time
Expand Down
Loading

0 comments on commit 6d99757

Please sign in to comment.