ecpayBase

package
v0.0.31 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 31, 2023 License: MIT Imports: 22 Imported by: 0

README

Go API client for ecpayBase

綠界金流 API 定義文件

Overview

This API client was generated by the OpenAPI Generator project. By using the OpenAPI-spec from a remote server, you can easily generate an API client.

  • API version: 0.0.24
  • Package version: 1.0.0
  • Build package: org.openapitools.codegen.languages.GoClientExperimentalCodegen

Installation

Install the following dependencies:

go get github.com/stretchr/testify/assert
go get golang.org/x/oauth2
go get golang.org/x/net/context

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

import sw "./ecpayBase"

Configuration of Server URL

Default configuration comes with Servers field that contains server objects as defined in the OpenAPI specification.

Select Server Configuration

For using other server than the one defined on index 0 set context value sw.ContextServerIndex of type int.

ctx := context.WithValue(context.Background(), sw.ContextServerIndex, 1)
Templated Server URL

Templated server URL is formatted using default variables from configuration or from context value sw.ContextServerVariables of type map[string]string.

ctx := context.WithValue(context.Background(), sw.ContextServerVariables, map[string]string{
	"basePath": "v2",
})

Note, enum values are always validated and all unused variables are silently ignored.

URLs Configuration per Operation

Each operation can use different server URL defined using OperationServers map in the Configuration. An operation is uniquely identifield by "{classname}Service.{nickname}" string. Similar rules for overriding default operation server index and variables applies by using sw.ContextOperationServerIndices and sw.ContextOperationServerVariables context maps.

ctx := context.WithValue(context.Background(), sw.ContextOperationServerIndices, map[string]int{
	"{classname}Service.{nickname}": 2,
})
ctx = context.WithValue(context.Background(), sw.ContextOperationServerVariables, map[string]map[string]string{
	"{classname}Service.{nickname}": {
		"port": "8443",
	},
})

Documentation for API Endpoints

All URIs are relative to https://payment.ecpay.com.tw

Class Method HTTP request Description
CallBackApi CallbackPeriodReturnURLPost Post /callback/PeriodReturnURL
CallBackApi CallbackReturnURLPost Post /callback/ReturnURL
ECPayApi QueryCreditCardPeriodInfo Post /Cashier/QueryCreditCardPeriodInfo
ECPayApi QueryTradeInfo Post /Cashier/QueryTradeInfo/V5

Documentation For Models

Documentation For Authorization

Endpoints do not require authorization.

Documentation for Utility Methods

Due to the fact that model structure members are all pointers, this package contains a number of utility functions to easily obtain pointers to values of basic types. Each of these functions takes a value of the given basic type and returns a pointer to it:

  • PtrBool
  • PtrInt
  • PtrInt32
  • PtrInt64
  • PtrFloat
  • PtrFloat32
  • PtrFloat64
  • PtrString
  • PtrTime

Author

Documentation

Index

Constants

View Source
const ECPayDateTimeFormat = "2006/01/02 15:04:05"

Variables

View Source
var (
	// ContextOAuth2 takes an oauth2.TokenSource as authentication for the request.
	ContextOAuth2 = contextKey("token")

	// ContextBasicAuth takes BasicAuth as authentication for the request.
	ContextBasicAuth = contextKey("basic")

	// ContextAccessToken takes a string oauth2 access token as authentication for the request.
	ContextAccessToken = contextKey("accesstoken")

	// ContextAPIKeys takes a string apikey as authentication for the request
	ContextAPIKeys = contextKey("apiKeys")

	// ContextHttpSignatureAuth takes HttpSignatureAuth as authentication for the request.
	ContextHttpSignatureAuth = contextKey("httpsignature")

	// ContextServerIndex uses a server configuration from the index.
	ContextServerIndex = contextKey("serverIndex")

	// ContextOperationServerIndices uses a server configuration from the index mapping.
	ContextOperationServerIndices = contextKey("serverOperationIndices")

	// ContextServerVariables overrides a server configuration variables.
	ContextServerVariables = contextKey("serverVariables")

	// ContextOperationServerVariables overrides a server configuration variables using operation specific values.
	ContextOperationServerVariables = contextKey("serverOperationVariables")
)

Functions

func CacheExpires

func CacheExpires(r *http.Response) time.Time

CacheExpires helper function to determine remaining time before repeating a request.

func PtrBool

func PtrBool(v bool) *bool

PtrBool is a helper routine that returns a pointer to given integer value.

func PtrFloat32

func PtrFloat32(v float32) *float32

PtrFloat32 is a helper routine that returns a pointer to given float value.

func PtrFloat64

func PtrFloat64(v float64) *float64

PtrFloat64 is a helper routine that returns a pointer to given float value.

func PtrInt

func PtrInt(v int) *int

PtrInt is a helper routine that returns a pointer to given integer value.

func PtrInt32

func PtrInt32(v int32) *int32

PtrInt32 is a helper routine that returns a pointer to given integer value.

func PtrInt64

func PtrInt64(v int64) *int64

PtrInt64 is a helper routine that returns a pointer to given integer value.

func PtrString

func PtrString(v string) *string

PtrString is a helper routine that returns a pointer to given string value.

func PtrTime

func PtrTime(v time.Time) *time.Time

PtrTime is helper routine that returns a pointer to given Time value.

Types

type APIClient

type APIClient struct {
	CallBackApi *CallBackApiService

	ECPayApi *ECPayApiService
	// contains filtered or unexported fields
}

APIClient manages communication with the ECPay API API v0.0.24 In most cases there should be only one, shared, APIClient.

func NewAPIClient

func NewAPIClient(cfg *Configuration) *APIClient

NewAPIClient creates a new API client. Requires a userAgent string describing your application. optionally a custom http.Client to allow for advanced features such as caching.

func (*APIClient) GetConfig

func (c *APIClient) GetConfig() *Configuration

Allow modification of underlying config for alternate implementations and testing Caution: modifying the configuration while live can cause data races and potentially unwanted behavior

type APIKey

type APIKey struct {
	Key    string
	Prefix string
}

APIKey provides API key based authentication to a request passed via context using ContextAPIKey

type APIResponse

type APIResponse struct {
	*http.Response `json:"-"`
	Message        string `json:"message,omitempty"`
	// Operation is the name of the OpenAPI operation.
	Operation string `json:"operation,omitempty"`
	// RequestURL is the request URL. This value is always available, even if the
	// embedded *http.Response is nil.
	RequestURL string `json:"url,omitempty"`
	// Method is the HTTP method used for the request.  This value is always
	// available, even if the embedded *http.Response is nil.
	Method string `json:"method,omitempty"`
	// Payload holds the contents of the response body (which may be nil or empty).
	// This is provided here as the raw response.Body() reader will have already
	// been drained.
	Payload []byte `json:"-"`
}

APIResponse stores the API response returned by the server.

func NewAPIResponse

func NewAPIResponse(r *http.Response) *APIResponse

NewAPIResponse returns a new APIResonse object.

func NewAPIResponseWithError

func NewAPIResponseWithError(errorMessage string) *APIResponse

NewAPIResponseWithError returns a new APIResponse object with the provided error message.

type AioCheckOutAtmOption

type AioCheckOutAtmOption struct {
	// **允許繳費有效天數**   若需設定最長 60 天,最短 1 天。   未設定此參數則預設為 3 天   注意事項:以天為單位
	ExpireDate *int `json:"ExpireDate,omitempty" form:"ExpireDate"`
	// **Server端回傳付款相關資訊**   若有設定此參數,訂單建立完成後(非付款完成),綠界會 Server 端背景回傳消費者付款方式相關資訊(例:銀行代碼、繳費虛擬帳號繳費期限…等)。   請參考[ATM、CVS 或 BARCODE 的取號結果通知.]   注意事項:   頁面將會停留在綠界,顯示繳費的相關資訊。
	PaymentInfoURL *string `json:"PaymentInfoURL,omitempty" form:"PaymentInfoURL"`
	// **Client端回傳付款相關資訊**   若有設定此參數,訂單建立完成後(非付款完成),綠界會 Client 端回傳消費者付款方式相關資訊(例:銀行代碼、繳費虛擬帳號繳費期限…等)且將頁面轉到特店指定的頁面。請參考[ATM、CVS 或 BARCODE 的取號結果通知.]   注意事項:   若設定此參數,將會使設定的返回特店的按鈕連結[ClientBackURL]失效。   若導回網址未使用 https 時,部份瀏覽器可能會出現警告訊息。
	ClientRedirectURL *string `json:"ClientRedirectURL,omitempty" form:"ClientRedirectURL"`
}

AioCheckOutAtmOption struct for AioCheckOutAtmOption

func NewAioCheckOutAtmOption

func NewAioCheckOutAtmOption() *AioCheckOutAtmOption

NewAioCheckOutAtmOption instantiates a new AioCheckOutAtmOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutAtmOptionWithDefaults

func NewAioCheckOutAtmOptionWithDefaults() *AioCheckOutAtmOption

NewAioCheckOutAtmOptionWithDefaults instantiates a new AioCheckOutAtmOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutAtmOption) GetClientRedirectURL

func (o *AioCheckOutAtmOption) GetClientRedirectURL() string

GetClientRedirectURL returns the ClientRedirectURL field value if set, zero value otherwise.

func (*AioCheckOutAtmOption) GetClientRedirectURLOk

func (o *AioCheckOutAtmOption) GetClientRedirectURLOk() (*string, bool)

GetClientRedirectURLOk returns a tuple with the ClientRedirectURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutAtmOption) GetExpireDate

func (o *AioCheckOutAtmOption) GetExpireDate() int

GetExpireDate returns the ExpireDate field value if set, zero value otherwise.

func (*AioCheckOutAtmOption) GetExpireDateOk

func (o *AioCheckOutAtmOption) GetExpireDateOk() (*int, bool)

GetExpireDateOk returns a tuple with the ExpireDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutAtmOption) GetPaymentInfoURL

func (o *AioCheckOutAtmOption) GetPaymentInfoURL() string

GetPaymentInfoURL returns the PaymentInfoURL field value if set, zero value otherwise.

func (*AioCheckOutAtmOption) GetPaymentInfoURLOk

func (o *AioCheckOutAtmOption) GetPaymentInfoURLOk() (*string, bool)

GetPaymentInfoURLOk returns a tuple with the PaymentInfoURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutAtmOption) HasClientRedirectURL

func (o *AioCheckOutAtmOption) HasClientRedirectURL() bool

HasClientRedirectURL returns a boolean if a field has been set.

func (*AioCheckOutAtmOption) HasExpireDate

func (o *AioCheckOutAtmOption) HasExpireDate() bool

HasExpireDate returns a boolean if a field has been set.

func (*AioCheckOutAtmOption) HasPaymentInfoURL

func (o *AioCheckOutAtmOption) HasPaymentInfoURL() bool

HasPaymentInfoURL returns a boolean if a field has been set.

func (AioCheckOutAtmOption) MarshalJSON

func (o AioCheckOutAtmOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutAtmOption) SetClientRedirectURL

func (o *AioCheckOutAtmOption) SetClientRedirectURL(v string)

SetClientRedirectURL gets a reference to the given string and assigns it to the ClientRedirectURL field.

func (*AioCheckOutAtmOption) SetExpireDate

func (o *AioCheckOutAtmOption) SetExpireDate(v int)

SetExpireDate gets a reference to the given int and assigns it to the ExpireDate field.

func (*AioCheckOutAtmOption) SetPaymentInfoURL

func (o *AioCheckOutAtmOption) SetPaymentInfoURL(v string)

SetPaymentInfoURL gets a reference to the given string and assigns it to the PaymentInfoURL field.

type AioCheckOutCreditInstallmentOption

type AioCheckOutCreditInstallmentOption struct {
	// **刷卡分期期數**    提供刷卡分期期數   信用卡分期可用參數為:3,6,12,18,24   注意事項:   使用的期數必須先透過申請開通後方能使用,並以申請開通的期數為主。
	CreditInstallment string `json:"CreditInstallment" form:"CreditInstallment"`
}

AioCheckOutCreditInstallmentOption struct for AioCheckOutCreditInstallmentOption

func NewAioCheckOutCreditInstallmentOption

func NewAioCheckOutCreditInstallmentOption(creditInstallment string) *AioCheckOutCreditInstallmentOption

NewAioCheckOutCreditInstallmentOption instantiates a new AioCheckOutCreditInstallmentOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutCreditInstallmentOptionWithDefaults

func NewAioCheckOutCreditInstallmentOptionWithDefaults() *AioCheckOutCreditInstallmentOption

NewAioCheckOutCreditInstallmentOptionWithDefaults instantiates a new AioCheckOutCreditInstallmentOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutCreditInstallmentOption) GetCreditInstallment

func (o *AioCheckOutCreditInstallmentOption) GetCreditInstallment() string

GetCreditInstallment returns the CreditInstallment field value

func (*AioCheckOutCreditInstallmentOption) GetCreditInstallmentOk

func (o *AioCheckOutCreditInstallmentOption) GetCreditInstallmentOk() (*string, bool)

GetCreditInstallmentOk returns a tuple with the CreditInstallment field value and a boolean to check if the value has been set.

func (AioCheckOutCreditInstallmentOption) MarshalJSON

func (o AioCheckOutCreditInstallmentOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutCreditInstallmentOption) SetCreditInstallment

func (o *AioCheckOutCreditInstallmentOption) SetCreditInstallment(v string)

SetCreditInstallment sets field value

type AioCheckOutCreditOnetimeOption

type AioCheckOutCreditOnetimeOption struct {
	Redeem   *RedeemEnum   `json:"Redeem,omitempty" form:"Redeem"`
	UnionPay *UnionPayEnum `json:"UnionPay,omitempty" form:"UnionPay"`
}

AioCheckOutCreditOnetimeOption struct for AioCheckOutCreditOnetimeOption

func NewAioCheckOutCreditOnetimeOption

func NewAioCheckOutCreditOnetimeOption() *AioCheckOutCreditOnetimeOption

NewAioCheckOutCreditOnetimeOption instantiates a new AioCheckOutCreditOnetimeOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutCreditOnetimeOptionWithDefaults

func NewAioCheckOutCreditOnetimeOptionWithDefaults() *AioCheckOutCreditOnetimeOption

NewAioCheckOutCreditOnetimeOptionWithDefaults instantiates a new AioCheckOutCreditOnetimeOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutCreditOnetimeOption) GetRedeem

GetRedeem returns the Redeem field value if set, zero value otherwise.

func (*AioCheckOutCreditOnetimeOption) GetRedeemOk

func (o *AioCheckOutCreditOnetimeOption) GetRedeemOk() (*RedeemEnum, bool)

GetRedeemOk returns a tuple with the Redeem field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCreditOnetimeOption) GetUnionPay

GetUnionPay returns the UnionPay field value if set, zero value otherwise.

func (*AioCheckOutCreditOnetimeOption) GetUnionPayOk

func (o *AioCheckOutCreditOnetimeOption) GetUnionPayOk() (*UnionPayEnum, bool)

GetUnionPayOk returns a tuple with the UnionPay field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCreditOnetimeOption) HasRedeem

func (o *AioCheckOutCreditOnetimeOption) HasRedeem() bool

HasRedeem returns a boolean if a field has been set.

func (*AioCheckOutCreditOnetimeOption) HasUnionPay

func (o *AioCheckOutCreditOnetimeOption) HasUnionPay() bool

HasUnionPay returns a boolean if a field has been set.

func (AioCheckOutCreditOnetimeOption) MarshalJSON

func (o AioCheckOutCreditOnetimeOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutCreditOnetimeOption) SetRedeem

SetRedeem gets a reference to the given RedeemEnum and assigns it to the Redeem field.

func (*AioCheckOutCreditOnetimeOption) SetUnionPay

func (o *AioCheckOutCreditOnetimeOption) SetUnionPay(v UnionPayEnum)

SetUnionPay gets a reference to the given UnionPayEnum and assigns it to the UnionPay field.

type AioCheckOutCreditOption

type AioCheckOutCreditOption struct {
	BindingCard *BindingCardEnum `json:"BindingCard,omitempty" form:"BindingCard"`
	// **記憶卡號識別碼** 記憶卡號識別碼 (特店代號 `MerchantID` + `廠商會員編號`)
	MerchantMemberID *string `json:"MerchantMemberID,omitempty" form:"MerchantMemberID"`
}

AioCheckOutCreditOption struct for AioCheckOutCreditOption

func NewAioCheckOutCreditOption

func NewAioCheckOutCreditOption() *AioCheckOutCreditOption

NewAioCheckOutCreditOption instantiates a new AioCheckOutCreditOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutCreditOptionWithDefaults

func NewAioCheckOutCreditOptionWithDefaults() *AioCheckOutCreditOption

NewAioCheckOutCreditOptionWithDefaults instantiates a new AioCheckOutCreditOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutCreditOption) GetBindingCard

func (o *AioCheckOutCreditOption) GetBindingCard() BindingCardEnum

GetBindingCard returns the BindingCard field value if set, zero value otherwise.

func (*AioCheckOutCreditOption) GetBindingCardOk

func (o *AioCheckOutCreditOption) GetBindingCardOk() (*BindingCardEnum, bool)

GetBindingCardOk returns a tuple with the BindingCard field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCreditOption) GetMerchantMemberID

func (o *AioCheckOutCreditOption) GetMerchantMemberID() string

GetMerchantMemberID returns the MerchantMemberID field value if set, zero value otherwise.

func (*AioCheckOutCreditOption) GetMerchantMemberIDOk

func (o *AioCheckOutCreditOption) GetMerchantMemberIDOk() (*string, bool)

GetMerchantMemberIDOk returns a tuple with the MerchantMemberID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCreditOption) HasBindingCard

func (o *AioCheckOutCreditOption) HasBindingCard() bool

HasBindingCard returns a boolean if a field has been set.

func (*AioCheckOutCreditOption) HasMerchantMemberID

func (o *AioCheckOutCreditOption) HasMerchantMemberID() bool

HasMerchantMemberID returns a boolean if a field has been set.

func (AioCheckOutCreditOption) MarshalJSON

func (o AioCheckOutCreditOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutCreditOption) SetBindingCard

func (o *AioCheckOutCreditOption) SetBindingCard(v BindingCardEnum)

SetBindingCard gets a reference to the given BindingCardEnum and assigns it to the BindingCard field.

func (*AioCheckOutCreditOption) SetMerchantMemberID

func (o *AioCheckOutCreditOption) SetMerchantMemberID(v string)

SetMerchantMemberID gets a reference to the given string and assigns it to the MerchantMemberID field.

type AioCheckOutCreditPeriodOption

type AioCheckOutCreditPeriodOption struct {
	// **每次授權金額**   每次要授權(扣款)的金額。   注意事項:   綠界會依此次授權金額`PeriodAmount`所設定的金額做為之後固定授權的金額。   交易金額`TotalAmount`設定金額必須和授權金額`PeriodAmount`相同。   請帶整數,不可有小數點。僅限新台幣。
	PeriodAmount int                  `json:"PeriodAmount" form:"PeriodAmount"`
	PeriodType   CreditPeriodTypeEnum `json:"PeriodType" form:"PeriodType"`
	// **執行頻率**   此參數用來定義多久要執行一次   注意事項:   至少要大於等於 1 次以上。   當 `PeriodType` 設為 `D` 時,最多可設 `365` 次。    當 `PeriodType` 設為 `M` 時,最多可設 `12` 次。     當 `PeriodType` 設為 `Y` 時,最多可設 `1` 次。
	Frequency int `json:"Frequency" form:"Frequency"`
	// **執行次數**   總共要執行幾次。   注意事項:   至少要大於 1 次以上。   當 `PeriodType` 設為 `D` 時,最多可設 `999`次。   當 `PeriodType` 設為 `M` 時,最多可設 `99`次。   當 `PeriodType` 設為 `Y` 時,最多可設 `9` 次。    例 1:   當信用卡定期定額扣款為每個月扣 1 次500 元,總共要扣 12次   `TotalAmount`參數請帶 `500` `PeriodAmount`=`500`   `PeriodType`=`M`   `Frequency`=`1`   `ExecTimes`=`12`    例 2:   當信用卡定期定額扣款為 6000 元,每 6 個月扣 1 次,總共要扣 2 次時    交易金額`TotalAmount`參數請帶 `6000`   `PeriodType`=`M`   `Frequency`=`6`   `ExecTimes`=`2`
	ExecTimes int `json:"ExecTimes" form:"ExecTimes"`
	// **定期定額的執行結果回應URL**   若交易是信用卡定期定額的方式,則每次執行授權完,會將授權結果回傳到這個設定的 URL。   回覆內容請參考。
	PeriodReturnURL *string `json:"PeriodReturnURL,omitempty" form:"PeriodReturnURL"`
}

AioCheckOutCreditPeriodOption struct for AioCheckOutCreditPeriodOption

func NewAioCheckOutCreditPeriodOption

func NewAioCheckOutCreditPeriodOption(periodAmount int, periodType CreditPeriodTypeEnum, frequency int, execTimes int) *AioCheckOutCreditPeriodOption

NewAioCheckOutCreditPeriodOption instantiates a new AioCheckOutCreditPeriodOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutCreditPeriodOptionWithDefaults

func NewAioCheckOutCreditPeriodOptionWithDefaults() *AioCheckOutCreditPeriodOption

NewAioCheckOutCreditPeriodOptionWithDefaults instantiates a new AioCheckOutCreditPeriodOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutCreditPeriodOption) GetExecTimes

func (o *AioCheckOutCreditPeriodOption) GetExecTimes() int

GetExecTimes returns the ExecTimes field value

func (*AioCheckOutCreditPeriodOption) GetExecTimesOk

func (o *AioCheckOutCreditPeriodOption) GetExecTimesOk() (*int, bool)

GetExecTimesOk returns a tuple with the ExecTimes field value and a boolean to check if the value has been set.

func (*AioCheckOutCreditPeriodOption) GetFrequency

func (o *AioCheckOutCreditPeriodOption) GetFrequency() int

GetFrequency returns the Frequency field value

func (*AioCheckOutCreditPeriodOption) GetFrequencyOk

func (o *AioCheckOutCreditPeriodOption) GetFrequencyOk() (*int, bool)

GetFrequencyOk returns a tuple with the Frequency field value and a boolean to check if the value has been set.

func (*AioCheckOutCreditPeriodOption) GetPeriodAmount

func (o *AioCheckOutCreditPeriodOption) GetPeriodAmount() int

GetPeriodAmount returns the PeriodAmount field value

func (*AioCheckOutCreditPeriodOption) GetPeriodAmountOk

func (o *AioCheckOutCreditPeriodOption) GetPeriodAmountOk() (*int, bool)

GetPeriodAmountOk returns a tuple with the PeriodAmount field value and a boolean to check if the value has been set.

func (*AioCheckOutCreditPeriodOption) GetPeriodReturnURL

func (o *AioCheckOutCreditPeriodOption) GetPeriodReturnURL() string

GetPeriodReturnURL returns the PeriodReturnURL field value if set, zero value otherwise.

func (*AioCheckOutCreditPeriodOption) GetPeriodReturnURLOk

func (o *AioCheckOutCreditPeriodOption) GetPeriodReturnURLOk() (*string, bool)

GetPeriodReturnURLOk returns a tuple with the PeriodReturnURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCreditPeriodOption) GetPeriodType

GetPeriodType returns the PeriodType field value

func (*AioCheckOutCreditPeriodOption) GetPeriodTypeOk

func (o *AioCheckOutCreditPeriodOption) GetPeriodTypeOk() (*CreditPeriodTypeEnum, bool)

GetPeriodTypeOk returns a tuple with the PeriodType field value and a boolean to check if the value has been set.

func (*AioCheckOutCreditPeriodOption) HasPeriodReturnURL

func (o *AioCheckOutCreditPeriodOption) HasPeriodReturnURL() bool

HasPeriodReturnURL returns a boolean if a field has been set.

func (AioCheckOutCreditPeriodOption) MarshalJSON

func (o AioCheckOutCreditPeriodOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutCreditPeriodOption) SetExecTimes

func (o *AioCheckOutCreditPeriodOption) SetExecTimes(v int)

SetExecTimes sets field value

func (*AioCheckOutCreditPeriodOption) SetFrequency

func (o *AioCheckOutCreditPeriodOption) SetFrequency(v int)

SetFrequency sets field value

func (*AioCheckOutCreditPeriodOption) SetPeriodAmount

func (o *AioCheckOutCreditPeriodOption) SetPeriodAmount(v int)

SetPeriodAmount sets field value

func (*AioCheckOutCreditPeriodOption) SetPeriodReturnURL

func (o *AioCheckOutCreditPeriodOption) SetPeriodReturnURL(v string)

SetPeriodReturnURL gets a reference to the given string and assigns it to the PeriodReturnURL field.

func (*AioCheckOutCreditPeriodOption) SetPeriodType

SetPeriodType sets field value

type AioCheckOutCvsBarcodeOption

type AioCheckOutCvsBarcodeOption struct {
	// **超商繳費截止時間**   注意事項:   `CVS`:以分鐘為單位   `BARCODE`:以天為單位   若未設定此參數,`CVS` 預設為 `10080` 分鐘(`7` 天);BARCODE 預設為 `7` 天。   若需設定此參數,請於建立訂單時將此參數送給綠界。提醒您,CVS 帶入數值不可超過 `86400` 分鐘,超過時一律以 `86400` 分鐘計(`60` 天)   例:`08/01` 的 `20:15` 分購買商品,繳費期限為 `7` 天,表示 `8/08` 的 `20:15` 分前您必須前往超商繳費。   範例: `CVS`=`1440`(共 `1` 天)、`BARCODE`=`7`(共 `7` 天)
	StoreExpireDate *int `json:"StoreExpireDate,omitempty" form:"StoreExpireDate"`
	// **交易描述1** 會出現在超商繳費平台螢幕上
	Desc1 *string `json:"Desc_1,omitempty" form:"Desc_1"`
	// **交易描述2** 會出現在超商繳費平台螢幕上
	Desc2 *string `json:"Desc_2,omitempty" form:"Desc_2"`
	// **交易描述3** 會出現在超商繳費平台螢幕上
	Desc3 *string `json:"Desc_3,omitempty" form:"Desc_3"`
	// **交易描述4** 會出現在超商繳費平台螢幕上
	Desc4 *string `json:"Desc_4,omitempty" form:"Desc_4"`
	// **Server 端回傳付款相關資訊**   若有設定此參數,訂單建立完成後(非付款完成),綠界會 Server 端背景回傳消費者付款方式相關資訊(例:繳費代碼與繳費超商)。   請參考[`ATM`、`CVS` 或 `BARCODE` 的取號結果通知.]   注意事項:   頁面將會停留在綠界,顯示繳費的相關資訊。   回傳只有三段號碼,並不會回傳條碼圖,需自行轉換成 code39 的三段條碼。
	PaymentInfoURL *string `json:"PaymentInfoURL,omitempty" form:"PaymentInfoURL"`
	// **Client端回傳付款方式相關資訊**   若有設定此參數,訂單建立完成後(非付款完成),綠界會從 Client 端回傳消費者付款方式相關資訊(例:繳費代碼與繳費超商)且將頁面轉到特店指定的頁面。   請參考[`ATM`、`CVS` 或 `BARCODE` 的取號結果通知.]   注意事項:   若設定此參數,將會使設定的返回特店的按鈕連結[ClientBackURL]失效。   若導回網址未使用 https 時,部份瀏覽器可能會出現警告訊息。   回傳只有三段號碼,並不會回傳條碼圖,需自行轉換成 code39 的三段條碼。
	ClientRedirectURL *string `json:"ClientRedirectURL,omitempty" form:"ClientRedirectURL"`
}

AioCheckOutCvsBarcodeOption struct for AioCheckOutCvsBarcodeOption

func NewAioCheckOutCvsBarcodeOption

func NewAioCheckOutCvsBarcodeOption() *AioCheckOutCvsBarcodeOption

NewAioCheckOutCvsBarcodeOption instantiates a new AioCheckOutCvsBarcodeOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutCvsBarcodeOptionWithDefaults

func NewAioCheckOutCvsBarcodeOptionWithDefaults() *AioCheckOutCvsBarcodeOption

NewAioCheckOutCvsBarcodeOptionWithDefaults instantiates a new AioCheckOutCvsBarcodeOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutCvsBarcodeOption) GetClientRedirectURL

func (o *AioCheckOutCvsBarcodeOption) GetClientRedirectURL() string

GetClientRedirectURL returns the ClientRedirectURL field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetClientRedirectURLOk

func (o *AioCheckOutCvsBarcodeOption) GetClientRedirectURLOk() (*string, bool)

GetClientRedirectURLOk returns a tuple with the ClientRedirectURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetDesc1

func (o *AioCheckOutCvsBarcodeOption) GetDesc1() string

GetDesc1 returns the Desc1 field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetDesc1Ok

func (o *AioCheckOutCvsBarcodeOption) GetDesc1Ok() (*string, bool)

GetDesc1Ok returns a tuple with the Desc1 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetDesc2

func (o *AioCheckOutCvsBarcodeOption) GetDesc2() string

GetDesc2 returns the Desc2 field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetDesc2Ok

func (o *AioCheckOutCvsBarcodeOption) GetDesc2Ok() (*string, bool)

GetDesc2Ok returns a tuple with the Desc2 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetDesc3

func (o *AioCheckOutCvsBarcodeOption) GetDesc3() string

GetDesc3 returns the Desc3 field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetDesc3Ok

func (o *AioCheckOutCvsBarcodeOption) GetDesc3Ok() (*string, bool)

GetDesc3Ok returns a tuple with the Desc3 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetDesc4

func (o *AioCheckOutCvsBarcodeOption) GetDesc4() string

GetDesc4 returns the Desc4 field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetDesc4Ok

func (o *AioCheckOutCvsBarcodeOption) GetDesc4Ok() (*string, bool)

GetDesc4Ok returns a tuple with the Desc4 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetPaymentInfoURL

func (o *AioCheckOutCvsBarcodeOption) GetPaymentInfoURL() string

GetPaymentInfoURL returns the PaymentInfoURL field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetPaymentInfoURLOk

func (o *AioCheckOutCvsBarcodeOption) GetPaymentInfoURLOk() (*string, bool)

GetPaymentInfoURLOk returns a tuple with the PaymentInfoURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) GetStoreExpireDate

func (o *AioCheckOutCvsBarcodeOption) GetStoreExpireDate() int

GetStoreExpireDate returns the StoreExpireDate field value if set, zero value otherwise.

func (*AioCheckOutCvsBarcodeOption) GetStoreExpireDateOk

func (o *AioCheckOutCvsBarcodeOption) GetStoreExpireDateOk() (*int, bool)

GetStoreExpireDateOk returns a tuple with the StoreExpireDate field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutCvsBarcodeOption) HasClientRedirectURL

func (o *AioCheckOutCvsBarcodeOption) HasClientRedirectURL() bool

HasClientRedirectURL returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasDesc1

func (o *AioCheckOutCvsBarcodeOption) HasDesc1() bool

HasDesc1 returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasDesc2

func (o *AioCheckOutCvsBarcodeOption) HasDesc2() bool

HasDesc2 returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasDesc3

func (o *AioCheckOutCvsBarcodeOption) HasDesc3() bool

HasDesc3 returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasDesc4

func (o *AioCheckOutCvsBarcodeOption) HasDesc4() bool

HasDesc4 returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasPaymentInfoURL

func (o *AioCheckOutCvsBarcodeOption) HasPaymentInfoURL() bool

HasPaymentInfoURL returns a boolean if a field has been set.

func (*AioCheckOutCvsBarcodeOption) HasStoreExpireDate

func (o *AioCheckOutCvsBarcodeOption) HasStoreExpireDate() bool

HasStoreExpireDate returns a boolean if a field has been set.

func (AioCheckOutCvsBarcodeOption) MarshalJSON

func (o AioCheckOutCvsBarcodeOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutCvsBarcodeOption) SetClientRedirectURL

func (o *AioCheckOutCvsBarcodeOption) SetClientRedirectURL(v string)

SetClientRedirectURL gets a reference to the given string and assigns it to the ClientRedirectURL field.

func (*AioCheckOutCvsBarcodeOption) SetDesc1

func (o *AioCheckOutCvsBarcodeOption) SetDesc1(v string)

SetDesc1 gets a reference to the given string and assigns it to the Desc1 field.

func (*AioCheckOutCvsBarcodeOption) SetDesc2

func (o *AioCheckOutCvsBarcodeOption) SetDesc2(v string)

SetDesc2 gets a reference to the given string and assigns it to the Desc2 field.

func (*AioCheckOutCvsBarcodeOption) SetDesc3

func (o *AioCheckOutCvsBarcodeOption) SetDesc3(v string)

SetDesc3 gets a reference to the given string and assigns it to the Desc3 field.

func (*AioCheckOutCvsBarcodeOption) SetDesc4

func (o *AioCheckOutCvsBarcodeOption) SetDesc4(v string)

SetDesc4 gets a reference to the given string and assigns it to the Desc4 field.

func (*AioCheckOutCvsBarcodeOption) SetPaymentInfoURL

func (o *AioCheckOutCvsBarcodeOption) SetPaymentInfoURL(v string)

SetPaymentInfoURL gets a reference to the given string and assigns it to the PaymentInfoURL field.

func (*AioCheckOutCvsBarcodeOption) SetStoreExpireDate

func (o *AioCheckOutCvsBarcodeOption) SetStoreExpireDate(v int)

SetStoreExpireDate gets a reference to the given int and assigns it to the StoreExpireDate field.

type AioCheckOutGeneralOption

type AioCheckOutGeneralOption struct {
	// **特店編號(由綠界提供)**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號(由特店提供)**   特店交易編號均為唯一值,不可重複使用。   英數字大小寫混合   如何避免訂單編號重複請參考 FAQ   如有使用 `PlatformID` ,平台商底下所有商家之訂單編號亦不可重複。
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **特店旗下店舖代號** 提供特店填入分店代號使用,僅可用英數字大小寫混合。
	StoreID *string `json:"StoreID,omitempty" form:"StoreID"`
	// **特店交易時間** 格式為 `yyyy/MM/dd HH:mm:ss`
	MerchantTradeDate ECPayDateTime           `json:"MerchantTradeDate" form:"MerchantTradeDate"`
	PaymentType       AioCheckPaymentTypeEnum `json:"PaymentType" form:"PaymentType"`
	// **交易金額**   請帶整數,不可有小數點。   僅限新台幣。   各付款金額的限制,請參考 <https://www.ecpay.com.tw/CascadeFAQ/CascadeFAQ_Qa?nID=3605>
	TotalAmount int `json:"TotalAmount" form:"TotalAmount"`
	// **交易描述** 傳送到綠界前,請將參數值先做 UrlEncode。
	TradeDesc string `json:"TradeDesc" form:"TradeDesc"`
	// **商品名稱**   1. 如果商品名稱有多筆,需在金流選擇頁一行一行顯示商品名稱的話,商品名稱請以符號#分隔。   2. 商品名稱字數限制為中英數 400 字內,超過此限制系統將自動截斷。
	ItemName string `json:"ItemName" form:"ItemName"`
	// **付款完成通知回傳網址**   當消費者付款完成後,綠界會將付款結果參數以幕後(Server POST)回傳到該網址。   詳細說明請參考付款結果通知   注意事項:    1. 請勿設定與 Client 端接收付款結果網址 OrderResultURL 相同位置,避免程式判斷錯誤。   2. 請在收到 Server 端付款結果通知後,請正確回應 1|OK 給綠界。
	ReturnURL     string            `json:"ReturnURL" form:"ReturnURL"`
	ChoosePayment ChoosePaymentEnum `json:"ChoosePayment" form:"ChoosePayment"`
	// **檢查碼** 請參考附錄檢查碼機制與產生檢查碼範例程式
	CheckMacValue string `json:"CheckMacValue" form:"CheckMacValue"`
	// **Client端返回特店的按鈕連結**   消費者點選此按鈕後,會將頁面導回到此設定的網址   注意事項:   導回時不會帶付款結果到此網址,只是將頁面導回而已。   設定此參數,綠界會在付款完成或取號完成頁面上顯示[返回商店]的按鈕。   設定此參數,發生簡訊 OTP 驗證失敗時,頁面上會顯示[返回商店]的按鈕。   若未設定此參數,則綠界付款完成頁或取號完成頁面,不會顯示[返回商店]的按鈕。   若導回網址未使用 https 時,部份瀏覽器可能會出現警告訊息。
	ClientBackURL *string `json:"ClientBackURL,omitempty" form:"ClientBackURL"`
	// **商品銷售網址**
	ItemURL *string `json:"ItemURL,omitempty" form:"ItemURL"`
	// **備註欄位**
	Remark           *string               `json:"Remark,omitempty" form:"Remark"`
	ChooseSubPayment *ChooseSubPaymentEnum `json:"ChooseSubPayment,omitempty" form:"ChooseSubPayment"`
	// **Client端回傳付款結果網址**     當消費者付款完成後,綠界會將付款結果參數以幕前(Client POST)回傳到該網址。   詳細說明請參考付款結果通知   注意事項:   1. 若與[ClientBackURL]同時設定,將會以此參數為主。   2. 銀聯卡及非即時交易(ATM、CVS、BARCODE)不支援此參數。
	OrderResultURL    *string                `json:"OrderResultURL,omitempty" form:"OrderResultURL"`
	NeedExtraPaidInfo *NeedExtraPaidInfoEnum `json:"NeedExtraPaidInfo,omitempty" form:"NeedExtraPaidInfo"`
	// **裝置來源** 請帶空值,由系統自動判定。
	DeviceSource *string `json:"DeviceSource,omitempty" form:"DeviceSource"`
	// **隱藏付款**   當付款方式 `ChoosePayment` 為 `ALL` 時,可隱藏不需要的付款方式,多筆請以井號分隔(#)。   可用的參數值:   - `Credit`: 信用卡   - `WebATM`: 網路 ATM   - `ATM`: 自動櫃員機   - `CVS`: 超商代碼   - `BARCODE`: 超商條碼
	IgnorePayment *string `json:"IgnorePayment,omitempty" form:"IgnorePayment"`
	// **特約合作平台商代號(由綠界提供)**   為專案合作的平台商使用。   一般特店或平台商本身介接,則參數請帶放空值。   若為專案合作平台商的特店使用時,則參數請帶平台商所綁的特店編號 `MerchantID`。
	PlatformID  *string          `json:"PlatformID,omitempty" form:"PlatformID"`
	InvoiceMark *InvoiceMarkEnum `json:"InvoiceMark,omitempty" form:"InvoiceMark"`
	// **自訂名稱欄位1**   提供合作廠商使用記錄用客製化使用欄位   注意事項:   特殊符號只支援 `,.#()$[];%{}:/?&@<>!`
	CustomField1 *string `json:"CustomField1,omitempty" form:"CustomField1"`
	// **自訂名稱欄位2**   提供合作廠商使用記錄用客製化使用欄位   注意事項:   特殊符號只支援 `,.#()$[];%{}:/?&@<>!`
	CustomField2 *string `json:"CustomField2,omitempty" form:"CustomField2"`
	// **自訂名稱欄位3**   提供合作廠商使用記錄用客製化使用欄位   注意事項:   特殊符號只支援 `,.#()$[];%{}:/?&@<>!`
	CustomField3 *string `json:"CustomField3,omitempty" form:"CustomField3"`
	// **自訂名稱欄位4**   提供合作廠商使用記錄用客製化使用欄位   注意事項:   特殊符號只支援 `,.#()$[];%{}:/?&@<>!`
	CustomField4 *string         `json:"CustomField4,omitempty" form:"CustomField4"`
	EncryptType  EncryptTypeEnum `json:"EncryptType" form:"EncryptType"`
	Language     *LanguageEnum   `json:"Language,omitempty" form:"Language"`
}

AioCheckOutGeneralOption struct for AioCheckOutGeneralOption

func NewAioCheckOutGeneralOption

func NewAioCheckOutGeneralOption(merchantID string, merchantTradeNo string, merchantTradeDate ECPayDateTime, paymentType AioCheckPaymentTypeEnum, totalAmount int, tradeDesc string, itemName string, returnURL string, choosePayment ChoosePaymentEnum, checkMacValue string, encryptType EncryptTypeEnum) *AioCheckOutGeneralOption

NewAioCheckOutGeneralOption instantiates a new AioCheckOutGeneralOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutGeneralOptionWithDefaults

func NewAioCheckOutGeneralOptionWithDefaults() *AioCheckOutGeneralOption

NewAioCheckOutGeneralOptionWithDefaults instantiates a new AioCheckOutGeneralOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutGeneralOption) GetCheckMacValue

func (o *AioCheckOutGeneralOption) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*AioCheckOutGeneralOption) GetCheckMacValueOk

func (o *AioCheckOutGeneralOption) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetChoosePayment

func (o *AioCheckOutGeneralOption) GetChoosePayment() ChoosePaymentEnum

GetChoosePayment returns the ChoosePayment field value

func (*AioCheckOutGeneralOption) GetChoosePaymentOk

func (o *AioCheckOutGeneralOption) GetChoosePaymentOk() (*ChoosePaymentEnum, bool)

GetChoosePaymentOk returns a tuple with the ChoosePayment field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetChooseSubPayment

func (o *AioCheckOutGeneralOption) GetChooseSubPayment() ChooseSubPaymentEnum

GetChooseSubPayment returns the ChooseSubPayment field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetChooseSubPaymentOk

func (o *AioCheckOutGeneralOption) GetChooseSubPaymentOk() (*ChooseSubPaymentEnum, bool)

GetChooseSubPaymentOk returns a tuple with the ChooseSubPayment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetClientBackURL

func (o *AioCheckOutGeneralOption) GetClientBackURL() string

GetClientBackURL returns the ClientBackURL field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetClientBackURLOk

func (o *AioCheckOutGeneralOption) GetClientBackURLOk() (*string, bool)

GetClientBackURLOk returns a tuple with the ClientBackURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetCustomField1

func (o *AioCheckOutGeneralOption) GetCustomField1() string

GetCustomField1 returns the CustomField1 field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetCustomField1Ok

func (o *AioCheckOutGeneralOption) GetCustomField1Ok() (*string, bool)

GetCustomField1Ok returns a tuple with the CustomField1 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetCustomField2

func (o *AioCheckOutGeneralOption) GetCustomField2() string

GetCustomField2 returns the CustomField2 field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetCustomField2Ok

func (o *AioCheckOutGeneralOption) GetCustomField2Ok() (*string, bool)

GetCustomField2Ok returns a tuple with the CustomField2 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetCustomField3

func (o *AioCheckOutGeneralOption) GetCustomField3() string

GetCustomField3 returns the CustomField3 field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetCustomField3Ok

func (o *AioCheckOutGeneralOption) GetCustomField3Ok() (*string, bool)

GetCustomField3Ok returns a tuple with the CustomField3 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetCustomField4

func (o *AioCheckOutGeneralOption) GetCustomField4() string

GetCustomField4 returns the CustomField4 field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetCustomField4Ok

func (o *AioCheckOutGeneralOption) GetCustomField4Ok() (*string, bool)

GetCustomField4Ok returns a tuple with the CustomField4 field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetDeviceSource

func (o *AioCheckOutGeneralOption) GetDeviceSource() string

GetDeviceSource returns the DeviceSource field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetDeviceSourceOk

func (o *AioCheckOutGeneralOption) GetDeviceSourceOk() (*string, bool)

GetDeviceSourceOk returns a tuple with the DeviceSource field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetEncryptType

func (o *AioCheckOutGeneralOption) GetEncryptType() EncryptTypeEnum

GetEncryptType returns the EncryptType field value

func (*AioCheckOutGeneralOption) GetEncryptTypeOk

func (o *AioCheckOutGeneralOption) GetEncryptTypeOk() (*EncryptTypeEnum, bool)

GetEncryptTypeOk returns a tuple with the EncryptType field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetIgnorePayment

func (o *AioCheckOutGeneralOption) GetIgnorePayment() string

GetIgnorePayment returns the IgnorePayment field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetIgnorePaymentOk

func (o *AioCheckOutGeneralOption) GetIgnorePaymentOk() (*string, bool)

GetIgnorePaymentOk returns a tuple with the IgnorePayment field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetInvoiceMark

func (o *AioCheckOutGeneralOption) GetInvoiceMark() InvoiceMarkEnum

GetInvoiceMark returns the InvoiceMark field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetInvoiceMarkOk

func (o *AioCheckOutGeneralOption) GetInvoiceMarkOk() (*InvoiceMarkEnum, bool)

GetInvoiceMarkOk returns a tuple with the InvoiceMark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetItemName

func (o *AioCheckOutGeneralOption) GetItemName() string

GetItemName returns the ItemName field value

func (*AioCheckOutGeneralOption) GetItemNameOk

func (o *AioCheckOutGeneralOption) GetItemNameOk() (*string, bool)

GetItemNameOk returns a tuple with the ItemName field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetItemURL

func (o *AioCheckOutGeneralOption) GetItemURL() string

GetItemURL returns the ItemURL field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetItemURLOk

func (o *AioCheckOutGeneralOption) GetItemURLOk() (*string, bool)

GetItemURLOk returns a tuple with the ItemURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetLanguage

func (o *AioCheckOutGeneralOption) GetLanguage() LanguageEnum

GetLanguage returns the Language field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetLanguageOk

func (o *AioCheckOutGeneralOption) GetLanguageOk() (*LanguageEnum, bool)

GetLanguageOk returns a tuple with the Language field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetMerchantID

func (o *AioCheckOutGeneralOption) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*AioCheckOutGeneralOption) GetMerchantIDOk

func (o *AioCheckOutGeneralOption) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetMerchantTradeDate

func (o *AioCheckOutGeneralOption) GetMerchantTradeDate() ECPayDateTime

GetMerchantTradeDate returns the MerchantTradeDate field value

func (*AioCheckOutGeneralOption) GetMerchantTradeDateOk

func (o *AioCheckOutGeneralOption) GetMerchantTradeDateOk() (*ECPayDateTime, bool)

GetMerchantTradeDateOk returns a tuple with the MerchantTradeDate field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetMerchantTradeNo

func (o *AioCheckOutGeneralOption) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*AioCheckOutGeneralOption) GetMerchantTradeNoOk

func (o *AioCheckOutGeneralOption) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetNeedExtraPaidInfo

func (o *AioCheckOutGeneralOption) GetNeedExtraPaidInfo() NeedExtraPaidInfoEnum

GetNeedExtraPaidInfo returns the NeedExtraPaidInfo field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetNeedExtraPaidInfoOk

func (o *AioCheckOutGeneralOption) GetNeedExtraPaidInfoOk() (*NeedExtraPaidInfoEnum, bool)

GetNeedExtraPaidInfoOk returns a tuple with the NeedExtraPaidInfo field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetOrderResultURL

func (o *AioCheckOutGeneralOption) GetOrderResultURL() string

GetOrderResultURL returns the OrderResultURL field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetOrderResultURLOk

func (o *AioCheckOutGeneralOption) GetOrderResultURLOk() (*string, bool)

GetOrderResultURLOk returns a tuple with the OrderResultURL field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetPaymentType

GetPaymentType returns the PaymentType field value

func (*AioCheckOutGeneralOption) GetPaymentTypeOk

func (o *AioCheckOutGeneralOption) GetPaymentTypeOk() (*AioCheckPaymentTypeEnum, bool)

GetPaymentTypeOk returns a tuple with the PaymentType field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetPlatformID

func (o *AioCheckOutGeneralOption) GetPlatformID() string

GetPlatformID returns the PlatformID field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetPlatformIDOk

func (o *AioCheckOutGeneralOption) GetPlatformIDOk() (*string, bool)

GetPlatformIDOk returns a tuple with the PlatformID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetRemark

func (o *AioCheckOutGeneralOption) GetRemark() string

GetRemark returns the Remark field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetRemarkOk

func (o *AioCheckOutGeneralOption) GetRemarkOk() (*string, bool)

GetRemarkOk returns a tuple with the Remark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetReturnURL

func (o *AioCheckOutGeneralOption) GetReturnURL() string

GetReturnURL returns the ReturnURL field value

func (*AioCheckOutGeneralOption) GetReturnURLOk

func (o *AioCheckOutGeneralOption) GetReturnURLOk() (*string, bool)

GetReturnURLOk returns a tuple with the ReturnURL field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetStoreID

func (o *AioCheckOutGeneralOption) GetStoreID() string

GetStoreID returns the StoreID field value if set, zero value otherwise.

func (*AioCheckOutGeneralOption) GetStoreIDOk

func (o *AioCheckOutGeneralOption) GetStoreIDOk() (*string, bool)

GetStoreIDOk returns a tuple with the StoreID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetTotalAmount

func (o *AioCheckOutGeneralOption) GetTotalAmount() int

GetTotalAmount returns the TotalAmount field value

func (*AioCheckOutGeneralOption) GetTotalAmountOk

func (o *AioCheckOutGeneralOption) GetTotalAmountOk() (*int, bool)

GetTotalAmountOk returns a tuple with the TotalAmount field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) GetTradeDesc

func (o *AioCheckOutGeneralOption) GetTradeDesc() string

GetTradeDesc returns the TradeDesc field value

func (*AioCheckOutGeneralOption) GetTradeDescOk

func (o *AioCheckOutGeneralOption) GetTradeDescOk() (*string, bool)

GetTradeDescOk returns a tuple with the TradeDesc field value and a boolean to check if the value has been set.

func (*AioCheckOutGeneralOption) HasChooseSubPayment

func (o *AioCheckOutGeneralOption) HasChooseSubPayment() bool

HasChooseSubPayment returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasClientBackURL

func (o *AioCheckOutGeneralOption) HasClientBackURL() bool

HasClientBackURL returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasCustomField1

func (o *AioCheckOutGeneralOption) HasCustomField1() bool

HasCustomField1 returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasCustomField2

func (o *AioCheckOutGeneralOption) HasCustomField2() bool

HasCustomField2 returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasCustomField3

func (o *AioCheckOutGeneralOption) HasCustomField3() bool

HasCustomField3 returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasCustomField4

func (o *AioCheckOutGeneralOption) HasCustomField4() bool

HasCustomField4 returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasDeviceSource

func (o *AioCheckOutGeneralOption) HasDeviceSource() bool

HasDeviceSource returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasIgnorePayment

func (o *AioCheckOutGeneralOption) HasIgnorePayment() bool

HasIgnorePayment returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasInvoiceMark

func (o *AioCheckOutGeneralOption) HasInvoiceMark() bool

HasInvoiceMark returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasItemURL

func (o *AioCheckOutGeneralOption) HasItemURL() bool

HasItemURL returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasLanguage

func (o *AioCheckOutGeneralOption) HasLanguage() bool

HasLanguage returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasNeedExtraPaidInfo

func (o *AioCheckOutGeneralOption) HasNeedExtraPaidInfo() bool

HasNeedExtraPaidInfo returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasOrderResultURL

func (o *AioCheckOutGeneralOption) HasOrderResultURL() bool

HasOrderResultURL returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasPlatformID

func (o *AioCheckOutGeneralOption) HasPlatformID() bool

HasPlatformID returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasRemark

func (o *AioCheckOutGeneralOption) HasRemark() bool

HasRemark returns a boolean if a field has been set.

func (*AioCheckOutGeneralOption) HasStoreID

func (o *AioCheckOutGeneralOption) HasStoreID() bool

HasStoreID returns a boolean if a field has been set.

func (AioCheckOutGeneralOption) MarshalJSON

func (o AioCheckOutGeneralOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutGeneralOption) SetCheckMacValue

func (o *AioCheckOutGeneralOption) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*AioCheckOutGeneralOption) SetChoosePayment

func (o *AioCheckOutGeneralOption) SetChoosePayment(v ChoosePaymentEnum)

SetChoosePayment sets field value

func (*AioCheckOutGeneralOption) SetChooseSubPayment

func (o *AioCheckOutGeneralOption) SetChooseSubPayment(v ChooseSubPaymentEnum)

SetChooseSubPayment gets a reference to the given ChooseSubPaymentEnum and assigns it to the ChooseSubPayment field.

func (*AioCheckOutGeneralOption) SetClientBackURL

func (o *AioCheckOutGeneralOption) SetClientBackURL(v string)

SetClientBackURL gets a reference to the given string and assigns it to the ClientBackURL field.

func (*AioCheckOutGeneralOption) SetCustomField1

func (o *AioCheckOutGeneralOption) SetCustomField1(v string)

SetCustomField1 gets a reference to the given string and assigns it to the CustomField1 field.

func (*AioCheckOutGeneralOption) SetCustomField2

func (o *AioCheckOutGeneralOption) SetCustomField2(v string)

SetCustomField2 gets a reference to the given string and assigns it to the CustomField2 field.

func (*AioCheckOutGeneralOption) SetCustomField3

func (o *AioCheckOutGeneralOption) SetCustomField3(v string)

SetCustomField3 gets a reference to the given string and assigns it to the CustomField3 field.

func (*AioCheckOutGeneralOption) SetCustomField4

func (o *AioCheckOutGeneralOption) SetCustomField4(v string)

SetCustomField4 gets a reference to the given string and assigns it to the CustomField4 field.

func (*AioCheckOutGeneralOption) SetDeviceSource

func (o *AioCheckOutGeneralOption) SetDeviceSource(v string)

SetDeviceSource gets a reference to the given string and assigns it to the DeviceSource field.

func (*AioCheckOutGeneralOption) SetEncryptType

func (o *AioCheckOutGeneralOption) SetEncryptType(v EncryptTypeEnum)

SetEncryptType sets field value

func (*AioCheckOutGeneralOption) SetIgnorePayment

func (o *AioCheckOutGeneralOption) SetIgnorePayment(v string)

SetIgnorePayment gets a reference to the given string and assigns it to the IgnorePayment field.

func (*AioCheckOutGeneralOption) SetInvoiceMark

func (o *AioCheckOutGeneralOption) SetInvoiceMark(v InvoiceMarkEnum)

SetInvoiceMark gets a reference to the given InvoiceMarkEnum and assigns it to the InvoiceMark field.

func (*AioCheckOutGeneralOption) SetItemName

func (o *AioCheckOutGeneralOption) SetItemName(v string)

SetItemName sets field value

func (*AioCheckOutGeneralOption) SetItemURL

func (o *AioCheckOutGeneralOption) SetItemURL(v string)

SetItemURL gets a reference to the given string and assigns it to the ItemURL field.

func (*AioCheckOutGeneralOption) SetLanguage

func (o *AioCheckOutGeneralOption) SetLanguage(v LanguageEnum)

SetLanguage gets a reference to the given LanguageEnum and assigns it to the Language field.

func (*AioCheckOutGeneralOption) SetMerchantID

func (o *AioCheckOutGeneralOption) SetMerchantID(v string)

SetMerchantID sets field value

func (*AioCheckOutGeneralOption) SetMerchantTradeDate

func (o *AioCheckOutGeneralOption) SetMerchantTradeDate(v ECPayDateTime)

SetMerchantTradeDate sets field value

func (*AioCheckOutGeneralOption) SetMerchantTradeNo

func (o *AioCheckOutGeneralOption) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*AioCheckOutGeneralOption) SetNeedExtraPaidInfo

func (o *AioCheckOutGeneralOption) SetNeedExtraPaidInfo(v NeedExtraPaidInfoEnum)

SetNeedExtraPaidInfo gets a reference to the given NeedExtraPaidInfoEnum and assigns it to the NeedExtraPaidInfo field.

func (*AioCheckOutGeneralOption) SetOrderResultURL

func (o *AioCheckOutGeneralOption) SetOrderResultURL(v string)

SetOrderResultURL gets a reference to the given string and assigns it to the OrderResultURL field.

func (*AioCheckOutGeneralOption) SetPaymentType

SetPaymentType sets field value

func (*AioCheckOutGeneralOption) SetPlatformID

func (o *AioCheckOutGeneralOption) SetPlatformID(v string)

SetPlatformID gets a reference to the given string and assigns it to the PlatformID field.

func (*AioCheckOutGeneralOption) SetRemark

func (o *AioCheckOutGeneralOption) SetRemark(v string)

SetRemark gets a reference to the given string and assigns it to the Remark field.

func (*AioCheckOutGeneralOption) SetReturnURL

func (o *AioCheckOutGeneralOption) SetReturnURL(v string)

SetReturnURL sets field value

func (*AioCheckOutGeneralOption) SetStoreID

func (o *AioCheckOutGeneralOption) SetStoreID(v string)

SetStoreID gets a reference to the given string and assigns it to the StoreID field.

func (*AioCheckOutGeneralOption) SetTotalAmount

func (o *AioCheckOutGeneralOption) SetTotalAmount(v int)

SetTotalAmount sets field value

func (*AioCheckOutGeneralOption) SetTradeDesc

func (o *AioCheckOutGeneralOption) SetTradeDesc(v string)

SetTradeDesc sets field value

type AioCheckOutInvoiceOption

type AioCheckOutInvoiceOption struct {
	// **特店自訂編號** 此為特店自訂編號,編號均為唯一值不可重複使用。
	RelateNumber string `json:"RelateNumber" form:"RelateNumber"`
	// **客戶編號** 該參數有值時,僅接受『英文、數字、下底線』等字元。
	CustomerID *string `json:"CustomerID,omitempty" form:"CustomerID"`
	// **統一編號** 該參數有值時,請帶固定長度為數字 8 碼。
	CustomerIdentifier *string `json:"CustomerIdentifier,omitempty" form:"CustomerIdentifier"`
	// **客戶名稱**    當列印註記`Print`為 `1`(列印)時,則該參數必須有值。   該參數有值時,僅接受『中、英文及數字』等字元。   請將參數值做 UrlEncode 方式編碼。
	CustomerName *string `json:"CustomerName,omitempty" form:"CustomerName"`
	// **客戶地址**    當列印註記`Print`為 `1`(列印)時,則該參數必須有值。   當該參數有值時,請注意特殊字元轉換 。    請將參數值做 UrlEncode 方式編碼。
	CustomerAddr *string `json:"CustomerAddr,omitempty" form:"CustomerAddr"`
	// **客戶手機號碼**   當客戶電子信箱`CustomerEmail`為空字串時,則該參數必須有值。   當該參數有值時,則格式為數字。   注意事項:   請填手機號碼,不能填市話因為要收簡訊通知用
	CustomerPhone *string `json:"CustomerPhone,omitempty" form:"CustomerPhone"`
	// **客戶電子信箱**   當客戶手機號碼`CustomerPhone`為空字串時,則該參數必須有值。   當該參數有值時,則格式需符合 EMAIL格式。   請將參數值做 UrlEncode 方式編碼。
	CustomerEmail *string            `json:"CustomerEmail,omitempty" form:"CustomerEmail"`
	ClearanceMark *ClearanceMarkEnum `json:"ClearanceMark,omitempty" form:"ClearanceMark"`
	TaxType       TaxTypeEnum        `json:"TaxType" form:"TaxType"`
	CarruerType   *CarruerTypeEnum   `json:"CarruerType,omitempty" form:"CarruerType"`
	// **載具編號**   1. 當載具類別 `CarruerType`=“無載具),請帶空字串。   2. 當載具類別`CarruerType`=`1`(綠界科技電子發票載具)時,請帶空字串,系統會自動帶入值,為合作特店載具統一編號+自訂編號(RelateNumber)。   3. 當載具類別`CarruerType`=`2`(買受人之自然人憑證)時,則請帶固定長度為16且格式 為2碼大寫英文字母加上14碼數字。   4. 當載具類別`CarruerType`=`3`(買受人之手機條碼)時,則請帶固定長度為 8且格式為 1 碼斜線「/」加上由 7 碼數字及大寫英文字母及+-.符號組成。    注意事項:   1. 若手機條碼中有加號,可能在介接驗證時 發生錯誤,請將加號改為空白字元,產生 驗證碼。   2. 英文、數字、符號僅接受半形字   3. 若載具編號為手機條碼載具時,請先呼叫B2C電子發票介接技術文件手機條碼載驗證API進行檢核
	CarruerNum *string             `json:"CarruerNum,omitempty" form:"CarruerNum"`
	Donation   InvoiceDonationEunm `json:"Donation" form:"Donation"`
	// **捐贈碼**   消費者選擇捐贈發票則於此欄位須填入受贈單位之捐贈碼。   1. 若捐贈註記 `Donation`= `1` (捐贈)時,此欄位須有值。   2. 捐贈碼以阿拉伯數字為限,最少三碼,最多七碼。內容定位採「文字格式」,首位可以為零。
	LoveCode *string          `json:"LoveCode,omitempty" form:"LoveCode"`
	Print    InvoicePrintEnum `json:"Print" form:"Print"`
	// **商品名稱**   預設不可為空字串且格式為 名稱 1 | 名稱 2 | 名稱 3 | … | 名稱 n,當含有二筆或以上的商品名稱時,則以「|」符號區隔。   將參數值以 UrlEncode 方式編碼。
	InvoiceItemName string `json:"InvoiceItemName" form:"InvoiceItemName"`
	// **商品數量**   預設不可為空字串且格式為 數量 1 | 數量 2 | 數量 3 | … | 數量 n,當含有二筆或以上的商品名稱時,則以「|」符號區隔。
	InvoiceItemCount string `json:"InvoiceItemCount" form:"InvoiceItemCount"`
	// **商品單位**   商品單位若超過二筆以上請以「|」符號區隔單位最大長度為 6 碼。   請將參數做 UrlEncode 方式編碼。
	InvoiceItemWord string `json:"InvoiceItemWord" form:"InvoiceItemWord"`
	// **商品價格**   預設不可為空字串且格式為 價格 1 | 價格 2 | 價格 3 | … | 價格 n,當含有二筆或以上的商品價格時,則以「|」符號區隔。
	InvoiceItemPrice string `json:"InvoiceItemPrice" form:"InvoiceItemPrice"`
	// **商品課稅別**   1:應稅   2:零稅率   3:免稅   注意事項:   1. 預設為空字串,當課稅類別 [TaxType] = 9 時,此欄位不可為空。   2. 格式為課稅 類別 1 | 課稅類別 2 | 課稅類別 3 | … | 課稅類別 n。當含有二筆或以上的商品課稅類別時,則以「|」符號區隔。   3. 課稅類別為混合稅率時,需含二筆或 以 上 的 商 品 課 稅   別[InvoiceItemTaxType],且至少需有一筆商品課稅別為應稅及至少需有一筆商品課稅別為免稅或零稅率,即混稅發票只能 1.應稅+免稅 2.應稅+零稅率,免稅和零稅率發票不能同時開立。
	InvoiceItemTaxType *string `json:"InvoiceItemTaxType,omitempty" form:"InvoiceItemTaxType"`
	// **備註** 當該參數有值時,請將參數值做UrlEncode 方式編碼。
	InvoiceRemark *string `json:"InvoiceRemark,omitempty" form:"InvoiceRemark"`
	// **延遲天數**   本參數值請帶 0~15(天),當天數為 0 時,則付款完成後立即開立發票。
	DelayDay int `json:"DelayDay" form:"DelayDay"`
	// **字軌類別**   若為一般稅額時,請帶 07。   預設值:07
	InvType string `json:"InvType" form:"InvType"`
}

AioCheckOutInvoiceOption struct for AioCheckOutInvoiceOption

func NewAioCheckOutInvoiceOption

func NewAioCheckOutInvoiceOption(relateNumber string, taxType TaxTypeEnum, donation InvoiceDonationEunm, print InvoicePrintEnum, invoiceItemName string, invoiceItemCount string, invoiceItemWord string, invoiceItemPrice string, delayDay int, invType string) *AioCheckOutInvoiceOption

NewAioCheckOutInvoiceOption instantiates a new AioCheckOutInvoiceOption object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewAioCheckOutInvoiceOptionWithDefaults

func NewAioCheckOutInvoiceOptionWithDefaults() *AioCheckOutInvoiceOption

NewAioCheckOutInvoiceOptionWithDefaults instantiates a new AioCheckOutInvoiceOption object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*AioCheckOutInvoiceOption) GetCarruerNum

func (o *AioCheckOutInvoiceOption) GetCarruerNum() string

GetCarruerNum returns the CarruerNum field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCarruerNumOk

func (o *AioCheckOutInvoiceOption) GetCarruerNumOk() (*string, bool)

GetCarruerNumOk returns a tuple with the CarruerNum field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCarruerType

func (o *AioCheckOutInvoiceOption) GetCarruerType() CarruerTypeEnum

GetCarruerType returns the CarruerType field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCarruerTypeOk

func (o *AioCheckOutInvoiceOption) GetCarruerTypeOk() (*CarruerTypeEnum, bool)

GetCarruerTypeOk returns a tuple with the CarruerType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetClearanceMark

func (o *AioCheckOutInvoiceOption) GetClearanceMark() ClearanceMarkEnum

GetClearanceMark returns the ClearanceMark field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetClearanceMarkOk

func (o *AioCheckOutInvoiceOption) GetClearanceMarkOk() (*ClearanceMarkEnum, bool)

GetClearanceMarkOk returns a tuple with the ClearanceMark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerAddr

func (o *AioCheckOutInvoiceOption) GetCustomerAddr() string

GetCustomerAddr returns the CustomerAddr field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerAddrOk

func (o *AioCheckOutInvoiceOption) GetCustomerAddrOk() (*string, bool)

GetCustomerAddrOk returns a tuple with the CustomerAddr field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerEmail

func (o *AioCheckOutInvoiceOption) GetCustomerEmail() string

GetCustomerEmail returns the CustomerEmail field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerEmailOk

func (o *AioCheckOutInvoiceOption) GetCustomerEmailOk() (*string, bool)

GetCustomerEmailOk returns a tuple with the CustomerEmail field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerID

func (o *AioCheckOutInvoiceOption) GetCustomerID() string

GetCustomerID returns the CustomerID field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerIDOk

func (o *AioCheckOutInvoiceOption) GetCustomerIDOk() (*string, bool)

GetCustomerIDOk returns a tuple with the CustomerID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerIdentifier

func (o *AioCheckOutInvoiceOption) GetCustomerIdentifier() string

GetCustomerIdentifier returns the CustomerIdentifier field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerIdentifierOk

func (o *AioCheckOutInvoiceOption) GetCustomerIdentifierOk() (*string, bool)

GetCustomerIdentifierOk returns a tuple with the CustomerIdentifier field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerName

func (o *AioCheckOutInvoiceOption) GetCustomerName() string

GetCustomerName returns the CustomerName field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerNameOk

func (o *AioCheckOutInvoiceOption) GetCustomerNameOk() (*string, bool)

GetCustomerNameOk returns a tuple with the CustomerName field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetCustomerPhone

func (o *AioCheckOutInvoiceOption) GetCustomerPhone() string

GetCustomerPhone returns the CustomerPhone field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetCustomerPhoneOk

func (o *AioCheckOutInvoiceOption) GetCustomerPhoneOk() (*string, bool)

GetCustomerPhoneOk returns a tuple with the CustomerPhone field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetDelayDay

func (o *AioCheckOutInvoiceOption) GetDelayDay() int

GetDelayDay returns the DelayDay field value

func (*AioCheckOutInvoiceOption) GetDelayDayOk

func (o *AioCheckOutInvoiceOption) GetDelayDayOk() (*int, bool)

GetDelayDayOk returns a tuple with the DelayDay field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetDonation

GetDonation returns the Donation field value

func (*AioCheckOutInvoiceOption) GetDonationOk

func (o *AioCheckOutInvoiceOption) GetDonationOk() (*InvoiceDonationEunm, bool)

GetDonationOk returns a tuple with the Donation field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvType

func (o *AioCheckOutInvoiceOption) GetInvType() string

GetInvType returns the InvType field value

func (*AioCheckOutInvoiceOption) GetInvTypeOk

func (o *AioCheckOutInvoiceOption) GetInvTypeOk() (*string, bool)

GetInvTypeOk returns a tuple with the InvType field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceItemCount

func (o *AioCheckOutInvoiceOption) GetInvoiceItemCount() string

GetInvoiceItemCount returns the InvoiceItemCount field value

func (*AioCheckOutInvoiceOption) GetInvoiceItemCountOk

func (o *AioCheckOutInvoiceOption) GetInvoiceItemCountOk() (*string, bool)

GetInvoiceItemCountOk returns a tuple with the InvoiceItemCount field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceItemName

func (o *AioCheckOutInvoiceOption) GetInvoiceItemName() string

GetInvoiceItemName returns the InvoiceItemName field value

func (*AioCheckOutInvoiceOption) GetInvoiceItemNameOk

func (o *AioCheckOutInvoiceOption) GetInvoiceItemNameOk() (*string, bool)

GetInvoiceItemNameOk returns a tuple with the InvoiceItemName field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceItemPrice

func (o *AioCheckOutInvoiceOption) GetInvoiceItemPrice() string

GetInvoiceItemPrice returns the InvoiceItemPrice field value

func (*AioCheckOutInvoiceOption) GetInvoiceItemPriceOk

func (o *AioCheckOutInvoiceOption) GetInvoiceItemPriceOk() (*string, bool)

GetInvoiceItemPriceOk returns a tuple with the InvoiceItemPrice field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceItemTaxType

func (o *AioCheckOutInvoiceOption) GetInvoiceItemTaxType() string

GetInvoiceItemTaxType returns the InvoiceItemTaxType field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetInvoiceItemTaxTypeOk

func (o *AioCheckOutInvoiceOption) GetInvoiceItemTaxTypeOk() (*string, bool)

GetInvoiceItemTaxTypeOk returns a tuple with the InvoiceItemTaxType field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceItemWord

func (o *AioCheckOutInvoiceOption) GetInvoiceItemWord() string

GetInvoiceItemWord returns the InvoiceItemWord field value

func (*AioCheckOutInvoiceOption) GetInvoiceItemWordOk

func (o *AioCheckOutInvoiceOption) GetInvoiceItemWordOk() (*string, bool)

GetInvoiceItemWordOk returns a tuple with the InvoiceItemWord field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetInvoiceRemark

func (o *AioCheckOutInvoiceOption) GetInvoiceRemark() string

GetInvoiceRemark returns the InvoiceRemark field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetInvoiceRemarkOk

func (o *AioCheckOutInvoiceOption) GetInvoiceRemarkOk() (*string, bool)

GetInvoiceRemarkOk returns a tuple with the InvoiceRemark field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetLoveCode

func (o *AioCheckOutInvoiceOption) GetLoveCode() string

GetLoveCode returns the LoveCode field value if set, zero value otherwise.

func (*AioCheckOutInvoiceOption) GetLoveCodeOk

func (o *AioCheckOutInvoiceOption) GetLoveCodeOk() (*string, bool)

GetLoveCodeOk returns a tuple with the LoveCode field value if set, nil otherwise and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetPrint

GetPrint returns the Print field value

func (*AioCheckOutInvoiceOption) GetPrintOk

func (o *AioCheckOutInvoiceOption) GetPrintOk() (*InvoicePrintEnum, bool)

GetPrintOk returns a tuple with the Print field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetRelateNumber

func (o *AioCheckOutInvoiceOption) GetRelateNumber() string

GetRelateNumber returns the RelateNumber field value

func (*AioCheckOutInvoiceOption) GetRelateNumberOk

func (o *AioCheckOutInvoiceOption) GetRelateNumberOk() (*string, bool)

GetRelateNumberOk returns a tuple with the RelateNumber field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) GetTaxType

func (o *AioCheckOutInvoiceOption) GetTaxType() TaxTypeEnum

GetTaxType returns the TaxType field value

func (*AioCheckOutInvoiceOption) GetTaxTypeOk

func (o *AioCheckOutInvoiceOption) GetTaxTypeOk() (*TaxTypeEnum, bool)

GetTaxTypeOk returns a tuple with the TaxType field value and a boolean to check if the value has been set.

func (*AioCheckOutInvoiceOption) HasCarruerNum

func (o *AioCheckOutInvoiceOption) HasCarruerNum() bool

HasCarruerNum returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCarruerType

func (o *AioCheckOutInvoiceOption) HasCarruerType() bool

HasCarruerType returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasClearanceMark

func (o *AioCheckOutInvoiceOption) HasClearanceMark() bool

HasClearanceMark returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerAddr

func (o *AioCheckOutInvoiceOption) HasCustomerAddr() bool

HasCustomerAddr returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerEmail

func (o *AioCheckOutInvoiceOption) HasCustomerEmail() bool

HasCustomerEmail returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerID

func (o *AioCheckOutInvoiceOption) HasCustomerID() bool

HasCustomerID returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerIdentifier

func (o *AioCheckOutInvoiceOption) HasCustomerIdentifier() bool

HasCustomerIdentifier returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerName

func (o *AioCheckOutInvoiceOption) HasCustomerName() bool

HasCustomerName returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasCustomerPhone

func (o *AioCheckOutInvoiceOption) HasCustomerPhone() bool

HasCustomerPhone returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasInvoiceItemTaxType

func (o *AioCheckOutInvoiceOption) HasInvoiceItemTaxType() bool

HasInvoiceItemTaxType returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasInvoiceRemark

func (o *AioCheckOutInvoiceOption) HasInvoiceRemark() bool

HasInvoiceRemark returns a boolean if a field has been set.

func (*AioCheckOutInvoiceOption) HasLoveCode

func (o *AioCheckOutInvoiceOption) HasLoveCode() bool

HasLoveCode returns a boolean if a field has been set.

func (AioCheckOutInvoiceOption) MarshalJSON

func (o AioCheckOutInvoiceOption) MarshalJSON() ([]byte, error)

func (*AioCheckOutInvoiceOption) SetCarruerNum

func (o *AioCheckOutInvoiceOption) SetCarruerNum(v string)

SetCarruerNum gets a reference to the given string and assigns it to the CarruerNum field.

func (*AioCheckOutInvoiceOption) SetCarruerType

func (o *AioCheckOutInvoiceOption) SetCarruerType(v CarruerTypeEnum)

SetCarruerType gets a reference to the given CarruerTypeEnum and assigns it to the CarruerType field.

func (*AioCheckOutInvoiceOption) SetClearanceMark

func (o *AioCheckOutInvoiceOption) SetClearanceMark(v ClearanceMarkEnum)

SetClearanceMark gets a reference to the given ClearanceMarkEnum and assigns it to the ClearanceMark field.

func (*AioCheckOutInvoiceOption) SetCustomerAddr

func (o *AioCheckOutInvoiceOption) SetCustomerAddr(v string)

SetCustomerAddr gets a reference to the given string and assigns it to the CustomerAddr field.

func (*AioCheckOutInvoiceOption) SetCustomerEmail

func (o *AioCheckOutInvoiceOption) SetCustomerEmail(v string)

SetCustomerEmail gets a reference to the given string and assigns it to the CustomerEmail field.

func (*AioCheckOutInvoiceOption) SetCustomerID

func (o *AioCheckOutInvoiceOption) SetCustomerID(v string)

SetCustomerID gets a reference to the given string and assigns it to the CustomerID field.

func (*AioCheckOutInvoiceOption) SetCustomerIdentifier

func (o *AioCheckOutInvoiceOption) SetCustomerIdentifier(v string)

SetCustomerIdentifier gets a reference to the given string and assigns it to the CustomerIdentifier field.

func (*AioCheckOutInvoiceOption) SetCustomerName

func (o *AioCheckOutInvoiceOption) SetCustomerName(v string)

SetCustomerName gets a reference to the given string and assigns it to the CustomerName field.

func (*AioCheckOutInvoiceOption) SetCustomerPhone

func (o *AioCheckOutInvoiceOption) SetCustomerPhone(v string)

SetCustomerPhone gets a reference to the given string and assigns it to the CustomerPhone field.

func (*AioCheckOutInvoiceOption) SetDelayDay

func (o *AioCheckOutInvoiceOption) SetDelayDay(v int)

SetDelayDay sets field value

func (*AioCheckOutInvoiceOption) SetDonation

SetDonation sets field value

func (*AioCheckOutInvoiceOption) SetInvType

func (o *AioCheckOutInvoiceOption) SetInvType(v string)

SetInvType sets field value

func (*AioCheckOutInvoiceOption) SetInvoiceItemCount

func (o *AioCheckOutInvoiceOption) SetInvoiceItemCount(v string)

SetInvoiceItemCount sets field value

func (*AioCheckOutInvoiceOption) SetInvoiceItemName

func (o *AioCheckOutInvoiceOption) SetInvoiceItemName(v string)

SetInvoiceItemName sets field value

func (*AioCheckOutInvoiceOption) SetInvoiceItemPrice

func (o *AioCheckOutInvoiceOption) SetInvoiceItemPrice(v string)

SetInvoiceItemPrice sets field value

func (*AioCheckOutInvoiceOption) SetInvoiceItemTaxType

func (o *AioCheckOutInvoiceOption) SetInvoiceItemTaxType(v string)

SetInvoiceItemTaxType gets a reference to the given string and assigns it to the InvoiceItemTaxType field.

func (*AioCheckOutInvoiceOption) SetInvoiceItemWord

func (o *AioCheckOutInvoiceOption) SetInvoiceItemWord(v string)

SetInvoiceItemWord sets field value

func (*AioCheckOutInvoiceOption) SetInvoiceRemark

func (o *AioCheckOutInvoiceOption) SetInvoiceRemark(v string)

SetInvoiceRemark gets a reference to the given string and assigns it to the InvoiceRemark field.

func (*AioCheckOutInvoiceOption) SetLoveCode

func (o *AioCheckOutInvoiceOption) SetLoveCode(v string)

SetLoveCode gets a reference to the given string and assigns it to the LoveCode field.

func (*AioCheckOutInvoiceOption) SetPrint

SetPrint sets field value

func (*AioCheckOutInvoiceOption) SetRelateNumber

func (o *AioCheckOutInvoiceOption) SetRelateNumber(v string)

SetRelateNumber sets field value

func (*AioCheckOutInvoiceOption) SetTaxType

func (o *AioCheckOutInvoiceOption) SetTaxType(v TaxTypeEnum)

SetTaxType sets field value

type AioCheckPaymentTypeEnum

type AioCheckPaymentTypeEnum string

AioCheckPaymentTypeEnum **交易類型** 請固定填入 `aio`

const (
	AIOCHECKPAYMENTTYPEENUM_AIO AioCheckPaymentTypeEnum = "aio"
)

List of AioCheckPaymentTypeEnum

func (AioCheckPaymentTypeEnum) Ptr

Ptr returns reference to AioCheckPaymentTypeEnum value

type BasicAuth

type BasicAuth struct {
	UserName string `json:"userName,omitempty"`
	Password string `json:"password,omitempty"`
}

BasicAuth provides basic http authentication to a request passed via context using ContextBasicAuth

type BindingCardEnum

type BindingCardEnum int

BindingCardEnum **記憶卡號** 使用記憶信用卡 使用:請傳 `1` 不使用:請傳 `0`

const (
	BINDINGCARDENUM_BINDING     BindingCardEnum = 1
	BINDINGCARDENUM_NOT_BINDING BindingCardEnum = 0
)

List of BindingCardEnum

func (BindingCardEnum) Ptr

Ptr returns reference to BindingCardEnum value

type CallBackApiService

type CallBackApiService service

CallBackApiService CallBackApi service

func (*CallBackApiService) CallbackPeriodReturnURLPost

func (a *CallBackApiService) CallbackPeriodReturnURLPost(ctx _context.Context) apiCallbackPeriodReturnURLPostRequest

CallbackPeriodReturnURLPost Method for CallbackPeriodReturnURLPost 付款結果通知

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return apiCallbackPeriodReturnURLPostRequest

func (*CallBackApiService) CallbackReturnURLPost

func (a *CallBackApiService) CallbackReturnURLPost(ctx _context.Context) apiCallbackReturnURLPostRequest

CallbackReturnURLPost Method for CallbackReturnURLPost 付款結果通知

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return apiCallbackReturnURLPostRequest

type CarruerTypeEnum

type CarruerTypeEnum string

CarruerTypeEnum **載具類別** 若為無載具時,則請帶空字串。 若為特店載具時,則請帶 `1`。 若為買受人之自然人憑證號碼時,則請帶 `2`。 若為買受人之手機條碼資料時,則請帶`3`。 若統一編號 `CustomerIdentifier` 有值時,則載具類別不可為特店載具或自然人憑證載具。 注意事項:當`Print`有值時,載具類別不得有值。

const (
	CARRUERTYPEENUM_NO_CARRIER                         CarruerTypeEnum = ""
	CARRUERTYPEENUM_SHOP_CARRIER                       CarruerTypeEnum = "1"
	CARRUERTYPEENUM_NATURAL_PERSON_CERTIFICATE_CARRIER CarruerTypeEnum = "2"
	CARRUERTYPEENUM_PHONE_BARCODE_CARRIER              CarruerTypeEnum = "3"
)

List of CarruerTypeEnum

func (CarruerTypeEnum) Ptr

Ptr returns reference to CarruerTypeEnum value

type ChoosePaymentEnum

type ChoosePaymentEnum string

ChoosePaymentEnum **選擇預設付款方式** 綠界提供下列付款方式,請於建立訂單時傳送過來: - `Credit`: 信用卡及銀聯卡(需申請開通) - `WebATM`: 網路 ATM - `ATM`: 自動櫃員機 - `CVS`: 超商代碼 - `BARCODE`: 超商條碼 - `ALL`: 不指定付款方式,由綠界顯示付款方式選擇頁面。 注意事項: 1.若為手機版時不支援下列付款方式: - WebATM:網路 ATM 2.如需要不透過綠界畫面取得 `ATM`、`CVS`、`BARCODE` 的繳費代碼,請參考 FAQ。

const (
	CHOOSEPAYMENTENUM_CREDIT  ChoosePaymentEnum = "Credit"
	CHOOSEPAYMENTENUM_WEB_ATM ChoosePaymentEnum = "WebATM"
	CHOOSEPAYMENTENUM_ATM     ChoosePaymentEnum = "ATM"
	CHOOSEPAYMENTENUM_CVS     ChoosePaymentEnum = "CVS"
	CHOOSEPAYMENTENUM_BARCODE ChoosePaymentEnum = "BARCODE"
	CHOOSEPAYMENTENUM_ALL     ChoosePaymentEnum = "ALL"
)

List of ChoosePaymentEnum

func (ChoosePaymentEnum) Ptr

Ptr returns reference to ChoosePaymentEnum value

type ChooseSubPaymentEnum

type ChooseSubPaymentEnum string

ChooseSubPaymentEnum **付款子項目** 若設定此參數,建立訂單將轉導至綠界訂單成立頁,依設定的付款方式及付款子項目帶入訂單,無法選擇其他付款子項目。 請參考付款方式一覽表

const (
	CHOOSESUBPAYMENTENUM_TAISHIN    ChooseSubPaymentEnum = "TAISHIN"
	CHOOSESUBPAYMENTENUM_ESUN       ChooseSubPaymentEnum = "ESUN"
	CHOOSESUBPAYMENTENUM_BOT        ChooseSubPaymentEnum = "BOT"
	CHOOSESUBPAYMENTENUM_FUBON      ChooseSubPaymentEnum = "FUBON"
	CHOOSESUBPAYMENTENUM_CHINATRUST ChooseSubPaymentEnum = "CHINATRUST"
	CHOOSESUBPAYMENTENUM_FIRST      ChooseSubPaymentEnum = "FIRST"
	CHOOSESUBPAYMENTENUM_CATHAY     ChooseSubPaymentEnum = "CATHAY"
	CHOOSESUBPAYMENTENUM_MEGA       ChooseSubPaymentEnum = "MEGA"
	CHOOSESUBPAYMENTENUM_LAND       ChooseSubPaymentEnum = "LAND"
	CHOOSESUBPAYMENTENUM_TACHONG    ChooseSubPaymentEnum = "TACHONG"
	CHOOSESUBPAYMENTENUM_SINOPAC    ChooseSubPaymentEnum = "SINOPAC"
	CHOOSESUBPAYMENTENUM_CVS        ChooseSubPaymentEnum = "CVS"
	CHOOSESUBPAYMENTENUM_OK         ChooseSubPaymentEnum = "OK"
	CHOOSESUBPAYMENTENUM_FAMILY     ChooseSubPaymentEnum = "FAMILY"
	CHOOSESUBPAYMENTENUM_HILIFE     ChooseSubPaymentEnum = "HILIFE"
	CHOOSESUBPAYMENTENUM_IBON       ChooseSubPaymentEnum = "IBON"
	CHOOSESUBPAYMENTENUM_BARCODE    ChooseSubPaymentEnum = "BARCODE"
	CHOOSESUBPAYMENTENUM_EMPTY      ChooseSubPaymentEnum = ""
)

List of ChooseSubPaymentEnum

func (ChooseSubPaymentEnum) Ptr

Ptr returns reference to ChooseSubPaymentEnum value

type ClearanceMarkEnum

type ClearanceMarkEnum string

ClearanceMarkEnum **通關方式** 當課稅類別`TaxType`為 `2`(零稅率)時,則該參數請帶 `1`(非經海關出口)或 `2`(經海關出口)。

const (
	CLEARANCEMARKENUM_NOT_CUSTOMS ClearanceMarkEnum = "1"
	CLEARANCEMARKENUM_CUSTOMS     ClearanceMarkEnum = "2"
)

List of ClearanceMarkEnum

func (ClearanceMarkEnum) Ptr

Ptr returns reference to ClearanceMarkEnum value

type Configuration

type Configuration struct {
	Host             string            `json:"host,omitempty"`
	Scheme           string            `json:"scheme,omitempty"`
	DefaultHeader    map[string]string `json:"defaultHeader,omitempty"`
	UserAgent        string            `json:"userAgent,omitempty"`
	Debug            bool              `json:"debug,omitempty"`
	Servers          ServerConfigurations
	OperationServers map[string]ServerConfigurations
	HTTPClient       *http.Client
	Decoders         map[string]Decoder
}

Configuration stores the configuration of the API client

func NewConfiguration

func NewConfiguration() *Configuration

NewConfiguration returns a new Configuration object

func (*Configuration) AddDefaultHeader

func (c *Configuration) AddDefaultHeader(key string, value string)

AddDefaultHeader adds a new HTTP header to the default header in the request

func (*Configuration) ServerURL

func (c *Configuration) ServerURL(index int, variables map[string]string) (string, error)

ServerURL returns URL based on server settings

func (*Configuration) ServerURLWithContext

func (c *Configuration) ServerURLWithContext(ctx context.Context, endpoint string) (string, error)

ServerURLWithContext returns a new server URL given an endpoint

type CreditCardPeriodInfo

type CreditCardPeriodInfo struct {
	// **特店編號(由綠界提供)**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號(由特店提供)** 訂單產生時傳送給綠界的特店交易編號。
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **綠界的交易編號** 首次授權所產生的綠界交易編號
	TradeNo string `json:"TradeNo" form:"TradeNo"`
	// **交易狀態**    回傳值為 1 時代表授權成功,其餘為失敗,失敗代碼請參考交易訊息代碼一覽表
	RtnCode    int                  `json:"RtnCode" form:"RtnCode"`
	PeriodType CreditPeriodTypeEnum `json:"PeriodType" form:"PeriodType"`
	// **執行頻率**  訂單建立時所設定的執行頻率
	Frequency int `json:"Frequency" form:"Frequency"`
	// **執行次數**  訂單建立時所設定的執行頻率
	ExecTimes int `json:"ExecTimes" form:"ExecTimes"`
	// **每次授權金額**  訂單建立時的每次要授權金額
	PeriodAmount int `json:"PeriodAmount" form:"PeriodAmount"`
	// **授權金額** 所授權的金額
	Amount int `json:"amount" form:"amount"`
	// **授權交易單號** 所授權的交易單號
	Gwsr int `json:"gwsr" form:"gwsr"`
	// **授權成功處理時間** 格式為 yyyy/MM/dd HH:mm:ss
	ProcessDate ECPayDateTime `json:"process_date" form:"process_date"`
	// **授權碼** 授權碼
	AuthCode string `json:"auth_code" form:"auth_code"`
	// **卡片的末 4 碼** 卡片的末四碼
	Card4no string `json:"card4no" form:"card4no"`
	// **卡片的前 6 碼** 卡片的前六碼
	Card6no string `json:"card6no" form:"card6no"`
	// **已成功授權次數合計** 目前已成功授權的次數
	TotalSuccessTimes int `json:"TotalSuccessTimes" form:"TotalSuccessTimes"`
	// **已成功授權總金額** 目前已成功授權的金額合計
	TotalSuccessAmount int             `json:"TotalSuccessAmount" form:"TotalSuccessAmount"`
	ExecStatus         ExecStatusEnum  `json:"ExecStatus" form:"ExecStatus"`
	ExecLog            []ExecLogRecord `json:"ExecLog" form:"ExecLog"`
}

CreditCardPeriodInfo struct for CreditCardPeriodInfo

func NewCreditCardPeriodInfo

func NewCreditCardPeriodInfo(merchantID string, merchantTradeNo string, tradeNo string, rtnCode int, periodType CreditPeriodTypeEnum, frequency int, execTimes int, periodAmount int, amount int, gwsr int, processDate ECPayDateTime, authCode string, card4no string, card6no string, totalSuccessTimes int, totalSuccessAmount int, execStatus ExecStatusEnum, execLog []ExecLogRecord) *CreditCardPeriodInfo

NewCreditCardPeriodInfo instantiates a new CreditCardPeriodInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewCreditCardPeriodInfoWithDefaults

func NewCreditCardPeriodInfoWithDefaults() *CreditCardPeriodInfo

NewCreditCardPeriodInfoWithDefaults instantiates a new CreditCardPeriodInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*CreditCardPeriodInfo) GetAmount

func (o *CreditCardPeriodInfo) GetAmount() int

GetAmount returns the Amount field value

func (*CreditCardPeriodInfo) GetAmountOk

func (o *CreditCardPeriodInfo) GetAmountOk() (*int, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetAuthCode

func (o *CreditCardPeriodInfo) GetAuthCode() string

GetAuthCode returns the AuthCode field value

func (*CreditCardPeriodInfo) GetAuthCodeOk

func (o *CreditCardPeriodInfo) GetAuthCodeOk() (*string, bool)

GetAuthCodeOk returns a tuple with the AuthCode field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetCard4no

func (o *CreditCardPeriodInfo) GetCard4no() string

GetCard4no returns the Card4no field value

func (*CreditCardPeriodInfo) GetCard4noOk

func (o *CreditCardPeriodInfo) GetCard4noOk() (*string, bool)

GetCard4noOk returns a tuple with the Card4no field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetCard6no

func (o *CreditCardPeriodInfo) GetCard6no() string

GetCard6no returns the Card6no field value

func (*CreditCardPeriodInfo) GetCard6noOk

func (o *CreditCardPeriodInfo) GetCard6noOk() (*string, bool)

GetCard6noOk returns a tuple with the Card6no field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetExecLog

func (o *CreditCardPeriodInfo) GetExecLog() []ExecLogRecord

GetExecLog returns the ExecLog field value

func (*CreditCardPeriodInfo) GetExecLogOk

func (o *CreditCardPeriodInfo) GetExecLogOk() (*[]ExecLogRecord, bool)

GetExecLogOk returns a tuple with the ExecLog field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetExecStatus

func (o *CreditCardPeriodInfo) GetExecStatus() ExecStatusEnum

GetExecStatus returns the ExecStatus field value

func (*CreditCardPeriodInfo) GetExecStatusOk

func (o *CreditCardPeriodInfo) GetExecStatusOk() (*ExecStatusEnum, bool)

GetExecStatusOk returns a tuple with the ExecStatus field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetExecTimes

func (o *CreditCardPeriodInfo) GetExecTimes() int

GetExecTimes returns the ExecTimes field value

func (*CreditCardPeriodInfo) GetExecTimesOk

func (o *CreditCardPeriodInfo) GetExecTimesOk() (*int, bool)

GetExecTimesOk returns a tuple with the ExecTimes field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetFrequency

func (o *CreditCardPeriodInfo) GetFrequency() int

GetFrequency returns the Frequency field value

func (*CreditCardPeriodInfo) GetFrequencyOk

func (o *CreditCardPeriodInfo) GetFrequencyOk() (*int, bool)

GetFrequencyOk returns a tuple with the Frequency field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetGwsr

func (o *CreditCardPeriodInfo) GetGwsr() int

GetGwsr returns the Gwsr field value

func (*CreditCardPeriodInfo) GetGwsrOk

func (o *CreditCardPeriodInfo) GetGwsrOk() (*int, bool)

GetGwsrOk returns a tuple with the Gwsr field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetMerchantID

func (o *CreditCardPeriodInfo) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*CreditCardPeriodInfo) GetMerchantIDOk

func (o *CreditCardPeriodInfo) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetMerchantTradeNo

func (o *CreditCardPeriodInfo) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*CreditCardPeriodInfo) GetMerchantTradeNoOk

func (o *CreditCardPeriodInfo) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetPeriodAmount

func (o *CreditCardPeriodInfo) GetPeriodAmount() int

GetPeriodAmount returns the PeriodAmount field value

func (*CreditCardPeriodInfo) GetPeriodAmountOk

func (o *CreditCardPeriodInfo) GetPeriodAmountOk() (*int, bool)

GetPeriodAmountOk returns a tuple with the PeriodAmount field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetPeriodType

func (o *CreditCardPeriodInfo) GetPeriodType() CreditPeriodTypeEnum

GetPeriodType returns the PeriodType field value

func (*CreditCardPeriodInfo) GetPeriodTypeOk

func (o *CreditCardPeriodInfo) GetPeriodTypeOk() (*CreditPeriodTypeEnum, bool)

GetPeriodTypeOk returns a tuple with the PeriodType field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetProcessDate

func (o *CreditCardPeriodInfo) GetProcessDate() ECPayDateTime

GetProcessDate returns the ProcessDate field value

func (*CreditCardPeriodInfo) GetProcessDateOk

func (o *CreditCardPeriodInfo) GetProcessDateOk() (*ECPayDateTime, bool)

GetProcessDateOk returns a tuple with the ProcessDate field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetRtnCode

func (o *CreditCardPeriodInfo) GetRtnCode() int

GetRtnCode returns the RtnCode field value

func (*CreditCardPeriodInfo) GetRtnCodeOk

func (o *CreditCardPeriodInfo) GetRtnCodeOk() (*int, bool)

GetRtnCodeOk returns a tuple with the RtnCode field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetTotalSuccessAmount

func (o *CreditCardPeriodInfo) GetTotalSuccessAmount() int

GetTotalSuccessAmount returns the TotalSuccessAmount field value

func (*CreditCardPeriodInfo) GetTotalSuccessAmountOk

func (o *CreditCardPeriodInfo) GetTotalSuccessAmountOk() (*int, bool)

GetTotalSuccessAmountOk returns a tuple with the TotalSuccessAmount field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetTotalSuccessTimes

func (o *CreditCardPeriodInfo) GetTotalSuccessTimes() int

GetTotalSuccessTimes returns the TotalSuccessTimes field value

func (*CreditCardPeriodInfo) GetTotalSuccessTimesOk

func (o *CreditCardPeriodInfo) GetTotalSuccessTimesOk() (*int, bool)

GetTotalSuccessTimesOk returns a tuple with the TotalSuccessTimes field value and a boolean to check if the value has been set.

func (*CreditCardPeriodInfo) GetTradeNo

func (o *CreditCardPeriodInfo) GetTradeNo() string

GetTradeNo returns the TradeNo field value

func (*CreditCardPeriodInfo) GetTradeNoOk

func (o *CreditCardPeriodInfo) GetTradeNoOk() (*string, bool)

GetTradeNoOk returns a tuple with the TradeNo field value and a boolean to check if the value has been set.

func (CreditCardPeriodInfo) MarshalJSON

func (o CreditCardPeriodInfo) MarshalJSON() ([]byte, error)

func (*CreditCardPeriodInfo) SetAmount

func (o *CreditCardPeriodInfo) SetAmount(v int)

SetAmount sets field value

func (*CreditCardPeriodInfo) SetAuthCode

func (o *CreditCardPeriodInfo) SetAuthCode(v string)

SetAuthCode sets field value

func (*CreditCardPeriodInfo) SetCard4no

func (o *CreditCardPeriodInfo) SetCard4no(v string)

SetCard4no sets field value

func (*CreditCardPeriodInfo) SetCard6no

func (o *CreditCardPeriodInfo) SetCard6no(v string)

SetCard6no sets field value

func (*CreditCardPeriodInfo) SetExecLog

func (o *CreditCardPeriodInfo) SetExecLog(v []ExecLogRecord)

SetExecLog sets field value

func (*CreditCardPeriodInfo) SetExecStatus

func (o *CreditCardPeriodInfo) SetExecStatus(v ExecStatusEnum)

SetExecStatus sets field value

func (*CreditCardPeriodInfo) SetExecTimes

func (o *CreditCardPeriodInfo) SetExecTimes(v int)

SetExecTimes sets field value

func (*CreditCardPeriodInfo) SetFrequency

func (o *CreditCardPeriodInfo) SetFrequency(v int)

SetFrequency sets field value

func (*CreditCardPeriodInfo) SetGwsr

func (o *CreditCardPeriodInfo) SetGwsr(v int)

SetGwsr sets field value

func (*CreditCardPeriodInfo) SetMerchantID

func (o *CreditCardPeriodInfo) SetMerchantID(v string)

SetMerchantID sets field value

func (*CreditCardPeriodInfo) SetMerchantTradeNo

func (o *CreditCardPeriodInfo) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*CreditCardPeriodInfo) SetPeriodAmount

func (o *CreditCardPeriodInfo) SetPeriodAmount(v int)

SetPeriodAmount sets field value

func (*CreditCardPeriodInfo) SetPeriodType

func (o *CreditCardPeriodInfo) SetPeriodType(v CreditPeriodTypeEnum)

SetPeriodType sets field value

func (*CreditCardPeriodInfo) SetProcessDate

func (o *CreditCardPeriodInfo) SetProcessDate(v ECPayDateTime)

SetProcessDate sets field value

func (*CreditCardPeriodInfo) SetRtnCode

func (o *CreditCardPeriodInfo) SetRtnCode(v int)

SetRtnCode sets field value

func (*CreditCardPeriodInfo) SetTotalSuccessAmount

func (o *CreditCardPeriodInfo) SetTotalSuccessAmount(v int)

SetTotalSuccessAmount sets field value

func (*CreditCardPeriodInfo) SetTotalSuccessTimes

func (o *CreditCardPeriodInfo) SetTotalSuccessTimes(v int)

SetTotalSuccessTimes sets field value

func (*CreditCardPeriodInfo) SetTradeNo

func (o *CreditCardPeriodInfo) SetTradeNo(v string)

SetTradeNo sets field value

type CreditPeriodTypeEnum

type CreditPeriodTypeEnum string

CreditPeriodTypeEnum **週期種類** 可設定以下參數: `D`:以天為週期 `M`:以月為週期 `Y`:以年為週期

const (
	CREDITPERIODTYPEENUM_DAY   CreditPeriodTypeEnum = "D"
	CREDITPERIODTYPEENUM_MONTH CreditPeriodTypeEnum = "M"
	CREDITPERIODTYPEENUM_YEAR  CreditPeriodTypeEnum = "Y"
)

List of CreditPeriodTypeEnum

func (CreditPeriodTypeEnum) Ptr

Ptr returns reference to CreditPeriodTypeEnum value

type Decoder

type Decoder func(data []byte, v interface{}) error

Decoder is going to support these non implemented content-type

type ECPayApiService

type ECPayApiService service

ECPayApiService ECPayApi service

func (*ECPayApiService) QueryCreditCardPeriodInfo

func (a *ECPayApiService) QueryCreditCardPeriodInfo(ctx _context.Context) apiQueryCreditCardPeriodInfoRequest

QueryCreditCardPeriodInfo Method for QueryCreditCardPeriodInfo 13.信用卡定期定額訂單查詢

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return apiQueryCreditCardPeriodInfoRequest

func (*ECPayApiService) QueryTradeInfo

func (a *ECPayApiService) QueryTradeInfo(ctx _context.Context) apiQueryTradeInfoRequest

QueryTradeInfo Method for QueryTradeInfo 8. 查詢訂單

  • @param ctx _context.Context - for authentication, logging, cancellation, deadlines, tracing, etc. Passed from http.Request or context.Background().

@return apiQueryTradeInfoRequest

type ECPayDateTime

type ECPayDateTime time.Time

func MustParseECPayDateTime

func MustParseECPayDateTime(s string) ECPayDateTime

func ParseECPayDateTime

func ParseECPayDateTime(s string) (ECPayDateTime, error)

func (ECPayDateTime) MarshalJSON

func (t ECPayDateTime) MarshalJSON() ([]byte, error)

func (ECPayDateTime) String

func (t ECPayDateTime) String() string

func (*ECPayDateTime) UnmarshalJSON

func (t *ECPayDateTime) UnmarshalJSON(data []byte) error

func (*ECPayDateTime) UnmarshalParam

func (t *ECPayDateTime) UnmarshalParam(param string) error

type EncryptTypeEnum

type EncryptTypeEnum int

EncryptTypeEnum **CheckMacValue加密類型** 請固定填入 `1`,使用 SHA256 加密。

const (
	ENCRYPTTYPEENUM_SHA256 EncryptTypeEnum = 1
)

List of EncryptTypeEnum

func (EncryptTypeEnum) Ptr

Ptr returns reference to EncryptTypeEnum value

type ExecLogRecord

type ExecLogRecord struct {
	// **交易狀態**   回傳值為 1 時代表授權成功,其餘為失敗,失敗代碼請參考交易訊息代碼一覽
	RtnCode int `json:"RtnCode" form:"RtnCode"`
	// **本次授權金額**  所授權的金額
	Amount int `json:"amount" form:"amount"`
	// **授權交易單號**  所授權的交易單號
	Gwsr int `json:"gwsr" form:"gwsr"`
	// **處理時間** 格式為 yyyy/MM/dd HH:mm:ss
	ProcessDate ECPayDateTime `json:"process_date" form:"process_date"`
	// **授權碼** 授權碼
	AuthCode string `json:"auth_code" form:"auth_code"`
	// **綠界的交易編號** 請保存綠界的交易編號與特店交易編號 `MerchantTradeNo` 的關連。
	TradeNo string `json:"TradeNo" form:"TradeNo"`
}

ExecLogRecord **每次授權明細** 每一次的授權紀錄。 例如,若已成功授權 3 次(TotalSuccessTimes 為 3),則會顯示 3 筆授權紀錄。 欄位內容詳見下列定期定額授權明細之參數說明。

func NewExecLogRecord

func NewExecLogRecord(rtnCode int, amount int, gwsr int, processDate ECPayDateTime, authCode string, tradeNo string) *ExecLogRecord

NewExecLogRecord instantiates a new ExecLogRecord object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewExecLogRecordWithDefaults

func NewExecLogRecordWithDefaults() *ExecLogRecord

NewExecLogRecordWithDefaults instantiates a new ExecLogRecord object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*ExecLogRecord) GetAmount

func (o *ExecLogRecord) GetAmount() int

GetAmount returns the Amount field value

func (*ExecLogRecord) GetAmountOk

func (o *ExecLogRecord) GetAmountOk() (*int, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*ExecLogRecord) GetAuthCode

func (o *ExecLogRecord) GetAuthCode() string

GetAuthCode returns the AuthCode field value

func (*ExecLogRecord) GetAuthCodeOk

func (o *ExecLogRecord) GetAuthCodeOk() (*string, bool)

GetAuthCodeOk returns a tuple with the AuthCode field value and a boolean to check if the value has been set.

func (*ExecLogRecord) GetGwsr

func (o *ExecLogRecord) GetGwsr() int

GetGwsr returns the Gwsr field value

func (*ExecLogRecord) GetGwsrOk

func (o *ExecLogRecord) GetGwsrOk() (*int, bool)

GetGwsrOk returns a tuple with the Gwsr field value and a boolean to check if the value has been set.

func (*ExecLogRecord) GetProcessDate

func (o *ExecLogRecord) GetProcessDate() ECPayDateTime

GetProcessDate returns the ProcessDate field value

func (*ExecLogRecord) GetProcessDateOk

func (o *ExecLogRecord) GetProcessDateOk() (*ECPayDateTime, bool)

GetProcessDateOk returns a tuple with the ProcessDate field value and a boolean to check if the value has been set.

func (*ExecLogRecord) GetRtnCode

func (o *ExecLogRecord) GetRtnCode() int

GetRtnCode returns the RtnCode field value

func (*ExecLogRecord) GetRtnCodeOk

func (o *ExecLogRecord) GetRtnCodeOk() (*int, bool)

GetRtnCodeOk returns a tuple with the RtnCode field value and a boolean to check if the value has been set.

func (*ExecLogRecord) GetTradeNo

func (o *ExecLogRecord) GetTradeNo() string

GetTradeNo returns the TradeNo field value

func (*ExecLogRecord) GetTradeNoOk

func (o *ExecLogRecord) GetTradeNoOk() (*string, bool)

GetTradeNoOk returns a tuple with the TradeNo field value and a boolean to check if the value has been set.

func (ExecLogRecord) MarshalJSON

func (o ExecLogRecord) MarshalJSON() ([]byte, error)

func (*ExecLogRecord) SetAmount

func (o *ExecLogRecord) SetAmount(v int)

SetAmount sets field value

func (*ExecLogRecord) SetAuthCode

func (o *ExecLogRecord) SetAuthCode(v string)

SetAuthCode sets field value

func (*ExecLogRecord) SetGwsr

func (o *ExecLogRecord) SetGwsr(v int)

SetGwsr sets field value

func (*ExecLogRecord) SetProcessDate

func (o *ExecLogRecord) SetProcessDate(v ECPayDateTime)

SetProcessDate sets field value

func (*ExecLogRecord) SetRtnCode

func (o *ExecLogRecord) SetRtnCode(v int)

SetRtnCode sets field value

func (*ExecLogRecord) SetTradeNo

func (o *ExecLogRecord) SetTradeNo(v string)

SetTradeNo sets field value

type ExecStatusEnum

type ExecStatusEnum string

ExecStatusEnum **執行狀態** 回傳值如下: 1.若為 `0` 時代表已取消 2.若為 `1` 時代表執行中 3.若為 `2` 時代表執行完成

const (
	EXECSTATUSENUM_CANCELED   ExecStatusEnum = "0"
	EXECSTATUSENUM_INPROGRESS ExecStatusEnum = "1"
	EXECSTATUSENUM_COMPLETED  ExecStatusEnum = "2"
)

List of ExecStatusEnum

func (ExecStatusEnum) Ptr

func (v ExecStatusEnum) Ptr() *ExecStatusEnum

Ptr returns reference to ExecStatusEnum value

type GenericOpenAPIError

type GenericOpenAPIError struct {
	// contains filtered or unexported fields
}

GenericOpenAPIError Provides access to the body, error and model on returned errors.

func (GenericOpenAPIError) Body

func (e GenericOpenAPIError) Body() []byte

Body returns the raw bytes of the response

func (GenericOpenAPIError) Error

func (e GenericOpenAPIError) Error() string

Error returns non-empty string if there was an error.

func (GenericOpenAPIError) Model

func (e GenericOpenAPIError) Model() interface{}

Model returns the unpacked model of the error

type InvoiceDonationEunm

type InvoiceDonationEunm string

InvoiceDonationEunm **捐贈註記** 若為捐贈時,參數請帶:`1`。 若為不捐贈或統一編號 `CustomerIdentifier` 有值時,參數請帶:`0`。

const (
	INVOICEDONATIONEUNM_DONATION     InvoiceDonationEunm = "1"
	INVOICEDONATIONEUNM_NOT_DONATION InvoiceDonationEunm = "0"
)

List of InvoiceDonationEunm

func (InvoiceDonationEunm) Ptr

Ptr returns reference to InvoiceDonationEunm value

type InvoiceMarkEnum

type InvoiceMarkEnum string

InvoiceMarkEnum **電子發票開立註記** 此參數為付款完成後同時開立電子發票。 若要使用時,該參數須設定為「Y」,同時還要設定「電子發票介接相關參數」 注意事項: 正式環境欲使用電子發票功能,須與綠界申請開通,若未開通請致電客服中心 `(02) 2655-1775`。

const (
	INVOICEMARKENUM_Y InvoiceMarkEnum = "Y"
	INVOICEMARKENUM_N InvoiceMarkEnum = "N"
)

List of InvoiceMarkEnum

func (InvoiceMarkEnum) Ptr

Ptr returns reference to InvoiceMarkEnum value

type InvoicePrintEnum

type InvoicePrintEnum string

InvoicePrintEnum **列印註記** 若為不列印或捐贈註記`Donation`為1(捐贈)時,請帶:`0`。 若為列印或統一編號`CustomerIdentifier`有值時,請帶:`1`

const (
	INVOICEPRINTENUM_NOT_PRINT InvoicePrintEnum = "0"
	INVOICEPRINTENUM_PRINT     InvoicePrintEnum = "1"
)

List of InvoicePrintEnum

func (InvoicePrintEnum) Ptr

Ptr returns reference to InvoicePrintEnum value

type LanguageEnum

type LanguageEnum string

LanguageEnum **語系設定** 預設語系為中文,若要變更語系參數值請帶: - 英語:`ENG` - 韓語:`KOR` - 日語:`JPN` - 簡體中文:`CHI`

const (
	LANGUAGEENUM_ENG LanguageEnum = "ENG"
	LANGUAGEENUM_KOR LanguageEnum = "KOR"
	LANGUAGEENUM_JPN LanguageEnum = "JPN"
	LANGUAGEENUM_CHI LanguageEnum = "CHI"
)

List of LanguageEnum

func (LanguageEnum) Ptr

func (v LanguageEnum) Ptr() *LanguageEnum

Ptr returns reference to LanguageEnum value

type NeedExtraPaidInfoEnum

type NeedExtraPaidInfoEnum string

NeedExtraPaidInfoEnum **是否需要額外的付款資訊** 額外的付款資訊: 若不回傳額外的付款資訊時,參數值請傳:`N`; 若要回傳額外的付款資訊時,參數值請傳:`Y`,付款完成後綠界會以 Server POST 方式回傳額外付款資訊。 注意事項: 回傳額外付款資訊參數請參考-額外回傳的參數

const (
	NEEDEXTRAPAIDINFOENUM_Y NeedExtraPaidInfoEnum = "Y"
	NEEDEXTRAPAIDINFOENUM_N NeedExtraPaidInfoEnum = "N"
)

List of NeedExtraPaidInfoEnum

func (NeedExtraPaidInfoEnum) Ptr

Ptr returns reference to NeedExtraPaidInfoEnum value

type NullableAioCheckOutAtmOption

type NullableAioCheckOutAtmOption struct {
	// contains filtered or unexported fields
}

func NewNullableAioCheckOutAtmOption

func NewNullableAioCheckOutAtmOption(val *AioCheckOutAtmOption) *NullableAioCheckOutAtmOption

func (NullableAioCheckOutAtmOption) Get

func (NullableAioCheckOutAtmOption) IsSet

func (NullableAioCheckOutAtmOption) MarshalJSON

func (v NullableAioCheckOutAtmOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutAtmOption) Set

func (*NullableAioCheckOutAtmOption) UnmarshalJSON

func (v *NullableAioCheckOutAtmOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutAtmOption) Unset

func (v *NullableAioCheckOutAtmOption) Unset()

type NullableAioCheckOutCreditInstallmentOption

type NullableAioCheckOutCreditInstallmentOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutCreditInstallmentOption) Get

func (NullableAioCheckOutCreditInstallmentOption) IsSet

func (NullableAioCheckOutCreditInstallmentOption) MarshalJSON

func (*NullableAioCheckOutCreditInstallmentOption) Set

func (*NullableAioCheckOutCreditInstallmentOption) UnmarshalJSON

func (v *NullableAioCheckOutCreditInstallmentOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutCreditInstallmentOption) Unset

type NullableAioCheckOutCreditOnetimeOption

type NullableAioCheckOutCreditOnetimeOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutCreditOnetimeOption) Get

func (NullableAioCheckOutCreditOnetimeOption) IsSet

func (NullableAioCheckOutCreditOnetimeOption) MarshalJSON

func (v NullableAioCheckOutCreditOnetimeOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutCreditOnetimeOption) Set

func (*NullableAioCheckOutCreditOnetimeOption) UnmarshalJSON

func (v *NullableAioCheckOutCreditOnetimeOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutCreditOnetimeOption) Unset

type NullableAioCheckOutCreditOption

type NullableAioCheckOutCreditOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutCreditOption) Get

func (NullableAioCheckOutCreditOption) IsSet

func (NullableAioCheckOutCreditOption) MarshalJSON

func (v NullableAioCheckOutCreditOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutCreditOption) Set

func (*NullableAioCheckOutCreditOption) UnmarshalJSON

func (v *NullableAioCheckOutCreditOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutCreditOption) Unset

type NullableAioCheckOutCreditPeriodOption

type NullableAioCheckOutCreditPeriodOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutCreditPeriodOption) Get

func (NullableAioCheckOutCreditPeriodOption) IsSet

func (NullableAioCheckOutCreditPeriodOption) MarshalJSON

func (v NullableAioCheckOutCreditPeriodOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutCreditPeriodOption) Set

func (*NullableAioCheckOutCreditPeriodOption) UnmarshalJSON

func (v *NullableAioCheckOutCreditPeriodOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutCreditPeriodOption) Unset

type NullableAioCheckOutCvsBarcodeOption

type NullableAioCheckOutCvsBarcodeOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutCvsBarcodeOption) Get

func (NullableAioCheckOutCvsBarcodeOption) IsSet

func (NullableAioCheckOutCvsBarcodeOption) MarshalJSON

func (v NullableAioCheckOutCvsBarcodeOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutCvsBarcodeOption) Set

func (*NullableAioCheckOutCvsBarcodeOption) UnmarshalJSON

func (v *NullableAioCheckOutCvsBarcodeOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutCvsBarcodeOption) Unset

type NullableAioCheckOutGeneralOption

type NullableAioCheckOutGeneralOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutGeneralOption) Get

func (NullableAioCheckOutGeneralOption) IsSet

func (NullableAioCheckOutGeneralOption) MarshalJSON

func (v NullableAioCheckOutGeneralOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutGeneralOption) Set

func (*NullableAioCheckOutGeneralOption) UnmarshalJSON

func (v *NullableAioCheckOutGeneralOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutGeneralOption) Unset

type NullableAioCheckOutInvoiceOption

type NullableAioCheckOutInvoiceOption struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckOutInvoiceOption) Get

func (NullableAioCheckOutInvoiceOption) IsSet

func (NullableAioCheckOutInvoiceOption) MarshalJSON

func (v NullableAioCheckOutInvoiceOption) MarshalJSON() ([]byte, error)

func (*NullableAioCheckOutInvoiceOption) Set

func (*NullableAioCheckOutInvoiceOption) UnmarshalJSON

func (v *NullableAioCheckOutInvoiceOption) UnmarshalJSON(src []byte) error

func (*NullableAioCheckOutInvoiceOption) Unset

type NullableAioCheckPaymentTypeEnum

type NullableAioCheckPaymentTypeEnum struct {
	// contains filtered or unexported fields
}

func (NullableAioCheckPaymentTypeEnum) Get

func (NullableAioCheckPaymentTypeEnum) IsSet

func (NullableAioCheckPaymentTypeEnum) MarshalJSON

func (v NullableAioCheckPaymentTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableAioCheckPaymentTypeEnum) Set

func (*NullableAioCheckPaymentTypeEnum) UnmarshalJSON

func (v *NullableAioCheckPaymentTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableAioCheckPaymentTypeEnum) Unset

type NullableBindingCardEnum

type NullableBindingCardEnum struct {
	// contains filtered or unexported fields
}

func NewNullableBindingCardEnum

func NewNullableBindingCardEnum(val *BindingCardEnum) *NullableBindingCardEnum

func (NullableBindingCardEnum) Get

func (NullableBindingCardEnum) IsSet

func (v NullableBindingCardEnum) IsSet() bool

func (NullableBindingCardEnum) MarshalJSON

func (v NullableBindingCardEnum) MarshalJSON() ([]byte, error)

func (*NullableBindingCardEnum) Set

func (*NullableBindingCardEnum) UnmarshalJSON

func (v *NullableBindingCardEnum) UnmarshalJSON(src []byte) error

func (*NullableBindingCardEnum) Unset

func (v *NullableBindingCardEnum) Unset()

type NullableBool

type NullableBool struct {
	// contains filtered or unexported fields
}

func NewNullableBool

func NewNullableBool(val *bool) *NullableBool

func (NullableBool) Get

func (v NullableBool) Get() *bool

func (NullableBool) IsSet

func (v NullableBool) IsSet() bool

func (NullableBool) MarshalJSON

func (v NullableBool) MarshalJSON() ([]byte, error)

func (*NullableBool) Set

func (v *NullableBool) Set(val *bool)

func (*NullableBool) UnmarshalJSON

func (v *NullableBool) UnmarshalJSON(src []byte) error

func (*NullableBool) Unset

func (v *NullableBool) Unset()

type NullableCarruerTypeEnum

type NullableCarruerTypeEnum struct {
	// contains filtered or unexported fields
}

func NewNullableCarruerTypeEnum

func NewNullableCarruerTypeEnum(val *CarruerTypeEnum) *NullableCarruerTypeEnum

func (NullableCarruerTypeEnum) Get

func (NullableCarruerTypeEnum) IsSet

func (v NullableCarruerTypeEnum) IsSet() bool

func (NullableCarruerTypeEnum) MarshalJSON

func (v NullableCarruerTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableCarruerTypeEnum) Set

func (*NullableCarruerTypeEnum) UnmarshalJSON

func (v *NullableCarruerTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableCarruerTypeEnum) Unset

func (v *NullableCarruerTypeEnum) Unset()

type NullableChoosePaymentEnum

type NullableChoosePaymentEnum struct {
	// contains filtered or unexported fields
}

func NewNullableChoosePaymentEnum

func NewNullableChoosePaymentEnum(val *ChoosePaymentEnum) *NullableChoosePaymentEnum

func (NullableChoosePaymentEnum) Get

func (NullableChoosePaymentEnum) IsSet

func (v NullableChoosePaymentEnum) IsSet() bool

func (NullableChoosePaymentEnum) MarshalJSON

func (v NullableChoosePaymentEnum) MarshalJSON() ([]byte, error)

func (*NullableChoosePaymentEnum) Set

func (*NullableChoosePaymentEnum) UnmarshalJSON

func (v *NullableChoosePaymentEnum) UnmarshalJSON(src []byte) error

func (*NullableChoosePaymentEnum) Unset

func (v *NullableChoosePaymentEnum) Unset()

type NullableChooseSubPaymentEnum

type NullableChooseSubPaymentEnum struct {
	// contains filtered or unexported fields
}

func NewNullableChooseSubPaymentEnum

func NewNullableChooseSubPaymentEnum(val *ChooseSubPaymentEnum) *NullableChooseSubPaymentEnum

func (NullableChooseSubPaymentEnum) Get

func (NullableChooseSubPaymentEnum) IsSet

func (NullableChooseSubPaymentEnum) MarshalJSON

func (v NullableChooseSubPaymentEnum) MarshalJSON() ([]byte, error)

func (*NullableChooseSubPaymentEnum) Set

func (*NullableChooseSubPaymentEnum) UnmarshalJSON

func (v *NullableChooseSubPaymentEnum) UnmarshalJSON(src []byte) error

func (*NullableChooseSubPaymentEnum) Unset

func (v *NullableChooseSubPaymentEnum) Unset()

type NullableClearanceMarkEnum

type NullableClearanceMarkEnum struct {
	// contains filtered or unexported fields
}

func NewNullableClearanceMarkEnum

func NewNullableClearanceMarkEnum(val *ClearanceMarkEnum) *NullableClearanceMarkEnum

func (NullableClearanceMarkEnum) Get

func (NullableClearanceMarkEnum) IsSet

func (v NullableClearanceMarkEnum) IsSet() bool

func (NullableClearanceMarkEnum) MarshalJSON

func (v NullableClearanceMarkEnum) MarshalJSON() ([]byte, error)

func (*NullableClearanceMarkEnum) Set

func (*NullableClearanceMarkEnum) UnmarshalJSON

func (v *NullableClearanceMarkEnum) UnmarshalJSON(src []byte) error

func (*NullableClearanceMarkEnum) Unset

func (v *NullableClearanceMarkEnum) Unset()

type NullableCreditCardPeriodInfo

type NullableCreditCardPeriodInfo struct {
	// contains filtered or unexported fields
}

func NewNullableCreditCardPeriodInfo

func NewNullableCreditCardPeriodInfo(val *CreditCardPeriodInfo) *NullableCreditCardPeriodInfo

func (NullableCreditCardPeriodInfo) Get

func (NullableCreditCardPeriodInfo) IsSet

func (NullableCreditCardPeriodInfo) MarshalJSON

func (v NullableCreditCardPeriodInfo) MarshalJSON() ([]byte, error)

func (*NullableCreditCardPeriodInfo) Set

func (*NullableCreditCardPeriodInfo) UnmarshalJSON

func (v *NullableCreditCardPeriodInfo) UnmarshalJSON(src []byte) error

func (*NullableCreditCardPeriodInfo) Unset

func (v *NullableCreditCardPeriodInfo) Unset()

type NullableCreditPeriodTypeEnum

type NullableCreditPeriodTypeEnum struct {
	// contains filtered or unexported fields
}

func NewNullableCreditPeriodTypeEnum

func NewNullableCreditPeriodTypeEnum(val *CreditPeriodTypeEnum) *NullableCreditPeriodTypeEnum

func (NullableCreditPeriodTypeEnum) Get

func (NullableCreditPeriodTypeEnum) IsSet

func (NullableCreditPeriodTypeEnum) MarshalJSON

func (v NullableCreditPeriodTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableCreditPeriodTypeEnum) Set

func (*NullableCreditPeriodTypeEnum) UnmarshalJSON

func (v *NullableCreditPeriodTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableCreditPeriodTypeEnum) Unset

func (v *NullableCreditPeriodTypeEnum) Unset()

type NullableEncryptTypeEnum

type NullableEncryptTypeEnum struct {
	// contains filtered or unexported fields
}

func NewNullableEncryptTypeEnum

func NewNullableEncryptTypeEnum(val *EncryptTypeEnum) *NullableEncryptTypeEnum

func (NullableEncryptTypeEnum) Get

func (NullableEncryptTypeEnum) IsSet

func (v NullableEncryptTypeEnum) IsSet() bool

func (NullableEncryptTypeEnum) MarshalJSON

func (v NullableEncryptTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableEncryptTypeEnum) Set

func (*NullableEncryptTypeEnum) UnmarshalJSON

func (v *NullableEncryptTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableEncryptTypeEnum) Unset

func (v *NullableEncryptTypeEnum) Unset()

type NullableExecLogRecord

type NullableExecLogRecord struct {
	// contains filtered or unexported fields
}

func NewNullableExecLogRecord

func NewNullableExecLogRecord(val *ExecLogRecord) *NullableExecLogRecord

func (NullableExecLogRecord) Get

func (NullableExecLogRecord) IsSet

func (v NullableExecLogRecord) IsSet() bool

func (NullableExecLogRecord) MarshalJSON

func (v NullableExecLogRecord) MarshalJSON() ([]byte, error)

func (*NullableExecLogRecord) Set

func (v *NullableExecLogRecord) Set(val *ExecLogRecord)

func (*NullableExecLogRecord) UnmarshalJSON

func (v *NullableExecLogRecord) UnmarshalJSON(src []byte) error

func (*NullableExecLogRecord) Unset

func (v *NullableExecLogRecord) Unset()

type NullableExecStatusEnum

type NullableExecStatusEnum struct {
	// contains filtered or unexported fields
}

func NewNullableExecStatusEnum

func NewNullableExecStatusEnum(val *ExecStatusEnum) *NullableExecStatusEnum

func (NullableExecStatusEnum) Get

func (NullableExecStatusEnum) IsSet

func (v NullableExecStatusEnum) IsSet() bool

func (NullableExecStatusEnum) MarshalJSON

func (v NullableExecStatusEnum) MarshalJSON() ([]byte, error)

func (*NullableExecStatusEnum) Set

func (*NullableExecStatusEnum) UnmarshalJSON

func (v *NullableExecStatusEnum) UnmarshalJSON(src []byte) error

func (*NullableExecStatusEnum) Unset

func (v *NullableExecStatusEnum) Unset()

type NullableFloat32

type NullableFloat32 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat32

func NewNullableFloat32(val *float32) *NullableFloat32

func (NullableFloat32) Get

func (v NullableFloat32) Get() *float32

func (NullableFloat32) IsSet

func (v NullableFloat32) IsSet() bool

func (NullableFloat32) MarshalJSON

func (v NullableFloat32) MarshalJSON() ([]byte, error)

func (*NullableFloat32) Set

func (v *NullableFloat32) Set(val *float32)

func (*NullableFloat32) UnmarshalJSON

func (v *NullableFloat32) UnmarshalJSON(src []byte) error

func (*NullableFloat32) Unset

func (v *NullableFloat32) Unset()

type NullableFloat64

type NullableFloat64 struct {
	// contains filtered or unexported fields
}

func NewNullableFloat64

func NewNullableFloat64(val *float64) *NullableFloat64

func (NullableFloat64) Get

func (v NullableFloat64) Get() *float64

func (NullableFloat64) IsSet

func (v NullableFloat64) IsSet() bool

func (NullableFloat64) MarshalJSON

func (v NullableFloat64) MarshalJSON() ([]byte, error)

func (*NullableFloat64) Set

func (v *NullableFloat64) Set(val *float64)

func (*NullableFloat64) UnmarshalJSON

func (v *NullableFloat64) UnmarshalJSON(src []byte) error

func (*NullableFloat64) Unset

func (v *NullableFloat64) Unset()

type NullableInt

type NullableInt struct {
	// contains filtered or unexported fields
}

func NewNullableInt

func NewNullableInt(val *int) *NullableInt

func (NullableInt) Get

func (v NullableInt) Get() *int

func (NullableInt) IsSet

func (v NullableInt) IsSet() bool

func (NullableInt) MarshalJSON

func (v NullableInt) MarshalJSON() ([]byte, error)

func (*NullableInt) Set

func (v *NullableInt) Set(val *int)

func (*NullableInt) UnmarshalJSON

func (v *NullableInt) UnmarshalJSON(src []byte) error

func (*NullableInt) Unset

func (v *NullableInt) Unset()

type NullableInt32

type NullableInt32 struct {
	// contains filtered or unexported fields
}

func NewNullableInt32

func NewNullableInt32(val *int32) *NullableInt32

func (NullableInt32) Get

func (v NullableInt32) Get() *int32

func (NullableInt32) IsSet

func (v NullableInt32) IsSet() bool

func (NullableInt32) MarshalJSON

func (v NullableInt32) MarshalJSON() ([]byte, error)

func (*NullableInt32) Set

func (v *NullableInt32) Set(val *int32)

func (*NullableInt32) UnmarshalJSON

func (v *NullableInt32) UnmarshalJSON(src []byte) error

func (*NullableInt32) Unset

func (v *NullableInt32) Unset()

type NullableInt64

type NullableInt64 struct {
	// contains filtered or unexported fields
}

func NewNullableInt64

func NewNullableInt64(val *int64) *NullableInt64

func (NullableInt64) Get

func (v NullableInt64) Get() *int64

func (NullableInt64) IsSet

func (v NullableInt64) IsSet() bool

func (NullableInt64) MarshalJSON

func (v NullableInt64) MarshalJSON() ([]byte, error)

func (*NullableInt64) Set

func (v *NullableInt64) Set(val *int64)

func (*NullableInt64) UnmarshalJSON

func (v *NullableInt64) UnmarshalJSON(src []byte) error

func (*NullableInt64) Unset

func (v *NullableInt64) Unset()

type NullableInvoiceDonationEunm

type NullableInvoiceDonationEunm struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceDonationEunm

func NewNullableInvoiceDonationEunm(val *InvoiceDonationEunm) *NullableInvoiceDonationEunm

func (NullableInvoiceDonationEunm) Get

func (NullableInvoiceDonationEunm) IsSet

func (NullableInvoiceDonationEunm) MarshalJSON

func (v NullableInvoiceDonationEunm) MarshalJSON() ([]byte, error)

func (*NullableInvoiceDonationEunm) Set

func (*NullableInvoiceDonationEunm) UnmarshalJSON

func (v *NullableInvoiceDonationEunm) UnmarshalJSON(src []byte) error

func (*NullableInvoiceDonationEunm) Unset

func (v *NullableInvoiceDonationEunm) Unset()

type NullableInvoiceMarkEnum

type NullableInvoiceMarkEnum struct {
	// contains filtered or unexported fields
}

func NewNullableInvoiceMarkEnum

func NewNullableInvoiceMarkEnum(val *InvoiceMarkEnum) *NullableInvoiceMarkEnum

func (NullableInvoiceMarkEnum) Get

func (NullableInvoiceMarkEnum) IsSet

func (v NullableInvoiceMarkEnum) IsSet() bool

func (NullableInvoiceMarkEnum) MarshalJSON

func (v NullableInvoiceMarkEnum) MarshalJSON() ([]byte, error)

func (*NullableInvoiceMarkEnum) Set

func (*NullableInvoiceMarkEnum) UnmarshalJSON

func (v *NullableInvoiceMarkEnum) UnmarshalJSON(src []byte) error

func (*NullableInvoiceMarkEnum) Unset

func (v *NullableInvoiceMarkEnum) Unset()

type NullableInvoicePrintEnum

type NullableInvoicePrintEnum struct {
	// contains filtered or unexported fields
}

func NewNullableInvoicePrintEnum

func NewNullableInvoicePrintEnum(val *InvoicePrintEnum) *NullableInvoicePrintEnum

func (NullableInvoicePrintEnum) Get

func (NullableInvoicePrintEnum) IsSet

func (v NullableInvoicePrintEnum) IsSet() bool

func (NullableInvoicePrintEnum) MarshalJSON

func (v NullableInvoicePrintEnum) MarshalJSON() ([]byte, error)

func (*NullableInvoicePrintEnum) Set

func (*NullableInvoicePrintEnum) UnmarshalJSON

func (v *NullableInvoicePrintEnum) UnmarshalJSON(src []byte) error

func (*NullableInvoicePrintEnum) Unset

func (v *NullableInvoicePrintEnum) Unset()

type NullableLanguageEnum

type NullableLanguageEnum struct {
	// contains filtered or unexported fields
}

func NewNullableLanguageEnum

func NewNullableLanguageEnum(val *LanguageEnum) *NullableLanguageEnum

func (NullableLanguageEnum) Get

func (NullableLanguageEnum) IsSet

func (v NullableLanguageEnum) IsSet() bool

func (NullableLanguageEnum) MarshalJSON

func (v NullableLanguageEnum) MarshalJSON() ([]byte, error)

func (*NullableLanguageEnum) Set

func (v *NullableLanguageEnum) Set(val *LanguageEnum)

func (*NullableLanguageEnum) UnmarshalJSON

func (v *NullableLanguageEnum) UnmarshalJSON(src []byte) error

func (*NullableLanguageEnum) Unset

func (v *NullableLanguageEnum) Unset()

type NullableNeedExtraPaidInfoEnum

type NullableNeedExtraPaidInfoEnum struct {
	// contains filtered or unexported fields
}

func (NullableNeedExtraPaidInfoEnum) Get

func (NullableNeedExtraPaidInfoEnum) IsSet

func (NullableNeedExtraPaidInfoEnum) MarshalJSON

func (v NullableNeedExtraPaidInfoEnum) MarshalJSON() ([]byte, error)

func (*NullableNeedExtraPaidInfoEnum) Set

func (*NullableNeedExtraPaidInfoEnum) UnmarshalJSON

func (v *NullableNeedExtraPaidInfoEnum) UnmarshalJSON(src []byte) error

func (*NullableNeedExtraPaidInfoEnum) Unset

func (v *NullableNeedExtraPaidInfoEnum) Unset()

type NullableOrderResult

type NullableOrderResult struct {
	// contains filtered or unexported fields
}

func NewNullableOrderResult

func NewNullableOrderResult(val *OrderResult) *NullableOrderResult

func (NullableOrderResult) Get

func (NullableOrderResult) IsSet

func (v NullableOrderResult) IsSet() bool

func (NullableOrderResult) MarshalJSON

func (v NullableOrderResult) MarshalJSON() ([]byte, error)

func (*NullableOrderResult) Set

func (v *NullableOrderResult) Set(val *OrderResult)

func (*NullableOrderResult) UnmarshalJSON

func (v *NullableOrderResult) UnmarshalJSON(src []byte) error

func (*NullableOrderResult) Unset

func (v *NullableOrderResult) Unset()

type NullablePeriodOrderResult

type NullablePeriodOrderResult struct {
	// contains filtered or unexported fields
}

func NewNullablePeriodOrderResult

func NewNullablePeriodOrderResult(val *PeriodOrderResult) *NullablePeriodOrderResult

func (NullablePeriodOrderResult) Get

func (NullablePeriodOrderResult) IsSet

func (v NullablePeriodOrderResult) IsSet() bool

func (NullablePeriodOrderResult) MarshalJSON

func (v NullablePeriodOrderResult) MarshalJSON() ([]byte, error)

func (*NullablePeriodOrderResult) Set

func (*NullablePeriodOrderResult) UnmarshalJSON

func (v *NullablePeriodOrderResult) UnmarshalJSON(src []byte) error

func (*NullablePeriodOrderResult) Unset

func (v *NullablePeriodOrderResult) Unset()

type NullableQueryCreditCardPeriodInfoRequest

type NullableQueryCreditCardPeriodInfoRequest struct {
	// contains filtered or unexported fields
}

func (NullableQueryCreditCardPeriodInfoRequest) Get

func (NullableQueryCreditCardPeriodInfoRequest) IsSet

func (NullableQueryCreditCardPeriodInfoRequest) MarshalJSON

func (*NullableQueryCreditCardPeriodInfoRequest) Set

func (*NullableQueryCreditCardPeriodInfoRequest) UnmarshalJSON

func (v *NullableQueryCreditCardPeriodInfoRequest) UnmarshalJSON(src []byte) error

func (*NullableQueryCreditCardPeriodInfoRequest) Unset

type NullableQueryTradeInfoRequest

type NullableQueryTradeInfoRequest struct {
	// contains filtered or unexported fields
}

func (NullableQueryTradeInfoRequest) Get

func (NullableQueryTradeInfoRequest) IsSet

func (NullableQueryTradeInfoRequest) MarshalJSON

func (v NullableQueryTradeInfoRequest) MarshalJSON() ([]byte, error)

func (*NullableQueryTradeInfoRequest) Set

func (*NullableQueryTradeInfoRequest) UnmarshalJSON

func (v *NullableQueryTradeInfoRequest) UnmarshalJSON(src []byte) error

func (*NullableQueryTradeInfoRequest) Unset

func (v *NullableQueryTradeInfoRequest) Unset()

type NullableRedeemEnum

type NullableRedeemEnum struct {
	// contains filtered or unexported fields
}

func NewNullableRedeemEnum

func NewNullableRedeemEnum(val *RedeemEnum) *NullableRedeemEnum

func (NullableRedeemEnum) Get

func (v NullableRedeemEnum) Get() *RedeemEnum

func (NullableRedeemEnum) IsSet

func (v NullableRedeemEnum) IsSet() bool

func (NullableRedeemEnum) MarshalJSON

func (v NullableRedeemEnum) MarshalJSON() ([]byte, error)

func (*NullableRedeemEnum) Set

func (v *NullableRedeemEnum) Set(val *RedeemEnum)

func (*NullableRedeemEnum) UnmarshalJSON

func (v *NullableRedeemEnum) UnmarshalJSON(src []byte) error

func (*NullableRedeemEnum) Unset

func (v *NullableRedeemEnum) Unset()

type NullableReturnPaymentTypeEnum

type NullableReturnPaymentTypeEnum struct {
	// contains filtered or unexported fields
}

func (NullableReturnPaymentTypeEnum) Get

func (NullableReturnPaymentTypeEnum) IsSet

func (NullableReturnPaymentTypeEnum) MarshalJSON

func (v NullableReturnPaymentTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableReturnPaymentTypeEnum) Set

func (*NullableReturnPaymentTypeEnum) UnmarshalJSON

func (v *NullableReturnPaymentTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableReturnPaymentTypeEnum) Unset

func (v *NullableReturnPaymentTypeEnum) Unset()

type NullableSimulatePaidEnum

type NullableSimulatePaidEnum struct {
	// contains filtered or unexported fields
}

func NewNullableSimulatePaidEnum

func NewNullableSimulatePaidEnum(val *SimulatePaidEnum) *NullableSimulatePaidEnum

func (NullableSimulatePaidEnum) Get

func (NullableSimulatePaidEnum) IsSet

func (v NullableSimulatePaidEnum) IsSet() bool

func (NullableSimulatePaidEnum) MarshalJSON

func (v NullableSimulatePaidEnum) MarshalJSON() ([]byte, error)

func (*NullableSimulatePaidEnum) Set

func (*NullableSimulatePaidEnum) UnmarshalJSON

func (v *NullableSimulatePaidEnum) UnmarshalJSON(src []byte) error

func (*NullableSimulatePaidEnum) Unset

func (v *NullableSimulatePaidEnum) Unset()

type NullableString

type NullableString struct {
	// contains filtered or unexported fields
}

func NewNullableString

func NewNullableString(val *string) *NullableString

func (NullableString) Get

func (v NullableString) Get() *string

func (NullableString) IsSet

func (v NullableString) IsSet() bool

func (NullableString) MarshalJSON

func (v NullableString) MarshalJSON() ([]byte, error)

func (*NullableString) Set

func (v *NullableString) Set(val *string)

func (*NullableString) UnmarshalJSON

func (v *NullableString) UnmarshalJSON(src []byte) error

func (*NullableString) Unset

func (v *NullableString) Unset()

type NullableTaxTypeEnum

type NullableTaxTypeEnum struct {
	// contains filtered or unexported fields
}

func NewNullableTaxTypeEnum

func NewNullableTaxTypeEnum(val *TaxTypeEnum) *NullableTaxTypeEnum

func (NullableTaxTypeEnum) Get

func (NullableTaxTypeEnum) IsSet

func (v NullableTaxTypeEnum) IsSet() bool

func (NullableTaxTypeEnum) MarshalJSON

func (v NullableTaxTypeEnum) MarshalJSON() ([]byte, error)

func (*NullableTaxTypeEnum) Set

func (v *NullableTaxTypeEnum) Set(val *TaxTypeEnum)

func (*NullableTaxTypeEnum) UnmarshalJSON

func (v *NullableTaxTypeEnum) UnmarshalJSON(src []byte) error

func (*NullableTaxTypeEnum) Unset

func (v *NullableTaxTypeEnum) Unset()

type NullableTime

type NullableTime struct {
	// contains filtered or unexported fields
}

func NewNullableTime

func NewNullableTime(val *time.Time) *NullableTime

func (NullableTime) Get

func (v NullableTime) Get() *time.Time

func (NullableTime) IsSet

func (v NullableTime) IsSet() bool

func (NullableTime) MarshalJSON

func (v NullableTime) MarshalJSON() ([]byte, error)

func (*NullableTime) Set

func (v *NullableTime) Set(val *time.Time)

func (*NullableTime) UnmarshalJSON

func (v *NullableTime) UnmarshalJSON(src []byte) error

func (*NullableTime) Unset

func (v *NullableTime) Unset()

type NullableTradeInfo

type NullableTradeInfo struct {
	// contains filtered or unexported fields
}

func NewNullableTradeInfo

func NewNullableTradeInfo(val *TradeInfo) *NullableTradeInfo

func (NullableTradeInfo) Get

func (v NullableTradeInfo) Get() *TradeInfo

func (NullableTradeInfo) IsSet

func (v NullableTradeInfo) IsSet() bool

func (NullableTradeInfo) MarshalJSON

func (v NullableTradeInfo) MarshalJSON() ([]byte, error)

func (*NullableTradeInfo) Set

func (v *NullableTradeInfo) Set(val *TradeInfo)

func (*NullableTradeInfo) UnmarshalJSON

func (v *NullableTradeInfo) UnmarshalJSON(src []byte) error

func (*NullableTradeInfo) Unset

func (v *NullableTradeInfo) Unset()

type NullableUnionPayEnum

type NullableUnionPayEnum struct {
	// contains filtered or unexported fields
}

func NewNullableUnionPayEnum

func NewNullableUnionPayEnum(val *UnionPayEnum) *NullableUnionPayEnum

func (NullableUnionPayEnum) Get

func (NullableUnionPayEnum) IsSet

func (v NullableUnionPayEnum) IsSet() bool

func (NullableUnionPayEnum) MarshalJSON

func (v NullableUnionPayEnum) MarshalJSON() ([]byte, error)

func (*NullableUnionPayEnum) Set

func (v *NullableUnionPayEnum) Set(val *UnionPayEnum)

func (*NullableUnionPayEnum) UnmarshalJSON

func (v *NullableUnionPayEnum) UnmarshalJSON(src []byte) error

func (*NullableUnionPayEnum) Unset

func (v *NullableUnionPayEnum) Unset()

type OrderResult

type OrderResult struct {
	// **特店編號**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號** 訂單產生時傳送給綠界的特店交易編號。英數字大小寫混合
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **特店旗下店舖代號** 提供特店填入分店代號使用,僅可用英數字大小寫混合。
	StoreID string `json:"StoreID" form:"StoreID"`
	// **交易狀態**   若回傳值為 1 時,為付款成功   其餘代碼皆為交易異常,請至廠商管理後台確認後再出貨。
	RtnCode int `json:"RtnCode" form:"RtnCode"`
	// **交易訊息** Server POST 成功回傳:交易成功   Server POST 補送通知回傳:paid   Client POST 成功回傳:Succeeded
	RtnMsg string `json:"RtnMsg" form:"RtnMsg"`
	// **綠界的交易編號** 請保存綠界的交易編號與特店交易編號[MerchantTradeNo]的關連。
	TradeNo string `json:"TradeNo" form:"TradeNo"`
	// **交易金額**
	TradeAmt int `json:"TradeAmt" form:"TradeAmt"`
	// **付款時間** 格式為 yyyy/MM/dd HH:mm:ss
	PaymentDate ECPayDateTime         `json:"PaymentDate" form:"PaymentDate"`
	PaymentType ReturnPaymentTypeEnum `json:"PaymentType" form:"PaymentType"`
	// **通路費**
	PaymentTypeChargeFee int `json:"PaymentTypeChargeFee" form:"PaymentTypeChargeFee"`
	// **訂單成立時間** 格式為 yyyy/MM/dd HH:mm:ss
	TradeDate ECPayDateTime `json:"TradeDate" form:"TradeDate"`
	// **檢查碼** 特店必須檢查檢查碼`CheckMacValue`來驗證,請參考附錄檢查碼機制。
	CheckMacValue string           `json:"CheckMacValue" form:"CheckMacValue"`
	SimulatePaid  SimulatePaidEnum `json:"SimulatePaid" form:"SimulatePaid"`
	// **自訂名稱欄位1**   提供合作廠商使用記錄用客製化使用欄位
	CustomField1 string `json:"CustomField1" form:"CustomField1"`
	// **自訂名稱欄位2**   提供合作廠商使用記錄用客製化使用欄位
	CustomField2 string `json:"CustomField2" form:"CustomField2"`
	// **自訂名稱欄位3**   提供合作廠商使用記錄用客製化使用欄位
	CustomField3 string `json:"CustomField3" form:"CustomField3"`
	// **自訂名稱欄位4**   提供合作廠商使用記錄用客製化使用欄位
	CustomField4 string `json:"CustomField4" form:"CustomField4"`
}

OrderResult struct for OrderResult

func NewOrderResult

func NewOrderResult(merchantID string, merchantTradeNo string, storeID string, rtnCode int, rtnMsg string, tradeNo string, tradeAmt int, paymentDate ECPayDateTime, paymentType ReturnPaymentTypeEnum, paymentTypeChargeFee int, tradeDate ECPayDateTime, checkMacValue string, simulatePaid SimulatePaidEnum, customField1 string, customField2 string, customField3 string, customField4 string) *OrderResult

NewOrderResult instantiates a new OrderResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewOrderResultWithDefaults

func NewOrderResultWithDefaults() *OrderResult

NewOrderResultWithDefaults instantiates a new OrderResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*OrderResult) GetCheckMacValue

func (o *OrderResult) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*OrderResult) GetCheckMacValueOk

func (o *OrderResult) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*OrderResult) GetCustomField1

func (o *OrderResult) GetCustomField1() string

GetCustomField1 returns the CustomField1 field value

func (*OrderResult) GetCustomField1Ok

func (o *OrderResult) GetCustomField1Ok() (*string, bool)

GetCustomField1Ok returns a tuple with the CustomField1 field value and a boolean to check if the value has been set.

func (*OrderResult) GetCustomField2

func (o *OrderResult) GetCustomField2() string

GetCustomField2 returns the CustomField2 field value

func (*OrderResult) GetCustomField2Ok

func (o *OrderResult) GetCustomField2Ok() (*string, bool)

GetCustomField2Ok returns a tuple with the CustomField2 field value and a boolean to check if the value has been set.

func (*OrderResult) GetCustomField3

func (o *OrderResult) GetCustomField3() string

GetCustomField3 returns the CustomField3 field value

func (*OrderResult) GetCustomField3Ok

func (o *OrderResult) GetCustomField3Ok() (*string, bool)

GetCustomField3Ok returns a tuple with the CustomField3 field value and a boolean to check if the value has been set.

func (*OrderResult) GetCustomField4

func (o *OrderResult) GetCustomField4() string

GetCustomField4 returns the CustomField4 field value

func (*OrderResult) GetCustomField4Ok

func (o *OrderResult) GetCustomField4Ok() (*string, bool)

GetCustomField4Ok returns a tuple with the CustomField4 field value and a boolean to check if the value has been set.

func (*OrderResult) GetMerchantID

func (o *OrderResult) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*OrderResult) GetMerchantIDOk

func (o *OrderResult) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*OrderResult) GetMerchantTradeNo

func (o *OrderResult) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*OrderResult) GetMerchantTradeNoOk

func (o *OrderResult) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*OrderResult) GetPaymentDate

func (o *OrderResult) GetPaymentDate() ECPayDateTime

GetPaymentDate returns the PaymentDate field value

func (*OrderResult) GetPaymentDateOk

func (o *OrderResult) GetPaymentDateOk() (*ECPayDateTime, bool)

GetPaymentDateOk returns a tuple with the PaymentDate field value and a boolean to check if the value has been set.

func (*OrderResult) GetPaymentType

func (o *OrderResult) GetPaymentType() ReturnPaymentTypeEnum

GetPaymentType returns the PaymentType field value

func (*OrderResult) GetPaymentTypeChargeFee

func (o *OrderResult) GetPaymentTypeChargeFee() int

GetPaymentTypeChargeFee returns the PaymentTypeChargeFee field value

func (*OrderResult) GetPaymentTypeChargeFeeOk

func (o *OrderResult) GetPaymentTypeChargeFeeOk() (*int, bool)

GetPaymentTypeChargeFeeOk returns a tuple with the PaymentTypeChargeFee field value and a boolean to check if the value has been set.

func (*OrderResult) GetPaymentTypeOk

func (o *OrderResult) GetPaymentTypeOk() (*ReturnPaymentTypeEnum, bool)

GetPaymentTypeOk returns a tuple with the PaymentType field value and a boolean to check if the value has been set.

func (*OrderResult) GetRtnCode

func (o *OrderResult) GetRtnCode() int

GetRtnCode returns the RtnCode field value

func (*OrderResult) GetRtnCodeOk

func (o *OrderResult) GetRtnCodeOk() (*int, bool)

GetRtnCodeOk returns a tuple with the RtnCode field value and a boolean to check if the value has been set.

func (*OrderResult) GetRtnMsg

func (o *OrderResult) GetRtnMsg() string

GetRtnMsg returns the RtnMsg field value

func (*OrderResult) GetRtnMsgOk

func (o *OrderResult) GetRtnMsgOk() (*string, bool)

GetRtnMsgOk returns a tuple with the RtnMsg field value and a boolean to check if the value has been set.

func (*OrderResult) GetSimulatePaid

func (o *OrderResult) GetSimulatePaid() SimulatePaidEnum

GetSimulatePaid returns the SimulatePaid field value

func (*OrderResult) GetSimulatePaidOk

func (o *OrderResult) GetSimulatePaidOk() (*SimulatePaidEnum, bool)

GetSimulatePaidOk returns a tuple with the SimulatePaid field value and a boolean to check if the value has been set.

func (*OrderResult) GetStoreID

func (o *OrderResult) GetStoreID() string

GetStoreID returns the StoreID field value

func (*OrderResult) GetStoreIDOk

func (o *OrderResult) GetStoreIDOk() (*string, bool)

GetStoreIDOk returns a tuple with the StoreID field value and a boolean to check if the value has been set.

func (*OrderResult) GetTradeAmt

func (o *OrderResult) GetTradeAmt() int

GetTradeAmt returns the TradeAmt field value

func (*OrderResult) GetTradeAmtOk

func (o *OrderResult) GetTradeAmtOk() (*int, bool)

GetTradeAmtOk returns a tuple with the TradeAmt field value and a boolean to check if the value has been set.

func (*OrderResult) GetTradeDate

func (o *OrderResult) GetTradeDate() ECPayDateTime

GetTradeDate returns the TradeDate field value

func (*OrderResult) GetTradeDateOk

func (o *OrderResult) GetTradeDateOk() (*ECPayDateTime, bool)

GetTradeDateOk returns a tuple with the TradeDate field value and a boolean to check if the value has been set.

func (*OrderResult) GetTradeNo

func (o *OrderResult) GetTradeNo() string

GetTradeNo returns the TradeNo field value

func (*OrderResult) GetTradeNoOk

func (o *OrderResult) GetTradeNoOk() (*string, bool)

GetTradeNoOk returns a tuple with the TradeNo field value and a boolean to check if the value has been set.

func (OrderResult) MarshalJSON

func (o OrderResult) MarshalJSON() ([]byte, error)

func (*OrderResult) SetCheckMacValue

func (o *OrderResult) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*OrderResult) SetCustomField1

func (o *OrderResult) SetCustomField1(v string)

SetCustomField1 sets field value

func (*OrderResult) SetCustomField2

func (o *OrderResult) SetCustomField2(v string)

SetCustomField2 sets field value

func (*OrderResult) SetCustomField3

func (o *OrderResult) SetCustomField3(v string)

SetCustomField3 sets field value

func (*OrderResult) SetCustomField4

func (o *OrderResult) SetCustomField4(v string)

SetCustomField4 sets field value

func (*OrderResult) SetMerchantID

func (o *OrderResult) SetMerchantID(v string)

SetMerchantID sets field value

func (*OrderResult) SetMerchantTradeNo

func (o *OrderResult) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*OrderResult) SetPaymentDate

func (o *OrderResult) SetPaymentDate(v ECPayDateTime)

SetPaymentDate sets field value

func (*OrderResult) SetPaymentType

func (o *OrderResult) SetPaymentType(v ReturnPaymentTypeEnum)

SetPaymentType sets field value

func (*OrderResult) SetPaymentTypeChargeFee

func (o *OrderResult) SetPaymentTypeChargeFee(v int)

SetPaymentTypeChargeFee sets field value

func (*OrderResult) SetRtnCode

func (o *OrderResult) SetRtnCode(v int)

SetRtnCode sets field value

func (*OrderResult) SetRtnMsg

func (o *OrderResult) SetRtnMsg(v string)

SetRtnMsg sets field value

func (*OrderResult) SetSimulatePaid

func (o *OrderResult) SetSimulatePaid(v SimulatePaidEnum)

SetSimulatePaid sets field value

func (*OrderResult) SetStoreID

func (o *OrderResult) SetStoreID(v string)

SetStoreID sets field value

func (*OrderResult) SetTradeAmt

func (o *OrderResult) SetTradeAmt(v int)

SetTradeAmt sets field value

func (*OrderResult) SetTradeDate

func (o *OrderResult) SetTradeDate(v ECPayDateTime)

SetTradeDate sets field value

func (*OrderResult) SetTradeNo

func (o *OrderResult) SetTradeNo(v string)

SetTradeNo sets field value

type PeriodOrderResult

type PeriodOrderResult struct {
	// **特店編號**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號** 訂單產生時傳送給綠界的特店交易編號。英數字大小寫混合
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **特店旗下店舖代號** 提供特店填入分店代號使用,僅可用英數字大小寫混合。
	StoreID string `json:"StoreID" form:"StoreID"`
	// **交易狀態**   若回傳值為 1 時,為付款成功   其餘代碼皆為交易異常,請至廠商管理後台確認後再出貨。
	RtnCode int `json:"RtnCode" form:"RtnCode"`
	// **交易訊息** Server POST 成功回傳:交易成功   Server POST 補送通知回傳:paid   Client POST 成功回傳:Succeeded
	RtnMsg     string               `json:"RtnMsg" form:"RtnMsg"`
	PeriodType CreditPeriodTypeEnum `json:"PeriodType" form:"PeriodType"`
	// **執行頻率**  訂單建立時所設定的執行頻率
	Frequency int `json:"Frequency" form:"Frequency"`
	// **執行次數**  訂單建立時所設定的執行頻率
	ExecTimes int `json:"ExecTimes" form:"ExecTimes"`
	// **本次授權金額**  此次所授權的金額
	Amount int `json:"Amount" form:"Amount"`
	// **授權交易單號**  此次所授權的交易單號
	Gwsr int `json:"Gwsr" form:"Gwsr"`
	// **處理時間** 處理時間 ( yyyy/MM/dd HH:mm:ss )
	ProcessDate ECPayDateTime `json:"ProcessDate" form:"ProcessDate"`
	// **授權碼** 授權碼
	AuthCode string `json:"AuthCode" form:"AuthCode"`
	// **初次授權金額** 定期定額交易的第一筆授權金額。
	FirstAuthAmount int `json:"FirstAuthAmount" form:"FirstAuthAmount"`
	// **已執行成功次數**  目前已成功授權的次數。
	TotalSuccessTimes int `json:"TotalSuccessTimes" form:"TotalSuccessTimes"`
	// **檢查碼** 特店必須檢查檢查碼`CheckMacValue`來驗證,請參考附錄檢查碼機制。
	CheckMacValue string           `json:"CheckMacValue" form:"CheckMacValue"`
	SimulatePaid  SimulatePaidEnum `json:"SimulatePaid" form:"SimulatePaid"`
	// **自訂名稱欄位1**   提供合作廠商使用記錄用客製化使用欄位
	CustomField1 string `json:"CustomField1" form:"CustomField1"`
	// **自訂名稱欄位2**   提供合作廠商使用記錄用客製化使用欄位
	CustomField2 string `json:"CustomField2" form:"CustomField2"`
	// **自訂名稱欄位3**   提供合作廠商使用記錄用客製化使用欄位
	CustomField3 string `json:"CustomField3" form:"CustomField3"`
	// **自訂名稱欄位4**   提供合作廠商使用記錄用客製化使用欄位
	CustomField4 string `json:"CustomField4" form:"CustomField4"`
}

PeriodOrderResult struct for PeriodOrderResult

func NewPeriodOrderResult

func NewPeriodOrderResult(merchantID string, merchantTradeNo string, storeID string, rtnCode int, rtnMsg string, periodType CreditPeriodTypeEnum, frequency int, execTimes int, amount int, gwsr int, processDate ECPayDateTime, authCode string, firstAuthAmount int, totalSuccessTimes int, checkMacValue string, simulatePaid SimulatePaidEnum, customField1 string, customField2 string, customField3 string, customField4 string) *PeriodOrderResult

NewPeriodOrderResult instantiates a new PeriodOrderResult object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewPeriodOrderResultWithDefaults

func NewPeriodOrderResultWithDefaults() *PeriodOrderResult

NewPeriodOrderResultWithDefaults instantiates a new PeriodOrderResult object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*PeriodOrderResult) GetAmount

func (o *PeriodOrderResult) GetAmount() int

GetAmount returns the Amount field value

func (*PeriodOrderResult) GetAmountOk

func (o *PeriodOrderResult) GetAmountOk() (*int, bool)

GetAmountOk returns a tuple with the Amount field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetAuthCode

func (o *PeriodOrderResult) GetAuthCode() string

GetAuthCode returns the AuthCode field value

func (*PeriodOrderResult) GetAuthCodeOk

func (o *PeriodOrderResult) GetAuthCodeOk() (*string, bool)

GetAuthCodeOk returns a tuple with the AuthCode field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetCheckMacValue

func (o *PeriodOrderResult) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*PeriodOrderResult) GetCheckMacValueOk

func (o *PeriodOrderResult) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetCustomField1

func (o *PeriodOrderResult) GetCustomField1() string

GetCustomField1 returns the CustomField1 field value

func (*PeriodOrderResult) GetCustomField1Ok

func (o *PeriodOrderResult) GetCustomField1Ok() (*string, bool)

GetCustomField1Ok returns a tuple with the CustomField1 field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetCustomField2

func (o *PeriodOrderResult) GetCustomField2() string

GetCustomField2 returns the CustomField2 field value

func (*PeriodOrderResult) GetCustomField2Ok

func (o *PeriodOrderResult) GetCustomField2Ok() (*string, bool)

GetCustomField2Ok returns a tuple with the CustomField2 field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetCustomField3

func (o *PeriodOrderResult) GetCustomField3() string

GetCustomField3 returns the CustomField3 field value

func (*PeriodOrderResult) GetCustomField3Ok

func (o *PeriodOrderResult) GetCustomField3Ok() (*string, bool)

GetCustomField3Ok returns a tuple with the CustomField3 field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetCustomField4

func (o *PeriodOrderResult) GetCustomField4() string

GetCustomField4 returns the CustomField4 field value

func (*PeriodOrderResult) GetCustomField4Ok

func (o *PeriodOrderResult) GetCustomField4Ok() (*string, bool)

GetCustomField4Ok returns a tuple with the CustomField4 field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetExecTimes

func (o *PeriodOrderResult) GetExecTimes() int

GetExecTimes returns the ExecTimes field value

func (*PeriodOrderResult) GetExecTimesOk

func (o *PeriodOrderResult) GetExecTimesOk() (*int, bool)

GetExecTimesOk returns a tuple with the ExecTimes field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetFirstAuthAmount

func (o *PeriodOrderResult) GetFirstAuthAmount() int

GetFirstAuthAmount returns the FirstAuthAmount field value

func (*PeriodOrderResult) GetFirstAuthAmountOk

func (o *PeriodOrderResult) GetFirstAuthAmountOk() (*int, bool)

GetFirstAuthAmountOk returns a tuple with the FirstAuthAmount field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetFrequency

func (o *PeriodOrderResult) GetFrequency() int

GetFrequency returns the Frequency field value

func (*PeriodOrderResult) GetFrequencyOk

func (o *PeriodOrderResult) GetFrequencyOk() (*int, bool)

GetFrequencyOk returns a tuple with the Frequency field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetGwsr

func (o *PeriodOrderResult) GetGwsr() int

GetGwsr returns the Gwsr field value

func (*PeriodOrderResult) GetGwsrOk

func (o *PeriodOrderResult) GetGwsrOk() (*int, bool)

GetGwsrOk returns a tuple with the Gwsr field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetMerchantID

func (o *PeriodOrderResult) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*PeriodOrderResult) GetMerchantIDOk

func (o *PeriodOrderResult) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetMerchantTradeNo

func (o *PeriodOrderResult) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*PeriodOrderResult) GetMerchantTradeNoOk

func (o *PeriodOrderResult) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetPeriodType

func (o *PeriodOrderResult) GetPeriodType() CreditPeriodTypeEnum

GetPeriodType returns the PeriodType field value

func (*PeriodOrderResult) GetPeriodTypeOk

func (o *PeriodOrderResult) GetPeriodTypeOk() (*CreditPeriodTypeEnum, bool)

GetPeriodTypeOk returns a tuple with the PeriodType field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetProcessDate

func (o *PeriodOrderResult) GetProcessDate() ECPayDateTime

GetProcessDate returns the ProcessDate field value

func (*PeriodOrderResult) GetProcessDateOk

func (o *PeriodOrderResult) GetProcessDateOk() (*ECPayDateTime, bool)

GetProcessDateOk returns a tuple with the ProcessDate field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetRtnCode

func (o *PeriodOrderResult) GetRtnCode() int

GetRtnCode returns the RtnCode field value

func (*PeriodOrderResult) GetRtnCodeOk

func (o *PeriodOrderResult) GetRtnCodeOk() (*int, bool)

GetRtnCodeOk returns a tuple with the RtnCode field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetRtnMsg

func (o *PeriodOrderResult) GetRtnMsg() string

GetRtnMsg returns the RtnMsg field value

func (*PeriodOrderResult) GetRtnMsgOk

func (o *PeriodOrderResult) GetRtnMsgOk() (*string, bool)

GetRtnMsgOk returns a tuple with the RtnMsg field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetSimulatePaid

func (o *PeriodOrderResult) GetSimulatePaid() SimulatePaidEnum

GetSimulatePaid returns the SimulatePaid field value

func (*PeriodOrderResult) GetSimulatePaidOk

func (o *PeriodOrderResult) GetSimulatePaidOk() (*SimulatePaidEnum, bool)

GetSimulatePaidOk returns a tuple with the SimulatePaid field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetStoreID

func (o *PeriodOrderResult) GetStoreID() string

GetStoreID returns the StoreID field value

func (*PeriodOrderResult) GetStoreIDOk

func (o *PeriodOrderResult) GetStoreIDOk() (*string, bool)

GetStoreIDOk returns a tuple with the StoreID field value and a boolean to check if the value has been set.

func (*PeriodOrderResult) GetTotalSuccessTimes

func (o *PeriodOrderResult) GetTotalSuccessTimes() int

GetTotalSuccessTimes returns the TotalSuccessTimes field value

func (*PeriodOrderResult) GetTotalSuccessTimesOk

func (o *PeriodOrderResult) GetTotalSuccessTimesOk() (*int, bool)

GetTotalSuccessTimesOk returns a tuple with the TotalSuccessTimes field value and a boolean to check if the value has been set.

func (PeriodOrderResult) MarshalJSON

func (o PeriodOrderResult) MarshalJSON() ([]byte, error)

func (*PeriodOrderResult) SetAmount

func (o *PeriodOrderResult) SetAmount(v int)

SetAmount sets field value

func (*PeriodOrderResult) SetAuthCode

func (o *PeriodOrderResult) SetAuthCode(v string)

SetAuthCode sets field value

func (*PeriodOrderResult) SetCheckMacValue

func (o *PeriodOrderResult) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*PeriodOrderResult) SetCustomField1

func (o *PeriodOrderResult) SetCustomField1(v string)

SetCustomField1 sets field value

func (*PeriodOrderResult) SetCustomField2

func (o *PeriodOrderResult) SetCustomField2(v string)

SetCustomField2 sets field value

func (*PeriodOrderResult) SetCustomField3

func (o *PeriodOrderResult) SetCustomField3(v string)

SetCustomField3 sets field value

func (*PeriodOrderResult) SetCustomField4

func (o *PeriodOrderResult) SetCustomField4(v string)

SetCustomField4 sets field value

func (*PeriodOrderResult) SetExecTimes

func (o *PeriodOrderResult) SetExecTimes(v int)

SetExecTimes sets field value

func (*PeriodOrderResult) SetFirstAuthAmount

func (o *PeriodOrderResult) SetFirstAuthAmount(v int)

SetFirstAuthAmount sets field value

func (*PeriodOrderResult) SetFrequency

func (o *PeriodOrderResult) SetFrequency(v int)

SetFrequency sets field value

func (*PeriodOrderResult) SetGwsr

func (o *PeriodOrderResult) SetGwsr(v int)

SetGwsr sets field value

func (*PeriodOrderResult) SetMerchantID

func (o *PeriodOrderResult) SetMerchantID(v string)

SetMerchantID sets field value

func (*PeriodOrderResult) SetMerchantTradeNo

func (o *PeriodOrderResult) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*PeriodOrderResult) SetPeriodType

func (o *PeriodOrderResult) SetPeriodType(v CreditPeriodTypeEnum)

SetPeriodType sets field value

func (*PeriodOrderResult) SetProcessDate

func (o *PeriodOrderResult) SetProcessDate(v ECPayDateTime)

SetProcessDate sets field value

func (*PeriodOrderResult) SetRtnCode

func (o *PeriodOrderResult) SetRtnCode(v int)

SetRtnCode sets field value

func (*PeriodOrderResult) SetRtnMsg

func (o *PeriodOrderResult) SetRtnMsg(v string)

SetRtnMsg sets field value

func (*PeriodOrderResult) SetSimulatePaid

func (o *PeriodOrderResult) SetSimulatePaid(v SimulatePaidEnum)

SetSimulatePaid sets field value

func (*PeriodOrderResult) SetStoreID

func (o *PeriodOrderResult) SetStoreID(v string)

SetStoreID sets field value

func (*PeriodOrderResult) SetTotalSuccessTimes

func (o *PeriodOrderResult) SetTotalSuccessTimes(v int)

SetTotalSuccessTimes sets field value

type QueryCreditCardPeriodInfoRequest

type QueryCreditCardPeriodInfoRequest struct {
	// **特店編號(由綠界提供)**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號(由特店提供)** 訂單產生時傳送給綠界的特店交易編號。
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **驗證時間**   將當下的時間轉為UnixTimeStamp(見範例)用於驗證此次介接的時間區間。   綠界驗證時間區間暫訂為 3 分鐘內有效,超過則此次介接無效。
	TimeStamp int `json:"TimeStamp" form:"TimeStamp"`
	// **檢查碼** 請參考附錄檢查碼機制與產生檢查碼範例程式
	CheckMacValue string `json:"CheckMacValue" form:"CheckMacValue"`
}

QueryCreditCardPeriodInfoRequest struct for QueryCreditCardPeriodInfoRequest

func NewQueryCreditCardPeriodInfoRequest

func NewQueryCreditCardPeriodInfoRequest(merchantID string, merchantTradeNo string, timeStamp int, checkMacValue string) *QueryCreditCardPeriodInfoRequest

NewQueryCreditCardPeriodInfoRequest instantiates a new QueryCreditCardPeriodInfoRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQueryCreditCardPeriodInfoRequestWithDefaults

func NewQueryCreditCardPeriodInfoRequestWithDefaults() *QueryCreditCardPeriodInfoRequest

NewQueryCreditCardPeriodInfoRequestWithDefaults instantiates a new QueryCreditCardPeriodInfoRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QueryCreditCardPeriodInfoRequest) GetCheckMacValue

func (o *QueryCreditCardPeriodInfoRequest) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*QueryCreditCardPeriodInfoRequest) GetCheckMacValueOk

func (o *QueryCreditCardPeriodInfoRequest) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*QueryCreditCardPeriodInfoRequest) GetMerchantID

func (o *QueryCreditCardPeriodInfoRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*QueryCreditCardPeriodInfoRequest) GetMerchantIDOk

func (o *QueryCreditCardPeriodInfoRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*QueryCreditCardPeriodInfoRequest) GetMerchantTradeNo

func (o *QueryCreditCardPeriodInfoRequest) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*QueryCreditCardPeriodInfoRequest) GetMerchantTradeNoOk

func (o *QueryCreditCardPeriodInfoRequest) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*QueryCreditCardPeriodInfoRequest) GetTimeStamp

func (o *QueryCreditCardPeriodInfoRequest) GetTimeStamp() int

GetTimeStamp returns the TimeStamp field value

func (*QueryCreditCardPeriodInfoRequest) GetTimeStampOk

func (o *QueryCreditCardPeriodInfoRequest) GetTimeStampOk() (*int, bool)

GetTimeStampOk returns a tuple with the TimeStamp field value and a boolean to check if the value has been set.

func (QueryCreditCardPeriodInfoRequest) MarshalJSON

func (o QueryCreditCardPeriodInfoRequest) MarshalJSON() ([]byte, error)

func (*QueryCreditCardPeriodInfoRequest) SetCheckMacValue

func (o *QueryCreditCardPeriodInfoRequest) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*QueryCreditCardPeriodInfoRequest) SetMerchantID

func (o *QueryCreditCardPeriodInfoRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*QueryCreditCardPeriodInfoRequest) SetMerchantTradeNo

func (o *QueryCreditCardPeriodInfoRequest) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*QueryCreditCardPeriodInfoRequest) SetTimeStamp

func (o *QueryCreditCardPeriodInfoRequest) SetTimeStamp(v int)

SetTimeStamp sets field value

type QueryTradeInfoRequest

type QueryTradeInfoRequest struct {
	// **特店編號(由綠界提供)**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號(由特店提供)** 訂單產生時傳送給綠界的特店交易編號。
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **驗證時間**   將當下的時間轉為UnixTimeStamp(見範例)用於驗證此次介接的時間區間。   綠界驗證時間區間暫訂為 3 分鐘內有效,超過則此次介接無效。
	TimeStamp int `json:"TimeStamp" form:"TimeStamp"`
	// **特約合作平台商代號(由綠界提供)**   為專案合作的平台商使用。   一般特店或平台商本身介接,則參數請帶放空值。   若為專案合作平台商的特店使用時,則參數請帶平台商所綁的特店編號 `MerchantID`。
	PlatformID *string `json:"PlatformID,omitempty" form:"PlatformID"`
	// **檢查碼** 特店必須檢查檢查碼`CheckMacValue`來驗證,請參考附錄檢查碼機制。
	CheckMacValue string `json:"CheckMacValue" form:"CheckMacValue"`
}

QueryTradeInfoRequest struct for QueryTradeInfoRequest

func NewQueryTradeInfoRequest

func NewQueryTradeInfoRequest(merchantID string, merchantTradeNo string, timeStamp int, checkMacValue string) *QueryTradeInfoRequest

NewQueryTradeInfoRequest instantiates a new QueryTradeInfoRequest object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewQueryTradeInfoRequestWithDefaults

func NewQueryTradeInfoRequestWithDefaults() *QueryTradeInfoRequest

NewQueryTradeInfoRequestWithDefaults instantiates a new QueryTradeInfoRequest object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*QueryTradeInfoRequest) GetCheckMacValue

func (o *QueryTradeInfoRequest) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*QueryTradeInfoRequest) GetCheckMacValueOk

func (o *QueryTradeInfoRequest) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*QueryTradeInfoRequest) GetMerchantID

func (o *QueryTradeInfoRequest) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*QueryTradeInfoRequest) GetMerchantIDOk

func (o *QueryTradeInfoRequest) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*QueryTradeInfoRequest) GetMerchantTradeNo

func (o *QueryTradeInfoRequest) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*QueryTradeInfoRequest) GetMerchantTradeNoOk

func (o *QueryTradeInfoRequest) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*QueryTradeInfoRequest) GetPlatformID

func (o *QueryTradeInfoRequest) GetPlatformID() string

GetPlatformID returns the PlatformID field value if set, zero value otherwise.

func (*QueryTradeInfoRequest) GetPlatformIDOk

func (o *QueryTradeInfoRequest) GetPlatformIDOk() (*string, bool)

GetPlatformIDOk returns a tuple with the PlatformID field value if set, nil otherwise and a boolean to check if the value has been set.

func (*QueryTradeInfoRequest) GetTimeStamp

func (o *QueryTradeInfoRequest) GetTimeStamp() int

GetTimeStamp returns the TimeStamp field value

func (*QueryTradeInfoRequest) GetTimeStampOk

func (o *QueryTradeInfoRequest) GetTimeStampOk() (*int, bool)

GetTimeStampOk returns a tuple with the TimeStamp field value and a boolean to check if the value has been set.

func (*QueryTradeInfoRequest) HasPlatformID

func (o *QueryTradeInfoRequest) HasPlatformID() bool

HasPlatformID returns a boolean if a field has been set.

func (QueryTradeInfoRequest) MarshalJSON

func (o QueryTradeInfoRequest) MarshalJSON() ([]byte, error)

func (*QueryTradeInfoRequest) SetCheckMacValue

func (o *QueryTradeInfoRequest) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*QueryTradeInfoRequest) SetMerchantID

func (o *QueryTradeInfoRequest) SetMerchantID(v string)

SetMerchantID sets field value

func (*QueryTradeInfoRequest) SetMerchantTradeNo

func (o *QueryTradeInfoRequest) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*QueryTradeInfoRequest) SetPlatformID

func (o *QueryTradeInfoRequest) SetPlatformID(v string)

SetPlatformID gets a reference to the given string and assigns it to the PlatformID field.

func (*QueryTradeInfoRequest) SetTimeStamp

func (o *QueryTradeInfoRequest) SetTimeStamp(v int)

SetTimeStamp sets field value

type RedeemEnum

type RedeemEnum string

RedeemEnum **信用卡是否使用紅利折抵** 設為 Y 時,當綠界特店選擇信用卡付款時,會進入紅利折抵的交易流程。 注意事項: 紅利折抵請參考信用卡紅利折抵辦法

const (
	REDEEMENUM_Y RedeemEnum = "Y"
)

List of RedeemEnum

func (RedeemEnum) Ptr

func (v RedeemEnum) Ptr() *RedeemEnum

Ptr returns reference to RedeemEnum value

type ReturnPaymentTypeEnum

type ReturnPaymentTypeEnum string

ReturnPaymentTypeEnum **特店選擇的付款方式** 請參考回覆付款方式一覽表

const (
	RETURNPAYMENTTYPEENUM_WEB_ATM_TAISHIN    ReturnPaymentTypeEnum = "WebATM_TAISHIN"
	RETURNPAYMENTTYPEENUM_WEB_ATM_ESUN       ReturnPaymentTypeEnum = "WebATM_ESUN"
	RETURNPAYMENTTYPEENUM_WEB_ATM_BOT        ReturnPaymentTypeEnum = "WebATM_BOT"
	RETURNPAYMENTTYPEENUM_WEB_ATM_FUBON      ReturnPaymentTypeEnum = "WebATM_FUBON"
	RETURNPAYMENTTYPEENUM_WEB_ATM_CHINATRUST ReturnPaymentTypeEnum = "WebATM_CHINATRUST"
	RETURNPAYMENTTYPEENUM_WEB_ATM_FIRST      ReturnPaymentTypeEnum = "WebATM_FIRST"
	RETURNPAYMENTTYPEENUM_WEB_ATM_CATHAY     ReturnPaymentTypeEnum = "WebATM_CATHAY"
	RETURNPAYMENTTYPEENUM_WEB_ATM_MEGA       ReturnPaymentTypeEnum = "WebATM_MEGA"
	RETURNPAYMENTTYPEENUM_WEB_ATM_LAND       ReturnPaymentTypeEnum = "WebATM_LAND"
	RETURNPAYMENTTYPEENUM_WEB_ATM_TACHONG    ReturnPaymentTypeEnum = "WebATM_TACHONG"
	RETURNPAYMENTTYPEENUM_WEB_ATM_SINOPAC    ReturnPaymentTypeEnum = "WebATM_SINOPAC"
	RETURNPAYMENTTYPEENUM_ATM_TAISHIN        ReturnPaymentTypeEnum = "ATM_TAISHIN"
	RETURNPAYMENTTYPEENUM_ATM_ESUN           ReturnPaymentTypeEnum = "ATM_ESUN"
	RETURNPAYMENTTYPEENUM_ATM_BOT            ReturnPaymentTypeEnum = "ATM_BOT"
	RETURNPAYMENTTYPEENUM_ATM_FUBON          ReturnPaymentTypeEnum = "ATM_FUBON"
	RETURNPAYMENTTYPEENUM_ATM_CHINATRUST     ReturnPaymentTypeEnum = "ATM_CHINATRUST"
	RETURNPAYMENTTYPEENUM_ATM_FIRST          ReturnPaymentTypeEnum = "ATM_FIRST"
	RETURNPAYMENTTYPEENUM_ATM_LAND           ReturnPaymentTypeEnum = "ATM_LAND"
	RETURNPAYMENTTYPEENUM_ATM_CATHAY         ReturnPaymentTypeEnum = "ATM_CATHAY"
	RETURNPAYMENTTYPEENUM_ATM_TACHONG        ReturnPaymentTypeEnum = "ATM_TACHONG"
	RETURNPAYMENTTYPEENUM_CVS_CVS            ReturnPaymentTypeEnum = "CVS_CVS"
	RETURNPAYMENTTYPEENUM_CVS_OK             ReturnPaymentTypeEnum = "CVS_OK"
	RETURNPAYMENTTYPEENUM_CVS_FAMILY         ReturnPaymentTypeEnum = "CVS_FAMILY"
	RETURNPAYMENTTYPEENUM_CVS_HILIFE         ReturnPaymentTypeEnum = "CVS_HILIFE"
	RETURNPAYMENTTYPEENUM_CVS_IBON           ReturnPaymentTypeEnum = "CVS_IBON"
	RETURNPAYMENTTYPEENUM_BARCODE_BARCODE    ReturnPaymentTypeEnum = "BARCODE_BARCODE"
	RETURNPAYMENTTYPEENUM_CREDIT_CREDIT_CARD ReturnPaymentTypeEnum = "Credit_CreditCard"
)

List of ReturnPaymentTypeEnum

func (ReturnPaymentTypeEnum) Ptr

Ptr returns reference to ReturnPaymentTypeEnum value

type ServerConfiguration

type ServerConfiguration struct {
	URL         string
	Description string
	Variables   map[string]ServerVariable
}

ServerConfiguration stores the information about a server

type ServerConfigurations

type ServerConfigurations []ServerConfiguration

ServerConfigurations stores multiple ServerConfiguration items

func (ServerConfigurations) URL

func (sc ServerConfigurations) URL(index int, variables map[string]string) (string, error)

URL formats template on a index using given variables

type ServerVariable

type ServerVariable struct {
	Description  string
	DefaultValue string
	EnumValues   []string
}

ServerVariable stores the information about a server variable

type SimulatePaidEnum

type SimulatePaidEnum int

SimulatePaidEnum **是否為模擬付款** 回傳值: 若為 `1` 時,代表此交易為模擬付款,請勿出貨。 若為 `0` 時,代表此交易非模擬付款。 注意事項: 特店可透過廠商後台網站來針對單筆訂單模擬綠界回傳付款通知,以方便介接 API 的測試。

const (
	SIMULATEPAIDENUM_REAL_PAID SimulatePaidEnum = 0
	SIMULATEPAIDENUM_SIMULATED SimulatePaidEnum = 1
)

List of SimulatePaidEnum

func (SimulatePaidEnum) Ptr

Ptr returns reference to SimulatePaidEnum value

type TaxTypeEnum

type TaxTypeEnum string

TaxTypeEnum **課稅類別** 若為應稅,請帶 `1`。 若為零稅率,請帶 `2`。 若為免稅,請帶 `3`。 若為混合應稅與免稅或零稅率時(限收銀機發票無法分辨時使用,且需通過申請核可),則請帶 `9`。

const (
	TAXTYPEENUM_TAXABLE       TaxTypeEnum = "1"
	TAXTYPEENUM_ZERO_TAX_RATE TaxTypeEnum = "2"
	TAXTYPEENUM_DUTY_FREE     TaxTypeEnum = "3"
	TAXTYPEENUM_MIXED         TaxTypeEnum = "9"
)

List of TaxTypeEnum

func (TaxTypeEnum) Ptr

func (v TaxTypeEnum) Ptr() *TaxTypeEnum

Ptr returns reference to TaxTypeEnum value

type TradeInfo

type TradeInfo struct {
	// **特店編號(由綠界提供)**
	MerchantID string `json:"MerchantID" form:"MerchantID"`
	// **特店交易編號(由特店提供)** 訂單產生時傳送給綠界的特店交易編號。
	MerchantTradeNo string `json:"MerchantTradeNo" form:"MerchantTradeNo"`
	// **特店旗下店舖代號** 提供特店填入分店代號使用,僅可用英數字大小寫混合。
	StoreID string `json:"StoreID" form:"StoreID"`
	// **綠界的交易編號** 首次授權所產生的綠界交易編號
	TradeNo string `json:"TradeNo" form:"TradeNo"`
	// **交易金額**
	TradeAmt int `json:"TradeAmt" form:"TradeAmt"`
	// **付款時間** 格式為 yyyy/MM/dd HH:mm:ss
	PaymentDate ECPayDateTime         `json:"PaymentDate" form:"PaymentDate"`
	PaymentType ReturnPaymentTypeEnum `json:"PaymentType" form:"PaymentType"`
	// **手續費合計**  履約結束後才會計算,未計算前為 0
	HandlingCharge int `json:"HandlingCharge" form:"HandlingCharge"`
	// **通路費**
	PaymentTypeChargeFee float32 `json:"PaymentTypeChargeFee" form:"PaymentTypeChargeFee"`
	// **訂單成立時間** 格式為 yyyy/MM/dd HH:mm:ss
	TradeDate ECPayDateTime `json:"TradeDate" form:"TradeDate"`
	// **交易狀態**    回傳值:   若為 0 時,代表交易訂單成立未付款   若為 1 時,代表交易訂單成立已付款   若為 10200095 時,代表消費者未選擇付款方式,故交易失敗。
	TradeStatus string `json:"TradeStatus" form:"TradeStatus"`
	// **商品名稱**
	ItemName string `json:"ItemName" form:"ItemName"`
	// **自訂名稱欄位1**   提供合作廠商使用記錄用客製化使用欄位
	CustomField1 string `json:"CustomField1" form:"CustomField1"`
	// **自訂名稱欄位2**   提供合作廠商使用記錄用客製化使用欄位
	CustomField2 string `json:"CustomField2" form:"CustomField2"`
	// **自訂名稱欄位3**   提供合作廠商使用記錄用客製化使用欄位
	CustomField3 string `json:"CustomField3" form:"CustomField3"`
	// **自訂名稱欄位4**   提供合作廠商使用記錄用客製化使用欄位
	CustomField4 string `json:"CustomField4" form:"CustomField4"`
	// **檢查碼** 特店必須檢查檢查碼`CheckMacValue`來驗證,請參考附錄檢查碼機制。
	CheckMacValue string `json:"CheckMacValue" form:"CheckMacValue"`
}

TradeInfo struct for TradeInfo

func NewTradeInfo

func NewTradeInfo(merchantID string, merchantTradeNo string, storeID string, tradeNo string, tradeAmt int, paymentDate ECPayDateTime, paymentType ReturnPaymentTypeEnum, handlingCharge int, paymentTypeChargeFee float32, tradeDate ECPayDateTime, tradeStatus string, itemName string, customField1 string, customField2 string, customField3 string, customField4 string, checkMacValue string) *TradeInfo

NewTradeInfo instantiates a new TradeInfo object This constructor will assign default values to properties that have it defined, and makes sure properties required by API are set, but the set of arguments will change when the set of required properties is changed

func NewTradeInfoWithDefaults

func NewTradeInfoWithDefaults() *TradeInfo

NewTradeInfoWithDefaults instantiates a new TradeInfo object This constructor will only assign default values to properties that have it defined, but it doesn't guarantee that properties required by API are set

func (*TradeInfo) GetCheckMacValue

func (o *TradeInfo) GetCheckMacValue() string

GetCheckMacValue returns the CheckMacValue field value

func (*TradeInfo) GetCheckMacValueOk

func (o *TradeInfo) GetCheckMacValueOk() (*string, bool)

GetCheckMacValueOk returns a tuple with the CheckMacValue field value and a boolean to check if the value has been set.

func (*TradeInfo) GetCustomField1

func (o *TradeInfo) GetCustomField1() string

GetCustomField1 returns the CustomField1 field value

func (*TradeInfo) GetCustomField1Ok

func (o *TradeInfo) GetCustomField1Ok() (*string, bool)

GetCustomField1Ok returns a tuple with the CustomField1 field value and a boolean to check if the value has been set.

func (*TradeInfo) GetCustomField2

func (o *TradeInfo) GetCustomField2() string

GetCustomField2 returns the CustomField2 field value

func (*TradeInfo) GetCustomField2Ok

func (o *TradeInfo) GetCustomField2Ok() (*string, bool)

GetCustomField2Ok returns a tuple with the CustomField2 field value and a boolean to check if the value has been set.

func (*TradeInfo) GetCustomField3

func (o *TradeInfo) GetCustomField3() string

GetCustomField3 returns the CustomField3 field value

func (*TradeInfo) GetCustomField3Ok

func (o *TradeInfo) GetCustomField3Ok() (*string, bool)

GetCustomField3Ok returns a tuple with the CustomField3 field value and a boolean to check if the value has been set.

func (*TradeInfo) GetCustomField4

func (o *TradeInfo) GetCustomField4() string

GetCustomField4 returns the CustomField4 field value

func (*TradeInfo) GetCustomField4Ok

func (o *TradeInfo) GetCustomField4Ok() (*string, bool)

GetCustomField4Ok returns a tuple with the CustomField4 field value and a boolean to check if the value has been set.

func (*TradeInfo) GetHandlingCharge

func (o *TradeInfo) GetHandlingCharge() int

GetHandlingCharge returns the HandlingCharge field value

func (*TradeInfo) GetHandlingChargeOk

func (o *TradeInfo) GetHandlingChargeOk() (*int, bool)

GetHandlingChargeOk returns a tuple with the HandlingCharge field value and a boolean to check if the value has been set.

func (*TradeInfo) GetItemName

func (o *TradeInfo) GetItemName() string

GetItemName returns the ItemName field value

func (*TradeInfo) GetItemNameOk

func (o *TradeInfo) GetItemNameOk() (*string, bool)

GetItemNameOk returns a tuple with the ItemName field value and a boolean to check if the value has been set.

func (*TradeInfo) GetMerchantID

func (o *TradeInfo) GetMerchantID() string

GetMerchantID returns the MerchantID field value

func (*TradeInfo) GetMerchantIDOk

func (o *TradeInfo) GetMerchantIDOk() (*string, bool)

GetMerchantIDOk returns a tuple with the MerchantID field value and a boolean to check if the value has been set.

func (*TradeInfo) GetMerchantTradeNo

func (o *TradeInfo) GetMerchantTradeNo() string

GetMerchantTradeNo returns the MerchantTradeNo field value

func (*TradeInfo) GetMerchantTradeNoOk

func (o *TradeInfo) GetMerchantTradeNoOk() (*string, bool)

GetMerchantTradeNoOk returns a tuple with the MerchantTradeNo field value and a boolean to check if the value has been set.

func (*TradeInfo) GetPaymentDate

func (o *TradeInfo) GetPaymentDate() ECPayDateTime

GetPaymentDate returns the PaymentDate field value

func (*TradeInfo) GetPaymentDateOk

func (o *TradeInfo) GetPaymentDateOk() (*ECPayDateTime, bool)

GetPaymentDateOk returns a tuple with the PaymentDate field value and a boolean to check if the value has been set.

func (*TradeInfo) GetPaymentType

func (o *TradeInfo) GetPaymentType() ReturnPaymentTypeEnum

GetPaymentType returns the PaymentType field value

func (*TradeInfo) GetPaymentTypeChargeFee

func (o *TradeInfo) GetPaymentTypeChargeFee() float32

GetPaymentTypeChargeFee returns the PaymentTypeChargeFee field value

func (*TradeInfo) GetPaymentTypeChargeFeeOk

func (o *TradeInfo) GetPaymentTypeChargeFeeOk() (*float32, bool)

GetPaymentTypeChargeFeeOk returns a tuple with the PaymentTypeChargeFee field value and a boolean to check if the value has been set.

func (*TradeInfo) GetPaymentTypeOk

func (o *TradeInfo) GetPaymentTypeOk() (*ReturnPaymentTypeEnum, bool)

GetPaymentTypeOk returns a tuple with the PaymentType field value and a boolean to check if the value has been set.

func (*TradeInfo) GetStoreID

func (o *TradeInfo) GetStoreID() string

GetStoreID returns the StoreID field value

func (*TradeInfo) GetStoreIDOk

func (o *TradeInfo) GetStoreIDOk() (*string, bool)

GetStoreIDOk returns a tuple with the StoreID field value and a boolean to check if the value has been set.

func (*TradeInfo) GetTradeAmt

func (o *TradeInfo) GetTradeAmt() int

GetTradeAmt returns the TradeAmt field value

func (*TradeInfo) GetTradeAmtOk

func (o *TradeInfo) GetTradeAmtOk() (*int, bool)

GetTradeAmtOk returns a tuple with the TradeAmt field value and a boolean to check if the value has been set.

func (*TradeInfo) GetTradeDate

func (o *TradeInfo) GetTradeDate() ECPayDateTime

GetTradeDate returns the TradeDate field value

func (*TradeInfo) GetTradeDateOk

func (o *TradeInfo) GetTradeDateOk() (*ECPayDateTime, bool)

GetTradeDateOk returns a tuple with the TradeDate field value and a boolean to check if the value has been set.

func (*TradeInfo) GetTradeNo

func (o *TradeInfo) GetTradeNo() string

GetTradeNo returns the TradeNo field value

func (*TradeInfo) GetTradeNoOk

func (o *TradeInfo) GetTradeNoOk() (*string, bool)

GetTradeNoOk returns a tuple with the TradeNo field value and a boolean to check if the value has been set.

func (*TradeInfo) GetTradeStatus

func (o *TradeInfo) GetTradeStatus() string

GetTradeStatus returns the TradeStatus field value

func (*TradeInfo) GetTradeStatusOk

func (o *TradeInfo) GetTradeStatusOk() (*string, bool)

GetTradeStatusOk returns a tuple with the TradeStatus field value and a boolean to check if the value has been set.

func (TradeInfo) MarshalJSON

func (o TradeInfo) MarshalJSON() ([]byte, error)

func (*TradeInfo) SetCheckMacValue

func (o *TradeInfo) SetCheckMacValue(v string)

SetCheckMacValue sets field value

func (*TradeInfo) SetCustomField1

func (o *TradeInfo) SetCustomField1(v string)

SetCustomField1 sets field value

func (*TradeInfo) SetCustomField2

func (o *TradeInfo) SetCustomField2(v string)

SetCustomField2 sets field value

func (*TradeInfo) SetCustomField3

func (o *TradeInfo) SetCustomField3(v string)

SetCustomField3 sets field value

func (*TradeInfo) SetCustomField4

func (o *TradeInfo) SetCustomField4(v string)

SetCustomField4 sets field value

func (*TradeInfo) SetHandlingCharge

func (o *TradeInfo) SetHandlingCharge(v int)

SetHandlingCharge sets field value

func (*TradeInfo) SetItemName

func (o *TradeInfo) SetItemName(v string)

SetItemName sets field value

func (*TradeInfo) SetMerchantID

func (o *TradeInfo) SetMerchantID(v string)

SetMerchantID sets field value

func (*TradeInfo) SetMerchantTradeNo

func (o *TradeInfo) SetMerchantTradeNo(v string)

SetMerchantTradeNo sets field value

func (*TradeInfo) SetPaymentDate

func (o *TradeInfo) SetPaymentDate(v ECPayDateTime)

SetPaymentDate sets field value

func (*TradeInfo) SetPaymentType

func (o *TradeInfo) SetPaymentType(v ReturnPaymentTypeEnum)

SetPaymentType sets field value

func (*TradeInfo) SetPaymentTypeChargeFee

func (o *TradeInfo) SetPaymentTypeChargeFee(v float32)

SetPaymentTypeChargeFee sets field value

func (*TradeInfo) SetStoreID

func (o *TradeInfo) SetStoreID(v string)

SetStoreID sets field value

func (*TradeInfo) SetTradeAmt

func (o *TradeInfo) SetTradeAmt(v int)

SetTradeAmt sets field value

func (*TradeInfo) SetTradeDate

func (o *TradeInfo) SetTradeDate(v ECPayDateTime)

SetTradeDate sets field value

func (*TradeInfo) SetTradeNo

func (o *TradeInfo) SetTradeNo(v string)

SetTradeNo sets field value

func (*TradeInfo) SetTradeStatus

func (o *TradeInfo) SetTradeStatus(v string)

SetTradeStatus sets field value

type UnionPayEnum

type UnionPayEnum int

UnionPayEnum **銀聯卡交易選項** 可帶入以下選項: `0`: 消費者於交易頁面可選擇是否使用銀聯交易。 `1`: 只使用銀聯卡交易,且綠界會將交易頁面直接導到銀聯網站。 `2`: 不可使用銀聯卡,綠界會將交易頁面隱藏銀聯選項。 注意事項: 1.若需使用銀聯卡服務,請與綠界提出申請方可使用,測試環境未提供銀聯卡服務。 2.不支援信用卡分期付款及定期定額。 3.不支援信用卡紅利折抵 4.不支援信用卡記憶卡號功能

const (
	UNIONPAYENUM_NOT_SPECIFIED UnionPayEnum = 0
	UNIONPAYENUM_SPECIFIED     UnionPayEnum = 1
	UNIONPAYENUM_HIDDEN        UnionPayEnum = 2
)

List of UnionPayEnum

func (UnionPayEnum) Ptr

func (v UnionPayEnum) Ptr() *UnionPayEnum

Ptr returns reference to UnionPayEnum value

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL