diff --git a/.fern/metadata.json b/.fern/metadata.json index 552a515..6f4efcd 100644 --- a/.fern/metadata.json +++ b/.fern/metadata.json @@ -1,5 +1,5 @@ { - "cliVersion": "4.60.0", + "cliVersion": "*", "generatorName": "fernapi/fern-go-sdk", "generatorVersion": "1.30.3", "generatorConfig": { @@ -9,6 +9,6 @@ "path": "github.com/payabli/sdk-go" } }, - "originGitCommit": "0e827e26830578592f2b9d144d73fc76ecc31b49", - "sdkVersion": "v0.0.452" + "originGitCommit": "0f57881eff31bfc663f79c7499ee07b4ec4ebd63", + "sdkVersion": "v0.0.453" } \ No newline at end of file diff --git a/README.md b/README.md index f1f7bd3..bd9ff6a 100644 --- a/README.md +++ b/README.md @@ -71,14 +71,14 @@ import ( func do() { client := client.NewClient( - option.WithApiKey( + option.WithAPIKey( "", ), ) request := &payabli.RequestPayment{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, diff --git a/bill.go b/bill.go index 719661d..85b3521 100644 --- a/bill.go +++ b/bill.go @@ -413,19 +413,19 @@ var ( billQueryRecord2FieldDocumentsRef = big.NewInt(1 << 12) billQueryRecord2FieldDueDate = big.NewInt(1 << 13) billQueryRecord2FieldEndDate = big.NewInt(1 << 14) - billQueryRecord2FieldEntityId = big.NewInt(1 << 15) - billQueryRecord2FieldExternalPaypointId = big.NewInt(1 << 16) + billQueryRecord2FieldEntityID = big.NewInt(1 << 15) + billQueryRecord2FieldExternalPaypointID = big.NewInt(1 << 16) billQueryRecord2FieldFrequency = big.NewInt(1 << 17) - billQueryRecord2FieldIdBill = big.NewInt(1 << 18) + billQueryRecord2FieldIDBill = big.NewInt(1 << 18) billQueryRecord2FieldLastUpdated = big.NewInt(1 << 19) billQueryRecord2FieldLotNumber = big.NewInt(1 << 20) billQueryRecord2FieldMode = big.NewInt(1 << 21) billQueryRecord2FieldNetAmount = big.NewInt(1 << 22) - billQueryRecord2FieldParentOrgId = big.NewInt(1 << 23) + billQueryRecord2FieldParentOrgID = big.NewInt(1 << 23) billQueryRecord2FieldParentOrgName = big.NewInt(1 << 24) - billQueryRecord2FieldPaymentId = big.NewInt(1 << 25) + billQueryRecord2FieldPaymentID = big.NewInt(1 << 25) billQueryRecord2FieldPaymentMethod = big.NewInt(1 << 26) - billQueryRecord2FieldPaylinkId = big.NewInt(1 << 27) + billQueryRecord2FieldPaylinkID = big.NewInt(1 << 27) billQueryRecord2FieldPaypointDbaname = big.NewInt(1 << 28) billQueryRecord2FieldPaypointEntryname = big.NewInt(1 << 29) billQueryRecord2FieldPaypointLegalname = big.NewInt(1 << 30) @@ -466,12 +466,12 @@ type BillQueryRecord2 struct { // End date for the bill. EndDate *time.Time `json:"EndDate,omitempty" url:"EndDate,omitempty" format:"date"` // Entity identifier associated with the bill. - EntityId *string `json:"EntityID,omitempty" url:"EntityID,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + EntityID *string `json:"EntityID,omitempty" url:"EntityID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Frequency for scheduled bills. Applied only in `Mode` = 1. Frequency *Frequency `json:"Frequency,omitempty" url:"Frequency,omitempty"` // Identifier of the bill. - IdBill *int64 `json:"IdBill,omitempty" url:"IdBill,omitempty"` + IDBill *int64 `json:"IdBill,omitempty" url:"IdBill,omitempty"` // Timestamp of when bill was last updated, in UTC. LastUpdated *time.Time `json:"LastUpdated,omitempty" url:"LastUpdated,omitempty"` // Lot number associated with the bill. @@ -481,13 +481,13 @@ type BillQueryRecord2 struct { // Net amount of the bill. NetAmount *float64 `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` // Parent organization identifier. - ParentOrgId *int64 `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *int64 `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - PaymentId *PaymentIdString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *PaymentIDString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` // Preferred payment method used. PaymentMethod *BillQueryRecord2PaymentMethod `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` // Paylink identifier associated with the bill. - PaylinkId *string `json:"paylinkId,omitempty" url:"paylinkId,omitempty"` + PaylinkID *string `json:"paylinkId,omitempty" url:"paylinkId,omitempty"` // The paypoint's DBA name. PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // Entry name of the paypoint. @@ -617,18 +617,18 @@ func (b *BillQueryRecord2) GetEndDate() *time.Time { return b.EndDate } -func (b *BillQueryRecord2) GetEntityId() *string { +func (b *BillQueryRecord2) GetEntityID() *string { if b == nil { return nil } - return b.EntityId + return b.EntityID } -func (b *BillQueryRecord2) GetExternalPaypointId() *ExternalPaypointId { +func (b *BillQueryRecord2) GetExternalPaypointID() *ExternalPaypointID { if b == nil { return nil } - return b.ExternalPaypointId + return b.ExternalPaypointID } func (b *BillQueryRecord2) GetFrequency() *Frequency { @@ -638,11 +638,11 @@ func (b *BillQueryRecord2) GetFrequency() *Frequency { return b.Frequency } -func (b *BillQueryRecord2) GetIdBill() *int64 { +func (b *BillQueryRecord2) GetIDBill() *int64 { if b == nil { return nil } - return b.IdBill + return b.IDBill } func (b *BillQueryRecord2) GetLastUpdated() *time.Time { @@ -673,11 +673,11 @@ func (b *BillQueryRecord2) GetNetAmount() *float64 { return b.NetAmount } -func (b *BillQueryRecord2) GetParentOrgId() *int64 { +func (b *BillQueryRecord2) GetParentOrgID() *int64 { if b == nil { return nil } - return b.ParentOrgId + return b.ParentOrgID } func (b *BillQueryRecord2) GetParentOrgName() *OrgParentName { @@ -687,11 +687,11 @@ func (b *BillQueryRecord2) GetParentOrgName() *OrgParentName { return b.ParentOrgName } -func (b *BillQueryRecord2) GetPaymentId() *PaymentIdString { +func (b *BillQueryRecord2) GetPaymentID() *PaymentIDString { if b == nil { return nil } - return b.PaymentId + return b.PaymentID } func (b *BillQueryRecord2) GetPaymentMethod() *BillQueryRecord2PaymentMethod { @@ -701,11 +701,11 @@ func (b *BillQueryRecord2) GetPaymentMethod() *BillQueryRecord2PaymentMethod { return b.PaymentMethod } -func (b *BillQueryRecord2) GetPaylinkId() *string { +func (b *BillQueryRecord2) GetPaylinkID() *string { if b == nil { return nil } - return b.PaylinkId + return b.PaylinkID } func (b *BillQueryRecord2) GetPaypointDbaname() *Dbaname { @@ -890,18 +890,18 @@ func (b *BillQueryRecord2) SetEndDate(endDate *time.Time) { b.require(billQueryRecord2FieldEndDate) } -// SetEntityId sets the EntityId field and marks it as non-optional; +// SetEntityID sets the EntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetEntityId(entityId *string) { - b.EntityId = entityId - b.require(billQueryRecord2FieldEntityId) +func (b *BillQueryRecord2) SetEntityID(entityID *string) { + b.EntityID = entityID + b.require(billQueryRecord2FieldEntityID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - b.ExternalPaypointId = externalPaypointId - b.require(billQueryRecord2FieldExternalPaypointId) +func (b *BillQueryRecord2) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + b.ExternalPaypointID = externalPaypointID + b.require(billQueryRecord2FieldExternalPaypointID) } // SetFrequency sets the Frequency field and marks it as non-optional; @@ -911,11 +911,11 @@ func (b *BillQueryRecord2) SetFrequency(frequency *Frequency) { b.require(billQueryRecord2FieldFrequency) } -// SetIdBill sets the IdBill field and marks it as non-optional; +// SetIDBill sets the IDBill field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetIdBill(idBill *int64) { - b.IdBill = idBill - b.require(billQueryRecord2FieldIdBill) +func (b *BillQueryRecord2) SetIDBill(idBill *int64) { + b.IDBill = idBill + b.require(billQueryRecord2FieldIDBill) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -946,11 +946,11 @@ func (b *BillQueryRecord2) SetNetAmount(netAmount *float64) { b.require(billQueryRecord2FieldNetAmount) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetParentOrgId(parentOrgId *int64) { - b.ParentOrgId = parentOrgId - b.require(billQueryRecord2FieldParentOrgId) +func (b *BillQueryRecord2) SetParentOrgID(parentOrgID *int64) { + b.ParentOrgID = parentOrgID + b.require(billQueryRecord2FieldParentOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -960,11 +960,11 @@ func (b *BillQueryRecord2) SetParentOrgName(parentOrgName *OrgParentName) { b.require(billQueryRecord2FieldParentOrgName) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetPaymentId(paymentId *PaymentIdString) { - b.PaymentId = paymentId - b.require(billQueryRecord2FieldPaymentId) +func (b *BillQueryRecord2) SetPaymentID(paymentID *PaymentIDString) { + b.PaymentID = paymentID + b.require(billQueryRecord2FieldPaymentID) } // SetPaymentMethod sets the PaymentMethod field and marks it as non-optional; @@ -974,11 +974,11 @@ func (b *BillQueryRecord2) SetPaymentMethod(paymentMethod *BillQueryRecord2Payme b.require(billQueryRecord2FieldPaymentMethod) } -// SetPaylinkId sets the PaylinkId field and marks it as non-optional; +// SetPaylinkID sets the PaylinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2) SetPaylinkId(paylinkId *string) { - b.PaylinkId = paylinkId - b.require(billQueryRecord2FieldPaylinkId) +func (b *BillQueryRecord2) SetPaylinkID(paylinkID *string) { + b.PaylinkID = paylinkID + b.require(billQueryRecord2FieldPaylinkID) } // SetPaypointDbaname sets the PaypointDbaname field and marks it as non-optional; @@ -1115,7 +1115,7 @@ var ( billQueryRecord2BillApprovalsItemFieldApprovedTime = big.NewInt(1 << 1) billQueryRecord2BillApprovalsItemFieldComments = big.NewInt(1 << 2) billQueryRecord2BillApprovalsItemFieldEmail = big.NewInt(1 << 3) - billQueryRecord2BillApprovalsItemFieldId = big.NewInt(1 << 4) + billQueryRecord2BillApprovalsItemFieldID = big.NewInt(1 << 4) ) type BillQueryRecord2BillApprovalsItem struct { @@ -1128,7 +1128,7 @@ type BillQueryRecord2BillApprovalsItem struct { // The approving user's email address. Email *Email `json:"email,omitempty" url:"email,omitempty"` // The approving user's ID. - Id *int64 `json:"Id,omitempty" url:"Id,omitempty"` + ID *int64 `json:"Id,omitempty" url:"Id,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1165,11 +1165,11 @@ func (b *BillQueryRecord2BillApprovalsItem) GetEmail() *Email { return b.Email } -func (b *BillQueryRecord2BillApprovalsItem) GetId() *int64 { +func (b *BillQueryRecord2BillApprovalsItem) GetID() *int64 { if b == nil { return nil } - return b.Id + return b.ID } func (b *BillQueryRecord2BillApprovalsItem) GetExtraProperties() map[string]interface{} { @@ -1214,11 +1214,11 @@ func (b *BillQueryRecord2BillApprovalsItem) SetEmail(email *Email) { b.require(billQueryRecord2BillApprovalsItemFieldEmail) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillQueryRecord2BillApprovalsItem) SetId(id *int64) { - b.Id = id - b.require(billQueryRecord2BillApprovalsItemFieldId) +func (b *BillQueryRecord2BillApprovalsItem) SetID(id *int64) { + b.ID = id + b.require(billQueryRecord2BillApprovalsItemFieldID) } func (b *BillQueryRecord2BillApprovalsItem) UnmarshalJSON(data []byte) error { @@ -1866,7 +1866,7 @@ type Billitems = []*BillItem type Billstatus = int var ( - transactionOutQueryRecordFieldIdOut = big.NewInt(1 << 0) + transactionOutQueryRecordFieldIDOut = big.NewInt(1 << 0) transactionOutQueryRecordFieldCreatedAt = big.NewInt(1 << 1) transactionOutQueryRecordFieldComments = big.NewInt(1 << 2) transactionOutQueryRecordFieldVendor = big.NewInt(1 << 3) @@ -1879,24 +1879,24 @@ var ( transactionOutQueryRecordFieldFeeAmount = big.NewInt(1 << 10) transactionOutQueryRecordFieldSource = big.NewInt(1 << 11) transactionOutQueryRecordFieldParentOrgName = big.NewInt(1 << 12) - transactionOutQueryRecordFieldParentOrgId = big.NewInt(1 << 13) + transactionOutQueryRecordFieldParentOrgID = big.NewInt(1 << 13) transactionOutQueryRecordFieldBatchNumber = big.NewInt(1 << 14) transactionOutQueryRecordFieldPaymentStatus = big.NewInt(1 << 15) transactionOutQueryRecordFieldPaymentMethod = big.NewInt(1 << 16) transactionOutQueryRecordFieldCardToken = big.NewInt(1 << 17) transactionOutQueryRecordFieldCheckNumber = big.NewInt(1 << 18) transactionOutQueryRecordFieldCheckData = big.NewInt(1 << 19) - transactionOutQueryRecordFieldPaymentId = big.NewInt(1 << 20) + transactionOutQueryRecordFieldPaymentID = big.NewInt(1 << 20) transactionOutQueryRecordFieldPaymentData = big.NewInt(1 << 21) transactionOutQueryRecordFieldBills = big.NewInt(1 << 22) transactionOutQueryRecordFieldEvents = big.NewInt(1 << 23) - transactionOutQueryRecordFieldExternalPaypointId = big.NewInt(1 << 24) + transactionOutQueryRecordFieldExternalPaypointID = big.NewInt(1 << 24) transactionOutQueryRecordFieldEntryName = big.NewInt(1 << 25) transactionOutQueryRecordFieldGateway = big.NewInt(1 << 26) - transactionOutQueryRecordFieldBatchId = big.NewInt(1 << 27) + transactionOutQueryRecordFieldBatchID = big.NewInt(1 << 27) transactionOutQueryRecordFieldHasVcardTransactions = big.NewInt(1 << 28) transactionOutQueryRecordFieldIsSameDayAch = big.NewInt(1 << 29) - transactionOutQueryRecordFieldScheduleId = big.NewInt(1 << 30) + transactionOutQueryRecordFieldScheduleID = big.NewInt(1 << 30) transactionOutQueryRecordFieldSettlementStatus = big.NewInt(1 << 31) transactionOutQueryRecordFieldRiskFlagged = big.NewInt(1 << 32) transactionOutQueryRecordFieldRiskFlaggedOn = big.NewInt(1 << 33) @@ -1909,7 +1909,7 @@ var ( type TransactionOutQueryRecord struct { // Identifier of payout transaction. - IdOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` + IDOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` CreatedAt *CreatedAt `json:"CreatedAt,omitempty" url:"CreatedAt,omitempty"` // Any comment or description for payout transaction. Comments *Comments `json:"Comments,omitempty" url:"Comments,omitempty"` @@ -1927,7 +1927,7 @@ type TransactionOutQueryRecord struct { FeeAmount *FeeAmount `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` Source *Source `json:"Source,omitempty" url:"Source,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *Orgid `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *Orgid `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` // The batch number for the payout transaction. BatchNumber *string `json:"BatchNumber,omitempty" url:"BatchNumber,omitempty"` // Status of payout transaction. @@ -1939,20 +1939,20 @@ type TransactionOutQueryRecord struct { CheckNumber *string `json:"CheckNumber,omitempty" url:"CheckNumber,omitempty"` // Object referencing to paper check image. CheckData *FileContent `json:"CheckData,omitempty" url:"CheckData,omitempty"` - PaymentId *PaymentIdString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *PaymentIDString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Bills associated with this transaction. Bills []*BillPayOutData `json:"Bills,omitempty" url:"Bills,omitempty"` // Events associated with this transaction. Events []*QueryTransactionEvents `json:"Events,omitempty" url:"Events,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` EntryName *Entrypointfield `json:"EntryName,omitempty" url:"EntryName,omitempty"` Gateway *Gatewayfield `json:"Gateway,omitempty" url:"Gateway,omitempty"` // ID of the batch the transaction belongs to. - BatchId *string `json:"BatchId,omitempty" url:"BatchId,omitempty"` + BatchID *string `json:"BatchId,omitempty" url:"BatchId,omitempty"` HasVcardTransactions *HasVcardTransactions `json:"HasVcardTransactions,omitempty" url:"HasVcardTransactions,omitempty"` IsSameDayAch *IsSameDayAch `json:"IsSameDayACH,omitempty" url:"IsSameDayACH,omitempty"` - ScheduleId *ScheduleId `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` + ScheduleID *ScheduleID `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` SettlementStatus *SettlementStatusPayout `json:"SettlementStatus,omitempty" url:"SettlementStatus,omitempty"` RiskFlagged *RiskFlagged `json:"RiskFlagged,omitempty" url:"RiskFlagged,omitempty"` RiskFlaggedOn *RiskFlaggedOn `json:"RiskFlaggedOn,omitempty" url:"RiskFlaggedOn,omitempty"` @@ -1969,11 +1969,11 @@ type TransactionOutQueryRecord struct { rawJSON json.RawMessage } -func (t *TransactionOutQueryRecord) GetIdOut() *int64 { +func (t *TransactionOutQueryRecord) GetIDOut() *int64 { if t == nil { return nil } - return t.IdOut + return t.IDOut } func (t *TransactionOutQueryRecord) GetCreatedAt() *CreatedAt { @@ -2060,11 +2060,11 @@ func (t *TransactionOutQueryRecord) GetParentOrgName() *OrgParentName { return t.ParentOrgName } -func (t *TransactionOutQueryRecord) GetParentOrgId() *Orgid { +func (t *TransactionOutQueryRecord) GetParentOrgID() *Orgid { if t == nil { return nil } - return t.ParentOrgId + return t.ParentOrgID } func (t *TransactionOutQueryRecord) GetBatchNumber() *string { @@ -2109,11 +2109,11 @@ func (t *TransactionOutQueryRecord) GetCheckData() *FileContent { return t.CheckData } -func (t *TransactionOutQueryRecord) GetPaymentId() *PaymentIdString { +func (t *TransactionOutQueryRecord) GetPaymentID() *PaymentIDString { if t == nil { return nil } - return t.PaymentId + return t.PaymentID } func (t *TransactionOutQueryRecord) GetPaymentData() *QueryPaymentData { @@ -2137,11 +2137,11 @@ func (t *TransactionOutQueryRecord) GetEvents() []*QueryTransactionEvents { return t.Events } -func (t *TransactionOutQueryRecord) GetExternalPaypointId() *ExternalPaypointId { +func (t *TransactionOutQueryRecord) GetExternalPaypointID() *ExternalPaypointID { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransactionOutQueryRecord) GetEntryName() *Entrypointfield { @@ -2158,11 +2158,11 @@ func (t *TransactionOutQueryRecord) GetGateway() *Gatewayfield { return t.Gateway } -func (t *TransactionOutQueryRecord) GetBatchId() *string { +func (t *TransactionOutQueryRecord) GetBatchID() *string { if t == nil { return nil } - return t.BatchId + return t.BatchID } func (t *TransactionOutQueryRecord) GetHasVcardTransactions() *HasVcardTransactions { @@ -2179,11 +2179,11 @@ func (t *TransactionOutQueryRecord) GetIsSameDayAch() *IsSameDayAch { return t.IsSameDayAch } -func (t *TransactionOutQueryRecord) GetScheduleId() *ScheduleId { +func (t *TransactionOutQueryRecord) GetScheduleID() *ScheduleID { if t == nil { return nil } - return t.ScheduleId + return t.ScheduleID } func (t *TransactionOutQueryRecord) GetSettlementStatus() *SettlementStatusPayout { @@ -2256,11 +2256,11 @@ func (t *TransactionOutQueryRecord) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetIdOut sets the IdOut field and marks it as non-optional; +// SetIDOut sets the IDOut field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetIdOut(idOut *int64) { - t.IdOut = idOut - t.require(transactionOutQueryRecordFieldIdOut) +func (t *TransactionOutQueryRecord) SetIDOut(idOut *int64) { + t.IDOut = idOut + t.require(transactionOutQueryRecordFieldIDOut) } // SetCreatedAt sets the CreatedAt field and marks it as non-optional; @@ -2347,11 +2347,11 @@ func (t *TransactionOutQueryRecord) SetParentOrgName(parentOrgName *OrgParentNam t.require(transactionOutQueryRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetParentOrgId(parentOrgId *Orgid) { - t.ParentOrgId = parentOrgId - t.require(transactionOutQueryRecordFieldParentOrgId) +func (t *TransactionOutQueryRecord) SetParentOrgID(parentOrgID *Orgid) { + t.ParentOrgID = parentOrgID + t.require(transactionOutQueryRecordFieldParentOrgID) } // SetBatchNumber sets the BatchNumber field and marks it as non-optional; @@ -2396,11 +2396,11 @@ func (t *TransactionOutQueryRecord) SetCheckData(checkData *FileContent) { t.require(transactionOutQueryRecordFieldCheckData) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetPaymentId(paymentId *PaymentIdString) { - t.PaymentId = paymentId - t.require(transactionOutQueryRecordFieldPaymentId) +func (t *TransactionOutQueryRecord) SetPaymentID(paymentID *PaymentIDString) { + t.PaymentID = paymentID + t.require(transactionOutQueryRecordFieldPaymentID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -2424,11 +2424,11 @@ func (t *TransactionOutQueryRecord) SetEvents(events []*QueryTransactionEvents) t.require(transactionOutQueryRecordFieldEvents) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - t.ExternalPaypointId = externalPaypointId - t.require(transactionOutQueryRecordFieldExternalPaypointId) +func (t *TransactionOutQueryRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + t.ExternalPaypointID = externalPaypointID + t.require(transactionOutQueryRecordFieldExternalPaypointID) } // SetEntryName sets the EntryName field and marks it as non-optional; @@ -2445,11 +2445,11 @@ func (t *TransactionOutQueryRecord) SetGateway(gateway *Gatewayfield) { t.require(transactionOutQueryRecordFieldGateway) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetBatchId(batchId *string) { - t.BatchId = batchId - t.require(transactionOutQueryRecordFieldBatchId) +func (t *TransactionOutQueryRecord) SetBatchID(batchID *string) { + t.BatchID = batchID + t.require(transactionOutQueryRecordFieldBatchID) } // SetHasVcardTransactions sets the HasVcardTransactions field and marks it as non-optional; @@ -2466,11 +2466,11 @@ func (t *TransactionOutQueryRecord) SetIsSameDayAch(isSameDayAch *IsSameDayAch) t.require(transactionOutQueryRecordFieldIsSameDayAch) } -// SetScheduleId sets the ScheduleId field and marks it as non-optional; +// SetScheduleID sets the ScheduleID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionOutQueryRecord) SetScheduleId(scheduleId *ScheduleId) { - t.ScheduleId = scheduleId - t.require(transactionOutQueryRecordFieldScheduleId) +func (t *TransactionOutQueryRecord) SetScheduleID(scheduleID *ScheduleID) { + t.ScheduleID = scheduleID + t.require(transactionOutQueryRecordFieldScheduleID) } // SetSettlementStatus sets the SettlementStatus field and marks it as non-optional; @@ -2607,14 +2607,14 @@ var ( vendorDataResponseFieldBillingData = big.NewInt(1 << 16) vendorDataResponseFieldPaymentMethod = big.NewInt(1 << 17) vendorDataResponseFieldVendorStatus = big.NewInt(1 << 18) - vendorDataResponseFieldVendorId = big.NewInt(1 << 19) + vendorDataResponseFieldVendorID = big.NewInt(1 << 19) vendorDataResponseFieldEnrollmentStatus = big.NewInt(1 << 20) vendorDataResponseFieldSummary = big.NewInt(1 << 21) vendorDataResponseFieldPaypointLegalname = big.NewInt(1 << 22) vendorDataResponseFieldPaypointDbaname = big.NewInt(1 << 23) vendorDataResponseFieldPaypointEntryname = big.NewInt(1 << 24) vendorDataResponseFieldParentOrgName = big.NewInt(1 << 25) - vendorDataResponseFieldParentOrgId = big.NewInt(1 << 26) + vendorDataResponseFieldParentOrgID = big.NewInt(1 << 26) vendorDataResponseFieldCreatedDate = big.NewInt(1 << 27) vendorDataResponseFieldLastUpdated = big.NewInt(1 << 28) vendorDataResponseFieldRemitAddress1 = big.NewInt(1 << 29) @@ -2628,9 +2628,9 @@ var ( vendorDataResponseFieldCustomField1 = big.NewInt(1 << 37) vendorDataResponseFieldCustomField2 = big.NewInt(1 << 38) vendorDataResponseFieldCustomerVendorAccount = big.NewInt(1 << 39) - vendorDataResponseFieldInternalReferenceId = big.NewInt(1 << 40) + vendorDataResponseFieldInternalReferenceID = big.NewInt(1 << 40) vendorDataResponseFieldAdditionalData = big.NewInt(1 << 41) - vendorDataResponseFieldExternalPaypointId = big.NewInt(1 << 42) + vendorDataResponseFieldExternalPaypointID = big.NewInt(1 << 42) vendorDataResponseFieldStoredMethods = big.NewInt(1 << 43) ) @@ -2668,7 +2668,7 @@ type VendorDataResponse struct { // Preferred payment method for vendor. PaymentMethod VendorDataResponsePaymentMethod `json:"PaymentMethod" url:"PaymentMethod"` VendorStatus Vendorstatus `json:"VendorStatus" url:"VendorStatus"` - VendorId Vendorid `json:"VendorId" url:"VendorId"` + VendorID Vendorid `json:"VendorId" url:"VendorId"` // Vendor enrollment status EnrollmentStatus *string `json:"EnrollmentStatus,omitempty" url:"EnrollmentStatus,omitempty"` // Vendor bill summary statistics @@ -2682,7 +2682,7 @@ type VendorDataResponse struct { // Name of the parent organization ParentOrgName string `json:"ParentOrgName" url:"ParentOrgName"` // ID of the parent organization - ParentOrgId int `json:"ParentOrgId" url:"ParentOrgId"` + ParentOrgID int `json:"ParentOrgId" url:"ParentOrgId"` // Date when vendor was created CreatedDate time.Time `json:"CreatedDate" url:"CreatedDate"` // Date when vendor was last updated @@ -2701,10 +2701,10 @@ type VendorDataResponse struct { CustomField2 string `json:"customField2" url:"customField2"` // Account number of paypoint in the Vendor side. CustomerVendorAccount *string `json:"customerVendorAccount,omitempty" url:"customerVendorAccount,omitempty"` - InternalReferenceId InternalReferenceId `json:"InternalReferenceId" url:"InternalReferenceId"` + InternalReferenceID InternalReferenceID `json:"InternalReferenceId" url:"InternalReferenceId"` AdditionalData AdditionalDataMap `json:"additionalData" url:"additionalData"` // External paypoint identifier - ExternalPaypointId string `json:"externalPaypointID" url:"externalPaypointID"` + ExternalPaypointID string `json:"externalPaypointID" url:"externalPaypointID"` // Array of stored payment methods for vendor StoredMethods []*VendorResponseStoredMethod `json:"StoredMethods" url:"StoredMethods"` @@ -2848,11 +2848,11 @@ func (v *VendorDataResponse) GetVendorStatus() Vendorstatus { return v.VendorStatus } -func (v *VendorDataResponse) GetVendorId() Vendorid { +func (v *VendorDataResponse) GetVendorID() Vendorid { if v == nil { return 0 } - return v.VendorId + return v.VendorID } func (v *VendorDataResponse) GetEnrollmentStatus() *string { @@ -2897,11 +2897,11 @@ func (v *VendorDataResponse) GetParentOrgName() string { return v.ParentOrgName } -func (v *VendorDataResponse) GetParentOrgId() int { +func (v *VendorDataResponse) GetParentOrgID() int { if v == nil { return 0 } - return v.ParentOrgId + return v.ParentOrgID } func (v *VendorDataResponse) GetCreatedDate() time.Time { @@ -2995,11 +2995,11 @@ func (v *VendorDataResponse) GetCustomerVendorAccount() *string { return v.CustomerVendorAccount } -func (v *VendorDataResponse) GetInternalReferenceId() InternalReferenceId { +func (v *VendorDataResponse) GetInternalReferenceID() InternalReferenceID { if v == nil { return 0 } - return v.InternalReferenceId + return v.InternalReferenceID } func (v *VendorDataResponse) GetAdditionalData() AdditionalDataMap { @@ -3009,11 +3009,11 @@ func (v *VendorDataResponse) GetAdditionalData() AdditionalDataMap { return v.AdditionalData } -func (v *VendorDataResponse) GetExternalPaypointId() string { +func (v *VendorDataResponse) GetExternalPaypointID() string { if v == nil { return "" } - return v.ExternalPaypointId + return v.ExternalPaypointID } func (v *VendorDataResponse) GetStoredMethods() []*VendorResponseStoredMethod { @@ -3170,11 +3170,11 @@ func (v *VendorDataResponse) SetVendorStatus(vendorStatus Vendorstatus) { v.require(vendorDataResponseFieldVendorStatus) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorDataResponse) SetVendorId(vendorId Vendorid) { - v.VendorId = vendorId - v.require(vendorDataResponseFieldVendorId) +func (v *VendorDataResponse) SetVendorID(vendorID Vendorid) { + v.VendorID = vendorID + v.require(vendorDataResponseFieldVendorID) } // SetEnrollmentStatus sets the EnrollmentStatus field and marks it as non-optional; @@ -3219,11 +3219,11 @@ func (v *VendorDataResponse) SetParentOrgName(parentOrgName string) { v.require(vendorDataResponseFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorDataResponse) SetParentOrgId(parentOrgId int) { - v.ParentOrgId = parentOrgId - v.require(vendorDataResponseFieldParentOrgId) +func (v *VendorDataResponse) SetParentOrgID(parentOrgID int) { + v.ParentOrgID = parentOrgID + v.require(vendorDataResponseFieldParentOrgID) } // SetCreatedDate sets the CreatedDate field and marks it as non-optional; @@ -3317,11 +3317,11 @@ func (v *VendorDataResponse) SetCustomerVendorAccount(customerVendorAccount *str v.require(vendorDataResponseFieldCustomerVendorAccount) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorDataResponse) SetInternalReferenceId(internalReferenceId InternalReferenceId) { - v.InternalReferenceId = internalReferenceId - v.require(vendorDataResponseFieldInternalReferenceId) +func (v *VendorDataResponse) SetInternalReferenceID(internalReferenceID InternalReferenceID) { + v.InternalReferenceID = internalReferenceID + v.require(vendorDataResponseFieldInternalReferenceID) } // SetAdditionalData sets the AdditionalData field and marks it as non-optional; @@ -3331,11 +3331,11 @@ func (v *VendorDataResponse) SetAdditionalData(additionalData AdditionalDataMap) v.require(vendorDataResponseFieldAdditionalData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorDataResponse) SetExternalPaypointId(externalPaypointId string) { - v.ExternalPaypointId = externalPaypointId - v.require(vendorDataResponseFieldExternalPaypointId) +func (v *VendorDataResponse) SetExternalPaypointID(externalPaypointID string) { + v.ExternalPaypointID = externalPaypointID + v.require(vendorDataResponseFieldExternalPaypointID) } // SetStoredMethods sets the StoredMethods field and marks it as non-optional; @@ -3439,7 +3439,7 @@ var ( vendorOutDataFieldCustomerVendorAccount = big.NewInt(1 << 7) vendorOutDataFieldEin = big.NewInt(1 << 8) vendorOutDataFieldEmail = big.NewInt(1 << 9) - vendorOutDataFieldInternalReferenceId = big.NewInt(1 << 10) + vendorOutDataFieldInternalReferenceID = big.NewInt(1 << 10) vendorOutDataFieldLocationCode = big.NewInt(1 << 11) vendorOutDataFieldMcc = big.NewInt(1 << 12) vendorOutDataFieldName1 = big.NewInt(1 << 13) @@ -3455,7 +3455,7 @@ var ( vendorOutDataFieldRemitState = big.NewInt(1 << 23) vendorOutDataFieldRemitZip = big.NewInt(1 << 24) vendorOutDataFieldState = big.NewInt(1 << 25) - vendorOutDataFieldVendorId = big.NewInt(1 << 26) + vendorOutDataFieldVendorID = big.NewInt(1 << 26) vendorOutDataFieldVendorNumber = big.NewInt(1 << 27) vendorOutDataFieldVendorStatus = big.NewInt(1 << 28) vendorOutDataFieldZip = big.NewInt(1 << 29) @@ -3482,7 +3482,7 @@ type VendorOutData struct { // Vendor's email address. Required for vCard. Email *Email `json:"Email,omitempty" url:"Email,omitempty"` // Internal identifier for global vendor account. - InternalReferenceId *int64 `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` + InternalReferenceID *int64 `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` LocationCode *LocationCode `json:"LocationCode,omitempty" url:"LocationCode,omitempty"` Mcc *Mcc `json:"Mcc,omitempty" url:"Mcc,omitempty"` // Primary name for vendor. Required for new vendor. Allowed characters are letters, numbers, spaces, and `. , ' & ( ) @@ -3503,7 +3503,7 @@ type VendorOutData struct { // Vendor's state or province. Must be a valid US state or Canadian province abbreviation, depending on the `Country` value. State string `json:"State" url:"State"` // Payabli identifier for vendor record. Required when `VendorNumber` isn't included. - VendorId *Vendorid `json:"VendorId,omitempty" url:"VendorId,omitempty"` + VendorID *Vendorid `json:"VendorId,omitempty" url:"VendorId,omitempty"` VendorNumber *VendorNumber `json:"VendorNumber,omitempty" url:"VendorNumber,omitempty"` VendorStatus *Vendorstatus `json:"VendorStatus,omitempty" url:"VendorStatus,omitempty"` // Vendor's ZIP or postal code. For US addresses, five digits (`12345`) or ZIP+4 format (`12345-6789`). @@ -3586,11 +3586,11 @@ func (v *VendorOutData) GetEmail() *Email { return v.Email } -func (v *VendorOutData) GetInternalReferenceId() *int64 { +func (v *VendorOutData) GetInternalReferenceID() *int64 { if v == nil { return nil } - return v.InternalReferenceId + return v.InternalReferenceID } func (v *VendorOutData) GetLocationCode() *LocationCode { @@ -3698,11 +3698,11 @@ func (v *VendorOutData) GetState() string { return v.State } -func (v *VendorOutData) GetVendorId() *Vendorid { +func (v *VendorOutData) GetVendorID() *Vendorid { if v == nil { return nil } - return v.VendorId + return v.VendorID } func (v *VendorOutData) GetVendorNumber() *VendorNumber { @@ -3810,11 +3810,11 @@ func (v *VendorOutData) SetEmail(email *Email) { v.require(vendorOutDataFieldEmail) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorOutData) SetInternalReferenceId(internalReferenceId *int64) { - v.InternalReferenceId = internalReferenceId - v.require(vendorOutDataFieldInternalReferenceId) +func (v *VendorOutData) SetInternalReferenceID(internalReferenceID *int64) { + v.InternalReferenceID = internalReferenceID + v.require(vendorOutDataFieldInternalReferenceID) } // SetLocationCode sets the LocationCode field and marks it as non-optional; @@ -3922,11 +3922,11 @@ func (v *VendorOutData) SetState(state string) { v.require(vendorOutDataFieldState) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorOutData) SetVendorId(vendorId *Vendorid) { - v.VendorId = vendorId - v.require(vendorOutDataFieldVendorId) +func (v *VendorOutData) SetVendorID(vendorID *Vendorid) { + v.VendorID = vendorID + v.require(vendorOutDataFieldVendorID) } // SetVendorNumber sets the VendorNumber field and marks it as non-optional; @@ -4412,12 +4412,12 @@ func (b *BillOutData) String() string { } var ( - billOutDataScheduledOptionsFieldStoredMethodId = big.NewInt(1 << 0) + billOutDataScheduledOptionsFieldStoredMethodID = big.NewInt(1 << 0) ) type BillOutDataScheduledOptions struct { // The ID of the stored payment method to use for the bill. - StoredMethodId *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -4426,11 +4426,11 @@ type BillOutDataScheduledOptions struct { rawJSON json.RawMessage } -func (b *BillOutDataScheduledOptions) GetStoredMethodId() *string { +func (b *BillOutDataScheduledOptions) GetStoredMethodID() *string { if b == nil { return nil } - return b.StoredMethodId + return b.StoredMethodID } func (b *BillOutDataScheduledOptions) GetExtraProperties() map[string]interface{} { @@ -4447,11 +4447,11 @@ func (b *BillOutDataScheduledOptions) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillOutDataScheduledOptions) SetStoredMethodId(storedMethodId *string) { - b.StoredMethodId = storedMethodId - b.require(billOutDataScheduledOptionsFieldStoredMethodId) +func (b *BillOutDataScheduledOptions) SetStoredMethodID(storedMethodID *string) { + b.StoredMethodID = storedMethodID + b.require(billOutDataScheduledOptionsFieldStoredMethodID) } func (b *BillOutDataScheduledOptions) UnmarshalJSON(data []byte) error { @@ -4499,7 +4499,7 @@ func (b *BillOutDataScheduledOptions) String() string { var ( billResponseFieldResponseCode = big.NewInt(1 << 0) billResponseFieldPageIdentifier = big.NewInt(1 << 1) - billResponseFieldRoomId = big.NewInt(1 << 2) + billResponseFieldRoomID = big.NewInt(1 << 2) billResponseFieldIsSuccess = big.NewInt(1 << 3) billResponseFieldResponseText = big.NewInt(1 << 4) billResponseFieldResponseData = big.NewInt(1 << 5) @@ -4508,7 +4508,7 @@ var ( type BillResponse struct { ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId *RoomIdNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *RoomIDNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // If `isSuccess` = true, this contains the bill identifier. If `isSuccess` = false, this contains the reason for the error. @@ -4535,11 +4535,11 @@ func (b *BillResponse) GetPageIdentifier() *PageIdentifier { return b.PageIdentifier } -func (b *BillResponse) GetRoomId() *RoomIdNotInUse { +func (b *BillResponse) GetRoomID() *RoomIDNotInUse { if b == nil { return nil } - return b.RoomId + return b.RoomID } func (b *BillResponse) GetIsSuccess() *IsSuccess { @@ -4591,11 +4591,11 @@ func (b *BillResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { b.require(billResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponse) SetRoomId(roomId *RoomIdNotInUse) { - b.RoomId = roomId - b.require(billResponseFieldRoomId) +func (b *BillResponse) SetRoomID(roomID *RoomIDNotInUse) { + b.RoomID = roomID + b.require(billResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -4662,7 +4662,7 @@ func (b *BillResponse) String() string { } var ( - billResponseDataFieldIdBill = big.NewInt(1 << 0) + billResponseDataFieldIDBill = big.NewInt(1 << 0) billResponseDataFieldBillNumber = big.NewInt(1 << 1) billResponseDataFieldNetAmount = big.NewInt(1 << 2) billResponseDataFieldDiscount = big.NewInt(1 << 3) @@ -4674,7 +4674,7 @@ var ( billResponseDataFieldBillItems = big.NewInt(1 << 9) billResponseDataFieldMode = big.NewInt(1 << 10) billResponseDataFieldPaymentMethod = big.NewInt(1 << 11) - billResponseDataFieldPaymentId = big.NewInt(1 << 12) + billResponseDataFieldPaymentID = big.NewInt(1 << 12) billResponseDataFieldAccountingField1 = big.NewInt(1 << 13) billResponseDataFieldAccountingField2 = big.NewInt(1 << 14) billResponseDataFieldTerms = big.NewInt(1 << 15) @@ -4691,18 +4691,18 @@ var ( billResponseDataFieldBillApprovals = big.NewInt(1 << 26) billResponseDataFieldPaypointLegalname = big.NewInt(1 << 27) billResponseDataFieldPaypointDbaname = big.NewInt(1 << 28) - billResponseDataFieldParentOrgId = big.NewInt(1 << 29) + billResponseDataFieldParentOrgID = big.NewInt(1 << 29) billResponseDataFieldParentOrgName = big.NewInt(1 << 30) billResponseDataFieldPaypointEntryname = big.NewInt(1 << 31) - billResponseDataFieldPaylinkId = big.NewInt(1 << 32) + billResponseDataFieldPaylinkID = big.NewInt(1 << 32) billResponseDataFieldDocumentsRef = big.NewInt(1 << 33) - billResponseDataFieldExternalPaypointId = big.NewInt(1 << 34) + billResponseDataFieldExternalPaypointID = big.NewInt(1 << 34) billResponseDataFieldLotNumber = big.NewInt(1 << 35) - billResponseDataFieldEntityId = big.NewInt(1 << 36) + billResponseDataFieldEntityID = big.NewInt(1 << 36) ) type BillResponseData struct { - IdBill *BillId `json:"IdBill,omitempty" url:"IdBill,omitempty"` + IDBill *BillID `json:"IdBill,omitempty" url:"IdBill,omitempty"` // Unique identifier for the bill. BillNumber *string `json:"BillNumber,omitempty" url:"BillNumber,omitempty"` // Net amount owed in bill. @@ -4726,7 +4726,7 @@ type BillResponseData struct { // Payment method used for the bill. PaymentMethod *string `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` // Payment ID associated with the bill. - PaymentId *string `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *string `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` AccountingField1 *AccountingField `json:"AccountingField1,omitempty" url:"AccountingField1,omitempty"` AccountingField2 *AccountingField `json:"AccountingField2,omitempty" url:"AccountingField2,omitempty"` Terms *Terms `json:"Terms,omitempty" url:"Terms,omitempty"` @@ -4747,16 +4747,16 @@ type BillResponseData struct { BillApprovals *BillApprovals `json:"billApprovals,omitempty" url:"billApprovals,omitempty"` PaypointLegalname *Legalname `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` - PaylinkId *PaylinkId `json:"paylinkId,omitempty" url:"paylinkId,omitempty"` + PaylinkID *PaylinkID `json:"paylinkId,omitempty" url:"paylinkId,omitempty"` // Object with the attached documents. DocumentsRef *DocumentsRef `json:"DocumentsRef,omitempty" url:"DocumentsRef,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Lot number of the bill. LotNumber *string `json:"LotNumber,omitempty" url:"LotNumber,omitempty"` - EntityId *EntityId `json:"EntityID,omitempty" url:"EntityID,omitempty"` + EntityID *EntityID `json:"EntityID,omitempty" url:"EntityID,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -4765,11 +4765,11 @@ type BillResponseData struct { rawJSON json.RawMessage } -func (b *BillResponseData) GetIdBill() *BillId { +func (b *BillResponseData) GetIDBill() *BillID { if b == nil { return nil } - return b.IdBill + return b.IDBill } func (b *BillResponseData) GetBillNumber() *string { @@ -4849,11 +4849,11 @@ func (b *BillResponseData) GetPaymentMethod() *string { return b.PaymentMethod } -func (b *BillResponseData) GetPaymentId() *string { +func (b *BillResponseData) GetPaymentID() *string { if b == nil { return nil } - return b.PaymentId + return b.PaymentID } func (b *BillResponseData) GetAccountingField1() *AccountingField { @@ -4968,11 +4968,11 @@ func (b *BillResponseData) GetPaypointDbaname() *Dbaname { return b.PaypointDbaname } -func (b *BillResponseData) GetParentOrgId() *OrgParentId { +func (b *BillResponseData) GetParentOrgID() *OrgParentID { if b == nil { return nil } - return b.ParentOrgId + return b.ParentOrgID } func (b *BillResponseData) GetParentOrgName() *OrgParentName { @@ -4989,11 +4989,11 @@ func (b *BillResponseData) GetPaypointEntryname() *Entrypointfield { return b.PaypointEntryname } -func (b *BillResponseData) GetPaylinkId() *PaylinkId { +func (b *BillResponseData) GetPaylinkID() *PaylinkID { if b == nil { return nil } - return b.PaylinkId + return b.PaylinkID } func (b *BillResponseData) GetDocumentsRef() *DocumentsRef { @@ -5003,11 +5003,11 @@ func (b *BillResponseData) GetDocumentsRef() *DocumentsRef { return b.DocumentsRef } -func (b *BillResponseData) GetExternalPaypointId() *ExternalPaypointId { +func (b *BillResponseData) GetExternalPaypointID() *ExternalPaypointID { if b == nil { return nil } - return b.ExternalPaypointId + return b.ExternalPaypointID } func (b *BillResponseData) GetLotNumber() *string { @@ -5017,11 +5017,11 @@ func (b *BillResponseData) GetLotNumber() *string { return b.LotNumber } -func (b *BillResponseData) GetEntityId() *EntityId { +func (b *BillResponseData) GetEntityID() *EntityID { if b == nil { return nil } - return b.EntityId + return b.EntityID } func (b *BillResponseData) GetExtraProperties() map[string]interface{} { @@ -5038,11 +5038,11 @@ func (b *BillResponseData) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetIdBill sets the IdBill field and marks it as non-optional; +// SetIDBill sets the IDBill field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetIdBill(idBill *BillId) { - b.IdBill = idBill - b.require(billResponseDataFieldIdBill) +func (b *BillResponseData) SetIDBill(idBill *BillID) { + b.IDBill = idBill + b.require(billResponseDataFieldIDBill) } // SetBillNumber sets the BillNumber field and marks it as non-optional; @@ -5122,11 +5122,11 @@ func (b *BillResponseData) SetPaymentMethod(paymentMethod *string) { b.require(billResponseDataFieldPaymentMethod) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetPaymentId(paymentId *string) { - b.PaymentId = paymentId - b.require(billResponseDataFieldPaymentId) +func (b *BillResponseData) SetPaymentID(paymentID *string) { + b.PaymentID = paymentID + b.require(billResponseDataFieldPaymentID) } // SetAccountingField1 sets the AccountingField1 field and marks it as non-optional; @@ -5241,11 +5241,11 @@ func (b *BillResponseData) SetPaypointDbaname(paypointDbaname *Dbaname) { b.require(billResponseDataFieldPaypointDbaname) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetParentOrgId(parentOrgId *OrgParentId) { - b.ParentOrgId = parentOrgId - b.require(billResponseDataFieldParentOrgId) +func (b *BillResponseData) SetParentOrgID(parentOrgID *OrgParentID) { + b.ParentOrgID = parentOrgID + b.require(billResponseDataFieldParentOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -5262,11 +5262,11 @@ func (b *BillResponseData) SetPaypointEntryname(paypointEntryname *Entrypointfie b.require(billResponseDataFieldPaypointEntryname) } -// SetPaylinkId sets the PaylinkId field and marks it as non-optional; +// SetPaylinkID sets the PaylinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetPaylinkId(paylinkId *PaylinkId) { - b.PaylinkId = paylinkId - b.require(billResponseDataFieldPaylinkId) +func (b *BillResponseData) SetPaylinkID(paylinkID *PaylinkID) { + b.PaylinkID = paylinkID + b.require(billResponseDataFieldPaylinkID) } // SetDocumentsRef sets the DocumentsRef field and marks it as non-optional; @@ -5276,11 +5276,11 @@ func (b *BillResponseData) SetDocumentsRef(documentsRef *DocumentsRef) { b.require(billResponseDataFieldDocumentsRef) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - b.ExternalPaypointId = externalPaypointId - b.require(billResponseDataFieldExternalPaypointId) +func (b *BillResponseData) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + b.ExternalPaypointID = externalPaypointID + b.require(billResponseDataFieldExternalPaypointID) } // SetLotNumber sets the LotNumber field and marks it as non-optional; @@ -5290,11 +5290,11 @@ func (b *BillResponseData) SetLotNumber(lotNumber *string) { b.require(billResponseDataFieldLotNumber) } -// SetEntityId sets the EntityId field and marks it as non-optional; +// SetEntityID sets the EntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillResponseData) SetEntityId(entityId *EntityId) { - b.EntityId = entityId - b.require(billResponseDataFieldEntityId) +func (b *BillResponseData) SetEntityID(entityID *EntityID) { + b.EntityID = entityID + b.require(billResponseDataFieldEntityID) } func (b *BillResponseData) UnmarshalJSON(data []byte) error { @@ -5366,7 +5366,7 @@ func (b *BillResponseData) String() string { var ( editBillResponseFieldResponseCode = big.NewInt(1 << 0) editBillResponseFieldPageIdentifier = big.NewInt(1 << 1) - editBillResponseFieldRoomId = big.NewInt(1 << 2) + editBillResponseFieldRoomID = big.NewInt(1 << 2) editBillResponseFieldIsSuccess = big.NewInt(1 << 3) editBillResponseFieldResponseText = big.NewInt(1 << 4) editBillResponseFieldResponseData = big.NewInt(1 << 5) @@ -5375,7 +5375,7 @@ var ( type EditBillResponse struct { ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId *RoomIdNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *RoomIDNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // If `isSuccess` = true, this contains the bill identifier. If `isSuccess` = false, this contains the reason for the error. @@ -5402,11 +5402,11 @@ func (e *EditBillResponse) GetPageIdentifier() *PageIdentifier { return e.PageIdentifier } -func (e *EditBillResponse) GetRoomId() *RoomIdNotInUse { +func (e *EditBillResponse) GetRoomID() *RoomIDNotInUse { if e == nil { return nil } - return e.RoomId + return e.RoomID } func (e *EditBillResponse) GetIsSuccess() *IsSuccess { @@ -5458,11 +5458,11 @@ func (e *EditBillResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { e.require(editBillResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (e *EditBillResponse) SetRoomId(roomId *RoomIdNotInUse) { - e.RoomId = roomId - e.require(editBillResponseFieldRoomId) +func (e *EditBillResponse) SetRoomID(roomID *RoomIDNotInUse) { + e.RoomID = roomID + e.require(editBillResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -5532,7 +5532,7 @@ func (e *EditBillResponse) String() string { var ( getBillResponseFieldResponseCode = big.NewInt(1 << 0) getBillResponseFieldPageIdentifier = big.NewInt(1 << 1) - getBillResponseFieldRoomId = big.NewInt(1 << 2) + getBillResponseFieldRoomID = big.NewInt(1 << 2) getBillResponseFieldIsSuccess = big.NewInt(1 << 3) getBillResponseFieldResponseText = big.NewInt(1 << 4) getBillResponseFieldResponseData = big.NewInt(1 << 5) @@ -5541,7 +5541,7 @@ var ( type GetBillResponse struct { ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId *RoomIdNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *RoomIDNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *BillResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` @@ -5567,11 +5567,11 @@ func (g *GetBillResponse) GetPageIdentifier() *PageIdentifier { return g.PageIdentifier } -func (g *GetBillResponse) GetRoomId() *RoomIdNotInUse { +func (g *GetBillResponse) GetRoomID() *RoomIDNotInUse { if g == nil { return nil } - return g.RoomId + return g.RoomID } func (g *GetBillResponse) GetIsSuccess() *IsSuccess { @@ -5623,11 +5623,11 @@ func (g *GetBillResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { g.require(getBillResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBillResponse) SetRoomId(roomId *RoomIdNotInUse) { - g.RoomId = roomId - g.require(getBillResponseFieldRoomId) +func (g *GetBillResponse) SetRoomID(roomID *RoomIDNotInUse) { + g.RoomID = roomID + g.require(getBillResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; diff --git a/bill/client.go b/bill/client.go index 54b3b95..18bd61b 100644 --- a/bill/client.go +++ b/bill/client.go @@ -203,13 +203,13 @@ func (c *Client) ListBills( func (c *Client) ListBillsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBillsOrgRequest, opts ...option.RequestOption, ) (*payabli.BillQueryResponse, error) { response, err := c.WithRawResponse.ListBillsOrg( ctx, - orgId, + orgID, request, opts..., ) diff --git a/bill/raw_client.go b/bill/raw_client.go index c199c6f..5daeb8d 100644 --- a/bill/raw_client.go +++ b/bill/raw_client.go @@ -411,7 +411,7 @@ func (r *RawClient) ListBills( func (r *RawClient) ListBillsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBillsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.BillQueryResponse], error) { @@ -423,7 +423,7 @@ func (r *RawClient) ListBillsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/bills/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/bill_test.go b/bill_test.go index 8fff214..66d7de0 100644 --- a/bill_test.go +++ b/bill_test.go @@ -797,19 +797,19 @@ func TestSettersBillQueryRecord2(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntityId", func(t *testing.T) { + t.Run("SetEntityID", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValueEntityId *string - obj.SetEntityId(fernTestValueEntityId) - assert.Equal(t, fernTestValueEntityId, obj.EntityId) + var fernTestValueEntityID *string + obj.SetEntityID(fernTestValueEntityID) + assert.Equal(t, fernTestValueEntityID, obj.EntityID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -821,11 +821,11 @@ func TestSettersBillQueryRecord2(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdBill", func(t *testing.T) { + t.Run("SetIDBill", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValueIdBill *int64 - obj.SetIdBill(fernTestValueIdBill) - assert.Equal(t, fernTestValueIdBill, obj.IdBill) + var fernTestValueIDBill *int64 + obj.SetIDBill(fernTestValueIDBill) + assert.Equal(t, fernTestValueIDBill, obj.IDBill) assert.NotNil(t, obj.explicitFields) }) @@ -861,11 +861,11 @@ func TestSettersBillQueryRecord2(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValueParentOrgId *int64 - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int64 + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -877,11 +877,11 @@ func TestSettersBillQueryRecord2(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValuePaymentId *PaymentIdString - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *PaymentIDString + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) @@ -893,11 +893,11 @@ func TestSettersBillQueryRecord2(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaylinkId", func(t *testing.T) { + t.Run("SetPaylinkID", func(t *testing.T) { obj := &BillQueryRecord2{} - var fernTestValuePaylinkId *string - obj.SetPaylinkId(fernTestValuePaylinkId) - assert.Equal(t, fernTestValuePaylinkId, obj.PaylinkId) + var fernTestValuePaylinkID *string + obj.SetPaylinkID(fernTestValuePaylinkID) + assert.Equal(t, fernTestValuePaylinkID, obj.PaylinkID) assert.NotNil(t, obj.explicitFields) }) @@ -1471,28 +1471,28 @@ func TestGettersBillQueryRecord2(t *testing.T) { _ = obj.GetEndDate() // Should return zero value }) - t.Run("GetEntityId", func(t *testing.T) { + t.Run("GetEntityID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} var expected *string - obj.EntityId = expected + obj.EntityID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntityId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntityID(), "getter should return the property value") }) - t.Run("GetEntityId_NilValue", func(t *testing.T) { + t.Run("GetEntityID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.EntityId = nil + obj.EntityID = nil // Act & Assert - assert.Nil(t, obj.GetEntityId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntityID(), "getter should return nil when property is nil") }) - t.Run("GetEntityId_NilReceiver", func(t *testing.T) { + t.Run("GetEntityID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1501,31 +1501,31 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntityId() // Should return zero value + _ = obj.GetEntityID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1534,7 +1534,7 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetFrequency", func(t *testing.T) { @@ -1570,28 +1570,28 @@ func TestGettersBillQueryRecord2(t *testing.T) { _ = obj.GetFrequency() // Should return zero value }) - t.Run("GetIdBill", func(t *testing.T) { + t.Run("GetIDBill", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} var expected *int64 - obj.IdBill = expected + obj.IDBill = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdBill(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDBill(), "getter should return the property value") }) - t.Run("GetIdBill_NilValue", func(t *testing.T) { + t.Run("GetIDBill_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.IdBill = nil + obj.IDBill = nil // Act & Assert - assert.Nil(t, obj.GetIdBill(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDBill(), "getter should return nil when property is nil") }) - t.Run("GetIdBill_NilReceiver", func(t *testing.T) { + t.Run("GetIDBill_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1600,7 +1600,7 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdBill() // Should return zero value + _ = obj.GetIDBill() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -1735,28 +1735,28 @@ func TestGettersBillQueryRecord2(t *testing.T) { _ = obj.GetNetAmount() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} var expected *int64 - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1765,7 +1765,7 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -1801,28 +1801,28 @@ func TestGettersBillQueryRecord2(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var expected *PaymentIdString - obj.PaymentId = expected + var expected *PaymentIDString + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1831,7 +1831,7 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) t.Run("GetPaymentMethod", func(t *testing.T) { @@ -1867,28 +1867,28 @@ func TestGettersBillQueryRecord2(t *testing.T) { _ = obj.GetPaymentMethod() // Should return zero value }) - t.Run("GetPaylinkId", func(t *testing.T) { + t.Run("GetPaylinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} var expected *string - obj.PaylinkId = expected + obj.PaylinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaylinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaylinkID(), "getter should return the property value") }) - t.Run("GetPaylinkId_NilValue", func(t *testing.T) { + t.Run("GetPaylinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - obj.PaylinkId = nil + obj.PaylinkID = nil // Act & Assert - assert.Nil(t, obj.GetPaylinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaylinkID(), "getter should return nil when property is nil") }) - t.Run("GetPaylinkId_NilReceiver", func(t *testing.T) { + t.Run("GetPaylinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2 // Should not panic - getters should handle nil receiver gracefully @@ -1897,7 +1897,7 @@ func TestGettersBillQueryRecord2(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaylinkId() // Should return zero value + _ = obj.GetPaylinkID() // Should return zero value }) t.Run("GetPaypointDbaname", func(t *testing.T) { @@ -2665,14 +2665,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValueEntityId *string + var fernTestValueEntityID *string // Act - obj.SetEntityId(fernTestValueEntityId) + obj.SetEntityID(fernTestValueEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2696,14 +2696,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2758,14 +2758,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdBill_MarksExplicit", func(t *testing.T) { + t.Run("SetIDBill_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValueIdBill *int64 + var fernTestValueIDBill *int64 // Act - obj.SetIdBill(fernTestValueIdBill) + obj.SetIDBill(fernTestValueIDBill) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2913,14 +2913,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValueParentOrgId *int64 + var fernTestValueParentOrgID *int64 // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2975,14 +2975,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValuePaymentId *PaymentIdString + var fernTestValuePaymentID *PaymentIDString // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3037,14 +3037,14 @@ func TestSettersMarkExplicitBillQueryRecord2(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaylinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaylinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2{} - var fernTestValuePaylinkId *string + var fernTestValuePaylinkID *string // Act - obj.SetPaylinkId(fernTestValuePaylinkId) + obj.SetPaylinkID(fernTestValuePaylinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3382,11 +3382,11 @@ func TestSettersBillQueryRecord2BillApprovalsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BillQueryRecord2BillApprovalsItem{} - var fernTestValueId *int64 - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int64 + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -3525,28 +3525,28 @@ func TestGettersBillQueryRecord2BillApprovalsItem(t *testing.T) { _ = obj.GetEmail() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2BillApprovalsItem{} var expected *int64 - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2BillApprovalsItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillQueryRecord2BillApprovalsItem // Should not panic - getters should handle nil receiver gracefully @@ -3555,7 +3555,7 @@ func TestGettersBillQueryRecord2BillApprovalsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) } @@ -3685,14 +3685,14 @@ func TestSettersMarkExplicitBillQueryRecord2BillApprovalsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillQueryRecord2BillApprovalsItem{} - var fernTestValueId *int64 + var fernTestValueID *int64 // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5537,11 +5537,11 @@ func TestSettersMarkExplicitBillQueryResponseSummary(t *testing.T) { } func TestSettersTransactionOutQueryRecord(t *testing.T) { - t.Run("SetIdOut", func(t *testing.T) { + t.Run("SetIDOut", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValueIdOut *int64 - obj.SetIdOut(fernTestValueIdOut) - assert.Equal(t, fernTestValueIdOut, obj.IdOut) + var fernTestValueIDOut *int64 + obj.SetIDOut(fernTestValueIDOut) + assert.Equal(t, fernTestValueIDOut, obj.IDOut) assert.NotNil(t, obj.explicitFields) }) @@ -5641,11 +5641,11 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValueParentOrgId *Orgid - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *Orgid + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -5697,11 +5697,11 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValuePaymentId *PaymentIdString - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *PaymentIDString + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) @@ -5729,11 +5729,11 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -5753,11 +5753,11 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValueBatchId *string - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID *string + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -5777,11 +5777,11 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScheduleId", func(t *testing.T) { + t.Run("SetScheduleID", func(t *testing.T) { obj := &TransactionOutQueryRecord{} - var fernTestValueScheduleId *ScheduleId - obj.SetScheduleId(fernTestValueScheduleId) - assert.Equal(t, fernTestValueScheduleId, obj.ScheduleId) + var fernTestValueScheduleID *ScheduleID + obj.SetScheduleID(fernTestValueScheduleID) + assert.Equal(t, fernTestValueScheduleID, obj.ScheduleID) assert.NotNil(t, obj.explicitFields) }) @@ -5852,28 +5852,28 @@ func TestSettersTransactionOutQueryRecord(t *testing.T) { } func TestGettersTransactionOutQueryRecord(t *testing.T) { - t.Run("GetIdOut", func(t *testing.T) { + t.Run("GetIDOut", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} var expected *int64 - obj.IdOut = expected + obj.IDOut = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOut(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOut(), "getter should return the property value") }) - t.Run("GetIdOut_NilValue", func(t *testing.T) { + t.Run("GetIDOut_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.IdOut = nil + obj.IDOut = nil // Act & Assert - assert.Nil(t, obj.GetIdOut(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOut(), "getter should return nil when property is nil") }) - t.Run("GetIdOut_NilReceiver", func(t *testing.T) { + t.Run("GetIDOut_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -5882,7 +5882,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOut() // Should return zero value + _ = obj.GetIDOut() // Should return zero value }) t.Run("GetCreatedAt", func(t *testing.T) { @@ -6281,28 +6281,28 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} var expected *Orgid - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -6311,7 +6311,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetBatchNumber", func(t *testing.T) { @@ -6512,28 +6512,28 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { _ = obj.GetCheckData() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var expected *PaymentIdString - obj.PaymentId = expected + var expected *PaymentIDString + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -6542,7 +6542,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -6644,28 +6644,28 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { _ = obj.GetEvents() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -6674,7 +6674,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetEntryName", func(t *testing.T) { @@ -6743,28 +6743,28 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { _ = obj.GetGateway() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} var expected *string - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilValue", func(t *testing.T) { + t.Run("GetBatchID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.BatchId = nil + obj.BatchID = nil // Act & Assert - assert.Nil(t, obj.GetBatchId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBatchID(), "getter should return nil when property is nil") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -6773,7 +6773,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetHasVcardTransactions", func(t *testing.T) { @@ -6842,28 +6842,28 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { _ = obj.GetIsSameDayAch() // Should return zero value }) - t.Run("GetScheduleId", func(t *testing.T) { + t.Run("GetScheduleID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var expected *ScheduleId - obj.ScheduleId = expected + var expected *ScheduleID + obj.ScheduleID = expected // Act & Assert - assert.Equal(t, expected, obj.GetScheduleId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScheduleID(), "getter should return the property value") }) - t.Run("GetScheduleId_NilValue", func(t *testing.T) { + t.Run("GetScheduleID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - obj.ScheduleId = nil + obj.ScheduleID = nil // Act & Assert - assert.Nil(t, obj.GetScheduleId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScheduleID(), "getter should return nil when property is nil") }) - t.Run("GetScheduleId_NilReceiver", func(t *testing.T) { + t.Run("GetScheduleID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionOutQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -6872,7 +6872,7 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScheduleId() // Should return zero value + _ = obj.GetScheduleID() // Should return zero value }) t.Run("GetSettlementStatus", func(t *testing.T) { @@ -7142,14 +7142,14 @@ func TestGettersTransactionOutQueryRecord(t *testing.T) { } func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { - t.Run("SetIdOut_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOut_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValueIdOut *int64 + var fernTestValueIDOut *int64 // Act - obj.SetIdOut(fernTestValueIdOut) + obj.SetIDOut(fernTestValueIDOut) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7545,14 +7545,14 @@ func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValueParentOrgId *Orgid + var fernTestValueParentOrgID *Orgid // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7762,14 +7762,14 @@ func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValuePaymentId *PaymentIdString + var fernTestValuePaymentID *PaymentIDString // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7886,14 +7886,14 @@ func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7979,14 +7979,14 @@ func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValueBatchId *string + var fernTestValueBatchID *string // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8072,14 +8072,14 @@ func TestSettersMarkExplicitTransactionOutQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScheduleId_MarksExplicit", func(t *testing.T) { + t.Run("SetScheduleID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionOutQueryRecord{} - var fernTestValueScheduleId *ScheduleId + var fernTestValueScheduleID *ScheduleID // Act - obj.SetScheduleId(fernTestValueScheduleId) + obj.SetScheduleID(fernTestValueScheduleID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8506,11 +8506,11 @@ func TestSettersVendorDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VendorDataResponse{} - var fernTestValueVendorId Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -8562,11 +8562,11 @@ func TestSettersVendorDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &VendorDataResponse{} - var fernTestValueParentOrgId int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -8674,11 +8674,11 @@ func TestSettersVendorDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &VendorDataResponse{} - var fernTestValueInternalReferenceId InternalReferenceId - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID InternalReferenceID + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -8690,11 +8690,11 @@ func TestSettersVendorDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &VendorDataResponse{} - var fernTestValueExternalPaypointId string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -9176,18 +9176,18 @@ func TestGettersVendorDataResponse(t *testing.T) { _ = obj.GetVendorStatus() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} var expected Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -9196,7 +9196,7 @@ func TestGettersVendorDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetEnrollmentStatus", func(t *testing.T) { @@ -9357,18 +9357,18 @@ func TestGettersVendorDataResponse(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} var expected int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -9377,7 +9377,7 @@ func TestGettersVendorDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetCreatedDate", func(t *testing.T) { @@ -9689,18 +9689,18 @@ func TestGettersVendorDataResponse(t *testing.T) { _ = obj.GetCustomerVendorAccount() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} - var expected InternalReferenceId - obj.InternalReferenceId = expected + var expected InternalReferenceID + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -9709,7 +9709,7 @@ func TestGettersVendorDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetAdditionalData", func(t *testing.T) { @@ -9735,18 +9735,18 @@ func TestGettersVendorDataResponse(t *testing.T) { _ = obj.GetAdditionalData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} var expected string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -9755,7 +9755,7 @@ func TestGettersVendorDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetStoredMethods", func(t *testing.T) { @@ -10383,14 +10383,14 @@ func TestSettersMarkExplicitVendorDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} - var fernTestValueVendorId Vendorid + var fernTestValueVendorID Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10600,14 +10600,14 @@ func TestSettersMarkExplicitVendorDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} - var fernTestValueParentOrgId int + var fernTestValueParentOrgID int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11034,14 +11034,14 @@ func TestSettersMarkExplicitVendorDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} - var fernTestValueInternalReferenceId InternalReferenceId + var fernTestValueInternalReferenceID InternalReferenceID // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11096,14 +11096,14 @@ func TestSettersMarkExplicitVendorDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataResponse{} - var fernTestValueExternalPaypointId string + var fernTestValueExternalPaypointID string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11241,11 +11241,11 @@ func TestSettersVendorOutData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &VendorOutData{} - var fernTestValueInternalReferenceId *int64 - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int64 + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -11369,11 +11369,11 @@ func TestSettersVendorOutData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VendorOutData{} - var fernTestValueVendorId *Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -11704,28 +11704,28 @@ func TestGettersVendorOutData(t *testing.T) { _ = obj.GetEmail() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} var expected *int64 - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorOutData // Should not panic - getters should handle nil receiver gracefully @@ -11734,7 +11734,7 @@ func TestGettersVendorOutData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLocationCode", func(t *testing.T) { @@ -12202,28 +12202,28 @@ func TestGettersVendorOutData(t *testing.T) { _ = obj.GetState() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} var expected *Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorOutData // Should not panic - getters should handle nil receiver gracefully @@ -12232,7 +12232,7 @@ func TestGettersVendorOutData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetVendorNumber", func(t *testing.T) { @@ -12637,14 +12637,14 @@ func TestSettersMarkExplicitVendorOutData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} - var fernTestValueInternalReferenceId *int64 + var fernTestValueInternalReferenceID *int64 // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13133,14 +13133,14 @@ func TestSettersMarkExplicitVendorOutData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorOutData{} - var fernTestValueVendorId *Vendorid + var fernTestValueVendorID *Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14709,39 +14709,39 @@ func TestSettersMarkExplicitBillOutData(t *testing.T) { } func TestSettersBillOutDataScheduledOptions(t *testing.T) { - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &BillOutDataScheduledOptions{} - var fernTestValueStoredMethodId *string - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *string + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersBillOutDataScheduledOptions(t *testing.T) { - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillOutDataScheduledOptions{} var expected *string - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillOutDataScheduledOptions{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillOutDataScheduledOptions // Should not panic - getters should handle nil receiver gracefully @@ -14750,20 +14750,20 @@ func TestGettersBillOutDataScheduledOptions(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) } func TestSettersMarkExplicitBillOutDataScheduledOptions(t *testing.T) { - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillOutDataScheduledOptions{} - var fernTestValueStoredMethodId *string + var fernTestValueStoredMethodID *string // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14806,11 +14806,11 @@ func TestSettersBillResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &BillResponse{} - var fernTestValueRoomId *RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -14907,28 +14907,28 @@ func TestGettersBillResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponse{} - var expected *RoomIdNotInUse - obj.RoomId = expected + var expected *RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponse{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponse // Should not panic - getters should handle nil receiver gracefully @@ -14937,7 +14937,7 @@ func TestGettersBillResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -15094,14 +15094,14 @@ func TestSettersMarkExplicitBillResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponse{} - var fernTestValueRoomId *RoomIdNotInUse + var fernTestValueRoomID *RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15221,11 +15221,11 @@ func TestSettersMarkExplicitBillResponse(t *testing.T) { } func TestSettersBillResponseData(t *testing.T) { - t.Run("SetIdBill", func(t *testing.T) { + t.Run("SetIDBill", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValueIdBill *BillId - obj.SetIdBill(fernTestValueIdBill) - assert.Equal(t, fernTestValueIdBill, obj.IdBill) + var fernTestValueIDBill *BillID + obj.SetIDBill(fernTestValueIDBill) + assert.Equal(t, fernTestValueIDBill, obj.IDBill) assert.NotNil(t, obj.explicitFields) }) @@ -15317,11 +15317,11 @@ func TestSettersBillResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValuePaymentId *string - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *string + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) @@ -15453,11 +15453,11 @@ func TestSettersBillResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -15477,11 +15477,11 @@ func TestSettersBillResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaylinkId", func(t *testing.T) { + t.Run("SetPaylinkID", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValuePaylinkId *PaylinkId - obj.SetPaylinkId(fernTestValuePaylinkId) - assert.Equal(t, fernTestValuePaylinkId, obj.PaylinkId) + var fernTestValuePaylinkID *PaylinkID + obj.SetPaylinkID(fernTestValuePaylinkID) + assert.Equal(t, fernTestValuePaylinkID, obj.PaylinkID) assert.NotNil(t, obj.explicitFields) }) @@ -15493,11 +15493,11 @@ func TestSettersBillResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -15509,39 +15509,39 @@ func TestSettersBillResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntityId", func(t *testing.T) { + t.Run("SetEntityID", func(t *testing.T) { obj := &BillResponseData{} - var fernTestValueEntityId *EntityId - obj.SetEntityId(fernTestValueEntityId) - assert.Equal(t, fernTestValueEntityId, obj.EntityId) + var fernTestValueEntityID *EntityID + obj.SetEntityID(fernTestValueEntityID) + assert.Equal(t, fernTestValueEntityID, obj.EntityID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersBillResponseData(t *testing.T) { - t.Run("GetIdBill", func(t *testing.T) { + t.Run("GetIDBill", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var expected *BillId - obj.IdBill = expected + var expected *BillID + obj.IDBill = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdBill(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDBill(), "getter should return the property value") }) - t.Run("GetIdBill_NilValue", func(t *testing.T) { + t.Run("GetIDBill_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.IdBill = nil + obj.IDBill = nil // Act & Assert - assert.Nil(t, obj.GetIdBill(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDBill(), "getter should return nil when property is nil") }) - t.Run("GetIdBill_NilReceiver", func(t *testing.T) { + t.Run("GetIDBill_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -15550,7 +15550,7 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdBill() // Should return zero value + _ = obj.GetIDBill() // Should return zero value }) t.Run("GetBillNumber", func(t *testing.T) { @@ -15916,28 +15916,28 @@ func TestGettersBillResponseData(t *testing.T) { _ = obj.GetPaymentMethod() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} var expected *string - obj.PaymentId = expected + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -15946,7 +15946,7 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) t.Run("GetAccountingField1", func(t *testing.T) { @@ -16477,28 +16477,28 @@ func TestGettersBillResponseData(t *testing.T) { _ = obj.GetPaypointDbaname() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -16507,7 +16507,7 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -16576,28 +16576,28 @@ func TestGettersBillResponseData(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaylinkId", func(t *testing.T) { + t.Run("GetPaylinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var expected *PaylinkId - obj.PaylinkId = expected + var expected *PaylinkID + obj.PaylinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaylinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaylinkID(), "getter should return the property value") }) - t.Run("GetPaylinkId_NilValue", func(t *testing.T) { + t.Run("GetPaylinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.PaylinkId = nil + obj.PaylinkID = nil // Act & Assert - assert.Nil(t, obj.GetPaylinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaylinkID(), "getter should return nil when property is nil") }) - t.Run("GetPaylinkId_NilReceiver", func(t *testing.T) { + t.Run("GetPaylinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -16606,7 +16606,7 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaylinkId() // Should return zero value + _ = obj.GetPaylinkID() // Should return zero value }) t.Run("GetDocumentsRef", func(t *testing.T) { @@ -16642,28 +16642,28 @@ func TestGettersBillResponseData(t *testing.T) { _ = obj.GetDocumentsRef() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -16672,7 +16672,7 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetLotNumber", func(t *testing.T) { @@ -16708,28 +16708,28 @@ func TestGettersBillResponseData(t *testing.T) { _ = obj.GetLotNumber() // Should return zero value }) - t.Run("GetEntityId", func(t *testing.T) { + t.Run("GetEntityID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var expected *EntityId - obj.EntityId = expected + var expected *EntityID + obj.EntityID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntityId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntityID(), "getter should return the property value") }) - t.Run("GetEntityId_NilValue", func(t *testing.T) { + t.Run("GetEntityID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - obj.EntityId = nil + obj.EntityID = nil // Act & Assert - assert.Nil(t, obj.GetEntityId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntityID(), "getter should return nil when property is nil") }) - t.Run("GetEntityId_NilReceiver", func(t *testing.T) { + t.Run("GetEntityID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillResponseData // Should not panic - getters should handle nil receiver gracefully @@ -16738,20 +16738,20 @@ func TestGettersBillResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntityId() // Should return zero value + _ = obj.GetEntityID() // Should return zero value }) } func TestSettersMarkExplicitBillResponseData(t *testing.T) { - t.Run("SetIdBill_MarksExplicit", func(t *testing.T) { + t.Run("SetIDBill_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValueIdBill *BillId + var fernTestValueIDBill *BillID // Act - obj.SetIdBill(fernTestValueIdBill) + obj.SetIDBill(fernTestValueIDBill) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17116,14 +17116,14 @@ func TestSettersMarkExplicitBillResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValuePaymentId *string + var fernTestValuePaymentID *string // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17643,14 +17643,14 @@ func TestSettersMarkExplicitBillResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17736,14 +17736,14 @@ func TestSettersMarkExplicitBillResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaylinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaylinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValuePaylinkId *PaylinkId + var fernTestValuePaylinkID *PaylinkID // Act - obj.SetPaylinkId(fernTestValuePaylinkId) + obj.SetPaylinkID(fernTestValuePaylinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17798,14 +17798,14 @@ func TestSettersMarkExplicitBillResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17860,14 +17860,14 @@ func TestSettersMarkExplicitBillResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillResponseData{} - var fernTestValueEntityId *EntityId + var fernTestValueEntityID *EntityID // Act - obj.SetEntityId(fernTestValueEntityId) + obj.SetEntityID(fernTestValueEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17910,11 +17910,11 @@ func TestSettersEditBillResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &EditBillResponse{} - var fernTestValueRoomId *RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -18011,28 +18011,28 @@ func TestGettersEditBillResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &EditBillResponse{} - var expected *RoomIdNotInUse - obj.RoomId = expected + var expected *RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &EditBillResponse{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *EditBillResponse // Should not panic - getters should handle nil receiver gracefully @@ -18041,7 +18041,7 @@ func TestGettersEditBillResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -18198,14 +18198,14 @@ func TestSettersMarkExplicitEditBillResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &EditBillResponse{} - var fernTestValueRoomId *RoomIdNotInUse + var fernTestValueRoomID *RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -18341,11 +18341,11 @@ func TestSettersGetBillResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &GetBillResponse{} - var fernTestValueRoomId *RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -18442,28 +18442,28 @@ func TestGettersGetBillResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetBillResponse{} - var expected *RoomIdNotInUse - obj.RoomId = expected + var expected *RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetBillResponse{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetBillResponse // Should not panic - getters should handle nil receiver gracefully @@ -18472,7 +18472,7 @@ func TestGettersGetBillResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -18629,14 +18629,14 @@ func TestSettersMarkExplicitGetBillResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetBillResponse{} - var fernTestValueRoomId *RoomIdNotInUse + var fernTestValueRoomID *RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/boarding.go b/boarding.go index 5ce9b8f..c764bf8 100644 --- a/boarding.go +++ b/boarding.go @@ -11,14 +11,14 @@ import ( var ( requestAppByAuthFieldEmail = big.NewInt(1 << 0) - requestAppByAuthFieldReferenceId = big.NewInt(1 << 1) + requestAppByAuthFieldReferenceID = big.NewInt(1 << 1) ) type RequestAppByAuth struct { // The email address the applicant used to save the application. Email *Email `json:"email,omitempty" url:"-"` // The referenceId is sent to the applicant via email when they save the application. - ReferenceId *string `json:"referenceId,omitempty" url:"-"` + ReferenceID *string `json:"referenceId,omitempty" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -38,11 +38,11 @@ func (r *RequestAppByAuth) SetEmail(email *Email) { r.require(requestAppByAuthFieldEmail) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestAppByAuth) SetReferenceId(referenceId *string) { - r.ReferenceId = referenceId - r.require(requestAppByAuthFieldReferenceId) +func (r *RequestAppByAuth) SetReferenceID(referenceID *string) { + r.ReferenceID = referenceID + r.require(requestAppByAuthFieldReferenceID) } func (r *RequestAppByAuth) UnmarshalJSON(data []byte) error { @@ -629,7 +629,7 @@ func (a *AchSection) String() string { type Annualrevenue = float64 // Boarding application ID. -type AppId = int +type AppID = int var ( applicationDataFieldServices = big.NewInt(1 << 0) @@ -651,7 +651,7 @@ var ( applicationDataFieldContacts = big.NewInt(1 << 16) applicationDataFieldDbaname = big.NewInt(1 << 17) applicationDataFieldEin = big.NewInt(1 << 18) - applicationDataFieldExternalPaypointId = big.NewInt(1 << 19) + applicationDataFieldExternalPaypointID = big.NewInt(1 << 19) applicationDataFieldFaxnumber = big.NewInt(1 << 20) applicationDataFieldHighticketamt = big.NewInt(1 << 21) applicationDataFieldLegalname = big.NewInt(1 << 22) @@ -664,7 +664,7 @@ var ( applicationDataFieldMcountry = big.NewInt(1 << 29) applicationDataFieldMstate = big.NewInt(1 << 30) applicationDataFieldMzip = big.NewInt(1 << 31) - applicationDataFieldOrgId = big.NewInt(1 << 32) + applicationDataFieldOrgID = big.NewInt(1 << 32) applicationDataFieldOwnership = big.NewInt(1 << 33) applicationDataFieldPayoutAverageMonthlyVolume = big.NewInt(1 << 34) applicationDataFieldPayoutAverageTicketLimit = big.NewInt(1 << 35) @@ -677,7 +677,7 @@ var ( applicationDataFieldSigner = big.NewInt(1 << 42) applicationDataFieldStartdate = big.NewInt(1 << 43) applicationDataFieldTaxfillname = big.NewInt(1 << 44) - applicationDataFieldTemplateId = big.NewInt(1 << 45) + applicationDataFieldTemplateID = big.NewInt(1 << 45) applicationDataFieldTicketamt = big.NewInt(1 << 46) applicationDataFieldWebsite = big.NewInt(1 << 47) applicationDataFieldWhenCharged = big.NewInt(1 << 48) @@ -710,7 +710,7 @@ type ApplicationData struct { Contacts *ContactsField `json:"contacts,omitempty" url:"contacts,omitempty"` Dbaname *Dbaname `json:"dbaname,omitempty" url:"dbaname,omitempty"` Ein *Ein `json:"ein,omitempty" url:"ein,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` Faxnumber *BoardingBusinessFax `json:"faxnumber,omitempty" url:"faxnumber,omitempty"` Highticketamt *Highticketamt `json:"highticketamt,omitempty" url:"highticketamt,omitempty"` Legalname *Legalname `json:"legalname,omitempty" url:"legalname,omitempty"` @@ -723,7 +723,7 @@ type ApplicationData struct { Mcountry *Mcountry `json:"mcountry,omitempty" url:"mcountry,omitempty"` Mstate *Mstate `json:"mstate,omitempty" url:"mstate,omitempty"` Mzip *Mzip `json:"mzip,omitempty" url:"mzip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` Ownership *Ownership `json:"ownership,omitempty" url:"ownership,omitempty"` PayoutAverageMonthlyVolume *PayoutAverageMonthlyVolume `json:"payoutAverageMonthlyVolume,omitempty" url:"payoutAverageMonthlyVolume,omitempty"` PayoutAverageTicketLimit *PayoutAverageTicketLimit `json:"payoutAverageTicketLimit,omitempty" url:"payoutAverageTicketLimit,omitempty"` @@ -737,7 +737,7 @@ type ApplicationData struct { Signer *SignerDataRequest `json:"signer,omitempty" url:"signer,omitempty"` Startdate *Busstartdate `json:"startdate,omitempty" url:"startdate,omitempty"` Taxfillname *Taxfillname `json:"taxfillname,omitempty" url:"taxfillname,omitempty"` - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` Ticketamt *Ticketamt `json:"ticketamt,omitempty" url:"ticketamt,omitempty"` Website *Website `json:"website,omitempty" url:"website,omitempty"` WhenCharged *Whencharged `json:"whenCharged,omitempty" url:"whenCharged,omitempty"` @@ -889,11 +889,11 @@ func (a *ApplicationData) GetEin() *Ein { return a.Ein } -func (a *ApplicationData) GetExternalPaypointId() *ExternalPaypointId { +func (a *ApplicationData) GetExternalPaypointID() *ExternalPaypointID { if a == nil { return nil } - return a.ExternalPaypointId + return a.ExternalPaypointID } func (a *ApplicationData) GetFaxnumber() *BoardingBusinessFax { @@ -980,11 +980,11 @@ func (a *ApplicationData) GetMzip() *Mzip { return a.Mzip } -func (a *ApplicationData) GetOrgId() *Orgid { +func (a *ApplicationData) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationData) GetOwnership() *Ownership { @@ -1071,11 +1071,11 @@ func (a *ApplicationData) GetTaxfillname() *Taxfillname { return a.Taxfillname } -func (a *ApplicationData) GetTemplateId() *TemplateId { +func (a *ApplicationData) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationData) GetTicketamt() *Ticketamt { @@ -1295,11 +1295,11 @@ func (a *ApplicationData) SetEin(ein *Ein) { a.require(applicationDataFieldEin) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationData) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - a.ExternalPaypointId = externalPaypointId - a.require(applicationDataFieldExternalPaypointId) +func (a *ApplicationData) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + a.ExternalPaypointID = externalPaypointID + a.require(applicationDataFieldExternalPaypointID) } // SetFaxnumber sets the Faxnumber field and marks it as non-optional; @@ -1386,11 +1386,11 @@ func (a *ApplicationData) SetMzip(mzip *Mzip) { a.require(applicationDataFieldMzip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationData) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationDataFieldOrgId) +func (a *ApplicationData) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationDataFieldOrgID) } // SetOwnership sets the Ownership field and marks it as non-optional; @@ -1477,11 +1477,11 @@ func (a *ApplicationData) SetTaxfillname(taxfillname *Taxfillname) { a.require(applicationDataFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationData) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationDataFieldTemplateId) +func (a *ApplicationData) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationDataFieldTemplateID) } // SetTicketamt sets the Ticketamt field and marks it as non-optional; @@ -1604,7 +1604,7 @@ var ( applicationDataManagedFieldBankData = big.NewInt(1 << 4) applicationDataManagedFieldBcity = big.NewInt(1 << 5) applicationDataManagedFieldBcountry = big.NewInt(1 << 6) - applicationDataManagedFieldBoardingLinkId = big.NewInt(1 << 7) + applicationDataManagedFieldBoardingLinkID = big.NewInt(1 << 7) applicationDataManagedFieldBstate = big.NewInt(1 << 8) applicationDataManagedFieldBsummary = big.NewInt(1 << 9) applicationDataManagedFieldBtype = big.NewInt(1 << 10) @@ -1623,7 +1623,7 @@ var ( applicationDataManagedFieldMcountry = big.NewInt(1 << 23) applicationDataManagedFieldMstate = big.NewInt(1 << 24) applicationDataManagedFieldMzip = big.NewInt(1 << 25) - applicationDataManagedFieldOrgId = big.NewInt(1 << 26) + applicationDataManagedFieldOrgID = big.NewInt(1 << 26) applicationDataManagedFieldOwnership = big.NewInt(1 << 27) applicationDataManagedFieldPhonenumber = big.NewInt(1 << 28) applicationDataManagedFieldRecipientEmail = big.NewInt(1 << 29) @@ -1632,7 +1632,7 @@ var ( applicationDataManagedFieldSigner = big.NewInt(1 << 32) applicationDataManagedFieldStartdate = big.NewInt(1 << 33) applicationDataManagedFieldTaxfillname = big.NewInt(1 << 34) - applicationDataManagedFieldTemplateId = big.NewInt(1 << 35) + applicationDataManagedFieldTemplateID = big.NewInt(1 << 35) applicationDataManagedFieldWebsite = big.NewInt(1 << 36) applicationDataManagedFieldRepCode = big.NewInt(1 << 37) applicationDataManagedFieldRepName = big.NewInt(1 << 38) @@ -1650,7 +1650,7 @@ type ApplicationDataManaged struct { Bcity *Bcity `json:"bcity,omitempty" url:"bcity,omitempty"` Bcountry *Bcountry `json:"bcountry,omitempty" url:"bcountry,omitempty"` // Boarding link ID for the application. Either `templateId` or `boardingLinkId` are required. - BoardingLinkId *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` + BoardingLinkID *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` Bstate *Bstate `json:"bstate,omitempty" url:"bstate,omitempty"` Bsummary *Bsummary `json:"bsummary,omitempty" url:"bsummary,omitempty"` Btype *OwnType `json:"btype,omitempty" url:"btype,omitempty"` @@ -1670,7 +1670,7 @@ type ApplicationDataManaged struct { Mcountry *Mcountry `json:"mcountry,omitempty" url:"mcountry,omitempty"` Mstate *Mstate `json:"mstate,omitempty" url:"mstate,omitempty"` Mzip *Mzip `json:"mzip,omitempty" url:"mzip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` // List of Owners with at least a 25% ownership. Ownership []*ApplicationDataManagedOwnershipItem `json:"ownership,omitempty" url:"ownership,omitempty"` Phonenumber *BoardingBusinessPhone `json:"phonenumber,omitempty" url:"phonenumber,omitempty"` @@ -1682,7 +1682,7 @@ type ApplicationDataManaged struct { Startdate *Busstartdate `json:"startdate,omitempty" url:"startdate,omitempty"` Taxfillname *Taxfillname `json:"taxfillname,omitempty" url:"taxfillname,omitempty"` // The associated boarding template's ID in Payabli. Either `templateId` or `boardingLinkId` are required. - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` Website *Website `json:"website,omitempty" url:"website,omitempty"` RepCode *RepCode `json:"RepCode,omitempty" url:"RepCode,omitempty"` RepName *RepName `json:"RepName,omitempty" url:"RepName,omitempty"` @@ -1745,11 +1745,11 @@ func (a *ApplicationDataManaged) GetBcountry() *Bcountry { return a.Bcountry } -func (a *ApplicationDataManaged) GetBoardingLinkId() *string { +func (a *ApplicationDataManaged) GetBoardingLinkID() *string { if a == nil { return nil } - return a.BoardingLinkId + return a.BoardingLinkID } func (a *ApplicationDataManaged) GetBstate() *Bstate { @@ -1878,11 +1878,11 @@ func (a *ApplicationDataManaged) GetMzip() *Mzip { return a.Mzip } -func (a *ApplicationDataManaged) GetOrgId() *Orgid { +func (a *ApplicationDataManaged) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationDataManaged) GetOwnership() []*ApplicationDataManagedOwnershipItem { @@ -1941,11 +1941,11 @@ func (a *ApplicationDataManaged) GetTaxfillname() *Taxfillname { return a.Taxfillname } -func (a *ApplicationDataManaged) GetTemplateId() *TemplateId { +func (a *ApplicationDataManaged) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationDataManaged) GetWebsite() *Website { @@ -2046,11 +2046,11 @@ func (a *ApplicationDataManaged) SetBcountry(bcountry *Bcountry) { a.require(applicationDataManagedFieldBcountry) } -// SetBoardingLinkId sets the BoardingLinkId field and marks it as non-optional; +// SetBoardingLinkID sets the BoardingLinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataManaged) SetBoardingLinkId(boardingLinkId *string) { - a.BoardingLinkId = boardingLinkId - a.require(applicationDataManagedFieldBoardingLinkId) +func (a *ApplicationDataManaged) SetBoardingLinkID(boardingLinkID *string) { + a.BoardingLinkID = boardingLinkID + a.require(applicationDataManagedFieldBoardingLinkID) } // SetBstate sets the Bstate field and marks it as non-optional; @@ -2179,11 +2179,11 @@ func (a *ApplicationDataManaged) SetMzip(mzip *Mzip) { a.require(applicationDataManagedFieldMzip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataManaged) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationDataManagedFieldOrgId) +func (a *ApplicationDataManaged) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationDataManagedFieldOrgID) } // SetOwnership sets the Ownership field and marks it as non-optional; @@ -2242,11 +2242,11 @@ func (a *ApplicationDataManaged) SetTaxfillname(taxfillname *Taxfillname) { a.require(applicationDataManagedFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataManaged) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationDataManagedFieldTemplateId) +func (a *ApplicationDataManaged) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationDataManagedFieldTemplateID) } // SetWebsite sets the Website field and marks it as non-optional; @@ -2826,7 +2826,7 @@ var ( applicationDataOdpFieldBankData = big.NewInt(1 << 5) applicationDataOdpFieldBcity = big.NewInt(1 << 6) applicationDataOdpFieldBcountry = big.NewInt(1 << 7) - applicationDataOdpFieldBoardingLinkId = big.NewInt(1 << 8) + applicationDataOdpFieldBoardingLinkID = big.NewInt(1 << 8) applicationDataOdpFieldBstate = big.NewInt(1 << 9) applicationDataOdpFieldBsummary = big.NewInt(1 << 10) applicationDataOdpFieldBtype = big.NewInt(1 << 11) @@ -2846,7 +2846,7 @@ var ( applicationDataOdpFieldMcountry = big.NewInt(1 << 25) applicationDataOdpFieldMstate = big.NewInt(1 << 26) applicationDataOdpFieldMzip = big.NewInt(1 << 27) - applicationDataOdpFieldOrgId = big.NewInt(1 << 28) + applicationDataOdpFieldOrgID = big.NewInt(1 << 28) applicationDataOdpFieldOwnership = big.NewInt(1 << 29) applicationDataOdpFieldPayoutAverageMonthlyVolume = big.NewInt(1 << 30) applicationDataOdpFieldPayoutAverageTicketAmount = big.NewInt(1 << 31) @@ -2859,7 +2859,7 @@ var ( applicationDataOdpFieldSigner = big.NewInt(1 << 38) applicationDataOdpFieldStartdate = big.NewInt(1 << 39) applicationDataOdpFieldTaxfillname = big.NewInt(1 << 40) - applicationDataOdpFieldTemplateId = big.NewInt(1 << 41) + applicationDataOdpFieldTemplateID = big.NewInt(1 << 41) applicationDataOdpFieldWebsite = big.NewInt(1 << 42) applicationDataOdpFieldRepCode = big.NewInt(1 << 43) applicationDataOdpFieldRepName = big.NewInt(1 << 44) @@ -2878,7 +2878,7 @@ type ApplicationDataOdp struct { Bcity *Bcity `json:"bcity,omitempty" url:"bcity,omitempty"` Bcountry *Bcountry `json:"bcountry,omitempty" url:"bcountry,omitempty"` // Boarding link ID for the application. Either `templateId` or `boardingLinkId` are required. - BoardingLinkId *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` + BoardingLinkID *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` Bstate *Bstate `json:"bstate,omitempty" url:"bstate,omitempty"` Bsummary *Bsummary `json:"bsummary,omitempty" url:"bsummary,omitempty"` Btype *OwnType `json:"btype,omitempty" url:"btype,omitempty"` @@ -2899,7 +2899,7 @@ type ApplicationDataOdp struct { Mcountry *Mcountry `json:"mcountry,omitempty" url:"mcountry,omitempty"` Mstate *Mstate `json:"mstate,omitempty" url:"mstate,omitempty"` Mzip *Mzip `json:"mzip,omitempty" url:"mzip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` // List of Owners with at least a 25% ownership. Ownership []*ApplicationDataOdpOwnershipItem `json:"ownership,omitempty" url:"ownership,omitempty"` PayoutAverageMonthlyVolume PayoutAverageMonthlyVolume `json:"payoutAverageMonthlyVolume" url:"payoutAverageMonthlyVolume"` @@ -2915,7 +2915,7 @@ type ApplicationDataOdp struct { Startdate *Busstartdate `json:"startdate,omitempty" url:"startdate,omitempty"` Taxfillname *Taxfillname `json:"taxfillname,omitempty" url:"taxfillname,omitempty"` // The associated boarding template's ID in Payabli. Either `templateId` or `boardingLinkId` are required. - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` Website *Website `json:"website,omitempty" url:"website,omitempty"` RepCode *RepCode `json:"RepCode,omitempty" url:"RepCode,omitempty"` RepName *RepName `json:"RepName,omitempty" url:"RepName,omitempty"` @@ -2985,11 +2985,11 @@ func (a *ApplicationDataOdp) GetBcountry() *Bcountry { return a.Bcountry } -func (a *ApplicationDataOdp) GetBoardingLinkId() *string { +func (a *ApplicationDataOdp) GetBoardingLinkID() *string { if a == nil { return nil } - return a.BoardingLinkId + return a.BoardingLinkID } func (a *ApplicationDataOdp) GetBstate() *Bstate { @@ -3125,11 +3125,11 @@ func (a *ApplicationDataOdp) GetMzip() *Mzip { return a.Mzip } -func (a *ApplicationDataOdp) GetOrgId() *Orgid { +func (a *ApplicationDataOdp) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationDataOdp) GetOwnership() []*ApplicationDataOdpOwnershipItem { @@ -3216,11 +3216,11 @@ func (a *ApplicationDataOdp) GetTaxfillname() *Taxfillname { return a.Taxfillname } -func (a *ApplicationDataOdp) GetTemplateId() *TemplateId { +func (a *ApplicationDataOdp) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationDataOdp) GetWebsite() *Website { @@ -3328,11 +3328,11 @@ func (a *ApplicationDataOdp) SetBcountry(bcountry *Bcountry) { a.require(applicationDataOdpFieldBcountry) } -// SetBoardingLinkId sets the BoardingLinkId field and marks it as non-optional; +// SetBoardingLinkID sets the BoardingLinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataOdp) SetBoardingLinkId(boardingLinkId *string) { - a.BoardingLinkId = boardingLinkId - a.require(applicationDataOdpFieldBoardingLinkId) +func (a *ApplicationDataOdp) SetBoardingLinkID(boardingLinkID *string) { + a.BoardingLinkID = boardingLinkID + a.require(applicationDataOdpFieldBoardingLinkID) } // SetBstate sets the Bstate field and marks it as non-optional; @@ -3468,11 +3468,11 @@ func (a *ApplicationDataOdp) SetMzip(mzip *Mzip) { a.require(applicationDataOdpFieldMzip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataOdp) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationDataOdpFieldOrgId) +func (a *ApplicationDataOdp) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationDataOdpFieldOrgID) } // SetOwnership sets the Ownership field and marks it as non-optional; @@ -3559,11 +3559,11 @@ func (a *ApplicationDataOdp) SetTaxfillname(taxfillname *Taxfillname) { a.require(applicationDataOdpFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataOdp) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationDataOdpFieldTemplateId) +func (a *ApplicationDataOdp) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationDataOdpFieldTemplateID) } // SetWebsite sets the Website field and marks it as non-optional; @@ -4149,7 +4149,7 @@ var ( applicationDataPayInFieldBinperson = big.NewInt(1 << 10) applicationDataPayInFieldBinphone = big.NewInt(1 << 11) applicationDataPayInFieldBinweb = big.NewInt(1 << 12) - applicationDataPayInFieldBoardingLinkId = big.NewInt(1 << 13) + applicationDataPayInFieldBoardingLinkID = big.NewInt(1 << 13) applicationDataPayInFieldBstate = big.NewInt(1 << 14) applicationDataPayInFieldBsummary = big.NewInt(1 << 15) applicationDataPayInFieldBtype = big.NewInt(1 << 16) @@ -4158,7 +4158,7 @@ var ( applicationDataPayInFieldCreditLimit = big.NewInt(1 << 19) applicationDataPayInFieldDbaName = big.NewInt(1 << 20) applicationDataPayInFieldEin = big.NewInt(1 << 21) - applicationDataPayInFieldExternalpaypointId = big.NewInt(1 << 22) + applicationDataPayInFieldExternalpaypointID = big.NewInt(1 << 22) applicationDataPayInFieldFaxnumber = big.NewInt(1 << 23) applicationDataPayInFieldHighticketamt = big.NewInt(1 << 24) applicationDataPayInFieldLegalName = big.NewInt(1 << 25) @@ -4171,7 +4171,7 @@ var ( applicationDataPayInFieldMcountry = big.NewInt(1 << 32) applicationDataPayInFieldMstate = big.NewInt(1 << 33) applicationDataPayInFieldMzip = big.NewInt(1 << 34) - applicationDataPayInFieldOrgId = big.NewInt(1 << 35) + applicationDataPayInFieldOrgID = big.NewInt(1 << 35) applicationDataPayInFieldOwnership = big.NewInt(1 << 36) applicationDataPayInFieldPhonenumber = big.NewInt(1 << 37) applicationDataPayInFieldProcessingRegion = big.NewInt(1 << 38) @@ -4181,7 +4181,7 @@ var ( applicationDataPayInFieldSigner = big.NewInt(1 << 42) applicationDataPayInFieldStartdate = big.NewInt(1 << 43) applicationDataPayInFieldTaxFillName = big.NewInt(1 << 44) - applicationDataPayInFieldTemplateId = big.NewInt(1 << 45) + applicationDataPayInFieldTemplateID = big.NewInt(1 << 45) applicationDataPayInFieldTicketamt = big.NewInt(1 << 46) applicationDataPayInFieldWebsite = big.NewInt(1 << 47) applicationDataPayInFieldWhenCharged = big.NewInt(1 << 48) @@ -4210,7 +4210,7 @@ type ApplicationDataPayIn struct { Binphone *Binphone `json:"binphone,omitempty" url:"binphone,omitempty"` Binweb *Binweb `json:"binweb,omitempty" url:"binweb,omitempty"` // Boarding link ID for the application. Either `templateId` or `boardingLinkId` are required. - BoardingLinkId *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` + BoardingLinkID *string `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` Bstate *Bstate `json:"bstate,omitempty" url:"bstate,omitempty"` Bsummary *Bsummary `json:"bsummary,omitempty" url:"bsummary,omitempty"` Btype *OwnType `json:"btype,omitempty" url:"btype,omitempty"` @@ -4222,7 +4222,7 @@ type ApplicationDataPayIn struct { // The alternate or common name that this business is doing business under usually referred to as a DBA name. Payabli strongly recommends including this information. DbaName *Dbaname `json:"dbaName,omitempty" url:"dbaName,omitempty"` Ein *Ein `json:"ein,omitempty" url:"ein,omitempty"` - ExternalpaypointId *ExternalPaypointId `json:"externalpaypointID,omitempty" url:"externalpaypointID,omitempty"` + ExternalpaypointID *ExternalPaypointID `json:"externalpaypointID,omitempty" url:"externalpaypointID,omitempty"` // The business's fax number. Faxnumber *FaxNumber `json:"faxnumber,omitempty" url:"faxnumber,omitempty"` Highticketamt *Highticketamt `json:"highticketamt,omitempty" url:"highticketamt,omitempty"` @@ -4236,7 +4236,7 @@ type ApplicationDataPayIn struct { Mcountry *Mcountry `json:"mcountry,omitempty" url:"mcountry,omitempty"` Mstate *Mstate `json:"mstate,omitempty" url:"mstate,omitempty"` Mzip *Mzip `json:"mzip,omitempty" url:"mzip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` // List of Owners with at least a 25% ownership. Ownership []*ApplicationDataPayInOwnershipItem `json:"ownership,omitempty" url:"ownership,omitempty"` // The business's phone number. @@ -4251,7 +4251,7 @@ type ApplicationDataPayIn struct { Startdate *Busstartdate `json:"startdate,omitempty" url:"startdate,omitempty"` TaxFillName *Taxfillname `json:"taxFillName,omitempty" url:"taxFillName,omitempty"` // The associated boarding template's ID in Payabli. Either `templateId` or `boardingLinkId` are required. - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` Ticketamt *Ticketamt `json:"ticketamt,omitempty" url:"ticketamt,omitempty"` Website *Website `json:"website,omitempty" url:"website,omitempty"` WhenCharged Whencharged `json:"whenCharged" url:"whenCharged"` @@ -4362,11 +4362,11 @@ func (a *ApplicationDataPayIn) GetBinweb() *Binweb { return a.Binweb } -func (a *ApplicationDataPayIn) GetBoardingLinkId() *string { +func (a *ApplicationDataPayIn) GetBoardingLinkID() *string { if a == nil { return nil } - return a.BoardingLinkId + return a.BoardingLinkID } func (a *ApplicationDataPayIn) GetBstate() *Bstate { @@ -4425,11 +4425,11 @@ func (a *ApplicationDataPayIn) GetEin() *Ein { return a.Ein } -func (a *ApplicationDataPayIn) GetExternalpaypointId() *ExternalPaypointId { +func (a *ApplicationDataPayIn) GetExternalpaypointID() *ExternalPaypointID { if a == nil { return nil } - return a.ExternalpaypointId + return a.ExternalpaypointID } func (a *ApplicationDataPayIn) GetFaxnumber() *FaxNumber { @@ -4516,11 +4516,11 @@ func (a *ApplicationDataPayIn) GetMzip() *Mzip { return a.Mzip } -func (a *ApplicationDataPayIn) GetOrgId() *Orgid { +func (a *ApplicationDataPayIn) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationDataPayIn) GetOwnership() []*ApplicationDataPayInOwnershipItem { @@ -4586,11 +4586,11 @@ func (a *ApplicationDataPayIn) GetTaxFillName() *Taxfillname { return a.TaxFillName } -func (a *ApplicationDataPayIn) GetTemplateId() *TemplateId { +func (a *ApplicationDataPayIn) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationDataPayIn) GetTicketamt() *Ticketamt { @@ -4775,11 +4775,11 @@ func (a *ApplicationDataPayIn) SetBinweb(binweb *Binweb) { a.require(applicationDataPayInFieldBinweb) } -// SetBoardingLinkId sets the BoardingLinkId field and marks it as non-optional; +// SetBoardingLinkID sets the BoardingLinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataPayIn) SetBoardingLinkId(boardingLinkId *string) { - a.BoardingLinkId = boardingLinkId - a.require(applicationDataPayInFieldBoardingLinkId) +func (a *ApplicationDataPayIn) SetBoardingLinkID(boardingLinkID *string) { + a.BoardingLinkID = boardingLinkID + a.require(applicationDataPayInFieldBoardingLinkID) } // SetBstate sets the Bstate field and marks it as non-optional; @@ -4838,11 +4838,11 @@ func (a *ApplicationDataPayIn) SetEin(ein *Ein) { a.require(applicationDataPayInFieldEin) } -// SetExternalpaypointId sets the ExternalpaypointId field and marks it as non-optional; +// SetExternalpaypointID sets the ExternalpaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataPayIn) SetExternalpaypointId(externalpaypointId *ExternalPaypointId) { - a.ExternalpaypointId = externalpaypointId - a.require(applicationDataPayInFieldExternalpaypointId) +func (a *ApplicationDataPayIn) SetExternalpaypointID(externalpaypointID *ExternalPaypointID) { + a.ExternalpaypointID = externalpaypointID + a.require(applicationDataPayInFieldExternalpaypointID) } // SetFaxnumber sets the Faxnumber field and marks it as non-optional; @@ -4929,11 +4929,11 @@ func (a *ApplicationDataPayIn) SetMzip(mzip *Mzip) { a.require(applicationDataPayInFieldMzip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataPayIn) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationDataPayInFieldOrgId) +func (a *ApplicationDataPayIn) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationDataPayInFieldOrgID) } // SetOwnership sets the Ownership field and marks it as non-optional; @@ -4999,11 +4999,11 @@ func (a *ApplicationDataPayIn) SetTaxFillName(taxFillName *Taxfillname) { a.require(applicationDataPayInFieldTaxFillName) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDataPayIn) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationDataPayInFieldTemplateId) +func (a *ApplicationDataPayIn) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationDataPayInFieldTemplateID) } // SetTicketamt sets the Ticketamt field and marks it as non-optional; @@ -6000,7 +6000,7 @@ var ( applicationDetailsRecordFieldBinPerson = big.NewInt(1 << 9) applicationDetailsRecordFieldBinPhone = big.NewInt(1 << 10) applicationDetailsRecordFieldBinWeb = big.NewInt(1 << 11) - applicationDetailsRecordFieldBoardingLinkId = big.NewInt(1 << 12) + applicationDetailsRecordFieldBoardingLinkID = big.NewInt(1 << 12) applicationDetailsRecordFieldBoardingStatus = big.NewInt(1 << 13) applicationDetailsRecordFieldBoardingSubStatus = big.NewInt(1 << 14) applicationDetailsRecordFieldBPhone = big.NewInt(1 << 15) @@ -6014,10 +6014,10 @@ var ( applicationDetailsRecordFieldDbaName = big.NewInt(1 << 23) applicationDetailsRecordFieldDocumentsRef = big.NewInt(1 << 24) applicationDetailsRecordFieldEin = big.NewInt(1 << 25) - applicationDetailsRecordFieldExternalPaypointId = big.NewInt(1 << 26) + applicationDetailsRecordFieldExternalPaypointID = big.NewInt(1 << 26) applicationDetailsRecordFieldGeneralEvents = big.NewInt(1 << 27) applicationDetailsRecordFieldHighTicketAmount = big.NewInt(1 << 28) - applicationDetailsRecordFieldIdApplication = big.NewInt(1 << 29) + applicationDetailsRecordFieldIDApplication = big.NewInt(1 << 29) applicationDetailsRecordFieldLastModified = big.NewInt(1 << 30) applicationDetailsRecordFieldLegalName = big.NewInt(1 << 31) applicationDetailsRecordFieldLicense = big.NewInt(1 << 32) @@ -6031,7 +6031,7 @@ var ( applicationDetailsRecordFieldMessages = big.NewInt(1 << 40) applicationDetailsRecordFieldMState = big.NewInt(1 << 41) applicationDetailsRecordFieldMZip = big.NewInt(1 << 42) - applicationDetailsRecordFieldOrgId = big.NewInt(1 << 43) + applicationDetailsRecordFieldOrgID = big.NewInt(1 << 43) applicationDetailsRecordFieldOrgParentName = big.NewInt(1 << 44) applicationDetailsRecordFieldOwnerData = big.NewInt(1 << 45) applicationDetailsRecordFieldOwnType = big.NewInt(1 << 46) @@ -6042,7 +6042,7 @@ var ( applicationDetailsRecordFieldServiceData = big.NewInt(1 << 51) applicationDetailsRecordFieldSigner = big.NewInt(1 << 52) applicationDetailsRecordFieldTaxfillname = big.NewInt(1 << 53) - applicationDetailsRecordFieldTemplateId = big.NewInt(1 << 54) + applicationDetailsRecordFieldTemplateID = big.NewInt(1 << 54) applicationDetailsRecordFieldWebsiteAddress = big.NewInt(1 << 55) applicationDetailsRecordFieldWhencharged = big.NewInt(1 << 56) applicationDetailsRecordFieldWhendelivered = big.NewInt(1 << 57) @@ -6065,7 +6065,7 @@ type ApplicationDetailsRecord struct { BinPerson *Binperson `json:"binPerson,omitempty" url:"binPerson,omitempty"` BinPhone *Binphone `json:"binPhone,omitempty" url:"binPhone,omitempty"` BinWeb *Binweb `json:"binWeb,omitempty" url:"binWeb,omitempty"` - BoardingLinkId *BoardingLinkId `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` + BoardingLinkID *BoardingLinkID `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` BoardingStatus *BoardingStatus `json:"boardingStatus,omitempty" url:"boardingStatus,omitempty"` BoardingSubStatus *BoardingStatus `json:"boardingSubStatus,omitempty" url:"boardingSubStatus,omitempty"` BPhone *Bphone `json:"bPhone,omitempty" url:"bPhone,omitempty"` @@ -6079,11 +6079,11 @@ type ApplicationDetailsRecord struct { DbaName *Dbaname `json:"dbaName,omitempty" url:"dbaName,omitempty"` DocumentsRef *BoardingApplicationAttachments `json:"documentsRef,omitempty" url:"documentsRef,omitempty"` Ein *Ein `json:"ein,omitempty" url:"ein,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` // Events associated with the application. GeneralEvents []*GeneralEvents `json:"generalEvents,omitempty" url:"generalEvents,omitempty"` HighTicketAmount *Highticketamt `json:"highTicketAmount,omitempty" url:"highTicketAmount,omitempty"` - IdApplication *AppId `json:"idApplication,omitempty" url:"idApplication,omitempty"` + IDApplication *AppID `json:"idApplication,omitempty" url:"idApplication,omitempty"` LastModified *LastModified `json:"lastModified,omitempty" url:"lastModified,omitempty"` LegalName *Legalname `json:"legalName,omitempty" url:"legalName,omitempty"` License *License `json:"license,omitempty" url:"license,omitempty"` @@ -6098,7 +6098,7 @@ type ApplicationDetailsRecord struct { Messages []*ApplicationDetailsRecordMessagesItem `json:"messages,omitempty" url:"messages,omitempty"` MState *Mstate `json:"mState,omitempty" url:"mState,omitempty"` MZip *Mzip `json:"mZip,omitempty" url:"mZip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` OrgParentName *OrgParentName `json:"orgParentName,omitempty" url:"orgParentName,omitempty"` OwnerData *Ownership `json:"ownerData,omitempty" url:"ownerData,omitempty"` OwnType *OwnType `json:"ownType,omitempty" url:"ownType,omitempty"` @@ -6109,7 +6109,7 @@ type ApplicationDetailsRecord struct { ServiceData *Services `json:"serviceData,omitempty" url:"serviceData,omitempty"` Signer *SignerData `json:"signer,omitempty" url:"signer,omitempty"` Taxfillname *Taxfillname `json:"taxfillname,omitempty" url:"taxfillname,omitempty"` - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` WebsiteAddress *Website `json:"websiteAddress,omitempty" url:"websiteAddress,omitempty"` Whencharged *Whencharged `json:"whencharged,omitempty" url:"whencharged,omitempty"` Whendelivered *Whendelivered `json:"whendelivered,omitempty" url:"whendelivered,omitempty"` @@ -6208,11 +6208,11 @@ func (a *ApplicationDetailsRecord) GetBinWeb() *Binweb { return a.BinWeb } -func (a *ApplicationDetailsRecord) GetBoardingLinkId() *BoardingLinkId { +func (a *ApplicationDetailsRecord) GetBoardingLinkID() *BoardingLinkID { if a == nil { return nil } - return a.BoardingLinkId + return a.BoardingLinkID } func (a *ApplicationDetailsRecord) GetBoardingStatus() *BoardingStatus { @@ -6306,11 +6306,11 @@ func (a *ApplicationDetailsRecord) GetEin() *Ein { return a.Ein } -func (a *ApplicationDetailsRecord) GetExternalPaypointId() *ExternalPaypointId { +func (a *ApplicationDetailsRecord) GetExternalPaypointID() *ExternalPaypointID { if a == nil { return nil } - return a.ExternalPaypointId + return a.ExternalPaypointID } func (a *ApplicationDetailsRecord) GetGeneralEvents() []*GeneralEvents { @@ -6327,11 +6327,11 @@ func (a *ApplicationDetailsRecord) GetHighTicketAmount() *Highticketamt { return a.HighTicketAmount } -func (a *ApplicationDetailsRecord) GetIdApplication() *AppId { +func (a *ApplicationDetailsRecord) GetIDApplication() *AppID { if a == nil { return nil } - return a.IdApplication + return a.IDApplication } func (a *ApplicationDetailsRecord) GetLastModified() *LastModified { @@ -6425,11 +6425,11 @@ func (a *ApplicationDetailsRecord) GetMZip() *Mzip { return a.MZip } -func (a *ApplicationDetailsRecord) GetOrgId() *Orgid { +func (a *ApplicationDetailsRecord) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationDetailsRecord) GetOrgParentName() *OrgParentName { @@ -6502,11 +6502,11 @@ func (a *ApplicationDetailsRecord) GetTaxfillname() *Taxfillname { return a.Taxfillname } -func (a *ApplicationDetailsRecord) GetTemplateId() *TemplateId { +func (a *ApplicationDetailsRecord) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationDetailsRecord) GetWebsiteAddress() *Website { @@ -6649,11 +6649,11 @@ func (a *ApplicationDetailsRecord) SetBinWeb(binWeb *Binweb) { a.require(applicationDetailsRecordFieldBinWeb) } -// SetBoardingLinkId sets the BoardingLinkId field and marks it as non-optional; +// SetBoardingLinkID sets the BoardingLinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecord) SetBoardingLinkId(boardingLinkId *BoardingLinkId) { - a.BoardingLinkId = boardingLinkId - a.require(applicationDetailsRecordFieldBoardingLinkId) +func (a *ApplicationDetailsRecord) SetBoardingLinkID(boardingLinkID *BoardingLinkID) { + a.BoardingLinkID = boardingLinkID + a.require(applicationDetailsRecordFieldBoardingLinkID) } // SetBoardingStatus sets the BoardingStatus field and marks it as non-optional; @@ -6747,11 +6747,11 @@ func (a *ApplicationDetailsRecord) SetEin(ein *Ein) { a.require(applicationDetailsRecordFieldEin) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - a.ExternalPaypointId = externalPaypointId - a.require(applicationDetailsRecordFieldExternalPaypointId) +func (a *ApplicationDetailsRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + a.ExternalPaypointID = externalPaypointID + a.require(applicationDetailsRecordFieldExternalPaypointID) } // SetGeneralEvents sets the GeneralEvents field and marks it as non-optional; @@ -6768,11 +6768,11 @@ func (a *ApplicationDetailsRecord) SetHighTicketAmount(highTicketAmount *Hightic a.require(applicationDetailsRecordFieldHighTicketAmount) } -// SetIdApplication sets the IdApplication field and marks it as non-optional; +// SetIDApplication sets the IDApplication field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecord) SetIdApplication(idApplication *AppId) { - a.IdApplication = idApplication - a.require(applicationDetailsRecordFieldIdApplication) +func (a *ApplicationDetailsRecord) SetIDApplication(idApplication *AppID) { + a.IDApplication = idApplication + a.require(applicationDetailsRecordFieldIDApplication) } // SetLastModified sets the LastModified field and marks it as non-optional; @@ -6866,11 +6866,11 @@ func (a *ApplicationDetailsRecord) SetMZip(mZip *Mzip) { a.require(applicationDetailsRecordFieldMZip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecord) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationDetailsRecordFieldOrgId) +func (a *ApplicationDetailsRecord) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationDetailsRecordFieldOrgID) } // SetOrgParentName sets the OrgParentName field and marks it as non-optional; @@ -6943,11 +6943,11 @@ func (a *ApplicationDetailsRecord) SetTaxfillname(taxfillname *Taxfillname) { a.require(applicationDetailsRecordFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecord) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationDetailsRecordFieldTemplateId) +func (a *ApplicationDetailsRecord) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationDetailsRecordFieldTemplateID) } // SetWebsiteAddress sets the WebsiteAddress field and marks it as non-optional; @@ -7051,12 +7051,12 @@ var ( applicationDetailsRecordMessagesItemFieldCreatedAt = big.NewInt(1 << 1) applicationDetailsRecordMessagesItemFieldCurrentApplicationStatus = big.NewInt(1 << 2) applicationDetailsRecordMessagesItemFieldCurrentApplicationSubStatus = big.NewInt(1 << 3) - applicationDetailsRecordMessagesItemFieldId = big.NewInt(1 << 4) + applicationDetailsRecordMessagesItemFieldID = big.NewInt(1 << 4) applicationDetailsRecordMessagesItemFieldMessageType = big.NewInt(1 << 5) applicationDetailsRecordMessagesItemFieldOriginalApplicationStatus = big.NewInt(1 << 6) applicationDetailsRecordMessagesItemFieldOriginalApplicationSubStatus = big.NewInt(1 << 7) - applicationDetailsRecordMessagesItemFieldRoomId = big.NewInt(1 << 8) - applicationDetailsRecordMessagesItemFieldUserId = big.NewInt(1 << 9) + applicationDetailsRecordMessagesItemFieldRoomID = big.NewInt(1 << 8) + applicationDetailsRecordMessagesItemFieldUserID = big.NewInt(1 << 9) applicationDetailsRecordMessagesItemFieldUserName = big.NewInt(1 << 10) ) @@ -7065,12 +7065,12 @@ type ApplicationDetailsRecordMessagesItem struct { CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` CurrentApplicationStatus *int `json:"currentApplicationStatus,omitempty" url:"currentApplicationStatus,omitempty"` CurrentApplicationSubStatus *int `json:"currentApplicationSubStatus,omitempty" url:"currentApplicationSubStatus,omitempty"` - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` MessageType *int `json:"messageType,omitempty" url:"messageType,omitempty"` OriginalApplicationStatus *int `json:"originalApplicationStatus,omitempty" url:"originalApplicationStatus,omitempty"` OriginalApplicationSubStatus *int `json:"originalApplicationSubStatus,omitempty" url:"originalApplicationSubStatus,omitempty"` - RoomId *int `json:"roomId,omitempty" url:"roomId,omitempty"` - UserId *int `json:"userId,omitempty" url:"userId,omitempty"` + RoomID *int `json:"roomId,omitempty" url:"roomId,omitempty"` + UserID *int `json:"userId,omitempty" url:"userId,omitempty"` UserName *string `json:"userName,omitempty" url:"userName,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -7108,11 +7108,11 @@ func (a *ApplicationDetailsRecordMessagesItem) GetCurrentApplicationSubStatus() return a.CurrentApplicationSubStatus } -func (a *ApplicationDetailsRecordMessagesItem) GetId() *int { +func (a *ApplicationDetailsRecordMessagesItem) GetID() *int { if a == nil { return nil } - return a.Id + return a.ID } func (a *ApplicationDetailsRecordMessagesItem) GetMessageType() *int { @@ -7136,18 +7136,18 @@ func (a *ApplicationDetailsRecordMessagesItem) GetOriginalApplicationSubStatus() return a.OriginalApplicationSubStatus } -func (a *ApplicationDetailsRecordMessagesItem) GetRoomId() *int { +func (a *ApplicationDetailsRecordMessagesItem) GetRoomID() *int { if a == nil { return nil } - return a.RoomId + return a.RoomID } -func (a *ApplicationDetailsRecordMessagesItem) GetUserId() *int { +func (a *ApplicationDetailsRecordMessagesItem) GetUserID() *int { if a == nil { return nil } - return a.UserId + return a.UserID } func (a *ApplicationDetailsRecordMessagesItem) GetUserName() *string { @@ -7199,11 +7199,11 @@ func (a *ApplicationDetailsRecordMessagesItem) SetCurrentApplicationSubStatus(cu a.require(applicationDetailsRecordMessagesItemFieldCurrentApplicationSubStatus) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecordMessagesItem) SetId(id *int) { - a.Id = id - a.require(applicationDetailsRecordMessagesItemFieldId) +func (a *ApplicationDetailsRecordMessagesItem) SetID(id *int) { + a.ID = id + a.require(applicationDetailsRecordMessagesItemFieldID) } // SetMessageType sets the MessageType field and marks it as non-optional; @@ -7227,18 +7227,18 @@ func (a *ApplicationDetailsRecordMessagesItem) SetOriginalApplicationSubStatus(o a.require(applicationDetailsRecordMessagesItemFieldOriginalApplicationSubStatus) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecordMessagesItem) SetRoomId(roomId *int) { - a.RoomId = roomId - a.require(applicationDetailsRecordMessagesItemFieldRoomId) +func (a *ApplicationDetailsRecordMessagesItem) SetRoomID(roomID *int) { + a.RoomID = roomID + a.require(applicationDetailsRecordMessagesItemFieldRoomID) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationDetailsRecordMessagesItem) SetUserId(userId *int) { - a.UserId = userId - a.require(applicationDetailsRecordMessagesItemFieldUserId) +func (a *ApplicationDetailsRecordMessagesItem) SetUserID(userID *int) { + a.UserID = userID + a.require(applicationDetailsRecordMessagesItemFieldUserID) } // SetUserName sets the UserName field and marks it as non-optional; @@ -7311,7 +7311,7 @@ var ( applicationQueryRecordFieldBinPerson = big.NewInt(1 << 9) applicationQueryRecordFieldBinPhone = big.NewInt(1 << 10) applicationQueryRecordFieldBinWeb = big.NewInt(1 << 11) - applicationQueryRecordFieldBoardingLinkId = big.NewInt(1 << 12) + applicationQueryRecordFieldBoardingLinkID = big.NewInt(1 << 12) applicationQueryRecordFieldBoardingStatus = big.NewInt(1 << 13) applicationQueryRecordFieldBoardingSubStatus = big.NewInt(1 << 14) applicationQueryRecordFieldBPhone = big.NewInt(1 << 15) @@ -7325,10 +7325,10 @@ var ( applicationQueryRecordFieldDbaName = big.NewInt(1 << 23) applicationQueryRecordFieldDocumentsRef = big.NewInt(1 << 24) applicationQueryRecordFieldEin = big.NewInt(1 << 25) - applicationQueryRecordFieldExternalPaypointId = big.NewInt(1 << 26) + applicationQueryRecordFieldExternalPaypointID = big.NewInt(1 << 26) applicationQueryRecordFieldGeneralEvents = big.NewInt(1 << 27) applicationQueryRecordFieldHighTicketAmount = big.NewInt(1 << 28) - applicationQueryRecordFieldIdApplication = big.NewInt(1 << 29) + applicationQueryRecordFieldIDApplication = big.NewInt(1 << 29) applicationQueryRecordFieldLastModified = big.NewInt(1 << 30) applicationQueryRecordFieldLegalName = big.NewInt(1 << 31) applicationQueryRecordFieldLicense = big.NewInt(1 << 32) @@ -7341,7 +7341,7 @@ var ( applicationQueryRecordFieldMCountry = big.NewInt(1 << 39) applicationQueryRecordFieldMState = big.NewInt(1 << 40) applicationQueryRecordFieldMZip = big.NewInt(1 << 41) - applicationQueryRecordFieldOrgId = big.NewInt(1 << 42) + applicationQueryRecordFieldOrgID = big.NewInt(1 << 42) applicationQueryRecordFieldOrgParentName = big.NewInt(1 << 43) applicationQueryRecordFieldOwnerData = big.NewInt(1 << 44) applicationQueryRecordFieldOwnType = big.NewInt(1 << 45) @@ -7352,7 +7352,7 @@ var ( applicationQueryRecordFieldServiceData = big.NewInt(1 << 50) applicationQueryRecordFieldSigner = big.NewInt(1 << 51) applicationQueryRecordFieldTaxfillname = big.NewInt(1 << 52) - applicationQueryRecordFieldTemplateId = big.NewInt(1 << 53) + applicationQueryRecordFieldTemplateID = big.NewInt(1 << 53) applicationQueryRecordFieldWebsiteAddress = big.NewInt(1 << 54) applicationQueryRecordFieldWhencharged = big.NewInt(1 << 55) applicationQueryRecordFieldWhendelivered = big.NewInt(1 << 56) @@ -7378,7 +7378,7 @@ type ApplicationQueryRecord struct { BinPerson *Binperson `json:"binPerson,omitempty" url:"binPerson,omitempty"` BinPhone *Binphone `json:"binPhone,omitempty" url:"binPhone,omitempty"` BinWeb *Binweb `json:"binWeb,omitempty" url:"binWeb,omitempty"` - BoardingLinkId *BoardingLinkId `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` + BoardingLinkID *BoardingLinkID `json:"boardingLinkId,omitempty" url:"boardingLinkId,omitempty"` BoardingStatus *BoardingStatus `json:"boardingStatus,omitempty" url:"boardingStatus,omitempty"` BoardingSubStatus *BoardingStatus `json:"boardingSubStatus,omitempty" url:"boardingSubStatus,omitempty"` BPhone *Bphone `json:"bPhone,omitempty" url:"bPhone,omitempty"` @@ -7392,11 +7392,11 @@ type ApplicationQueryRecord struct { DbaName *Dbaname `json:"dbaName,omitempty" url:"dbaName,omitempty"` DocumentsRef *BoardingApplicationAttachments `json:"documentsRef,omitempty" url:"documentsRef,omitempty"` Ein *Ein `json:"ein,omitempty" url:"ein,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointId,omitempty" url:"externalPaypointId,omitempty"` // Events associated with the application. GeneralEvents []*GeneralEvents `json:"generalEvents,omitempty" url:"generalEvents,omitempty"` HighTicketAmount *Highticketamt `json:"highTicketAmount,omitempty" url:"highTicketAmount,omitempty"` - IdApplication *AppId `json:"idApplication,omitempty" url:"idApplication,omitempty"` + IDApplication *AppID `json:"idApplication,omitempty" url:"idApplication,omitempty"` LastModified *LastModified `json:"lastModified,omitempty" url:"lastModified,omitempty"` LegalName *Legalname `json:"legalName,omitempty" url:"legalName,omitempty"` License *License `json:"license,omitempty" url:"license,omitempty"` @@ -7410,7 +7410,7 @@ type ApplicationQueryRecord struct { MCountry *Mcountry `json:"mCountry,omitempty" url:"mCountry,omitempty"` MState *Mstate `json:"mState,omitempty" url:"mState,omitempty"` MZip *Mzip `json:"mZip,omitempty" url:"mZip,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` OrgParentName *OrgParentName `json:"orgParentName,omitempty" url:"orgParentName,omitempty"` OwnerData *Ownership `json:"ownerData,omitempty" url:"ownerData,omitempty"` OwnType *OwnType `json:"ownType,omitempty" url:"ownType,omitempty"` @@ -7421,7 +7421,7 @@ type ApplicationQueryRecord struct { ServiceData *Services `json:"serviceData,omitempty" url:"serviceData,omitempty"` Signer *SignerData `json:"signer,omitempty" url:"signer,omitempty"` Taxfillname *Taxfillname `json:"taxfillname,omitempty" url:"taxfillname,omitempty"` - TemplateId *TemplateId `json:"templateId,omitempty" url:"templateId,omitempty"` + TemplateID *TemplateID `json:"templateId,omitempty" url:"templateId,omitempty"` WebsiteAddress *Website `json:"websiteAddress,omitempty" url:"websiteAddress,omitempty"` Whencharged *Whencharged `json:"whencharged,omitempty" url:"whencharged,omitempty"` Whendelivered *Whendelivered `json:"whendelivered,omitempty" url:"whendelivered,omitempty"` @@ -7523,11 +7523,11 @@ func (a *ApplicationQueryRecord) GetBinWeb() *Binweb { return a.BinWeb } -func (a *ApplicationQueryRecord) GetBoardingLinkId() *BoardingLinkId { +func (a *ApplicationQueryRecord) GetBoardingLinkID() *BoardingLinkID { if a == nil { return nil } - return a.BoardingLinkId + return a.BoardingLinkID } func (a *ApplicationQueryRecord) GetBoardingStatus() *BoardingStatus { @@ -7621,11 +7621,11 @@ func (a *ApplicationQueryRecord) GetEin() *Ein { return a.Ein } -func (a *ApplicationQueryRecord) GetExternalPaypointId() *ExternalPaypointId { +func (a *ApplicationQueryRecord) GetExternalPaypointID() *ExternalPaypointID { if a == nil { return nil } - return a.ExternalPaypointId + return a.ExternalPaypointID } func (a *ApplicationQueryRecord) GetGeneralEvents() []*GeneralEvents { @@ -7642,11 +7642,11 @@ func (a *ApplicationQueryRecord) GetHighTicketAmount() *Highticketamt { return a.HighTicketAmount } -func (a *ApplicationQueryRecord) GetIdApplication() *AppId { +func (a *ApplicationQueryRecord) GetIDApplication() *AppID { if a == nil { return nil } - return a.IdApplication + return a.IDApplication } func (a *ApplicationQueryRecord) GetLastModified() *LastModified { @@ -7733,11 +7733,11 @@ func (a *ApplicationQueryRecord) GetMZip() *Mzip { return a.MZip } -func (a *ApplicationQueryRecord) GetOrgId() *Orgid { +func (a *ApplicationQueryRecord) GetOrgID() *Orgid { if a == nil { return nil } - return a.OrgId + return a.OrgID } func (a *ApplicationQueryRecord) GetOrgParentName() *OrgParentName { @@ -7810,11 +7810,11 @@ func (a *ApplicationQueryRecord) GetTaxfillname() *Taxfillname { return a.Taxfillname } -func (a *ApplicationQueryRecord) GetTemplateId() *TemplateId { +func (a *ApplicationQueryRecord) GetTemplateID() *TemplateID { if a == nil { return nil } - return a.TemplateId + return a.TemplateID } func (a *ApplicationQueryRecord) GetWebsiteAddress() *Website { @@ -7978,11 +7978,11 @@ func (a *ApplicationQueryRecord) SetBinWeb(binWeb *Binweb) { a.require(applicationQueryRecordFieldBinWeb) } -// SetBoardingLinkId sets the BoardingLinkId field and marks it as non-optional; +// SetBoardingLinkID sets the BoardingLinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationQueryRecord) SetBoardingLinkId(boardingLinkId *BoardingLinkId) { - a.BoardingLinkId = boardingLinkId - a.require(applicationQueryRecordFieldBoardingLinkId) +func (a *ApplicationQueryRecord) SetBoardingLinkID(boardingLinkID *BoardingLinkID) { + a.BoardingLinkID = boardingLinkID + a.require(applicationQueryRecordFieldBoardingLinkID) } // SetBoardingStatus sets the BoardingStatus field and marks it as non-optional; @@ -8076,11 +8076,11 @@ func (a *ApplicationQueryRecord) SetEin(ein *Ein) { a.require(applicationQueryRecordFieldEin) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationQueryRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - a.ExternalPaypointId = externalPaypointId - a.require(applicationQueryRecordFieldExternalPaypointId) +func (a *ApplicationQueryRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + a.ExternalPaypointID = externalPaypointID + a.require(applicationQueryRecordFieldExternalPaypointID) } // SetGeneralEvents sets the GeneralEvents field and marks it as non-optional; @@ -8097,11 +8097,11 @@ func (a *ApplicationQueryRecord) SetHighTicketAmount(highTicketAmount *Highticke a.require(applicationQueryRecordFieldHighTicketAmount) } -// SetIdApplication sets the IdApplication field and marks it as non-optional; +// SetIDApplication sets the IDApplication field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationQueryRecord) SetIdApplication(idApplication *AppId) { - a.IdApplication = idApplication - a.require(applicationQueryRecordFieldIdApplication) +func (a *ApplicationQueryRecord) SetIDApplication(idApplication *AppID) { + a.IDApplication = idApplication + a.require(applicationQueryRecordFieldIDApplication) } // SetLastModified sets the LastModified field and marks it as non-optional; @@ -8188,11 +8188,11 @@ func (a *ApplicationQueryRecord) SetMZip(mZip *Mzip) { a.require(applicationQueryRecordFieldMZip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationQueryRecord) SetOrgId(orgId *Orgid) { - a.OrgId = orgId - a.require(applicationQueryRecordFieldOrgId) +func (a *ApplicationQueryRecord) SetOrgID(orgID *Orgid) { + a.OrgID = orgID + a.require(applicationQueryRecordFieldOrgID) } // SetOrgParentName sets the OrgParentName field and marks it as non-optional; @@ -8265,11 +8265,11 @@ func (a *ApplicationQueryRecord) SetTaxfillname(taxfillname *Taxfillname) { a.require(applicationQueryRecordFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplicationQueryRecord) SetTemplateId(templateId *TemplateId) { - a.TemplateId = templateId - a.require(applicationQueryRecordFieldTemplateId) +func (a *ApplicationQueryRecord) SetTemplateID(templateID *TemplateID) { + a.TemplateID = templateID + a.require(applicationQueryRecordFieldTemplateID) } // SetWebsiteAddress sets the WebsiteAddress field and marks it as non-optional; @@ -9245,13 +9245,13 @@ var ( boardingLinkQueryRecordFieldAcceptRegister = big.NewInt(1 << 1) boardingLinkQueryRecordFieldBuilderData = big.NewInt(1 << 2) boardingLinkQueryRecordFieldEntryAttributes = big.NewInt(1 << 3) - boardingLinkQueryRecordFieldId = big.NewInt(1 << 4) + boardingLinkQueryRecordFieldID = big.NewInt(1 << 4) boardingLinkQueryRecordFieldLogo = big.NewInt(1 << 5) - boardingLinkQueryRecordFieldOrgId = big.NewInt(1 << 6) + boardingLinkQueryRecordFieldOrgID = big.NewInt(1 << 6) boardingLinkQueryRecordFieldPageIdentifier = big.NewInt(1 << 7) boardingLinkQueryRecordFieldRecipientEmailNotification = big.NewInt(1 << 8) boardingLinkQueryRecordFieldReferenceName = big.NewInt(1 << 9) - boardingLinkQueryRecordFieldReferenceTemplateId = big.NewInt(1 << 10) + boardingLinkQueryRecordFieldReferenceTemplateID = big.NewInt(1 << 10) boardingLinkQueryRecordFieldResumable = big.NewInt(1 << 11) ) @@ -9260,14 +9260,14 @@ type BoardingLinkQueryRecord struct { AcceptRegister *AcceptRegister `json:"acceptRegister,omitempty" url:"acceptRegister,omitempty"` BuilderData *BuilderData `json:"builderData,omitempty" url:"builderData,omitempty"` EntryAttributes *EntryAttributes `json:"entryAttributes,omitempty" url:"entryAttributes,omitempty"` - Id *int64 `json:"id,omitempty" url:"id,omitempty"` + ID *int64 `json:"id,omitempty" url:"id,omitempty"` // Object containing logo file. Logo *FileContent `json:"logo,omitempty" url:"logo,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier:,omitempty" url:"pageIdentifier:,omitempty"` RecipientEmailNotification *RecipientEmailNotification `json:"recipientEmailNotification,omitempty" url:"recipientEmailNotification,omitempty"` ReferenceName *ReferenceName `json:"referenceName,omitempty" url:"referenceName,omitempty"` - ReferenceTemplateId *ReferenceTemplateId `json:"referenceTemplateId,omitempty" url:"referenceTemplateId,omitempty"` + ReferenceTemplateID *ReferenceTemplateID `json:"referenceTemplateId,omitempty" url:"referenceTemplateId,omitempty"` Resumable *Resumable `json:"resumable,omitempty" url:"resumable,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -9305,11 +9305,11 @@ func (b *BoardingLinkQueryRecord) GetEntryAttributes() *EntryAttributes { return b.EntryAttributes } -func (b *BoardingLinkQueryRecord) GetId() *int64 { +func (b *BoardingLinkQueryRecord) GetID() *int64 { if b == nil { return nil } - return b.Id + return b.ID } func (b *BoardingLinkQueryRecord) GetLogo() *FileContent { @@ -9319,11 +9319,11 @@ func (b *BoardingLinkQueryRecord) GetLogo() *FileContent { return b.Logo } -func (b *BoardingLinkQueryRecord) GetOrgId() *Orgid { +func (b *BoardingLinkQueryRecord) GetOrgID() *Orgid { if b == nil { return nil } - return b.OrgId + return b.OrgID } func (b *BoardingLinkQueryRecord) GetPageIdentifier() *PageIdentifier { @@ -9347,11 +9347,11 @@ func (b *BoardingLinkQueryRecord) GetReferenceName() *ReferenceName { return b.ReferenceName } -func (b *BoardingLinkQueryRecord) GetReferenceTemplateId() *ReferenceTemplateId { +func (b *BoardingLinkQueryRecord) GetReferenceTemplateID() *ReferenceTemplateID { if b == nil { return nil } - return b.ReferenceTemplateId + return b.ReferenceTemplateID } func (b *BoardingLinkQueryRecord) GetResumable() *Resumable { @@ -9403,11 +9403,11 @@ func (b *BoardingLinkQueryRecord) SetEntryAttributes(entryAttributes *EntryAttri b.require(boardingLinkQueryRecordFieldEntryAttributes) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingLinkQueryRecord) SetId(id *int64) { - b.Id = id - b.require(boardingLinkQueryRecordFieldId) +func (b *BoardingLinkQueryRecord) SetID(id *int64) { + b.ID = id + b.require(boardingLinkQueryRecordFieldID) } // SetLogo sets the Logo field and marks it as non-optional; @@ -9417,11 +9417,11 @@ func (b *BoardingLinkQueryRecord) SetLogo(logo *FileContent) { b.require(boardingLinkQueryRecordFieldLogo) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingLinkQueryRecord) SetOrgId(orgId *Orgid) { - b.OrgId = orgId - b.require(boardingLinkQueryRecordFieldOrgId) +func (b *BoardingLinkQueryRecord) SetOrgID(orgID *Orgid) { + b.OrgID = orgID + b.require(boardingLinkQueryRecordFieldOrgID) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; @@ -9445,11 +9445,11 @@ func (b *BoardingLinkQueryRecord) SetReferenceName(referenceName *ReferenceName) b.require(boardingLinkQueryRecordFieldReferenceName) } -// SetReferenceTemplateId sets the ReferenceTemplateId field and marks it as non-optional; +// SetReferenceTemplateID sets the ReferenceTemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingLinkQueryRecord) SetReferenceTemplateId(referenceTemplateId *ReferenceTemplateId) { - b.ReferenceTemplateId = referenceTemplateId - b.require(boardingLinkQueryRecordFieldReferenceTemplateId) +func (b *BoardingLinkQueryRecord) SetReferenceTemplateID(referenceTemplateID *ReferenceTemplateID) { + b.ReferenceTemplateID = referenceTemplateID + b.require(boardingLinkQueryRecordFieldReferenceTemplateID) } // SetResumable sets the Resumable field and marks it as non-optional; @@ -11052,14 +11052,14 @@ func (p *PSection) String() string { } var ( - payabliApiResponse00FieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponse00FieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponse00FieldResponseCode = big.NewInt(1 << 2) - payabliApiResponse00FieldResponseData = big.NewInt(1 << 3) - payabliApiResponse00FieldResponseText = big.NewInt(1 << 4) + payabliAPIResponse00FieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponse00FieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponse00FieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponse00FieldResponseData = big.NewInt(1 << 3) + payabliAPIResponse00FieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponse00 struct { +type PayabliAPIResponse00 struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` @@ -11073,49 +11073,49 @@ type PayabliApiResponse00 struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse00) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse00) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse00) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponse00) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponse00) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponse00) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponse00) GetResponseData() *Responsedata { +func (p *PayabliAPIResponse00) GetResponseData() *Responsedata { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse00) GetResponseText() ResponseText { +func (p *PayabliAPIResponse00) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse00) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse00) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse00) require(field *big.Int) { +func (p *PayabliAPIResponse00) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -11124,46 +11124,46 @@ func (p *PayabliApiResponse00) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse00) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponse00FieldIsSuccess) + p.require(payabliAPIResponse00FieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponse00) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponse00FieldPageIdentifier) + p.require(payabliAPIResponse00FieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponse00) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponse00FieldResponseCode) + p.require(payabliAPIResponse00FieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00) SetResponseData(responseData *Responsedata) { +func (p *PayabliAPIResponse00) SetResponseData(responseData *Responsedata) { p.ResponseData = responseData - p.require(payabliApiResponse00FieldResponseData) + p.require(payabliAPIResponse00FieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse00) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponse00FieldResponseText) + p.require(payabliAPIResponse00FieldResponseText) } -func (p *PayabliApiResponse00) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse00 +func (p *PayabliAPIResponse00) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse00 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse00(value) + *p = PayabliAPIResponse00(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -11173,8 +11173,8 @@ func (p *PayabliApiResponse00) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse00) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse00 +func (p *PayabliAPIResponse00) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse00 var marshaler = struct { embed }{ @@ -11184,7 +11184,7 @@ func (p *PayabliApiResponse00) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse00) String() string { +func (p *PayabliAPIResponse00) String() string { if p == nil { return "" } @@ -11418,11 +11418,11 @@ var ( queryBoardingLinksResponseRecordsItemFieldAcceptOauth = big.NewInt(1 << 0) queryBoardingLinksResponseRecordsItemFieldAcceptRegister = big.NewInt(1 << 1) queryBoardingLinksResponseRecordsItemFieldEntryAttributes = big.NewInt(1 << 2) - queryBoardingLinksResponseRecordsItemFieldId = big.NewInt(1 << 3) + queryBoardingLinksResponseRecordsItemFieldID = big.NewInt(1 << 3) queryBoardingLinksResponseRecordsItemFieldLastUpdated = big.NewInt(1 << 4) queryBoardingLinksResponseRecordsItemFieldOrgParentName = big.NewInt(1 << 5) queryBoardingLinksResponseRecordsItemFieldReferenceName = big.NewInt(1 << 6) - queryBoardingLinksResponseRecordsItemFieldReferenceTemplateId = big.NewInt(1 << 7) + queryBoardingLinksResponseRecordsItemFieldReferenceTemplateID = big.NewInt(1 << 7) queryBoardingLinksResponseRecordsItemFieldTemplateCode = big.NewInt(1 << 8) queryBoardingLinksResponseRecordsItemFieldTemplateName = big.NewInt(1 << 9) ) @@ -11432,11 +11432,11 @@ type QueryBoardingLinksResponseRecordsItem struct { AcceptRegister *AcceptRegister `json:"AcceptRegister,omitempty" url:"AcceptRegister,omitempty"` EntryAttributes *EntryAttributes `json:"EntryAttributes,omitempty" url:"EntryAttributes,omitempty"` // The record ID. - Id *int `json:"Id,omitempty" url:"Id,omitempty"` + ID *int `json:"Id,omitempty" url:"Id,omitempty"` LastUpdated *LastModified `json:"LastUpdated,omitempty" url:"LastUpdated,omitempty"` OrgParentName *OrgParentName `json:"OrgParentName,omitempty" url:"OrgParentName,omitempty"` ReferenceName *ReferenceName `json:"ReferenceName,omitempty" url:"ReferenceName,omitempty"` - ReferenceTemplateId *ReferenceTemplateId `json:"ReferenceTemplateId,omitempty" url:"ReferenceTemplateId,omitempty"` + ReferenceTemplateID *ReferenceTemplateID `json:"ReferenceTemplateId,omitempty" url:"ReferenceTemplateId,omitempty"` TemplateCode *TemplateCode `json:"TemplateCode,omitempty" url:"TemplateCode,omitempty"` TemplateName *TemplateName `json:"TemplateName,omitempty" url:"TemplateName,omitempty"` @@ -11468,11 +11468,11 @@ func (q *QueryBoardingLinksResponseRecordsItem) GetEntryAttributes() *EntryAttri return q.EntryAttributes } -func (q *QueryBoardingLinksResponseRecordsItem) GetId() *int { +func (q *QueryBoardingLinksResponseRecordsItem) GetID() *int { if q == nil { return nil } - return q.Id + return q.ID } func (q *QueryBoardingLinksResponseRecordsItem) GetLastUpdated() *LastModified { @@ -11496,11 +11496,11 @@ func (q *QueryBoardingLinksResponseRecordsItem) GetReferenceName() *ReferenceNam return q.ReferenceName } -func (q *QueryBoardingLinksResponseRecordsItem) GetReferenceTemplateId() *ReferenceTemplateId { +func (q *QueryBoardingLinksResponseRecordsItem) GetReferenceTemplateID() *ReferenceTemplateID { if q == nil { return nil } - return q.ReferenceTemplateId + return q.ReferenceTemplateID } func (q *QueryBoardingLinksResponseRecordsItem) GetTemplateCode() *TemplateCode { @@ -11552,11 +11552,11 @@ func (q *QueryBoardingLinksResponseRecordsItem) SetEntryAttributes(entryAttribut q.require(queryBoardingLinksResponseRecordsItemFieldEntryAttributes) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBoardingLinksResponseRecordsItem) SetId(id *int) { - q.Id = id - q.require(queryBoardingLinksResponseRecordsItemFieldId) +func (q *QueryBoardingLinksResponseRecordsItem) SetID(id *int) { + q.ID = id + q.require(queryBoardingLinksResponseRecordsItemFieldID) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -11580,11 +11580,11 @@ func (q *QueryBoardingLinksResponseRecordsItem) SetReferenceName(referenceName * q.require(queryBoardingLinksResponseRecordsItemFieldReferenceName) } -// SetReferenceTemplateId sets the ReferenceTemplateId field and marks it as non-optional; +// SetReferenceTemplateID sets the ReferenceTemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBoardingLinksResponseRecordsItem) SetReferenceTemplateId(referenceTemplateId *ReferenceTemplateId) { - q.ReferenceTemplateId = referenceTemplateId - q.require(queryBoardingLinksResponseRecordsItemFieldReferenceTemplateId) +func (q *QueryBoardingLinksResponseRecordsItem) SetReferenceTemplateID(referenceTemplateID *ReferenceTemplateID) { + q.ReferenceTemplateID = referenceTemplateID + q.require(queryBoardingLinksResponseRecordsItemFieldReferenceTemplateID) } // SetTemplateCode sets the TemplateCode field and marks it as non-optional; @@ -11781,7 +11781,7 @@ type SignerCountry = string // Information about the application's signer. var ( - signerDataFieldSignerUuid = big.NewInt(1 << 0) + signerDataFieldSignerUUID = big.NewInt(1 << 0) signerDataFieldName = big.NewInt(1 << 1) signerDataFieldSsn = big.NewInt(1 << 2) signerDataFieldDob = big.NewInt(1 << 3) @@ -11803,7 +11803,7 @@ var ( type SignerData struct { // The signer's ID. This is automatically generated by Payabli. - SignerUuid *string `json:"signerUuid,omitempty" url:"signerUuid,omitempty"` + SignerUUID *string `json:"signerUuid,omitempty" url:"signerUuid,omitempty"` Name *SignerName `json:"name,omitempty" url:"name,omitempty"` Ssn *SignerSsn `json:"ssn,omitempty" url:"ssn,omitempty"` Dob *SignerDob `json:"dob,omitempty" url:"dob,omitempty"` @@ -11831,11 +11831,11 @@ type SignerData struct { rawJSON json.RawMessage } -func (s *SignerData) GetSignerUuid() *string { +func (s *SignerData) GetSignerUUID() *string { if s == nil { return nil } - return s.SignerUuid + return s.SignerUUID } func (s *SignerData) GetName() *SignerName { @@ -11971,11 +11971,11 @@ func (s *SignerData) require(field *big.Int) { s.explicitFields.Or(s.explicitFields, field) } -// SetSignerUuid sets the SignerUuid field and marks it as non-optional; +// SetSignerUUID sets the SignerUUID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SignerData) SetSignerUuid(signerUuid *string) { - s.SignerUuid = signerUuid - s.require(signerDataFieldSignerUuid) +func (s *SignerData) SetSignerUUID(signerUUID *string) { + s.SignerUUID = signerUUID + s.require(signerDataFieldSignerUUID) } // SetName sets the Name field and marks it as non-optional; diff --git a/boarding/boarding_test/boarding_test.go b/boarding/boarding_test/boarding_test.go index ae99faa..3c3f200 100644 --- a/boarding/boarding_test/boarding_test.go +++ b/boarding/boarding_test/boarding_test.go @@ -131,7 +131,7 @@ func TestBoardingAddApplicationWithWireMock( "123123123", ), TypeAccount: payabli.TypeAccountChecking.Ptr(), - AccountId: payabli.String( + AccountID: payabli.String( "123-456", ), }, @@ -156,7 +156,7 @@ func TestBoardingAddApplicationWithWireMock( "123123123", ), TypeAccount: payabli.TypeAccountChecking.Ptr(), - AccountId: payabli.String( + AccountID: payabli.String( "123-456", ), }, @@ -247,7 +247,7 @@ func TestBoardingAddApplicationWithWireMock( Mzip: payabli.String( "37615", ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(123), ), Ownership: []*payabli.ApplicationDataPayInOwnershipItem{ @@ -368,7 +368,7 @@ func TestBoardingAddApplicationWithWireMock( TaxFillName: payabli.String( "Sunshine LLC", ), - TemplateId: payabli.Int64( + TemplateID: payabli.Int64( int64(22), ), Ticketamt: payabli.Float64( @@ -453,7 +453,7 @@ func TestBoardingGetApplicationByAuthWithWireMock( Email: payabli.String( "admin@email.com", ), - ReferenceId: payabli.String( + ReferenceID: payabli.String( "n6UCd1f1ygG7", ), } @@ -470,7 +470,7 @@ func TestBoardingGetApplicationByAuthWithWireMock( VerifyRequestCount(t, "TestBoardingGetApplicationByAuthWithWireMock", "POST", "/Boarding/read/17E", nil, 1) } -func TestBoardingGetByIdLinkApplicationWithWireMock( +func TestBoardingGetByIDLinkApplicationWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -480,19 +480,19 @@ func TestBoardingGetByIdLinkApplicationWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.Boarding.GetByIdLinkApplication( + _, invocationErr := client.Boarding.GetByIDLinkApplication( context.TODO(), 91, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestBoardingGetByIdLinkApplicationWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestBoardingGetByIDLinkApplicationWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestBoardingGetByIdLinkApplicationWithWireMock", "GET", "/Boarding/linkbyId/91", nil, 1) + VerifyRequestCount(t, "TestBoardingGetByIDLinkApplicationWithWireMock", "GET", "/Boarding/linkbyId/91", nil, 1) } -func TestBoardingGetByTemplateIdLinkApplicationWithWireMock( +func TestBoardingGetByTemplateIDLinkApplicationWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -502,16 +502,16 @@ func TestBoardingGetByTemplateIdLinkApplicationWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.Boarding.GetByTemplateIdLinkApplication( + _, invocationErr := client.Boarding.GetByTemplateIDLinkApplication( context.TODO(), 80, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestBoardingGetByTemplateIdLinkApplicationWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestBoardingGetByTemplateIDLinkApplicationWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestBoardingGetByTemplateIdLinkApplicationWithWireMock", "GET", "/Boarding/linkbyTemplate/80", nil, 1) + VerifyRequestCount(t, "TestBoardingGetByTemplateIDLinkApplicationWithWireMock", "GET", "/Boarding/linkbyTemplate/80", nil, 1) } func TestBoardingGetExternalApplicationWithWireMock( diff --git a/boarding/client.go b/boarding/client.go index 4a84454..e1fdc6e 100644 --- a/boarding/client.go +++ b/boarding/client.go @@ -37,7 +37,7 @@ func (c *Client) AddApplication( ctx context.Context, request *payabli.AddApplicationRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.AddApplication( ctx, request, @@ -53,12 +53,12 @@ func (c *Client) AddApplication( func (c *Client) DeleteApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.DeleteApplication( ctx, - appId, + appID, opts..., ) if err != nil { @@ -71,12 +71,12 @@ func (c *Client) DeleteApplication( func (c *Client) GetApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, opts ...option.RequestOption, ) (*payabli.ApplicationDetailsRecord, error) { response, err := c.WithRawResponse.GetApplication( ctx, - appId, + appID, opts..., ) if err != nil { @@ -89,13 +89,13 @@ func (c *Client) GetApplication( func (c *Client) GetApplicationByAuth( ctx context.Context, // The application ID in Hex format. Find this at the end of the boarding link URL returned in a call to api/Boarding/applink/{appId}/{mail2}. For example in: `https://boarding-sandbox.payabli.com/boarding/externalapp/load/17E`, the xId is `17E`. - xId string, + xID string, request *payabli.RequestAppByAuth, opts ...option.RequestOption, ) (*payabli.ApplicationQueryRecord, error) { response, err := c.WithRawResponse.GetApplicationByAuth( ctx, - xId, + xID, request, opts..., ) @@ -106,15 +106,15 @@ func (c *Client) GetApplicationByAuth( } // Retrieves details for a boarding link, by ID. -func (c *Client) GetByIdLinkApplication( +func (c *Client) GetByIDLinkApplication( ctx context.Context, // The boarding link ID. You can find this at the end of the boarding link reference name. For example `https://boarding.payabli.com/boarding/app/myorgaccountname-00091`. The ID is `91`. - boardingLinkId int, + boardingLinkID int, opts ...option.RequestOption, ) (*payabli.BoardingLinkQueryRecord, error) { - response, err := c.WithRawResponse.GetByIdLinkApplication( + response, err := c.WithRawResponse.GetByIDLinkApplication( ctx, - boardingLinkId, + boardingLinkID, opts..., ) if err != nil { @@ -124,15 +124,15 @@ func (c *Client) GetByIdLinkApplication( } // Get details for a boarding link using the boarding template ID. This endpoint requires an application API token. -func (c *Client) GetByTemplateIdLinkApplication( +func (c *Client) GetByTemplateIDLinkApplication( ctx context.Context, // The boarding template ID. You can find this at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, ) (*payabli.BoardingLinkQueryRecord, error) { - response, err := c.WithRawResponse.GetByTemplateIdLinkApplication( + response, err := c.WithRawResponse.GetByTemplateIDLinkApplication( ctx, - templateId, + templateID, opts..., ) if err != nil { @@ -145,15 +145,15 @@ func (c *Client) GetByTemplateIdLinkApplication( func (c *Client) GetExternalApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, // Email address used to access the application. If `sendEmail` parameter is true, a link to the application is sent to this email address. mail2 string, request *payabli.GetExternalApplicationRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00, error) { +) (*payabli.PayabliAPIResponse00, error) { response, err := c.WithRawResponse.GetExternalApplication( ctx, - appId, + appID, mail2, request, opts..., @@ -186,13 +186,13 @@ func (c *Client) GetLinkApplication( func (c *Client) ListApplications( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListApplicationsRequest, opts ...option.RequestOption, ) (*payabli.QueryBoardingAppsListResponse, error) { response, err := c.WithRawResponse.ListApplications( ctx, - orgId, + orgID, request, opts..., ) @@ -206,13 +206,13 @@ func (c *Client) ListApplications( func (c *Client) ListBoardingLinks( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBoardingLinksRequest, opts ...option.RequestOption, ) (*payabli.QueryBoardingLinksResponse, error) { response, err := c.WithRawResponse.ListBoardingLinks( ctx, - orgId, + orgID, request, opts..., ) @@ -226,13 +226,13 @@ func (c *Client) ListBoardingLinks( func (c *Client) UpdateApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, request *payabli.ApplicationData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.UpdateApplication( ctx, - appId, + appID, request, opts..., ) diff --git a/boarding/raw_client.go b/boarding/raw_client.go index 826d3c1..4f87d6a 100644 --- a/boarding/raw_client.go +++ b/boarding/raw_client.go @@ -34,7 +34,7 @@ func (r *RawClient) AddApplication( ctx context.Context, request *payabli.AddApplicationRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -46,7 +46,7 @@ func (r *RawClient) AddApplication( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -65,7 +65,7 @@ func (r *RawClient) AddApplication( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -75,9 +75,9 @@ func (r *RawClient) AddApplication( func (r *RawClient) DeleteApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -86,13 +86,13 @@ func (r *RawClient) DeleteApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/app/%v", - appId, + appID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -110,7 +110,7 @@ func (r *RawClient) DeleteApplication( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -120,7 +120,7 @@ func (r *RawClient) DeleteApplication( func (r *RawClient) GetApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, opts ...option.RequestOption, ) (*core.Response[*payabli.ApplicationDetailsRecord], error) { options := core.NewRequestOptions(opts...) @@ -131,7 +131,7 @@ func (r *RawClient) GetApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/read/%v", - appId, + appID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -165,7 +165,7 @@ func (r *RawClient) GetApplication( func (r *RawClient) GetApplicationByAuth( ctx context.Context, // The application ID in Hex format. Find this at the end of the boarding link URL returned in a call to api/Boarding/applink/{appId}/{mail2}. For example in: `https://boarding-sandbox.payabli.com/boarding/externalapp/load/17E`, the xId is `17E`. - xId string, + xID string, request *payabli.RequestAppByAuth, opts ...option.RequestOption, ) (*core.Response[*payabli.ApplicationQueryRecord], error) { @@ -177,7 +177,7 @@ func (r *RawClient) GetApplicationByAuth( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/read/%v", - xId, + xID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -210,10 +210,10 @@ func (r *RawClient) GetApplicationByAuth( }, nil } -func (r *RawClient) GetByIdLinkApplication( +func (r *RawClient) GetByIDLinkApplication( ctx context.Context, // The boarding link ID. You can find this at the end of the boarding link reference name. For example `https://boarding.payabli.com/boarding/app/myorgaccountname-00091`. The ID is `91`. - boardingLinkId int, + boardingLinkID int, opts ...option.RequestOption, ) (*core.Response[*payabli.BoardingLinkQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -224,7 +224,7 @@ func (r *RawClient) GetByIdLinkApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/linkbyId/%v", - boardingLinkId, + boardingLinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -255,10 +255,10 @@ func (r *RawClient) GetByIdLinkApplication( }, nil } -func (r *RawClient) GetByTemplateIdLinkApplication( +func (r *RawClient) GetByTemplateIDLinkApplication( ctx context.Context, // The boarding template ID. You can find this at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, ) (*core.Response[*payabli.BoardingLinkQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -269,7 +269,7 @@ func (r *RawClient) GetByTemplateIdLinkApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/linkbyTemplate/%v", - templateId, + templateID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -303,12 +303,12 @@ func (r *RawClient) GetByTemplateIdLinkApplication( func (r *RawClient) GetExternalApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, // Email address used to access the application. If `sendEmail` parameter is true, a link to the application is sent to this email address. mail2 string, request *payabli.GetExternalApplicationRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00], error) { +) (*core.Response[*payabli.PayabliAPIResponse00], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -317,7 +317,7 @@ func (r *RawClient) GetExternalApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/applink/%v/%v", - appId, + appID, mail2, ) queryParams, err := internal.QueryValues(request) @@ -331,7 +331,7 @@ func (r *RawClient) GetExternalApplication( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00 + var response *payabli.PayabliAPIResponse00 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -349,7 +349,7 @@ func (r *RawClient) GetExternalApplication( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00]{ + return &core.Response[*payabli.PayabliAPIResponse00]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -404,7 +404,7 @@ func (r *RawClient) GetLinkApplication( func (r *RawClient) ListApplications( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListApplicationsRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryBoardingAppsListResponse], error) { @@ -416,7 +416,7 @@ func (r *RawClient) ListApplications( ) endpointURL := internal.EncodeURL( baseURL+"/Query/boarding/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -457,7 +457,7 @@ func (r *RawClient) ListApplications( func (r *RawClient) ListBoardingLinks( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBoardingLinksRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryBoardingLinksResponse], error) { @@ -469,7 +469,7 @@ func (r *RawClient) ListBoardingLinks( ) endpointURL := internal.EncodeURL( baseURL+"/Query/boardinglinks/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -510,10 +510,10 @@ func (r *RawClient) ListBoardingLinks( func (r *RawClient) UpdateApplication( ctx context.Context, // Boarding application ID. - appId int, + appID int, request *payabli.ApplicationData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -522,13 +522,13 @@ func (r *RawClient) UpdateApplication( ) endpointURL := internal.EncodeURL( baseURL+"/Boarding/app/%v", - appId, + appID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -547,7 +547,7 @@ func (r *RawClient) UpdateApplication( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/boarding_test.go b/boarding_test.go index a17f286..247f5f3 100644 --- a/boarding_test.go +++ b/boarding_test.go @@ -18,11 +18,11 @@ func TestSettersRequestAppByAuth(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &RequestAppByAuth{} - var fernTestValueReferenceId *string - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *string + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -60,14 +60,14 @@ func TestSettersMarkExplicitRequestAppByAuth(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestAppByAuth{} - var fernTestValueReferenceId *string + var fernTestValueReferenceID *string // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1329,11 +1329,11 @@ func TestSettersApplicationData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &ApplicationData{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -1433,11 +1433,11 @@ func TestSettersApplicationData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationData{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -1537,11 +1537,11 @@ func TestSettersApplicationData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationData{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -2255,28 +2255,28 @@ func TestGettersApplicationData(t *testing.T) { _ = obj.GetEin() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationData // Should not panic - getters should handle nil receiver gracefully @@ -2285,7 +2285,7 @@ func TestGettersApplicationData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetFaxnumber", func(t *testing.T) { @@ -2684,28 +2684,28 @@ func TestGettersApplicationData(t *testing.T) { _ = obj.GetMzip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationData // Should not panic - getters should handle nil receiver gracefully @@ -2714,7 +2714,7 @@ func TestGettersApplicationData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOwnership", func(t *testing.T) { @@ -3113,28 +3113,28 @@ func TestGettersApplicationData(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationData // Should not panic - getters should handle nil receiver gracefully @@ -3143,7 +3143,7 @@ func TestGettersApplicationData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetTicketamt", func(t *testing.T) { @@ -4068,14 +4068,14 @@ func TestSettersMarkExplicitApplicationData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4471,14 +4471,14 @@ func TestSettersMarkExplicitApplicationData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4874,14 +4874,14 @@ func TestSettersMarkExplicitApplicationData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationData{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5274,11 +5274,11 @@ func TestSettersApplicationDataManaged(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingLinkId", func(t *testing.T) { + t.Run("SetBoardingLinkID", func(t *testing.T) { obj := &ApplicationDataManaged{} - var fernTestValueBoardingLinkId *string - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) - assert.Equal(t, fernTestValueBoardingLinkId, obj.BoardingLinkId) + var fernTestValueBoardingLinkID *string + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) + assert.Equal(t, fernTestValueBoardingLinkID, obj.BoardingLinkID) assert.NotNil(t, obj.explicitFields) }) @@ -5426,11 +5426,11 @@ func TestSettersApplicationDataManaged(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationDataManaged{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -5498,11 +5498,11 @@ func TestSettersApplicationDataManaged(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationDataManaged{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -5780,28 +5780,28 @@ func TestGettersApplicationDataManaged(t *testing.T) { _ = obj.GetBcountry() // Should return zero value }) - t.Run("GetBoardingLinkId", func(t *testing.T) { + t.Run("GetBoardingLinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} var expected *string - obj.BoardingLinkId = expected + obj.BoardingLinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingLinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingLinkID(), "getter should return the property value") }) - t.Run("GetBoardingLinkId_NilValue", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - obj.BoardingLinkId = nil + obj.BoardingLinkID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingLinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingLinkID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingLinkId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataManaged // Should not panic - getters should handle nil receiver gracefully @@ -5810,7 +5810,7 @@ func TestGettersApplicationDataManaged(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingLinkId() // Should return zero value + _ = obj.GetBoardingLinkID() // Should return zero value }) t.Run("GetBstate", func(t *testing.T) { @@ -6407,28 +6407,28 @@ func TestGettersApplicationDataManaged(t *testing.T) { _ = obj.GetMzip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataManaged // Should not panic - getters should handle nil receiver gracefully @@ -6437,7 +6437,7 @@ func TestGettersApplicationDataManaged(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOwnership", func(t *testing.T) { @@ -6704,28 +6704,28 @@ func TestGettersApplicationDataManaged(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataManaged // Should not panic - getters should handle nil receiver gracefully @@ -6734,7 +6734,7 @@ func TestGettersApplicationDataManaged(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetWebsite", func(t *testing.T) { @@ -7122,14 +7122,14 @@ func TestSettersMarkExplicitApplicationDataManaged(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingLinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingLinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - var fernTestValueBoardingLinkId *string + var fernTestValueBoardingLinkID *string // Act - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7711,14 +7711,14 @@ func TestSettersMarkExplicitApplicationDataManaged(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7990,14 +7990,14 @@ func TestSettersMarkExplicitApplicationDataManaged(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataManaged{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9773,11 +9773,11 @@ func TestSettersApplicationDataOdp(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingLinkId", func(t *testing.T) { + t.Run("SetBoardingLinkID", func(t *testing.T) { obj := &ApplicationDataOdp{} - var fernTestValueBoardingLinkId *string - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) - assert.Equal(t, fernTestValueBoardingLinkId, obj.BoardingLinkId) + var fernTestValueBoardingLinkID *string + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) + assert.Equal(t, fernTestValueBoardingLinkID, obj.BoardingLinkID) assert.NotNil(t, obj.explicitFields) }) @@ -9933,11 +9933,11 @@ func TestSettersApplicationDataOdp(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationDataOdp{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -10037,11 +10037,11 @@ func TestSettersApplicationDataOdp(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationDataOdp{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -10352,28 +10352,28 @@ func TestGettersApplicationDataOdp(t *testing.T) { _ = obj.GetBcountry() // Should return zero value }) - t.Run("GetBoardingLinkId", func(t *testing.T) { + t.Run("GetBoardingLinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} var expected *string - obj.BoardingLinkId = expected + obj.BoardingLinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingLinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingLinkID(), "getter should return the property value") }) - t.Run("GetBoardingLinkId_NilValue", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - obj.BoardingLinkId = nil + obj.BoardingLinkID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingLinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingLinkID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingLinkId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataOdp // Should not panic - getters should handle nil receiver gracefully @@ -10382,7 +10382,7 @@ func TestGettersApplicationDataOdp(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingLinkId() // Should return zero value + _ = obj.GetBoardingLinkID() // Should return zero value }) t.Run("GetBstate", func(t *testing.T) { @@ -11012,28 +11012,28 @@ func TestGettersApplicationDataOdp(t *testing.T) { _ = obj.GetMzip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataOdp // Should not panic - getters should handle nil receiver gracefully @@ -11042,7 +11042,7 @@ func TestGettersApplicationDataOdp(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOwnership", func(t *testing.T) { @@ -11401,28 +11401,28 @@ func TestGettersApplicationDataOdp(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataOdp // Should not panic - getters should handle nil receiver gracefully @@ -11431,7 +11431,7 @@ func TestGettersApplicationDataOdp(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetWebsite", func(t *testing.T) { @@ -11850,14 +11850,14 @@ func TestSettersMarkExplicitApplicationDataOdp(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingLinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingLinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - var fernTestValueBoardingLinkId *string + var fernTestValueBoardingLinkID *string // Act - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12470,14 +12470,14 @@ func TestSettersMarkExplicitApplicationDataOdp(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12873,14 +12873,14 @@ func TestSettersMarkExplicitApplicationDataOdp(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataOdp{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14696,11 +14696,11 @@ func TestSettersApplicationDataPayIn(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingLinkId", func(t *testing.T) { + t.Run("SetBoardingLinkID", func(t *testing.T) { obj := &ApplicationDataPayIn{} - var fernTestValueBoardingLinkId *string - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) - assert.Equal(t, fernTestValueBoardingLinkId, obj.BoardingLinkId) + var fernTestValueBoardingLinkID *string + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) + assert.Equal(t, fernTestValueBoardingLinkID, obj.BoardingLinkID) assert.NotNil(t, obj.explicitFields) }) @@ -14768,11 +14768,11 @@ func TestSettersApplicationDataPayIn(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalpaypointId", func(t *testing.T) { + t.Run("SetExternalpaypointID", func(t *testing.T) { obj := &ApplicationDataPayIn{} - var fernTestValueExternalpaypointId *ExternalPaypointId - obj.SetExternalpaypointId(fernTestValueExternalpaypointId) - assert.Equal(t, fernTestValueExternalpaypointId, obj.ExternalpaypointId) + var fernTestValueExternalpaypointID *ExternalPaypointID + obj.SetExternalpaypointID(fernTestValueExternalpaypointID) + assert.Equal(t, fernTestValueExternalpaypointID, obj.ExternalpaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -14872,11 +14872,11 @@ func TestSettersApplicationDataPayIn(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationDataPayIn{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -14952,11 +14952,11 @@ func TestSettersApplicationDataPayIn(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationDataPayIn{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -15470,28 +15470,28 @@ func TestGettersApplicationDataPayIn(t *testing.T) { _ = obj.GetBinweb() // Should return zero value }) - t.Run("GetBoardingLinkId", func(t *testing.T) { + t.Run("GetBoardingLinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} var expected *string - obj.BoardingLinkId = expected + obj.BoardingLinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingLinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingLinkID(), "getter should return the property value") }) - t.Run("GetBoardingLinkId_NilValue", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - obj.BoardingLinkId = nil + obj.BoardingLinkID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingLinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingLinkID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingLinkId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataPayIn // Should not panic - getters should handle nil receiver gracefully @@ -15500,7 +15500,7 @@ func TestGettersApplicationDataPayIn(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingLinkId() // Should return zero value + _ = obj.GetBoardingLinkID() // Should return zero value }) t.Run("GetBstate", func(t *testing.T) { @@ -15767,28 +15767,28 @@ func TestGettersApplicationDataPayIn(t *testing.T) { _ = obj.GetEin() // Should return zero value }) - t.Run("GetExternalpaypointId", func(t *testing.T) { + t.Run("GetExternalpaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var expected *ExternalPaypointId - obj.ExternalpaypointId = expected + var expected *ExternalPaypointID + obj.ExternalpaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalpaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalpaypointID(), "getter should return the property value") }) - t.Run("GetExternalpaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalpaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - obj.ExternalpaypointId = nil + obj.ExternalpaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalpaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalpaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalpaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalpaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataPayIn // Should not panic - getters should handle nil receiver gracefully @@ -15797,7 +15797,7 @@ func TestGettersApplicationDataPayIn(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalpaypointId() // Should return zero value + _ = obj.GetExternalpaypointID() // Should return zero value }) t.Run("GetFaxnumber", func(t *testing.T) { @@ -16196,28 +16196,28 @@ func TestGettersApplicationDataPayIn(t *testing.T) { _ = obj.GetMzip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataPayIn // Should not panic - getters should handle nil receiver gracefully @@ -16226,7 +16226,7 @@ func TestGettersApplicationDataPayIn(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOwnership", func(t *testing.T) { @@ -16506,28 +16506,28 @@ func TestGettersApplicationDataPayIn(t *testing.T) { _ = obj.GetTaxFillName() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDataPayIn // Should not panic - getters should handle nil receiver gracefully @@ -16536,7 +16536,7 @@ func TestGettersApplicationDataPayIn(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetTicketamt", func(t *testing.T) { @@ -17268,14 +17268,14 @@ func TestSettersMarkExplicitApplicationDataPayIn(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingLinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingLinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var fernTestValueBoardingLinkId *string + var fernTestValueBoardingLinkID *string // Act - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17547,14 +17547,14 @@ func TestSettersMarkExplicitApplicationDataPayIn(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalpaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalpaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var fernTestValueExternalpaypointId *ExternalPaypointId + var fernTestValueExternalpaypointID *ExternalPaypointID // Act - obj.SetExternalpaypointId(fernTestValueExternalpaypointId) + obj.SetExternalpaypointID(fernTestValueExternalpaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17950,14 +17950,14 @@ func TestSettersMarkExplicitApplicationDataPayIn(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -18260,14 +18260,14 @@ func TestSettersMarkExplicitApplicationDataPayIn(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDataPayIn{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21008,11 +21008,11 @@ func TestSettersApplicationDetailsRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingLinkId", func(t *testing.T) { + t.Run("SetBoardingLinkID", func(t *testing.T) { obj := &ApplicationDetailsRecord{} - var fernTestValueBoardingLinkId *BoardingLinkId - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) - assert.Equal(t, fernTestValueBoardingLinkId, obj.BoardingLinkId) + var fernTestValueBoardingLinkID *BoardingLinkID + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) + assert.Equal(t, fernTestValueBoardingLinkID, obj.BoardingLinkID) assert.NotNil(t, obj.explicitFields) }) @@ -21120,11 +21120,11 @@ func TestSettersApplicationDetailsRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &ApplicationDetailsRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -21144,11 +21144,11 @@ func TestSettersApplicationDetailsRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdApplication", func(t *testing.T) { + t.Run("SetIDApplication", func(t *testing.T) { obj := &ApplicationDetailsRecord{} - var fernTestValueIdApplication *AppId - obj.SetIdApplication(fernTestValueIdApplication) - assert.Equal(t, fernTestValueIdApplication, obj.IdApplication) + var fernTestValueIDApplication *AppID + obj.SetIDApplication(fernTestValueIDApplication) + assert.Equal(t, fernTestValueIDApplication, obj.IDApplication) assert.NotNil(t, obj.explicitFields) }) @@ -21256,11 +21256,11 @@ func TestSettersApplicationDetailsRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationDetailsRecord{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -21344,11 +21344,11 @@ func TestSettersApplicationDetailsRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationDetailsRecord{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -21799,28 +21799,28 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { _ = obj.GetBinWeb() // Should return zero value }) - t.Run("GetBoardingLinkId", func(t *testing.T) { + t.Run("GetBoardingLinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var expected *BoardingLinkId - obj.BoardingLinkId = expected + var expected *BoardingLinkID + obj.BoardingLinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingLinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingLinkID(), "getter should return the property value") }) - t.Run("GetBoardingLinkId_NilValue", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - obj.BoardingLinkId = nil + obj.BoardingLinkID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingLinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingLinkID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingLinkId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecord // Should not panic - getters should handle nil receiver gracefully @@ -21829,7 +21829,7 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingLinkId() // Should return zero value + _ = obj.GetBoardingLinkID() // Should return zero value }) t.Run("GetBoardingStatus", func(t *testing.T) { @@ -22261,28 +22261,28 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { _ = obj.GetEin() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecord // Should not panic - getters should handle nil receiver gracefully @@ -22291,7 +22291,7 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetGeneralEvents", func(t *testing.T) { @@ -22360,28 +22360,28 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { _ = obj.GetHighTicketAmount() // Should return zero value }) - t.Run("GetIdApplication", func(t *testing.T) { + t.Run("GetIDApplication", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var expected *AppId - obj.IdApplication = expected + var expected *AppID + obj.IDApplication = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdApplication(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDApplication(), "getter should return the property value") }) - t.Run("GetIdApplication_NilValue", func(t *testing.T) { + t.Run("GetIDApplication_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - obj.IdApplication = nil + obj.IDApplication = nil // Act & Assert - assert.Nil(t, obj.GetIdApplication(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDApplication(), "getter should return nil when property is nil") }) - t.Run("GetIdApplication_NilReceiver", func(t *testing.T) { + t.Run("GetIDApplication_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecord // Should not panic - getters should handle nil receiver gracefully @@ -22390,7 +22390,7 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdApplication() // Should return zero value + _ = obj.GetIDApplication() // Should return zero value }) t.Run("GetLastModified", func(t *testing.T) { @@ -22822,28 +22822,28 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { _ = obj.GetMZip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecord // Should not panic - getters should handle nil receiver gracefully @@ -22852,7 +22852,7 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgParentName", func(t *testing.T) { @@ -23185,28 +23185,28 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecord // Should not panic - getters should handle nil receiver gracefully @@ -23215,7 +23215,7 @@ func TestGettersApplicationDetailsRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetWebsiteAddress", func(t *testing.T) { @@ -23791,14 +23791,14 @@ func TestSettersMarkExplicitApplicationDetailsRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingLinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingLinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var fernTestValueBoardingLinkId *BoardingLinkId + var fernTestValueBoardingLinkID *BoardingLinkID // Act - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24225,14 +24225,14 @@ func TestSettersMarkExplicitApplicationDetailsRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24318,14 +24318,14 @@ func TestSettersMarkExplicitApplicationDetailsRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdApplication_MarksExplicit", func(t *testing.T) { + t.Run("SetIDApplication_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var fernTestValueIdApplication *AppId + var fernTestValueIDApplication *AppID // Act - obj.SetIdApplication(fernTestValueIdApplication) + obj.SetIDApplication(fernTestValueIDApplication) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24752,14 +24752,14 @@ func TestSettersMarkExplicitApplicationDetailsRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25093,14 +25093,14 @@ func TestSettersMarkExplicitApplicationDetailsRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecord{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25345,11 +25345,11 @@ func TestSettersApplicationDetailsRecordMessagesItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -25377,19 +25377,19 @@ func TestSettersApplicationDetailsRecordMessagesItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueRoomId *int - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *int + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueUserId *int - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID *int + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) @@ -25536,28 +25536,28 @@ func TestGettersApplicationDetailsRecordMessagesItem(t *testing.T) { _ = obj.GetCurrentApplicationSubStatus() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecordMessagesItem // Should not panic - getters should handle nil receiver gracefully @@ -25566,7 +25566,7 @@ func TestGettersApplicationDetailsRecordMessagesItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetMessageType", func(t *testing.T) { @@ -25668,28 +25668,28 @@ func TestGettersApplicationDetailsRecordMessagesItem(t *testing.T) { _ = obj.GetOriginalApplicationSubStatus() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} var expected *int - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecordMessagesItem // Should not panic - getters should handle nil receiver gracefully @@ -25698,31 +25698,31 @@ func TestGettersApplicationDetailsRecordMessagesItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) - t.Run("GetUserId", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} var expected *int - obj.UserId = expected + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetUserId_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - obj.UserId = nil + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetUserId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetUserId_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationDetailsRecordMessagesItem // Should not panic - getters should handle nil receiver gracefully @@ -25731,7 +25731,7 @@ func TestGettersApplicationDetailsRecordMessagesItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserId() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) t.Run("GetUserName", func(t *testing.T) { @@ -25894,14 +25894,14 @@ func TestSettersMarkExplicitApplicationDetailsRecordMessagesItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26018,14 +26018,14 @@ func TestSettersMarkExplicitApplicationDetailsRecordMessagesItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueRoomId *int + var fernTestValueRoomID *int // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26049,14 +26049,14 @@ func TestSettersMarkExplicitApplicationDetailsRecordMessagesItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationDetailsRecordMessagesItem{} - var fernTestValueUserId *int + var fernTestValueUserID *int // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26210,11 +26210,11 @@ func TestSettersApplicationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingLinkId", func(t *testing.T) { + t.Run("SetBoardingLinkID", func(t *testing.T) { obj := &ApplicationQueryRecord{} - var fernTestValueBoardingLinkId *BoardingLinkId - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) - assert.Equal(t, fernTestValueBoardingLinkId, obj.BoardingLinkId) + var fernTestValueBoardingLinkID *BoardingLinkID + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) + assert.Equal(t, fernTestValueBoardingLinkID, obj.BoardingLinkID) assert.NotNil(t, obj.explicitFields) }) @@ -26322,11 +26322,11 @@ func TestSettersApplicationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &ApplicationQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -26346,11 +26346,11 @@ func TestSettersApplicationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdApplication", func(t *testing.T) { + t.Run("SetIDApplication", func(t *testing.T) { obj := &ApplicationQueryRecord{} - var fernTestValueIdApplication *AppId - obj.SetIdApplication(fernTestValueIdApplication) - assert.Equal(t, fernTestValueIdApplication, obj.IdApplication) + var fernTestValueIDApplication *AppID + obj.SetIDApplication(fernTestValueIDApplication) + assert.Equal(t, fernTestValueIDApplication, obj.IDApplication) assert.NotNil(t, obj.explicitFields) }) @@ -26450,11 +26450,11 @@ func TestSettersApplicationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ApplicationQueryRecord{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -26538,11 +26538,11 @@ func TestSettersApplicationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &ApplicationQueryRecord{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -27017,28 +27017,28 @@ func TestGettersApplicationQueryRecord(t *testing.T) { _ = obj.GetBinWeb() // Should return zero value }) - t.Run("GetBoardingLinkId", func(t *testing.T) { + t.Run("GetBoardingLinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var expected *BoardingLinkId - obj.BoardingLinkId = expected + var expected *BoardingLinkID + obj.BoardingLinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingLinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingLinkID(), "getter should return the property value") }) - t.Run("GetBoardingLinkId_NilValue", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - obj.BoardingLinkId = nil + obj.BoardingLinkID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingLinkId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingLinkID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingLinkId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingLinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -27047,7 +27047,7 @@ func TestGettersApplicationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingLinkId() // Should return zero value + _ = obj.GetBoardingLinkID() // Should return zero value }) t.Run("GetBoardingStatus", func(t *testing.T) { @@ -27479,28 +27479,28 @@ func TestGettersApplicationQueryRecord(t *testing.T) { _ = obj.GetEin() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -27509,7 +27509,7 @@ func TestGettersApplicationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetGeneralEvents", func(t *testing.T) { @@ -27578,28 +27578,28 @@ func TestGettersApplicationQueryRecord(t *testing.T) { _ = obj.GetHighTicketAmount() // Should return zero value }) - t.Run("GetIdApplication", func(t *testing.T) { + t.Run("GetIDApplication", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var expected *AppId - obj.IdApplication = expected + var expected *AppID + obj.IDApplication = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdApplication(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDApplication(), "getter should return the property value") }) - t.Run("GetIdApplication_NilValue", func(t *testing.T) { + t.Run("GetIDApplication_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - obj.IdApplication = nil + obj.IDApplication = nil // Act & Assert - assert.Nil(t, obj.GetIdApplication(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDApplication(), "getter should return nil when property is nil") }) - t.Run("GetIdApplication_NilReceiver", func(t *testing.T) { + t.Run("GetIDApplication_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -27608,7 +27608,7 @@ func TestGettersApplicationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdApplication() // Should return zero value + _ = obj.GetIDApplication() // Should return zero value }) t.Run("GetLastModified", func(t *testing.T) { @@ -28007,28 +28007,28 @@ func TestGettersApplicationQueryRecord(t *testing.T) { _ = obj.GetMZip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -28037,7 +28037,7 @@ func TestGettersApplicationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgParentName", func(t *testing.T) { @@ -28370,28 +28370,28 @@ func TestGettersApplicationQueryRecord(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplicationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -28400,7 +28400,7 @@ func TestGettersApplicationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetWebsiteAddress", func(t *testing.T) { @@ -29075,14 +29075,14 @@ func TestSettersMarkExplicitApplicationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingLinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingLinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var fernTestValueBoardingLinkId *BoardingLinkId + var fernTestValueBoardingLinkID *BoardingLinkID // Act - obj.SetBoardingLinkId(fernTestValueBoardingLinkId) + obj.SetBoardingLinkID(fernTestValueBoardingLinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -29509,14 +29509,14 @@ func TestSettersMarkExplicitApplicationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -29602,14 +29602,14 @@ func TestSettersMarkExplicitApplicationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdApplication_MarksExplicit", func(t *testing.T) { + t.Run("SetIDApplication_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var fernTestValueIdApplication *AppId + var fernTestValueIDApplication *AppID // Act - obj.SetIdApplication(fernTestValueIdApplication) + obj.SetIDApplication(fernTestValueIDApplication) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30005,14 +30005,14 @@ func TestSettersMarkExplicitApplicationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30346,14 +30346,14 @@ func TestSettersMarkExplicitApplicationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplicationQueryRecord{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -32968,11 +32968,11 @@ func TestSettersBoardingLinkQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BoardingLinkQueryRecord{} - var fernTestValueId *int64 - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int64 + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -32984,11 +32984,11 @@ func TestSettersBoardingLinkQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &BoardingLinkQueryRecord{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -33016,11 +33016,11 @@ func TestSettersBoardingLinkQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceTemplateId", func(t *testing.T) { + t.Run("SetReferenceTemplateID", func(t *testing.T) { obj := &BoardingLinkQueryRecord{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) - assert.Equal(t, fernTestValueReferenceTemplateId, obj.ReferenceTemplateId) + var fernTestValueReferenceTemplateID *ReferenceTemplateID + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) + assert.Equal(t, fernTestValueReferenceTemplateID, obj.ReferenceTemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -33167,28 +33167,28 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { _ = obj.GetEntryAttributes() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} var expected *int64 - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BoardingLinkQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -33197,7 +33197,7 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetLogo", func(t *testing.T) { @@ -33233,28 +33233,28 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { _ = obj.GetLogo() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BoardingLinkQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -33263,7 +33263,7 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetPageIdentifier", func(t *testing.T) { @@ -33365,28 +33365,28 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { _ = obj.GetReferenceName() // Should return zero value }) - t.Run("GetReferenceTemplateId", func(t *testing.T) { + t.Run("GetReferenceTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - var expected *ReferenceTemplateId - obj.ReferenceTemplateId = expected + var expected *ReferenceTemplateID + obj.ReferenceTemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceTemplateID(), "getter should return the property value") }) - t.Run("GetReferenceTemplateId_NilValue", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - obj.ReferenceTemplateId = nil + obj.ReferenceTemplateID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BoardingLinkQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -33395,7 +33395,7 @@ func TestGettersBoardingLinkQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceTemplateId() // Should return zero value + _ = obj.GetReferenceTemplateID() // Should return zero value }) t.Run("GetResumable", func(t *testing.T) { @@ -33558,14 +33558,14 @@ func TestSettersMarkExplicitBoardingLinkQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - var fernTestValueId *int64 + var fernTestValueID *int64 // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -33620,14 +33620,14 @@ func TestSettersMarkExplicitBoardingLinkQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -33744,14 +33744,14 @@ func TestSettersMarkExplicitBoardingLinkQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingLinkQueryRecord{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId + var fernTestValueReferenceTemplateID *ReferenceTemplateID // Act - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -37714,9 +37714,9 @@ func TestSettersMarkExplicitPSection(t *testing.T) { } -func TestSettersPayabliApiResponse00(t *testing.T) { +func TestSettersPayabliAPIResponse00(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -37724,7 +37724,7 @@ func TestSettersPayabliApiResponse00(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -37732,7 +37732,7 @@ func TestSettersPayabliApiResponse00(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -37740,7 +37740,7 @@ func TestSettersPayabliApiResponse00(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseData *Responsedata obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -37748,7 +37748,7 @@ func TestSettersPayabliApiResponse00(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -37757,11 +37757,11 @@ func TestSettersPayabliApiResponse00(t *testing.T) { } -func TestGettersPayabliApiResponse00(t *testing.T) { +func TestGettersPayabliAPIResponse00(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var expected *IsSuccess obj.IsSuccess = expected @@ -37772,7 +37772,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} obj.IsSuccess = nil // Act & Assert @@ -37781,7 +37781,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -37794,7 +37794,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -37805,7 +37805,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} obj.PageIdentifier = nil // Act & Assert @@ -37814,7 +37814,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -37827,7 +37827,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var expected *Responsecode obj.ResponseCode = expected @@ -37838,7 +37838,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} obj.ResponseCode = nil // Act & Assert @@ -37847,7 +37847,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -37860,7 +37860,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var expected *Responsedata obj.ResponseData = expected @@ -37871,7 +37871,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} obj.ResponseData = nil // Act & Assert @@ -37880,7 +37880,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -37893,7 +37893,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var expected ResponseText obj.ResponseText = expected @@ -37903,7 +37903,7 @@ func TestGettersPayabliApiResponse00(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -37915,11 +37915,11 @@ func TestGettersPayabliApiResponse00(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse00(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse00(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueIsSuccess *IsSuccess // Act @@ -37950,7 +37950,7 @@ func TestSettersMarkExplicitPayabliApiResponse00(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -37981,7 +37981,7 @@ func TestSettersMarkExplicitPayabliApiResponse00(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseCode *Responsecode // Act @@ -38012,7 +38012,7 @@ func TestSettersMarkExplicitPayabliApiResponse00(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseData *Responsedata // Act @@ -38043,7 +38043,7 @@ func TestSettersMarkExplicitPayabliApiResponse00(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} var fernTestValueResponseText ResponseText // Act @@ -38404,11 +38404,11 @@ func TestSettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &QueryBoardingLinksResponseRecordsItem{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -38436,11 +38436,11 @@ func TestSettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceTemplateId", func(t *testing.T) { + t.Run("SetReferenceTemplateID", func(t *testing.T) { obj := &QueryBoardingLinksResponseRecordsItem{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) - assert.Equal(t, fernTestValueReferenceTemplateId, obj.ReferenceTemplateId) + var fernTestValueReferenceTemplateID *ReferenceTemplateID + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) + assert.Equal(t, fernTestValueReferenceTemplateID, obj.ReferenceTemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -38562,28 +38562,28 @@ func TestGettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { _ = obj.GetEntryAttributes() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBoardingLinksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -38592,7 +38592,7 @@ func TestGettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -38694,28 +38694,28 @@ func TestGettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { _ = obj.GetReferenceName() // Should return zero value }) - t.Run("GetReferenceTemplateId", func(t *testing.T) { + t.Run("GetReferenceTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} - var expected *ReferenceTemplateId - obj.ReferenceTemplateId = expected + var expected *ReferenceTemplateID + obj.ReferenceTemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceTemplateID(), "getter should return the property value") }) - t.Run("GetReferenceTemplateId_NilValue", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} - obj.ReferenceTemplateId = nil + obj.ReferenceTemplateID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBoardingLinksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -38724,7 +38724,7 @@ func TestGettersQueryBoardingLinksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceTemplateId() // Should return zero value + _ = obj.GetReferenceTemplateID() // Should return zero value }) t.Run("GetTemplateCode", func(t *testing.T) { @@ -38889,14 +38889,14 @@ func TestSettersMarkExplicitQueryBoardingLinksResponseRecordsItem(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -39013,14 +39013,14 @@ func TestSettersMarkExplicitQueryBoardingLinksResponseRecordsItem(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBoardingLinksResponseRecordsItem{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId + var fernTestValueReferenceTemplateID *ReferenceTemplateID // Act - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -39262,11 +39262,11 @@ func TestSettersMarkExplicitSSection(t *testing.T) { } func TestSettersSignerData(t *testing.T) { - t.Run("SetSignerUuid", func(t *testing.T) { + t.Run("SetSignerUUID", func(t *testing.T) { obj := &SignerData{} - var fernTestValueSignerUuid *string - obj.SetSignerUuid(fernTestValueSignerUuid) - assert.Equal(t, fernTestValueSignerUuid, obj.SignerUuid) + var fernTestValueSignerUUID *string + obj.SetSignerUUID(fernTestValueSignerUUID) + assert.Equal(t, fernTestValueSignerUUID, obj.SignerUUID) assert.NotNil(t, obj.explicitFields) }) @@ -39409,28 +39409,28 @@ func TestSettersSignerData(t *testing.T) { } func TestGettersSignerData(t *testing.T) { - t.Run("GetSignerUuid", func(t *testing.T) { + t.Run("GetSignerUUID", func(t *testing.T) { t.Parallel() // Arrange obj := &SignerData{} var expected *string - obj.SignerUuid = expected + obj.SignerUUID = expected // Act & Assert - assert.Equal(t, expected, obj.GetSignerUuid(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSignerUUID(), "getter should return the property value") }) - t.Run("GetSignerUuid_NilValue", func(t *testing.T) { + t.Run("GetSignerUUID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SignerData{} - obj.SignerUuid = nil + obj.SignerUUID = nil // Act & Assert - assert.Nil(t, obj.GetSignerUuid(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSignerUUID(), "getter should return nil when property is nil") }) - t.Run("GetSignerUuid_NilReceiver", func(t *testing.T) { + t.Run("GetSignerUUID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SignerData // Should not panic - getters should handle nil receiver gracefully @@ -39439,7 +39439,7 @@ func TestGettersSignerData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSignerUuid() // Should return zero value + _ = obj.GetSignerUUID() // Should return zero value }) t.Run("GetName", func(t *testing.T) { @@ -40006,14 +40006,14 @@ func TestGettersSignerData(t *testing.T) { } func TestSettersMarkExplicitSignerData(t *testing.T) { - t.Run("SetSignerUuid_MarksExplicit", func(t *testing.T) { + t.Run("SetSignerUUID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SignerData{} - var fernTestValueSignerUuid *string + var fernTestValueSignerUUID *string // Act - obj.SetSignerUuid(fernTestValueSignerUuid) + obj.SetSignerUUID(fernTestValueSignerUUID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43089,11 +43089,11 @@ func TestJSONMarshalingPSection(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponse00(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse00(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -43102,21 +43102,21 @@ func TestJSONMarshalingPayabliApiResponse00(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse00 + var unmarshaled PayabliAPIResponse00 err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse00 + var obj PayabliAPIResponse00 err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse00 + var obj PayabliAPIResponse00 err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -43880,17 +43880,17 @@ func TestStringPSection(t *testing.T) { }) } -func TestStringPayabliApiResponse00(t *testing.T) { +func TestStringPayabliAPIResponse00(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -44797,10 +44797,10 @@ func TestExtraPropertiesPSection(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponse00(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse00(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse00{} + obj := &PayabliAPIResponse00{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -44814,7 +44814,7 @@ func TestExtraPropertiesPayabliApiResponse00(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00 + var obj *PayabliAPIResponse00 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/charge_backs.go b/charge_backs.go index 3d1582a..21edcf9 100644 --- a/charge_backs.go +++ b/charge_backs.go @@ -218,7 +218,7 @@ var ( chargeBackResponseFieldContactEmail = big.NewInt(1 << 1) chargeBackResponseFieldContactName = big.NewInt(1 << 2) chargeBackResponseFieldCreatedAt = big.NewInt(1 << 3) - chargeBackResponseFieldId = big.NewInt(1 << 4) + chargeBackResponseFieldID = big.NewInt(1 << 4) chargeBackResponseFieldNotes = big.NewInt(1 << 5) ) @@ -232,7 +232,7 @@ type ChargeBackResponse struct { // Timestamp when response was submitted, in UTC. CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` // Chargeback response identifier - Id *int64 `json:"id,omitempty" url:"id,omitempty"` + ID *int64 `json:"id,omitempty" url:"id,omitempty"` // Response notes Notes *string `json:"notes,omitempty" url:"notes,omitempty"` @@ -271,11 +271,11 @@ func (c *ChargeBackResponse) GetCreatedAt() *CreatedAt { return c.CreatedAt } -func (c *ChargeBackResponse) GetId() *int64 { +func (c *ChargeBackResponse) GetID() *int64 { if c == nil { return nil } - return c.Id + return c.ID } func (c *ChargeBackResponse) GetNotes() *string { @@ -327,11 +327,11 @@ func (c *ChargeBackResponse) SetCreatedAt(createdAt *CreatedAt) { c.require(chargeBackResponseFieldCreatedAt) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargeBackResponse) SetId(id *int64) { - c.Id = id - c.require(chargeBackResponseFieldId) +func (c *ChargeBackResponse) SetID(id *int64) { + c.ID = id + c.require(chargeBackResponseFieldID) } // SetNotes sets the Notes field and marks it as non-optional; @@ -392,9 +392,9 @@ func (c *ChargeBackResponse) String() string { } var ( - chargebackMessageFieldId = big.NewInt(1 << 0) - chargebackMessageFieldRoomId = big.NewInt(1 << 1) - chargebackMessageFieldUserId = big.NewInt(1 << 2) + chargebackMessageFieldID = big.NewInt(1 << 0) + chargebackMessageFieldRoomID = big.NewInt(1 << 1) + chargebackMessageFieldUserID = big.NewInt(1 << 2) chargebackMessageFieldUserName = big.NewInt(1 << 3) chargebackMessageFieldContent = big.NewInt(1 << 4) chargebackMessageFieldCreatedAt = big.NewInt(1 << 5) @@ -404,11 +404,11 @@ var ( type ChargebackMessage struct { // Message identifier. - Id int `json:"Id" url:"Id"` + ID int `json:"Id" url:"Id"` // Room identifier for the message. - RoomId int `json:"RoomId" url:"RoomId"` + RoomID int `json:"RoomId" url:"RoomId"` // User identifier who sent the message. - UserId int `json:"UserId" url:"UserId"` + UserID int `json:"UserId" url:"UserId"` // Name of the user who sent the message. UserName string `json:"UserName" url:"UserName"` // Content of the message. @@ -427,25 +427,25 @@ type ChargebackMessage struct { rawJSON json.RawMessage } -func (c *ChargebackMessage) GetId() int { +func (c *ChargebackMessage) GetID() int { if c == nil { return 0 } - return c.Id + return c.ID } -func (c *ChargebackMessage) GetRoomId() int { +func (c *ChargebackMessage) GetRoomID() int { if c == nil { return 0 } - return c.RoomId + return c.RoomID } -func (c *ChargebackMessage) GetUserId() int { +func (c *ChargebackMessage) GetUserID() int { if c == nil { return 0 } - return c.UserId + return c.UserID } func (c *ChargebackMessage) GetUserName() string { @@ -497,25 +497,25 @@ func (c *ChargebackMessage) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackMessage) SetId(id int) { - c.Id = id - c.require(chargebackMessageFieldId) +func (c *ChargebackMessage) SetID(id int) { + c.ID = id + c.require(chargebackMessageFieldID) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackMessage) SetRoomId(roomId int) { - c.RoomId = roomId - c.require(chargebackMessageFieldRoomId) +func (c *ChargebackMessage) SetRoomID(roomID int) { + c.RoomID = roomID + c.require(chargebackMessageFieldRoomID) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackMessage) SetUserId(userId int) { - c.UserId = userId - c.require(chargebackMessageFieldUserId) +func (c *ChargebackMessage) SetUserID(userID int) { + c.UserID = userID + c.require(chargebackMessageFieldUserID) } // SetUserName sets the UserName field and marks it as non-optional; @@ -604,7 +604,7 @@ func (c *ChargebackMessage) String() string { } var ( - chargebackQueryRecordsFieldId = big.NewInt(1 << 0) + chargebackQueryRecordsFieldID = big.NewInt(1 << 0) chargebackQueryRecordsFieldChargebackDate = big.NewInt(1 << 1) chargebackQueryRecordsFieldCaseNumber = big.NewInt(1 << 2) chargebackQueryRecordsFieldReasonCode = big.NewInt(1 << 3) @@ -616,9 +616,9 @@ var ( chargebackQueryRecordsFieldMethod = big.NewInt(1 << 9) chargebackQueryRecordsFieldCreatedAt = big.NewInt(1 << 10) chargebackQueryRecordsFieldReplyBy = big.NewInt(1 << 11) - chargebackQueryRecordsFieldPaymentTransId = big.NewInt(1 << 12) + chargebackQueryRecordsFieldPaymentTransID = big.NewInt(1 << 12) chargebackQueryRecordsFieldScheduleReference = big.NewInt(1 << 13) - chargebackQueryRecordsFieldOrderId = big.NewInt(1 << 14) + chargebackQueryRecordsFieldOrderID = big.NewInt(1 << 14) chargebackQueryRecordsFieldNetAmount = big.NewInt(1 << 15) chargebackQueryRecordsFieldTransactionTime = big.NewInt(1 << 16) chargebackQueryRecordsFieldCustomer = big.NewInt(1 << 17) @@ -626,11 +626,11 @@ var ( chargebackQueryRecordsFieldPaypointLegalname = big.NewInt(1 << 19) chargebackQueryRecordsFieldPaypointDbaname = big.NewInt(1 << 20) chargebackQueryRecordsFieldParentOrgName = big.NewInt(1 << 21) - chargebackQueryRecordsFieldParentOrgId = big.NewInt(1 << 22) + chargebackQueryRecordsFieldParentOrgID = big.NewInt(1 << 22) chargebackQueryRecordsFieldPaypointEntryname = big.NewInt(1 << 23) chargebackQueryRecordsFieldResponses = big.NewInt(1 << 24) chargebackQueryRecordsFieldTransaction = big.NewInt(1 << 25) - chargebackQueryRecordsFieldExternalPaypointId = big.NewInt(1 << 26) + chargebackQueryRecordsFieldExternalPaypointID = big.NewInt(1 << 26) chargebackQueryRecordsFieldPageidentifier = big.NewInt(1 << 27) chargebackQueryRecordsFieldMessages = big.NewInt(1 << 28) chargebackQueryRecordsFieldServiceGroup = big.NewInt(1 << 29) @@ -640,7 +640,7 @@ var ( type ChargebackQueryRecords struct { // Identifier of chargeback or return. - Id int64 `json:"Id" url:"Id"` + ID int64 `json:"Id" url:"Id"` // Date of chargeback in format YYYY-MM-DD or MM/DD/YYYY. ChargebackDate time.Time `json:"ChargebackDate" url:"ChargebackDate"` // Number of case assigned to the chargeback. @@ -669,10 +669,10 @@ type ChargebackQueryRecords struct { CreatedAt CreatedAt `json:"CreatedAt" url:"CreatedAt"` ReplyBy Replyby `json:"ReplyBy" url:"ReplyBy"` // ReferenceId of the transaction in Payabli. - PaymentTransId string `json:"PaymentTransId" url:"PaymentTransId"` + PaymentTransID string `json:"PaymentTransId" url:"PaymentTransId"` // Reference to the subscription originating the transaction. ScheduleReference *int64 `json:"ScheduleReference,omitempty" url:"ScheduleReference,omitempty"` - OrderId OrderId `json:"OrderId" url:"OrderId"` + OrderID OrderID `json:"OrderId" url:"OrderId"` // Net amount in chargeback or ACH return. NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` TransactionTime TransactionTime `json:"TransactionTime" url:"TransactionTime"` @@ -684,13 +684,13 @@ type ChargebackQueryRecords struct { PaypointDbaname Dbaname `json:"PaypointDbaname" url:"PaypointDbaname"` ParentOrgName OrgParentName `json:"ParentOrgName" url:"ParentOrgName"` // The ID of the parent organization. - ParentOrgId int64 `json:"ParentOrgId" url:"ParentOrgId"` + ParentOrgID int64 `json:"ParentOrgId" url:"ParentOrgId"` // The paypoint's entryname. PaypointEntryname Entrypointfield `json:"PaypointEntryname" url:"PaypointEntryname"` // Chargeback response records. Responses []*ChargeBackResponse `json:"Responses" url:"Responses"` Transaction *TransactionQueryRecords `json:"Transaction" url:"Transaction"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` // Messages related to the chargeback. Messages []*ChargebackMessage `json:"messages" url:"messages"` @@ -708,11 +708,11 @@ type ChargebackQueryRecords struct { rawJSON json.RawMessage } -func (c *ChargebackQueryRecords) GetId() int64 { +func (c *ChargebackQueryRecords) GetID() int64 { if c == nil { return 0 } - return c.Id + return c.ID } func (c *ChargebackQueryRecords) GetChargebackDate() time.Time { @@ -792,11 +792,11 @@ func (c *ChargebackQueryRecords) GetReplyBy() Replyby { return c.ReplyBy } -func (c *ChargebackQueryRecords) GetPaymentTransId() string { +func (c *ChargebackQueryRecords) GetPaymentTransID() string { if c == nil { return "" } - return c.PaymentTransId + return c.PaymentTransID } func (c *ChargebackQueryRecords) GetScheduleReference() *int64 { @@ -806,11 +806,11 @@ func (c *ChargebackQueryRecords) GetScheduleReference() *int64 { return c.ScheduleReference } -func (c *ChargebackQueryRecords) GetOrderId() OrderId { +func (c *ChargebackQueryRecords) GetOrderID() OrderID { if c == nil { return "" } - return c.OrderId + return c.OrderID } func (c *ChargebackQueryRecords) GetNetAmount() *Netamountnullable { @@ -862,11 +862,11 @@ func (c *ChargebackQueryRecords) GetParentOrgName() OrgParentName { return c.ParentOrgName } -func (c *ChargebackQueryRecords) GetParentOrgId() int64 { +func (c *ChargebackQueryRecords) GetParentOrgID() int64 { if c == nil { return 0 } - return c.ParentOrgId + return c.ParentOrgID } func (c *ChargebackQueryRecords) GetPaypointEntryname() Entrypointfield { @@ -890,11 +890,11 @@ func (c *ChargebackQueryRecords) GetTransaction() *TransactionQueryRecords { return c.Transaction } -func (c *ChargebackQueryRecords) GetExternalPaypointId() *ExternalPaypointId { +func (c *ChargebackQueryRecords) GetExternalPaypointID() *ExternalPaypointID { if c == nil { return nil } - return c.ExternalPaypointId + return c.ExternalPaypointID } func (c *ChargebackQueryRecords) GetPageidentifier() *PageIdentifier { @@ -946,11 +946,11 @@ func (c *ChargebackQueryRecords) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackQueryRecords) SetId(id int64) { - c.Id = id - c.require(chargebackQueryRecordsFieldId) +func (c *ChargebackQueryRecords) SetID(id int64) { + c.ID = id + c.require(chargebackQueryRecordsFieldID) } // SetChargebackDate sets the ChargebackDate field and marks it as non-optional; @@ -1030,11 +1030,11 @@ func (c *ChargebackQueryRecords) SetReplyBy(replyBy Replyby) { c.require(chargebackQueryRecordsFieldReplyBy) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackQueryRecords) SetPaymentTransId(paymentTransId string) { - c.PaymentTransId = paymentTransId - c.require(chargebackQueryRecordsFieldPaymentTransId) +func (c *ChargebackQueryRecords) SetPaymentTransID(paymentTransID string) { + c.PaymentTransID = paymentTransID + c.require(chargebackQueryRecordsFieldPaymentTransID) } // SetScheduleReference sets the ScheduleReference field and marks it as non-optional; @@ -1044,11 +1044,11 @@ func (c *ChargebackQueryRecords) SetScheduleReference(scheduleReference *int64) c.require(chargebackQueryRecordsFieldScheduleReference) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackQueryRecords) SetOrderId(orderId OrderId) { - c.OrderId = orderId - c.require(chargebackQueryRecordsFieldOrderId) +func (c *ChargebackQueryRecords) SetOrderID(orderID OrderID) { + c.OrderID = orderID + c.require(chargebackQueryRecordsFieldOrderID) } // SetNetAmount sets the NetAmount field and marks it as non-optional; @@ -1100,11 +1100,11 @@ func (c *ChargebackQueryRecords) SetParentOrgName(parentOrgName OrgParentName) { c.require(chargebackQueryRecordsFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackQueryRecords) SetParentOrgId(parentOrgId int64) { - c.ParentOrgId = parentOrgId - c.require(chargebackQueryRecordsFieldParentOrgId) +func (c *ChargebackQueryRecords) SetParentOrgID(parentOrgID int64) { + c.ParentOrgID = parentOrgID + c.require(chargebackQueryRecordsFieldParentOrgID) } // SetPaypointEntryname sets the PaypointEntryname field and marks it as non-optional; @@ -1128,11 +1128,11 @@ func (c *ChargebackQueryRecords) SetTransaction(transaction *TransactionQueryRec c.require(chargebackQueryRecordsFieldTransaction) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ChargebackQueryRecords) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - c.ExternalPaypointId = externalPaypointId - c.require(chargebackQueryRecordsFieldExternalPaypointId) +func (c *ChargebackQueryRecords) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + c.ExternalPaypointID = externalPaypointID + c.require(chargebackQueryRecordsFieldExternalPaypointID) } // SetPageidentifier sets the Pageidentifier field and marks it as non-optional; diff --git a/charge_backs_test.go b/charge_backs_test.go index 0dc7957..2e13d8d 100644 --- a/charge_backs_test.go +++ b/charge_backs_test.go @@ -459,11 +459,11 @@ func TestSettersChargeBackResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &ChargeBackResponse{} - var fernTestValueId *int64 - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int64 + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -610,28 +610,28 @@ func TestGettersChargeBackResponse(t *testing.T) { _ = obj.GetCreatedAt() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargeBackResponse{} var expected *int64 - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargeBackResponse{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargeBackResponse // Should not panic - getters should handle nil receiver gracefully @@ -640,7 +640,7 @@ func TestGettersChargeBackResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetNotes", func(t *testing.T) { @@ -803,14 +803,14 @@ func TestSettersMarkExplicitChargeBackResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargeBackResponse{} - var fernTestValueId *int64 + var fernTestValueID *int64 // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -868,27 +868,27 @@ func TestSettersMarkExplicitChargeBackResponse(t *testing.T) { } func TestSettersChargebackMessage(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &ChargebackMessage{} - var fernTestValueId int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &ChargebackMessage{} - var fernTestValueRoomId int - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID int + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &ChargebackMessage{} - var fernTestValueUserId int - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID int + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) @@ -935,18 +935,18 @@ func TestSettersChargebackMessage(t *testing.T) { } func TestGettersChargebackMessage(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} var expected int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackMessage // Should not panic - getters should handle nil receiver gracefully @@ -955,21 +955,21 @@ func TestGettersChargebackMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} var expected int - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackMessage // Should not panic - getters should handle nil receiver gracefully @@ -978,21 +978,21 @@ func TestGettersChargebackMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) - t.Run("GetUserId", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} var expected int - obj.UserId = expected + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetUserId_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackMessage // Should not panic - getters should handle nil receiver gracefully @@ -1001,7 +1001,7 @@ func TestGettersChargebackMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserId() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) t.Run("GetUserName", func(t *testing.T) { @@ -1132,14 +1132,14 @@ func TestGettersChargebackMessage(t *testing.T) { } func TestSettersMarkExplicitChargebackMessage(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} - var fernTestValueId int + var fernTestValueID int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1163,14 +1163,14 @@ func TestSettersMarkExplicitChargebackMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} - var fernTestValueRoomId int + var fernTestValueRoomID int // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1194,14 +1194,14 @@ func TestSettersMarkExplicitChargebackMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackMessage{} - var fernTestValueUserId int + var fernTestValueUserID int // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1383,11 +1383,11 @@ func TestSettersMarkExplicitChargebackMessage(t *testing.T) { } func TestSettersChargebackQueryRecords(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &ChargebackQueryRecords{} - var fernTestValueId int64 - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID int64 + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -1479,11 +1479,11 @@ func TestSettersChargebackQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &ChargebackQueryRecords{} - var fernTestValuePaymentTransId string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -1495,11 +1495,11 @@ func TestSettersChargebackQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &ChargebackQueryRecords{} - var fernTestValueOrderId OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -1559,11 +1559,11 @@ func TestSettersChargebackQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &ChargebackQueryRecords{} - var fernTestValueParentOrgId int64 - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID int64 + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -1591,11 +1591,11 @@ func TestSettersChargebackQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &ChargebackQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -1642,18 +1642,18 @@ func TestSettersChargebackQueryRecords(t *testing.T) { } func TestGettersChargebackQueryRecords(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} var expected int64 - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -1662,7 +1662,7 @@ func TestGettersChargebackQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetChargebackDate", func(t *testing.T) { @@ -1918,18 +1918,18 @@ func TestGettersChargebackQueryRecords(t *testing.T) { _ = obj.GetReplyBy() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} var expected string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -1938,7 +1938,7 @@ func TestGettersChargebackQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetScheduleReference", func(t *testing.T) { @@ -1974,18 +1974,18 @@ func TestGettersChargebackQueryRecords(t *testing.T) { _ = obj.GetScheduleReference() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var expected OrderId - obj.OrderId = expected + var expected OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -1994,7 +1994,7 @@ func TestGettersChargebackQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetNetAmount", func(t *testing.T) { @@ -2188,18 +2188,18 @@ func TestGettersChargebackQueryRecords(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} var expected int64 - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -2208,7 +2208,7 @@ func TestGettersChargebackQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPaypointEntryname", func(t *testing.T) { @@ -2300,28 +2300,28 @@ func TestGettersChargebackQueryRecords(t *testing.T) { _ = obj.GetTransaction() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ChargebackQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -2330,7 +2330,7 @@ func TestGettersChargebackQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetPageidentifier", func(t *testing.T) { @@ -2471,14 +2471,14 @@ func TestGettersChargebackQueryRecords(t *testing.T) { } func TestSettersMarkExplicitChargebackQueryRecords(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var fernTestValueId int64 + var fernTestValueID int64 // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2843,14 +2843,14 @@ func TestSettersMarkExplicitChargebackQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var fernTestValuePaymentTransId string + var fernTestValuePaymentTransID string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2905,14 +2905,14 @@ func TestSettersMarkExplicitChargebackQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var fernTestValueOrderId OrderId + var fernTestValueOrderID OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3153,14 +3153,14 @@ func TestSettersMarkExplicitChargebackQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var fernTestValueParentOrgId int64 + var fernTestValueParentOrgID int64 // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3277,14 +3277,14 @@ func TestSettersMarkExplicitChargebackQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ChargebackQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/check_capture.go b/check_capture.go index 8c7dcb4..64dc014 100644 --- a/check_capture.go +++ b/check_capture.go @@ -223,7 +223,7 @@ func (c *CheckCaptureRequest) String() string { // Response model for check capture processing. var ( - checkCaptureResponseFieldId = big.NewInt(1 << 0) + checkCaptureResponseFieldID = big.NewInt(1 << 0) checkCaptureResponseFieldSuccess = big.NewInt(1 << 1) checkCaptureResponseFieldProcessDate = big.NewInt(1 << 2) checkCaptureResponseFieldOcrMicr = big.NewInt(1 << 3) @@ -251,7 +251,7 @@ var ( type CheckCaptureResponse struct { // Unique ID for the check capture, to be used with the /api/MoneyIn/getpaid endpoint. - Id *string `json:"id,omitempty" url:"id,omitempty"` + ID *string `json:"id,omitempty" url:"id,omitempty"` // Indicates whether the check processing was successful. Success bool `json:"success" url:"success"` // The date and time when the check was processed (ISO 8601 format). @@ -308,11 +308,11 @@ type CheckCaptureResponse struct { rawJSON json.RawMessage } -func (c *CheckCaptureResponse) GetId() *string { +func (c *CheckCaptureResponse) GetID() *string { if c == nil { return nil } - return c.Id + return c.ID } func (c *CheckCaptureResponse) GetSuccess() bool { @@ -490,11 +490,11 @@ func (c *CheckCaptureResponse) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CheckCaptureResponse) SetId(id *string) { - c.Id = id - c.require(checkCaptureResponseFieldId) +func (c *CheckCaptureResponse) SetID(id *string) { + c.ID = id + c.require(checkCaptureResponseFieldID) } // SetSuccess sets the Success field and marks it as non-optional; diff --git a/check_capture_test.go b/check_capture_test.go index c8f7abf..13049be 100644 --- a/check_capture_test.go +++ b/check_capture_test.go @@ -429,11 +429,11 @@ func TestSettersMarkExplicitCheckCaptureRequest(t *testing.T) { } func TestSettersCheckCaptureResponse(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &CheckCaptureResponse{} - var fernTestValueId *string - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *string + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -624,28 +624,28 @@ func TestSettersCheckCaptureResponse(t *testing.T) { } func TestGettersCheckCaptureResponse(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &CheckCaptureResponse{} var expected *string - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CheckCaptureResponse{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CheckCaptureResponse // Should not panic - getters should handle nil receiver gracefully @@ -654,7 +654,7 @@ func TestGettersCheckCaptureResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetSuccess", func(t *testing.T) { @@ -1369,14 +1369,14 @@ func TestGettersCheckCaptureResponse(t *testing.T) { } func TestSettersMarkExplicitCheckCaptureResponse(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CheckCaptureResponse{} - var fernTestValueId *string + var fernTestValueID *string // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/cloud.go b/cloud.go index dcabe39..c20e0e8 100644 --- a/cloud.go +++ b/cloud.go @@ -108,12 +108,12 @@ func (d *DeviceEntry) MarshalJSON() ([]byte, error) { // Object containing details about cloud devices and their registration history. var ( - cloudQueryApiResponseFieldIsSuccess = big.NewInt(1 << 0) - cloudQueryApiResponseFieldResponseList = big.NewInt(1 << 1) - cloudQueryApiResponseFieldResponseText = big.NewInt(1 << 2) + cloudQueryAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + cloudQueryAPIResponseFieldResponseList = big.NewInt(1 << 1) + cloudQueryAPIResponseFieldResponseText = big.NewInt(1 << 2) ) -type CloudQueryApiResponse struct { +type CloudQueryAPIResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` // List of devices and history of registration. ResponseList []*PoiDevice `json:"responseList,omitempty" url:"responseList,omitempty"` @@ -126,35 +126,35 @@ type CloudQueryApiResponse struct { rawJSON json.RawMessage } -func (c *CloudQueryApiResponse) GetIsSuccess() *IsSuccess { +func (c *CloudQueryAPIResponse) GetIsSuccess() *IsSuccess { if c == nil { return nil } return c.IsSuccess } -func (c *CloudQueryApiResponse) GetResponseList() []*PoiDevice { +func (c *CloudQueryAPIResponse) GetResponseList() []*PoiDevice { if c == nil { return nil } return c.ResponseList } -func (c *CloudQueryApiResponse) GetResponseText() ResponseText { +func (c *CloudQueryAPIResponse) GetResponseText() ResponseText { if c == nil { return "" } return c.ResponseText } -func (c *CloudQueryApiResponse) GetExtraProperties() map[string]interface{} { +func (c *CloudQueryAPIResponse) GetExtraProperties() map[string]interface{} { if c == nil { return nil } return c.extraProperties } -func (c *CloudQueryApiResponse) require(field *big.Int) { +func (c *CloudQueryAPIResponse) require(field *big.Int) { if c.explicitFields == nil { c.explicitFields = big.NewInt(0) } @@ -163,32 +163,32 @@ func (c *CloudQueryApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CloudQueryApiResponse) SetIsSuccess(isSuccess *IsSuccess) { +func (c *CloudQueryAPIResponse) SetIsSuccess(isSuccess *IsSuccess) { c.IsSuccess = isSuccess - c.require(cloudQueryApiResponseFieldIsSuccess) + c.require(cloudQueryAPIResponseFieldIsSuccess) } // SetResponseList sets the ResponseList field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CloudQueryApiResponse) SetResponseList(responseList []*PoiDevice) { +func (c *CloudQueryAPIResponse) SetResponseList(responseList []*PoiDevice) { c.ResponseList = responseList - c.require(cloudQueryApiResponseFieldResponseList) + c.require(cloudQueryAPIResponseFieldResponseList) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CloudQueryApiResponse) SetResponseText(responseText ResponseText) { +func (c *CloudQueryAPIResponse) SetResponseText(responseText ResponseText) { c.ResponseText = responseText - c.require(cloudQueryApiResponseFieldResponseText) + c.require(cloudQueryAPIResponseFieldResponseText) } -func (c *CloudQueryApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler CloudQueryApiResponse +func (c *CloudQueryAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler CloudQueryAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *c = CloudQueryApiResponse(value) + *c = CloudQueryAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *c) if err != nil { return err @@ -198,8 +198,8 @@ func (c *CloudQueryApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (c *CloudQueryApiResponse) MarshalJSON() ([]byte, error) { - type embed CloudQueryApiResponse +func (c *CloudQueryAPIResponse) MarshalJSON() ([]byte, error) { + type embed CloudQueryAPIResponse var marshaler = struct { embed }{ @@ -209,7 +209,7 @@ func (c *CloudQueryApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (c *CloudQueryApiResponse) String() string { +func (c *CloudQueryAPIResponse) String() string { if c == nil { return "" } @@ -229,7 +229,7 @@ var ( poiDeviceFieldConnected = big.NewInt(1 << 0) poiDeviceFieldDateDeRegistered = big.NewInt(1 << 1) poiDeviceFieldDateRegistered = big.NewInt(1 << 2) - poiDeviceFieldDeviceId = big.NewInt(1 << 3) + poiDeviceFieldDeviceID = big.NewInt(1 << 3) poiDeviceFieldDeviceLicense = big.NewInt(1 << 4) poiDeviceFieldDeviceNickName = big.NewInt(1 << 5) poiDeviceFieldLastConnectedDate = big.NewInt(1 << 6) @@ -249,7 +249,7 @@ type PoiDevice struct { // The date the device was registered. DateRegistered *time.Time `json:"dateRegistered,omitempty" url:"dateRegistered,omitempty"` // The device identifier. - DeviceId *string `json:"deviceId,omitempty" url:"deviceId,omitempty"` + DeviceID *string `json:"deviceId,omitempty" url:"deviceId,omitempty"` // Device license. This is typically the same as `deviceId`. DeviceLicense *string `json:"deviceLicense,omitempty" url:"deviceLicense,omitempty"` // Device description provided during registration. @@ -297,11 +297,11 @@ func (p *PoiDevice) GetDateRegistered() *time.Time { return p.DateRegistered } -func (p *PoiDevice) GetDeviceId() *string { +func (p *PoiDevice) GetDeviceID() *string { if p == nil { return nil } - return p.DeviceId + return p.DeviceID } func (p *PoiDevice) GetDeviceLicense() *string { @@ -402,11 +402,11 @@ func (p *PoiDevice) SetDateRegistered(dateRegistered *time.Time) { p.require(poiDeviceFieldDateRegistered) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PoiDevice) SetDeviceId(deviceId *string) { - p.DeviceId = deviceId - p.require(poiDeviceFieldDeviceId) +func (p *PoiDevice) SetDeviceID(deviceID *string) { + p.DeviceID = deviceID + p.require(poiDeviceFieldDeviceID) } // SetDeviceLicense sets the DeviceLicense field and marks it as non-optional; diff --git a/cloud/client.go b/cloud/client.go index f4e0370..661b615 100644 --- a/cloud/client.go +++ b/cloud/client.go @@ -58,13 +58,13 @@ func (c *Client) HistoryDevice( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // ID of the cloud device. - deviceId string, + deviceID string, opts ...option.RequestOption, -) (*payabli.CloudQueryApiResponse, error) { +) (*payabli.CloudQueryAPIResponse, error) { response, err := c.WithRawResponse.HistoryDevice( ctx, entry, - deviceId, + deviceID, opts..., ) if err != nil { @@ -80,7 +80,7 @@ func (c *Client) ListDevice( entry string, request *payabli.ListDeviceRequest, opts ...option.RequestOption, -) (*payabli.CloudQueryApiResponse, error) { +) (*payabli.CloudQueryAPIResponse, error) { response, err := c.WithRawResponse.ListDevice( ctx, entry, @@ -99,13 +99,13 @@ func (c *Client) RemoveDevice( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // ID of the cloud device. - deviceId string, + deviceID string, opts ...option.RequestOption, ) (*payabli.RemoveDeviceResponse, error) { response, err := c.WithRawResponse.RemoveDevice( ctx, entry, - deviceId, + deviceID, opts..., ) if err != nil { diff --git a/cloud/raw_client.go b/cloud/raw_client.go index 2bb6807..65831cf 100644 --- a/cloud/raw_client.go +++ b/cloud/raw_client.go @@ -86,9 +86,9 @@ func (r *RawClient) HistoryDevice( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // ID of the cloud device. - deviceId string, + deviceID string, opts ...option.RequestOption, -) (*core.Response[*payabli.CloudQueryApiResponse], error) { +) (*core.Response[*payabli.CloudQueryAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -98,13 +98,13 @@ func (r *RawClient) HistoryDevice( endpointURL := internal.EncodeURL( baseURL+"/Cloud/history/%v/%v", entry, - deviceId, + deviceID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.CloudQueryApiResponse + var response *payabli.CloudQueryAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -122,7 +122,7 @@ func (r *RawClient) HistoryDevice( if err != nil { return nil, err } - return &core.Response[*payabli.CloudQueryApiResponse]{ + return &core.Response[*payabli.CloudQueryAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -135,7 +135,7 @@ func (r *RawClient) ListDevice( entry string, request *payabli.ListDeviceRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.CloudQueryApiResponse], error) { +) (*core.Response[*payabli.CloudQueryAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -157,7 +157,7 @@ func (r *RawClient) ListDevice( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.CloudQueryApiResponse + var response *payabli.CloudQueryAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -175,7 +175,7 @@ func (r *RawClient) ListDevice( if err != nil { return nil, err } - return &core.Response[*payabli.CloudQueryApiResponse]{ + return &core.Response[*payabli.CloudQueryAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -187,7 +187,7 @@ func (r *RawClient) RemoveDevice( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // ID of the cloud device. - deviceId string, + deviceID string, opts ...option.RequestOption, ) (*core.Response[*payabli.RemoveDeviceResponse], error) { options := core.NewRequestOptions(opts...) @@ -199,7 +199,7 @@ func (r *RawClient) RemoveDevice( endpointURL := internal.EncodeURL( baseURL+"/Cloud/register/%v/%v", entry, - deviceId, + deviceID, ) headers := internal.MergeHeaders( r.options.ToHeader(), diff --git a/cloud_test.go b/cloud_test.go index db7f1d6..e56357a 100644 --- a/cloud_test.go +++ b/cloud_test.go @@ -178,9 +178,9 @@ func TestSettersMarkExplicitDeviceEntry(t *testing.T) { } -func TestSettersCloudQueryApiResponse(t *testing.T) { +func TestSettersCloudQueryAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -188,7 +188,7 @@ func TestSettersCloudQueryApiResponse(t *testing.T) { }) t.Run("SetResponseList", func(t *testing.T) { - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueResponseList []*PoiDevice obj.SetResponseList(fernTestValueResponseList) assert.Equal(t, fernTestValueResponseList, obj.ResponseList) @@ -196,7 +196,7 @@ func TestSettersCloudQueryApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -205,11 +205,11 @@ func TestSettersCloudQueryApiResponse(t *testing.T) { } -func TestGettersCloudQueryApiResponse(t *testing.T) { +func TestGettersCloudQueryAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var expected *IsSuccess obj.IsSuccess = expected @@ -220,7 +220,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} obj.IsSuccess = nil // Act & Assert @@ -229,7 +229,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *CloudQueryApiResponse + var obj *CloudQueryAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -242,7 +242,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetResponseList", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var expected []*PoiDevice obj.ResponseList = expected @@ -253,7 +253,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetResponseList_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} obj.ResponseList = nil // Act & Assert @@ -262,7 +262,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetResponseList_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *CloudQueryApiResponse + var obj *CloudQueryAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -275,7 +275,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -285,7 +285,7 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *CloudQueryApiResponse + var obj *CloudQueryAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -297,11 +297,11 @@ func TestGettersCloudQueryApiResponse(t *testing.T) { } -func TestSettersMarkExplicitCloudQueryApiResponse(t *testing.T) { +func TestSettersMarkExplicitCloudQueryAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueIsSuccess *IsSuccess // Act @@ -332,7 +332,7 @@ func TestSettersMarkExplicitCloudQueryApiResponse(t *testing.T) { t.Run("SetResponseList_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueResponseList []*PoiDevice // Act @@ -363,7 +363,7 @@ func TestSettersMarkExplicitCloudQueryApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -418,11 +418,11 @@ func TestSettersPoiDevice(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &PoiDevice{} - var fernTestValueDeviceId *string - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID *string + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) @@ -600,28 +600,28 @@ func TestGettersPoiDevice(t *testing.T) { _ = obj.GetDateRegistered() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &PoiDevice{} var expected *string - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilValue", func(t *testing.T) { + t.Run("GetDeviceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PoiDevice{} - obj.DeviceId = nil + obj.DeviceID = nil // Act & Assert - assert.Nil(t, obj.GetDeviceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDeviceID(), "getter should return nil when property is nil") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PoiDevice // Should not panic - getters should handle nil receiver gracefully @@ -630,7 +630,7 @@ func TestGettersPoiDevice(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) t.Run("GetDeviceLicense", func(t *testing.T) { @@ -1026,14 +1026,14 @@ func TestSettersMarkExplicitPoiDevice(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PoiDevice{} - var fernTestValueDeviceId *string + var fernTestValueDeviceID *string // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1945,11 +1945,11 @@ func TestJSONMarshalingAddDeviceResponse(t *testing.T) { }) } -func TestJSONMarshalingCloudQueryApiResponse(t *testing.T) { +func TestJSONMarshalingCloudQueryAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -1958,21 +1958,21 @@ func TestJSONMarshalingCloudQueryApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled CloudQueryApiResponse + var unmarshaled CloudQueryAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj CloudQueryApiResponse + var obj CloudQueryAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj CloudQueryApiResponse + var obj CloudQueryAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -2060,17 +2060,17 @@ func TestStringAddDeviceResponse(t *testing.T) { }) } -func TestStringCloudQueryApiResponse(t *testing.T) { +func TestStringCloudQueryAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *CloudQueryApiResponse + var obj *CloudQueryAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -2131,10 +2131,10 @@ func TestExtraPropertiesAddDeviceResponse(t *testing.T) { }) } -func TestExtraPropertiesCloudQueryApiResponse(t *testing.T) { +func TestExtraPropertiesCloudQueryAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &CloudQueryApiResponse{} + obj := &CloudQueryAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -2148,7 +2148,7 @@ func TestExtraPropertiesCloudQueryApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *CloudQueryApiResponse + var obj *CloudQueryAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/core/request_option.go b/core/request_option.go index bc1df6d..a3c7abf 100644 --- a/core/request_option.go +++ b/core/request_option.go @@ -25,7 +25,7 @@ type RequestOptions struct { QueryParameters url.Values MaxAttempts uint MaxBufSize int - ApiKey string + APIKey string } // NewRequestOptions returns a new *RequestOptions value. @@ -48,8 +48,8 @@ func NewRequestOptions(opts ...RequestOption) *RequestOptions { // for the request(s). func (r *RequestOptions) ToHeader() http.Header { header := r.cloneHeader() - if r.ApiKey != "" { - header.Set("requestToken", fmt.Sprintf("%v", r.ApiKey)) + if r.APIKey != "" { + header.Set("requestToken", fmt.Sprintf("%v", r.APIKey)) } return header } @@ -58,8 +58,8 @@ func (r *RequestOptions) cloneHeader() http.Header { headers := r.HTTPHeader.Clone() headers.Set("X-Fern-Language", "Go") headers.Set("X-Fern-SDK-Name", "github.com/payabli/sdk-go") - headers.Set("X-Fern-SDK-Version", "v0.0.452") - headers.Set("User-Agent", "github.com/payabli/sdk-go/0.0.452") + headers.Set("X-Fern-SDK-Version", "v0.0.453") + headers.Set("User-Agent", "github.com/payabli/sdk-go/0.0.453") return headers } @@ -126,11 +126,11 @@ func (m *MaxBufSizeOption) applyRequestOptions(opts *RequestOptions) { opts.MaxBufSize = m.MaxBufSize } -// ApiKeyOption implements the RequestOption interface. -type ApiKeyOption struct { - ApiKey string +// APIKeyOption implements the RequestOption interface. +type APIKeyOption struct { + APIKey string } -func (a *ApiKeyOption) applyRequestOptions(opts *RequestOptions) { - opts.ApiKey = a.ApiKey +func (a *APIKeyOption) applyRequestOptions(opts *RequestOptions) { + opts.APIKey = a.APIKey } diff --git a/customer.go b/customer.go index 6eb1719..42062c2 100644 --- a/customer.go +++ b/customer.go @@ -69,12 +69,12 @@ func (a *AddCustomerRequest) MarshalJSON() ([]byte, error) { } var ( - payabliApiResponseCustomerQueryFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseCustomerQueryFieldResponseData = big.NewInt(1 << 1) - payabliApiResponseCustomerQueryFieldResponseText = big.NewInt(1 << 2) + payabliAPIResponseCustomerQueryFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseCustomerQueryFieldResponseData = big.NewInt(1 << 1) + payabliAPIResponseCustomerQueryFieldResponseText = big.NewInt(1 << 2) ) -type PayabliApiResponseCustomerQuery struct { +type PayabliAPIResponseCustomerQuery struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseData *CustomerQueryRecords `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` @@ -86,35 +86,35 @@ type PayabliApiResponseCustomerQuery struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseCustomerQuery) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseCustomerQuery) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseCustomerQuery) GetResponseData() *CustomerQueryRecords { +func (p *PayabliAPIResponseCustomerQuery) GetResponseData() *CustomerQueryRecords { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseCustomerQuery) GetResponseText() ResponseText { +func (p *PayabliAPIResponseCustomerQuery) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseCustomerQuery) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseCustomerQuery) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseCustomerQuery) require(field *big.Int) { +func (p *PayabliAPIResponseCustomerQuery) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -123,32 +123,32 @@ func (p *PayabliApiResponseCustomerQuery) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseCustomerQuery) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseCustomerQuery) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseCustomerQueryFieldIsSuccess) + p.require(payabliAPIResponseCustomerQueryFieldIsSuccess) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseCustomerQuery) SetResponseData(responseData *CustomerQueryRecords) { +func (p *PayabliAPIResponseCustomerQuery) SetResponseData(responseData *CustomerQueryRecords) { p.ResponseData = responseData - p.require(payabliApiResponseCustomerQueryFieldResponseData) + p.require(payabliAPIResponseCustomerQueryFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseCustomerQuery) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseCustomerQuery) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseCustomerQueryFieldResponseText) + p.require(payabliAPIResponseCustomerQueryFieldResponseText) } -func (p *PayabliApiResponseCustomerQuery) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseCustomerQuery +func (p *PayabliAPIResponseCustomerQuery) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseCustomerQuery var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseCustomerQuery(value) + *p = PayabliAPIResponseCustomerQuery(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -158,8 +158,8 @@ func (p *PayabliApiResponseCustomerQuery) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseCustomerQuery) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseCustomerQuery +func (p *PayabliAPIResponseCustomerQuery) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseCustomerQuery var marshaler = struct { embed }{ @@ -169,7 +169,7 @@ func (p *PayabliApiResponseCustomerQuery) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseCustomerQuery) String() string { +func (p *PayabliAPIResponseCustomerQuery) String() string { if p == nil { return "" } diff --git a/customer/client.go b/customer/client.go index 4bce945..240d74b 100644 --- a/customer/client.go +++ b/customer/client.go @@ -39,7 +39,7 @@ func (c *Client) AddCustomer( entry payabli.Entrypointfield, request *payabli.AddCustomerRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseCustomerQuery, error) { +) (*payabli.PayabliAPIResponseCustomerQuery, error) { response, err := c.WithRawResponse.AddCustomer( ctx, entry, @@ -56,12 +56,12 @@ func (c *Client) AddCustomer( func (c *Client) DeleteCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.DeleteCustomer( ctx, - customerId, + customerID, opts..., ) if err != nil { @@ -74,12 +74,12 @@ func (c *Client) DeleteCustomer( func (c *Client) GetCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, ) (*payabli.CustomerQueryRecords, error) { response, err := c.WithRawResponse.GetCustomer( ctx, - customerId, + customerID, opts..., ) if err != nil { @@ -92,15 +92,15 @@ func (c *Client) GetCustomer( func (c *Client) LinkCustomerTransaction( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.LinkCustomerTransaction( ctx, - customerId, - transId, + customerID, + transID, opts..., ) if err != nil { @@ -113,12 +113,12 @@ func (c *Client) LinkCustomerTransaction( func (c *Client) RequestConsent( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.RequestConsent( ctx, - customerId, + customerID, opts..., ) if err != nil { @@ -131,13 +131,13 @@ func (c *Client) RequestConsent( func (c *Client) UpdateCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, request *payabli.CustomerData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.UpdateCustomer( ctx, - customerId, + customerID, request, opts..., ) diff --git a/customer/raw_client.go b/customer/raw_client.go index 8e598fb..6da2a69 100644 --- a/customer/raw_client.go +++ b/customer/raw_client.go @@ -35,7 +35,7 @@ func (r *RawClient) AddCustomer( entry payabli.Entrypointfield, request *payabli.AddCustomerRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseCustomerQuery], error) { +) (*core.Response[*payabli.PayabliAPIResponseCustomerQuery], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -61,7 +61,7 @@ func (r *RawClient) AddCustomer( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponseCustomerQuery + var response *payabli.PayabliAPIResponseCustomerQuery raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -80,7 +80,7 @@ func (r *RawClient) AddCustomer( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseCustomerQuery]{ + return &core.Response[*payabli.PayabliAPIResponseCustomerQuery]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -90,9 +90,9 @@ func (r *RawClient) AddCustomer( func (r *RawClient) DeleteCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -101,13 +101,13 @@ func (r *RawClient) DeleteCustomer( ) endpointURL := internal.EncodeURL( baseURL+"/Customer/%v", - customerId, + customerID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -125,7 +125,7 @@ func (r *RawClient) DeleteCustomer( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -135,7 +135,7 @@ func (r *RawClient) DeleteCustomer( func (r *RawClient) GetCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, ) (*core.Response[*payabli.CustomerQueryRecords], error) { options := core.NewRequestOptions(opts...) @@ -146,7 +146,7 @@ func (r *RawClient) GetCustomer( ) endpointURL := internal.EncodeURL( baseURL+"/Customer/%v", - customerId, + customerID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -180,11 +180,11 @@ func (r *RawClient) GetCustomer( func (r *RawClient) LinkCustomerTransaction( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -193,14 +193,14 @@ func (r *RawClient) LinkCustomerTransaction( ) endpointURL := internal.EncodeURL( baseURL+"/Customer/link/%v/%v", - customerId, - transId, + customerID, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -218,7 +218,7 @@ func (r *RawClient) LinkCustomerTransaction( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -228,9 +228,9 @@ func (r *RawClient) LinkCustomerTransaction( func (r *RawClient) RequestConsent( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -239,13 +239,13 @@ func (r *RawClient) RequestConsent( ) endpointURL := internal.EncodeURL( baseURL+"/Customer/%v/consent", - customerId, + customerID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -263,7 +263,7 @@ func (r *RawClient) RequestConsent( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -273,10 +273,10 @@ func (r *RawClient) RequestConsent( func (r *RawClient) UpdateCustomer( ctx context.Context, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, request *payabli.CustomerData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -285,13 +285,13 @@ func (r *RawClient) UpdateCustomer( ) endpointURL := internal.EncodeURL( baseURL+"/Customer/%v", - customerId, + customerID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -310,7 +310,7 @@ func (r *RawClient) UpdateCustomer( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/customer_test.go b/customer_test.go index 69cd5ea..698a1ca 100644 --- a/customer_test.go +++ b/customer_test.go @@ -132,9 +132,9 @@ func TestSettersMarkExplicitAddCustomerRequest(t *testing.T) { } -func TestSettersPayabliApiResponseCustomerQuery(t *testing.T) { +func TestSettersPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -142,7 +142,7 @@ func TestSettersPayabliApiResponseCustomerQuery(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueResponseData *CustomerQueryRecords obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -150,7 +150,7 @@ func TestSettersPayabliApiResponseCustomerQuery(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -159,11 +159,11 @@ func TestSettersPayabliApiResponseCustomerQuery(t *testing.T) { } -func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { +func TestGettersPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var expected *IsSuccess obj.IsSuccess = expected @@ -174,7 +174,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} obj.IsSuccess = nil // Act & Assert @@ -183,7 +183,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseCustomerQuery + var obj *PayabliAPIResponseCustomerQuery // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -196,7 +196,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var expected *CustomerQueryRecords obj.ResponseData = expected @@ -207,7 +207,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} obj.ResponseData = nil // Act & Assert @@ -216,7 +216,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseCustomerQuery + var obj *PayabliAPIResponseCustomerQuery // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -229,7 +229,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var expected ResponseText obj.ResponseText = expected @@ -239,7 +239,7 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseCustomerQuery + var obj *PayabliAPIResponseCustomerQuery // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -251,11 +251,11 @@ func TestGettersPayabliApiResponseCustomerQuery(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseCustomerQuery(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueIsSuccess *IsSuccess // Act @@ -286,7 +286,7 @@ func TestSettersMarkExplicitPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueResponseData *CustomerQueryRecords // Act @@ -317,7 +317,7 @@ func TestSettersMarkExplicitPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} var fernTestValueResponseText ResponseText // Act @@ -347,11 +347,11 @@ func TestSettersMarkExplicitPayabliApiResponseCustomerQuery(t *testing.T) { } -func TestJSONMarshalingPayabliApiResponseCustomerQuery(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -360,46 +360,46 @@ func TestJSONMarshalingPayabliApiResponseCustomerQuery(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseCustomerQuery + var unmarshaled PayabliAPIResponseCustomerQuery err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseCustomerQuery + var obj PayabliAPIResponseCustomerQuery err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseCustomerQuery + var obj PayabliAPIResponseCustomerQuery err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestStringPayabliApiResponseCustomerQuery(t *testing.T) { +func TestStringPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseCustomerQuery + var obj *PayabliAPIResponseCustomerQuery result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestExtraPropertiesPayabliApiResponseCustomerQuery(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseCustomerQuery(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseCustomerQuery{} + obj := &PayabliAPIResponseCustomerQuery{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -413,7 +413,7 @@ func TestExtraPropertiesPayabliApiResponseCustomerQuery(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseCustomerQuery + var obj *PayabliAPIResponseCustomerQuery extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/errors.go b/errors.go index a587869..da70e06 100644 --- a/errors.go +++ b/errors.go @@ -34,11 +34,11 @@ func (b *BadRequestError) Unwrap() error { // Opt in pending type ConflictError struct { *core.APIError - Body *PayabliApiResponsePaylinks + Body *PayabliAPIResponsePaylinks } func (c *ConflictError) UnmarshalJSON(data []byte) error { - var body *PayabliApiResponsePaylinks + var body *PayabliAPIResponsePaylinks if err := json.Unmarshal(data, &body); err != nil { return err } @@ -58,11 +58,11 @@ func (c *ConflictError) Unwrap() error { // Consent error type ForbiddenError struct { *core.APIError - Body *PayabliApiResponsePaylinks + Body *PayabliAPIResponsePaylinks } func (f *ForbiddenError) UnmarshalJSON(data []byte) error { - var body *PayabliApiResponsePaylinks + var body *PayabliAPIResponsePaylinks if err := json.Unmarshal(data, &body); err != nil { return err } @@ -106,11 +106,11 @@ func (i *InternalServerError) Unwrap() error { // Database connection error type ServiceUnavailableError struct { *core.APIError - Body *PayabliApiResponse + Body *PayabliAPIResponse } func (s *ServiceUnavailableError) UnmarshalJSON(data []byte) error { - var body *PayabliApiResponse + var body *PayabliAPIResponse if err := json.Unmarshal(data, &body); err != nil { return err } @@ -370,11 +370,11 @@ func (i *InternalServerResponseErrorV2) Unwrap() error { // Validation errors for capture requests. Possible response codes include: 3014, 3015, 3016. type CaptureError struct { *core.APIError - Body *PayabliApiResponseError400 + Body *PayabliAPIResponseError400 } func (c *CaptureError) UnmarshalJSON(data []byte) error { - var body *PayabliApiResponseError400 + var body *PayabliAPIResponseError400 if err := json.Unmarshal(data, &body); err != nil { return err } diff --git a/export/client.go b/export/client.go index d52a23f..f6eb252 100644 --- a/export/client.go +++ b/export/client.go @@ -38,14 +38,14 @@ func (c *Client) ExportApplications( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportApplicationsRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportApplications( ctx, format, - orgId, + orgID, request, opts..., ) @@ -84,14 +84,14 @@ func (c *Client) ExportBatchDetailsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchDetailsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportBatchDetailsOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -130,14 +130,14 @@ func (c *Client) ExportBatchesOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchesOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportBatchesOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -176,14 +176,14 @@ func (c *Client) ExportBatchesOutOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchesOutOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportBatchesOutOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -222,14 +222,14 @@ func (c *Client) ExportBillsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBillsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportBillsOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -268,14 +268,14 @@ func (c *Client) ExportChargebacksOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportChargebacksOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportChargebacksOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -314,14 +314,14 @@ func (c *Client) ExportCustomersOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportCustomersOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportCustomersOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -360,14 +360,14 @@ func (c *Client) ExportInvoicesOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportInvoicesOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportInvoicesOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -383,14 +383,14 @@ func (c *Client) ExportOrganizations( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportOrganizationsRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportOrganizations( ctx, format, - orgId, + orgID, request, opts..., ) @@ -429,14 +429,14 @@ func (c *Client) ExportPayoutOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportPayoutOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportPayoutOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -452,14 +452,14 @@ func (c *Client) ExportPaypoints( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportPaypointsRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportPaypoints( ctx, format, - orgId, + orgID, request, opts..., ) @@ -498,14 +498,14 @@ func (c *Client) ExportSettlementsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportSettlementsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportSettlementsOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -544,14 +544,14 @@ func (c *Client) ExportSubscriptionsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportSubscriptionsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportSubscriptionsOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -590,14 +590,14 @@ func (c *Client) ExportTransactionsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportTransactionsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportTransactionsOrg( ctx, format, - orgId, + orgID, request, opts..., ) @@ -615,7 +615,7 @@ func (c *Client) ExportTransferDetails( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // Transfer identifier. - transferId int64, + transferID int64, request *payabli.ExportTransferDetailsRequest, opts ...option.RequestOption, ) (payabli.File, error) { @@ -623,7 +623,7 @@ func (c *Client) ExportTransferDetails( ctx, format, entry, - transferId, + transferID, request, opts..., ) @@ -682,14 +682,14 @@ func (c *Client) ExportVendorsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportVendorsOrgRequest, opts ...option.RequestOption, ) (payabli.File, error) { response, err := c.WithRawResponse.ExportVendorsOrg( ctx, format, - orgId, + orgID, request, opts..., ) diff --git a/export/raw_client.go b/export/raw_client.go index 6c9974c..e1f91a1 100644 --- a/export/raw_client.go +++ b/export/raw_client.go @@ -35,7 +35,7 @@ func (r *RawClient) ExportApplications( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportApplicationsRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -48,7 +48,7 @@ func (r *RawClient) ExportApplications( endpointURL := internal.EncodeURL( baseURL+"/Export/boarding/%v/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -147,7 +147,7 @@ func (r *RawClient) ExportBatchDetailsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchDetailsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -160,7 +160,7 @@ func (r *RawClient) ExportBatchDetailsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/batchDetails/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -259,7 +259,7 @@ func (r *RawClient) ExportBatchesOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchesOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -272,7 +272,7 @@ func (r *RawClient) ExportBatchesOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/batches/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -371,7 +371,7 @@ func (r *RawClient) ExportBatchesOutOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBatchesOutOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -384,7 +384,7 @@ func (r *RawClient) ExportBatchesOutOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/batchesOut/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -483,7 +483,7 @@ func (r *RawClient) ExportBillsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportBillsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -496,7 +496,7 @@ func (r *RawClient) ExportBillsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/bills/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -595,7 +595,7 @@ func (r *RawClient) ExportChargebacksOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportChargebacksOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -608,7 +608,7 @@ func (r *RawClient) ExportChargebacksOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/chargebacks/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -707,7 +707,7 @@ func (r *RawClient) ExportCustomersOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportCustomersOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -720,7 +720,7 @@ func (r *RawClient) ExportCustomersOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/customers/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -819,7 +819,7 @@ func (r *RawClient) ExportInvoicesOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportInvoicesOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -832,7 +832,7 @@ func (r *RawClient) ExportInvoicesOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/invoices/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -875,7 +875,7 @@ func (r *RawClient) ExportOrganizations( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportOrganizationsRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -888,7 +888,7 @@ func (r *RawClient) ExportOrganizations( endpointURL := internal.EncodeURL( baseURL+"/Export/organizations/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -987,7 +987,7 @@ func (r *RawClient) ExportPayoutOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportPayoutOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1000,7 +1000,7 @@ func (r *RawClient) ExportPayoutOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/payouts/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1043,7 +1043,7 @@ func (r *RawClient) ExportPaypoints( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportPaypointsRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1056,7 +1056,7 @@ func (r *RawClient) ExportPaypoints( endpointURL := internal.EncodeURL( baseURL+"/Export/paypoints/%v/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1155,7 +1155,7 @@ func (r *RawClient) ExportSettlementsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportSettlementsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1168,7 +1168,7 @@ func (r *RawClient) ExportSettlementsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/settlements/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1267,7 +1267,7 @@ func (r *RawClient) ExportSubscriptionsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportSubscriptionsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1280,7 +1280,7 @@ func (r *RawClient) ExportSubscriptionsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/subscriptions/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1379,7 +1379,7 @@ func (r *RawClient) ExportTransactionsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportTransactionsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1392,7 +1392,7 @@ func (r *RawClient) ExportTransactionsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/transactions/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1437,7 +1437,7 @@ func (r *RawClient) ExportTransferDetails( // The paypoint's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) entry string, // Transfer identifier. - transferId int64, + transferID int64, request *payabli.ExportTransferDetailsRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1451,7 +1451,7 @@ func (r *RawClient) ExportTransferDetails( baseURL+"/Export/transferDetails/%v/%v/%v", format, entry, - transferId, + transferID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1603,7 +1603,7 @@ func (r *RawClient) ExportVendorsOrg( // Format for the export, either XLSX or CSV. format *payabli.ExportFormat1, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ExportVendorsOrgRequest, opts ...option.RequestOption, ) (*core.Response[payabli.File], error) { @@ -1616,7 +1616,7 @@ func (r *RawClient) ExportVendorsOrg( endpointURL := internal.EncodeURL( baseURL+"/Export/vendors/%v/org/%v", format, - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/ghost_card.go b/ghost_card.go index b15a05e..7c4a304 100644 --- a/ghost_card.go +++ b/ghost_card.go @@ -10,7 +10,7 @@ import ( ) var ( - createGhostCardRequestBodyFieldVendorId = big.NewInt(1 << 0) + createGhostCardRequestBodyFieldVendorID = big.NewInt(1 << 0) createGhostCardRequestBodyFieldExpenseLimit = big.NewInt(1 << 1) createGhostCardRequestBodyFieldExpirationDate = big.NewInt(1 << 2) createGhostCardRequestBodyFieldAmount = big.NewInt(1 << 3) @@ -30,7 +30,7 @@ var ( type CreateGhostCardRequestBody struct { // ID of the vendor who receives the card. The vendor must belong to the paypoint and have an active status. - VendorId int64 `json:"vendorId" url:"-"` + VendorID int64 `json:"vendorId" url:"-"` // Spending limit for the card. Must be greater than `0` and can't exceed the paypoint's configured payout credit limit. ExpenseLimit float64 `json:"expenseLimit" url:"-"` // Requested expiration date for the card. If not provided, defaults to 30 days from creation. @@ -73,11 +73,11 @@ func (c *CreateGhostCardRequestBody) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CreateGhostCardRequestBody) SetVendorId(vendorId int64) { - c.VendorId = vendorId - c.require(createGhostCardRequestBodyFieldVendorId) +func (c *CreateGhostCardRequestBody) SetVendorID(vendorID int64) { + c.VendorID = vendorID + c.require(createGhostCardRequestBodyFieldVendorID) } // SetExpenseLimit sets the ExpenseLimit field and marks it as non-optional; @@ -410,14 +410,14 @@ func (c *CreateGhostCardResponse) String() string { } var ( - createGhostCardResponseDataFieldReferenceId = big.NewInt(1 << 0) + createGhostCardResponseDataFieldReferenceID = big.NewInt(1 << 0) createGhostCardResponseDataFieldResultCode = big.NewInt(1 << 1) createGhostCardResponseDataFieldResultText = big.NewInt(1 << 2) ) type CreateGhostCardResponseData struct { // Card token for the ghost card. Use this value to reference the card in subsequent operations (update, cancel, etc.). - ReferenceId *string `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` + ReferenceID *string `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` ResultCode *ResultCode `json:"ResultCode,omitempty" url:"ResultCode,omitempty"` ResultText *Resulttext `json:"ResultText,omitempty" url:"ResultText,omitempty"` @@ -428,11 +428,11 @@ type CreateGhostCardResponseData struct { rawJSON json.RawMessage } -func (c *CreateGhostCardResponseData) GetReferenceId() *string { +func (c *CreateGhostCardResponseData) GetReferenceID() *string { if c == nil { return nil } - return c.ReferenceId + return c.ReferenceID } func (c *CreateGhostCardResponseData) GetResultCode() *ResultCode { @@ -463,11 +463,11 @@ func (c *CreateGhostCardResponseData) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CreateGhostCardResponseData) SetReferenceId(referenceId *string) { - c.ReferenceId = referenceId - c.require(createGhostCardResponseDataFieldReferenceId) +func (c *CreateGhostCardResponseData) SetReferenceID(referenceID *string) { + c.ReferenceID = referenceID + c.require(createGhostCardResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; diff --git a/ghost_card_test.go b/ghost_card_test.go index cdadcde..0eba9d6 100644 --- a/ghost_card_test.go +++ b/ghost_card_test.go @@ -10,11 +10,11 @@ import ( ) func TestSettersCreateGhostCardRequestBody(t *testing.T) { - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &CreateGhostCardRequestBody{} - var fernTestValueVendorId int64 - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID int64 + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -141,14 +141,14 @@ func TestSettersCreateGhostCardRequestBody(t *testing.T) { } func TestSettersMarkExplicitCreateGhostCardRequestBody(t *testing.T) { - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CreateGhostCardRequestBody{} - var fernTestValueVendorId int64 + var fernTestValueVendorID int64 // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -939,11 +939,11 @@ func TestSettersMarkExplicitCreateGhostCardResponse(t *testing.T) { } func TestSettersCreateGhostCardResponseData(t *testing.T) { - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &CreateGhostCardResponseData{} - var fernTestValueReferenceId *string - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *string + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -966,28 +966,28 @@ func TestSettersCreateGhostCardResponseData(t *testing.T) { } func TestGettersCreateGhostCardResponseData(t *testing.T) { - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &CreateGhostCardResponseData{} var expected *string - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CreateGhostCardResponseData{} - obj.ReferenceId = nil + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CreateGhostCardResponseData // Should not panic - getters should handle nil receiver gracefully @@ -996,7 +996,7 @@ func TestGettersCreateGhostCardResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -1068,14 +1068,14 @@ func TestGettersCreateGhostCardResponseData(t *testing.T) { } func TestSettersMarkExplicitCreateGhostCardResponseData(t *testing.T) { - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CreateGhostCardResponseData{} - var fernTestValueReferenceId *string + var fernTestValueReferenceID *string // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/ghostcard/client.go b/ghostcard/client.go index 298dec9..730c057 100644 --- a/ghostcard/client.go +++ b/ghostcard/client.go @@ -61,7 +61,7 @@ func (c *Client) UpdateCard( entry payabli.Entry, request *payabli.UpdateCardRequestBody, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse, error) { +) (*payabli.PayabliAPIResponse, error) { response, err := c.WithRawResponse.UpdateCard( ctx, entry, diff --git a/ghostcard/ghost_card_test/ghost_card_test.go b/ghostcard/ghost_card_test/ghost_card_test.go index 1a264b6..332a4cb 100644 --- a/ghostcard/ghost_card_test/ghost_card_test.go +++ b/ghostcard/ghost_card_test/ghost_card_test.go @@ -73,7 +73,7 @@ func TestGhostCardCreateGhostCardWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.CreateGhostCardRequestBody{ - VendorId: int64(42), + VendorID: int64(42), ExpenseLimit: 500, Amount: 500, MaxNumberOfUses: 3, diff --git a/ghostcard/raw_client.go b/ghostcard/raw_client.go index f4e96a0..2645252 100644 --- a/ghostcard/raw_client.go +++ b/ghostcard/raw_client.go @@ -82,7 +82,7 @@ func (r *RawClient) UpdateCard( entry payabli.Entry, request *payabli.UpdateCardRequestBody, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse], error) { +) (*core.Response[*payabli.PayabliAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -98,7 +98,7 @@ func (r *RawClient) UpdateCard( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponse + var response *payabli.PayabliAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -117,7 +117,7 @@ func (r *RawClient) UpdateCard( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse]{ + return &core.Response[*payabli.PayabliAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/hostedpaymentpages/client.go b/hostedpaymentpages/client.go index b959989..c29c71f 100644 --- a/hostedpaymentpages/client.go +++ b/hostedpaymentpages/client.go @@ -61,7 +61,7 @@ func (c *Client) NewPage( entry string, request *payabli.NewPageRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.NewPage( ctx, entry, @@ -83,7 +83,7 @@ func (c *Client) SavePage( subdomain string, request *payabli.PayabliPages, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.SavePage( ctx, entry, diff --git a/hostedpaymentpages/raw_client.go b/hostedpaymentpages/raw_client.go index adb4892..2ead94b 100644 --- a/hostedpaymentpages/raw_client.go +++ b/hostedpaymentpages/raw_client.go @@ -84,7 +84,7 @@ func (r *RawClient) NewPage( entry string, request *payabli.NewPageRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -103,7 +103,7 @@ func (r *RawClient) NewPage( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -122,7 +122,7 @@ func (r *RawClient) NewPage( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -137,7 +137,7 @@ func (r *RawClient) SavePage( subdomain string, request *payabli.PayabliPages, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -153,7 +153,7 @@ func (r *RawClient) SavePage( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -172,7 +172,7 @@ func (r *RawClient) SavePage( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/import.go b/import.go index 26727d5..cbb526a 100644 --- a/import.go +++ b/import.go @@ -87,19 +87,19 @@ func (i *ImportVendorRequest) require(field *big.Int) { } var ( - payabliApiResponseImportFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseImportFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponseImportFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseImportFieldResponseData = big.NewInt(1 << 3) - payabliApiResponseImportFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseImportFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseImportFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponseImportFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseImportFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseImportFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseImport struct { +type PayabliAPIResponseImport struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` // The response data containing the result of the import operation. - ResponseData *PayabliApiResponseImportResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponseImportResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -109,49 +109,49 @@ type PayabliApiResponseImport struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseImport) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseImport) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseImport) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponseImport) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponseImport) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponseImport) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponseImport) GetResponseData() *PayabliApiResponseImportResponseData { +func (p *PayabliAPIResponseImport) GetResponseData() *PayabliAPIResponseImportResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseImport) GetResponseText() ResponseText { +func (p *PayabliAPIResponseImport) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseImport) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseImport) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseImport) require(field *big.Int) { +func (p *PayabliAPIResponseImport) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -160,46 +160,46 @@ func (p *PayabliApiResponseImport) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImport) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseImport) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseImportFieldIsSuccess) + p.require(payabliAPIResponseImportFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImport) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponseImport) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponseImportFieldPageIdentifier) + p.require(payabliAPIResponseImportFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImport) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponseImport) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponseImportFieldResponseCode) + p.require(payabliAPIResponseImportFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImport) SetResponseData(responseData *PayabliApiResponseImportResponseData) { +func (p *PayabliAPIResponseImport) SetResponseData(responseData *PayabliAPIResponseImportResponseData) { p.ResponseData = responseData - p.require(payabliApiResponseImportFieldResponseData) + p.require(payabliAPIResponseImportFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImport) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseImport) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseImportFieldResponseText) + p.require(payabliAPIResponseImportFieldResponseText) } -func (p *PayabliApiResponseImport) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseImport +func (p *PayabliAPIResponseImport) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseImport var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseImport(value) + *p = PayabliAPIResponseImport(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -209,8 +209,8 @@ func (p *PayabliApiResponseImport) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseImport) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseImport +func (p *PayabliAPIResponseImport) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseImport var marshaler = struct { embed }{ @@ -220,7 +220,7 @@ func (p *PayabliApiResponseImport) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseImport) String() string { +func (p *PayabliAPIResponseImport) String() string { if p == nil { return "" } @@ -237,12 +237,12 @@ func (p *PayabliApiResponseImport) String() string { // The response data containing the result of the import operation. var ( - payabliApiResponseImportResponseDataFieldAdded = big.NewInt(1 << 0) - payabliApiResponseImportResponseDataFieldErrors = big.NewInt(1 << 1) - payabliApiResponseImportResponseDataFieldRejected = big.NewInt(1 << 2) + payabliAPIResponseImportResponseDataFieldAdded = big.NewInt(1 << 0) + payabliAPIResponseImportResponseDataFieldErrors = big.NewInt(1 << 1) + payabliAPIResponseImportResponseDataFieldRejected = big.NewInt(1 << 2) ) -type PayabliApiResponseImportResponseData struct { +type PayabliAPIResponseImportResponseData struct { // The number of records successfully added. Added *int `json:"added,omitempty" url:"added,omitempty"` // List of errors, if any. @@ -257,35 +257,35 @@ type PayabliApiResponseImportResponseData struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseImportResponseData) GetAdded() *int { +func (p *PayabliAPIResponseImportResponseData) GetAdded() *int { if p == nil { return nil } return p.Added } -func (p *PayabliApiResponseImportResponseData) GetErrors() []string { +func (p *PayabliAPIResponseImportResponseData) GetErrors() []string { if p == nil { return nil } return p.Errors } -func (p *PayabliApiResponseImportResponseData) GetRejected() *int { +func (p *PayabliAPIResponseImportResponseData) GetRejected() *int { if p == nil { return nil } return p.Rejected } -func (p *PayabliApiResponseImportResponseData) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseImportResponseData) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseImportResponseData) require(field *big.Int) { +func (p *PayabliAPIResponseImportResponseData) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -294,32 +294,32 @@ func (p *PayabliApiResponseImportResponseData) require(field *big.Int) { // SetAdded sets the Added field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImportResponseData) SetAdded(added *int) { +func (p *PayabliAPIResponseImportResponseData) SetAdded(added *int) { p.Added = added - p.require(payabliApiResponseImportResponseDataFieldAdded) + p.require(payabliAPIResponseImportResponseDataFieldAdded) } // SetErrors sets the Errors field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImportResponseData) SetErrors(errors []string) { +func (p *PayabliAPIResponseImportResponseData) SetErrors(errors []string) { p.Errors = errors - p.require(payabliApiResponseImportResponseDataFieldErrors) + p.require(payabliAPIResponseImportResponseDataFieldErrors) } // SetRejected sets the Rejected field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseImportResponseData) SetRejected(rejected *int) { +func (p *PayabliAPIResponseImportResponseData) SetRejected(rejected *int) { p.Rejected = rejected - p.require(payabliApiResponseImportResponseDataFieldRejected) + p.require(payabliAPIResponseImportResponseDataFieldRejected) } -func (p *PayabliApiResponseImportResponseData) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseImportResponseData +func (p *PayabliAPIResponseImportResponseData) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseImportResponseData var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseImportResponseData(value) + *p = PayabliAPIResponseImportResponseData(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -329,8 +329,8 @@ func (p *PayabliApiResponseImportResponseData) UnmarshalJSON(data []byte) error return nil } -func (p *PayabliApiResponseImportResponseData) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseImportResponseData +func (p *PayabliAPIResponseImportResponseData) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseImportResponseData var marshaler = struct { embed }{ @@ -340,7 +340,7 @@ func (p *PayabliApiResponseImportResponseData) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseImportResponseData) String() string { +func (p *PayabliAPIResponseImportResponseData) String() string { if p == nil { return "" } diff --git a/import_/client.go b/import_/client.go index 95cfe51..12c1e62 100644 --- a/import_/client.go +++ b/import_/client.go @@ -39,7 +39,7 @@ func (c *Client) ImportBills( entry string, request *payabli.ImportBillsRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseImport, error) { +) (*payabli.PayabliAPIResponseImport, error) { response, err := c.WithRawResponse.ImportBills( ctx, entry, @@ -58,7 +58,7 @@ func (c *Client) ImportCustomer( entry payabli.Entrypointfield, request *payabli.ImportCustomerRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseImport, error) { +) (*payabli.PayabliAPIResponseImport, error) { response, err := c.WithRawResponse.ImportCustomer( ctx, entry, @@ -77,7 +77,7 @@ func (c *Client) ImportVendor( entry payabli.Entrypointfield, request *payabli.ImportVendorRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseImport, error) { +) (*payabli.PayabliAPIResponseImport, error) { response, err := c.WithRawResponse.ImportVendor( ctx, entry, diff --git a/import_/raw_client.go b/import_/raw_client.go index 8aec5df..e7e6459 100644 --- a/import_/raw_client.go +++ b/import_/raw_client.go @@ -36,7 +36,7 @@ func (r *RawClient) ImportBills( entry string, request *payabli.ImportBillsRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseImport], error) { +) (*core.Response[*payabli.PayabliAPIResponseImport], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -60,7 +60,7 @@ func (r *RawClient) ImportBills( } headers.Set("Content-Type", writer.ContentType()) - var response *payabli.PayabliApiResponseImport + var response *payabli.PayabliAPIResponseImport raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -79,7 +79,7 @@ func (r *RawClient) ImportBills( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseImport]{ + return &core.Response[*payabli.PayabliAPIResponseImport]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -91,7 +91,7 @@ func (r *RawClient) ImportCustomer( entry payabli.Entrypointfield, request *payabli.ImportCustomerRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseImport], error) { +) (*core.Response[*payabli.PayabliAPIResponseImport], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -122,7 +122,7 @@ func (r *RawClient) ImportCustomer( } headers.Set("Content-Type", writer.ContentType()) - var response *payabli.PayabliApiResponseImport + var response *payabli.PayabliAPIResponseImport raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -141,7 +141,7 @@ func (r *RawClient) ImportCustomer( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseImport]{ + return &core.Response[*payabli.PayabliAPIResponseImport]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -153,7 +153,7 @@ func (r *RawClient) ImportVendor( entry payabli.Entrypointfield, request *payabli.ImportVendorRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseImport], error) { +) (*core.Response[*payabli.PayabliAPIResponseImport], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -177,7 +177,7 @@ func (r *RawClient) ImportVendor( } headers.Set("Content-Type", writer.ContentType()) - var response *payabli.PayabliApiResponseImport + var response *payabli.PayabliAPIResponseImport raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -195,7 +195,7 @@ func (r *RawClient) ImportVendor( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseImport]{ + return &core.Response[*payabli.PayabliAPIResponseImport]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/import_test.go b/import_test.go index 5d8e935..f281136 100644 --- a/import_test.go +++ b/import_test.go @@ -54,9 +54,9 @@ func TestSettersMarkExplicitImportCustomerRequest(t *testing.T) { } -func TestSettersPayabliApiResponseImport(t *testing.T) { +func TestSettersPayabliAPIResponseImport(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -64,7 +64,7 @@ func TestSettersPayabliApiResponseImport(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -72,7 +72,7 @@ func TestSettersPayabliApiResponseImport(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -80,15 +80,15 @@ func TestSettersPayabliApiResponseImport(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseImport{} - var fernTestValueResponseData *PayabliApiResponseImportResponseData + obj := &PayabliAPIResponseImport{} + var fernTestValueResponseData *PayabliAPIResponseImportResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -97,11 +97,11 @@ func TestSettersPayabliApiResponseImport(t *testing.T) { } -func TestGettersPayabliApiResponseImport(t *testing.T) { +func TestGettersPayabliAPIResponseImport(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var expected *IsSuccess obj.IsSuccess = expected @@ -112,7 +112,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} obj.IsSuccess = nil // Act & Assert @@ -121,7 +121,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -134,7 +134,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -145,7 +145,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} obj.PageIdentifier = nil // Act & Assert @@ -154,7 +154,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -167,7 +167,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var expected *Responsecode obj.ResponseCode = expected @@ -178,7 +178,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} obj.ResponseCode = nil // Act & Assert @@ -187,7 +187,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -200,8 +200,8 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} - var expected *PayabliApiResponseImportResponseData + obj := &PayabliAPIResponseImport{} + var expected *PayabliAPIResponseImportResponseData obj.ResponseData = expected // Act & Assert @@ -211,7 +211,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} obj.ResponseData = nil // Act & Assert @@ -220,7 +220,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -233,7 +233,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var expected ResponseText obj.ResponseText = expected @@ -243,7 +243,7 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -255,11 +255,11 @@ func TestGettersPayabliApiResponseImport(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseImport(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueIsSuccess *IsSuccess // Act @@ -290,7 +290,7 @@ func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -321,7 +321,7 @@ func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueResponseCode *Responsecode // Act @@ -352,8 +352,8 @@ func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} - var fernTestValueResponseData *PayabliApiResponseImportResponseData + obj := &PayabliAPIResponseImport{} + var fernTestValueResponseData *PayabliAPIResponseImportResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -383,7 +383,7 @@ func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} var fernTestValueResponseText ResponseText // Act @@ -413,9 +413,9 @@ func TestSettersMarkExplicitPayabliApiResponseImport(t *testing.T) { } -func TestSettersPayabliApiResponseImportResponseData(t *testing.T) { +func TestSettersPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("SetAdded", func(t *testing.T) { - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueAdded *int obj.SetAdded(fernTestValueAdded) assert.Equal(t, fernTestValueAdded, obj.Added) @@ -423,7 +423,7 @@ func TestSettersPayabliApiResponseImportResponseData(t *testing.T) { }) t.Run("SetErrors", func(t *testing.T) { - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueErrors []string obj.SetErrors(fernTestValueErrors) assert.Equal(t, fernTestValueErrors, obj.Errors) @@ -431,7 +431,7 @@ func TestSettersPayabliApiResponseImportResponseData(t *testing.T) { }) t.Run("SetRejected", func(t *testing.T) { - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueRejected *int obj.SetRejected(fernTestValueRejected) assert.Equal(t, fernTestValueRejected, obj.Rejected) @@ -440,11 +440,11 @@ func TestSettersPayabliApiResponseImportResponseData(t *testing.T) { } -func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { +func TestGettersPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("GetAdded", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var expected *int obj.Added = expected @@ -455,7 +455,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetAdded_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} obj.Added = nil // Act & Assert @@ -464,7 +464,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetAdded_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImportResponseData + var obj *PayabliAPIResponseImportResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -477,7 +477,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetErrors", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var expected []string obj.Errors = expected @@ -488,7 +488,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetErrors_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} obj.Errors = nil // Act & Assert @@ -497,7 +497,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetErrors_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImportResponseData + var obj *PayabliAPIResponseImportResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -510,7 +510,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetRejected", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var expected *int obj.Rejected = expected @@ -521,7 +521,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetRejected_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} obj.Rejected = nil // Act & Assert @@ -530,7 +530,7 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetRejected_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImportResponseData + var obj *PayabliAPIResponseImportResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -542,11 +542,11 @@ func TestGettersPayabliApiResponseImportResponseData(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseImportResponseData(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("SetAdded_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueAdded *int // Act @@ -577,7 +577,7 @@ func TestSettersMarkExplicitPayabliApiResponseImportResponseData(t *testing.T) { t.Run("SetErrors_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueErrors []string // Act @@ -608,7 +608,7 @@ func TestSettersMarkExplicitPayabliApiResponseImportResponseData(t *testing.T) { t.Run("SetRejected_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} var fernTestValueRejected *int // Act @@ -638,11 +638,11 @@ func TestSettersMarkExplicitPayabliApiResponseImportResponseData(t *testing.T) { } -func TestJSONMarshalingPayabliApiResponseImport(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseImport(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -651,31 +651,31 @@ func TestJSONMarshalingPayabliApiResponseImport(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseImport + var unmarshaled PayabliAPIResponseImport err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseImport + var obj PayabliAPIResponseImport err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseImport + var obj PayabliAPIResponseImport err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseImportResponseData(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -684,62 +684,62 @@ func TestJSONMarshalingPayabliApiResponseImportResponseData(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseImportResponseData + var unmarshaled PayabliAPIResponseImportResponseData err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseImportResponseData + var obj PayabliAPIResponseImportResponseData err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseImportResponseData + var obj PayabliAPIResponseImportResponseData err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestStringPayabliApiResponseImport(t *testing.T) { +func TestStringPayabliAPIResponseImport(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseImportResponseData(t *testing.T) { +func TestStringPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImportResponseData + var obj *PayabliAPIResponseImportResponseData result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestExtraPropertiesPayabliApiResponseImport(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseImport(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseImport{} + obj := &PayabliAPIResponseImport{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -753,16 +753,16 @@ func TestExtraPropertiesPayabliApiResponseImport(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImport + var obj *PayabliAPIResponseImport extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseImportResponseData(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseImportResponseData(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseImportResponseData{} + obj := &PayabliAPIResponseImportResponseData{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -776,7 +776,7 @@ func TestExtraPropertiesPayabliApiResponseImportResponseData(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseImportResponseData + var obj *PayabliAPIResponseImportResponseData extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/invoice.go b/invoice.go index 22da64b..6a30ff8 100644 --- a/invoice.go +++ b/invoice.go @@ -528,7 +528,7 @@ var ( payorDataResponseFieldBillingState = big.NewInt(1 << 7) payorDataResponseFieldBillingZip = big.NewInt(1 << 8) payorDataResponseFieldCompanyName = big.NewInt(1 << 9) - payorDataResponseFieldCustomerId = big.NewInt(1 << 10) + payorDataResponseFieldCustomerID = big.NewInt(1 << 10) payorDataResponseFieldCustomerNumber = big.NewInt(1 << 11) payorDataResponseFieldCustomerStatus = big.NewInt(1 << 12) payorDataResponseFieldFirstName = big.NewInt(1 << 13) @@ -555,7 +555,7 @@ type PayorDataResponse struct { BillingZip *BillingZip `json:"BillingZip,omitempty" url:"BillingZip,omitempty"` // Customer's company name. CompanyName *string `json:"CompanyName,omitempty" url:"CompanyName,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerNumber *CustomerNumberNullable `json:"CustomerNumber,omitempty" url:"CustomerNumber,omitempty"` // Customer status. This is used to determine if the customer is active or inactive. CustomerStatus *CustomerStatus `json:"customerStatus,omitempty" url:"customerStatus,omitempty"` @@ -648,11 +648,11 @@ func (p *PayorDataResponse) GetCompanyName() *string { return p.CompanyName } -func (p *PayorDataResponse) GetCustomerId() *CustomerId { +func (p *PayorDataResponse) GetCustomerID() *CustomerID { if p == nil { return nil } - return p.CustomerId + return p.CustomerID } func (p *PayorDataResponse) GetCustomerNumber() *CustomerNumberNullable { @@ -816,11 +816,11 @@ func (p *PayorDataResponse) SetCompanyName(companyName *string) { p.require(payorDataResponseFieldCompanyName) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayorDataResponse) SetCustomerId(customerId *CustomerId) { - p.CustomerId = customerId - p.require(payorDataResponseFieldCustomerId) +func (p *PayorDataResponse) SetCustomerID(customerID *CustomerID) { + p.CustomerID = customerID + p.require(payorDataResponseFieldCustomerID) } // SetCustomerNumber sets the CustomerNumber field and marks it as non-optional; @@ -943,9 +943,9 @@ func (p *PayorDataResponse) String() string { } var ( - getInvoiceRecordFieldInvoiceId = big.NewInt(1 << 0) - getInvoiceRecordFieldCustomerId = big.NewInt(1 << 1) - getInvoiceRecordFieldPaypointId = big.NewInt(1 << 2) + getInvoiceRecordFieldInvoiceID = big.NewInt(1 << 0) + getInvoiceRecordFieldCustomerID = big.NewInt(1 << 1) + getInvoiceRecordFieldPaypointID = big.NewInt(1 << 2) getInvoiceRecordFieldInvoiceNumber = big.NewInt(1 << 3) getInvoiceRecordFieldInvoiceDate = big.NewInt(1 << 4) getInvoiceRecordFieldInvoiceDueDate = big.NewInt(1 << 5) @@ -981,7 +981,7 @@ var ( getInvoiceRecordFieldSummaryCommodityCode = big.NewInt(1 << 35) getInvoiceRecordFieldItems = big.NewInt(1 << 36) getInvoiceRecordFieldCustomer = big.NewInt(1 << 37) - getInvoiceRecordFieldPaylinkId = big.NewInt(1 << 38) + getInvoiceRecordFieldPaylinkID = big.NewInt(1 << 38) getInvoiceRecordFieldBillEvents = big.NewInt(1 << 39) getInvoiceRecordFieldScheduledOptions = big.NewInt(1 << 40) getInvoiceRecordFieldPaypointLegalname = big.NewInt(1 << 41) @@ -990,13 +990,13 @@ var ( getInvoiceRecordFieldParentOrgName = big.NewInt(1 << 44) getInvoiceRecordFieldAdditionalData = big.NewInt(1 << 45) getInvoiceRecordFieldDocumentsRef = big.NewInt(1 << 46) - getInvoiceRecordFieldExternalPaypointId = big.NewInt(1 << 47) + getInvoiceRecordFieldExternalPaypointID = big.NewInt(1 << 47) ) type GetInvoiceRecord struct { - InvoiceId InvoiceId `json:"invoiceId" url:"invoiceId"` - CustomerId CustomerId `json:"customerId" url:"customerId"` - PaypointId PaypointId `json:"paypointId" url:"paypointId"` + InvoiceID InvoiceID `json:"invoiceId" url:"invoiceId"` + CustomerID CustomerID `json:"customerId" url:"customerId"` + PaypointID PaypointID `json:"paypointId" url:"paypointId"` InvoiceNumber InvoiceNumber `json:"invoiceNumber" url:"invoiceNumber"` InvoiceDate *time.Time `json:"invoiceDate,omitempty" url:"invoiceDate,omitempty" format:"date"` InvoiceDueDate *time.Time `json:"invoiceDueDate,omitempty" url:"invoiceDueDate,omitempty" format:"date"` @@ -1035,7 +1035,7 @@ type GetInvoiceRecord struct { SummaryCommodityCode SummaryCommodityCode `json:"summaryCommodityCode" url:"summaryCommodityCode"` Items []*BillItem `json:"items" url:"items"` Customer *PayorDataResponse `json:"Customer" url:"Customer"` - PaylinkId PaylinkId `json:"paylinkId" url:"paylinkId"` + PaylinkID PaylinkID `json:"paylinkId" url:"paylinkId"` BillEvents *BillEvents `json:"billEvents,omitempty" url:"billEvents,omitempty"` ScheduledOptions *BillOptions `json:"scheduledOptions" url:"scheduledOptions"` PaypointLegalname string `json:"PaypointLegalname" url:"PaypointLegalname"` @@ -1044,7 +1044,7 @@ type GetInvoiceRecord struct { ParentOrgName OrgParentName `json:"ParentOrgName" url:"ParentOrgName"` AdditionalData *AdditionalDataMap `json:"AdditionalData,omitempty" url:"AdditionalData,omitempty"` DocumentsRef *DocumentsRef `json:"DocumentsRef" url:"DocumentsRef"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1053,25 +1053,25 @@ type GetInvoiceRecord struct { rawJSON json.RawMessage } -func (g *GetInvoiceRecord) GetInvoiceId() InvoiceId { +func (g *GetInvoiceRecord) GetInvoiceID() InvoiceID { if g == nil { return 0 } - return g.InvoiceId + return g.InvoiceID } -func (g *GetInvoiceRecord) GetCustomerId() CustomerId { +func (g *GetInvoiceRecord) GetCustomerID() CustomerID { if g == nil { return 0 } - return g.CustomerId + return g.CustomerID } -func (g *GetInvoiceRecord) GetPaypointId() PaypointId { +func (g *GetInvoiceRecord) GetPaypointID() PaypointID { if g == nil { return 0 } - return g.PaypointId + return g.PaypointID } func (g *GetInvoiceRecord) GetInvoiceNumber() InvoiceNumber { @@ -1319,11 +1319,11 @@ func (g *GetInvoiceRecord) GetCustomer() *PayorDataResponse { return g.Customer } -func (g *GetInvoiceRecord) GetPaylinkId() PaylinkId { +func (g *GetInvoiceRecord) GetPaylinkID() PaylinkID { if g == nil { return "" } - return g.PaylinkId + return g.PaylinkID } func (g *GetInvoiceRecord) GetBillEvents() *BillEvents { @@ -1382,11 +1382,11 @@ func (g *GetInvoiceRecord) GetDocumentsRef() *DocumentsRef { return g.DocumentsRef } -func (g *GetInvoiceRecord) GetExternalPaypointId() *ExternalPaypointId { +func (g *GetInvoiceRecord) GetExternalPaypointID() *ExternalPaypointID { if g == nil { return nil } - return g.ExternalPaypointId + return g.ExternalPaypointID } func (g *GetInvoiceRecord) GetExtraProperties() map[string]interface{} { @@ -1403,25 +1403,25 @@ func (g *GetInvoiceRecord) require(field *big.Int) { g.explicitFields.Or(g.explicitFields, field) } -// SetInvoiceId sets the InvoiceId field and marks it as non-optional; +// SetInvoiceID sets the InvoiceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetInvoiceRecord) SetInvoiceId(invoiceId InvoiceId) { - g.InvoiceId = invoiceId - g.require(getInvoiceRecordFieldInvoiceId) +func (g *GetInvoiceRecord) SetInvoiceID(invoiceID InvoiceID) { + g.InvoiceID = invoiceID + g.require(getInvoiceRecordFieldInvoiceID) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetInvoiceRecord) SetCustomerId(customerId CustomerId) { - g.CustomerId = customerId - g.require(getInvoiceRecordFieldCustomerId) +func (g *GetInvoiceRecord) SetCustomerID(customerID CustomerID) { + g.CustomerID = customerID + g.require(getInvoiceRecordFieldCustomerID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetInvoiceRecord) SetPaypointId(paypointId PaypointId) { - g.PaypointId = paypointId - g.require(getInvoiceRecordFieldPaypointId) +func (g *GetInvoiceRecord) SetPaypointID(paypointID PaypointID) { + g.PaypointID = paypointID + g.require(getInvoiceRecordFieldPaypointID) } // SetInvoiceNumber sets the InvoiceNumber field and marks it as non-optional; @@ -1669,11 +1669,11 @@ func (g *GetInvoiceRecord) SetCustomer(customer *PayorDataResponse) { g.require(getInvoiceRecordFieldCustomer) } -// SetPaylinkId sets the PaylinkId field and marks it as non-optional; +// SetPaylinkID sets the PaylinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetInvoiceRecord) SetPaylinkId(paylinkId PaylinkId) { - g.PaylinkId = paylinkId - g.require(getInvoiceRecordFieldPaylinkId) +func (g *GetInvoiceRecord) SetPaylinkID(paylinkID PaylinkID) { + g.PaylinkID = paylinkID + g.require(getInvoiceRecordFieldPaylinkID) } // SetBillEvents sets the BillEvents field and marks it as non-optional; @@ -1732,11 +1732,11 @@ func (g *GetInvoiceRecord) SetDocumentsRef(documentsRef *DocumentsRef) { g.require(getInvoiceRecordFieldDocumentsRef) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetInvoiceRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - g.ExternalPaypointId = externalPaypointId - g.require(getInvoiceRecordFieldExternalPaypointId) +func (g *GetInvoiceRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + g.ExternalPaypointID = externalPaypointID + g.require(getInvoiceRecordFieldExternalPaypointID) } func (g *GetInvoiceRecord) UnmarshalJSON(data []byte) error { @@ -1929,7 +1929,7 @@ func (i *InvoiceDataRequest) String() string { } // Identifier of invoice. -type InvoiceId = int64 +type InvoiceID = int64 // Response schema for operations for sending invoices or getting next invoice number. var ( @@ -2059,7 +2059,7 @@ var ( invoiceResponseWithoutDataFieldResponseData = big.NewInt(1 << 2) invoiceResponseWithoutDataFieldResponseText = big.NewInt(1 << 3) invoiceResponseWithoutDataFieldPageidentifier = big.NewInt(1 << 4) - invoiceResponseWithoutDataFieldRoomId = big.NewInt(1 << 5) + invoiceResponseWithoutDataFieldRoomID = big.NewInt(1 << 5) ) type InvoiceResponseWithoutData struct { @@ -2069,7 +2069,7 @@ type InvoiceResponseWithoutData struct { ResponseData *Responsedatanonobject `json:"responseData" url:"responseData"` ResponseText ResponseText `json:"responseText" url:"responseText"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` - RoomId RoomIdNotInUse `json:"roomId" url:"roomId"` + RoomID RoomIDNotInUse `json:"roomId" url:"roomId"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -2113,11 +2113,11 @@ func (i *InvoiceResponseWithoutData) GetPageidentifier() *PageIdentifier { return i.Pageidentifier } -func (i *InvoiceResponseWithoutData) GetRoomId() RoomIdNotInUse { +func (i *InvoiceResponseWithoutData) GetRoomID() RoomIDNotInUse { if i == nil { return 0 } - return i.RoomId + return i.RoomID } func (i *InvoiceResponseWithoutData) GetExtraProperties() map[string]interface{} { @@ -2169,11 +2169,11 @@ func (i *InvoiceResponseWithoutData) SetPageidentifier(pageidentifier *PageIdent i.require(invoiceResponseWithoutDataFieldPageidentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (i *InvoiceResponseWithoutData) SetRoomId(roomId RoomIdNotInUse) { - i.RoomId = roomId - i.require(invoiceResponseWithoutDataFieldRoomId) +func (i *InvoiceResponseWithoutData) SetRoomID(roomID RoomIDNotInUse) { + i.RoomID = roomID + i.require(invoiceResponseWithoutDataFieldRoomID) } func (i *InvoiceResponseWithoutData) UnmarshalJSON(data []byte) error { @@ -2319,9 +2319,9 @@ func (q *QueryInvoiceResponse) String() string { } var ( - queryInvoiceResponseRecordsItemFieldInvoiceId = big.NewInt(1 << 0) - queryInvoiceResponseRecordsItemFieldCustomerId = big.NewInt(1 << 1) - queryInvoiceResponseRecordsItemFieldPaypointId = big.NewInt(1 << 2) + queryInvoiceResponseRecordsItemFieldInvoiceID = big.NewInt(1 << 0) + queryInvoiceResponseRecordsItemFieldCustomerID = big.NewInt(1 << 1) + queryInvoiceResponseRecordsItemFieldPaypointID = big.NewInt(1 << 2) queryInvoiceResponseRecordsItemFieldInvoiceNumber = big.NewInt(1 << 3) queryInvoiceResponseRecordsItemFieldInvoiceDate = big.NewInt(1 << 4) queryInvoiceResponseRecordsItemFieldInvoiceDueDate = big.NewInt(1 << 5) @@ -2357,24 +2357,24 @@ var ( queryInvoiceResponseRecordsItemFieldSummaryCommodityCode = big.NewInt(1 << 35) queryInvoiceResponseRecordsItemFieldItems = big.NewInt(1 << 36) queryInvoiceResponseRecordsItemFieldCustomer = big.NewInt(1 << 37) - queryInvoiceResponseRecordsItemFieldPaylinkId = big.NewInt(1 << 38) + queryInvoiceResponseRecordsItemFieldPaylinkID = big.NewInt(1 << 38) queryInvoiceResponseRecordsItemFieldBillEvents = big.NewInt(1 << 39) queryInvoiceResponseRecordsItemFieldScheduledOptions = big.NewInt(1 << 40) queryInvoiceResponseRecordsItemFieldPaypointLegalname = big.NewInt(1 << 41) queryInvoiceResponseRecordsItemFieldPaypointDbaname = big.NewInt(1 << 42) queryInvoiceResponseRecordsItemFieldPaypointEntryname = big.NewInt(1 << 43) - queryInvoiceResponseRecordsItemFieldParentOrgId = big.NewInt(1 << 44) + queryInvoiceResponseRecordsItemFieldParentOrgID = big.NewInt(1 << 44) queryInvoiceResponseRecordsItemFieldParentOrgName = big.NewInt(1 << 45) queryInvoiceResponseRecordsItemFieldAdditionalData = big.NewInt(1 << 46) queryInvoiceResponseRecordsItemFieldDocumentsRef = big.NewInt(1 << 47) - queryInvoiceResponseRecordsItemFieldExternalPaypointId = big.NewInt(1 << 48) + queryInvoiceResponseRecordsItemFieldExternalPaypointID = big.NewInt(1 << 48) queryInvoiceResponseRecordsItemFieldPageIdentifier = big.NewInt(1 << 49) ) type QueryInvoiceResponseRecordsItem struct { - InvoiceId InvoiceId `json:"invoiceId" url:"invoiceId"` - CustomerId CustomerId `json:"customerId" url:"customerId"` - PaypointId PaypointId `json:"paypointId" url:"paypointId"` + InvoiceID InvoiceID `json:"invoiceId" url:"invoiceId"` + CustomerID CustomerID `json:"customerId" url:"customerId"` + PaypointID PaypointID `json:"paypointId" url:"paypointId"` InvoiceNumber InvoiceNumber `json:"invoiceNumber" url:"invoiceNumber"` // Invoice date in any of the accepted formats: YYYY-MM-DD, MM/DD/YYYY. InvoiceDate *time.Time `json:"invoiceDate,omitempty" url:"invoiceDate,omitempty" format:"date"` @@ -2423,7 +2423,7 @@ type QueryInvoiceResponseRecordsItem struct { // Array of line items included in the invoice. Items []*BillItem `json:"items" url:"items"` Customer *PayorDataResponse `json:"Customer" url:"Customer"` - PaylinkId string `json:"paylinkId" url:"paylinkId"` + PaylinkID string `json:"paylinkId" url:"paylinkId"` BillEvents *BillEvents `json:"billEvents,omitempty" url:"billEvents,omitempty"` // Object with options for scheduled invoices. ScheduledOptions *BillOptions `json:"scheduledOptions,omitempty" url:"scheduledOptions,omitempty"` @@ -2433,13 +2433,13 @@ type QueryInvoiceResponseRecordsItem struct { PaypointDbaname Dbaname `json:"PaypointDbaname" url:"PaypointDbaname"` // Paypoint's entryname. PaypointEntryname Entrypointfield `json:"PaypointEntryname" url:"PaypointEntryname"` - ParentOrgId Orgid `json:"ParentOrgId" url:"ParentOrgId"` + ParentOrgID Orgid `json:"ParentOrgId" url:"ParentOrgId"` ParentOrgName OrgParentName `json:"ParentOrgName" url:"ParentOrgName"` // Custom list of key:value pairs. This field is used to store any data related to the invoice or for your system. AdditionalData map[string]any `json:"AdditionalData,omitempty" url:"AdditionalData,omitempty"` // Object containing attachments associated to the invoice. DocumentsRef *DocumentsRef `json:"DocumentsRef,omitempty" url:"DocumentsRef,omitempty"` - ExternalPaypointId ExternalPaypointId `json:"externalPaypointID" url:"externalPaypointID"` + ExternalPaypointID ExternalPaypointID `json:"externalPaypointID" url:"externalPaypointID"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -2449,25 +2449,25 @@ type QueryInvoiceResponseRecordsItem struct { rawJSON json.RawMessage } -func (q *QueryInvoiceResponseRecordsItem) GetInvoiceId() InvoiceId { +func (q *QueryInvoiceResponseRecordsItem) GetInvoiceID() InvoiceID { if q == nil { return 0 } - return q.InvoiceId + return q.InvoiceID } -func (q *QueryInvoiceResponseRecordsItem) GetCustomerId() CustomerId { +func (q *QueryInvoiceResponseRecordsItem) GetCustomerID() CustomerID { if q == nil { return 0 } - return q.CustomerId + return q.CustomerID } -func (q *QueryInvoiceResponseRecordsItem) GetPaypointId() PaypointId { +func (q *QueryInvoiceResponseRecordsItem) GetPaypointID() PaypointID { if q == nil { return 0 } - return q.PaypointId + return q.PaypointID } func (q *QueryInvoiceResponseRecordsItem) GetInvoiceNumber() InvoiceNumber { @@ -2715,11 +2715,11 @@ func (q *QueryInvoiceResponseRecordsItem) GetCustomer() *PayorDataResponse { return q.Customer } -func (q *QueryInvoiceResponseRecordsItem) GetPaylinkId() string { +func (q *QueryInvoiceResponseRecordsItem) GetPaylinkID() string { if q == nil { return "" } - return q.PaylinkId + return q.PaylinkID } func (q *QueryInvoiceResponseRecordsItem) GetBillEvents() *BillEvents { @@ -2757,11 +2757,11 @@ func (q *QueryInvoiceResponseRecordsItem) GetPaypointEntryname() Entrypointfield return q.PaypointEntryname } -func (q *QueryInvoiceResponseRecordsItem) GetParentOrgId() Orgid { +func (q *QueryInvoiceResponseRecordsItem) GetParentOrgID() Orgid { if q == nil { return 0 } - return q.ParentOrgId + return q.ParentOrgID } func (q *QueryInvoiceResponseRecordsItem) GetParentOrgName() OrgParentName { @@ -2785,11 +2785,11 @@ func (q *QueryInvoiceResponseRecordsItem) GetDocumentsRef() *DocumentsRef { return q.DocumentsRef } -func (q *QueryInvoiceResponseRecordsItem) GetExternalPaypointId() ExternalPaypointId { +func (q *QueryInvoiceResponseRecordsItem) GetExternalPaypointID() ExternalPaypointID { if q == nil { return "" } - return q.ExternalPaypointId + return q.ExternalPaypointID } func (q *QueryInvoiceResponseRecordsItem) GetPageIdentifier() *PageIdentifier { @@ -2813,25 +2813,25 @@ func (q *QueryInvoiceResponseRecordsItem) require(field *big.Int) { q.explicitFields.Or(q.explicitFields, field) } -// SetInvoiceId sets the InvoiceId field and marks it as non-optional; +// SetInvoiceID sets the InvoiceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetInvoiceId(invoiceId InvoiceId) { - q.InvoiceId = invoiceId - q.require(queryInvoiceResponseRecordsItemFieldInvoiceId) +func (q *QueryInvoiceResponseRecordsItem) SetInvoiceID(invoiceID InvoiceID) { + q.InvoiceID = invoiceID + q.require(queryInvoiceResponseRecordsItemFieldInvoiceID) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetCustomerId(customerId CustomerId) { - q.CustomerId = customerId - q.require(queryInvoiceResponseRecordsItemFieldCustomerId) +func (q *QueryInvoiceResponseRecordsItem) SetCustomerID(customerID CustomerID) { + q.CustomerID = customerID + q.require(queryInvoiceResponseRecordsItemFieldCustomerID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetPaypointId(paypointId PaypointId) { - q.PaypointId = paypointId - q.require(queryInvoiceResponseRecordsItemFieldPaypointId) +func (q *QueryInvoiceResponseRecordsItem) SetPaypointID(paypointID PaypointID) { + q.PaypointID = paypointID + q.require(queryInvoiceResponseRecordsItemFieldPaypointID) } // SetInvoiceNumber sets the InvoiceNumber field and marks it as non-optional; @@ -3079,11 +3079,11 @@ func (q *QueryInvoiceResponseRecordsItem) SetCustomer(customer *PayorDataRespons q.require(queryInvoiceResponseRecordsItemFieldCustomer) } -// SetPaylinkId sets the PaylinkId field and marks it as non-optional; +// SetPaylinkID sets the PaylinkID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetPaylinkId(paylinkId string) { - q.PaylinkId = paylinkId - q.require(queryInvoiceResponseRecordsItemFieldPaylinkId) +func (q *QueryInvoiceResponseRecordsItem) SetPaylinkID(paylinkID string) { + q.PaylinkID = paylinkID + q.require(queryInvoiceResponseRecordsItemFieldPaylinkID) } // SetBillEvents sets the BillEvents field and marks it as non-optional; @@ -3121,11 +3121,11 @@ func (q *QueryInvoiceResponseRecordsItem) SetPaypointEntryname(paypointEntryname q.require(queryInvoiceResponseRecordsItemFieldPaypointEntryname) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetParentOrgId(parentOrgId Orgid) { - q.ParentOrgId = parentOrgId - q.require(queryInvoiceResponseRecordsItemFieldParentOrgId) +func (q *QueryInvoiceResponseRecordsItem) SetParentOrgID(parentOrgID Orgid) { + q.ParentOrgID = parentOrgID + q.require(queryInvoiceResponseRecordsItemFieldParentOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -3149,11 +3149,11 @@ func (q *QueryInvoiceResponseRecordsItem) SetDocumentsRef(documentsRef *Document q.require(queryInvoiceResponseRecordsItemFieldDocumentsRef) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryInvoiceResponseRecordsItem) SetExternalPaypointId(externalPaypointId ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryInvoiceResponseRecordsItemFieldExternalPaypointId) +func (q *QueryInvoiceResponseRecordsItem) SetExternalPaypointID(externalPaypointID ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryInvoiceResponseRecordsItemFieldExternalPaypointID) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; diff --git a/invoice/client.go b/invoice/client.go index 28a27e7..8df1933 100644 --- a/invoice/client.go +++ b/invoice/client.go @@ -216,13 +216,13 @@ func (c *Client) ListInvoices( func (c *Client) ListInvoicesOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListInvoicesOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryInvoiceResponse, error) { response, err := c.WithRawResponse.ListInvoicesOrg( ctx, - orgId, + orgID, request, opts..., ) diff --git a/invoice/raw_client.go b/invoice/raw_client.go index 7e7282f..9193ac0 100644 --- a/invoice/raw_client.go +++ b/invoice/raw_client.go @@ -460,7 +460,7 @@ func (r *RawClient) ListInvoices( func (r *RawClient) ListInvoicesOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListInvoicesOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryInvoiceResponse], error) { @@ -472,7 +472,7 @@ func (r *RawClient) ListInvoicesOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/invoices/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/invoice_test.go b/invoice_test.go index 70939dd..58a0c5a 100644 --- a/invoice_test.go +++ b/invoice_test.go @@ -904,11 +904,11 @@ func TestSettersPayorDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &PayorDataResponse{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -1333,28 +1333,28 @@ func TestGettersPayorDataResponse(t *testing.T) { _ = obj.GetCompanyName() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataResponse{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataResponse{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayorDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -1363,7 +1363,7 @@ func TestGettersPayorDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerNumber", func(t *testing.T) { @@ -2042,14 +2042,14 @@ func TestSettersMarkExplicitPayorDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataResponse{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2417,27 +2417,27 @@ func TestSettersMarkExplicitPayorDataResponse(t *testing.T) { } func TestSettersGetInvoiceRecord(t *testing.T) { - t.Run("SetInvoiceId", func(t *testing.T) { + t.Run("SetInvoiceID", func(t *testing.T) { obj := &GetInvoiceRecord{} - var fernTestValueInvoiceId InvoiceId - obj.SetInvoiceId(fernTestValueInvoiceId) - assert.Equal(t, fernTestValueInvoiceId, obj.InvoiceId) + var fernTestValueInvoiceID InvoiceID + obj.SetInvoiceID(fernTestValueInvoiceID) + assert.Equal(t, fernTestValueInvoiceID, obj.InvoiceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &GetInvoiceRecord{} - var fernTestValueCustomerId CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &GetInvoiceRecord{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2721,11 +2721,11 @@ func TestSettersGetInvoiceRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaylinkId", func(t *testing.T) { + t.Run("SetPaylinkID", func(t *testing.T) { obj := &GetInvoiceRecord{} - var fernTestValuePaylinkId PaylinkId - obj.SetPaylinkId(fernTestValuePaylinkId) - assert.Equal(t, fernTestValuePaylinkId, obj.PaylinkId) + var fernTestValuePaylinkID PaylinkID + obj.SetPaylinkID(fernTestValuePaylinkID) + assert.Equal(t, fernTestValuePaylinkID, obj.PaylinkID) assert.NotNil(t, obj.explicitFields) }) @@ -2793,29 +2793,29 @@ func TestSettersGetInvoiceRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &GetInvoiceRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersGetInvoiceRecord(t *testing.T) { - t.Run("GetInvoiceId", func(t *testing.T) { + t.Run("GetInvoiceID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var expected InvoiceId - obj.InvoiceId = expected + var expected InvoiceID + obj.InvoiceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvoiceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvoiceID(), "getter should return the property value") }) - t.Run("GetInvoiceId_NilReceiver", func(t *testing.T) { + t.Run("GetInvoiceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetInvoiceRecord // Should not panic - getters should handle nil receiver gracefully @@ -2824,21 +2824,21 @@ func TestGettersGetInvoiceRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvoiceId() // Should return zero value + _ = obj.GetInvoiceID() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var expected CustomerId - obj.CustomerId = expected + var expected CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetInvoiceRecord // Should not panic - getters should handle nil receiver gracefully @@ -2847,21 +2847,21 @@ func TestGettersGetInvoiceRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetInvoiceRecord // Should not panic - getters should handle nil receiver gracefully @@ -2870,7 +2870,7 @@ func TestGettersGetInvoiceRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetInvoiceNumber", func(t *testing.T) { @@ -3838,18 +3838,18 @@ func TestGettersGetInvoiceRecord(t *testing.T) { _ = obj.GetCustomer() // Should return zero value }) - t.Run("GetPaylinkId", func(t *testing.T) { + t.Run("GetPaylinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var expected PaylinkId - obj.PaylinkId = expected + var expected PaylinkID + obj.PaylinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaylinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaylinkID(), "getter should return the property value") }) - t.Run("GetPaylinkId_NilReceiver", func(t *testing.T) { + t.Run("GetPaylinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetInvoiceRecord // Should not panic - getters should handle nil receiver gracefully @@ -3858,7 +3858,7 @@ func TestGettersGetInvoiceRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaylinkId() // Should return zero value + _ = obj.GetPaylinkID() // Should return zero value }) t.Run("GetBillEvents", func(t *testing.T) { @@ -4085,28 +4085,28 @@ func TestGettersGetInvoiceRecord(t *testing.T) { _ = obj.GetDocumentsRef() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetInvoiceRecord // Should not panic - getters should handle nil receiver gracefully @@ -4115,20 +4115,20 @@ func TestGettersGetInvoiceRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) } func TestSettersMarkExplicitGetInvoiceRecord(t *testing.T) { - t.Run("SetInvoiceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInvoiceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var fernTestValueInvoiceId InvoiceId + var fernTestValueInvoiceID InvoiceID // Act - obj.SetInvoiceId(fernTestValueInvoiceId) + obj.SetInvoiceID(fernTestValueInvoiceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4152,14 +4152,14 @@ func TestSettersMarkExplicitGetInvoiceRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var fernTestValueCustomerId CustomerId + var fernTestValueCustomerID CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4183,14 +4183,14 @@ func TestSettersMarkExplicitGetInvoiceRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5299,14 +5299,14 @@ func TestSettersMarkExplicitGetInvoiceRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaylinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaylinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var fernTestValuePaylinkId PaylinkId + var fernTestValuePaylinkID PaylinkID // Act - obj.SetPaylinkId(fernTestValuePaylinkId) + obj.SetPaylinkID(fernTestValuePaylinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5578,14 +5578,14 @@ func TestSettersMarkExplicitGetInvoiceRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetInvoiceRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6072,11 +6072,11 @@ func TestSettersInvoiceResponseWithoutData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &InvoiceResponseWithoutData{} - var fernTestValueRoomId RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -6218,18 +6218,18 @@ func TestGettersInvoiceResponseWithoutData(t *testing.T) { _ = obj.GetPageidentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &InvoiceResponseWithoutData{} - var expected RoomIdNotInUse - obj.RoomId = expected + var expected RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *InvoiceResponseWithoutData // Should not panic - getters should handle nil receiver gracefully @@ -6238,7 +6238,7 @@ func TestGettersInvoiceResponseWithoutData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) } @@ -6399,14 +6399,14 @@ func TestSettersMarkExplicitInvoiceResponseWithoutData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &InvoiceResponseWithoutData{} - var fernTestValueRoomId RoomIdNotInUse + var fernTestValueRoomID RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6586,27 +6586,27 @@ func TestSettersMarkExplicitQueryInvoiceResponse(t *testing.T) { } func TestSettersQueryInvoiceResponseRecordsItem(t *testing.T) { - t.Run("SetInvoiceId", func(t *testing.T) { + t.Run("SetInvoiceID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueInvoiceId InvoiceId - obj.SetInvoiceId(fernTestValueInvoiceId) - assert.Equal(t, fernTestValueInvoiceId, obj.InvoiceId) + var fernTestValueInvoiceID InvoiceID + obj.SetInvoiceID(fernTestValueInvoiceID) + assert.Equal(t, fernTestValueInvoiceID, obj.InvoiceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueCustomerId CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -6890,11 +6890,11 @@ func TestSettersQueryInvoiceResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaylinkId", func(t *testing.T) { + t.Run("SetPaylinkID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValuePaylinkId string - obj.SetPaylinkId(fernTestValuePaylinkId) - assert.Equal(t, fernTestValuePaylinkId, obj.PaylinkId) + var fernTestValuePaylinkID string + obj.SetPaylinkID(fernTestValuePaylinkID) + assert.Equal(t, fernTestValuePaylinkID, obj.PaylinkID) assert.NotNil(t, obj.explicitFields) }) @@ -6938,11 +6938,11 @@ func TestSettersQueryInvoiceResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueParentOrgId Orgid - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID Orgid + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -6970,11 +6970,11 @@ func TestSettersQueryInvoiceResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueExternalPaypointId ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -6989,18 +6989,18 @@ func TestSettersQueryInvoiceResponseRecordsItem(t *testing.T) { } func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { - t.Run("GetInvoiceId", func(t *testing.T) { + t.Run("GetInvoiceID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var expected InvoiceId - obj.InvoiceId = expected + var expected InvoiceID + obj.InvoiceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInvoiceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInvoiceID(), "getter should return the property value") }) - t.Run("GetInvoiceId_NilReceiver", func(t *testing.T) { + t.Run("GetInvoiceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -7009,21 +7009,21 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInvoiceId() // Should return zero value + _ = obj.GetInvoiceID() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var expected CustomerId - obj.CustomerId = expected + var expected CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -7032,21 +7032,21 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -7055,7 +7055,7 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetInvoiceNumber", func(t *testing.T) { @@ -8023,18 +8023,18 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { _ = obj.GetCustomer() // Should return zero value }) - t.Run("GetPaylinkId", func(t *testing.T) { + t.Run("GetPaylinkID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} var expected string - obj.PaylinkId = expected + obj.PaylinkID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaylinkId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaylinkID(), "getter should return the property value") }) - t.Run("GetPaylinkId_NilReceiver", func(t *testing.T) { + t.Run("GetPaylinkID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -8043,7 +8043,7 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaylinkId() // Should return zero value + _ = obj.GetPaylinkID() // Should return zero value }) t.Run("GetBillEvents", func(t *testing.T) { @@ -8181,18 +8181,18 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} var expected Orgid - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -8201,7 +8201,7 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -8293,18 +8293,18 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { _ = obj.GetDocumentsRef() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var expected ExternalPaypointId - obj.ExternalPaypointId = expected + var expected ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryInvoiceResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -8313,7 +8313,7 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetPageIdentifier", func(t *testing.T) { @@ -8352,14 +8352,14 @@ func TestGettersQueryInvoiceResponseRecordsItem(t *testing.T) { } func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { - t.Run("SetInvoiceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInvoiceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueInvoiceId InvoiceId + var fernTestValueInvoiceID InvoiceID // Act - obj.SetInvoiceId(fernTestValueInvoiceId) + obj.SetInvoiceID(fernTestValueInvoiceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8383,14 +8383,14 @@ func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueCustomerId CustomerId + var fernTestValueCustomerID CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8414,14 +8414,14 @@ func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9530,14 +9530,14 @@ func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaylinkId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaylinkID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValuePaylinkId string + var fernTestValuePaylinkID string // Act - obj.SetPaylinkId(fernTestValuePaylinkId) + obj.SetPaylinkID(fernTestValuePaylinkID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9716,14 +9716,14 @@ func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueParentOrgId Orgid + var fernTestValueParentOrgID Orgid // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9840,14 +9840,14 @@ func TestSettersMarkExplicitQueryInvoiceResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryInvoiceResponseRecordsItem{} - var fernTestValueExternalPaypointId ExternalPaypointId + var fernTestValueExternalPaypointID ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/line_item.go b/line_item.go index 0891a03..d0cbeba 100644 --- a/line_item.go +++ b/line_item.go @@ -377,7 +377,7 @@ func (l *LineItem) String() string { var ( lineItemQueryRecordFieldCreatedAt = big.NewInt(1 << 0) - lineItemQueryRecordFieldId = big.NewInt(1 << 1) + lineItemQueryRecordFieldID = big.NewInt(1 << 1) lineItemQueryRecordFieldItemCategories = big.NewInt(1 << 2) lineItemQueryRecordFieldItemCommodityCode = big.NewInt(1 << 3) lineItemQueryRecordFieldItemCost = big.NewInt(1 << 4) @@ -399,7 +399,7 @@ type LineItemQueryRecord struct { // Timestamp of when line item was created, in UTC. CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` // Identifier of line item. - Id *int64 `json:"id,omitempty" url:"id,omitempty"` + ID *int64 `json:"id,omitempty" url:"id,omitempty"` // Array of tags classifying item or product. ItemCategories []*string `json:"itemCategories,omitempty" url:"itemCategories,omitempty"` ItemCommodityCode *ItemCommodityCode `json:"itemCommodityCode,omitempty" url:"itemCommodityCode,omitempty"` @@ -439,11 +439,11 @@ func (l *LineItemQueryRecord) GetCreatedAt() *CreatedAt { return l.CreatedAt } -func (l *LineItemQueryRecord) GetId() *int64 { +func (l *LineItemQueryRecord) GetID() *int64 { if l == nil { return nil } - return l.Id + return l.ID } func (l *LineItemQueryRecord) GetItemCategories() []*string { @@ -572,11 +572,11 @@ func (l *LineItemQueryRecord) SetCreatedAt(createdAt *CreatedAt) { l.require(lineItemQueryRecordFieldCreatedAt) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (l *LineItemQueryRecord) SetId(id *int64) { - l.Id = id - l.require(lineItemQueryRecordFieldId) +func (l *LineItemQueryRecord) SetID(id *int64) { + l.ID = id + l.require(lineItemQueryRecordFieldID) } // SetItemCategories sets the ItemCategories field and marks it as non-optional; @@ -740,13 +740,13 @@ func (l *LineItemQueryRecord) String() string { // Response schema for line item operations. var ( - payabliApiResponse6FieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponse6FieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponse6FieldResponseData = big.NewInt(1 << 2) - payabliApiResponse6FieldResponseText = big.NewInt(1 << 3) + payabliAPIResponse6FieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponse6FieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponse6FieldResponseData = big.NewInt(1 << 2) + payabliAPIResponse6FieldResponseText = big.NewInt(1 << 3) ) -type PayabliApiResponse6 struct { +type PayabliAPIResponse6 struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` // If `isSuccess` = true, this contains the line item identifier. If `isSuccess` = false, this contains the reason of the error. @@ -760,42 +760,42 @@ type PayabliApiResponse6 struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse6) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse6) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse6) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponse6) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponse6) GetResponseData() *Responsedatanonobject { +func (p *PayabliAPIResponse6) GetResponseData() *Responsedatanonobject { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse6) GetResponseText() ResponseText { +func (p *PayabliAPIResponse6) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse6) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse6) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse6) require(field *big.Int) { +func (p *PayabliAPIResponse6) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -804,39 +804,39 @@ func (p *PayabliApiResponse6) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse6) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse6) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponse6FieldIsSuccess) + p.require(payabliAPIResponse6FieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse6) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponse6) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponse6FieldPageIdentifier) + p.require(payabliAPIResponse6FieldPageIdentifier) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse6) SetResponseData(responseData *Responsedatanonobject) { +func (p *PayabliAPIResponse6) SetResponseData(responseData *Responsedatanonobject) { p.ResponseData = responseData - p.require(payabliApiResponse6FieldResponseData) + p.require(payabliAPIResponse6FieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse6) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse6) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponse6FieldResponseText) + p.require(payabliAPIResponse6FieldResponseText) } -func (p *PayabliApiResponse6) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse6 +func (p *PayabliAPIResponse6) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse6 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse6(value) + *p = PayabliAPIResponse6(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -846,8 +846,8 @@ func (p *PayabliApiResponse6) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse6) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse6 +func (p *PayabliAPIResponse6) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse6 var marshaler = struct { embed }{ @@ -857,7 +857,7 @@ func (p *PayabliApiResponse6) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse6) String() string { +func (p *PayabliAPIResponse6) String() string { if p == nil { return "" } diff --git a/line_item_test.go b/line_item_test.go index 71d8cb0..c4e52d2 100644 --- a/line_item_test.go +++ b/line_item_test.go @@ -862,11 +862,11 @@ func TestSettersLineItemQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &LineItemQueryRecord{} - var fernTestValueId *int64 - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int64 + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -1026,28 +1026,28 @@ func TestGettersLineItemQueryRecord(t *testing.T) { _ = obj.GetCreatedAt() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &LineItemQueryRecord{} var expected *int64 - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &LineItemQueryRecord{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *LineItemQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -1056,7 +1056,7 @@ func TestGettersLineItemQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetItemCategories", func(t *testing.T) { @@ -1568,14 +1568,14 @@ func TestSettersMarkExplicitLineItemQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &LineItemQueryRecord{} - var fernTestValueId *int64 + var fernTestValueID *int64 // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2066,9 +2066,9 @@ func TestSettersMarkExplicitLineItemQueryRecord(t *testing.T) { } -func TestSettersPayabliApiResponse6(t *testing.T) { +func TestSettersPayabliAPIResponse6(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2076,7 +2076,7 @@ func TestSettersPayabliApiResponse6(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -2084,7 +2084,7 @@ func TestSettersPayabliApiResponse6(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueResponseData *Responsedatanonobject obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -2092,7 +2092,7 @@ func TestSettersPayabliApiResponse6(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -2101,11 +2101,11 @@ func TestSettersPayabliApiResponse6(t *testing.T) { } -func TestGettersPayabliApiResponse6(t *testing.T) { +func TestGettersPayabliAPIResponse6(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var expected *IsSuccess obj.IsSuccess = expected @@ -2116,7 +2116,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} obj.IsSuccess = nil // Act & Assert @@ -2125,7 +2125,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2138,7 +2138,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -2149,7 +2149,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} obj.PageIdentifier = nil // Act & Assert @@ -2158,7 +2158,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2171,7 +2171,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var expected *Responsedatanonobject obj.ResponseData = expected @@ -2182,7 +2182,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} obj.ResponseData = nil // Act & Assert @@ -2191,7 +2191,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2204,7 +2204,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var expected ResponseText obj.ResponseText = expected @@ -2214,7 +2214,7 @@ func TestGettersPayabliApiResponse6(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2226,11 +2226,11 @@ func TestGettersPayabliApiResponse6(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse6(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse6(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueIsSuccess *IsSuccess // Act @@ -2261,7 +2261,7 @@ func TestSettersMarkExplicitPayabliApiResponse6(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -2292,7 +2292,7 @@ func TestSettersMarkExplicitPayabliApiResponse6(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueResponseData *Responsedatanonobject // Act @@ -2323,7 +2323,7 @@ func TestSettersMarkExplicitPayabliApiResponse6(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} var fernTestValueResponseText ResponseText // Act @@ -3107,11 +3107,11 @@ func TestJSONMarshalingLineItemQueryRecord(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponse6(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse6(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3120,21 +3120,21 @@ func TestJSONMarshalingPayabliApiResponse6(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse6 + var unmarshaled PayabliAPIResponse6 err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse6 + var obj PayabliAPIResponse6 err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse6 + var obj PayabliAPIResponse6 err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -3254,17 +3254,17 @@ func TestStringLineItemQueryRecord(t *testing.T) { }) } -func TestStringPayabliApiResponse6(t *testing.T) { +func TestStringPayabliAPIResponse6(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -3371,10 +3371,10 @@ func TestExtraPropertiesLineItemQueryRecord(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponse6(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse6(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse6{} + obj := &PayabliAPIResponse6{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -3388,7 +3388,7 @@ func TestExtraPropertiesPayabliApiResponse6(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse6 + var obj *PayabliAPIResponse6 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/lineitem/client.go b/lineitem/client.go index 37b6f41..f2edf22 100644 --- a/lineitem/client.go +++ b/lineitem/client.go @@ -39,7 +39,7 @@ func (c *Client) AddItem( entry string, request *payabli.AddItemRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse6, error) { +) (*payabli.PayabliAPIResponse6, error) { response, err := c.WithRawResponse.AddItem( ctx, entry, @@ -56,12 +56,12 @@ func (c *Client) AddItem( func (c *Client) DeleteItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, opts ...option.RequestOption, ) (*payabli.DeleteItemResponse, error) { response, err := c.WithRawResponse.DeleteItem( ctx, - lineItemId, + lineItemID, opts..., ) if err != nil { @@ -74,12 +74,12 @@ func (c *Client) DeleteItem( func (c *Client) GetItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, opts ...option.RequestOption, ) (*payabli.LineItemQueryRecord, error) { response, err := c.WithRawResponse.GetItem( ctx, - lineItemId, + lineItemID, opts..., ) if err != nil { @@ -112,13 +112,13 @@ func (c *Client) ListLineItems( func (c *Client) UpdateItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, request *payabli.LineItem, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse6, error) { +) (*payabli.PayabliAPIResponse6, error) { response, err := c.WithRawResponse.UpdateItem( ctx, - lineItemId, + lineItemID, request, opts..., ) diff --git a/lineitem/raw_client.go b/lineitem/raw_client.go index bb1a45a..0d6a0fa 100644 --- a/lineitem/raw_client.go +++ b/lineitem/raw_client.go @@ -36,7 +36,7 @@ func (r *RawClient) AddItem( entry string, request *payabli.AddItemRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse6], error) { +) (*core.Response[*payabli.PayabliAPIResponse6], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -55,7 +55,7 @@ func (r *RawClient) AddItem( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponse6 + var response *payabli.PayabliAPIResponse6 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -74,7 +74,7 @@ func (r *RawClient) AddItem( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse6]{ + return &core.Response[*payabli.PayabliAPIResponse6]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -84,7 +84,7 @@ func (r *RawClient) AddItem( func (r *RawClient) DeleteItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, opts ...option.RequestOption, ) (*core.Response[*payabli.DeleteItemResponse], error) { options := core.NewRequestOptions(opts...) @@ -95,7 +95,7 @@ func (r *RawClient) DeleteItem( ) endpointURL := internal.EncodeURL( baseURL+"/LineItem/%v", - lineItemId, + lineItemID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -129,7 +129,7 @@ func (r *RawClient) DeleteItem( func (r *RawClient) GetItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, opts ...option.RequestOption, ) (*core.Response[*payabli.LineItemQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -140,7 +140,7 @@ func (r *RawClient) GetItem( ) endpointURL := internal.EncodeURL( baseURL+"/LineItem/%v", - lineItemId, + lineItemID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -227,10 +227,10 @@ func (r *RawClient) ListLineItems( func (r *RawClient) UpdateItem( ctx context.Context, // ID for the line item (also known as a product, service, or item). - lineItemId int, + lineItemID int, request *payabli.LineItem, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse6], error) { +) (*core.Response[*payabli.PayabliAPIResponse6], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -239,13 +239,13 @@ func (r *RawClient) UpdateItem( ) endpointURL := internal.EncodeURL( baseURL+"/LineItem/%v", - lineItemId, + lineItemID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse6 + var response *payabli.PayabliAPIResponse6 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -263,7 +263,7 @@ func (r *RawClient) UpdateItem( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse6]{ + return &core.Response[*payabli.PayabliAPIResponse6]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/money_in.go b/money_in.go index 96235ae..9909609 100644 --- a/money_in.go +++ b/money_in.go @@ -61,11 +61,11 @@ func (r *RequestPaymentAuthorize) MarshalJSON() ([]byte, error) { var ( requestCreditFieldIdempotencyKey = big.NewInt(1 << 0) requestCreditFieldForceCustomerCreation = big.NewInt(1 << 1) - requestCreditFieldAccountId = big.NewInt(1 << 2) + requestCreditFieldAccountID = big.NewInt(1 << 2) requestCreditFieldCustomerData = big.NewInt(1 << 3) requestCreditFieldEntrypoint = big.NewInt(1 << 4) requestCreditFieldOrderDescription = big.NewInt(1 << 5) - requestCreditFieldOrderId = big.NewInt(1 << 6) + requestCreditFieldOrderID = big.NewInt(1 << 6) requestCreditFieldPaymentDetails = big.NewInt(1 << 7) requestCreditFieldPaymentMethod = big.NewInt(1 << 8) requestCreditFieldSource = big.NewInt(1 << 9) @@ -75,12 +75,12 @@ var ( type RequestCredit struct { IdempotencyKey *IdempotencyKey `json:"-" url:"-"` ForceCustomerCreation *ForceCustomerCreation `json:"-" url:"forceCustomerCreation,omitempty"` - AccountId *AccountId `json:"accountId,omitempty" url:"-"` + AccountID *AccountID `json:"accountId,omitempty" url:"-"` // Object describing the customer/payor. CustomerData *PayorDataRequest `json:"customerData" url:"-"` Entrypoint *Entrypointfield `json:"entrypoint,omitempty" url:"-"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"-"` - OrderId *OrderId `json:"orderId,omitempty" url:"-"` + OrderID *OrderID `json:"orderId,omitempty" url:"-"` PaymentDetails *PaymentDetailCredit `json:"paymentDetails" url:"-"` // Object describing the ACH payment method to use for transaction. PaymentMethod *RequestCreditPaymentMethod `json:"paymentMethod" url:"-"` @@ -112,11 +112,11 @@ func (r *RequestCredit) SetForceCustomerCreation(forceCustomerCreation *ForceCus r.require(requestCreditFieldForceCustomerCreation) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestCredit) SetAccountId(accountId *AccountId) { - r.AccountId = accountId - r.require(requestCreditFieldAccountId) +func (r *RequestCredit) SetAccountID(accountID *AccountID) { + r.AccountID = accountID + r.require(requestCreditFieldAccountID) } // SetCustomerData sets the CustomerData field and marks it as non-optional; @@ -140,11 +140,11 @@ func (r *RequestCredit) SetOrderDescription(orderDescription *Orderdescription) r.require(requestCreditFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestCredit) SetOrderId(orderId *OrderId) { - r.OrderId = orderId - r.require(requestCreditFieldOrderId) +func (r *RequestCredit) SetOrderID(orderID *OrderID) { + r.OrderID = orderID + r.require(requestCreditFieldOrderID) } // SetPaymentDetails sets the PaymentDetails field and marks it as non-optional; @@ -201,7 +201,7 @@ var ( requestRefundFieldAmount = big.NewInt(1 << 1) requestRefundFieldIpaddress = big.NewInt(1 << 2) requestRefundFieldOrderDescription = big.NewInt(1 << 3) - requestRefundFieldOrderId = big.NewInt(1 << 4) + requestRefundFieldOrderID = big.NewInt(1 << 4) requestRefundFieldRefundDetails = big.NewInt(1 << 5) requestRefundFieldSource = big.NewInt(1 << 6) ) @@ -214,9 +214,9 @@ type RequestRefund struct { // // An amount equal to zero will refund the total amount authorized minus any service fee. Amount *float64 `json:"amount,omitempty" url:"-"` - Ipaddress *IpAddress `json:"ipaddress,omitempty" url:"-"` + Ipaddress *IPAddress `json:"ipaddress,omitempty" url:"-"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"-"` - OrderId *OrderId `json:"orderId,omitempty" url:"-"` + OrderID *OrderID `json:"orderId,omitempty" url:"-"` RefundDetails *RefundDetail `json:"refundDetails,omitempty" url:"-"` Source *Source `json:"source,omitempty" url:"-"` @@ -247,7 +247,7 @@ func (r *RequestRefund) SetAmount(amount *float64) { // SetIpaddress sets the Ipaddress field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestRefund) SetIpaddress(ipaddress *IpAddress) { +func (r *RequestRefund) SetIpaddress(ipaddress *IPAddress) { r.Ipaddress = ipaddress r.require(requestRefundFieldIpaddress) } @@ -259,11 +259,11 @@ func (r *RequestRefund) SetOrderDescription(orderDescription *Orderdescription) r.require(requestRefundFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestRefund) SetOrderId(orderId *OrderId) { - r.OrderId = orderId - r.require(requestRefundFieldOrderId) +func (r *RequestRefund) SetOrderID(orderID *OrderID) { + r.OrderID = orderID + r.require(requestRefundFieldOrderID) } // SetRefundDetails sets the RefundDetails field and marks it as non-optional; @@ -331,19 +331,19 @@ func (s *SendReceipt2TransRequest) SetEmail(email *string) { var ( requestPaymentValidateFieldIdempotencyKey = big.NewInt(1 << 0) - requestPaymentValidateFieldAccountId = big.NewInt(1 << 1) + requestPaymentValidateFieldAccountID = big.NewInt(1 << 1) requestPaymentValidateFieldEntryPoint = big.NewInt(1 << 2) requestPaymentValidateFieldOrderDescription = big.NewInt(1 << 3) - requestPaymentValidateFieldOrderId = big.NewInt(1 << 4) + requestPaymentValidateFieldOrderID = big.NewInt(1 << 4) requestPaymentValidateFieldPaymentMethod = big.NewInt(1 << 5) ) type RequestPaymentValidate struct { IdempotencyKey *IdempotencyKey `json:"-" url:"-"` - AccountId *AccountId `json:"accountId,omitempty" url:"-"` + AccountID *AccountID `json:"accountId,omitempty" url:"-"` EntryPoint Entrypointfield `json:"entryPoint" url:"-"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"-"` - OrderId *OrderId `json:"orderId,omitempty" url:"-"` + OrderID *OrderID `json:"orderId,omitempty" url:"-"` // Object describing payment method to use for transaction. PaymentMethod *RequestPaymentValidatePaymentMethod `json:"paymentMethod" url:"-"` @@ -365,11 +365,11 @@ func (r *RequestPaymentValidate) SetIdempotencyKey(idempotencyKey *IdempotencyKe r.require(requestPaymentValidateFieldIdempotencyKey) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestPaymentValidate) SetAccountId(accountId *AccountId) { - r.AccountId = accountId - r.require(requestPaymentValidateFieldAccountId) +func (r *RequestPaymentValidate) SetAccountID(accountID *AccountID) { + r.AccountID = accountID + r.require(requestPaymentValidateFieldAccountID) } // SetEntryPoint sets the EntryPoint field and marks it as non-optional; @@ -386,11 +386,11 @@ func (r *RequestPaymentValidate) SetOrderDescription(orderDescription *Orderdesc r.require(requestPaymentValidateFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestPaymentValidate) SetOrderId(orderId *OrderId) { - r.OrderId = orderId - r.require(requestPaymentValidateFieldOrderId) +func (r *RequestPaymentValidate) SetOrderID(orderID *OrderID) { + r.OrderID = orderID + r.require(requestPaymentValidateFieldOrderID) } // SetPaymentMethod sets the PaymentMethod field and marks it as non-optional; @@ -795,7 +795,7 @@ func (c *Check) String() string { return fmt.Sprintf("%#v", c) } -type CustomerVaultId = string +type CustomerVaultID = string // The expected time that the refund will be processed. This value only appears when the `resultCode` is `10`, which means that the refund has been initiated and is queued for processing. See [Enhanced Refund Flow](/guides/pay-in-enhanced-refund-flow) for more information about refund processing. type ExpectedProcessingDateTime = time.Time @@ -848,7 +848,7 @@ var ( payMethodBodyAllFieldsFieldInitator = big.NewInt(1 << 11) payMethodBodyAllFieldsFieldMethod = big.NewInt(1 << 12) payMethodBodyAllFieldsFieldSaveIfSuccess = big.NewInt(1 << 13) - payMethodBodyAllFieldsFieldStoredMethodId = big.NewInt(1 << 14) + payMethodBodyAllFieldsFieldStoredMethodID = big.NewInt(1 << 14) payMethodBodyAllFieldsFieldStoredMethodUsageType = big.NewInt(1 << 15) ) @@ -869,7 +869,7 @@ type PayMethodBodyAllFields struct { Initator *Initiator `json:"initator,omitempty" url:"initator,omitempty"` Method *Methodall `json:"method,omitempty" url:"method,omitempty"` SaveIfSuccess *SaveIfSuccess `json:"saveIfSuccess,omitempty" url:"saveIfSuccess,omitempty"` - StoredMethodId *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"storedMethodUsageType,omitempty" url:"storedMethodUsageType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -977,11 +977,11 @@ func (p *PayMethodBodyAllFields) GetSaveIfSuccess() *SaveIfSuccess { return p.SaveIfSuccess } -func (p *PayMethodBodyAllFields) GetStoredMethodId() *Storedmethodid { +func (p *PayMethodBodyAllFields) GetStoredMethodID() *Storedmethodid { if p == nil { return nil } - return p.StoredMethodId + return p.StoredMethodID } func (p *PayMethodBodyAllFields) GetStoredMethodUsageType() *StoredMethodUsageType { @@ -1103,11 +1103,11 @@ func (p *PayMethodBodyAllFields) SetSaveIfSuccess(saveIfSuccess *SaveIfSuccess) p.require(payMethodBodyAllFieldsFieldSaveIfSuccess) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayMethodBodyAllFields) SetStoredMethodId(storedMethodId *Storedmethodid) { - p.StoredMethodId = storedMethodId - p.require(payMethodBodyAllFieldsFieldStoredMethodId) +func (p *PayMethodBodyAllFields) SetStoredMethodID(storedMethodID *Storedmethodid) { + p.StoredMethodID = storedMethodID + p.require(payMethodBodyAllFieldsFieldStoredMethodID) } // SetStoredMethodUsageType sets the StoredMethodUsageType field and marks it as non-optional; @@ -1279,7 +1279,7 @@ func (p *PayMethodCloud) String() string { var ( payMethodStoredMethodFieldInitiator = big.NewInt(1 << 0) payMethodStoredMethodFieldMethod = big.NewInt(1 << 1) - payMethodStoredMethodFieldStoredMethodId = big.NewInt(1 << 2) + payMethodStoredMethodFieldStoredMethodID = big.NewInt(1 << 2) payMethodStoredMethodFieldStoredMethodUsageType = big.NewInt(1 << 3) ) @@ -1288,7 +1288,7 @@ type PayMethodStoredMethod struct { // Method to use for the transaction. Use either `card` or `ach`, depending on what kind of method was tokenized to use a saved payment method for this transaction. Method PayMethodStoredMethodMethod `json:"method" url:"method"` // Payabli identifier of a tokenized payment method. - StoredMethodId *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"storedMethodUsageType,omitempty" url:"storedMethodUsageType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1312,11 +1312,11 @@ func (p *PayMethodStoredMethod) GetMethod() PayMethodStoredMethodMethod { return p.Method } -func (p *PayMethodStoredMethod) GetStoredMethodId() *Storedmethodid { +func (p *PayMethodStoredMethod) GetStoredMethodID() *Storedmethodid { if p == nil { return nil } - return p.StoredMethodId + return p.StoredMethodID } func (p *PayMethodStoredMethod) GetStoredMethodUsageType() *StoredMethodUsageType { @@ -1354,11 +1354,11 @@ func (p *PayMethodStoredMethod) SetMethod(method PayMethodStoredMethodMethod) { p.require(payMethodStoredMethodFieldMethod) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayMethodStoredMethod) SetStoredMethodId(storedMethodId *Storedmethodid) { - p.StoredMethodId = storedMethodId - p.require(payMethodStoredMethodFieldStoredMethodId) +func (p *PayMethodStoredMethod) SetStoredMethodID(storedMethodID *Storedmethodid) { + p.StoredMethodID = storedMethodID + p.require(payMethodStoredMethodFieldStoredMethodID) } // SetStoredMethodUsageType sets the StoredMethodUsageType field and marks it as non-optional; @@ -1435,16 +1435,16 @@ func (p PayMethodStoredMethodMethod) Ptr() *PayMethodStoredMethodMethod { // General response for certain `moneyIn` and `moneyOut` endpoints. var ( - payabliApiResponse0FieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponse0FieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponse0FieldResponseData = big.NewInt(1 << 2) - payabliApiResponse0FieldResponseText = big.NewInt(1 << 3) + payabliAPIResponse0FieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponse0FieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponse0FieldResponseData = big.NewInt(1 << 2) + payabliAPIResponse0FieldResponseText = big.NewInt(1 << 3) ) -type PayabliApiResponse0 struct { +type PayabliAPIResponse0 struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - ResponseData *PayabliApiResponse0ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponse0ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1454,42 +1454,42 @@ type PayabliApiResponse0 struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse0) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse0) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse0) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponse0) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponse0) GetResponseData() *PayabliApiResponse0ResponseData { +func (p *PayabliAPIResponse0) GetResponseData() *PayabliAPIResponse0ResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse0) GetResponseText() ResponseText { +func (p *PayabliAPIResponse0) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse0) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse0) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse0) require(field *big.Int) { +func (p *PayabliAPIResponse0) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -1498,39 +1498,39 @@ func (p *PayabliApiResponse0) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse0) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponse0FieldIsSuccess) + p.require(payabliAPIResponse0FieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponse0) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponse0FieldPageIdentifier) + p.require(payabliAPIResponse0FieldPageIdentifier) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0) SetResponseData(responseData *PayabliApiResponse0ResponseData) { +func (p *PayabliAPIResponse0) SetResponseData(responseData *PayabliAPIResponse0ResponseData) { p.ResponseData = responseData - p.require(payabliApiResponse0FieldResponseData) + p.require(payabliAPIResponse0FieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse0) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponse0FieldResponseText) + p.require(payabliAPIResponse0FieldResponseText) } -func (p *PayabliApiResponse0) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse0 +func (p *PayabliAPIResponse0) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse0 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse0(value) + *p = PayabliAPIResponse0(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -1540,8 +1540,8 @@ func (p *PayabliApiResponse0) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse0) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse0 +func (p *PayabliAPIResponse0) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse0 var marshaler = struct { embed }{ @@ -1551,7 +1551,7 @@ func (p *PayabliApiResponse0) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse0) String() string { +func (p *PayabliAPIResponse0) String() string { if p == nil { return "" } @@ -1874,7 +1874,7 @@ var ( queryTransactionPayorDataCustomerFieldShippingState = big.NewInt(1 << 16) queryTransactionPayorDataCustomerFieldShippingZip = big.NewInt(1 << 17) queryTransactionPayorDataCustomerFieldShippingCountry = big.NewInt(1 << 18) - queryTransactionPayorDataCustomerFieldCustomerId = big.NewInt(1 << 19) + queryTransactionPayorDataCustomerFieldCustomerID = big.NewInt(1 << 19) queryTransactionPayorDataCustomerFieldCustomerStatus = big.NewInt(1 << 20) queryTransactionPayorDataCustomerFieldAdditionalData = big.NewInt(1 << 21) ) @@ -1911,7 +1911,7 @@ type QueryTransactionPayorDataCustomer struct { ShippingState *Shippingstate `json:"ShippingState,omitempty" url:"ShippingState,omitempty"` ShippingZip *Shippingzip `json:"ShippingZip,omitempty" url:"ShippingZip,omitempty"` ShippingCountry *Shippingcountry `json:"ShippingCountry,omitempty" url:"ShippingCountry,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerStatus *CustomerStatus `json:"customerStatus,omitempty" url:"customerStatus,omitempty"` AdditionalData *AdditionalDataMap `json:"AdditionalData,omitempty" url:"AdditionalData,omitempty"` @@ -2055,11 +2055,11 @@ func (q *QueryTransactionPayorDataCustomer) GetShippingCountry() *Shippingcountr return q.ShippingCountry } -func (q *QueryTransactionPayorDataCustomer) GetCustomerId() *CustomerId { +func (q *QueryTransactionPayorDataCustomer) GetCustomerID() *CustomerID { if q == nil { return nil } - return q.CustomerId + return q.CustomerID } func (q *QueryTransactionPayorDataCustomer) GetCustomerStatus() *CustomerStatus { @@ -2223,11 +2223,11 @@ func (q *QueryTransactionPayorDataCustomer) SetShippingCountry(shippingCountry * q.require(queryTransactionPayorDataCustomerFieldShippingCountry) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryTransactionPayorDataCustomer) SetCustomerId(customerId *CustomerId) { - q.CustomerId = customerId - q.require(queryTransactionPayorDataCustomerFieldCustomerId) +func (q *QueryTransactionPayorDataCustomer) SetCustomerID(customerID *CustomerID) { + q.CustomerID = customerID + q.require(queryTransactionPayorDataCustomerFieldCustomerID) } // SetCustomerStatus sets the CustomerStatus field and marks it as non-optional; @@ -2390,7 +2390,7 @@ func (r *RefundDetail) String() string { } var ( - splitFundingRefundContentFieldAccountId = big.NewInt(1 << 0) + splitFundingRefundContentFieldAccountID = big.NewInt(1 << 0) splitFundingRefundContentFieldAmount = big.NewInt(1 << 1) splitFundingRefundContentFieldDescription = big.NewInt(1 << 2) splitFundingRefundContentFieldOriginationEntryPoint = big.NewInt(1 << 3) @@ -2398,7 +2398,7 @@ var ( type SplitFundingRefundContent struct { // The accountId for the account the transaction was routed to. - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` // The amount to refund to this account. Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"` // Refund description. @@ -2413,11 +2413,11 @@ type SplitFundingRefundContent struct { rawJSON json.RawMessage } -func (s *SplitFundingRefundContent) GetAccountId() *string { +func (s *SplitFundingRefundContent) GetAccountID() *string { if s == nil { return nil } - return s.AccountId + return s.AccountID } func (s *SplitFundingRefundContent) GetAmount() *float64 { @@ -2455,11 +2455,11 @@ func (s *SplitFundingRefundContent) require(field *big.Int) { s.explicitFields.Or(s.explicitFields, field) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SplitFundingRefundContent) SetAccountId(accountId *string) { - s.AccountId = accountId - s.require(splitFundingRefundContentFieldAccountId) +func (s *SplitFundingRefundContent) SetAccountID(accountID *string) { + s.AccountID = accountID + s.require(splitFundingRefundContentFieldAccountID) } // SetAmount sets the Amount field and marks it as non-optional; @@ -2533,29 +2533,29 @@ var ( transactionQueryRecordsCustomerFieldCfeeTransactions = big.NewInt(1 << 4) transactionQueryRecordsCustomerFieldConnectorName = big.NewInt(1 << 5) transactionQueryRecordsCustomerFieldCustomer = big.NewInt(1 << 6) - transactionQueryRecordsCustomerFieldDeviceId = big.NewInt(1 << 7) - transactionQueryRecordsCustomerFieldEntrypageId = big.NewInt(1 << 8) + transactionQueryRecordsCustomerFieldDeviceID = big.NewInt(1 << 7) + transactionQueryRecordsCustomerFieldEntrypageID = big.NewInt(1 << 8) transactionQueryRecordsCustomerFieldExternalProcessorInformation = big.NewInt(1 << 9) transactionQueryRecordsCustomerFieldFeeAmount = big.NewInt(1 << 10) - transactionQueryRecordsCustomerFieldGatewayTransId = big.NewInt(1 << 11) + transactionQueryRecordsCustomerFieldGatewayTransID = big.NewInt(1 << 11) transactionQueryRecordsCustomerFieldInvoiceData = big.NewInt(1 << 12) transactionQueryRecordsCustomerFieldMethod = big.NewInt(1 << 13) transactionQueryRecordsCustomerFieldNetAmount = big.NewInt(1 << 14) transactionQueryRecordsCustomerFieldOperation = big.NewInt(1 << 15) - transactionQueryRecordsCustomerFieldOrderId = big.NewInt(1 << 16) - transactionQueryRecordsCustomerFieldOrgId = big.NewInt(1 << 17) + transactionQueryRecordsCustomerFieldOrderID = big.NewInt(1 << 16) + transactionQueryRecordsCustomerFieldOrgID = big.NewInt(1 << 17) transactionQueryRecordsCustomerFieldParentOrgName = big.NewInt(1 << 18) transactionQueryRecordsCustomerFieldPaymentData = big.NewInt(1 << 19) - transactionQueryRecordsCustomerFieldPaymentTransId = big.NewInt(1 << 20) - transactionQueryRecordsCustomerFieldPayorId = big.NewInt(1 << 21) + transactionQueryRecordsCustomerFieldPaymentTransID = big.NewInt(1 << 20) + transactionQueryRecordsCustomerFieldPayorID = big.NewInt(1 << 21) transactionQueryRecordsCustomerFieldPaypointDbaname = big.NewInt(1 << 22) transactionQueryRecordsCustomerFieldPaypointEntryname = big.NewInt(1 << 23) - transactionQueryRecordsCustomerFieldPaypointId = big.NewInt(1 << 24) + transactionQueryRecordsCustomerFieldPaypointID = big.NewInt(1 << 24) transactionQueryRecordsCustomerFieldPaypointLegalname = big.NewInt(1 << 25) transactionQueryRecordsCustomerFieldPendingFeeAmount = big.NewInt(1 << 26) - transactionQueryRecordsCustomerFieldRefundId = big.NewInt(1 << 27) + transactionQueryRecordsCustomerFieldRefundID = big.NewInt(1 << 27) transactionQueryRecordsCustomerFieldResponseData = big.NewInt(1 << 28) - transactionQueryRecordsCustomerFieldReturnedId = big.NewInt(1 << 29) + transactionQueryRecordsCustomerFieldReturnedID = big.NewInt(1 << 29) transactionQueryRecordsCustomerFieldScheduleReference = big.NewInt(1 << 30) transactionQueryRecordsCustomerFieldSettlementStatus = big.NewInt(1 << 31) transactionQueryRecordsCustomerFieldSource = big.NewInt(1 << 32) @@ -2578,38 +2578,38 @@ type TransactionQueryRecordsCustomer struct { // Connector used for transaction. ConnectorName *string `json:"ConnectorName,omitempty" url:"ConnectorName,omitempty"` Customer *QueryTransactionPayorDataCustomer `json:"Customer,omitempty" url:"Customer,omitempty"` - DeviceId *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` - EntrypageId *EntrypageId `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` + DeviceID *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` + EntrypageID *EntrypageID `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` ExternalProcessorInformation *ExternalProcessorInformation `json:"ExternalProcessorInformation,omitempty" url:"ExternalProcessorInformation,omitempty"` FeeAmount *FeeAmount `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` // Internal identifier used for processing. - GatewayTransId *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` + GatewayTransID *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` InvoiceData *BillData `json:"invoiceData,omitempty" url:"invoiceData,omitempty"` // Payment method used: card, ach, or wallet. Method *string `json:"Method,omitempty" url:"Method,omitempty"` // Net amount paid. NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` Operation *Operation `json:"Operation,omitempty" url:"Operation,omitempty"` - OrderId *OrderId `json:"OrderId,omitempty" url:"OrderId,omitempty"` + OrderID *OrderID `json:"OrderId,omitempty" url:"OrderId,omitempty"` // ID of immediate parent organization. - OrgId *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` + OrgID *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Unique Transaction ID. - PaymentTransId *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` - PayorId *PayorId `json:"PayorId,omitempty" url:"PayorId,omitempty"` + PaymentTransID *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` + PayorID *PayorID `json:"PayorId,omitempty" url:"PayorId,omitempty"` // Paypoint's DBA name. PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // Paypoint's entryname. PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` // InternalId for paypoint. - PaypointId *int64 `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *int64 `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // Paypoint's legal name. PaypointLegalname *Legalname `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` PendingFeeAmount *PendingFeeAmount `json:"PendingFeeAmount,omitempty" url:"PendingFeeAmount,omitempty"` - RefundId *RefundId `json:"RefundId,omitempty" url:"RefundId,omitempty"` + RefundID *RefundID `json:"RefundId,omitempty" url:"RefundId,omitempty"` ResponseData *QueryResponseData `json:"ResponseData,omitempty" url:"ResponseData,omitempty"` - ReturnedId *ReturnedId `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` + ReturnedID *ReturnedID `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` // Reference to the subscription that originated the transaction. ScheduleReference *int64 `json:"ScheduleReference,omitempty" url:"ScheduleReference,omitempty"` // Settlement status for transaction. See [the docs](/developers/references/money-in-statuses#payment-funding-status) for a full reference. @@ -2682,18 +2682,18 @@ func (t *TransactionQueryRecordsCustomer) GetCustomer() *QueryTransactionPayorDa return t.Customer } -func (t *TransactionQueryRecordsCustomer) GetDeviceId() *Device { +func (t *TransactionQueryRecordsCustomer) GetDeviceID() *Device { if t == nil { return nil } - return t.DeviceId + return t.DeviceID } -func (t *TransactionQueryRecordsCustomer) GetEntrypageId() *EntrypageId { +func (t *TransactionQueryRecordsCustomer) GetEntrypageID() *EntrypageID { if t == nil { return nil } - return t.EntrypageId + return t.EntrypageID } func (t *TransactionQueryRecordsCustomer) GetExternalProcessorInformation() *ExternalProcessorInformation { @@ -2710,11 +2710,11 @@ func (t *TransactionQueryRecordsCustomer) GetFeeAmount() *FeeAmount { return t.FeeAmount } -func (t *TransactionQueryRecordsCustomer) GetGatewayTransId() *string { +func (t *TransactionQueryRecordsCustomer) GetGatewayTransID() *string { if t == nil { return nil } - return t.GatewayTransId + return t.GatewayTransID } func (t *TransactionQueryRecordsCustomer) GetInvoiceData() *BillData { @@ -2745,18 +2745,18 @@ func (t *TransactionQueryRecordsCustomer) GetOperation() *Operation { return t.Operation } -func (t *TransactionQueryRecordsCustomer) GetOrderId() *OrderId { +func (t *TransactionQueryRecordsCustomer) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } -func (t *TransactionQueryRecordsCustomer) GetOrgId() *Orgid { +func (t *TransactionQueryRecordsCustomer) GetOrgID() *Orgid { if t == nil { return nil } - return t.OrgId + return t.OrgID } func (t *TransactionQueryRecordsCustomer) GetParentOrgName() *OrgParentName { @@ -2773,18 +2773,18 @@ func (t *TransactionQueryRecordsCustomer) GetPaymentData() *QueryPaymentData { return t.PaymentData } -func (t *TransactionQueryRecordsCustomer) GetPaymentTransId() *string { +func (t *TransactionQueryRecordsCustomer) GetPaymentTransID() *string { if t == nil { return nil } - return t.PaymentTransId + return t.PaymentTransID } -func (t *TransactionQueryRecordsCustomer) GetPayorId() *PayorId { +func (t *TransactionQueryRecordsCustomer) GetPayorID() *PayorID { if t == nil { return nil } - return t.PayorId + return t.PayorID } func (t *TransactionQueryRecordsCustomer) GetPaypointDbaname() *Dbaname { @@ -2801,11 +2801,11 @@ func (t *TransactionQueryRecordsCustomer) GetPaypointEntryname() *Entrypointfiel return t.PaypointEntryname } -func (t *TransactionQueryRecordsCustomer) GetPaypointId() *int64 { +func (t *TransactionQueryRecordsCustomer) GetPaypointID() *int64 { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransactionQueryRecordsCustomer) GetPaypointLegalname() *Legalname { @@ -2822,11 +2822,11 @@ func (t *TransactionQueryRecordsCustomer) GetPendingFeeAmount() *PendingFeeAmoun return t.PendingFeeAmount } -func (t *TransactionQueryRecordsCustomer) GetRefundId() *RefundId { +func (t *TransactionQueryRecordsCustomer) GetRefundID() *RefundID { if t == nil { return nil } - return t.RefundId + return t.RefundID } func (t *TransactionQueryRecordsCustomer) GetResponseData() *QueryResponseData { @@ -2836,11 +2836,11 @@ func (t *TransactionQueryRecordsCustomer) GetResponseData() *QueryResponseData { return t.ResponseData } -func (t *TransactionQueryRecordsCustomer) GetReturnedId() *ReturnedId { +func (t *TransactionQueryRecordsCustomer) GetReturnedID() *ReturnedID { if t == nil { return nil } - return t.ReturnedId + return t.ReturnedID } func (t *TransactionQueryRecordsCustomer) GetScheduleReference() *int64 { @@ -2969,18 +2969,18 @@ func (t *TransactionQueryRecordsCustomer) SetCustomer(customer *QueryTransaction t.require(transactionQueryRecordsCustomerFieldCustomer) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetDeviceId(deviceId *Device) { - t.DeviceId = deviceId - t.require(transactionQueryRecordsCustomerFieldDeviceId) +func (t *TransactionQueryRecordsCustomer) SetDeviceID(deviceID *Device) { + t.DeviceID = deviceID + t.require(transactionQueryRecordsCustomerFieldDeviceID) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetEntrypageId(entrypageId *EntrypageId) { - t.EntrypageId = entrypageId - t.require(transactionQueryRecordsCustomerFieldEntrypageId) +func (t *TransactionQueryRecordsCustomer) SetEntrypageID(entrypageID *EntrypageID) { + t.EntrypageID = entrypageID + t.require(transactionQueryRecordsCustomerFieldEntrypageID) } // SetExternalProcessorInformation sets the ExternalProcessorInformation field and marks it as non-optional; @@ -2997,11 +2997,11 @@ func (t *TransactionQueryRecordsCustomer) SetFeeAmount(feeAmount *FeeAmount) { t.require(transactionQueryRecordsCustomerFieldFeeAmount) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetGatewayTransId(gatewayTransId *string) { - t.GatewayTransId = gatewayTransId - t.require(transactionQueryRecordsCustomerFieldGatewayTransId) +func (t *TransactionQueryRecordsCustomer) SetGatewayTransID(gatewayTransID *string) { + t.GatewayTransID = gatewayTransID + t.require(transactionQueryRecordsCustomerFieldGatewayTransID) } // SetInvoiceData sets the InvoiceData field and marks it as non-optional; @@ -3032,18 +3032,18 @@ func (t *TransactionQueryRecordsCustomer) SetOperation(operation *Operation) { t.require(transactionQueryRecordsCustomerFieldOperation) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transactionQueryRecordsCustomerFieldOrderId) +func (t *TransactionQueryRecordsCustomer) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transactionQueryRecordsCustomerFieldOrderID) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetOrgId(orgId *Orgid) { - t.OrgId = orgId - t.require(transactionQueryRecordsCustomerFieldOrgId) +func (t *TransactionQueryRecordsCustomer) SetOrgID(orgID *Orgid) { + t.OrgID = orgID + t.require(transactionQueryRecordsCustomerFieldOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -3060,18 +3060,18 @@ func (t *TransactionQueryRecordsCustomer) SetPaymentData(paymentData *QueryPayme t.require(transactionQueryRecordsCustomerFieldPaymentData) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetPaymentTransId(paymentTransId *string) { - t.PaymentTransId = paymentTransId - t.require(transactionQueryRecordsCustomerFieldPaymentTransId) +func (t *TransactionQueryRecordsCustomer) SetPaymentTransID(paymentTransID *string) { + t.PaymentTransID = paymentTransID + t.require(transactionQueryRecordsCustomerFieldPaymentTransID) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetPayorId(payorId *PayorId) { - t.PayorId = payorId - t.require(transactionQueryRecordsCustomerFieldPayorId) +func (t *TransactionQueryRecordsCustomer) SetPayorID(payorID *PayorID) { + t.PayorID = payorID + t.require(transactionQueryRecordsCustomerFieldPayorID) } // SetPaypointDbaname sets the PaypointDbaname field and marks it as non-optional; @@ -3088,11 +3088,11 @@ func (t *TransactionQueryRecordsCustomer) SetPaypointEntryname(paypointEntryname t.require(transactionQueryRecordsCustomerFieldPaypointEntryname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetPaypointId(paypointId *int64) { - t.PaypointId = paypointId - t.require(transactionQueryRecordsCustomerFieldPaypointId) +func (t *TransactionQueryRecordsCustomer) SetPaypointID(paypointID *int64) { + t.PaypointID = paypointID + t.require(transactionQueryRecordsCustomerFieldPaypointID) } // SetPaypointLegalname sets the PaypointLegalname field and marks it as non-optional; @@ -3109,11 +3109,11 @@ func (t *TransactionQueryRecordsCustomer) SetPendingFeeAmount(pendingFeeAmount * t.require(transactionQueryRecordsCustomerFieldPendingFeeAmount) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetRefundId(refundId *RefundId) { - t.RefundId = refundId - t.require(transactionQueryRecordsCustomerFieldRefundId) +func (t *TransactionQueryRecordsCustomer) SetRefundID(refundID *RefundID) { + t.RefundID = refundID + t.require(transactionQueryRecordsCustomerFieldRefundID) } // SetResponseData sets the ResponseData field and marks it as non-optional; @@ -3123,11 +3123,11 @@ func (t *TransactionQueryRecordsCustomer) SetResponseData(responseData *QueryRes t.require(transactionQueryRecordsCustomerFieldResponseData) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecordsCustomer) SetReturnedId(returnedId *ReturnedId) { - t.ReturnedId = returnedId - t.require(transactionQueryRecordsCustomerFieldReturnedId) +func (t *TransactionQueryRecordsCustomer) SetReturnedID(returnedID *ReturnedID) { + t.ReturnedID = returnedID + t.require(transactionQueryRecordsCustomerFieldReturnedID) } // SetScheduleReference sets the ScheduleReference field and marks it as non-optional; @@ -3378,24 +3378,24 @@ func (a *AuthResponse) String() string { var ( authResponseResponseDataFieldAuthCode = big.NewInt(1 << 0) - authResponseResponseDataFieldReferenceId = big.NewInt(1 << 1) + authResponseResponseDataFieldReferenceID = big.NewInt(1 << 1) authResponseResponseDataFieldResultCode = big.NewInt(1 << 2) authResponseResponseDataFieldResultText = big.NewInt(1 << 3) authResponseResponseDataFieldAvsResponseText = big.NewInt(1 << 4) authResponseResponseDataFieldCvvResponseText = big.NewInt(1 << 5) - authResponseResponseDataFieldCustomerId = big.NewInt(1 << 6) - authResponseResponseDataFieldMethodReferenceId = big.NewInt(1 << 7) + authResponseResponseDataFieldCustomerID = big.NewInt(1 << 6) + authResponseResponseDataFieldMethodReferenceID = big.NewInt(1 << 7) ) type AuthResponseResponseData struct { AuthCode Authcode `json:"authCode" url:"authCode"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText AvsResponseText `json:"avsResponseText" url:"avsResponseText"` CvvResponseText CvvResponseText `json:"cvvResponseText" url:"cvvResponseText"` - CustomerId Customeridtrans `json:"customerId" url:"customerId"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID Customeridtrans `json:"customerId" url:"customerId"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -3411,11 +3411,11 @@ func (a *AuthResponseResponseData) GetAuthCode() Authcode { return a.AuthCode } -func (a *AuthResponseResponseData) GetReferenceId() Referenceidtrans { +func (a *AuthResponseResponseData) GetReferenceID() Referenceidtrans { if a == nil { return "" } - return a.ReferenceId + return a.ReferenceID } func (a *AuthResponseResponseData) GetResultCode() ResultCode { @@ -3446,18 +3446,18 @@ func (a *AuthResponseResponseData) GetCvvResponseText() CvvResponseText { return a.CvvResponseText } -func (a *AuthResponseResponseData) GetCustomerId() Customeridtrans { +func (a *AuthResponseResponseData) GetCustomerID() Customeridtrans { if a == nil { return 0 } - return a.CustomerId + return a.CustomerID } -func (a *AuthResponseResponseData) GetMethodReferenceId() *MethodReferenceId { +func (a *AuthResponseResponseData) GetMethodReferenceID() *MethodReferenceID { if a == nil { return nil } - return a.MethodReferenceId + return a.MethodReferenceID } func (a *AuthResponseResponseData) GetExtraProperties() map[string]interface{} { @@ -3481,11 +3481,11 @@ func (a *AuthResponseResponseData) SetAuthCode(authCode Authcode) { a.require(authResponseResponseDataFieldAuthCode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthResponseResponseData) SetReferenceId(referenceId Referenceidtrans) { - a.ReferenceId = referenceId - a.require(authResponseResponseDataFieldReferenceId) +func (a *AuthResponseResponseData) SetReferenceID(referenceID Referenceidtrans) { + a.ReferenceID = referenceID + a.require(authResponseResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -3516,18 +3516,18 @@ func (a *AuthResponseResponseData) SetCvvResponseText(cvvResponseText CvvRespons a.require(authResponseResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthResponseResponseData) SetCustomerId(customerId Customeridtrans) { - a.CustomerId = customerId - a.require(authResponseResponseDataFieldCustomerId) +func (a *AuthResponseResponseData) SetCustomerID(customerID Customeridtrans) { + a.CustomerID = customerID + a.require(authResponseResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthResponseResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - a.MethodReferenceId = methodReferenceId - a.require(authResponseResponseDataFieldMethodReferenceId) +func (a *AuthResponseResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + a.MethodReferenceID = methodReferenceID + a.require(authResponseResponseDataFieldMethodReferenceID) } func (a *AuthResponseResponseData) UnmarshalJSON(data []byte) error { @@ -3763,7 +3763,7 @@ func (c *CaptureRequest) String() string { var ( captureResponseFieldResponseCode = big.NewInt(1 << 0) captureResponseFieldPageIdentifier = big.NewInt(1 << 1) - captureResponseFieldRoomId = big.NewInt(1 << 2) + captureResponseFieldRoomID = big.NewInt(1 << 2) captureResponseFieldIsSuccess = big.NewInt(1 << 3) captureResponseFieldResponseText = big.NewInt(1 << 4) captureResponseFieldResponseData = big.NewInt(1 << 5) @@ -3772,7 +3772,7 @@ var ( type CaptureResponse struct { ResponseCode Responsecode `json:"responseCode" url:"responseCode"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId RoomIdNotInUse `json:"roomId" url:"roomId"` + RoomID RoomIDNotInUse `json:"roomId" url:"roomId"` IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *CaptureResponseData `json:"responseData" url:"responseData"` @@ -3798,11 +3798,11 @@ func (c *CaptureResponse) GetPageIdentifier() *PageIdentifier { return c.PageIdentifier } -func (c *CaptureResponse) GetRoomId() RoomIdNotInUse { +func (c *CaptureResponse) GetRoomID() RoomIDNotInUse { if c == nil { return 0 } - return c.RoomId + return c.RoomID } func (c *CaptureResponse) GetIsSuccess() IsSuccess { @@ -3854,11 +3854,11 @@ func (c *CaptureResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { c.require(captureResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureResponse) SetRoomId(roomId RoomIdNotInUse) { - c.RoomId = roomId - c.require(captureResponseFieldRoomId) +func (c *CaptureResponse) SetRoomID(roomID RoomIDNotInUse) { + c.RoomID = roomID + c.require(captureResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -3927,24 +3927,24 @@ func (c *CaptureResponse) String() string { // Response data for capture transactions var ( captureResponseDataFieldAuthCode = big.NewInt(1 << 0) - captureResponseDataFieldReferenceId = big.NewInt(1 << 1) + captureResponseDataFieldReferenceID = big.NewInt(1 << 1) captureResponseDataFieldResultCode = big.NewInt(1 << 2) captureResponseDataFieldResultText = big.NewInt(1 << 3) captureResponseDataFieldAvsResponseText = big.NewInt(1 << 4) captureResponseDataFieldCvvResponseText = big.NewInt(1 << 5) - captureResponseDataFieldCustomerId = big.NewInt(1 << 6) - captureResponseDataFieldMethodReferenceId = big.NewInt(1 << 7) + captureResponseDataFieldCustomerID = big.NewInt(1 << 6) + captureResponseDataFieldMethodReferenceID = big.NewInt(1 << 7) ) type CaptureResponseData struct { AuthCode Authcode `json:"authCode" url:"authCode"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText *AvsResponseText `json:"avsResponseText,omitempty" url:"avsResponseText,omitempty"` CvvResponseText *CvvResponseText `json:"cvvResponseText,omitempty" url:"cvvResponseText,omitempty"` - CustomerId *Customeridtrans `json:"customerId,omitempty" url:"customerId,omitempty"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID *Customeridtrans `json:"customerId,omitempty" url:"customerId,omitempty"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -3960,11 +3960,11 @@ func (c *CaptureResponseData) GetAuthCode() Authcode { return c.AuthCode } -func (c *CaptureResponseData) GetReferenceId() Referenceidtrans { +func (c *CaptureResponseData) GetReferenceID() Referenceidtrans { if c == nil { return "" } - return c.ReferenceId + return c.ReferenceID } func (c *CaptureResponseData) GetResultCode() ResultCode { @@ -3995,18 +3995,18 @@ func (c *CaptureResponseData) GetCvvResponseText() *CvvResponseText { return c.CvvResponseText } -func (c *CaptureResponseData) GetCustomerId() *Customeridtrans { +func (c *CaptureResponseData) GetCustomerID() *Customeridtrans { if c == nil { return nil } - return c.CustomerId + return c.CustomerID } -func (c *CaptureResponseData) GetMethodReferenceId() *MethodReferenceId { +func (c *CaptureResponseData) GetMethodReferenceID() *MethodReferenceID { if c == nil { return nil } - return c.MethodReferenceId + return c.MethodReferenceID } func (c *CaptureResponseData) GetExtraProperties() map[string]interface{} { @@ -4030,11 +4030,11 @@ func (c *CaptureResponseData) SetAuthCode(authCode Authcode) { c.require(captureResponseDataFieldAuthCode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureResponseData) SetReferenceId(referenceId Referenceidtrans) { - c.ReferenceId = referenceId - c.require(captureResponseDataFieldReferenceId) +func (c *CaptureResponseData) SetReferenceID(referenceID Referenceidtrans) { + c.ReferenceID = referenceID + c.require(captureResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -4065,18 +4065,18 @@ func (c *CaptureResponseData) SetCvvResponseText(cvvResponseText *CvvResponseTex c.require(captureResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureResponseData) SetCustomerId(customerId *Customeridtrans) { - c.CustomerId = customerId - c.require(captureResponseDataFieldCustomerId) +func (c *CaptureResponseData) SetCustomerID(customerID *Customeridtrans) { + c.CustomerID = customerID + c.require(captureResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - c.MethodReferenceId = methodReferenceId - c.require(captureResponseDataFieldMethodReferenceId) +func (c *CaptureResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + c.MethodReferenceID = methodReferenceID + c.require(captureResponseDataFieldMethodReferenceID) } func (c *CaptureResponseData) UnmarshalJSON(data []byte) error { @@ -4125,26 +4125,26 @@ func (c *CaptureResponseData) String() string { var ( getPaidResponseDataFieldAuthCode = big.NewInt(1 << 0) getPaidResponseDataFieldTransactionDetails = big.NewInt(1 << 1) - getPaidResponseDataFieldReferenceId = big.NewInt(1 << 2) + getPaidResponseDataFieldReferenceID = big.NewInt(1 << 2) getPaidResponseDataFieldResultCode = big.NewInt(1 << 3) getPaidResponseDataFieldResultText = big.NewInt(1 << 4) getPaidResponseDataFieldAvsResponseText = big.NewInt(1 << 5) getPaidResponseDataFieldCvvResponseText = big.NewInt(1 << 6) - getPaidResponseDataFieldCustomerId = big.NewInt(1 << 7) - getPaidResponseDataFieldMethodReferenceId = big.NewInt(1 << 8) + getPaidResponseDataFieldCustomerID = big.NewInt(1 << 7) + getPaidResponseDataFieldMethodReferenceID = big.NewInt(1 << 8) ) type GetPaidResponseData struct { AuthCode *Authcode `json:"authCode,omitempty" url:"authCode,omitempty"` // Details of the transaction. Present only if `includeDetails` query parameter is set to `true` in the request. TransactionDetails *TransactionDetailRecord `json:"transactionDetails,omitempty" url:"transactionDetails,omitempty"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText AvsResponseText `json:"avsResponseText" url:"avsResponseText"` CvvResponseText CvvResponseText `json:"cvvResponseText" url:"cvvResponseText"` - CustomerId Customeridtrans `json:"customerId" url:"customerId"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID Customeridtrans `json:"customerId" url:"customerId"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -4167,11 +4167,11 @@ func (g *GetPaidResponseData) GetTransactionDetails() *TransactionDetailRecord { return g.TransactionDetails } -func (g *GetPaidResponseData) GetReferenceId() Referenceidtrans { +func (g *GetPaidResponseData) GetReferenceID() Referenceidtrans { if g == nil { return "" } - return g.ReferenceId + return g.ReferenceID } func (g *GetPaidResponseData) GetResultCode() ResultCode { @@ -4202,18 +4202,18 @@ func (g *GetPaidResponseData) GetCvvResponseText() CvvResponseText { return g.CvvResponseText } -func (g *GetPaidResponseData) GetCustomerId() Customeridtrans { +func (g *GetPaidResponseData) GetCustomerID() Customeridtrans { if g == nil { return 0 } - return g.CustomerId + return g.CustomerID } -func (g *GetPaidResponseData) GetMethodReferenceId() *MethodReferenceId { +func (g *GetPaidResponseData) GetMethodReferenceID() *MethodReferenceID { if g == nil { return nil } - return g.MethodReferenceId + return g.MethodReferenceID } func (g *GetPaidResponseData) GetExtraProperties() map[string]interface{} { @@ -4244,11 +4244,11 @@ func (g *GetPaidResponseData) SetTransactionDetails(transactionDetails *Transact g.require(getPaidResponseDataFieldTransactionDetails) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPaidResponseData) SetReferenceId(referenceId Referenceidtrans) { - g.ReferenceId = referenceId - g.require(getPaidResponseDataFieldReferenceId) +func (g *GetPaidResponseData) SetReferenceID(referenceID Referenceidtrans) { + g.ReferenceID = referenceID + g.require(getPaidResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -4279,18 +4279,18 @@ func (g *GetPaidResponseData) SetCvvResponseText(cvvResponseText CvvResponseText g.require(getPaidResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPaidResponseData) SetCustomerId(customerId Customeridtrans) { - g.CustomerId = customerId - g.require(getPaidResponseDataFieldCustomerId) +func (g *GetPaidResponseData) SetCustomerID(customerID Customeridtrans) { + g.CustomerID = customerID + g.require(getPaidResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPaidResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - g.MethodReferenceId = methodReferenceId - g.require(getPaidResponseDataFieldMethodReferenceId) +func (g *GetPaidResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + g.MethodReferenceID = methodReferenceID + g.require(getPaidResponseDataFieldMethodReferenceID) } func (g *GetPaidResponseData) UnmarshalJSON(data []byte) error { @@ -4422,13 +4422,13 @@ func (i *InvalidTransStatusErrorType) String() string { // General response for GetPaid endpoint supporting multiple payment methods var ( - payabliApiResponseGetPaidFieldResponseText = big.NewInt(1 << 0) - payabliApiResponseGetPaidFieldIsSuccess = big.NewInt(1 << 1) - payabliApiResponseGetPaidFieldPageIdentifier = big.NewInt(1 << 2) - payabliApiResponseGetPaidFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseGetPaidFieldResponseText = big.NewInt(1 << 0) + payabliAPIResponseGetPaidFieldIsSuccess = big.NewInt(1 << 1) + payabliAPIResponseGetPaidFieldPageIdentifier = big.NewInt(1 << 2) + payabliAPIResponseGetPaidFieldResponseData = big.NewInt(1 << 3) ) -type PayabliApiResponseGetPaid struct { +type PayabliAPIResponseGetPaid struct { ResponseText ResponseText `json:"responseText" url:"responseText"` IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` PageIdentifier *string `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` @@ -4441,42 +4441,42 @@ type PayabliApiResponseGetPaid struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseGetPaid) GetResponseText() ResponseText { +func (p *PayabliAPIResponseGetPaid) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseGetPaid) GetIsSuccess() IsSuccess { +func (p *PayabliAPIResponseGetPaid) GetIsSuccess() IsSuccess { if p == nil { return false } return p.IsSuccess } -func (p *PayabliApiResponseGetPaid) GetPageIdentifier() *string { +func (p *PayabliAPIResponseGetPaid) GetPageIdentifier() *string { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponseGetPaid) GetResponseData() *GetPaidResponseData { +func (p *PayabliAPIResponseGetPaid) GetResponseData() *GetPaidResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseGetPaid) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseGetPaid) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseGetPaid) require(field *big.Int) { +func (p *PayabliAPIResponseGetPaid) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -4485,39 +4485,39 @@ func (p *PayabliApiResponseGetPaid) require(field *big.Int) { // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGetPaid) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseGetPaid) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseGetPaidFieldResponseText) + p.require(payabliAPIResponseGetPaidFieldResponseText) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGetPaid) SetIsSuccess(isSuccess IsSuccess) { +func (p *PayabliAPIResponseGetPaid) SetIsSuccess(isSuccess IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseGetPaidFieldIsSuccess) + p.require(payabliAPIResponseGetPaidFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGetPaid) SetPageIdentifier(pageIdentifier *string) { +func (p *PayabliAPIResponseGetPaid) SetPageIdentifier(pageIdentifier *string) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponseGetPaidFieldPageIdentifier) + p.require(payabliAPIResponseGetPaidFieldPageIdentifier) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGetPaid) SetResponseData(responseData *GetPaidResponseData) { +func (p *PayabliAPIResponseGetPaid) SetResponseData(responseData *GetPaidResponseData) { p.ResponseData = responseData - p.require(payabliApiResponseGetPaidFieldResponseData) + p.require(payabliAPIResponseGetPaidFieldResponseData) } -func (p *PayabliApiResponseGetPaid) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseGetPaid +func (p *PayabliAPIResponseGetPaid) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseGetPaid var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseGetPaid(value) + *p = PayabliAPIResponseGetPaid(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -4527,8 +4527,8 @@ func (p *PayabliApiResponseGetPaid) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseGetPaid) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseGetPaid +func (p *PayabliAPIResponseGetPaid) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseGetPaid var marshaler = struct { embed }{ @@ -4538,7 +4538,7 @@ func (p *PayabliApiResponseGetPaid) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseGetPaid) String() string { +func (p *PayabliAPIResponseGetPaid) String() string { if p == nil { return "" } @@ -5363,10 +5363,10 @@ var ( responseDataRefundsFieldAuthCode = big.NewInt(1 << 0) responseDataRefundsFieldExpectedProcessingDateTime = big.NewInt(1 << 1) responseDataRefundsFieldAvsResponseText = big.NewInt(1 << 2) - responseDataRefundsFieldCustomerId = big.NewInt(1 << 3) + responseDataRefundsFieldCustomerID = big.NewInt(1 << 3) responseDataRefundsFieldCvvResponseText = big.NewInt(1 << 4) - responseDataRefundsFieldMethodReferenceId = big.NewInt(1 << 5) - responseDataRefundsFieldReferenceId = big.NewInt(1 << 6) + responseDataRefundsFieldMethodReferenceID = big.NewInt(1 << 5) + responseDataRefundsFieldReferenceID = big.NewInt(1 << 6) responseDataRefundsFieldResultCode = big.NewInt(1 << 7) responseDataRefundsFieldResultText = big.NewInt(1 << 8) ) @@ -5376,12 +5376,12 @@ type ResponseDataRefunds struct { ExpectedProcessingDateTime *ExpectedProcessingDateTime `json:"expectedProcessingDateTime,omitempty" url:"expectedProcessingDateTime,omitempty"` // This field isn't applicable to refund operations. AvsResponseText *AvsResponseText `json:"avsResponseText,omitempty" url:"avsResponseText,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` // This field isn't applicable to refund operations. CvvResponseText *CvvResponseText `json:"cvvResponseText,omitempty" url:"cvvResponseText,omitempty"` // This field isn't applicable to refund operations. - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` // Text description of the transaction result ResultText string `json:"resultText" url:"resultText"` @@ -5414,11 +5414,11 @@ func (r *ResponseDataRefunds) GetAvsResponseText() *AvsResponseText { return r.AvsResponseText } -func (r *ResponseDataRefunds) GetCustomerId() *CustomerId { +func (r *ResponseDataRefunds) GetCustomerID() *CustomerID { if r == nil { return nil } - return r.CustomerId + return r.CustomerID } func (r *ResponseDataRefunds) GetCvvResponseText() *CvvResponseText { @@ -5428,18 +5428,18 @@ func (r *ResponseDataRefunds) GetCvvResponseText() *CvvResponseText { return r.CvvResponseText } -func (r *ResponseDataRefunds) GetMethodReferenceId() *MethodReferenceId { +func (r *ResponseDataRefunds) GetMethodReferenceID() *MethodReferenceID { if r == nil { return nil } - return r.MethodReferenceId + return r.MethodReferenceID } -func (r *ResponseDataRefunds) GetReferenceId() Referenceidtrans { +func (r *ResponseDataRefunds) GetReferenceID() Referenceidtrans { if r == nil { return "" } - return r.ReferenceId + return r.ReferenceID } func (r *ResponseDataRefunds) GetResultCode() ResultCode { @@ -5491,11 +5491,11 @@ func (r *ResponseDataRefunds) SetAvsResponseText(avsResponseText *AvsResponseTex r.require(responseDataRefundsFieldAvsResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ResponseDataRefunds) SetCustomerId(customerId *CustomerId) { - r.CustomerId = customerId - r.require(responseDataRefundsFieldCustomerId) +func (r *ResponseDataRefunds) SetCustomerID(customerID *CustomerID) { + r.CustomerID = customerID + r.require(responseDataRefundsFieldCustomerID) } // SetCvvResponseText sets the CvvResponseText field and marks it as non-optional; @@ -5505,18 +5505,18 @@ func (r *ResponseDataRefunds) SetCvvResponseText(cvvResponseText *CvvResponseTex r.require(responseDataRefundsFieldCvvResponseText) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ResponseDataRefunds) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - r.MethodReferenceId = methodReferenceId - r.require(responseDataRefundsFieldMethodReferenceId) +func (r *ResponseDataRefunds) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + r.MethodReferenceID = methodReferenceID + r.require(responseDataRefundsFieldMethodReferenceID) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ResponseDataRefunds) SetReferenceId(referenceId Referenceidtrans) { - r.ReferenceId = referenceId - r.require(responseDataRefundsFieldReferenceId) +func (r *ResponseDataRefunds) SetReferenceID(referenceID Referenceidtrans) { + r.ReferenceID = referenceID + r.require(responseDataRefundsFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -5586,7 +5586,7 @@ func (r *ResponseDataRefunds) String() string { var ( reverseResponseFieldResponseCode = big.NewInt(1 << 0) reverseResponseFieldPageIdentifier = big.NewInt(1 << 1) - reverseResponseFieldRoomId = big.NewInt(1 << 2) + reverseResponseFieldRoomID = big.NewInt(1 << 2) reverseResponseFieldIsSuccess = big.NewInt(1 << 3) reverseResponseFieldResponseText = big.NewInt(1 << 4) reverseResponseFieldResponseData = big.NewInt(1 << 5) @@ -5595,7 +5595,7 @@ var ( type ReverseResponse struct { ResponseCode Responsecode `json:"responseCode" url:"responseCode"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId int `json:"roomId" url:"roomId"` + RoomID int `json:"roomId" url:"roomId"` IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *ResponseDataRefunds `json:"responseData" url:"responseData"` @@ -5621,11 +5621,11 @@ func (r *ReverseResponse) GetPageIdentifier() *PageIdentifier { return r.PageIdentifier } -func (r *ReverseResponse) GetRoomId() int { +func (r *ReverseResponse) GetRoomID() int { if r == nil { return 0 } - return r.RoomId + return r.RoomID } func (r *ReverseResponse) GetIsSuccess() IsSuccess { @@ -5677,11 +5677,11 @@ func (r *ReverseResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { r.require(reverseResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ReverseResponse) SetRoomId(roomId int) { - r.RoomId = roomId - r.require(reverseResponseFieldRoomId) +func (r *ReverseResponse) SetRoomID(roomID int) { + r.RoomID = roomID + r.require(reverseResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -5748,37 +5748,37 @@ func (r *ReverseResponse) String() string { } var ( - transRequestBodyFieldAccountId = big.NewInt(1 << 0) + transRequestBodyFieldAccountID = big.NewInt(1 << 0) transRequestBodyFieldCustomerData = big.NewInt(1 << 1) transRequestBodyFieldEntryPoint = big.NewInt(1 << 2) transRequestBodyFieldInvoiceData = big.NewInt(1 << 3) transRequestBodyFieldIpaddress = big.NewInt(1 << 4) transRequestBodyFieldOrderDescription = big.NewInt(1 << 5) - transRequestBodyFieldOrderId = big.NewInt(1 << 6) + transRequestBodyFieldOrderID = big.NewInt(1 << 6) transRequestBodyFieldPaymentDetails = big.NewInt(1 << 7) transRequestBodyFieldPaymentMethod = big.NewInt(1 << 8) transRequestBodyFieldSource = big.NewInt(1 << 9) transRequestBodyFieldSubdomain = big.NewInt(1 << 10) - transRequestBodyFieldSubscriptionId = big.NewInt(1 << 11) + transRequestBodyFieldSubscriptionID = big.NewInt(1 << 11) ) type TransRequestBody struct { - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` // Object describing the Customer/Payor. Which fields are required depends on the paypoint's custom identifier settings. CustomerData *PayorDataRequest `json:"customerData,omitempty" url:"customerData,omitempty"` EntryPoint *Entrypointfield `json:"entryPoint,omitempty" url:"entryPoint,omitempty"` // Object describing an Invoice linked to the transaction. InvoiceData *BillData `json:"invoiceData,omitempty" url:"invoiceData,omitempty"` - Ipaddress *IpAddress `json:"ipaddress,omitempty" url:"ipaddress,omitempty"` + Ipaddress *IPAddress `json:"ipaddress,omitempty" url:"ipaddress,omitempty"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"orderDescription,omitempty"` - OrderId *OrderId `json:"orderId,omitempty" url:"orderId,omitempty"` + OrderID *OrderID `json:"orderId,omitempty" url:"orderId,omitempty"` // Object describing details of the payment. Required. PaymentDetails *PaymentDetail `json:"paymentDetails" url:"paymentDetails"` // Information about the payment method for the transaction. Required and recommended fields for each payment method type are described in each schema below. PaymentMethod *PaymentMethod `json:"paymentMethod" url:"paymentMethod"` Source *Source `json:"source,omitempty" url:"source,omitempty"` Subdomain *Subdomain `json:"subdomain,omitempty" url:"subdomain,omitempty"` - SubscriptionId *Subscriptionid `json:"subscriptionId,omitempty" url:"subscriptionId,omitempty"` + SubscriptionID *Subscriptionid `json:"subscriptionId,omitempty" url:"subscriptionId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -5787,11 +5787,11 @@ type TransRequestBody struct { rawJSON json.RawMessage } -func (t *TransRequestBody) GetAccountId() *AccountId { +func (t *TransRequestBody) GetAccountID() *AccountID { if t == nil { return nil } - return t.AccountId + return t.AccountID } func (t *TransRequestBody) GetCustomerData() *PayorDataRequest { @@ -5815,7 +5815,7 @@ func (t *TransRequestBody) GetInvoiceData() *BillData { return t.InvoiceData } -func (t *TransRequestBody) GetIpaddress() *IpAddress { +func (t *TransRequestBody) GetIpaddress() *IPAddress { if t == nil { return nil } @@ -5829,11 +5829,11 @@ func (t *TransRequestBody) GetOrderDescription() *Orderdescription { return t.OrderDescription } -func (t *TransRequestBody) GetOrderId() *OrderId { +func (t *TransRequestBody) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } func (t *TransRequestBody) GetPaymentDetails() *PaymentDetail { @@ -5864,11 +5864,11 @@ func (t *TransRequestBody) GetSubdomain() *Subdomain { return t.Subdomain } -func (t *TransRequestBody) GetSubscriptionId() *Subscriptionid { +func (t *TransRequestBody) GetSubscriptionID() *Subscriptionid { if t == nil { return nil } - return t.SubscriptionId + return t.SubscriptionID } func (t *TransRequestBody) GetExtraProperties() map[string]interface{} { @@ -5885,11 +5885,11 @@ func (t *TransRequestBody) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransRequestBody) SetAccountId(accountId *AccountId) { - t.AccountId = accountId - t.require(transRequestBodyFieldAccountId) +func (t *TransRequestBody) SetAccountID(accountID *AccountID) { + t.AccountID = accountID + t.require(transRequestBodyFieldAccountID) } // SetCustomerData sets the CustomerData field and marks it as non-optional; @@ -5915,7 +5915,7 @@ func (t *TransRequestBody) SetInvoiceData(invoiceData *BillData) { // SetIpaddress sets the Ipaddress field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransRequestBody) SetIpaddress(ipaddress *IpAddress) { +func (t *TransRequestBody) SetIpaddress(ipaddress *IPAddress) { t.Ipaddress = ipaddress t.require(transRequestBodyFieldIpaddress) } @@ -5927,11 +5927,11 @@ func (t *TransRequestBody) SetOrderDescription(orderDescription *Orderdescriptio t.require(transRequestBodyFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransRequestBody) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transRequestBodyFieldOrderId) +func (t *TransRequestBody) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transRequestBodyFieldOrderID) } // SetPaymentDetails sets the PaymentDetails field and marks it as non-optional; @@ -5962,11 +5962,11 @@ func (t *TransRequestBody) SetSubdomain(subdomain *Subdomain) { t.require(transRequestBodyFieldSubdomain) } -// SetSubscriptionId sets the SubscriptionId field and marks it as non-optional; +// SetSubscriptionID sets the SubscriptionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransRequestBody) SetSubscriptionId(subscriptionId *Subscriptionid) { - t.SubscriptionId = subscriptionId - t.require(transRequestBodyFieldSubscriptionId) +func (t *TransRequestBody) SetSubscriptionID(subscriptionID *Subscriptionid) { + t.SubscriptionID = subscriptionID + t.require(transRequestBodyFieldSubscriptionID) } func (t *TransRequestBody) UnmarshalJSON(data []byte) error { @@ -6032,7 +6032,7 @@ var ( transactionDetailCustomerFieldShippingState = big.NewInt(1 << 16) transactionDetailCustomerFieldShippingZip = big.NewInt(1 << 17) transactionDetailCustomerFieldShippingCountry = big.NewInt(1 << 18) - transactionDetailCustomerFieldCustomerId = big.NewInt(1 << 19) + transactionDetailCustomerFieldCustomerID = big.NewInt(1 << 19) transactionDetailCustomerFieldCustomerStatus = big.NewInt(1 << 20) transactionDetailCustomerFieldAdditionalData = big.NewInt(1 << 21) ) @@ -6057,7 +6057,7 @@ type TransactionDetailCustomer struct { ShippingState Shippingstate `json:"shippingState" url:"shippingState"` ShippingZip Shippingzip `json:"shippingZip" url:"shippingZip"` ShippingCountry Shippingcountry `json:"shippingCountry" url:"shippingCountry"` - CustomerId CustomerId `json:"customerId" url:"customerId"` + CustomerID CustomerID `json:"customerId" url:"customerId"` CustomerStatus CustomerStatus `json:"customerStatus" url:"customerStatus"` AdditionalData *AdditionalDataMap `json:"additionalData,omitempty" url:"additionalData,omitempty"` @@ -6201,11 +6201,11 @@ func (t *TransactionDetailCustomer) GetShippingCountry() Shippingcountry { return t.ShippingCountry } -func (t *TransactionDetailCustomer) GetCustomerId() CustomerId { +func (t *TransactionDetailCustomer) GetCustomerID() CustomerID { if t == nil { return 0 } - return t.CustomerId + return t.CustomerID } func (t *TransactionDetailCustomer) GetCustomerStatus() CustomerStatus { @@ -6369,11 +6369,11 @@ func (t *TransactionDetailCustomer) SetShippingCountry(shippingCountry Shippingc t.require(transactionDetailCustomerFieldShippingCountry) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailCustomer) SetCustomerId(customerId CustomerId) { - t.CustomerId = customerId - t.require(transactionDetailCustomerFieldCustomerId) +func (t *TransactionDetailCustomer) SetCustomerID(customerID CustomerID) { + t.CustomerID = customerID + t.require(transactionDetailCustomerFieldCustomerID) } // SetCustomerStatus sets the CustomerStatus field and marks it as non-optional; @@ -7152,12 +7152,12 @@ var ( transactionDetailPaymentDataFieldAccountType = big.NewInt(1 << 1) transactionDetailPaymentDataFieldAccountExp = big.NewInt(1 << 2) transactionDetailPaymentDataFieldHolderName = big.NewInt(1 << 3) - transactionDetailPaymentDataFieldStoredId = big.NewInt(1 << 4) + transactionDetailPaymentDataFieldStoredID = big.NewInt(1 << 4) transactionDetailPaymentDataFieldInitiator = big.NewInt(1 << 5) transactionDetailPaymentDataFieldStoredMethodUsageType = big.NewInt(1 << 6) transactionDetailPaymentDataFieldSequence = big.NewInt(1 << 7) transactionDetailPaymentDataFieldOrderDescription = big.NewInt(1 << 8) - transactionDetailPaymentDataFieldAccountId = big.NewInt(1 << 9) + transactionDetailPaymentDataFieldAccountID = big.NewInt(1 << 9) transactionDetailPaymentDataFieldSignatureData = big.NewInt(1 << 10) transactionDetailPaymentDataFieldBinData = big.NewInt(1 << 11) transactionDetailPaymentDataFieldPaymentDetails = big.NewInt(1 << 12) @@ -7168,12 +7168,12 @@ type TransactionDetailPaymentData struct { AccountType Accounttype `json:"accountType" url:"accountType"` AccountExp *Accountexp `json:"accountExp,omitempty" url:"accountExp,omitempty"` HolderName Holdername `json:"holderName" url:"holderName"` - StoredId *Storedmethodid `json:"storedId,omitempty" url:"storedId,omitempty"` + StoredID *Storedmethodid `json:"storedId,omitempty" url:"storedId,omitempty"` Initiator *Initiator `json:"initiator,omitempty" url:"initiator,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"storedMethodUsageType,omitempty" url:"storedMethodUsageType,omitempty"` Sequence *Sequence `json:"sequence,omitempty" url:"sequence,omitempty"` OrderDescription Orderdescription `json:"orderDescription" url:"orderDescription"` - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` SignatureData *Signaturedata `json:"signatureData,omitempty" url:"signatureData,omitempty"` BinData *BinData `json:"binData,omitempty" url:"binData,omitempty"` PaymentDetails *TransactionDetailPaymentDetails `json:"paymentDetails" url:"paymentDetails"` @@ -7213,11 +7213,11 @@ func (t *TransactionDetailPaymentData) GetHolderName() Holdername { return t.HolderName } -func (t *TransactionDetailPaymentData) GetStoredId() *Storedmethodid { +func (t *TransactionDetailPaymentData) GetStoredID() *Storedmethodid { if t == nil { return nil } - return t.StoredId + return t.StoredID } func (t *TransactionDetailPaymentData) GetInitiator() *Initiator { @@ -7248,11 +7248,11 @@ func (t *TransactionDetailPaymentData) GetOrderDescription() Orderdescription { return t.OrderDescription } -func (t *TransactionDetailPaymentData) GetAccountId() *AccountId { +func (t *TransactionDetailPaymentData) GetAccountID() *AccountID { if t == nil { return nil } - return t.AccountId + return t.AccountID } func (t *TransactionDetailPaymentData) GetSignatureData() *Signaturedata { @@ -7318,11 +7318,11 @@ func (t *TransactionDetailPaymentData) SetHolderName(holderName Holdername) { t.require(transactionDetailPaymentDataFieldHolderName) } -// SetStoredId sets the StoredId field and marks it as non-optional; +// SetStoredID sets the StoredID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentData) SetStoredId(storedId *Storedmethodid) { - t.StoredId = storedId - t.require(transactionDetailPaymentDataFieldStoredId) +func (t *TransactionDetailPaymentData) SetStoredID(storedID *Storedmethodid) { + t.StoredID = storedID + t.require(transactionDetailPaymentDataFieldStoredID) } // SetInitiator sets the Initiator field and marks it as non-optional; @@ -7353,11 +7353,11 @@ func (t *TransactionDetailPaymentData) SetOrderDescription(orderDescription Orde t.require(transactionDetailPaymentDataFieldOrderDescription) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentData) SetAccountId(accountId *AccountId) { - t.AccountId = accountId - t.require(transactionDetailPaymentDataFieldAccountId) +func (t *TransactionDetailPaymentData) SetAccountID(accountID *AccountID) { + t.AccountID = accountID + t.require(transactionDetailPaymentDataFieldAccountID) } // SetSignatureData sets the SignatureData field and marks it as non-optional; @@ -7429,15 +7429,15 @@ var ( transactionDetailPaymentDetailsFieldServiceFee = big.NewInt(1 << 1) transactionDetailPaymentDetailsFieldCheckNumber = big.NewInt(1 << 2) transactionDetailPaymentDetailsFieldCheckImage = big.NewInt(1 << 3) - transactionDetailPaymentDetailsFieldCheckUniqueId = big.NewInt(1 << 4) + transactionDetailPaymentDetailsFieldCheckUniqueID = big.NewInt(1 << 4) transactionDetailPaymentDetailsFieldCurrency = big.NewInt(1 << 5) transactionDetailPaymentDetailsFieldOrderDescription = big.NewInt(1 << 6) - transactionDetailPaymentDetailsFieldOrderId = big.NewInt(1 << 7) - transactionDetailPaymentDetailsFieldOrderIdAlternative = big.NewInt(1 << 8) + transactionDetailPaymentDetailsFieldOrderID = big.NewInt(1 << 7) + transactionDetailPaymentDetailsFieldOrderIDAlternative = big.NewInt(1 << 8) transactionDetailPaymentDetailsFieldPaymentDescription = big.NewInt(1 << 9) transactionDetailPaymentDetailsFieldGroupNumber = big.NewInt(1 << 10) transactionDetailPaymentDetailsFieldSource = big.NewInt(1 << 11) - transactionDetailPaymentDetailsFieldPayabliTransId = big.NewInt(1 << 12) + transactionDetailPaymentDetailsFieldPayabliTransID = big.NewInt(1 << 12) transactionDetailPaymentDetailsFieldUnbundled = big.NewInt(1 << 13) transactionDetailPaymentDetailsFieldCategories = big.NewInt(1 << 14) transactionDetailPaymentDetailsFieldSplitFunding = big.NewInt(1 << 15) @@ -7448,15 +7448,15 @@ type TransactionDetailPaymentDetails struct { ServiceFee float64 `json:"serviceFee" url:"serviceFee"` CheckNumber *string `json:"checkNumber,omitempty" url:"checkNumber,omitempty"` CheckImage any `json:"checkImage,omitempty" url:"checkImage,omitempty"` - CheckUniqueId string `json:"checkUniqueId" url:"checkUniqueId"` + CheckUniqueID string `json:"checkUniqueId" url:"checkUniqueId"` Currency string `json:"currency" url:"currency"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"orderDescription,omitempty"` - OrderId *OrderId `json:"orderId,omitempty" url:"orderId,omitempty"` - OrderIdAlternative *string `json:"orderIdAlternative,omitempty" url:"orderIdAlternative,omitempty"` + OrderID *OrderID `json:"orderId,omitempty" url:"orderId,omitempty"` + OrderIDAlternative *string `json:"orderIdAlternative,omitempty" url:"orderIdAlternative,omitempty"` PaymentDescription *string `json:"paymentDescription,omitempty" url:"paymentDescription,omitempty"` GroupNumber *string `json:"groupNumber,omitempty" url:"groupNumber,omitempty"` Source *Source `json:"source,omitempty" url:"source,omitempty"` - PayabliTransId *string `json:"payabliTransId,omitempty" url:"payabliTransId,omitempty"` + PayabliTransID *string `json:"payabliTransId,omitempty" url:"payabliTransId,omitempty"` Unbundled any `json:"unbundled,omitempty" url:"unbundled,omitempty"` Categories []any `json:"categories" url:"categories"` SplitFunding []any `json:"splitFunding" url:"splitFunding"` @@ -7496,11 +7496,11 @@ func (t *TransactionDetailPaymentDetails) GetCheckImage() any { return t.CheckImage } -func (t *TransactionDetailPaymentDetails) GetCheckUniqueId() string { +func (t *TransactionDetailPaymentDetails) GetCheckUniqueID() string { if t == nil { return "" } - return t.CheckUniqueId + return t.CheckUniqueID } func (t *TransactionDetailPaymentDetails) GetCurrency() string { @@ -7517,18 +7517,18 @@ func (t *TransactionDetailPaymentDetails) GetOrderDescription() *Orderdescriptio return t.OrderDescription } -func (t *TransactionDetailPaymentDetails) GetOrderId() *OrderId { +func (t *TransactionDetailPaymentDetails) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } -func (t *TransactionDetailPaymentDetails) GetOrderIdAlternative() *string { +func (t *TransactionDetailPaymentDetails) GetOrderIDAlternative() *string { if t == nil { return nil } - return t.OrderIdAlternative + return t.OrderIDAlternative } func (t *TransactionDetailPaymentDetails) GetPaymentDescription() *string { @@ -7552,11 +7552,11 @@ func (t *TransactionDetailPaymentDetails) GetSource() *Source { return t.Source } -func (t *TransactionDetailPaymentDetails) GetPayabliTransId() *string { +func (t *TransactionDetailPaymentDetails) GetPayabliTransID() *string { if t == nil { return nil } - return t.PayabliTransId + return t.PayabliTransID } func (t *TransactionDetailPaymentDetails) GetUnbundled() any { @@ -7622,11 +7622,11 @@ func (t *TransactionDetailPaymentDetails) SetCheckImage(checkImage any) { t.require(transactionDetailPaymentDetailsFieldCheckImage) } -// SetCheckUniqueId sets the CheckUniqueId field and marks it as non-optional; +// SetCheckUniqueID sets the CheckUniqueID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentDetails) SetCheckUniqueId(checkUniqueId string) { - t.CheckUniqueId = checkUniqueId - t.require(transactionDetailPaymentDetailsFieldCheckUniqueId) +func (t *TransactionDetailPaymentDetails) SetCheckUniqueID(checkUniqueID string) { + t.CheckUniqueID = checkUniqueID + t.require(transactionDetailPaymentDetailsFieldCheckUniqueID) } // SetCurrency sets the Currency field and marks it as non-optional; @@ -7643,18 +7643,18 @@ func (t *TransactionDetailPaymentDetails) SetOrderDescription(orderDescription * t.require(transactionDetailPaymentDetailsFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentDetails) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transactionDetailPaymentDetailsFieldOrderId) +func (t *TransactionDetailPaymentDetails) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transactionDetailPaymentDetailsFieldOrderID) } -// SetOrderIdAlternative sets the OrderIdAlternative field and marks it as non-optional; +// SetOrderIDAlternative sets the OrderIDAlternative field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentDetails) SetOrderIdAlternative(orderIdAlternative *string) { - t.OrderIdAlternative = orderIdAlternative - t.require(transactionDetailPaymentDetailsFieldOrderIdAlternative) +func (t *TransactionDetailPaymentDetails) SetOrderIDAlternative(orderIDAlternative *string) { + t.OrderIDAlternative = orderIDAlternative + t.require(transactionDetailPaymentDetailsFieldOrderIDAlternative) } // SetPaymentDescription sets the PaymentDescription field and marks it as non-optional; @@ -7678,11 +7678,11 @@ func (t *TransactionDetailPaymentDetails) SetSource(source *Source) { t.require(transactionDetailPaymentDetailsFieldSource) } -// SetPayabliTransId sets the PayabliTransId field and marks it as non-optional; +// SetPayabliTransID sets the PayabliTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailPaymentDetails) SetPayabliTransId(payabliTransId *string) { - t.PayabliTransId = payabliTransId - t.require(transactionDetailPaymentDetailsFieldPayabliTransId) +func (t *TransactionDetailPaymentDetails) SetPayabliTransID(payabliTransID *string) { + t.PayabliTransID = payabliTransID + t.require(transactionDetailPaymentDetailsFieldPayabliTransID) } // SetUnbundled sets the Unbundled field and marks it as non-optional; @@ -7754,18 +7754,18 @@ var ( transactionDetailRecordFieldPaypointDbaname = big.NewInt(1 << 1) transactionDetailRecordFieldPaypointLegalname = big.NewInt(1 << 2) transactionDetailRecordFieldPaypointEntryname = big.NewInt(1 << 3) - transactionDetailRecordFieldPaymentTransId = big.NewInt(1 << 4) + transactionDetailRecordFieldPaymentTransID = big.NewInt(1 << 4) transactionDetailRecordFieldConnectorName = big.NewInt(1 << 5) transactionDetailRecordFieldExternalProcessorInformation = big.NewInt(1 << 6) - transactionDetailRecordFieldGatewayTransId = big.NewInt(1 << 7) - transactionDetailRecordFieldOrderId = big.NewInt(1 << 8) + transactionDetailRecordFieldGatewayTransID = big.NewInt(1 << 7) + transactionDetailRecordFieldOrderID = big.NewInt(1 << 8) transactionDetailRecordFieldMethod = big.NewInt(1 << 9) transactionDetailRecordFieldBatchNumber = big.NewInt(1 << 10) transactionDetailRecordFieldBatchAmount = big.NewInt(1 << 11) - transactionDetailRecordFieldPayorId = big.NewInt(1 << 12) + transactionDetailRecordFieldPayorID = big.NewInt(1 << 12) transactionDetailRecordFieldPaymentData = big.NewInt(1 << 13) transactionDetailRecordFieldTransStatus = big.NewInt(1 << 14) - transactionDetailRecordFieldPaypointId = big.NewInt(1 << 15) + transactionDetailRecordFieldPaypointID = big.NewInt(1 << 15) transactionDetailRecordFieldTotalAmount = big.NewInt(1 << 16) transactionDetailRecordFieldNetAmount = big.NewInt(1 << 17) transactionDetailRecordFieldFeeAmount = big.NewInt(1 << 18) @@ -7774,15 +7774,15 @@ var ( transactionDetailRecordFieldResponseData = big.NewInt(1 << 21) transactionDetailRecordFieldSource = big.NewInt(1 << 22) transactionDetailRecordFieldScheduleReference = big.NewInt(1 << 23) - transactionDetailRecordFieldOrgId = big.NewInt(1 << 24) - transactionDetailRecordFieldRefundId = big.NewInt(1 << 25) - transactionDetailRecordFieldReturnedId = big.NewInt(1 << 26) - transactionDetailRecordFieldChargebackId = big.NewInt(1 << 27) - transactionDetailRecordFieldRetrievalId = big.NewInt(1 << 28) + transactionDetailRecordFieldOrgID = big.NewInt(1 << 24) + transactionDetailRecordFieldRefundID = big.NewInt(1 << 25) + transactionDetailRecordFieldReturnedID = big.NewInt(1 << 26) + transactionDetailRecordFieldChargebackID = big.NewInt(1 << 27) + transactionDetailRecordFieldRetrievalID = big.NewInt(1 << 28) transactionDetailRecordFieldTransAdditionalData = big.NewInt(1 << 29) transactionDetailRecordFieldInvoiceData = big.NewInt(1 << 30) - transactionDetailRecordFieldEntrypageId = big.NewInt(1 << 31) - transactionDetailRecordFieldExternalPaypointId = big.NewInt(1 << 32) + transactionDetailRecordFieldEntrypageID = big.NewInt(1 << 31) + transactionDetailRecordFieldExternalPaypointID = big.NewInt(1 << 32) transactionDetailRecordFieldIsValidatedAch = big.NewInt(1 << 33) transactionDetailRecordFieldTransactionTime = big.NewInt(1 << 34) transactionDetailRecordFieldCustomer = big.NewInt(1 << 35) @@ -7796,10 +7796,10 @@ var ( transactionDetailRecordFieldRiskReason = big.NewInt(1 << 43) transactionDetailRecordFieldRiskAction = big.NewInt(1 << 44) transactionDetailRecordFieldRiskActionCode = big.NewInt(1 << 45) - transactionDetailRecordFieldDeviceId = big.NewInt(1 << 46) + transactionDetailRecordFieldDeviceID = big.NewInt(1 << 46) transactionDetailRecordFieldAchSecCode = big.NewInt(1 << 47) transactionDetailRecordFieldAchHolderType = big.NewInt(1 << 48) - transactionDetailRecordFieldIpAddress = big.NewInt(1 << 49) + transactionDetailRecordFieldIPAddress = big.NewInt(1 << 49) transactionDetailRecordFieldIsSameDayAch = big.NewInt(1 << 50) transactionDetailRecordFieldWalletType = big.NewInt(1 << 51) ) @@ -7809,18 +7809,18 @@ type TransactionDetailRecord struct { PaypointDbaname Dbaname `json:"paypointDbaname" url:"paypointDbaname"` PaypointLegalname Legalname `json:"paypointLegalname" url:"paypointLegalname"` PaypointEntryname Entrypointfield `json:"paypointEntryname" url:"paypointEntryname"` - PaymentTransId string `json:"paymentTransId" url:"paymentTransId"` + PaymentTransID string `json:"paymentTransId" url:"paymentTransId"` ConnectorName string `json:"connectorName" url:"connectorName"` ExternalProcessorInformation ExternalProcessorInformation `json:"externalProcessorInformation" url:"externalProcessorInformation"` - GatewayTransId string `json:"gatewayTransId" url:"gatewayTransId"` - OrderId *OrderId `json:"orderId,omitempty" url:"orderId,omitempty"` + GatewayTransID string `json:"gatewayTransId" url:"gatewayTransId"` + OrderID *OrderID `json:"orderId,omitempty" url:"orderId,omitempty"` Method TransactionDetailRecordMethod `json:"method" url:"method"` BatchNumber BatchNumber `json:"batchNumber" url:"batchNumber"` BatchAmount float64 `json:"batchAmount" url:"batchAmount"` - PayorId PayorId `json:"payorId" url:"payorId"` + PayorID PayorID `json:"payorId" url:"payorId"` PaymentData *TransactionDetailPaymentData `json:"paymentData" url:"paymentData"` TransStatus TransStatus `json:"transStatus" url:"transStatus"` - PaypointId PaypointId `json:"paypointId" url:"paypointId"` + PaypointID PaypointID `json:"paypointId" url:"paypointId"` TotalAmount float64 `json:"totalAmount" url:"totalAmount"` NetAmount float64 `json:"netAmount" url:"netAmount"` FeeAmount FeeAmount `json:"feeAmount" url:"feeAmount"` @@ -7829,15 +7829,15 @@ type TransactionDetailRecord struct { ResponseData *TransactionDetailResponseData `json:"responseData" url:"responseData"` Source Source `json:"source" url:"source"` ScheduleReference int64 `json:"scheduleReference" url:"scheduleReference"` - OrgId Orgid `json:"orgId" url:"orgId"` - RefundId RefundId `json:"refundId" url:"refundId"` - ReturnedId ReturnedId `json:"returnedId" url:"returnedId"` - ChargebackId ChargebackId `json:"chargebackId" url:"chargebackId"` - RetrievalId RetrievalId `json:"retrievalId" url:"retrievalId"` + OrgID Orgid `json:"orgId" url:"orgId"` + RefundID RefundID `json:"refundId" url:"refundId"` + ReturnedID ReturnedID `json:"returnedId" url:"returnedId"` + ChargebackID ChargebackID `json:"chargebackId" url:"chargebackId"` + RetrievalID RetrievalID `json:"retrievalId" url:"retrievalId"` TransAdditionalData any `json:"transAdditionalData,omitempty" url:"transAdditionalData,omitempty"` InvoiceData *TransactionDetailInvoiceData `json:"invoiceData" url:"invoiceData"` - EntrypageId EntrypageId `json:"entrypageId" url:"entrypageId"` - ExternalPaypointId ExternalPaypointId `json:"externalPaypointID" url:"externalPaypointID"` + EntrypageID EntrypageID `json:"entrypageId" url:"entrypageId"` + ExternalPaypointID ExternalPaypointID `json:"externalPaypointID" url:"externalPaypointID"` IsValidatedAch bool `json:"isValidatedACH" url:"isValidatedACH"` TransactionTime string `json:"transactionTime" url:"transactionTime"` Customer *TransactionDetailCustomer `json:"customer" url:"customer"` @@ -7851,10 +7851,10 @@ type TransactionDetailRecord struct { RiskReason RiskReason `json:"riskReason" url:"riskReason"` RiskAction RiskAction `json:"riskAction" url:"riskAction"` RiskActionCode *RiskActionCode `json:"riskActionCode,omitempty" url:"riskActionCode,omitempty"` - DeviceId Device `json:"deviceId" url:"deviceId"` + DeviceID Device `json:"deviceId" url:"deviceId"` AchSecCode AchSecCode `json:"achSecCode" url:"achSecCode"` AchHolderType AchHolderType `json:"achHolderType" url:"achHolderType"` - IpAddress IpAddress `json:"ipAddress" url:"ipAddress"` + IPAddress IPAddress `json:"ipAddress" url:"ipAddress"` IsSameDayAch bool `json:"isSameDayACH" url:"isSameDayACH"` WalletType *string `json:"walletType,omitempty" url:"walletType,omitempty"` @@ -7893,11 +7893,11 @@ func (t *TransactionDetailRecord) GetPaypointEntryname() Entrypointfield { return t.PaypointEntryname } -func (t *TransactionDetailRecord) GetPaymentTransId() string { +func (t *TransactionDetailRecord) GetPaymentTransID() string { if t == nil { return "" } - return t.PaymentTransId + return t.PaymentTransID } func (t *TransactionDetailRecord) GetConnectorName() string { @@ -7914,18 +7914,18 @@ func (t *TransactionDetailRecord) GetExternalProcessorInformation() ExternalProc return t.ExternalProcessorInformation } -func (t *TransactionDetailRecord) GetGatewayTransId() string { +func (t *TransactionDetailRecord) GetGatewayTransID() string { if t == nil { return "" } - return t.GatewayTransId + return t.GatewayTransID } -func (t *TransactionDetailRecord) GetOrderId() *OrderId { +func (t *TransactionDetailRecord) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } func (t *TransactionDetailRecord) GetMethod() TransactionDetailRecordMethod { @@ -7949,11 +7949,11 @@ func (t *TransactionDetailRecord) GetBatchAmount() float64 { return t.BatchAmount } -func (t *TransactionDetailRecord) GetPayorId() PayorId { +func (t *TransactionDetailRecord) GetPayorID() PayorID { if t == nil { return 0 } - return t.PayorId + return t.PayorID } func (t *TransactionDetailRecord) GetPaymentData() *TransactionDetailPaymentData { @@ -7970,11 +7970,11 @@ func (t *TransactionDetailRecord) GetTransStatus() TransStatus { return t.TransStatus } -func (t *TransactionDetailRecord) GetPaypointId() PaypointId { +func (t *TransactionDetailRecord) GetPaypointID() PaypointID { if t == nil { return 0 } - return t.PaypointId + return t.PaypointID } func (t *TransactionDetailRecord) GetTotalAmount() float64 { @@ -8033,39 +8033,39 @@ func (t *TransactionDetailRecord) GetScheduleReference() int64 { return t.ScheduleReference } -func (t *TransactionDetailRecord) GetOrgId() Orgid { +func (t *TransactionDetailRecord) GetOrgID() Orgid { if t == nil { return 0 } - return t.OrgId + return t.OrgID } -func (t *TransactionDetailRecord) GetRefundId() RefundId { +func (t *TransactionDetailRecord) GetRefundID() RefundID { if t == nil { return 0 } - return t.RefundId + return t.RefundID } -func (t *TransactionDetailRecord) GetReturnedId() ReturnedId { +func (t *TransactionDetailRecord) GetReturnedID() ReturnedID { if t == nil { return 0 } - return t.ReturnedId + return t.ReturnedID } -func (t *TransactionDetailRecord) GetChargebackId() ChargebackId { +func (t *TransactionDetailRecord) GetChargebackID() ChargebackID { if t == nil { return 0 } - return t.ChargebackId + return t.ChargebackID } -func (t *TransactionDetailRecord) GetRetrievalId() RetrievalId { +func (t *TransactionDetailRecord) GetRetrievalID() RetrievalID { if t == nil { return 0 } - return t.RetrievalId + return t.RetrievalID } func (t *TransactionDetailRecord) GetTransAdditionalData() any { @@ -8082,18 +8082,18 @@ func (t *TransactionDetailRecord) GetInvoiceData() *TransactionDetailInvoiceData return t.InvoiceData } -func (t *TransactionDetailRecord) GetEntrypageId() EntrypageId { +func (t *TransactionDetailRecord) GetEntrypageID() EntrypageID { if t == nil { return 0 } - return t.EntrypageId + return t.EntrypageID } -func (t *TransactionDetailRecord) GetExternalPaypointId() ExternalPaypointId { +func (t *TransactionDetailRecord) GetExternalPaypointID() ExternalPaypointID { if t == nil { return "" } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransactionDetailRecord) GetIsValidatedAch() bool { @@ -8187,11 +8187,11 @@ func (t *TransactionDetailRecord) GetRiskActionCode() *RiskActionCode { return t.RiskActionCode } -func (t *TransactionDetailRecord) GetDeviceId() Device { +func (t *TransactionDetailRecord) GetDeviceID() Device { if t == nil { return "" } - return t.DeviceId + return t.DeviceID } func (t *TransactionDetailRecord) GetAchSecCode() AchSecCode { @@ -8208,11 +8208,11 @@ func (t *TransactionDetailRecord) GetAchHolderType() AchHolderType { return t.AchHolderType } -func (t *TransactionDetailRecord) GetIpAddress() IpAddress { +func (t *TransactionDetailRecord) GetIPAddress() IPAddress { if t == nil { return "" } - return t.IpAddress + return t.IPAddress } func (t *TransactionDetailRecord) GetIsSameDayAch() bool { @@ -8271,11 +8271,11 @@ func (t *TransactionDetailRecord) SetPaypointEntryname(paypointEntryname Entrypo t.require(transactionDetailRecordFieldPaypointEntryname) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetPaymentTransId(paymentTransId string) { - t.PaymentTransId = paymentTransId - t.require(transactionDetailRecordFieldPaymentTransId) +func (t *TransactionDetailRecord) SetPaymentTransID(paymentTransID string) { + t.PaymentTransID = paymentTransID + t.require(transactionDetailRecordFieldPaymentTransID) } // SetConnectorName sets the ConnectorName field and marks it as non-optional; @@ -8292,18 +8292,18 @@ func (t *TransactionDetailRecord) SetExternalProcessorInformation(externalProces t.require(transactionDetailRecordFieldExternalProcessorInformation) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetGatewayTransId(gatewayTransId string) { - t.GatewayTransId = gatewayTransId - t.require(transactionDetailRecordFieldGatewayTransId) +func (t *TransactionDetailRecord) SetGatewayTransID(gatewayTransID string) { + t.GatewayTransID = gatewayTransID + t.require(transactionDetailRecordFieldGatewayTransID) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transactionDetailRecordFieldOrderId) +func (t *TransactionDetailRecord) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transactionDetailRecordFieldOrderID) } // SetMethod sets the Method field and marks it as non-optional; @@ -8327,11 +8327,11 @@ func (t *TransactionDetailRecord) SetBatchAmount(batchAmount float64) { t.require(transactionDetailRecordFieldBatchAmount) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetPayorId(payorId PayorId) { - t.PayorId = payorId - t.require(transactionDetailRecordFieldPayorId) +func (t *TransactionDetailRecord) SetPayorID(payorID PayorID) { + t.PayorID = payorID + t.require(transactionDetailRecordFieldPayorID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -8348,11 +8348,11 @@ func (t *TransactionDetailRecord) SetTransStatus(transStatus TransStatus) { t.require(transactionDetailRecordFieldTransStatus) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetPaypointId(paypointId PaypointId) { - t.PaypointId = paypointId - t.require(transactionDetailRecordFieldPaypointId) +func (t *TransactionDetailRecord) SetPaypointID(paypointID PaypointID) { + t.PaypointID = paypointID + t.require(transactionDetailRecordFieldPaypointID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -8411,39 +8411,39 @@ func (t *TransactionDetailRecord) SetScheduleReference(scheduleReference int64) t.require(transactionDetailRecordFieldScheduleReference) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetOrgId(orgId Orgid) { - t.OrgId = orgId - t.require(transactionDetailRecordFieldOrgId) +func (t *TransactionDetailRecord) SetOrgID(orgID Orgid) { + t.OrgID = orgID + t.require(transactionDetailRecordFieldOrgID) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetRefundId(refundId RefundId) { - t.RefundId = refundId - t.require(transactionDetailRecordFieldRefundId) +func (t *TransactionDetailRecord) SetRefundID(refundID RefundID) { + t.RefundID = refundID + t.require(transactionDetailRecordFieldRefundID) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetReturnedId(returnedId ReturnedId) { - t.ReturnedId = returnedId - t.require(transactionDetailRecordFieldReturnedId) +func (t *TransactionDetailRecord) SetReturnedID(returnedID ReturnedID) { + t.ReturnedID = returnedID + t.require(transactionDetailRecordFieldReturnedID) } -// SetChargebackId sets the ChargebackId field and marks it as non-optional; +// SetChargebackID sets the ChargebackID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetChargebackId(chargebackId ChargebackId) { - t.ChargebackId = chargebackId - t.require(transactionDetailRecordFieldChargebackId) +func (t *TransactionDetailRecord) SetChargebackID(chargebackID ChargebackID) { + t.ChargebackID = chargebackID + t.require(transactionDetailRecordFieldChargebackID) } -// SetRetrievalId sets the RetrievalId field and marks it as non-optional; +// SetRetrievalID sets the RetrievalID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetRetrievalId(retrievalId RetrievalId) { - t.RetrievalId = retrievalId - t.require(transactionDetailRecordFieldRetrievalId) +func (t *TransactionDetailRecord) SetRetrievalID(retrievalID RetrievalID) { + t.RetrievalID = retrievalID + t.require(transactionDetailRecordFieldRetrievalID) } // SetTransAdditionalData sets the TransAdditionalData field and marks it as non-optional; @@ -8460,18 +8460,18 @@ func (t *TransactionDetailRecord) SetInvoiceData(invoiceData *TransactionDetailI t.require(transactionDetailRecordFieldInvoiceData) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetEntrypageId(entrypageId EntrypageId) { - t.EntrypageId = entrypageId - t.require(transactionDetailRecordFieldEntrypageId) +func (t *TransactionDetailRecord) SetEntrypageID(entrypageID EntrypageID) { + t.EntrypageID = entrypageID + t.require(transactionDetailRecordFieldEntrypageID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetExternalPaypointId(externalPaypointId ExternalPaypointId) { - t.ExternalPaypointId = externalPaypointId - t.require(transactionDetailRecordFieldExternalPaypointId) +func (t *TransactionDetailRecord) SetExternalPaypointID(externalPaypointID ExternalPaypointID) { + t.ExternalPaypointID = externalPaypointID + t.require(transactionDetailRecordFieldExternalPaypointID) } // SetIsValidatedAch sets the IsValidatedAch field and marks it as non-optional; @@ -8565,11 +8565,11 @@ func (t *TransactionDetailRecord) SetRiskActionCode(riskActionCode *RiskActionCo t.require(transactionDetailRecordFieldRiskActionCode) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetDeviceId(deviceId Device) { - t.DeviceId = deviceId - t.require(transactionDetailRecordFieldDeviceId) +func (t *TransactionDetailRecord) SetDeviceID(deviceID Device) { + t.DeviceID = deviceID + t.require(transactionDetailRecordFieldDeviceID) } // SetAchSecCode sets the AchSecCode field and marks it as non-optional; @@ -8586,11 +8586,11 @@ func (t *TransactionDetailRecord) SetAchHolderType(achHolderType AchHolderType) t.require(transactionDetailRecordFieldAchHolderType) } -// SetIpAddress sets the IpAddress field and marks it as non-optional; +// SetIPAddress sets the IPAddress field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailRecord) SetIpAddress(ipAddress IpAddress) { - t.IpAddress = ipAddress - t.require(transactionDetailRecordFieldIpAddress) +func (t *TransactionDetailRecord) SetIPAddress(ipAddress IPAddress) { + t.IPAddress = ipAddress + t.require(transactionDetailRecordFieldIPAddress) } // SetIsSameDayAch sets the IsSameDayAch field and marks it as non-optional; @@ -8696,7 +8696,7 @@ var ( transactionDetailResponseDataFieldType = big.NewInt(1 << 11) transactionDetailResponseDataFieldResponseCode = big.NewInt(1 << 12) transactionDetailResponseDataFieldResponseCodeText = big.NewInt(1 << 13) - transactionDetailResponseDataFieldCustomerVaultId = big.NewInt(1 << 14) + transactionDetailResponseDataFieldCustomerVaultID = big.NewInt(1 << 14) transactionDetailResponseDataFieldEmvAuthResponseData = big.NewInt(1 << 15) ) @@ -8713,11 +8713,11 @@ type TransactionDetailResponseData struct { AvsresponseText *AvsResponseText `json:"avsresponse_text,omitempty" url:"avsresponse_text,omitempty"` Cvvresponse *string `json:"cvvresponse,omitempty" url:"cvvresponse,omitempty"` CvvresponseText *CvvResponseText `json:"cvvresponse_text,omitempty" url:"cvvresponse_text,omitempty"` - Orderid *OrderId `json:"orderid,omitempty" url:"orderid,omitempty"` + Orderid *OrderID `json:"orderid,omitempty" url:"orderid,omitempty"` Type *string `json:"type,omitempty" url:"type,omitempty"` ResponseCode string `json:"response_code" url:"response_code"` ResponseCodeText string `json:"response_code_text" url:"response_code_text"` - CustomerVaultId *string `json:"customer_vault_id,omitempty" url:"customer_vault_id,omitempty"` + CustomerVaultID *string `json:"customer_vault_id,omitempty" url:"customer_vault_id,omitempty"` EmvAuthResponseData *EmvAuthResponseData `json:"emv_auth_response_data,omitempty" url:"emv_auth_response_data,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -8797,7 +8797,7 @@ func (t *TransactionDetailResponseData) GetCvvresponseText() *CvvResponseText { return t.CvvresponseText } -func (t *TransactionDetailResponseData) GetOrderid() *OrderId { +func (t *TransactionDetailResponseData) GetOrderid() *OrderID { if t == nil { return nil } @@ -8825,11 +8825,11 @@ func (t *TransactionDetailResponseData) GetResponseCodeText() string { return t.ResponseCodeText } -func (t *TransactionDetailResponseData) GetCustomerVaultId() *string { +func (t *TransactionDetailResponseData) GetCustomerVaultID() *string { if t == nil { return nil } - return t.CustomerVaultId + return t.CustomerVaultID } func (t *TransactionDetailResponseData) GetEmvAuthResponseData() *EmvAuthResponseData { @@ -8925,7 +8925,7 @@ func (t *TransactionDetailResponseData) SetCvvresponseText(cvvresponseText *CvvR // SetOrderid sets the Orderid field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailResponseData) SetOrderid(orderid *OrderId) { +func (t *TransactionDetailResponseData) SetOrderid(orderid *OrderID) { t.Orderid = orderid t.require(transactionDetailResponseDataFieldOrderid) } @@ -8951,11 +8951,11 @@ func (t *TransactionDetailResponseData) SetResponseCodeText(responseCodeText str t.require(transactionDetailResponseDataFieldResponseCodeText) } -// SetCustomerVaultId sets the CustomerVaultId field and marks it as non-optional; +// SetCustomerVaultID sets the CustomerVaultID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionDetailResponseData) SetCustomerVaultId(customerVaultId *string) { - t.CustomerVaultId = customerVaultId - t.require(transactionDetailResponseDataFieldCustomerVaultId) +func (t *TransactionDetailResponseData) SetCustomerVaultID(customerVaultID *string) { + t.CustomerVaultID = customerVaultID + t.require(transactionDetailResponseDataFieldCustomerVaultID) } // SetEmvAuthResponseData sets the EmvAuthResponseData field and marks it as non-optional; @@ -9127,24 +9127,24 @@ func (v *ValidateResponse) String() string { // Response data for card validation var ( validateResponseDataFieldAuthCode = big.NewInt(1 << 0) - validateResponseDataFieldReferenceId = big.NewInt(1 << 1) + validateResponseDataFieldReferenceID = big.NewInt(1 << 1) validateResponseDataFieldResultCode = big.NewInt(1 << 2) validateResponseDataFieldResultText = big.NewInt(1 << 3) validateResponseDataFieldAvsResponseText = big.NewInt(1 << 4) validateResponseDataFieldCvvResponseText = big.NewInt(1 << 5) - validateResponseDataFieldCustomerId = big.NewInt(1 << 6) - validateResponseDataFieldMethodReferenceId = big.NewInt(1 << 7) + validateResponseDataFieldCustomerID = big.NewInt(1 << 6) + validateResponseDataFieldMethodReferenceID = big.NewInt(1 << 7) ) type ValidateResponseData struct { AuthCode Authcode `json:"authCode" url:"authCode"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText AvsResponseText `json:"avsResponseText" url:"avsResponseText"` CvvResponseText CvvResponseText `json:"cvvResponseText" url:"cvvResponseText"` - CustomerId Customeridtrans `json:"customerId" url:"customerId"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID Customeridtrans `json:"customerId" url:"customerId"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -9160,11 +9160,11 @@ func (v *ValidateResponseData) GetAuthCode() Authcode { return v.AuthCode } -func (v *ValidateResponseData) GetReferenceId() Referenceidtrans { +func (v *ValidateResponseData) GetReferenceID() Referenceidtrans { if v == nil { return "" } - return v.ReferenceId + return v.ReferenceID } func (v *ValidateResponseData) GetResultCode() ResultCode { @@ -9195,18 +9195,18 @@ func (v *ValidateResponseData) GetCvvResponseText() CvvResponseText { return v.CvvResponseText } -func (v *ValidateResponseData) GetCustomerId() Customeridtrans { +func (v *ValidateResponseData) GetCustomerID() Customeridtrans { if v == nil { return 0 } - return v.CustomerId + return v.CustomerID } -func (v *ValidateResponseData) GetMethodReferenceId() *MethodReferenceId { +func (v *ValidateResponseData) GetMethodReferenceID() *MethodReferenceID { if v == nil { return nil } - return v.MethodReferenceId + return v.MethodReferenceID } func (v *ValidateResponseData) GetExtraProperties() map[string]interface{} { @@ -9230,11 +9230,11 @@ func (v *ValidateResponseData) SetAuthCode(authCode Authcode) { v.require(validateResponseDataFieldAuthCode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *ValidateResponseData) SetReferenceId(referenceId Referenceidtrans) { - v.ReferenceId = referenceId - v.require(validateResponseDataFieldReferenceId) +func (v *ValidateResponseData) SetReferenceID(referenceID Referenceidtrans) { + v.ReferenceID = referenceID + v.require(validateResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -9265,18 +9265,18 @@ func (v *ValidateResponseData) SetCvvResponseText(cvvResponseText CvvResponseTex v.require(validateResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *ValidateResponseData) SetCustomerId(customerId Customeridtrans) { - v.CustomerId = customerId - v.require(validateResponseDataFieldCustomerId) +func (v *ValidateResponseData) SetCustomerID(customerID Customeridtrans) { + v.CustomerID = customerID + v.require(validateResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *ValidateResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - v.MethodReferenceId = methodReferenceId - v.require(validateResponseDataFieldMethodReferenceId) +func (v *ValidateResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + v.MethodReferenceID = methodReferenceID + v.require(validateResponseDataFieldMethodReferenceID) } func (v *ValidateResponseData) UnmarshalJSON(data []byte) error { @@ -9325,7 +9325,7 @@ func (v *ValidateResponseData) String() string { var ( voidResponseFieldResponseCode = big.NewInt(1 << 0) voidResponseFieldPageIdentifier = big.NewInt(1 << 1) - voidResponseFieldRoomId = big.NewInt(1 << 2) + voidResponseFieldRoomID = big.NewInt(1 << 2) voidResponseFieldIsSuccess = big.NewInt(1 << 3) voidResponseFieldResponseText = big.NewInt(1 << 4) voidResponseFieldResponseData = big.NewInt(1 << 5) @@ -9334,7 +9334,7 @@ var ( type VoidResponse struct { ResponseCode Responsecode `json:"responseCode" url:"responseCode"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId RoomIdNotInUse `json:"roomId" url:"roomId"` + RoomID RoomIDNotInUse `json:"roomId" url:"roomId"` IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *VoidResponseData `json:"responseData" url:"responseData"` @@ -9360,11 +9360,11 @@ func (v *VoidResponse) GetPageIdentifier() *PageIdentifier { return v.PageIdentifier } -func (v *VoidResponse) GetRoomId() RoomIdNotInUse { +func (v *VoidResponse) GetRoomID() RoomIDNotInUse { if v == nil { return 0 } - return v.RoomId + return v.RoomID } func (v *VoidResponse) GetIsSuccess() IsSuccess { @@ -9416,11 +9416,11 @@ func (v *VoidResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { v.require(voidResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VoidResponse) SetRoomId(roomId RoomIdNotInUse) { - v.RoomId = roomId - v.require(voidResponseFieldRoomId) +func (v *VoidResponse) SetRoomID(roomID RoomIDNotInUse) { + v.RoomID = roomID + v.require(voidResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -9489,24 +9489,24 @@ func (v *VoidResponse) String() string { // Response data for void transactions var ( voidResponseDataFieldAuthCode = big.NewInt(1 << 0) - voidResponseDataFieldReferenceId = big.NewInt(1 << 1) + voidResponseDataFieldReferenceID = big.NewInt(1 << 1) voidResponseDataFieldResultCode = big.NewInt(1 << 2) voidResponseDataFieldResultText = big.NewInt(1 << 3) voidResponseDataFieldAvsResponseText = big.NewInt(1 << 4) voidResponseDataFieldCvvResponseText = big.NewInt(1 << 5) - voidResponseDataFieldCustomerId = big.NewInt(1 << 6) - voidResponseDataFieldMethodReferenceId = big.NewInt(1 << 7) + voidResponseDataFieldCustomerID = big.NewInt(1 << 6) + voidResponseDataFieldMethodReferenceID = big.NewInt(1 << 7) ) type VoidResponseData struct { AuthCode Authcode `json:"authCode" url:"authCode"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText *AvsResponseText `json:"avsResponseText,omitempty" url:"avsResponseText,omitempty"` CvvResponseText *CvvResponseText `json:"cvvResponseText,omitempty" url:"cvvResponseText,omitempty"` - CustomerId *Customeridtrans `json:"customerId,omitempty" url:"customerId,omitempty"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID *Customeridtrans `json:"customerId,omitempty" url:"customerId,omitempty"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -9522,11 +9522,11 @@ func (v *VoidResponseData) GetAuthCode() Authcode { return v.AuthCode } -func (v *VoidResponseData) GetReferenceId() Referenceidtrans { +func (v *VoidResponseData) GetReferenceID() Referenceidtrans { if v == nil { return "" } - return v.ReferenceId + return v.ReferenceID } func (v *VoidResponseData) GetResultCode() ResultCode { @@ -9557,18 +9557,18 @@ func (v *VoidResponseData) GetCvvResponseText() *CvvResponseText { return v.CvvResponseText } -func (v *VoidResponseData) GetCustomerId() *Customeridtrans { +func (v *VoidResponseData) GetCustomerID() *Customeridtrans { if v == nil { return nil } - return v.CustomerId + return v.CustomerID } -func (v *VoidResponseData) GetMethodReferenceId() *MethodReferenceId { +func (v *VoidResponseData) GetMethodReferenceID() *MethodReferenceID { if v == nil { return nil } - return v.MethodReferenceId + return v.MethodReferenceID } func (v *VoidResponseData) GetExtraProperties() map[string]interface{} { @@ -9592,11 +9592,11 @@ func (v *VoidResponseData) SetAuthCode(authCode Authcode) { v.require(voidResponseDataFieldAuthCode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VoidResponseData) SetReferenceId(referenceId Referenceidtrans) { - v.ReferenceId = referenceId - v.require(voidResponseDataFieldReferenceId) +func (v *VoidResponseData) SetReferenceID(referenceID Referenceidtrans) { + v.ReferenceID = referenceID + v.require(voidResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -9627,18 +9627,18 @@ func (v *VoidResponseData) SetCvvResponseText(cvvResponseText *CvvResponseText) v.require(voidResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VoidResponseData) SetCustomerId(customerId *Customeridtrans) { - v.CustomerId = customerId - v.require(voidResponseDataFieldCustomerId) +func (v *VoidResponseData) SetCustomerID(customerID *Customeridtrans) { + v.CustomerID = customerID + v.require(voidResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VoidResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - v.MethodReferenceId = methodReferenceId - v.require(voidResponseDataFieldMethodReferenceId) +func (v *VoidResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + v.MethodReferenceID = methodReferenceID + v.require(voidResponseDataFieldMethodReferenceID) } func (v *VoidResponseData) UnmarshalJSON(data []byte) error { diff --git a/money_in_test.go b/money_in_test.go index 1222abe..88626c1 100644 --- a/money_in_test.go +++ b/money_in_test.go @@ -111,11 +111,11 @@ func TestSettersRequestCredit(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &RequestCredit{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -143,11 +143,11 @@ func TestSettersRequestCredit(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &RequestCredit{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -248,14 +248,14 @@ func TestSettersMarkExplicitRequestCredit(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestCredit{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -372,14 +372,14 @@ func TestSettersMarkExplicitRequestCredit(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestCredit{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -548,7 +548,7 @@ func TestSettersRequestRefund(t *testing.T) { t.Run("SetIpaddress", func(t *testing.T) { obj := &RequestRefund{} - var fernTestValueIpaddress *IpAddress + var fernTestValueIpaddress *IPAddress obj.SetIpaddress(fernTestValueIpaddress) assert.Equal(t, fernTestValueIpaddress, obj.Ipaddress) assert.NotNil(t, obj.explicitFields) @@ -562,11 +562,11 @@ func TestSettersRequestRefund(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &RequestRefund{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -655,7 +655,7 @@ func TestSettersMarkExplicitRequestRefund(t *testing.T) { t.Parallel() // Arrange obj := &RequestRefund{} - var fernTestValueIpaddress *IpAddress + var fernTestValueIpaddress *IPAddress // Act obj.SetIpaddress(fernTestValueIpaddress) @@ -713,14 +713,14 @@ func TestSettersMarkExplicitRequestRefund(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestRefund{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -862,11 +862,11 @@ func TestSettersRequestPaymentValidate(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &RequestPaymentValidate{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -886,11 +886,11 @@ func TestSettersRequestPaymentValidate(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &RequestPaymentValidate{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -936,14 +936,14 @@ func TestSettersMarkExplicitRequestPaymentValidate(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestPaymentValidate{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1029,14 +1029,14 @@ func TestSettersMarkExplicitRequestPaymentValidate(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestPaymentValidate{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1724,11 +1724,11 @@ func TestSettersPayMethodBodyAllFields(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &PayMethodBodyAllFields{} - var fernTestValueStoredMethodId *Storedmethodid - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *Storedmethodid + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -2175,28 +2175,28 @@ func TestGettersPayMethodBodyAllFields(t *testing.T) { _ = obj.GetSaveIfSuccess() // Should return zero value }) - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodBodyAllFields{} var expected *Storedmethodid - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodBodyAllFields{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayMethodBodyAllFields // Should not panic - getters should handle nil receiver gracefully @@ -2205,7 +2205,7 @@ func TestGettersPayMethodBodyAllFields(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) t.Run("GetStoredMethodUsageType", func(t *testing.T) { @@ -2678,14 +2678,14 @@ func TestSettersMarkExplicitPayMethodBodyAllFields(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodBodyAllFields{} - var fernTestValueStoredMethodId *Storedmethodid + var fernTestValueStoredMethodID *Storedmethodid // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2912,11 +2912,11 @@ func TestSettersPayMethodStoredMethod(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &PayMethodStoredMethod{} - var fernTestValueStoredMethodId *Storedmethodid - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *Storedmethodid + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -2987,28 +2987,28 @@ func TestGettersPayMethodStoredMethod(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodStoredMethod{} var expected *Storedmethodid - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodStoredMethod{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayMethodStoredMethod // Should not panic - getters should handle nil receiver gracefully @@ -3017,7 +3017,7 @@ func TestGettersPayMethodStoredMethod(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) t.Run("GetStoredMethodUsageType", func(t *testing.T) { @@ -3118,14 +3118,14 @@ func TestSettersMarkExplicitPayMethodStoredMethod(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayMethodStoredMethod{} - var fernTestValueStoredMethodId *Storedmethodid + var fernTestValueStoredMethodID *Storedmethodid // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3182,9 +3182,9 @@ func TestSettersMarkExplicitPayMethodStoredMethod(t *testing.T) { } -func TestSettersPayabliApiResponse0(t *testing.T) { +func TestSettersPayabliAPIResponse0(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -3192,7 +3192,7 @@ func TestSettersPayabliApiResponse0(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -3200,15 +3200,15 @@ func TestSettersPayabliApiResponse0(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse0{} - var fernTestValueResponseData *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0{} + var fernTestValueResponseData *PayabliAPIResponse0ResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -3217,11 +3217,11 @@ func TestSettersPayabliApiResponse0(t *testing.T) { } -func TestGettersPayabliApiResponse0(t *testing.T) { +func TestGettersPayabliAPIResponse0(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var expected *IsSuccess obj.IsSuccess = expected @@ -3232,7 +3232,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} obj.IsSuccess = nil // Act & Assert @@ -3241,7 +3241,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3254,7 +3254,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -3265,7 +3265,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} obj.PageIdentifier = nil // Act & Assert @@ -3274,7 +3274,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3287,8 +3287,8 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} - var expected *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0{} + var expected *PayabliAPIResponse0ResponseData obj.ResponseData = expected // Act & Assert @@ -3298,7 +3298,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} obj.ResponseData = nil // Act & Assert @@ -3307,7 +3307,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3320,7 +3320,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var expected ResponseText obj.ResponseText = expected @@ -3330,7 +3330,7 @@ func TestGettersPayabliApiResponse0(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3342,11 +3342,11 @@ func TestGettersPayabliApiResponse0(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse0(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse0(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValueIsSuccess *IsSuccess // Act @@ -3377,7 +3377,7 @@ func TestSettersMarkExplicitPayabliApiResponse0(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -3408,8 +3408,8 @@ func TestSettersMarkExplicitPayabliApiResponse0(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} - var fernTestValueResponseData *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0{} + var fernTestValueResponseData *PayabliAPIResponse0ResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -3439,7 +3439,7 @@ func TestSettersMarkExplicitPayabliApiResponse0(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} var fernTestValueResponseText ResponseText // Act @@ -4071,11 +4071,11 @@ func TestSettersQueryTransactionPayorDataCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &QueryTransactionPayorDataCustomer{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -4725,28 +4725,28 @@ func TestGettersQueryTransactionPayorDataCustomer(t *testing.T) { _ = obj.GetShippingCountry() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorDataCustomer{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorDataCustomer{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryTransactionPayorDataCustomer // Should not panic - getters should handle nil receiver gracefully @@ -4755,7 +4755,7 @@ func TestGettersQueryTransactionPayorDataCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerStatus", func(t *testing.T) { @@ -5416,14 +5416,14 @@ func TestSettersMarkExplicitQueryTransactionPayorDataCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorDataCustomer{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5665,11 +5665,11 @@ func TestSettersMarkExplicitRefundDetail(t *testing.T) { } func TestSettersSplitFundingRefundContent(t *testing.T) { - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &SplitFundingRefundContent{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -5700,28 +5700,28 @@ func TestSettersSplitFundingRefundContent(t *testing.T) { } func TestGettersSplitFundingRefundContent(t *testing.T) { - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingRefundContent{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingRefundContent{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SplitFundingRefundContent // Should not panic - getters should handle nil receiver gracefully @@ -5730,7 +5730,7 @@ func TestGettersSplitFundingRefundContent(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetAmount", func(t *testing.T) { @@ -5835,14 +5835,14 @@ func TestGettersSplitFundingRefundContent(t *testing.T) { } func TestSettersMarkExplicitSplitFundingRefundContent(t *testing.T) { - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingRefundContent{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6018,19 +6018,19 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueDeviceId *Device - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID *Device + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) @@ -6050,11 +6050,11 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueGatewayTransId *string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID *string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) @@ -6090,19 +6090,19 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -6122,19 +6122,19 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePaymentTransId *string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID *string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePayorId *PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID *PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) @@ -6154,11 +6154,11 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePaypointId *int64 - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int64 + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -6178,11 +6178,11 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueRefundId *RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID *RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) @@ -6194,11 +6194,11 @@ func TestSettersTransactionQueryRecordsCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &TransactionQueryRecordsCustomer{} - var fernTestValueReturnedId *ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID *ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) @@ -6508,28 +6508,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetCustomer() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} var expected *Device - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilValue", func(t *testing.T) { + t.Run("GetDeviceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.DeviceId = nil + obj.DeviceID = nil // Act & Assert - assert.Nil(t, obj.GetDeviceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDeviceID(), "getter should return nil when property is nil") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6538,31 +6538,31 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6571,7 +6571,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) t.Run("GetExternalProcessorInformation", func(t *testing.T) { @@ -6640,28 +6640,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetFeeAmount() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} var expected *string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilValue", func(t *testing.T) { + t.Run("GetGatewayTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.GatewayTransId = nil + obj.GatewayTransID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayTransID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6670,7 +6670,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) t.Run("GetInvoiceData", func(t *testing.T) { @@ -6805,28 +6805,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetOperation() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6835,31 +6835,31 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6868,7 +6868,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -6937,28 +6937,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetPaymentData() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} var expected *string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilValue", func(t *testing.T) { + t.Run("GetPaymentTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.PaymentTransId = nil + obj.PaymentTransID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentTransID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -6967,31 +6967,31 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var expected *PayorId - obj.PayorId = expected + var expected *PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilValue", func(t *testing.T) { + t.Run("GetPayorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.PayorId = nil + obj.PayorID = nil // Act & Assert - assert.Nil(t, obj.GetPayorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPayorID(), "getter should return nil when property is nil") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -7000,7 +7000,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) t.Run("GetPaypointDbaname", func(t *testing.T) { @@ -7069,28 +7069,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} var expected *int64 - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -7099,7 +7099,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointLegalname", func(t *testing.T) { @@ -7168,28 +7168,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetPendingFeeAmount() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var expected *RefundId - obj.RefundId = expected + var expected *RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilValue", func(t *testing.T) { + t.Run("GetRefundID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.RefundId = nil + obj.RefundID = nil // Act & Assert - assert.Nil(t, obj.GetRefundId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRefundID(), "getter should return nil when property is nil") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -7198,7 +7198,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) t.Run("GetResponseData", func(t *testing.T) { @@ -7234,28 +7234,28 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { _ = obj.GetResponseData() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var expected *ReturnedId - obj.ReturnedId = expected + var expected *ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilValue", func(t *testing.T) { + t.Run("GetReturnedID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - obj.ReturnedId = nil + obj.ReturnedID = nil // Act & Assert - assert.Nil(t, obj.GetReturnedId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReturnedID(), "getter should return nil when property is nil") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecordsCustomer // Should not panic - getters should handle nil receiver gracefully @@ -7264,7 +7264,7 @@ func TestGettersTransactionQueryRecordsCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) t.Run("GetScheduleReference", func(t *testing.T) { @@ -7774,14 +7774,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueDeviceId *Device + var fernTestValueDeviceID *Device // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7805,14 +7805,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7898,14 +7898,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueGatewayTransId *string + var fernTestValueGatewayTransID *string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8053,14 +8053,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8084,14 +8084,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8177,14 +8177,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePaymentTransId *string + var fernTestValuePaymentTransID *string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8208,14 +8208,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePayorId *PayorId + var fernTestValuePayorID *PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8301,14 +8301,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValuePaypointId *int64 + var fernTestValuePaypointID *int64 // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8394,14 +8394,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueRefundId *RefundId + var fernTestValueRefundID *RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8456,14 +8456,14 @@ func TestSettersMarkExplicitTransactionQueryRecordsCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecordsCustomer{} - var fernTestValueReturnedId *ReturnedId + var fernTestValueReturnedID *ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9054,11 +9054,11 @@ func TestSettersAuthResponseResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &AuthResponseResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -9094,19 +9094,19 @@ func TestSettersAuthResponseResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &AuthResponseResponseData{} - var fernTestValueCustomerId Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &AuthResponseResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -9136,18 +9136,18 @@ func TestGettersAuthResponseResponseData(t *testing.T) { _ = obj.GetAuthCode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -9156,7 +9156,7 @@ func TestGettersAuthResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -9251,18 +9251,18 @@ func TestGettersAuthResponseResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} var expected Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -9271,31 +9271,31 @@ func TestGettersAuthResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -9304,7 +9304,7 @@ func TestGettersAuthResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -9341,14 +9341,14 @@ func TestSettersMarkExplicitAuthResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9496,14 +9496,14 @@ func TestSettersMarkExplicitAuthResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} - var fernTestValueCustomerId Customeridtrans + var fernTestValueCustomerID Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9527,14 +9527,14 @@ func TestSettersMarkExplicitAuthResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthResponseResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9801,11 +9801,11 @@ func TestSettersCaptureResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &CaptureResponse{} - var fernTestValueRoomId RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -9892,18 +9892,18 @@ func TestGettersCaptureResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponse{} - var expected RoomIdNotInUse - obj.RoomId = expected + var expected RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureResponse // Should not panic - getters should handle nil receiver gracefully @@ -9912,7 +9912,7 @@ func TestGettersCaptureResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -10059,14 +10059,14 @@ func TestSettersMarkExplicitCaptureResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponse{} - var fernTestValueRoomId RoomIdNotInUse + var fernTestValueRoomID RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10194,11 +10194,11 @@ func TestSettersCaptureResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &CaptureResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -10234,19 +10234,19 @@ func TestSettersCaptureResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &CaptureResponseData{} - var fernTestValueCustomerId *Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &CaptureResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -10276,18 +10276,18 @@ func TestGettersCaptureResponseData(t *testing.T) { _ = obj.GetAuthCode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureResponseData // Should not panic - getters should handle nil receiver gracefully @@ -10296,7 +10296,7 @@ func TestGettersCaptureResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -10411,28 +10411,28 @@ func TestGettersCaptureResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} var expected *Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureResponseData // Should not panic - getters should handle nil receiver gracefully @@ -10441,31 +10441,31 @@ func TestGettersCaptureResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureResponseData // Should not panic - getters should handle nil receiver gracefully @@ -10474,7 +10474,7 @@ func TestGettersCaptureResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -10511,14 +10511,14 @@ func TestSettersMarkExplicitCaptureResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10666,14 +10666,14 @@ func TestSettersMarkExplicitCaptureResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - var fernTestValueCustomerId *Customeridtrans + var fernTestValueCustomerID *Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10697,14 +10697,14 @@ func TestSettersMarkExplicitCaptureResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10747,11 +10747,11 @@ func TestSettersGetPaidResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &GetPaidResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -10787,19 +10787,19 @@ func TestSettersGetPaidResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &GetPaidResponseData{} - var fernTestValueCustomerId Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &GetPaidResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -10872,18 +10872,18 @@ func TestGettersGetPaidResponseData(t *testing.T) { _ = obj.GetTransactionDetails() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetPaidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -10892,7 +10892,7 @@ func TestGettersGetPaidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -10987,18 +10987,18 @@ func TestGettersGetPaidResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} var expected Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetPaidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -11007,31 +11007,31 @@ func TestGettersGetPaidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetPaidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -11040,7 +11040,7 @@ func TestGettersGetPaidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -11108,14 +11108,14 @@ func TestSettersMarkExplicitGetPaidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11263,14 +11263,14 @@ func TestSettersMarkExplicitGetPaidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} - var fernTestValueCustomerId Customeridtrans + var fernTestValueCustomerID Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11294,14 +11294,14 @@ func TestSettersMarkExplicitGetPaidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetPaidResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11398,9 +11398,9 @@ func TestSettersMarkExplicitInvalidTransStatusErrorType(t *testing.T) { } -func TestSettersPayabliApiResponseGetPaid(t *testing.T) { +func TestSettersPayabliAPIResponseGetPaid(t *testing.T) { t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -11408,7 +11408,7 @@ func TestSettersPayabliApiResponseGetPaid(t *testing.T) { }) t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -11416,7 +11416,7 @@ func TestSettersPayabliApiResponseGetPaid(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValuePageIdentifier *string obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -11424,7 +11424,7 @@ func TestSettersPayabliApiResponseGetPaid(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueResponseData *GetPaidResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -11433,11 +11433,11 @@ func TestSettersPayabliApiResponseGetPaid(t *testing.T) { } -func TestGettersPayabliApiResponseGetPaid(t *testing.T) { +func TestGettersPayabliAPIResponseGetPaid(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var expected ResponseText obj.ResponseText = expected @@ -11447,7 +11447,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -11460,7 +11460,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var expected IsSuccess obj.IsSuccess = expected @@ -11470,7 +11470,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -11483,7 +11483,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var expected *string obj.PageIdentifier = expected @@ -11494,7 +11494,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} obj.PageIdentifier = nil // Act & Assert @@ -11503,7 +11503,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -11516,7 +11516,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var expected *GetPaidResponseData obj.ResponseData = expected @@ -11527,7 +11527,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} obj.ResponseData = nil // Act & Assert @@ -11536,7 +11536,7 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -11548,11 +11548,11 @@ func TestGettersPayabliApiResponseGetPaid(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseGetPaid(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseGetPaid(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueResponseText ResponseText // Act @@ -11583,7 +11583,7 @@ func TestSettersMarkExplicitPayabliApiResponseGetPaid(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueIsSuccess IsSuccess // Act @@ -11614,7 +11614,7 @@ func TestSettersMarkExplicitPayabliApiResponseGetPaid(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValuePageIdentifier *string // Act @@ -11645,7 +11645,7 @@ func TestSettersMarkExplicitPayabliApiResponseGetPaid(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} var fernTestValueResponseData *GetPaidResponseData // Act @@ -13259,11 +13259,11 @@ func TestSettersResponseDataRefunds(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &ResponseDataRefunds{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -13275,19 +13275,19 @@ func TestSettersResponseDataRefunds(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &ResponseDataRefunds{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &ResponseDataRefunds{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -13399,28 +13399,28 @@ func TestGettersResponseDataRefunds(t *testing.T) { _ = obj.GetAvsResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ResponseDataRefunds // Should not panic - getters should handle nil receiver gracefully @@ -13429,7 +13429,7 @@ func TestGettersResponseDataRefunds(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCvvResponseText", func(t *testing.T) { @@ -13465,28 +13465,28 @@ func TestGettersResponseDataRefunds(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ResponseDataRefunds // Should not panic - getters should handle nil receiver gracefully @@ -13495,21 +13495,21 @@ func TestGettersResponseDataRefunds(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ResponseDataRefunds // Should not panic - getters should handle nil receiver gracefully @@ -13518,7 +13518,7 @@ func TestGettersResponseDataRefunds(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -13663,14 +13663,14 @@ func TestSettersMarkExplicitResponseDataRefunds(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13725,14 +13725,14 @@ func TestSettersMarkExplicitResponseDataRefunds(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13756,14 +13756,14 @@ func TestSettersMarkExplicitResponseDataRefunds(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ResponseDataRefunds{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13868,11 +13868,11 @@ func TestSettersReverseResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &ReverseResponse{} - var fernTestValueRoomId int - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID int + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -13959,18 +13959,18 @@ func TestGettersReverseResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &ReverseResponse{} var expected int - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ReverseResponse // Should not panic - getters should handle nil receiver gracefully @@ -13979,7 +13979,7 @@ func TestGettersReverseResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -14126,14 +14126,14 @@ func TestSettersMarkExplicitReverseResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ReverseResponse{} - var fernTestValueRoomId int + var fernTestValueRoomID int // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14253,11 +14253,11 @@ func TestSettersMarkExplicitReverseResponse(t *testing.T) { } func TestSettersTransRequestBody(t *testing.T) { - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &TransRequestBody{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -14287,7 +14287,7 @@ func TestSettersTransRequestBody(t *testing.T) { t.Run("SetIpaddress", func(t *testing.T) { obj := &TransRequestBody{} - var fernTestValueIpaddress *IpAddress + var fernTestValueIpaddress *IPAddress obj.SetIpaddress(fernTestValueIpaddress) assert.Equal(t, fernTestValueIpaddress, obj.Ipaddress) assert.NotNil(t, obj.explicitFields) @@ -14301,11 +14301,11 @@ func TestSettersTransRequestBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransRequestBody{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -14341,39 +14341,39 @@ func TestSettersTransRequestBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetSubscriptionId", func(t *testing.T) { + t.Run("SetSubscriptionID", func(t *testing.T) { obj := &TransRequestBody{} - var fernTestValueSubscriptionId *Subscriptionid - obj.SetSubscriptionId(fernTestValueSubscriptionId) - assert.Equal(t, fernTestValueSubscriptionId, obj.SubscriptionId) + var fernTestValueSubscriptionID *Subscriptionid + obj.SetSubscriptionID(fernTestValueSubscriptionID) + assert.Equal(t, fernTestValueSubscriptionID, obj.SubscriptionID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersTransRequestBody(t *testing.T) { - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransRequestBody // Should not panic - getters should handle nil receiver gracefully @@ -14382,7 +14382,7 @@ func TestGettersTransRequestBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetCustomerData", func(t *testing.T) { @@ -14488,7 +14488,7 @@ func TestGettersTransRequestBody(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var expected *IpAddress + var expected *IPAddress obj.Ipaddress = expected // Act & Assert @@ -14550,28 +14550,28 @@ func TestGettersTransRequestBody(t *testing.T) { _ = obj.GetOrderDescription() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransRequestBody // Should not panic - getters should handle nil receiver gracefully @@ -14580,7 +14580,7 @@ func TestGettersTransRequestBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetPaymentDetails", func(t *testing.T) { @@ -14715,28 +14715,28 @@ func TestGettersTransRequestBody(t *testing.T) { _ = obj.GetSubdomain() // Should return zero value }) - t.Run("GetSubscriptionId", func(t *testing.T) { + t.Run("GetSubscriptionID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} var expected *Subscriptionid - obj.SubscriptionId = expected + obj.SubscriptionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubscriptionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubscriptionID(), "getter should return the property value") }) - t.Run("GetSubscriptionId_NilValue", func(t *testing.T) { + t.Run("GetSubscriptionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - obj.SubscriptionId = nil + obj.SubscriptionID = nil // Act & Assert - assert.Nil(t, obj.GetSubscriptionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSubscriptionID(), "getter should return nil when property is nil") }) - t.Run("GetSubscriptionId_NilReceiver", func(t *testing.T) { + t.Run("GetSubscriptionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransRequestBody // Should not panic - getters should handle nil receiver gracefully @@ -14745,20 +14745,20 @@ func TestGettersTransRequestBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubscriptionId() // Should return zero value + _ = obj.GetSubscriptionID() // Should return zero value }) } func TestSettersMarkExplicitTransRequestBody(t *testing.T) { - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14879,7 +14879,7 @@ func TestSettersMarkExplicitTransRequestBody(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var fernTestValueIpaddress *IpAddress + var fernTestValueIpaddress *IPAddress // Act obj.SetIpaddress(fernTestValueIpaddress) @@ -14937,14 +14937,14 @@ func TestSettersMarkExplicitTransRequestBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15092,14 +15092,14 @@ func TestSettersMarkExplicitTransRequestBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubscriptionId_MarksExplicit", func(t *testing.T) { + t.Run("SetSubscriptionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransRequestBody{} - var fernTestValueSubscriptionId *Subscriptionid + var fernTestValueSubscriptionID *Subscriptionid // Act - obj.SetSubscriptionId(fernTestValueSubscriptionId) + obj.SetSubscriptionID(fernTestValueSubscriptionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15278,11 +15278,11 @@ func TestSettersTransactionDetailCustomer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &TransactionDetailCustomer{} - var fernTestValueCustomerId CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -15752,18 +15752,18 @@ func TestGettersTransactionDetailCustomer(t *testing.T) { _ = obj.GetShippingCountry() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailCustomer{} - var expected CustomerId - obj.CustomerId = expected + var expected CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailCustomer // Should not panic - getters should handle nil receiver gracefully @@ -15772,7 +15772,7 @@ func TestGettersTransactionDetailCustomer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerStatus", func(t *testing.T) { @@ -16423,14 +16423,14 @@ func TestSettersMarkExplicitTransactionDetailCustomer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailCustomer{} - var fernTestValueCustomerId CustomerId + var fernTestValueCustomerID CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -19059,11 +19059,11 @@ func TestSettersTransactionDetailPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredId", func(t *testing.T) { + t.Run("SetStoredID", func(t *testing.T) { obj := &TransactionDetailPaymentData{} - var fernTestValueStoredId *Storedmethodid - obj.SetStoredId(fernTestValueStoredId) - assert.Equal(t, fernTestValueStoredId, obj.StoredId) + var fernTestValueStoredID *Storedmethodid + obj.SetStoredID(fernTestValueStoredID) + assert.Equal(t, fernTestValueStoredID, obj.StoredID) assert.NotNil(t, obj.explicitFields) }) @@ -19099,11 +19099,11 @@ func TestSettersTransactionDetailPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &TransactionDetailPaymentData{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -19236,28 +19236,28 @@ func TestGettersTransactionDetailPaymentData(t *testing.T) { _ = obj.GetHolderName() // Should return zero value }) - t.Run("GetStoredId", func(t *testing.T) { + t.Run("GetStoredID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} var expected *Storedmethodid - obj.StoredId = expected + obj.StoredID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredID(), "getter should return the property value") }) - t.Run("GetStoredId_NilValue", func(t *testing.T) { + t.Run("GetStoredID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} - obj.StoredId = nil + obj.StoredID = nil // Act & Assert - assert.Nil(t, obj.GetStoredId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredID(), "getter should return nil when property is nil") }) - t.Run("GetStoredId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -19266,7 +19266,7 @@ func TestGettersTransactionDetailPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredId() // Should return zero value + _ = obj.GetStoredID() // Should return zero value }) t.Run("GetInitiator", func(t *testing.T) { @@ -19391,28 +19391,28 @@ func TestGettersTransactionDetailPaymentData(t *testing.T) { _ = obj.GetOrderDescription() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -19421,7 +19421,7 @@ func TestGettersTransactionDetailPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetSignatureData", func(t *testing.T) { @@ -19650,14 +19650,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} - var fernTestValueStoredId *Storedmethodid + var fernTestValueStoredID *Storedmethodid // Act - obj.SetStoredId(fernTestValueStoredId) + obj.SetStoredID(fernTestValueStoredID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -19805,14 +19805,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentData{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -19964,11 +19964,11 @@ func TestSettersTransactionDetailPaymentDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCheckUniqueId", func(t *testing.T) { + t.Run("SetCheckUniqueID", func(t *testing.T) { obj := &TransactionDetailPaymentDetails{} - var fernTestValueCheckUniqueId string - obj.SetCheckUniqueId(fernTestValueCheckUniqueId) - assert.Equal(t, fernTestValueCheckUniqueId, obj.CheckUniqueId) + var fernTestValueCheckUniqueID string + obj.SetCheckUniqueID(fernTestValueCheckUniqueID) + assert.Equal(t, fernTestValueCheckUniqueID, obj.CheckUniqueID) assert.NotNil(t, obj.explicitFields) }) @@ -19988,19 +19988,19 @@ func TestSettersTransactionDetailPaymentDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransactionDetailPaymentDetails{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderIdAlternative", func(t *testing.T) { + t.Run("SetOrderIDAlternative", func(t *testing.T) { obj := &TransactionDetailPaymentDetails{} - var fernTestValueOrderIdAlternative *string - obj.SetOrderIdAlternative(fernTestValueOrderIdAlternative) - assert.Equal(t, fernTestValueOrderIdAlternative, obj.OrderIdAlternative) + var fernTestValueOrderIDAlternative *string + obj.SetOrderIDAlternative(fernTestValueOrderIDAlternative) + assert.Equal(t, fernTestValueOrderIDAlternative, obj.OrderIDAlternative) assert.NotNil(t, obj.explicitFields) }) @@ -20028,11 +20028,11 @@ func TestSettersTransactionDetailPaymentDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayabliTransId", func(t *testing.T) { + t.Run("SetPayabliTransID", func(t *testing.T) { obj := &TransactionDetailPaymentDetails{} - var fernTestValuePayabliTransId *string - obj.SetPayabliTransId(fernTestValuePayabliTransId) - assert.Equal(t, fernTestValuePayabliTransId, obj.PayabliTransId) + var fernTestValuePayabliTransID *string + obj.SetPayabliTransID(fernTestValuePayabliTransID) + assert.Equal(t, fernTestValuePayabliTransID, obj.PayabliTransID) assert.NotNil(t, obj.explicitFields) }) @@ -20165,18 +20165,18 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { _ = obj.GetCheckImage() // Should return zero value }) - t.Run("GetCheckUniqueId", func(t *testing.T) { + t.Run("GetCheckUniqueID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} var expected string - obj.CheckUniqueId = expected + obj.CheckUniqueID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCheckUniqueId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCheckUniqueID(), "getter should return the property value") }) - t.Run("GetCheckUniqueId_NilReceiver", func(t *testing.T) { + t.Run("GetCheckUniqueID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentDetails // Should not panic - getters should handle nil receiver gracefully @@ -20185,7 +20185,7 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCheckUniqueId() // Should return zero value + _ = obj.GetCheckUniqueID() // Should return zero value }) t.Run("GetCurrency", func(t *testing.T) { @@ -20244,28 +20244,28 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { _ = obj.GetOrderDescription() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentDetails // Should not panic - getters should handle nil receiver gracefully @@ -20274,31 +20274,31 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) - t.Run("GetOrderIdAlternative", func(t *testing.T) { + t.Run("GetOrderIDAlternative", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} var expected *string - obj.OrderIdAlternative = expected + obj.OrderIDAlternative = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderIdAlternative(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderIDAlternative(), "getter should return the property value") }) - t.Run("GetOrderIdAlternative_NilValue", func(t *testing.T) { + t.Run("GetOrderIDAlternative_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - obj.OrderIdAlternative = nil + obj.OrderIDAlternative = nil // Act & Assert - assert.Nil(t, obj.GetOrderIdAlternative(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderIDAlternative(), "getter should return nil when property is nil") }) - t.Run("GetOrderIdAlternative_NilReceiver", func(t *testing.T) { + t.Run("GetOrderIDAlternative_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentDetails // Should not panic - getters should handle nil receiver gracefully @@ -20307,7 +20307,7 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderIdAlternative() // Should return zero value + _ = obj.GetOrderIDAlternative() // Should return zero value }) t.Run("GetPaymentDescription", func(t *testing.T) { @@ -20409,28 +20409,28 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { _ = obj.GetSource() // Should return zero value }) - t.Run("GetPayabliTransId", func(t *testing.T) { + t.Run("GetPayabliTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} var expected *string - obj.PayabliTransId = expected + obj.PayabliTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayabliTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayabliTransID(), "getter should return the property value") }) - t.Run("GetPayabliTransId_NilValue", func(t *testing.T) { + t.Run("GetPayabliTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - obj.PayabliTransId = nil + obj.PayabliTransID = nil // Act & Assert - assert.Nil(t, obj.GetPayabliTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPayabliTransID(), "getter should return nil when property is nil") }) - t.Run("GetPayabliTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPayabliTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailPaymentDetails // Should not panic - getters should handle nil receiver gracefully @@ -20439,7 +20439,7 @@ func TestGettersTransactionDetailPaymentDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayabliTransId() // Should return zero value + _ = obj.GetPayabliTransID() // Should return zero value }) t.Run("GetUnbundled", func(t *testing.T) { @@ -20658,14 +20658,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCheckUniqueId_MarksExplicit", func(t *testing.T) { + t.Run("SetCheckUniqueID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - var fernTestValueCheckUniqueId string + var fernTestValueCheckUniqueID string // Act - obj.SetCheckUniqueId(fernTestValueCheckUniqueId) + obj.SetCheckUniqueID(fernTestValueCheckUniqueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20751,14 +20751,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20782,14 +20782,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderIdAlternative_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderIDAlternative_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - var fernTestValueOrderIdAlternative *string + var fernTestValueOrderIDAlternative *string // Act - obj.SetOrderIdAlternative(fernTestValueOrderIdAlternative) + obj.SetOrderIDAlternative(fernTestValueOrderIDAlternative) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20906,14 +20906,14 @@ func TestSettersMarkExplicitTransactionDetailPaymentDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayabliTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayabliTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailPaymentDetails{} - var fernTestValuePayabliTransId *string + var fernTestValuePayabliTransID *string // Act - obj.SetPayabliTransId(fernTestValuePayabliTransId) + obj.SetPayabliTransID(fernTestValuePayabliTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21065,11 +21065,11 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValuePaymentTransId string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -21089,19 +21089,19 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueGatewayTransId string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -21129,11 +21129,11 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValuePayorId PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) @@ -21153,11 +21153,11 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -21225,43 +21225,43 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueOrgId Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueRefundId RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueReturnedId ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChargebackId", func(t *testing.T) { + t.Run("SetChargebackID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueChargebackId ChargebackId - obj.SetChargebackId(fernTestValueChargebackId) - assert.Equal(t, fernTestValueChargebackId, obj.ChargebackId) + var fernTestValueChargebackID ChargebackID + obj.SetChargebackID(fernTestValueChargebackID) + assert.Equal(t, fernTestValueChargebackID, obj.ChargebackID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRetrievalId", func(t *testing.T) { + t.Run("SetRetrievalID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueRetrievalId RetrievalId - obj.SetRetrievalId(fernTestValueRetrievalId) - assert.Equal(t, fernTestValueRetrievalId, obj.RetrievalId) + var fernTestValueRetrievalID RetrievalID + obj.SetRetrievalID(fernTestValueRetrievalID) + assert.Equal(t, fernTestValueRetrievalID, obj.RetrievalID) assert.NotNil(t, obj.explicitFields) }) @@ -21281,19 +21281,19 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueEntrypageId EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueExternalPaypointId ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -21401,11 +21401,11 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueDeviceId Device - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID Device + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) @@ -21425,11 +21425,11 @@ func TestSettersTransactionDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIpAddress", func(t *testing.T) { + t.Run("SetIPAddress", func(t *testing.T) { obj := &TransactionDetailRecord{} - var fernTestValueIpAddress IpAddress - obj.SetIpAddress(fernTestValueIpAddress) - assert.Equal(t, fernTestValueIpAddress, obj.IpAddress) + var fernTestValueIPAddress IPAddress + obj.SetIPAddress(fernTestValueIPAddress) + assert.Equal(t, fernTestValueIPAddress, obj.IPAddress) assert.NotNil(t, obj.explicitFields) }) @@ -21544,18 +21544,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} var expected string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -21564,7 +21564,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetConnectorName", func(t *testing.T) { @@ -21613,18 +21613,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetExternalProcessorInformation() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} var expected string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -21633,31 +21633,31 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -21666,7 +21666,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -21738,18 +21738,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetBatchAmount() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected PayorId - obj.PayorId = expected + var expected PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -21758,7 +21758,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -21817,18 +21817,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetTransStatus() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -21837,7 +21837,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -22034,18 +22034,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetScheduleReference() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} var expected Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22054,21 +22054,21 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected RefundId - obj.RefundId = expected + var expected RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22077,21 +22077,21 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected ReturnedId - obj.ReturnedId = expected + var expected ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22100,21 +22100,21 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) - t.Run("GetChargebackId", func(t *testing.T) { + t.Run("GetChargebackID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected ChargebackId - obj.ChargebackId = expected + var expected ChargebackID + obj.ChargebackID = expected // Act & Assert - assert.Equal(t, expected, obj.GetChargebackId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetChargebackID(), "getter should return the property value") }) - t.Run("GetChargebackId_NilReceiver", func(t *testing.T) { + t.Run("GetChargebackID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22123,21 +22123,21 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChargebackId() // Should return zero value + _ = obj.GetChargebackID() // Should return zero value }) - t.Run("GetRetrievalId", func(t *testing.T) { + t.Run("GetRetrievalID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected RetrievalId - obj.RetrievalId = expected + var expected RetrievalID + obj.RetrievalID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRetrievalId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRetrievalID(), "getter should return the property value") }) - t.Run("GetRetrievalId_NilReceiver", func(t *testing.T) { + t.Run("GetRetrievalID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22146,7 +22146,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRetrievalId() // Should return zero value + _ = obj.GetRetrievalID() // Should return zero value }) t.Run("GetTransAdditionalData", func(t *testing.T) { @@ -22205,18 +22205,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetInvoiceData() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected EntrypageId - obj.EntrypageId = expected + var expected EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22225,21 +22225,21 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected ExternalPaypointId - obj.ExternalPaypointId = expected + var expected ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22248,7 +22248,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetIsValidatedAch", func(t *testing.T) { @@ -22630,18 +22630,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetRiskActionCode() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} var expected Device - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22650,7 +22650,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) t.Run("GetAchSecCode", func(t *testing.T) { @@ -22699,18 +22699,18 @@ func TestGettersTransactionDetailRecord(t *testing.T) { _ = obj.GetAchHolderType() // Should return zero value }) - t.Run("GetIpAddress", func(t *testing.T) { + t.Run("GetIPAddress", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var expected IpAddress - obj.IpAddress = expected + var expected IPAddress + obj.IPAddress = expected // Act & Assert - assert.Equal(t, expected, obj.GetIpAddress(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIPAddress(), "getter should return the property value") }) - t.Run("GetIpAddress_NilReceiver", func(t *testing.T) { + t.Run("GetIPAddress_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -22719,7 +22719,7 @@ func TestGettersTransactionDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIpAddress() // Should return zero value + _ = obj.GetIPAddress() // Should return zero value }) t.Run("GetIsSameDayAch", func(t *testing.T) { @@ -22905,14 +22905,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValuePaymentTransId string + var fernTestValuePaymentTransID string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22998,14 +22998,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueGatewayTransId string + var fernTestValueGatewayTransID string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23029,14 +23029,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23153,14 +23153,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValuePayorId PayorId + var fernTestValuePayorID PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23246,14 +23246,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23525,14 +23525,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueOrgId Orgid + var fernTestValueOrgID Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23556,14 +23556,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueRefundId RefundId + var fernTestValueRefundID RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23587,14 +23587,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueReturnedId ReturnedId + var fernTestValueReturnedID ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23618,14 +23618,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChargebackId_MarksExplicit", func(t *testing.T) { + t.Run("SetChargebackID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueChargebackId ChargebackId + var fernTestValueChargebackID ChargebackID // Act - obj.SetChargebackId(fernTestValueChargebackId) + obj.SetChargebackID(fernTestValueChargebackID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23649,14 +23649,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRetrievalId_MarksExplicit", func(t *testing.T) { + t.Run("SetRetrievalID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueRetrievalId RetrievalId + var fernTestValueRetrievalID RetrievalID // Act - obj.SetRetrievalId(fernTestValueRetrievalId) + obj.SetRetrievalID(fernTestValueRetrievalID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23742,14 +23742,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueEntrypageId EntrypageId + var fernTestValueEntrypageID EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23773,14 +23773,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueExternalPaypointId ExternalPaypointId + var fernTestValueExternalPaypointID ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24207,14 +24207,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueDeviceId Device + var fernTestValueDeviceID Device // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24300,14 +24300,14 @@ func TestSettersMarkExplicitTransactionDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIpAddress_MarksExplicit", func(t *testing.T) { + t.Run("SetIPAddress_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailRecord{} - var fernTestValueIpAddress IpAddress + var fernTestValueIPAddress IPAddress // Act - obj.SetIpAddress(fernTestValueIpAddress) + obj.SetIPAddress(fernTestValueIPAddress) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24478,7 +24478,7 @@ func TestSettersTransactionDetailResponseData(t *testing.T) { t.Run("SetOrderid", func(t *testing.T) { obj := &TransactionDetailResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID obj.SetOrderid(fernTestValueOrderid) assert.Equal(t, fernTestValueOrderid, obj.Orderid) assert.NotNil(t, obj.explicitFields) @@ -24508,11 +24508,11 @@ func TestSettersTransactionDetailResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerVaultId", func(t *testing.T) { + t.Run("SetCustomerVaultID", func(t *testing.T) { obj := &TransactionDetailResponseData{} - var fernTestValueCustomerVaultId *string - obj.SetCustomerVaultId(fernTestValueCustomerVaultId) - assert.Equal(t, fernTestValueCustomerVaultId, obj.CustomerVaultId) + var fernTestValueCustomerVaultID *string + obj.SetCustomerVaultID(fernTestValueCustomerVaultID) + assert.Equal(t, fernTestValueCustomerVaultID, obj.CustomerVaultID) assert.NotNil(t, obj.explicitFields) }) @@ -24841,7 +24841,7 @@ func TestGettersTransactionDetailResponseData(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailResponseData{} - var expected *OrderId + var expected *OrderID obj.Orderid = expected // Act & Assert @@ -24949,28 +24949,28 @@ func TestGettersTransactionDetailResponseData(t *testing.T) { _ = obj.GetResponseCodeText() // Should return zero value }) - t.Run("GetCustomerVaultId", func(t *testing.T) { + t.Run("GetCustomerVaultID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailResponseData{} var expected *string - obj.CustomerVaultId = expected + obj.CustomerVaultID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerVaultId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerVaultID(), "getter should return the property value") }) - t.Run("GetCustomerVaultId_NilValue", func(t *testing.T) { + t.Run("GetCustomerVaultID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailResponseData{} - obj.CustomerVaultId = nil + obj.CustomerVaultID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerVaultId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerVaultID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerVaultId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerVaultID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionDetailResponseData // Should not panic - getters should handle nil receiver gracefully @@ -24979,7 +24979,7 @@ func TestGettersTransactionDetailResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerVaultId() // Should return zero value + _ = obj.GetCustomerVaultID() // Should return zero value }) t.Run("GetEmvAuthResponseData", func(t *testing.T) { @@ -25332,7 +25332,7 @@ func TestSettersMarkExplicitTransactionDetailResponseData(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID // Act obj.SetOrderid(fernTestValueOrderid) @@ -25452,14 +25452,14 @@ func TestSettersMarkExplicitTransactionDetailResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerVaultId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerVaultID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionDetailResponseData{} - var fernTestValueCustomerVaultId *string + var fernTestValueCustomerVaultID *string // Act - obj.SetCustomerVaultId(fernTestValueCustomerVaultId) + obj.SetCustomerVaultID(fernTestValueCustomerVaultID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25730,11 +25730,11 @@ func TestSettersValidateResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &ValidateResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -25770,19 +25770,19 @@ func TestSettersValidateResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &ValidateResponseData{} - var fernTestValueCustomerId Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &ValidateResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -25812,18 +25812,18 @@ func TestGettersValidateResponseData(t *testing.T) { _ = obj.GetAuthCode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ValidateResponseData // Should not panic - getters should handle nil receiver gracefully @@ -25832,7 +25832,7 @@ func TestGettersValidateResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -25927,18 +25927,18 @@ func TestGettersValidateResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} var expected Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ValidateResponseData // Should not panic - getters should handle nil receiver gracefully @@ -25947,31 +25947,31 @@ func TestGettersValidateResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ValidateResponseData // Should not panic - getters should handle nil receiver gracefully @@ -25980,7 +25980,7 @@ func TestGettersValidateResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -26017,14 +26017,14 @@ func TestSettersMarkExplicitValidateResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26172,14 +26172,14 @@ func TestSettersMarkExplicitValidateResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} - var fernTestValueCustomerId Customeridtrans + var fernTestValueCustomerID Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26203,14 +26203,14 @@ func TestSettersMarkExplicitValidateResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ValidateResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26253,11 +26253,11 @@ func TestSettersVoidResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &VoidResponse{} - var fernTestValueRoomId RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -26344,18 +26344,18 @@ func TestGettersVoidResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponse{} - var expected RoomIdNotInUse - obj.RoomId = expected + var expected RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VoidResponse // Should not panic - getters should handle nil receiver gracefully @@ -26364,7 +26364,7 @@ func TestGettersVoidResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -26511,14 +26511,14 @@ func TestSettersMarkExplicitVoidResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponse{} - var fernTestValueRoomId RoomIdNotInUse + var fernTestValueRoomID RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26646,11 +26646,11 @@ func TestSettersVoidResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &VoidResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -26686,19 +26686,19 @@ func TestSettersVoidResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &VoidResponseData{} - var fernTestValueCustomerId *Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &VoidResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -26728,18 +26728,18 @@ func TestGettersVoidResponseData(t *testing.T) { _ = obj.GetAuthCode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VoidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -26748,7 +26748,7 @@ func TestGettersVoidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -26863,28 +26863,28 @@ func TestGettersVoidResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} var expected *Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VoidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -26893,31 +26893,31 @@ func TestGettersVoidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VoidResponseData // Should not panic - getters should handle nil receiver gracefully @@ -26926,7 +26926,7 @@ func TestGettersVoidResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -26963,14 +26963,14 @@ func TestSettersMarkExplicitVoidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27118,14 +27118,14 @@ func TestSettersMarkExplicitVoidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - var fernTestValueCustomerId *Customeridtrans + var fernTestValueCustomerID *Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27149,14 +27149,14 @@ func TestSettersMarkExplicitVoidResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VoidResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27593,11 +27593,11 @@ func TestJSONMarshalingPayMethodStoredMethod(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponse0(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse0(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -27606,31 +27606,31 @@ func TestJSONMarshalingPayabliApiResponse0(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse0 + var unmarshaled PayabliAPIResponse0 err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0 + var obj PayabliAPIResponse0 err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0 + var obj PayabliAPIResponse0 err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseGetPaid(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseGetPaid(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -27639,21 +27639,21 @@ func TestJSONMarshalingPayabliApiResponseGetPaid(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseGetPaid + var unmarshaled PayabliAPIResponseGetPaid err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseGetPaid + var obj PayabliAPIResponseGetPaid err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseGetPaid + var obj PayabliAPIResponseGetPaid err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -28653,33 +28653,33 @@ func TestStringPayMethodStoredMethod(t *testing.T) { }) } -func TestStringPayabliApiResponse0(t *testing.T) { +func TestStringPayabliAPIResponse0(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseGetPaid(t *testing.T) { +func TestStringPayabliAPIResponseGetPaid(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -29505,10 +29505,10 @@ func TestExtraPropertiesPayMethodStoredMethod(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponse0(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse0(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0{} + obj := &PayabliAPIResponse0{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -29522,16 +29522,16 @@ func TestExtraPropertiesPayabliApiResponse0(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0 + var obj *PayabliAPIResponse0 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseGetPaid(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseGetPaid(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseGetPaid{} + obj := &PayabliAPIResponseGetPaid{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -29545,7 +29545,7 @@ func TestExtraPropertiesPayabliApiResponseGetPaid(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGetPaid + var obj *PayabliAPIResponseGetPaid extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/money_out.go b/money_out.go index 3af0075..f17743b 100644 --- a/money_out.go +++ b/money_out.go @@ -145,13 +145,13 @@ func (c *CaptureOutRequest) SetIdempotencyKey(idempotencyKey *IdempotencyKey) { var ( reissueOutRequestFieldIdempotencyKey = big.NewInt(1 << 0) - reissueOutRequestFieldTransId = big.NewInt(1 << 1) + reissueOutRequestFieldTransID = big.NewInt(1 << 1) ) type ReissueOutRequest struct { IdempotencyKey *IdempotencyKey `json:"-" url:"-"` // The transaction ID of the payout to reissue. - TransId string `json:"-" url:"transId"` + TransID string `json:"-" url:"transId"` Body *ReissuePayoutBody `json:"-" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -172,11 +172,11 @@ func (r *ReissueOutRequest) SetIdempotencyKey(idempotencyKey *IdempotencyKey) { r.require(reissueOutRequestFieldIdempotencyKey) } -// SetTransId sets the TransId field and marks it as non-optional; +// SetTransID sets the TransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ReissueOutRequest) SetTransId(transId string) { - r.TransId = transId - r.require(reissueOutRequestFieldTransId) +func (r *ReissueOutRequest) SetTransID(transID string) { + r.TransID = transID + r.require(reissueOutRequestFieldTransID) } func (r *ReissueOutRequest) UnmarshalJSON(data []byte) error { @@ -193,12 +193,12 @@ func (r *ReissueOutRequest) MarshalJSON() ([]byte, error) { } var ( - sendVCardLinkRequestFieldTransId = big.NewInt(1 << 0) + sendVCardLinkRequestFieldTransID = big.NewInt(1 << 0) ) type SendVCardLinkRequest struct { // The transaction ID of the virtual card payout. The ID is returned as `ReferenceId` in the response when you authorize a payout with POST /MoneyOut/authorize. - TransId string `json:"transId" url:"-"` + TransID string `json:"transId" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -211,11 +211,11 @@ func (s *SendVCardLinkRequest) require(field *big.Int) { s.explicitFields.Or(s.explicitFields, field) } -// SetTransId sets the TransId field and marks it as non-optional; +// SetTransID sets the TransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SendVCardLinkRequest) SetTransId(transId string) { - s.TransId = transId - s.require(sendVCardLinkRequestFieldTransId) +func (s *SendVCardLinkRequest) SetTransID(transID string) { + s.TransID = transID + s.require(sendVCardLinkRequestFieldTransID) } func (s *SendVCardLinkRequest) UnmarshalJSON(data []byte) error { @@ -252,14 +252,14 @@ var ( billDetailResponseFieldEvents = big.NewInt(1 << 6) billDetailResponseFieldFeeAmount = big.NewInt(1 << 7) billDetailResponseFieldGateway = big.NewInt(1 << 8) - billDetailResponseFieldIdOut = big.NewInt(1 << 9) + billDetailResponseFieldIDOut = big.NewInt(1 << 9) billDetailResponseFieldLastUpdated = big.NewInt(1 << 10) billDetailResponseFieldNetAmount = big.NewInt(1 << 11) billDetailResponseFieldParentOrgName = big.NewInt(1 << 12) - billDetailResponseFieldParentOrgId = big.NewInt(1 << 13) + billDetailResponseFieldParentOrgID = big.NewInt(1 << 13) billDetailResponseFieldPaymentData = big.NewInt(1 << 14) billDetailResponseFieldPaymentGroup = big.NewInt(1 << 15) - billDetailResponseFieldPaymentId = big.NewInt(1 << 16) + billDetailResponseFieldPaymentID = big.NewInt(1 << 16) billDetailResponseFieldPaymentMethod = big.NewInt(1 << 17) billDetailResponseFieldPaymentStatus = big.NewInt(1 << 18) billDetailResponseFieldPaypointDbaname = big.NewInt(1 << 19) @@ -269,12 +269,12 @@ var ( billDetailResponseFieldStatusText = big.NewInt(1 << 23) billDetailResponseFieldTotalAmount = big.NewInt(1 << 24) billDetailResponseFieldVendor = big.NewInt(1 << 25) - billDetailResponseFieldExternalPaypointId = big.NewInt(1 << 26) + billDetailResponseFieldExternalPaypointID = big.NewInt(1 << 26) billDetailResponseFieldEntryName = big.NewInt(1 << 27) - billDetailResponseFieldBatchId = big.NewInt(1 << 28) + billDetailResponseFieldBatchID = big.NewInt(1 << 28) billDetailResponseFieldHasVcardTransactions = big.NewInt(1 << 29) billDetailResponseFieldIsSameDayAch = big.NewInt(1 << 30) - billDetailResponseFieldScheduleId = big.NewInt(1 << 31) + billDetailResponseFieldScheduleID = big.NewInt(1 << 31) billDetailResponseFieldSettlementStatus = big.NewInt(1 << 32) billDetailResponseFieldRiskFlagged = big.NewInt(1 << 33) billDetailResponseFieldRiskFlaggedOn = big.NewInt(1 << 34) @@ -301,16 +301,16 @@ type BillDetailResponse struct { FeeAmount *FeeAmount `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` Gateway *Gatewayfield `json:"Gateway,omitempty" url:"Gateway,omitempty"` // Identifier of payout transaction. - IdOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` + IDOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` // Timestamp when payment record was updated, in UTC. LastUpdated *LastModified `json:"LastUpdated,omitempty" url:"LastUpdated,omitempty"` NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Unique identifier for group or batch containing the transaction. PaymentGroup *string `json:"PaymentGroup,omitempty" url:"PaymentGroup,omitempty"` - PaymentId *PaymentIdString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *PaymentIDString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` // Method of payment applied to the transaction. PaymentMethod *string `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` // Status of payout transaction. @@ -339,13 +339,13 @@ type BillDetailResponse struct { TotalAmount *float64 `json:"TotalAmount,omitempty" url:"TotalAmount,omitempty"` // Vendor related to the payout transaction. Vendor *VendorQueryRecord `json:"Vendor,omitempty" url:"Vendor,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` EntryName *Entry `json:"EntryName,omitempty" url:"EntryName,omitempty"` // Identifier for the batch in which this transaction was processed. Used to track and reconcile batch-level operations. - BatchId *string `json:"BatchId,omitempty" url:"BatchId,omitempty"` + BatchID *string `json:"BatchId,omitempty" url:"BatchId,omitempty"` HasVcardTransactions *HasVcardTransactions `json:"HasVcardTransactions,omitempty" url:"HasVcardTransactions,omitempty"` IsSameDayAch *IsSameDayAch `json:"IsSameDayACH,omitempty" url:"IsSameDayACH,omitempty"` - ScheduleId *ScheduleId `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` + ScheduleID *ScheduleID `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` SettlementStatus *SettlementStatus `json:"SettlementStatus,omitempty" url:"SettlementStatus,omitempty"` RiskFlagged *RiskFlagged `json:"RiskFlagged,omitempty" url:"RiskFlagged,omitempty"` RiskFlaggedOn *RiskFlaggedOn `json:"RiskFlaggedOn,omitempty" url:"RiskFlaggedOn,omitempty"` @@ -424,11 +424,11 @@ func (b *BillDetailResponse) GetGateway() *Gatewayfield { return b.Gateway } -func (b *BillDetailResponse) GetIdOut() *int64 { +func (b *BillDetailResponse) GetIDOut() *int64 { if b == nil { return nil } - return b.IdOut + return b.IDOut } func (b *BillDetailResponse) GetLastUpdated() *LastModified { @@ -452,11 +452,11 @@ func (b *BillDetailResponse) GetParentOrgName() *OrgParentName { return b.ParentOrgName } -func (b *BillDetailResponse) GetParentOrgId() *OrgParentId { +func (b *BillDetailResponse) GetParentOrgID() *OrgParentID { if b == nil { return nil } - return b.ParentOrgId + return b.ParentOrgID } func (b *BillDetailResponse) GetPaymentData() *QueryPaymentData { @@ -473,11 +473,11 @@ func (b *BillDetailResponse) GetPaymentGroup() *string { return b.PaymentGroup } -func (b *BillDetailResponse) GetPaymentId() *PaymentIdString { +func (b *BillDetailResponse) GetPaymentID() *PaymentIDString { if b == nil { return nil } - return b.PaymentId + return b.PaymentID } func (b *BillDetailResponse) GetPaymentMethod() *string { @@ -543,11 +543,11 @@ func (b *BillDetailResponse) GetVendor() *VendorQueryRecord { return b.Vendor } -func (b *BillDetailResponse) GetExternalPaypointId() *ExternalPaypointId { +func (b *BillDetailResponse) GetExternalPaypointID() *ExternalPaypointID { if b == nil { return nil } - return b.ExternalPaypointId + return b.ExternalPaypointID } func (b *BillDetailResponse) GetEntryName() *Entry { @@ -557,11 +557,11 @@ func (b *BillDetailResponse) GetEntryName() *Entry { return b.EntryName } -func (b *BillDetailResponse) GetBatchId() *string { +func (b *BillDetailResponse) GetBatchID() *string { if b == nil { return nil } - return b.BatchId + return b.BatchID } func (b *BillDetailResponse) GetHasVcardTransactions() *HasVcardTransactions { @@ -578,11 +578,11 @@ func (b *BillDetailResponse) GetIsSameDayAch() *IsSameDayAch { return b.IsSameDayAch } -func (b *BillDetailResponse) GetScheduleId() *ScheduleId { +func (b *BillDetailResponse) GetScheduleID() *ScheduleID { if b == nil { return nil } - return b.ScheduleId + return b.ScheduleID } func (b *BillDetailResponse) GetSettlementStatus() *SettlementStatus { @@ -711,11 +711,11 @@ func (b *BillDetailResponse) SetGateway(gateway *Gatewayfield) { b.require(billDetailResponseFieldGateway) } -// SetIdOut sets the IdOut field and marks it as non-optional; +// SetIDOut sets the IDOut field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetIdOut(idOut *int64) { - b.IdOut = idOut - b.require(billDetailResponseFieldIdOut) +func (b *BillDetailResponse) SetIDOut(idOut *int64) { + b.IDOut = idOut + b.require(billDetailResponseFieldIDOut) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -739,11 +739,11 @@ func (b *BillDetailResponse) SetParentOrgName(parentOrgName *OrgParentName) { b.require(billDetailResponseFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetParentOrgId(parentOrgId *OrgParentId) { - b.ParentOrgId = parentOrgId - b.require(billDetailResponseFieldParentOrgId) +func (b *BillDetailResponse) SetParentOrgID(parentOrgID *OrgParentID) { + b.ParentOrgID = parentOrgID + b.require(billDetailResponseFieldParentOrgID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -760,11 +760,11 @@ func (b *BillDetailResponse) SetPaymentGroup(paymentGroup *string) { b.require(billDetailResponseFieldPaymentGroup) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetPaymentId(paymentId *PaymentIdString) { - b.PaymentId = paymentId - b.require(billDetailResponseFieldPaymentId) +func (b *BillDetailResponse) SetPaymentID(paymentID *PaymentIDString) { + b.PaymentID = paymentID + b.require(billDetailResponseFieldPaymentID) } // SetPaymentMethod sets the PaymentMethod field and marks it as non-optional; @@ -830,11 +830,11 @@ func (b *BillDetailResponse) SetVendor(vendor_ *VendorQueryRecord) { b.require(billDetailResponseFieldVendor) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - b.ExternalPaypointId = externalPaypointId - b.require(billDetailResponseFieldExternalPaypointId) +func (b *BillDetailResponse) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + b.ExternalPaypointID = externalPaypointID + b.require(billDetailResponseFieldExternalPaypointID) } // SetEntryName sets the EntryName field and marks it as non-optional; @@ -844,11 +844,11 @@ func (b *BillDetailResponse) SetEntryName(entryName *Entry) { b.require(billDetailResponseFieldEntryName) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetBatchId(batchId *string) { - b.BatchId = batchId - b.require(billDetailResponseFieldBatchId) +func (b *BillDetailResponse) SetBatchID(batchID *string) { + b.BatchID = batchID + b.require(billDetailResponseFieldBatchID) } // SetHasVcardTransactions sets the HasVcardTransactions field and marks it as non-optional; @@ -865,11 +865,11 @@ func (b *BillDetailResponse) SetIsSameDayAch(isSameDayAch *IsSameDayAch) { b.require(billDetailResponseFieldIsSameDayAch) } -// SetScheduleId sets the ScheduleId field and marks it as non-optional; +// SetScheduleID sets the ScheduleID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailResponse) SetScheduleId(scheduleId *ScheduleId) { - b.ScheduleId = scheduleId - b.require(billDetailResponseFieldScheduleId) +func (b *BillDetailResponse) SetScheduleID(scheduleID *ScheduleID) { + b.ScheduleID = scheduleID + b.require(billDetailResponseFieldScheduleID) } // SetSettlementStatus sets the SettlementStatus field and marks it as non-optional; @@ -985,7 +985,7 @@ func (b *BillDetailResponse) String() string { // Response object for bill details. Contains basic information about a bill. var ( - billDetailsResponseFieldBillId = big.NewInt(1 << 0) + billDetailsResponseFieldBillID = big.NewInt(1 << 0) billDetailsResponseFieldLotNumber = big.NewInt(1 << 1) billDetailsResponseFieldInvoiceNumber = big.NewInt(1 << 2) billDetailsResponseFieldNetAmount = big.NewInt(1 << 3) @@ -996,7 +996,7 @@ var ( ) type BillDetailsResponse struct { - BillId *BillId `json:"billId,omitempty" url:"billId,omitempty"` + BillID *BillID `json:"billId,omitempty" url:"billId,omitempty"` // Lot number of the bill. LotNumber *string `json:"lotNumber,omitempty" url:"lotNumber,omitempty"` // Custom number identifying the bill. @@ -1019,11 +1019,11 @@ type BillDetailsResponse struct { rawJSON json.RawMessage } -func (b *BillDetailsResponse) GetBillId() *BillId { +func (b *BillDetailsResponse) GetBillID() *BillID { if b == nil { return nil } - return b.BillId + return b.BillID } func (b *BillDetailsResponse) GetLotNumber() *string { @@ -1089,11 +1089,11 @@ func (b *BillDetailsResponse) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillDetailsResponse) SetBillId(billId *BillId) { - b.BillId = billId - b.require(billDetailsResponseFieldBillId) +func (b *BillDetailsResponse) SetBillID(billID *BillID) { + b.BillID = billID + b.require(billDetailsResponseFieldBillID) } // SetLotNumber sets the LotNumber field and marks it as non-optional; @@ -1201,19 +1201,19 @@ func (b *BillDetailsResponse) String() string { // The response for canceling a single payout transaction. var ( - payabliApiResponse0000FieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponse0000FieldResponseText = big.NewInt(1 << 1) - payabliApiResponse0000FieldPageIdentifier = big.NewInt(1 << 2) - payabliApiResponse0000FieldResponseCode = big.NewInt(1 << 3) - payabliApiResponse0000FieldResponseData = big.NewInt(1 << 4) + payabliAPIResponse0000FieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponse0000FieldResponseText = big.NewInt(1 << 1) + payabliAPIResponse0000FieldPageIdentifier = big.NewInt(1 << 2) + payabliAPIResponse0000FieldResponseCode = big.NewInt(1 << 3) + payabliAPIResponse0000FieldResponseData = big.NewInt(1 << 4) ) -type PayabliApiResponse0000 struct { +type PayabliAPIResponse0000 struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` - ResponseData *PayabliApiResponse0ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponse0ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1222,49 +1222,49 @@ type PayabliApiResponse0000 struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse0000) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse0000) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse0000) GetResponseText() ResponseText { +func (p *PayabliAPIResponse0000) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse0000) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponse0000) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponse0000) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponse0000) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponse0000) GetResponseData() *PayabliApiResponse0ResponseData { +func (p *PayabliAPIResponse0000) GetResponseData() *PayabliAPIResponse0ResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse0000) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse0000) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse0000) require(field *big.Int) { +func (p *PayabliAPIResponse0000) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -1273,46 +1273,46 @@ func (p *PayabliApiResponse0000) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0000) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse0000) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponse0000FieldIsSuccess) + p.require(payabliAPIResponse0000FieldIsSuccess) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0000) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse0000) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponse0000FieldResponseText) + p.require(payabliAPIResponse0000FieldResponseText) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0000) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponse0000) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponse0000FieldPageIdentifier) + p.require(payabliAPIResponse0000FieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0000) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponse0000) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponse0000FieldResponseCode) + p.require(payabliAPIResponse0000FieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0000) SetResponseData(responseData *PayabliApiResponse0ResponseData) { +func (p *PayabliAPIResponse0000) SetResponseData(responseData *PayabliAPIResponse0ResponseData) { p.ResponseData = responseData - p.require(payabliApiResponse0000FieldResponseData) + p.require(payabliAPIResponse0000FieldResponseData) } -func (p *PayabliApiResponse0000) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse0000 +func (p *PayabliAPIResponse0000) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse0000 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse0000(value) + *p = PayabliAPIResponse0000(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -1322,8 +1322,8 @@ func (p *PayabliApiResponse0000) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse0000) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse0000 +func (p *PayabliAPIResponse0000) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse0000 var marshaler = struct { embed }{ @@ -1333,7 +1333,7 @@ func (p *PayabliApiResponse0000) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse0000) String() string { +func (p *PayabliAPIResponse0000) String() string { if p == nil { return "" } diff --git a/money_out_test.go b/money_out_test.go index 52ec833..727ab77 100644 --- a/money_out_test.go +++ b/money_out_test.go @@ -271,11 +271,11 @@ func TestSettersReissueOutRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransId", func(t *testing.T) { + t.Run("SetTransID", func(t *testing.T) { obj := &ReissueOutRequest{} - var fernTestValueTransId string - obj.SetTransId(fernTestValueTransId) - assert.Equal(t, fernTestValueTransId, obj.TransId) + var fernTestValueTransID string + obj.SetTransID(fernTestValueTransID) + assert.Equal(t, fernTestValueTransID, obj.TransID) assert.NotNil(t, obj.explicitFields) }) @@ -313,14 +313,14 @@ func TestSettersMarkExplicitReissueOutRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissueOutRequest{} - var fernTestValueTransId string + var fernTestValueTransID string // Act - obj.SetTransId(fernTestValueTransId) + obj.SetTransID(fernTestValueTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -347,25 +347,25 @@ func TestSettersMarkExplicitReissueOutRequest(t *testing.T) { } func TestSettersSendVCardLinkRequest(t *testing.T) { - t.Run("SetTransId", func(t *testing.T) { + t.Run("SetTransID", func(t *testing.T) { obj := &SendVCardLinkRequest{} - var fernTestValueTransId string - obj.SetTransId(fernTestValueTransId) - assert.Equal(t, fernTestValueTransId, obj.TransId) + var fernTestValueTransID string + obj.SetTransID(fernTestValueTransID) + assert.Equal(t, fernTestValueTransID, obj.TransID) assert.NotNil(t, obj.explicitFields) }) } func TestSettersMarkExplicitSendVCardLinkRequest(t *testing.T) { - t.Run("SetTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SendVCardLinkRequest{} - var fernTestValueTransId string + var fernTestValueTransID string // Act - obj.SetTransId(fernTestValueTransId) + obj.SetTransID(fernTestValueTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -464,11 +464,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdOut", func(t *testing.T) { + t.Run("SetIDOut", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValueIdOut *int64 - obj.SetIdOut(fernTestValueIdOut) - assert.Equal(t, fernTestValueIdOut, obj.IdOut) + var fernTestValueIDOut *int64 + obj.SetIDOut(fernTestValueIDOut) + assert.Equal(t, fernTestValueIDOut, obj.IDOut) assert.NotNil(t, obj.explicitFields) }) @@ -496,11 +496,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -520,11 +520,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValuePaymentId *PaymentIdString - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *PaymentIDString + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) @@ -600,11 +600,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -616,11 +616,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValueBatchId *string - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID *string + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -640,11 +640,11 @@ func TestSettersBillDetailResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScheduleId", func(t *testing.T) { + t.Run("SetScheduleID", func(t *testing.T) { obj := &BillDetailResponse{} - var fernTestValueScheduleId *ScheduleId - obj.SetScheduleId(fernTestValueScheduleId) - assert.Equal(t, fernTestValueScheduleId, obj.ScheduleId) + var fernTestValueScheduleID *ScheduleID + obj.SetScheduleID(fernTestValueScheduleID) + assert.Equal(t, fernTestValueScheduleID, obj.ScheduleID) assert.NotNil(t, obj.explicitFields) }) @@ -1004,28 +1004,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetGateway() // Should return zero value }) - t.Run("GetIdOut", func(t *testing.T) { + t.Run("GetIDOut", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} var expected *int64 - obj.IdOut = expected + obj.IDOut = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOut(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOut(), "getter should return the property value") }) - t.Run("GetIdOut_NilValue", func(t *testing.T) { + t.Run("GetIDOut_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.IdOut = nil + obj.IDOut = nil // Act & Assert - assert.Nil(t, obj.GetIdOut(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOut(), "getter should return nil when property is nil") }) - t.Run("GetIdOut_NilReceiver", func(t *testing.T) { + t.Run("GetIDOut_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1034,7 +1034,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOut() // Should return zero value + _ = obj.GetIDOut() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -1136,28 +1136,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1166,7 +1166,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -1235,28 +1235,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetPaymentGroup() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var expected *PaymentIdString - obj.PaymentId = expected + var expected *PaymentIDString + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1265,7 +1265,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) t.Run("GetPaymentMethod", func(t *testing.T) { @@ -1565,28 +1565,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetVendor() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1595,7 +1595,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetEntryName", func(t *testing.T) { @@ -1631,28 +1631,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetEntryName() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} var expected *string - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilValue", func(t *testing.T) { + t.Run("GetBatchID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.BatchId = nil + obj.BatchID = nil // Act & Assert - assert.Nil(t, obj.GetBatchId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBatchID(), "getter should return nil when property is nil") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1661,7 +1661,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetHasVcardTransactions", func(t *testing.T) { @@ -1730,28 +1730,28 @@ func TestGettersBillDetailResponse(t *testing.T) { _ = obj.GetIsSameDayAch() // Should return zero value }) - t.Run("GetScheduleId", func(t *testing.T) { + t.Run("GetScheduleID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var expected *ScheduleId - obj.ScheduleId = expected + var expected *ScheduleID + obj.ScheduleID = expected // Act & Assert - assert.Equal(t, expected, obj.GetScheduleId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScheduleID(), "getter should return the property value") }) - t.Run("GetScheduleId_NilValue", func(t *testing.T) { + t.Run("GetScheduleID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - obj.ScheduleId = nil + obj.ScheduleID = nil // Act & Assert - assert.Nil(t, obj.GetScheduleId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScheduleID(), "getter should return nil when property is nil") }) - t.Run("GetScheduleId_NilReceiver", func(t *testing.T) { + t.Run("GetScheduleID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailResponse // Should not panic - getters should handle nil receiver gracefully @@ -1760,7 +1760,7 @@ func TestGettersBillDetailResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScheduleId() // Should return zero value + _ = obj.GetScheduleID() // Should return zero value }) t.Run("GetSettlementStatus", func(t *testing.T) { @@ -2276,14 +2276,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdOut_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOut_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValueIdOut *int64 + var fernTestValueIDOut *int64 // Act - obj.SetIdOut(fernTestValueIdOut) + obj.SetIDOut(fernTestValueIDOut) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2400,14 +2400,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2493,14 +2493,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValuePaymentId *PaymentIdString + var fernTestValuePaymentID *PaymentIDString // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2803,14 +2803,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2865,14 +2865,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValueBatchId *string + var fernTestValueBatchID *string // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2958,14 +2958,14 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScheduleId_MarksExplicit", func(t *testing.T) { + t.Run("SetScheduleID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailResponse{} - var fernTestValueScheduleId *ScheduleId + var fernTestValueScheduleID *ScheduleID // Act - obj.SetScheduleId(fernTestValueScheduleId) + obj.SetScheduleID(fernTestValueScheduleID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3209,11 +3209,11 @@ func TestSettersMarkExplicitBillDetailResponse(t *testing.T) { } func TestSettersBillDetailsResponse(t *testing.T) { - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &BillDetailsResponse{} - var fernTestValueBillId *BillId - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *BillID + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -3276,28 +3276,28 @@ func TestSettersBillDetailsResponse(t *testing.T) { } func TestGettersBillDetailsResponse(t *testing.T) { - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailsResponse{} - var expected *BillId - obj.BillId = expected + var expected *BillID + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailsResponse{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillDetailsResponse // Should not panic - getters should handle nil receiver gracefully @@ -3306,7 +3306,7 @@ func TestGettersBillDetailsResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetLotNumber", func(t *testing.T) { @@ -3543,14 +3543,14 @@ func TestGettersBillDetailsResponse(t *testing.T) { } func TestSettersMarkExplicitBillDetailsResponse(t *testing.T) { - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillDetailsResponse{} - var fernTestValueBillId *BillId + var fernTestValueBillID *BillID // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3793,9 +3793,9 @@ func TestSettersMarkExplicitBillDetailsResponse(t *testing.T) { } -func TestSettersPayabliApiResponse0000(t *testing.T) { +func TestSettersPayabliAPIResponse0000(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -3803,7 +3803,7 @@ func TestSettersPayabliApiResponse0000(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -3811,7 +3811,7 @@ func TestSettersPayabliApiResponse0000(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -3819,7 +3819,7 @@ func TestSettersPayabliApiResponse0000(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -3827,8 +3827,8 @@ func TestSettersPayabliApiResponse0000(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse0000{} - var fernTestValueResponseData *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0000{} + var fernTestValueResponseData *PayabliAPIResponse0ResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) @@ -3836,11 +3836,11 @@ func TestSettersPayabliApiResponse0000(t *testing.T) { } -func TestGettersPayabliApiResponse0000(t *testing.T) { +func TestGettersPayabliAPIResponse0000(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var expected *IsSuccess obj.IsSuccess = expected @@ -3851,7 +3851,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} obj.IsSuccess = nil // Act & Assert @@ -3860,7 +3860,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3873,7 +3873,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var expected ResponseText obj.ResponseText = expected @@ -3883,7 +3883,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3896,7 +3896,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -3907,7 +3907,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} obj.PageIdentifier = nil // Act & Assert @@ -3916,7 +3916,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3929,7 +3929,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var expected *Responsecode obj.ResponseCode = expected @@ -3940,7 +3940,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} obj.ResponseCode = nil // Act & Assert @@ -3949,7 +3949,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3962,8 +3962,8 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} - var expected *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0000{} + var expected *PayabliAPIResponse0ResponseData obj.ResponseData = expected // Act & Assert @@ -3973,7 +3973,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} obj.ResponseData = nil // Act & Assert @@ -3982,7 +3982,7 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3994,11 +3994,11 @@ func TestGettersPayabliApiResponse0000(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse0000(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse0000(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueIsSuccess *IsSuccess // Act @@ -4029,7 +4029,7 @@ func TestSettersMarkExplicitPayabliApiResponse0000(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueResponseText ResponseText // Act @@ -4060,7 +4060,7 @@ func TestSettersMarkExplicitPayabliApiResponse0000(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -4091,7 +4091,7 @@ func TestSettersMarkExplicitPayabliApiResponse0000(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} var fernTestValueResponseCode *Responsecode // Act @@ -4122,8 +4122,8 @@ func TestSettersMarkExplicitPayabliApiResponse0000(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} - var fernTestValueResponseData *PayabliApiResponse0ResponseData + obj := &PayabliAPIResponse0000{} + var fernTestValueResponseData *PayabliAPIResponse0ResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -4218,11 +4218,11 @@ func TestJSONMarshalingBillDetailsResponse(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponse0000(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse0000(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4231,21 +4231,21 @@ func TestJSONMarshalingPayabliApiResponse0000(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse0000 + var unmarshaled PayabliAPIResponse0000 err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0000 + var obj PayabliAPIResponse0000 err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0000 + var obj PayabliAPIResponse0000 err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4283,17 +4283,17 @@ func TestStringBillDetailsResponse(t *testing.T) { }) } -func TestStringPayabliApiResponse0000(t *testing.T) { +func TestStringPayabliAPIResponse0000(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4345,10 +4345,10 @@ func TestExtraPropertiesBillDetailsResponse(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponse0000(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse0000(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0000{} + obj := &PayabliAPIResponse0000{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4362,7 +4362,7 @@ func TestExtraPropertiesPayabliApiResponse0000(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0000 + var obj *PayabliAPIResponse0000 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/money_out_types.go b/money_out_types.go index 7078a69..2a768a3 100644 --- a/money_out_types.go +++ b/money_out_types.go @@ -38,7 +38,7 @@ func (a AllowedCheckPaymentStatus) Ptr() *AllowedCheckPaymentStatus { var ( authCapturePayoutResponseFieldResponseCode = big.NewInt(1 << 0) authCapturePayoutResponseFieldPageIdentifier = big.NewInt(1 << 1) - authCapturePayoutResponseFieldRoomId = big.NewInt(1 << 2) + authCapturePayoutResponseFieldRoomID = big.NewInt(1 << 2) authCapturePayoutResponseFieldIsSuccess = big.NewInt(1 << 3) authCapturePayoutResponseFieldResponseText = big.NewInt(1 << 4) authCapturePayoutResponseFieldResponseData = big.NewInt(1 << 5) @@ -47,7 +47,7 @@ var ( type AuthCapturePayoutResponse struct { ResponseCode Responsecode `json:"responseCode" url:"responseCode"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId RoomIdNotInUse `json:"roomId" url:"roomId"` + RoomID RoomIDNotInUse `json:"roomId" url:"roomId"` IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *AuthCapturePayoutResponseData `json:"responseData" url:"responseData"` @@ -73,11 +73,11 @@ func (a *AuthCapturePayoutResponse) GetPageIdentifier() *PageIdentifier { return a.PageIdentifier } -func (a *AuthCapturePayoutResponse) GetRoomId() RoomIdNotInUse { +func (a *AuthCapturePayoutResponse) GetRoomID() RoomIDNotInUse { if a == nil { return 0 } - return a.RoomId + return a.RoomID } func (a *AuthCapturePayoutResponse) GetIsSuccess() IsSuccess { @@ -129,11 +129,11 @@ func (a *AuthCapturePayoutResponse) SetPageIdentifier(pageIdentifier *PageIdenti a.require(authCapturePayoutResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthCapturePayoutResponse) SetRoomId(roomId RoomIdNotInUse) { - a.RoomId = roomId - a.require(authCapturePayoutResponseFieldRoomId) +func (a *AuthCapturePayoutResponse) SetRoomID(roomID RoomIDNotInUse) { + a.RoomID = roomID + a.require(authCapturePayoutResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -201,24 +201,24 @@ func (a *AuthCapturePayoutResponse) String() string { var ( authCapturePayoutResponseDataFieldAuthCode = big.NewInt(1 << 0) - authCapturePayoutResponseDataFieldReferenceId = big.NewInt(1 << 1) + authCapturePayoutResponseDataFieldReferenceID = big.NewInt(1 << 1) authCapturePayoutResponseDataFieldResultCode = big.NewInt(1 << 2) authCapturePayoutResponseDataFieldResultText = big.NewInt(1 << 3) authCapturePayoutResponseDataFieldAvsResponseText = big.NewInt(1 << 4) authCapturePayoutResponseDataFieldCvvResponseText = big.NewInt(1 << 5) - authCapturePayoutResponseDataFieldCustomerId = big.NewInt(1 << 6) - authCapturePayoutResponseDataFieldMethodReferenceId = big.NewInt(1 << 7) + authCapturePayoutResponseDataFieldCustomerID = big.NewInt(1 << 6) + authCapturePayoutResponseDataFieldMethodReferenceID = big.NewInt(1 << 7) ) type AuthCapturePayoutResponseData struct { AuthCode *Authcode `json:"authCode,omitempty" url:"authCode,omitempty"` - ReferenceId Referenceidtrans `json:"referenceId" url:"referenceId"` + ReferenceID Referenceidtrans `json:"referenceId" url:"referenceId"` ResultCode ResultCode `json:"resultCode" url:"resultCode"` ResultText Resulttext `json:"resultText" url:"resultText"` AvsResponseText *AvsResponseText `json:"avsResponseText,omitempty" url:"avsResponseText,omitempty"` CvvResponseText *CvvResponseText `json:"cvvResponseText,omitempty" url:"cvvResponseText,omitempty"` - CustomerId Customeridtrans `json:"customerId" url:"customerId"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID Customeridtrans `json:"customerId" url:"customerId"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -234,11 +234,11 @@ func (a *AuthCapturePayoutResponseData) GetAuthCode() *Authcode { return a.AuthCode } -func (a *AuthCapturePayoutResponseData) GetReferenceId() Referenceidtrans { +func (a *AuthCapturePayoutResponseData) GetReferenceID() Referenceidtrans { if a == nil { return "" } - return a.ReferenceId + return a.ReferenceID } func (a *AuthCapturePayoutResponseData) GetResultCode() ResultCode { @@ -269,18 +269,18 @@ func (a *AuthCapturePayoutResponseData) GetCvvResponseText() *CvvResponseText { return a.CvvResponseText } -func (a *AuthCapturePayoutResponseData) GetCustomerId() Customeridtrans { +func (a *AuthCapturePayoutResponseData) GetCustomerID() Customeridtrans { if a == nil { return 0 } - return a.CustomerId + return a.CustomerID } -func (a *AuthCapturePayoutResponseData) GetMethodReferenceId() *MethodReferenceId { +func (a *AuthCapturePayoutResponseData) GetMethodReferenceID() *MethodReferenceID { if a == nil { return nil } - return a.MethodReferenceId + return a.MethodReferenceID } func (a *AuthCapturePayoutResponseData) GetExtraProperties() map[string]interface{} { @@ -304,11 +304,11 @@ func (a *AuthCapturePayoutResponseData) SetAuthCode(authCode *Authcode) { a.require(authCapturePayoutResponseDataFieldAuthCode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthCapturePayoutResponseData) SetReferenceId(referenceId Referenceidtrans) { - a.ReferenceId = referenceId - a.require(authCapturePayoutResponseDataFieldReferenceId) +func (a *AuthCapturePayoutResponseData) SetReferenceID(referenceID Referenceidtrans) { + a.ReferenceID = referenceID + a.require(authCapturePayoutResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -339,18 +339,18 @@ func (a *AuthCapturePayoutResponseData) SetCvvResponseText(cvvResponseText *CvvR a.require(authCapturePayoutResponseDataFieldCvvResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthCapturePayoutResponseData) SetCustomerId(customerId Customeridtrans) { - a.CustomerId = customerId - a.require(authCapturePayoutResponseDataFieldCustomerId) +func (a *AuthCapturePayoutResponseData) SetCustomerID(customerID Customeridtrans) { + a.CustomerID = customerID + a.require(authCapturePayoutResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthCapturePayoutResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - a.MethodReferenceId = methodReferenceId - a.require(authCapturePayoutResponseDataFieldMethodReferenceId) +func (a *AuthCapturePayoutResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + a.MethodReferenceID = methodReferenceID + a.require(authCapturePayoutResponseDataFieldMethodReferenceID) } func (a *AuthCapturePayoutResponseData) UnmarshalJSON(data []byte) error { @@ -409,7 +409,7 @@ var ( authorizePaymentMethodFieldAchAccountType = big.NewInt(1 << 4) authorizePaymentMethodFieldAchCode = big.NewInt(1 << 5) authorizePaymentMethodFieldAchHolderType = big.NewInt(1 << 6) - authorizePaymentMethodFieldStoredMethodId = big.NewInt(1 << 7) + authorizePaymentMethodFieldStoredMethodID = big.NewInt(1 << 7) authorizePaymentMethodFieldInitiator = big.NewInt(1 << 8) authorizePaymentMethodFieldStoredMethodUsageType = big.NewInt(1 << 9) ) @@ -428,7 +428,7 @@ type AuthorizePaymentMethod struct { AchCode *AchSecCode `json:"achCode,omitempty" url:"achCode,omitempty"` AchHolderType *AchHolderType `json:"achHolderType,omitempty" url:"achHolderType,omitempty"` // ID of the stored ACH payment method. Only applicable when method is `ach`. Use this to reference a previously saved ACH method instead of providing bank details directly. - StoredMethodId *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` Initiator *Initiator `json:"initiator,omitempty" url:"initiator,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"storedMethodUsageType,omitempty" url:"storedMethodUsageType,omitempty"` @@ -488,11 +488,11 @@ func (a *AuthorizePaymentMethod) GetAchHolderType() *AchHolderType { return a.AchHolderType } -func (a *AuthorizePaymentMethod) GetStoredMethodId() *string { +func (a *AuthorizePaymentMethod) GetStoredMethodID() *string { if a == nil { return nil } - return a.StoredMethodId + return a.StoredMethodID } func (a *AuthorizePaymentMethod) GetInitiator() *Initiator { @@ -572,11 +572,11 @@ func (a *AuthorizePaymentMethod) SetAchHolderType(achHolderType *AchHolderType) a.require(authorizePaymentMethodFieldAchHolderType) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthorizePaymentMethod) SetStoredMethodId(storedMethodId *string) { - a.StoredMethodId = storedMethodId - a.require(authorizePaymentMethodFieldStoredMethodId) +func (a *AuthorizePaymentMethod) SetStoredMethodID(storedMethodID *string) { + a.StoredMethodID = storedMethodID + a.require(authorizePaymentMethodFieldStoredMethodID) } // SetInitiator sets the Initiator field and marks it as non-optional; @@ -638,22 +638,22 @@ func (a *AuthorizePaymentMethod) String() string { var ( authorizePayoutBodyFieldEntryPoint = big.NewInt(1 << 0) authorizePayoutBodyFieldSource = big.NewInt(1 << 1) - authorizePayoutBodyFieldOrderId = big.NewInt(1 << 2) + authorizePayoutBodyFieldOrderID = big.NewInt(1 << 2) authorizePayoutBodyFieldOrderDescription = big.NewInt(1 << 3) authorizePayoutBodyFieldPaymentMethod = big.NewInt(1 << 4) authorizePayoutBodyFieldPaymentDetails = big.NewInt(1 << 5) authorizePayoutBodyFieldVendorData = big.NewInt(1 << 6) authorizePayoutBodyFieldInvoiceData = big.NewInt(1 << 7) - authorizePayoutBodyFieldAccountId = big.NewInt(1 << 8) + authorizePayoutBodyFieldAccountID = big.NewInt(1 << 8) authorizePayoutBodyFieldSubdomain = big.NewInt(1 << 9) - authorizePayoutBodyFieldSubscriptionId = big.NewInt(1 << 10) + authorizePayoutBodyFieldSubscriptionID = big.NewInt(1 << 10) authorizePayoutBodyFieldAutoCapture = big.NewInt(1 << 11) ) type AuthorizePayoutBody struct { EntryPoint Entrypointfield `json:"entryPoint" url:"entryPoint"` Source *Source `json:"source,omitempty" url:"source,omitempty"` - OrderId *OrderId `json:"orderId,omitempty" url:"orderId,omitempty"` + OrderID *OrderID `json:"orderId,omitempty" url:"orderId,omitempty"` OrderDescription *Orderdescription `json:"orderDescription,omitempty" url:"orderDescription,omitempty"` PaymentMethod *AuthorizePaymentMethod `json:"paymentMethod" url:"paymentMethod"` // Object containing payment details. @@ -662,9 +662,9 @@ type AuthorizePayoutBody struct { VendorData *RequestOutAuthorizeVendorData `json:"vendorData" url:"vendorData"` // Array of bills associated to the transaction InvoiceData []*RequestOutAuthorizeInvoiceData `json:"invoiceData" url:"invoiceData"` - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` Subdomain *Subdomain `json:"subdomain,omitempty" url:"subdomain,omitempty"` - SubscriptionId *Subscriptionid `json:"subscriptionId,omitempty" url:"subscriptionId,omitempty"` + SubscriptionID *Subscriptionid `json:"subscriptionId,omitempty" url:"subscriptionId,omitempty"` AutoCapture *AutoCapture `json:"autoCapture,omitempty" url:"autoCapture,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -688,11 +688,11 @@ func (a *AuthorizePayoutBody) GetSource() *Source { return a.Source } -func (a *AuthorizePayoutBody) GetOrderId() *OrderId { +func (a *AuthorizePayoutBody) GetOrderID() *OrderID { if a == nil { return nil } - return a.OrderId + return a.OrderID } func (a *AuthorizePayoutBody) GetOrderDescription() *Orderdescription { @@ -730,11 +730,11 @@ func (a *AuthorizePayoutBody) GetInvoiceData() []*RequestOutAuthorizeInvoiceData return a.InvoiceData } -func (a *AuthorizePayoutBody) GetAccountId() *AccountId { +func (a *AuthorizePayoutBody) GetAccountID() *AccountID { if a == nil { return nil } - return a.AccountId + return a.AccountID } func (a *AuthorizePayoutBody) GetSubdomain() *Subdomain { @@ -744,11 +744,11 @@ func (a *AuthorizePayoutBody) GetSubdomain() *Subdomain { return a.Subdomain } -func (a *AuthorizePayoutBody) GetSubscriptionId() *Subscriptionid { +func (a *AuthorizePayoutBody) GetSubscriptionID() *Subscriptionid { if a == nil { return nil } - return a.SubscriptionId + return a.SubscriptionID } func (a *AuthorizePayoutBody) GetAutoCapture() *AutoCapture { @@ -786,11 +786,11 @@ func (a *AuthorizePayoutBody) SetSource(source *Source) { a.require(authorizePayoutBodyFieldSource) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthorizePayoutBody) SetOrderId(orderId *OrderId) { - a.OrderId = orderId - a.require(authorizePayoutBodyFieldOrderId) +func (a *AuthorizePayoutBody) SetOrderID(orderID *OrderID) { + a.OrderID = orderID + a.require(authorizePayoutBodyFieldOrderID) } // SetOrderDescription sets the OrderDescription field and marks it as non-optional; @@ -828,11 +828,11 @@ func (a *AuthorizePayoutBody) SetInvoiceData(invoiceData []*RequestOutAuthorizeI a.require(authorizePayoutBodyFieldInvoiceData) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthorizePayoutBody) SetAccountId(accountId *AccountId) { - a.AccountId = accountId - a.require(authorizePayoutBodyFieldAccountId) +func (a *AuthorizePayoutBody) SetAccountID(accountID *AccountID) { + a.AccountID = accountID + a.require(authorizePayoutBodyFieldAccountID) } // SetSubdomain sets the Subdomain field and marks it as non-optional; @@ -842,11 +842,11 @@ func (a *AuthorizePayoutBody) SetSubdomain(subdomain *Subdomain) { a.require(authorizePayoutBodyFieldSubdomain) } -// SetSubscriptionId sets the SubscriptionId field and marks it as non-optional; +// SetSubscriptionID sets the SubscriptionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AuthorizePayoutBody) SetSubscriptionId(subscriptionId *Subscriptionid) { - a.SubscriptionId = subscriptionId - a.require(authorizePayoutBodyFieldSubscriptionId) +func (a *AuthorizePayoutBody) SetSubscriptionID(subscriptionID *Subscriptionid) { + a.SubscriptionID = subscriptionID + a.require(authorizePayoutBodyFieldSubscriptionID) } // SetAutoCapture sets the AutoCapture field and marks it as non-optional; @@ -1048,16 +1048,16 @@ func (c *CaptureAllOutResponse) String() string { } var ( - captureAllOutResponseResponseDataItemFieldCustomerId = big.NewInt(1 << 0) - captureAllOutResponseResponseDataItemFieldReferenceId = big.NewInt(1 << 1) + captureAllOutResponseResponseDataItemFieldCustomerID = big.NewInt(1 << 0) + captureAllOutResponseResponseDataItemFieldReferenceID = big.NewInt(1 << 1) captureAllOutResponseResponseDataItemFieldResultCode = big.NewInt(1 << 2) captureAllOutResponseResponseDataItemFieldResultText = big.NewInt(1 << 3) ) type CaptureAllOutResponseResponseDataItem struct { // Internal unique Id of vendor owner of transaction. Returns `0` if the transaction wasn't assigned to an existing vendor or no vendor was created. - CustomerId *Customeridtrans `json:"CustomerId,omitempty" url:"CustomerId,omitempty"` - ReferenceId *Referenceidtrans `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` + CustomerID *Customeridtrans `json:"CustomerId,omitempty" url:"CustomerId,omitempty"` + ReferenceID *Referenceidtrans `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` ResultCode *ResultCode `json:"ResultCode,omitempty" url:"ResultCode,omitempty"` // Text describing the result. // If `ResultCode“ = 1, returns 'Authorized'. @@ -1071,18 +1071,18 @@ type CaptureAllOutResponseResponseDataItem struct { rawJSON json.RawMessage } -func (c *CaptureAllOutResponseResponseDataItem) GetCustomerId() *Customeridtrans { +func (c *CaptureAllOutResponseResponseDataItem) GetCustomerID() *Customeridtrans { if c == nil { return nil } - return c.CustomerId + return c.CustomerID } -func (c *CaptureAllOutResponseResponseDataItem) GetReferenceId() *Referenceidtrans { +func (c *CaptureAllOutResponseResponseDataItem) GetReferenceID() *Referenceidtrans { if c == nil { return nil } - return c.ReferenceId + return c.ReferenceID } func (c *CaptureAllOutResponseResponseDataItem) GetResultCode() *ResultCode { @@ -1113,18 +1113,18 @@ func (c *CaptureAllOutResponseResponseDataItem) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureAllOutResponseResponseDataItem) SetCustomerId(customerId *Customeridtrans) { - c.CustomerId = customerId - c.require(captureAllOutResponseResponseDataItemFieldCustomerId) +func (c *CaptureAllOutResponseResponseDataItem) SetCustomerID(customerID *Customeridtrans) { + c.CustomerID = customerID + c.require(captureAllOutResponseResponseDataItemFieldCustomerID) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CaptureAllOutResponseResponseDataItem) SetReferenceId(referenceId *Referenceidtrans) { - c.ReferenceId = referenceId - c.require(captureAllOutResponseResponseDataItemFieldReferenceId) +func (c *CaptureAllOutResponseResponseDataItem) SetReferenceID(referenceID *Referenceidtrans) { + c.ReferenceID = referenceID + c.require(captureAllOutResponseResponseDataItemFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -2032,18 +2032,18 @@ func (r *ReissuePayoutResponse) String() string { } var ( - reissuePayoutResponseDataFieldTransactionId = big.NewInt(1 << 0) + reissuePayoutResponseDataFieldTransactionID = big.NewInt(1 << 0) reissuePayoutResponseDataFieldStatus = big.NewInt(1 << 1) - reissuePayoutResponseDataFieldOriginalTransactionId = big.NewInt(1 << 2) + reissuePayoutResponseDataFieldOriginalTransactionID = big.NewInt(1 << 2) ) type ReissuePayoutResponseData struct { // The transaction ID of the newly created payout. - TransactionId string `json:"transactionId" url:"transactionId"` + TransactionID string `json:"transactionId" url:"transactionId"` // The status of the new transaction. Status string `json:"status" url:"status"` // The transaction ID of the original payout that was reissued. - OriginalTransactionId *string `json:"originalTransactionId,omitempty" url:"originalTransactionId,omitempty"` + OriginalTransactionID *string `json:"originalTransactionId,omitempty" url:"originalTransactionId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -2052,11 +2052,11 @@ type ReissuePayoutResponseData struct { rawJSON json.RawMessage } -func (r *ReissuePayoutResponseData) GetTransactionId() string { +func (r *ReissuePayoutResponseData) GetTransactionID() string { if r == nil { return "" } - return r.TransactionId + return r.TransactionID } func (r *ReissuePayoutResponseData) GetStatus() string { @@ -2066,11 +2066,11 @@ func (r *ReissuePayoutResponseData) GetStatus() string { return r.Status } -func (r *ReissuePayoutResponseData) GetOriginalTransactionId() *string { +func (r *ReissuePayoutResponseData) GetOriginalTransactionID() *string { if r == nil { return nil } - return r.OriginalTransactionId + return r.OriginalTransactionID } func (r *ReissuePayoutResponseData) GetExtraProperties() map[string]interface{} { @@ -2087,11 +2087,11 @@ func (r *ReissuePayoutResponseData) require(field *big.Int) { r.explicitFields.Or(r.explicitFields, field) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ReissuePayoutResponseData) SetTransactionId(transactionId string) { - r.TransactionId = transactionId - r.require(reissuePayoutResponseDataFieldTransactionId) +func (r *ReissuePayoutResponseData) SetTransactionID(transactionID string) { + r.TransactionID = transactionID + r.require(reissuePayoutResponseDataFieldTransactionID) } // SetStatus sets the Status field and marks it as non-optional; @@ -2101,11 +2101,11 @@ func (r *ReissuePayoutResponseData) SetStatus(status string) { r.require(reissuePayoutResponseDataFieldStatus) } -// SetOriginalTransactionId sets the OriginalTransactionId field and marks it as non-optional; +// SetOriginalTransactionID sets the OriginalTransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *ReissuePayoutResponseData) SetOriginalTransactionId(originalTransactionId *string) { - r.OriginalTransactionId = originalTransactionId - r.require(reissuePayoutResponseDataFieldOriginalTransactionId) +func (r *ReissuePayoutResponseData) SetOriginalTransactionID(originalTransactionID *string) { + r.OriginalTransactionID = originalTransactionID + r.require(reissuePayoutResponseDataFieldOriginalTransactionID) } func (r *ReissuePayoutResponseData) UnmarshalJSON(data []byte) error { @@ -2157,7 +2157,7 @@ var ( requestOutAuthorizeInvoiceDataFieldDueDate = big.NewInt(1 << 3) requestOutAuthorizeInvoiceDataFieldComments = big.NewInt(1 << 4) requestOutAuthorizeInvoiceDataFieldLotNumber = big.NewInt(1 << 5) - requestOutAuthorizeInvoiceDataFieldBillId = big.NewInt(1 << 6) + requestOutAuthorizeInvoiceDataFieldBillID = big.NewInt(1 << 6) requestOutAuthorizeInvoiceDataFieldDiscount = big.NewInt(1 << 7) requestOutAuthorizeInvoiceDataFieldTerms = big.NewInt(1 << 8) requestOutAuthorizeInvoiceDataFieldAccountingField1 = big.NewInt(1 << 9) @@ -2175,7 +2175,7 @@ type RequestOutAuthorizeInvoiceData struct { DueDate *time.Time `json:"dueDate,omitempty" url:"dueDate,omitempty" format:"date"` Comments *Comments `json:"comments,omitempty" url:"comments,omitempty"` LotNumber *LotNumber `json:"lotNumber,omitempty" url:"lotNumber,omitempty"` - BillId *BillId `json:"billId,omitempty" url:"billId,omitempty"` + BillID *BillID `json:"billId,omitempty" url:"billId,omitempty"` Discount *Discount `json:"discount,omitempty" url:"discount,omitempty"` Terms *Terms `json:"terms,omitempty" url:"terms,omitempty"` AccountingField1 *AccountingField `json:"accountingField1,omitempty" url:"accountingField1,omitempty"` @@ -2232,11 +2232,11 @@ func (r *RequestOutAuthorizeInvoiceData) GetLotNumber() *LotNumber { return r.LotNumber } -func (r *RequestOutAuthorizeInvoiceData) GetBillId() *BillId { +func (r *RequestOutAuthorizeInvoiceData) GetBillID() *BillID { if r == nil { return nil } - return r.BillId + return r.BillID } func (r *RequestOutAuthorizeInvoiceData) GetDiscount() *Discount { @@ -2337,11 +2337,11 @@ func (r *RequestOutAuthorizeInvoiceData) SetLotNumber(lotNumber *LotNumber) { r.require(requestOutAuthorizeInvoiceDataFieldLotNumber) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestOutAuthorizeInvoiceData) SetBillId(billId *BillId) { - r.BillId = billId - r.require(requestOutAuthorizeInvoiceDataFieldBillId) +func (r *RequestOutAuthorizeInvoiceData) SetBillID(billID *BillID) { + r.BillID = billID + r.require(requestOutAuthorizeInvoiceDataFieldBillID) } // SetDiscount sets the Discount field and marks it as non-optional; @@ -2770,12 +2770,12 @@ var ( requestOutAuthorizeVendorDataFieldCustomField2 = big.NewInt(1 << 23) requestOutAuthorizeVendorDataFieldAdditionalData = big.NewInt(1 << 24) requestOutAuthorizeVendorDataFieldAddress2 = big.NewInt(1 << 25) - requestOutAuthorizeVendorDataFieldInternalReferenceId = big.NewInt(1 << 26) + requestOutAuthorizeVendorDataFieldInternalReferenceID = big.NewInt(1 << 26) requestOutAuthorizeVendorDataFieldLocationCode = big.NewInt(1 << 27) requestOutAuthorizeVendorDataFieldPayeeName1 = big.NewInt(1 << 28) requestOutAuthorizeVendorDataFieldPayeeName2 = big.NewInt(1 << 29) requestOutAuthorizeVendorDataFieldPaymentMethod = big.NewInt(1 << 30) - requestOutAuthorizeVendorDataFieldVendorId = big.NewInt(1 << 31) + requestOutAuthorizeVendorDataFieldVendorID = big.NewInt(1 << 31) ) type RequestOutAuthorizeVendorData struct { @@ -2805,12 +2805,12 @@ type RequestOutAuthorizeVendorData struct { CustomField2 *string `json:"customField2,omitempty" url:"customField2,omitempty"` AdditionalData *AdditionalData `json:"additionalData,omitempty" url:"additionalData,omitempty"` Address2 *AddressAddtlNullable `json:"address2,omitempty" url:"address2,omitempty"` - InternalReferenceId *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` + InternalReferenceID *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` LocationCode *LocationCode `json:"locationCode,omitempty" url:"locationCode,omitempty"` PayeeName1 *PayeeName `json:"payeeName1,omitempty" url:"payeeName1,omitempty"` PayeeName2 *PayeeName `json:"payeeName2,omitempty" url:"payeeName2,omitempty"` PaymentMethod *VendorPaymentMethod `json:"paymentMethod,omitempty" url:"paymentMethod,omitempty"` - VendorId *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` + VendorID *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -3001,11 +3001,11 @@ func (r *RequestOutAuthorizeVendorData) GetAddress2() *AddressAddtlNullable { return r.Address2 } -func (r *RequestOutAuthorizeVendorData) GetInternalReferenceId() *int64 { +func (r *RequestOutAuthorizeVendorData) GetInternalReferenceID() *int64 { if r == nil { return nil } - return r.InternalReferenceId + return r.InternalReferenceID } func (r *RequestOutAuthorizeVendorData) GetLocationCode() *LocationCode { @@ -3036,11 +3036,11 @@ func (r *RequestOutAuthorizeVendorData) GetPaymentMethod() *VendorPaymentMethod return r.PaymentMethod } -func (r *RequestOutAuthorizeVendorData) GetVendorId() *Vendorid { +func (r *RequestOutAuthorizeVendorData) GetVendorID() *Vendorid { if r == nil { return nil } - return r.VendorId + return r.VendorID } func (r *RequestOutAuthorizeVendorData) GetExtraProperties() map[string]interface{} { @@ -3239,11 +3239,11 @@ func (r *RequestOutAuthorizeVendorData) SetAddress2(address2 *AddressAddtlNullab r.require(requestOutAuthorizeVendorDataFieldAddress2) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestOutAuthorizeVendorData) SetInternalReferenceId(internalReferenceId *int64) { - r.InternalReferenceId = internalReferenceId - r.require(requestOutAuthorizeVendorDataFieldInternalReferenceId) +func (r *RequestOutAuthorizeVendorData) SetInternalReferenceID(internalReferenceID *int64) { + r.InternalReferenceID = internalReferenceID + r.require(requestOutAuthorizeVendorDataFieldInternalReferenceID) } // SetLocationCode sets the LocationCode field and marks it as non-optional; @@ -3274,11 +3274,11 @@ func (r *RequestOutAuthorizeVendorData) SetPaymentMethod(paymentMethod *VendorPa r.require(requestOutAuthorizeVendorDataFieldPaymentMethod) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestOutAuthorizeVendorData) SetVendorId(vendorId *Vendorid) { - r.VendorId = vendorId - r.require(requestOutAuthorizeVendorDataFieldVendorId) +func (r *RequestOutAuthorizeVendorData) SetVendorID(vendorID *Vendorid) { + r.VendorID = vendorID + r.require(requestOutAuthorizeVendorDataFieldVendorID) } func (r *RequestOutAuthorizeVendorData) UnmarshalJSON(data []byte) error { @@ -3337,7 +3337,7 @@ var ( requestOutAuthorizeVendorDataOldFieldCustomField2 = big.NewInt(1 << 9) requestOutAuthorizeVendorDataOldFieldEin = big.NewInt(1 << 10) requestOutAuthorizeVendorDataOldFieldEmail = big.NewInt(1 << 11) - requestOutAuthorizeVendorDataOldFieldInternalReferenceId = big.NewInt(1 << 12) + requestOutAuthorizeVendorDataOldFieldInternalReferenceID = big.NewInt(1 << 12) requestOutAuthorizeVendorDataOldFieldLocationCode = big.NewInt(1 << 13) requestOutAuthorizeVendorDataOldFieldMcc = big.NewInt(1 << 14) requestOutAuthorizeVendorDataOldFieldName1 = big.NewInt(1 << 15) @@ -3353,7 +3353,7 @@ var ( requestOutAuthorizeVendorDataOldFieldRemitState = big.NewInt(1 << 25) requestOutAuthorizeVendorDataOldFieldRemitZip = big.NewInt(1 << 26) requestOutAuthorizeVendorDataOldFieldState = big.NewInt(1 << 27) - requestOutAuthorizeVendorDataOldFieldVendorId = big.NewInt(1 << 28) + requestOutAuthorizeVendorDataOldFieldVendorID = big.NewInt(1 << 28) requestOutAuthorizeVendorDataOldFieldVendorNumber = big.NewInt(1 << 29) requestOutAuthorizeVendorDataOldFieldVendorStatus = big.NewInt(1 << 30) requestOutAuthorizeVendorDataOldFieldZip = big.NewInt(1 << 31) @@ -3381,7 +3381,7 @@ type RequestOutAuthorizeVendorDataOld struct { // Vendor's email address. Required for vCard. Email *Email `json:"email,omitempty" url:"email,omitempty"` // Internal identifier for global vendor account. - InternalReferenceId *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` + InternalReferenceID *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` LocationCode *LocationCode `json:"locationCode,omitempty" url:"locationCode,omitempty"` Mcc *Mcc `json:"mcc,omitempty" url:"mcc,omitempty"` Name1 *VendorName1 `json:"name1,omitempty" url:"name1,omitempty"` @@ -3399,7 +3399,7 @@ type RequestOutAuthorizeVendorDataOld struct { // Vendor's state. Must be a 2 character state code. State *string `json:"state,omitempty" url:"state,omitempty"` // Payabli identifier for vendor record. Required when `vendorNumber` isn't included. - VendorId *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` + VendorID *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` VendorNumber *VendorNumber `json:"vendorNumber,omitempty" url:"vendorNumber,omitempty"` VendorStatus *Vendorstatus `json:"vendorStatus,omitempty" url:"vendorStatus,omitempty"` // Vendor's postal code. @@ -3496,11 +3496,11 @@ func (r *RequestOutAuthorizeVendorDataOld) GetEmail() *Email { return r.Email } -func (r *RequestOutAuthorizeVendorDataOld) GetInternalReferenceId() *int64 { +func (r *RequestOutAuthorizeVendorDataOld) GetInternalReferenceID() *int64 { if r == nil { return nil } - return r.InternalReferenceId + return r.InternalReferenceID } func (r *RequestOutAuthorizeVendorDataOld) GetLocationCode() *LocationCode { @@ -3608,11 +3608,11 @@ func (r *RequestOutAuthorizeVendorDataOld) GetState() *string { return r.State } -func (r *RequestOutAuthorizeVendorDataOld) GetVendorId() *Vendorid { +func (r *RequestOutAuthorizeVendorDataOld) GetVendorID() *Vendorid { if r == nil { return nil } - return r.VendorId + return r.VendorID } func (r *RequestOutAuthorizeVendorDataOld) GetVendorNumber() *VendorNumber { @@ -3734,11 +3734,11 @@ func (r *RequestOutAuthorizeVendorDataOld) SetEmail(email *Email) { r.require(requestOutAuthorizeVendorDataOldFieldEmail) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestOutAuthorizeVendorDataOld) SetInternalReferenceId(internalReferenceId *int64) { - r.InternalReferenceId = internalReferenceId - r.require(requestOutAuthorizeVendorDataOldFieldInternalReferenceId) +func (r *RequestOutAuthorizeVendorDataOld) SetInternalReferenceID(internalReferenceID *int64) { + r.InternalReferenceID = internalReferenceID + r.require(requestOutAuthorizeVendorDataOldFieldInternalReferenceID) } // SetLocationCode sets the LocationCode field and marks it as non-optional; @@ -3846,11 +3846,11 @@ func (r *RequestOutAuthorizeVendorDataOld) SetState(state *string) { r.require(requestOutAuthorizeVendorDataOldFieldState) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestOutAuthorizeVendorDataOld) SetVendorId(vendorId *Vendorid) { - r.VendorId = vendorId - r.require(requestOutAuthorizeVendorDataOldFieldVendorId) +func (r *RequestOutAuthorizeVendorDataOld) SetVendorID(vendorID *Vendorid) { + r.VendorID = vendorID + r.require(requestOutAuthorizeVendorDataOldFieldVendorID) } // SetVendorNumber sets the VendorNumber field and marks it as non-optional; @@ -3942,8 +3942,8 @@ var ( vCardGetResponseFieldPaypointDbaname = big.NewInt(1 << 22) vCardGetResponseFieldPaypointLegalname = big.NewInt(1 << 23) vCardGetResponseFieldPaypointEntryname = big.NewInt(1 << 24) - vCardGetResponseFieldExternalPaypointId = big.NewInt(1 << 25) - vCardGetResponseFieldPaypointId = big.NewInt(1 << 26) + vCardGetResponseFieldExternalPaypointID = big.NewInt(1 << 25) + vCardGetResponseFieldPaypointID = big.NewInt(1 << 26) ) type VCardGetResponse struct { @@ -3997,9 +3997,9 @@ type VCardGetResponse struct { PaypointLegalname *string `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` // Entry name for the Paypoint, if applicable. PaypointEntryname *string `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // The unique identifier for the paypoint. - PaypointId *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -4183,18 +4183,18 @@ func (v *VCardGetResponse) GetPaypointEntryname() *string { return v.PaypointEntryname } -func (v *VCardGetResponse) GetExternalPaypointId() *ExternalPaypointId { +func (v *VCardGetResponse) GetExternalPaypointID() *ExternalPaypointID { if v == nil { return nil } - return v.ExternalPaypointId + return v.ExternalPaypointID } -func (v *VCardGetResponse) GetPaypointId() *int { +func (v *VCardGetResponse) GetPaypointID() *int { if v == nil { return nil } - return v.PaypointId + return v.PaypointID } func (v *VCardGetResponse) GetExtraProperties() map[string]interface{} { @@ -4386,18 +4386,18 @@ func (v *VCardGetResponse) SetPaypointEntryname(paypointEntryname *string) { v.require(vCardGetResponseFieldPaypointEntryname) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponse) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - v.ExternalPaypointId = externalPaypointId - v.require(vCardGetResponseFieldExternalPaypointId) +func (v *VCardGetResponse) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + v.ExternalPaypointID = externalPaypointID + v.require(vCardGetResponseFieldExternalPaypointID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponse) SetPaypointId(paypointId *int) { - v.PaypointId = paypointId - v.require(vCardGetResponseFieldPaypointId) +func (v *VCardGetResponse) SetPaypointID(paypointID *int) { + v.PaypointID = paypointID + v.require(vCardGetResponseFieldPaypointID) } func (v *VCardGetResponse) UnmarshalJSON(data []byte) error { @@ -4463,14 +4463,14 @@ var ( vCardGetResponseAssociatedVendorFieldBillingData = big.NewInt(1 << 16) vCardGetResponseAssociatedVendorFieldPaymentMethod = big.NewInt(1 << 17) vCardGetResponseAssociatedVendorFieldVendorStatus = big.NewInt(1 << 18) - vCardGetResponseAssociatedVendorFieldVendorId = big.NewInt(1 << 19) + vCardGetResponseAssociatedVendorFieldVendorID = big.NewInt(1 << 19) vCardGetResponseAssociatedVendorFieldEnrollmentStatus = big.NewInt(1 << 20) vCardGetResponseAssociatedVendorFieldSummary = big.NewInt(1 << 21) vCardGetResponseAssociatedVendorFieldPaypointLegalname = big.NewInt(1 << 22) vCardGetResponseAssociatedVendorFieldPaypointDbaname = big.NewInt(1 << 23) vCardGetResponseAssociatedVendorFieldPaypointEntryname = big.NewInt(1 << 24) vCardGetResponseAssociatedVendorFieldParentOrgName = big.NewInt(1 << 25) - vCardGetResponseAssociatedVendorFieldParentOrgId = big.NewInt(1 << 26) + vCardGetResponseAssociatedVendorFieldParentOrgID = big.NewInt(1 << 26) vCardGetResponseAssociatedVendorFieldCreatedDate = big.NewInt(1 << 27) vCardGetResponseAssociatedVendorFieldLastUpdated = big.NewInt(1 << 28) vCardGetResponseAssociatedVendorFieldRemitAddress1 = big.NewInt(1 << 29) @@ -4484,9 +4484,9 @@ var ( vCardGetResponseAssociatedVendorFieldCustomField1 = big.NewInt(1 << 37) vCardGetResponseAssociatedVendorFieldCustomField2 = big.NewInt(1 << 38) vCardGetResponseAssociatedVendorFieldCustomerVendorAccount = big.NewInt(1 << 39) - vCardGetResponseAssociatedVendorFieldInternalReferenceId = big.NewInt(1 << 40) + vCardGetResponseAssociatedVendorFieldInternalReferenceID = big.NewInt(1 << 40) vCardGetResponseAssociatedVendorFieldAdditionalData = big.NewInt(1 << 41) - vCardGetResponseAssociatedVendorFieldExternalPaypointId = big.NewInt(1 << 42) + vCardGetResponseAssociatedVendorFieldExternalPaypointID = big.NewInt(1 << 42) vCardGetResponseAssociatedVendorFieldStoredMethods = big.NewInt(1 << 43) ) @@ -4529,7 +4529,7 @@ type VCardGetResponseAssociatedVendor struct { // Status of the vendor. VendorStatus *int `json:"VendorStatus,omitempty" url:"VendorStatus,omitempty"` // Unique identifier for the vendor. - VendorId *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` + VendorID *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` // Enrollment status of the vendor. EnrollmentStatus *string `json:"EnrollmentStatus,omitempty" url:"EnrollmentStatus,omitempty"` // Summary of vendor's billing and transaction status. @@ -4542,7 +4542,7 @@ type VCardGetResponseAssociatedVendor struct { PaypointEntryname *string `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` // ID of the parent organization. - ParentOrgId *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` // Date when the vendor record was created. CreatedDate *string `json:"CreatedDate,omitempty" url:"CreatedDate,omitempty"` // Date when the vendor's information was last updated. @@ -4564,10 +4564,10 @@ type VCardGetResponseAssociatedVendor struct { // Account number of paypoint in the vendor side. CustomerVendorAccount *string `json:"customerVendorAccount,omitempty" url:"customerVendorAccount,omitempty"` // Internal reference ID used within the system. - InternalReferenceId *int `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` + InternalReferenceID *int `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` // Field for additional data, if any. AdditionalData *string `json:"additionalData,omitempty" url:"additionalData,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Stored payment methods for the vendor. StoredMethods *string `json:"StoredMethods,omitempty" url:"StoredMethods,omitempty"` @@ -4711,11 +4711,11 @@ func (v *VCardGetResponseAssociatedVendor) GetVendorStatus() *int { return v.VendorStatus } -func (v *VCardGetResponseAssociatedVendor) GetVendorId() *int { +func (v *VCardGetResponseAssociatedVendor) GetVendorID() *int { if v == nil { return nil } - return v.VendorId + return v.VendorID } func (v *VCardGetResponseAssociatedVendor) GetEnrollmentStatus() *string { @@ -4760,11 +4760,11 @@ func (v *VCardGetResponseAssociatedVendor) GetParentOrgName() *OrgParentName { return v.ParentOrgName } -func (v *VCardGetResponseAssociatedVendor) GetParentOrgId() *int { +func (v *VCardGetResponseAssociatedVendor) GetParentOrgID() *int { if v == nil { return nil } - return v.ParentOrgId + return v.ParentOrgID } func (v *VCardGetResponseAssociatedVendor) GetCreatedDate() *string { @@ -4858,11 +4858,11 @@ func (v *VCardGetResponseAssociatedVendor) GetCustomerVendorAccount() *string { return v.CustomerVendorAccount } -func (v *VCardGetResponseAssociatedVendor) GetInternalReferenceId() *int { +func (v *VCardGetResponseAssociatedVendor) GetInternalReferenceID() *int { if v == nil { return nil } - return v.InternalReferenceId + return v.InternalReferenceID } func (v *VCardGetResponseAssociatedVendor) GetAdditionalData() *string { @@ -4872,11 +4872,11 @@ func (v *VCardGetResponseAssociatedVendor) GetAdditionalData() *string { return v.AdditionalData } -func (v *VCardGetResponseAssociatedVendor) GetExternalPaypointId() *ExternalPaypointId { +func (v *VCardGetResponseAssociatedVendor) GetExternalPaypointID() *ExternalPaypointID { if v == nil { return nil } - return v.ExternalPaypointId + return v.ExternalPaypointID } func (v *VCardGetResponseAssociatedVendor) GetStoredMethods() *string { @@ -5033,11 +5033,11 @@ func (v *VCardGetResponseAssociatedVendor) SetVendorStatus(vendorStatus *int) { v.require(vCardGetResponseAssociatedVendorFieldVendorStatus) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendor) SetVendorId(vendorId *int) { - v.VendorId = vendorId - v.require(vCardGetResponseAssociatedVendorFieldVendorId) +func (v *VCardGetResponseAssociatedVendor) SetVendorID(vendorID *int) { + v.VendorID = vendorID + v.require(vCardGetResponseAssociatedVendorFieldVendorID) } // SetEnrollmentStatus sets the EnrollmentStatus field and marks it as non-optional; @@ -5082,11 +5082,11 @@ func (v *VCardGetResponseAssociatedVendor) SetParentOrgName(parentOrgName *OrgPa v.require(vCardGetResponseAssociatedVendorFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendor) SetParentOrgId(parentOrgId *int) { - v.ParentOrgId = parentOrgId - v.require(vCardGetResponseAssociatedVendorFieldParentOrgId) +func (v *VCardGetResponseAssociatedVendor) SetParentOrgID(parentOrgID *int) { + v.ParentOrgID = parentOrgID + v.require(vCardGetResponseAssociatedVendorFieldParentOrgID) } // SetCreatedDate sets the CreatedDate field and marks it as non-optional; @@ -5180,11 +5180,11 @@ func (v *VCardGetResponseAssociatedVendor) SetCustomerVendorAccount(customerVend v.require(vCardGetResponseAssociatedVendorFieldCustomerVendorAccount) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendor) SetInternalReferenceId(internalReferenceId *int) { - v.InternalReferenceId = internalReferenceId - v.require(vCardGetResponseAssociatedVendorFieldInternalReferenceId) +func (v *VCardGetResponseAssociatedVendor) SetInternalReferenceID(internalReferenceID *int) { + v.InternalReferenceID = internalReferenceID + v.require(vCardGetResponseAssociatedVendorFieldInternalReferenceID) } // SetAdditionalData sets the AdditionalData field and marks it as non-optional; @@ -5194,11 +5194,11 @@ func (v *VCardGetResponseAssociatedVendor) SetAdditionalData(additionalData *str v.require(vCardGetResponseAssociatedVendorFieldAdditionalData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendor) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - v.ExternalPaypointId = externalPaypointId - v.require(vCardGetResponseAssociatedVendorFieldExternalPaypointId) +func (v *VCardGetResponseAssociatedVendor) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + v.ExternalPaypointID = externalPaypointID + v.require(vCardGetResponseAssociatedVendorFieldExternalPaypointID) } // SetStoredMethods sets the StoredMethods field and marks it as non-optional; @@ -5252,8 +5252,8 @@ func (v *VCardGetResponseAssociatedVendor) String() string { // Billing data for the vendor. var ( - vCardGetResponseAssociatedVendorBillingDataFieldId = big.NewInt(1 << 0) - vCardGetResponseAssociatedVendorBillingDataFieldAccountId = big.NewInt(1 << 1) + vCardGetResponseAssociatedVendorBillingDataFieldID = big.NewInt(1 << 0) + vCardGetResponseAssociatedVendorBillingDataFieldAccountID = big.NewInt(1 << 1) vCardGetResponseAssociatedVendorBillingDataFieldNickname = big.NewInt(1 << 2) vCardGetResponseAssociatedVendorBillingDataFieldBankName = big.NewInt(1 << 3) vCardGetResponseAssociatedVendorBillingDataFieldRoutingAccount = big.NewInt(1 << 4) @@ -5270,9 +5270,9 @@ var ( type VCardGetResponseAssociatedVendorBillingData struct { // Unique identifier for billing data. - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` // Account identifier. - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` // Nickname for the account. Nickname *string `json:"nickname,omitempty" url:"nickname,omitempty"` // Name of the bank used for transactions. @@ -5305,18 +5305,18 @@ type VCardGetResponseAssociatedVendorBillingData struct { rawJSON json.RawMessage } -func (v *VCardGetResponseAssociatedVendorBillingData) GetId() *int { +func (v *VCardGetResponseAssociatedVendorBillingData) GetID() *int { if v == nil { return nil } - return v.Id + return v.ID } -func (v *VCardGetResponseAssociatedVendorBillingData) GetAccountId() *string { +func (v *VCardGetResponseAssociatedVendorBillingData) GetAccountID() *string { if v == nil { return nil } - return v.AccountId + return v.AccountID } func (v *VCardGetResponseAssociatedVendorBillingData) GetNickname() *string { @@ -5417,18 +5417,18 @@ func (v *VCardGetResponseAssociatedVendorBillingData) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendorBillingData) SetId(id *int) { - v.Id = id - v.require(vCardGetResponseAssociatedVendorBillingDataFieldId) +func (v *VCardGetResponseAssociatedVendorBillingData) SetID(id *int) { + v.ID = id + v.require(vCardGetResponseAssociatedVendorBillingDataFieldID) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardGetResponseAssociatedVendorBillingData) SetAccountId(accountId *string) { - v.AccountId = accountId - v.require(vCardGetResponseAssociatedVendorBillingDataFieldAccountId) +func (v *VCardGetResponseAssociatedVendorBillingData) SetAccountID(accountID *string) { + v.AccountID = accountID + v.require(vCardGetResponseAssociatedVendorBillingDataFieldAccountID) } // SetNickname sets the Nickname field and marks it as non-optional; diff --git a/money_out_types_test.go b/money_out_types_test.go index 979c2d5..582f911 100644 --- a/money_out_types_test.go +++ b/money_out_types_test.go @@ -27,11 +27,11 @@ func TestSettersAuthCapturePayoutResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &AuthCapturePayoutResponse{} - var fernTestValueRoomId RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -118,18 +118,18 @@ func TestGettersAuthCapturePayoutResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponse{} - var expected RoomIdNotInUse - obj.RoomId = expected + var expected RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthCapturePayoutResponse // Should not panic - getters should handle nil receiver gracefully @@ -138,7 +138,7 @@ func TestGettersAuthCapturePayoutResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -285,14 +285,14 @@ func TestSettersMarkExplicitAuthCapturePayoutResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponse{} - var fernTestValueRoomId RoomIdNotInUse + var fernTestValueRoomID RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -420,11 +420,11 @@ func TestSettersAuthCapturePayoutResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &AuthCapturePayoutResponseData{} - var fernTestValueReferenceId Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -460,19 +460,19 @@ func TestSettersAuthCapturePayoutResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &AuthCapturePayoutResponseData{} - var fernTestValueCustomerId Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &AuthCapturePayoutResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -512,18 +512,18 @@ func TestGettersAuthCapturePayoutResponseData(t *testing.T) { _ = obj.GetAuthCode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} var expected Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthCapturePayoutResponseData // Should not panic - getters should handle nil receiver gracefully @@ -532,7 +532,7 @@ func TestGettersAuthCapturePayoutResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -647,18 +647,18 @@ func TestGettersAuthCapturePayoutResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} var expected Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthCapturePayoutResponseData // Should not panic - getters should handle nil receiver gracefully @@ -667,31 +667,31 @@ func TestGettersAuthCapturePayoutResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthCapturePayoutResponseData // Should not panic - getters should handle nil receiver gracefully @@ -700,7 +700,7 @@ func TestGettersAuthCapturePayoutResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } @@ -737,14 +737,14 @@ func TestSettersMarkExplicitAuthCapturePayoutResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} - var fernTestValueReferenceId Referenceidtrans + var fernTestValueReferenceID Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -892,14 +892,14 @@ func TestSettersMarkExplicitAuthCapturePayoutResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} - var fernTestValueCustomerId Customeridtrans + var fernTestValueCustomerID Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -923,14 +923,14 @@ func TestSettersMarkExplicitAuthCapturePayoutResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthCapturePayoutResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1013,11 +1013,11 @@ func TestSettersAuthorizePaymentMethod(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &AuthorizePaymentMethod{} - var fernTestValueStoredMethodId *string - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *string + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -1261,28 +1261,28 @@ func TestGettersAuthorizePaymentMethod(t *testing.T) { _ = obj.GetAchHolderType() // Should return zero value }) - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePaymentMethod{} var expected *string - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePaymentMethod{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthorizePaymentMethod // Should not panic - getters should handle nil receiver gracefully @@ -1291,7 +1291,7 @@ func TestGettersAuthorizePaymentMethod(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) t.Run("GetInitiator", func(t *testing.T) { @@ -1580,14 +1580,14 @@ func TestSettersMarkExplicitAuthorizePaymentMethod(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePaymentMethod{} - var fernTestValueStoredMethodId *string + var fernTestValueStoredMethodID *string // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1692,11 +1692,11 @@ func TestSettersAuthorizePayoutBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &AuthorizePayoutBody{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -1740,11 +1740,11 @@ func TestSettersAuthorizePayoutBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &AuthorizePayoutBody{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -1756,11 +1756,11 @@ func TestSettersAuthorizePayoutBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetSubscriptionId", func(t *testing.T) { + t.Run("SetSubscriptionID", func(t *testing.T) { obj := &AuthorizePayoutBody{} - var fernTestValueSubscriptionId *Subscriptionid - obj.SetSubscriptionId(fernTestValueSubscriptionId) - assert.Equal(t, fernTestValueSubscriptionId, obj.SubscriptionId) + var fernTestValueSubscriptionID *Subscriptionid + obj.SetSubscriptionID(fernTestValueSubscriptionID) + assert.Equal(t, fernTestValueSubscriptionID, obj.SubscriptionID) assert.NotNil(t, obj.explicitFields) }) @@ -1831,28 +1831,28 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { _ = obj.GetSource() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthorizePayoutBody // Should not panic - getters should handle nil receiver gracefully @@ -1861,7 +1861,7 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetOrderDescription", func(t *testing.T) { @@ -2029,28 +2029,28 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { _ = obj.GetInvoiceData() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthorizePayoutBody // Should not panic - getters should handle nil receiver gracefully @@ -2059,7 +2059,7 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetSubdomain", func(t *testing.T) { @@ -2095,28 +2095,28 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { _ = obj.GetSubdomain() // Should return zero value }) - t.Run("GetSubscriptionId", func(t *testing.T) { + t.Run("GetSubscriptionID", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} var expected *Subscriptionid - obj.SubscriptionId = expected + obj.SubscriptionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetSubscriptionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetSubscriptionID(), "getter should return the property value") }) - t.Run("GetSubscriptionId_NilValue", func(t *testing.T) { + t.Run("GetSubscriptionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - obj.SubscriptionId = nil + obj.SubscriptionID = nil // Act & Assert - assert.Nil(t, obj.GetSubscriptionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetSubscriptionID(), "getter should return nil when property is nil") }) - t.Run("GetSubscriptionId_NilReceiver", func(t *testing.T) { + t.Run("GetSubscriptionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AuthorizePayoutBody // Should not panic - getters should handle nil receiver gracefully @@ -2125,7 +2125,7 @@ func TestGettersAuthorizePayoutBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetSubscriptionId() // Should return zero value + _ = obj.GetSubscriptionID() // Should return zero value }) t.Run("GetAutoCapture", func(t *testing.T) { @@ -2226,14 +2226,14 @@ func TestSettersMarkExplicitAuthorizePayoutBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2412,14 +2412,14 @@ func TestSettersMarkExplicitAuthorizePayoutBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2474,14 +2474,14 @@ func TestSettersMarkExplicitAuthorizePayoutBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetSubscriptionId_MarksExplicit", func(t *testing.T) { + t.Run("SetSubscriptionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AuthorizePayoutBody{} - var fernTestValueSubscriptionId *Subscriptionid + var fernTestValueSubscriptionID *Subscriptionid // Act - obj.SetSubscriptionId(fernTestValueSubscriptionId) + obj.SetSubscriptionID(fernTestValueSubscriptionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2898,19 +2898,19 @@ func TestSettersMarkExplicitCaptureAllOutResponse(t *testing.T) { } func TestSettersCaptureAllOutResponseResponseDataItem(t *testing.T) { - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &CaptureAllOutResponseResponseDataItem{} - var fernTestValueCustomerId *Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &CaptureAllOutResponseResponseDataItem{} - var fernTestValueReferenceId *Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -2933,28 +2933,28 @@ func TestSettersCaptureAllOutResponseResponseDataItem(t *testing.T) { } func TestGettersCaptureAllOutResponseResponseDataItem(t *testing.T) { - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} var expected *Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureAllOutResponseResponseDataItem // Should not panic - getters should handle nil receiver gracefully @@ -2963,31 +2963,31 @@ func TestGettersCaptureAllOutResponseResponseDataItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} var expected *Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} - obj.ReferenceId = nil + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CaptureAllOutResponseResponseDataItem // Should not panic - getters should handle nil receiver gracefully @@ -2996,7 +2996,7 @@ func TestGettersCaptureAllOutResponseResponseDataItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -3068,14 +3068,14 @@ func TestGettersCaptureAllOutResponseResponseDataItem(t *testing.T) { } func TestSettersMarkExplicitCaptureAllOutResponseResponseDataItem(t *testing.T) { - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} - var fernTestValueCustomerId *Customeridtrans + var fernTestValueCustomerID *Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3099,14 +3099,14 @@ func TestSettersMarkExplicitCaptureAllOutResponseResponseDataItem(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CaptureAllOutResponseResponseDataItem{} - var fernTestValueReferenceId *Referenceidtrans + var fernTestValueReferenceID *Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4927,11 +4927,11 @@ func TestSettersMarkExplicitReissuePayoutResponse(t *testing.T) { } func TestSettersReissuePayoutResponseData(t *testing.T) { - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &ReissuePayoutResponseData{} - var fernTestValueTransactionId string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) @@ -4943,29 +4943,29 @@ func TestSettersReissuePayoutResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOriginalTransactionId", func(t *testing.T) { + t.Run("SetOriginalTransactionID", func(t *testing.T) { obj := &ReissuePayoutResponseData{} - var fernTestValueOriginalTransactionId *string - obj.SetOriginalTransactionId(fernTestValueOriginalTransactionId) - assert.Equal(t, fernTestValueOriginalTransactionId, obj.OriginalTransactionId) + var fernTestValueOriginalTransactionID *string + obj.SetOriginalTransactionID(fernTestValueOriginalTransactionID) + assert.Equal(t, fernTestValueOriginalTransactionID, obj.OriginalTransactionID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersReissuePayoutResponseData(t *testing.T) { - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissuePayoutResponseData{} var expected string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ReissuePayoutResponseData // Should not panic - getters should handle nil receiver gracefully @@ -4974,7 +4974,7 @@ func TestGettersReissuePayoutResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) t.Run("GetStatus", func(t *testing.T) { @@ -5000,28 +5000,28 @@ func TestGettersReissuePayoutResponseData(t *testing.T) { _ = obj.GetStatus() // Should return zero value }) - t.Run("GetOriginalTransactionId", func(t *testing.T) { + t.Run("GetOriginalTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissuePayoutResponseData{} var expected *string - obj.OriginalTransactionId = expected + obj.OriginalTransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOriginalTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOriginalTransactionID(), "getter should return the property value") }) - t.Run("GetOriginalTransactionId_NilValue", func(t *testing.T) { + t.Run("GetOriginalTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissuePayoutResponseData{} - obj.OriginalTransactionId = nil + obj.OriginalTransactionID = nil // Act & Assert - assert.Nil(t, obj.GetOriginalTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOriginalTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetOriginalTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetOriginalTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ReissuePayoutResponseData // Should not panic - getters should handle nil receiver gracefully @@ -5030,20 +5030,20 @@ func TestGettersReissuePayoutResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOriginalTransactionId() // Should return zero value + _ = obj.GetOriginalTransactionID() // Should return zero value }) } func TestSettersMarkExplicitReissuePayoutResponseData(t *testing.T) { - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissuePayoutResponseData{} - var fernTestValueTransactionId string + var fernTestValueTransactionID string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5098,14 +5098,14 @@ func TestSettersMarkExplicitReissuePayoutResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOriginalTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetOriginalTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ReissuePayoutResponseData{} - var fernTestValueOriginalTransactionId *string + var fernTestValueOriginalTransactionID *string // Act - obj.SetOriginalTransactionId(fernTestValueOriginalTransactionId) + obj.SetOriginalTransactionID(fernTestValueOriginalTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5180,11 +5180,11 @@ func TestSettersRequestOutAuthorizeInvoiceData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &RequestOutAuthorizeInvoiceData{} - var fernTestValueBillId *BillId - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *BillID + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -5437,28 +5437,28 @@ func TestGettersRequestOutAuthorizeInvoiceData(t *testing.T) { _ = obj.GetLotNumber() // Should return zero value }) - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeInvoiceData{} - var expected *BillId - obj.BillId = expected + var expected *BillID + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeInvoiceData{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestOutAuthorizeInvoiceData // Should not panic - getters should handle nil receiver gracefully @@ -5467,7 +5467,7 @@ func TestGettersRequestOutAuthorizeInvoiceData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetDiscount", func(t *testing.T) { @@ -5857,14 +5857,14 @@ func TestSettersMarkExplicitRequestOutAuthorizeInvoiceData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeInvoiceData{} - var fernTestValueBillId *BillId + var fernTestValueBillID *BillID // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7023,11 +7023,11 @@ func TestSettersRequestOutAuthorizeVendorData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &RequestOutAuthorizeVendorData{} - var fernTestValueInternalReferenceId *int64 - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int64 + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -7063,11 +7063,11 @@ func TestSettersRequestOutAuthorizeVendorData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &RequestOutAuthorizeVendorData{} - var fernTestValueVendorId *Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -7932,28 +7932,28 @@ func TestGettersRequestOutAuthorizeVendorData(t *testing.T) { _ = obj.GetAddress2() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} var expected *int64 - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestOutAuthorizeVendorData // Should not panic - getters should handle nil receiver gracefully @@ -7962,7 +7962,7 @@ func TestGettersRequestOutAuthorizeVendorData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLocationCode", func(t *testing.T) { @@ -8097,28 +8097,28 @@ func TestGettersRequestOutAuthorizeVendorData(t *testing.T) { _ = obj.GetPaymentMethod() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} var expected *Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestOutAuthorizeVendorData // Should not panic - getters should handle nil receiver gracefully @@ -8127,7 +8127,7 @@ func TestGettersRequestOutAuthorizeVendorData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) } @@ -8939,14 +8939,14 @@ func TestSettersMarkExplicitRequestOutAuthorizeVendorData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} - var fernTestValueInternalReferenceId *int64 + var fernTestValueInternalReferenceID *int64 // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9094,14 +9094,14 @@ func TestSettersMarkExplicitRequestOutAuthorizeVendorData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorData{} - var fernTestValueVendorId *Vendorid + var fernTestValueVendorID *Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9224,11 +9224,11 @@ func TestSettersRequestOutAuthorizeVendorDataOld(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &RequestOutAuthorizeVendorDataOld{} - var fernTestValueInternalReferenceId *int64 - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int64 + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -9352,11 +9352,11 @@ func TestSettersRequestOutAuthorizeVendorDataOld(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &RequestOutAuthorizeVendorDataOld{} - var fernTestValueVendorId *Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -9783,28 +9783,28 @@ func TestGettersRequestOutAuthorizeVendorDataOld(t *testing.T) { _ = obj.GetEmail() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} var expected *int64 - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestOutAuthorizeVendorDataOld // Should not panic - getters should handle nil receiver gracefully @@ -9813,7 +9813,7 @@ func TestGettersRequestOutAuthorizeVendorDataOld(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLocationCode", func(t *testing.T) { @@ -10311,28 +10311,28 @@ func TestGettersRequestOutAuthorizeVendorDataOld(t *testing.T) { _ = obj.GetState() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} var expected *Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestOutAuthorizeVendorDataOld // Should not panic - getters should handle nil receiver gracefully @@ -10341,7 +10341,7 @@ func TestGettersRequestOutAuthorizeVendorDataOld(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetVendorNumber", func(t *testing.T) { @@ -10818,14 +10818,14 @@ func TestSettersMarkExplicitRequestOutAuthorizeVendorDataOld(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} - var fernTestValueInternalReferenceId *int64 + var fernTestValueInternalReferenceID *int64 // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11314,14 +11314,14 @@ func TestSettersMarkExplicitRequestOutAuthorizeVendorDataOld(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestOutAuthorizeVendorDataOld{} - var fernTestValueVendorId *Vendorid + var fernTestValueVendorID *Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11641,19 +11641,19 @@ func TestSettersVCardGetResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &VCardGetResponse{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &VCardGetResponse{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -12485,28 +12485,28 @@ func TestGettersVCardGetResponse(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponse // Should not panic - getters should handle nil receiver gracefully @@ -12515,31 +12515,31 @@ func TestGettersVCardGetResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponse // Should not panic - getters should handle nil receiver gracefully @@ -12548,7 +12548,7 @@ func TestGettersVCardGetResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) } @@ -13329,14 +13329,14 @@ func TestSettersMarkExplicitVCardGetResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13360,14 +13360,14 @@ func TestSettersMarkExplicitVCardGetResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponse{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13546,11 +13546,11 @@ func TestSettersVCardGetResponseAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueVendorId *int - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *int + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -13602,11 +13602,11 @@ func TestSettersVCardGetResponseAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -13714,11 +13714,11 @@ func TestSettersVCardGetResponseAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueInternalReferenceId *int - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -13730,11 +13730,11 @@ func TestSettersVCardGetResponseAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -14376,28 +14376,28 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { _ = obj.GetVendorStatus() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} var expected *int - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -14406,7 +14406,7 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetEnrollmentStatus", func(t *testing.T) { @@ -14607,28 +14607,28 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -14637,7 +14637,7 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetCreatedDate", func(t *testing.T) { @@ -15069,28 +15069,28 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { _ = obj.GetCustomerVendorAccount() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} var expected *int - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -15099,7 +15099,7 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetAdditionalData", func(t *testing.T) { @@ -15135,28 +15135,28 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { _ = obj.GetAdditionalData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -15165,7 +15165,7 @@ func TestGettersVCardGetResponseAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetStoredMethods", func(t *testing.T) { @@ -15793,14 +15793,14 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueVendorId *int + var fernTestValueVendorID *int // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16010,14 +16010,14 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16444,14 +16444,14 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueInternalReferenceId *int + var fernTestValueInternalReferenceID *int // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16506,14 +16506,14 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendor{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16571,19 +16571,19 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendor(t *testing.T) { } func TestSettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendorBillingData{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &VCardGetResponseAssociatedVendorBillingData{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -16686,28 +16686,28 @@ func TestSettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { } func TestGettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendorBillingData // Should not panic - getters should handle nil receiver gracefully @@ -16716,31 +16716,31 @@ func TestGettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardGetResponseAssociatedVendorBillingData // Should not panic - getters should handle nil receiver gracefully @@ -16749,7 +16749,7 @@ func TestGettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetNickname", func(t *testing.T) { @@ -17151,14 +17151,14 @@ func TestGettersVCardGetResponseAssociatedVendorBillingData(t *testing.T) { } func TestSettersMarkExplicitVCardGetResponseAssociatedVendorBillingData(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17182,14 +17182,14 @@ func TestSettersMarkExplicitVCardGetResponseAssociatedVendorBillingData(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardGetResponseAssociatedVendorBillingData{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/moneyin/client.go b/moneyin/client.go index 2ebfd4d..0c35553 100644 --- a/moneyin/client.go +++ b/moneyin/client.go @@ -67,14 +67,14 @@ func (c *Client) Authorize( func (c *Client) Capture( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // Amount to be captured. The amount can't be greater the original total amount of the transaction. `0` captures the total amount authorized in the transaction. Partial captures aren't supported. amount float64, opts ...option.RequestOption, ) (*payabli.CaptureResponse, error) { response, err := c.WithRawResponse.Capture( ctx, - transId, + transID, amount, opts..., ) @@ -94,13 +94,13 @@ func (c *Client) Capture( func (c *Client) CaptureAuth( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.CaptureRequest, opts ...option.RequestOption, ) (*payabli.CaptureResponse, error) { response, err := c.WithRawResponse.CaptureAuth( ctx, - transId, + transID, request, opts..., ) @@ -117,7 +117,7 @@ func (c *Client) Credit( ctx context.Context, request *payabli.RequestCredit, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse0, error) { +) (*payabli.PayabliAPIResponse0, error) { response, err := c.WithRawResponse.Credit( ctx, request, @@ -133,12 +133,12 @@ func (c *Client) Credit( func (c *Client) Details( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*payabli.TransactionQueryRecordsCustomer, error) { response, err := c.WithRawResponse.Details( ctx, - transId, + transID, opts..., ) if err != nil { @@ -156,7 +156,7 @@ func (c *Client) Getpaid( ctx context.Context, request *payabli.RequestPayment, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseGetPaid, error) { +) (*payabli.PayabliAPIResponseGetPaid, error) { response, err := c.WithRawResponse.Getpaid( ctx, request, @@ -172,7 +172,7 @@ func (c *Client) Getpaid( func (c *Client) Reverse( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // // Amount to reverse from original transaction, minus any service fees charged on the original transaction. // @@ -184,7 +184,7 @@ func (c *Client) Reverse( ) (*payabli.ReverseResponse, error) { response, err := c.WithRawResponse.Reverse( ctx, - transId, + transID, amount, opts..., ) @@ -202,7 +202,7 @@ func (c *Client) Reverse( func (c *Client) Refund( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // // Amount to refund from original transaction, minus any service fees charged on the original transaction. // @@ -214,7 +214,7 @@ func (c *Client) Refund( ) (*payabli.RefundResponse, error) { response, err := c.WithRawResponse.Refund( ctx, - transId, + transID, amount, opts..., ) @@ -228,13 +228,13 @@ func (c *Client) Refund( func (c *Client) RefundWithInstructions( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.RequestRefund, opts ...option.RequestOption, ) (*payabli.RefundWithInstructionsResponse, error) { response, err := c.WithRawResponse.RefundWithInstructions( ctx, - transId, + transID, request, opts..., ) @@ -248,12 +248,12 @@ func (c *Client) RefundWithInstructions( func (c *Client) ReverseCredit( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse, error) { +) (*payabli.PayabliAPIResponse, error) { response, err := c.WithRawResponse.ReverseCredit( ctx, - transId, + transID, opts..., ) if err != nil { @@ -266,13 +266,13 @@ func (c *Client) ReverseCredit( func (c *Client) SendReceipt2Trans( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.SendReceipt2TransRequest, opts ...option.RequestOption, ) (*payabli.ReceiptResponse, error) { response, err := c.WithRawResponse.SendReceipt2Trans( ctx, - transId, + transID, request, opts..., ) @@ -307,12 +307,12 @@ func (c *Client) Validate( func (c *Client) Void( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*payabli.VoidResponse, error) { response, err := c.WithRawResponse.Void( ctx, - transId, + transID, opts..., ) if err != nil { @@ -361,13 +361,13 @@ func (c *Client) Authorizev2( func (c *Client) Capturev2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.CaptureRequest, opts ...option.RequestOption, ) (*payabli.V2TransactionResponseWrapper, error) { response, err := c.WithRawResponse.Capturev2( ctx, - transId, + transID, request, opts..., ) @@ -383,12 +383,12 @@ func (c *Client) Capturev2( func (c *Client) Refundv2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*payabli.V2TransactionResponseWrapper, error) { response, err := c.WithRawResponse.Refundv2( ctx, - transId, + transID, opts..., ) if err != nil { @@ -403,14 +403,14 @@ func (c *Client) Refundv2( func (c *Client) Refundv2Amount( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // Amount to refund from original transaction, minus any service fees charged on the original transaction. If omitted or set to 0, performs a full refund. amount float64, opts ...option.RequestOption, ) (*payabli.V2TransactionResponseWrapper, error) { response, err := c.WithRawResponse.Refundv2Amount( ctx, - transId, + transID, amount, opts..., ) @@ -424,12 +424,12 @@ func (c *Client) Refundv2Amount( func (c *Client) Voidv2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*payabli.V2TransactionResponseWrapper, error) { response, err := c.WithRawResponse.Voidv2( ctx, - transId, + transID, opts..., ) if err != nil { diff --git a/moneyin/money_in_test/money_in_test.go b/moneyin/money_in_test/money_in_test.go index 8cb630e..df93a29 100644 --- a/moneyin/money_in_test/money_in_test.go +++ b/moneyin/money_in_test/money_in_test.go @@ -75,7 +75,7 @@ func TestMoneyInAuthorizeWithWireMock( request := &payabli.RequestPaymentAuthorize{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -268,7 +268,7 @@ func TestMoneyInGetpaidWithWireMock( request := &payabli.RequestPayment{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -391,7 +391,7 @@ func TestMoneyInRefundWithInstructionsWithWireMock( OriginationEntryPoint: payabli.String( "7f1a381696", ), - AccountId: payabli.String( + AccountID: payabli.String( "187-342", ), Description: payabli.String( @@ -405,7 +405,7 @@ func TestMoneyInRefundWithInstructionsWithWireMock( OriginationEntryPoint: payabli.String( "7f1a381696", ), - AccountId: payabli.String( + AccountID: payabli.String( "187-343", ), Description: payabli.String( @@ -551,7 +551,7 @@ func TestMoneyInGetpaidv2WithWireMock( request := &payabli.RequestPaymentV2{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -612,7 +612,7 @@ func TestMoneyInAuthorizev2WithWireMock( request := &payabli.RequestPaymentAuthorizeV2{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, diff --git a/moneyin/raw_client.go b/moneyin/raw_client.go index ff92506..4633224 100644 --- a/moneyin/raw_client.go +++ b/moneyin/raw_client.go @@ -86,7 +86,7 @@ func (r *RawClient) Authorize( func (r *RawClient) Capture( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // Amount to be captured. The amount can't be greater the original total amount of the transaction. `0` captures the total amount authorized in the transaction. Partial captures aren't supported. amount float64, opts ...option.RequestOption, @@ -99,7 +99,7 @@ func (r *RawClient) Capture( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/capture/%v/%v", - transId, + transID, amount, ) headers := internal.MergeHeaders( @@ -134,7 +134,7 @@ func (r *RawClient) Capture( func (r *RawClient) CaptureAuth( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.CaptureRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.CaptureResponse], error) { @@ -146,7 +146,7 @@ func (r *RawClient) CaptureAuth( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/capture/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -182,7 +182,7 @@ func (r *RawClient) Credit( ctx context.Context, request *payabli.RequestCredit, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse0], error) { +) (*core.Response[*payabli.PayabliAPIResponse0], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -205,7 +205,7 @@ func (r *RawClient) Credit( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponse0 + var response *payabli.PayabliAPIResponse0 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -224,7 +224,7 @@ func (r *RawClient) Credit( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse0]{ + return &core.Response[*payabli.PayabliAPIResponse0]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -234,7 +234,7 @@ func (r *RawClient) Credit( func (r *RawClient) Details( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*core.Response[*payabli.TransactionQueryRecordsCustomer], error) { options := core.NewRequestOptions(opts...) @@ -245,7 +245,7 @@ func (r *RawClient) Details( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/details/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -280,7 +280,7 @@ func (r *RawClient) Getpaid( ctx context.Context, request *payabli.RequestPayment, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseGetPaid], error) { +) (*core.Response[*payabli.PayabliAPIResponseGetPaid], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -306,7 +306,7 @@ func (r *RawClient) Getpaid( headers.Add("validationCode", *request.ValidationCode) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponseGetPaid + var response *payabli.PayabliAPIResponseGetPaid raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -325,7 +325,7 @@ func (r *RawClient) Getpaid( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseGetPaid]{ + return &core.Response[*payabli.PayabliAPIResponseGetPaid]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -335,7 +335,7 @@ func (r *RawClient) Getpaid( func (r *RawClient) Reverse( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // // Amount to reverse from original transaction, minus any service fees charged on the original transaction. // @@ -353,7 +353,7 @@ func (r *RawClient) Reverse( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/reverse/%v/%v", - transId, + transID, amount, ) headers := internal.MergeHeaders( @@ -388,7 +388,7 @@ func (r *RawClient) Reverse( func (r *RawClient) Refund( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // // Amount to refund from original transaction, minus any service fees charged on the original transaction. // @@ -406,7 +406,7 @@ func (r *RawClient) Refund( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/refund/%v/%v", - transId, + transID, amount, ) headers := internal.MergeHeaders( @@ -441,7 +441,7 @@ func (r *RawClient) Refund( func (r *RawClient) RefundWithInstructions( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.RequestRefund, opts ...option.RequestOption, ) (*core.Response[*payabli.RefundWithInstructionsResponse], error) { @@ -453,7 +453,7 @@ func (r *RawClient) RefundWithInstructions( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/refund/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -492,9 +492,9 @@ func (r *RawClient) RefundWithInstructions( func (r *RawClient) ReverseCredit( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse], error) { +) (*core.Response[*payabli.PayabliAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -503,13 +503,13 @@ func (r *RawClient) ReverseCredit( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/reverseCredit/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse + var response *payabli.PayabliAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -527,7 +527,7 @@ func (r *RawClient) ReverseCredit( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse]{ + return &core.Response[*payabli.PayabliAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -537,7 +537,7 @@ func (r *RawClient) ReverseCredit( func (r *RawClient) SendReceipt2Trans( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.SendReceipt2TransRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.ReceiptResponse], error) { @@ -549,7 +549,7 @@ func (r *RawClient) SendReceipt2Trans( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/sendreceipt/%v", - transId, + transID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -636,7 +636,7 @@ func (r *RawClient) Validate( func (r *RawClient) Void( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*core.Response[*payabli.VoidResponse], error) { options := core.NewRequestOptions(opts...) @@ -647,7 +647,7 @@ func (r *RawClient) Void( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyIn/void/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -790,7 +790,7 @@ func (r *RawClient) Authorizev2( func (r *RawClient) Capturev2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, request *payabli.CaptureRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.V2TransactionResponseWrapper], error) { @@ -802,7 +802,7 @@ func (r *RawClient) Capturev2( ) endpointURL := internal.EncodeURL( baseURL+"/v2/MoneyIn/capture/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -837,7 +837,7 @@ func (r *RawClient) Capturev2( func (r *RawClient) Refundv2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*core.Response[*payabli.V2TransactionResponseWrapper], error) { options := core.NewRequestOptions(opts...) @@ -848,7 +848,7 @@ func (r *RawClient) Refundv2( ) endpointURL := internal.EncodeURL( baseURL+"/v2/MoneyIn/refund/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -882,7 +882,7 @@ func (r *RawClient) Refundv2( func (r *RawClient) Refundv2Amount( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, // Amount to refund from original transaction, minus any service fees charged on the original transaction. If omitted or set to 0, performs a full refund. amount float64, opts ...option.RequestOption, @@ -895,7 +895,7 @@ func (r *RawClient) Refundv2Amount( ) endpointURL := internal.EncodeURL( baseURL+"/v2/MoneyIn/refund/%v/%v", - transId, + transID, amount, ) headers := internal.MergeHeaders( @@ -930,7 +930,7 @@ func (r *RawClient) Refundv2Amount( func (r *RawClient) Voidv2( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*core.Response[*payabli.V2TransactionResponseWrapper], error) { options := core.NewRequestOptions(opts...) @@ -941,7 +941,7 @@ func (r *RawClient) Voidv2( ) endpointURL := internal.EncodeURL( baseURL+"/v2/MoneyIn/void/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), diff --git a/moneyout/client.go b/moneyout/client.go index 90c7881..d8f4145 100644 --- a/moneyout/client.go +++ b/moneyout/client.go @@ -70,12 +70,12 @@ func (c *Client) CancelAllOut( func (c *Client) CancelOutGet( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse0000, error) { +) (*payabli.PayabliAPIResponse0000, error) { response, err := c.WithRawResponse.CancelOutGet( ctx, - referenceId, + referenceID, opts..., ) if err != nil { @@ -88,12 +88,12 @@ func (c *Client) CancelOutGet( func (c *Client) CancelOutDelete( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse0000, error) { +) (*payabli.PayabliAPIResponse0000, error) { response, err := c.WithRawResponse.CancelOutDelete( ctx, - referenceId, + referenceID, opts..., ) if err != nil { @@ -123,13 +123,13 @@ func (c *Client) CaptureAllOut( func (c *Client) CaptureOut( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, request *payabli.CaptureOutRequest, opts ...option.RequestOption, ) (*payabli.AuthCapturePayoutResponse, error) { response, err := c.WithRawResponse.CaptureOut( ctx, - referenceId, + referenceID, request, opts..., ) @@ -143,12 +143,12 @@ func (c *Client) CaptureOut( func (c *Client) PayoutDetails( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*payabli.BillDetailResponse, error) { response, err := c.WithRawResponse.PayoutDetails( ctx, - transId, + transID, opts..., ) if err != nil { @@ -236,14 +236,14 @@ func (c *Client) GetCheckImage( func (c *Client) UpdateCheckPaymentStatus( ctx context.Context, // The Payabli transaction ID for the check payment. - transId string, + transID string, // The new status to apply to the check transaction. To mark a check as `Paid`, send 5. To mark a check as `Cancelled`, send 0. checkPaymentStatus *payabli.AllowedCheckPaymentStatus, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.UpdateCheckPaymentStatus( ctx, - transId, + transID, checkPaymentStatus, opts..., ) diff --git a/moneyout/money_out_test/money_out_test.go b/moneyout/money_out_test/money_out_test.go index b0c801b..83f1a84 100644 --- a/moneyout/money_out_test/money_out_test.go +++ b/moneyout/money_out_test/money_out_test.go @@ -80,7 +80,7 @@ func TestMoneyOutAuthorizeOutWithWireMock( ), InvoiceData: []*payabli.RequestOutAuthorizeInvoiceData{ &payabli.RequestOutAuthorizeInvoiceData{ - BillId: payabli.Int64( + BillID: payabli.Int64( int64(54323), ), }, @@ -297,7 +297,7 @@ func TestMoneyOutSendVCardLinkWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.SendVCardLinkRequest{ - TransId: "01K33Z6YQZ6GD5QVKZ856MJBSC", + TransID: "01K33Z6YQZ6GD5QVKZ856MJBSC", } _, invocationErr := client.MoneyOut.SendVCardLink( context.TODO(), @@ -367,7 +367,7 @@ func TestMoneyOutReissueOutWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.ReissueOutRequest{ - TransId: "129-219", + TransID: "129-219", Body: &payabli.ReissuePayoutBody{ PaymentMethod: &payabli.ReissuePaymentMethod{ Method: "ach", diff --git a/moneyout/raw_client.go b/moneyout/raw_client.go index caf38be..58db071 100644 --- a/moneyout/raw_client.go +++ b/moneyout/raw_client.go @@ -128,9 +128,9 @@ func (r *RawClient) CancelAllOut( func (r *RawClient) CancelOutGet( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse0000], error) { +) (*core.Response[*payabli.PayabliAPIResponse0000], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -139,13 +139,13 @@ func (r *RawClient) CancelOutGet( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyOut/cancel/%v", - referenceId, + referenceID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse0000 + var response *payabli.PayabliAPIResponse0000 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -163,7 +163,7 @@ func (r *RawClient) CancelOutGet( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse0000]{ + return &core.Response[*payabli.PayabliAPIResponse0000]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -173,9 +173,9 @@ func (r *RawClient) CancelOutGet( func (r *RawClient) CancelOutDelete( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse0000], error) { +) (*core.Response[*payabli.PayabliAPIResponse0000], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -184,13 +184,13 @@ func (r *RawClient) CancelOutDelete( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyOut/cancel/%v", - referenceId, + referenceID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse0000 + var response *payabli.PayabliAPIResponse0000 raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -208,7 +208,7 @@ func (r *RawClient) CancelOutDelete( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse0000]{ + return &core.Response[*payabli.PayabliAPIResponse0000]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -264,7 +264,7 @@ func (r *RawClient) CaptureAllOut( func (r *RawClient) CaptureOut( ctx context.Context, // The ID for the payout transaction. - referenceId string, + referenceID string, request *payabli.CaptureOutRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.AuthCapturePayoutResponse], error) { @@ -276,7 +276,7 @@ func (r *RawClient) CaptureOut( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyOut/capture/%v", - referenceId, + referenceID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -314,7 +314,7 @@ func (r *RawClient) CaptureOut( func (r *RawClient) PayoutDetails( ctx context.Context, // ReferenceId for the transaction (PaymentId). - transId string, + transID string, opts ...option.RequestOption, ) (*core.Response[*payabli.BillDetailResponse], error) { options := core.NewRequestOptions(opts...) @@ -325,7 +325,7 @@ func (r *RawClient) PayoutDetails( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyOut/details/%v", - transId, + transID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -500,11 +500,11 @@ func (r *RawClient) GetCheckImage( func (r *RawClient) UpdateCheckPaymentStatus( ctx context.Context, // The Payabli transaction ID for the check payment. - transId string, + transID string, // The new status to apply to the check transaction. To mark a check as `Paid`, send 5. To mark a check as `Cancelled`, send 0. checkPaymentStatus *payabli.AllowedCheckPaymentStatus, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -513,14 +513,14 @@ func (r *RawClient) UpdateCheckPaymentStatus( ) endpointURL := internal.EncodeURL( baseURL+"/MoneyOut/status/%v/%v", - transId, + transID, checkPaymentStatus, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -538,7 +538,7 @@ func (r *RawClient) UpdateCheckPaymentStatus( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/notification.go b/notification.go index 8167c26..36dd1a2 100644 --- a/notification.go +++ b/notification.go @@ -15,8 +15,8 @@ var ( notificationQueryRecordFieldFrequency = big.NewInt(1 << 2) notificationQueryRecordFieldLastUpdated = big.NewInt(1 << 3) notificationQueryRecordFieldMethod = big.NewInt(1 << 4) - notificationQueryRecordFieldNotificationId = big.NewInt(1 << 5) - notificationQueryRecordFieldOwnerId = big.NewInt(1 << 6) + notificationQueryRecordFieldNotificationID = big.NewInt(1 << 5) + notificationQueryRecordFieldOwnerID = big.NewInt(1 << 6) notificationQueryRecordFieldOwnerName = big.NewInt(1 << 7) notificationQueryRecordFieldOwnerType = big.NewInt(1 << 8) notificationQueryRecordFieldSource = big.NewInt(1 << 9) @@ -33,8 +33,8 @@ type NotificationQueryRecord struct { // Timestamp of when notification was last updated. LastUpdated *LastModified `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` Method *Methodnotification `json:"method,omitempty" url:"method,omitempty"` - NotificationId *NotificationId `json:"notificationId,omitempty" url:"notificationId,omitempty"` - OwnerId *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` + NotificationID *NotificationID `json:"notificationId,omitempty" url:"notificationId,omitempty"` + OwnerID *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` // Name of entity owner of notification. OwnerName *string `json:"ownerName,omitempty" url:"ownerName,omitempty"` OwnerType *Ownertype `json:"ownerType,omitempty" url:"ownerType,omitempty"` @@ -85,18 +85,18 @@ func (n *NotificationQueryRecord) GetMethod() *Methodnotification { return n.Method } -func (n *NotificationQueryRecord) GetNotificationId() *NotificationId { +func (n *NotificationQueryRecord) GetNotificationID() *NotificationID { if n == nil { return nil } - return n.NotificationId + return n.NotificationID } -func (n *NotificationQueryRecord) GetOwnerId() *Ownerid { +func (n *NotificationQueryRecord) GetOwnerID() *Ownerid { if n == nil { return nil } - return n.OwnerId + return n.OwnerID } func (n *NotificationQueryRecord) GetOwnerName() *string { @@ -183,18 +183,18 @@ func (n *NotificationQueryRecord) SetMethod(method *Methodnotification) { n.require(notificationQueryRecordFieldMethod) } -// SetNotificationId sets the NotificationId field and marks it as non-optional; +// SetNotificationID sets the NotificationID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationQueryRecord) SetNotificationId(notificationId *NotificationId) { - n.NotificationId = notificationId - n.require(notificationQueryRecordFieldNotificationId) +func (n *NotificationQueryRecord) SetNotificationID(notificationID *NotificationID) { + n.NotificationID = notificationID + n.require(notificationQueryRecordFieldNotificationID) } -// SetOwnerId sets the OwnerId field and marks it as non-optional; +// SetOwnerID sets the OwnerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationQueryRecord) SetOwnerId(ownerId *Ownerid) { - n.OwnerId = ownerId - n.require(notificationQueryRecordFieldOwnerId) +func (n *NotificationQueryRecord) SetOwnerID(ownerID *Ownerid) { + n.OwnerID = ownerID + n.require(notificationQueryRecordFieldOwnerID) } // SetOwnerName sets the OwnerName field and marks it as non-optional; @@ -291,7 +291,7 @@ var ( notificationReportRequestFieldContent = big.NewInt(1 << 0) notificationReportRequestFieldFrequency = big.NewInt(1 << 1) notificationReportRequestFieldMethod = big.NewInt(1 << 2) - notificationReportRequestFieldOwnerId = big.NewInt(1 << 3) + notificationReportRequestFieldOwnerID = big.NewInt(1 << 3) notificationReportRequestFieldOwnerType = big.NewInt(1 << 4) notificationReportRequestFieldStatus = big.NewInt(1 << 5) notificationReportRequestFieldTarget = big.NewInt(1 << 6) @@ -302,7 +302,7 @@ type NotificationReportRequest struct { Frequency NotificationReportRequestFrequency `json:"frequency" url:"frequency"` // Automated reporting lets you gather critical reports without manually filtering and exporting the data. Get automated daily, weekly, and monthly report for daily sales, ACH returns, settlements, and more. You can send these reports via email or via webhook. See [Automated Reports](/developers/developer-guides/notifications-and-webhooks-overview#automated-reports) for more. Method NotificationReportRequestMethod `json:"method" url:"method"` - OwnerId *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` + OwnerID *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` OwnerType Ownertype `json:"ownerType" url:"ownerType"` Status *Statusnotification `json:"status,omitempty" url:"status,omitempty"` // Specify the notification target. @@ -340,11 +340,11 @@ func (n *NotificationReportRequest) GetMethod() NotificationReportRequestMethod return n.Method } -func (n *NotificationReportRequest) GetOwnerId() *Ownerid { +func (n *NotificationReportRequest) GetOwnerID() *Ownerid { if n == nil { return nil } - return n.OwnerId + return n.OwnerID } func (n *NotificationReportRequest) GetOwnerType() Ownertype { @@ -403,11 +403,11 @@ func (n *NotificationReportRequest) SetMethod(method NotificationReportRequestMe n.require(notificationReportRequestFieldMethod) } -// SetOwnerId sets the OwnerId field and marks it as non-optional; +// SetOwnerID sets the OwnerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationReportRequest) SetOwnerId(ownerId *Ownerid) { - n.OwnerId = ownerId - n.require(notificationReportRequestFieldOwnerId) +func (n *NotificationReportRequest) SetOwnerID(ownerID *Ownerid) { + n.OwnerID = ownerID + n.require(notificationReportRequestFieldOwnerID) } // SetOwnerType sets the OwnerType field and marks it as non-optional; @@ -479,7 +479,7 @@ var ( notificationReportRequestContentFieldInternalData = big.NewInt(1 << 2) notificationReportRequestContentFieldReportName = big.NewInt(1 << 3) notificationReportRequestContentFieldTimeZone = big.NewInt(1 << 4) - notificationReportRequestContentFieldTransactionId = big.NewInt(1 << 5) + notificationReportRequestContentFieldTransactionID = big.NewInt(1 << 5) notificationReportRequestContentFieldWebHeaderParameters = big.NewInt(1 << 6) ) @@ -494,7 +494,7 @@ type NotificationReportRequestContent struct { ReportName *NotificationReportRequestContentReportName `json:"reportName,omitempty" url:"reportName,omitempty"` TimeZone *Timezone `json:"timeZone,omitempty" url:"timeZone,omitempty"` // Used internally to reference the entity or object generating the event. - TransactionId *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` + TransactionID *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` // Array of pairs key:value to insert in header of request to target in **method** = *report-web*. WebHeaderParameters []*KeyValueDuo `json:"webHeaderParameters,omitempty" url:"webHeaderParameters,omitempty"` @@ -533,11 +533,11 @@ func (n *NotificationReportRequestContent) GetTimeZone() *Timezone { return n.TimeZone } -func (n *NotificationReportRequestContent) GetTransactionId() *string { +func (n *NotificationReportRequestContent) GetTransactionID() *string { if n == nil { return nil } - return n.TransactionId + return n.TransactionID } func (n *NotificationReportRequestContent) GetWebHeaderParameters() []*KeyValueDuo { @@ -596,11 +596,11 @@ func (n *NotificationReportRequestContent) SetTimeZone(timeZone *Timezone) { n.require(notificationReportRequestContentFieldTimeZone) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationReportRequestContent) SetTransactionId(transactionId *string) { - n.TransactionId = transactionId - n.require(notificationReportRequestContentFieldTransactionId) +func (n *NotificationReportRequestContent) SetTransactionID(transactionID *string) { + n.TransactionID = transactionID + n.require(notificationReportRequestContentFieldTransactionID) } // SetWebHeaderParameters sets the WebHeaderParameters field and marks it as non-optional; @@ -656,7 +656,7 @@ func (n *NotificationReportRequestContent) String() string { type NotificationReportRequestContentFileFormat string const ( - NotificationReportRequestContentFileFormatJson NotificationReportRequestContentFileFormat = "json" + NotificationReportRequestContentFileFormatJSON NotificationReportRequestContentFileFormat = "json" NotificationReportRequestContentFileFormatCsv NotificationReportRequestContentFileFormat = "csv" NotificationReportRequestContentFileFormatXlsx NotificationReportRequestContentFileFormat = "xlsx" ) @@ -664,7 +664,7 @@ const ( func NewNotificationReportRequestContentFileFormatFromString(s string) (NotificationReportRequestContentFileFormat, error) { switch s { case "json": - return NotificationReportRequestContentFileFormatJson, nil + return NotificationReportRequestContentFileFormatJSON, nil case "csv": return NotificationReportRequestContentFileFormatCsv, nil case "xlsx": @@ -775,7 +775,7 @@ var ( notificationStandardRequestFieldContent = big.NewInt(1 << 0) notificationStandardRequestFieldFrequency = big.NewInt(1 << 1) notificationStandardRequestFieldMethod = big.NewInt(1 << 2) - notificationStandardRequestFieldOwnerId = big.NewInt(1 << 3) + notificationStandardRequestFieldOwnerID = big.NewInt(1 << 3) notificationStandardRequestFieldOwnerType = big.NewInt(1 << 4) notificationStandardRequestFieldStatus = big.NewInt(1 << 5) notificationStandardRequestFieldTarget = big.NewInt(1 << 6) @@ -786,7 +786,7 @@ type NotificationStandardRequest struct { Frequency NotificationStandardRequestFrequency `json:"frequency" url:"frequency"` // Get near-instant notifications via email, SMS, or webhooks for important events like new payment disputes, merchant activations, fraud alerts, approved transactions, settlement history, vendor payouts, and more. Use webhooks with notifications to get real-time updates and automate operations based on key those key events. See [Notifications](/developers/developer-guides/notifications-and-webhooks-overview#notifications) for more. Method NotificationStandardRequestMethod `json:"method" url:"method"` - OwnerId *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` + OwnerID *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` OwnerType Ownertype `json:"ownerType" url:"ownerType"` Status *Statusnotification `json:"status,omitempty" url:"status,omitempty"` // Specify the notification target. @@ -824,11 +824,11 @@ func (n *NotificationStandardRequest) GetMethod() NotificationStandardRequestMet return n.Method } -func (n *NotificationStandardRequest) GetOwnerId() *Ownerid { +func (n *NotificationStandardRequest) GetOwnerID() *Ownerid { if n == nil { return nil } - return n.OwnerId + return n.OwnerID } func (n *NotificationStandardRequest) GetOwnerType() Ownertype { @@ -887,11 +887,11 @@ func (n *NotificationStandardRequest) SetMethod(method NotificationStandardReque n.require(notificationStandardRequestFieldMethod) } -// SetOwnerId sets the OwnerId field and marks it as non-optional; +// SetOwnerID sets the OwnerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationStandardRequest) SetOwnerId(ownerId *Ownerid) { - n.OwnerId = ownerId - n.require(notificationStandardRequestFieldOwnerId) +func (n *NotificationStandardRequest) SetOwnerID(ownerID *Ownerid) { + n.OwnerID = ownerID + n.require(notificationStandardRequestFieldOwnerID) } // SetOwnerType sets the OwnerType field and marks it as non-optional; @@ -960,7 +960,7 @@ func (n *NotificationStandardRequest) String() string { var ( notificationStandardRequestContentFieldEventType = big.NewInt(1 << 0) notificationStandardRequestContentFieldInternalData = big.NewInt(1 << 1) - notificationStandardRequestContentFieldTransactionId = big.NewInt(1 << 2) + notificationStandardRequestContentFieldTransactionID = big.NewInt(1 << 2) notificationStandardRequestContentFieldWebHeaderParameters = big.NewInt(1 << 3) ) @@ -970,7 +970,7 @@ type NotificationStandardRequestContent struct { // Array of pairs key:value to insert in request body to target in **method** = *web*. InternalData []*KeyValueDuo `json:"internalData,omitempty" url:"internalData,omitempty"` // Used internally to reference the entity or object generating the event. - TransactionId *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` + TransactionID *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` // Array of pairs key:value to insert in header of request to target in **method** = *web*. WebHeaderParameters []*KeyValueDuo `json:"webHeaderParameters,omitempty" url:"webHeaderParameters,omitempty"` @@ -995,11 +995,11 @@ func (n *NotificationStandardRequestContent) GetInternalData() []*KeyValueDuo { return n.InternalData } -func (n *NotificationStandardRequestContent) GetTransactionId() *string { +func (n *NotificationStandardRequestContent) GetTransactionID() *string { if n == nil { return nil } - return n.TransactionId + return n.TransactionID } func (n *NotificationStandardRequestContent) GetWebHeaderParameters() []*KeyValueDuo { @@ -1037,11 +1037,11 @@ func (n *NotificationStandardRequestContent) SetInternalData(internalData []*Key n.require(notificationStandardRequestContentFieldInternalData) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationStandardRequestContent) SetTransactionId(transactionId *string) { - n.TransactionId = transactionId - n.require(notificationStandardRequestContentFieldTransactionId) +func (n *NotificationStandardRequestContent) SetTransactionID(transactionID *string) { + n.TransactionID = transactionID + n.require(notificationStandardRequestContentFieldTransactionID) } // SetWebHeaderParameters sets the WebHeaderParameters field and marks it as non-optional; @@ -1537,14 +1537,14 @@ func (n NotificationStandardRequestMethod) Ptr() *NotificationStandardRequestMet } var ( - payabliApiResponseNotificationsFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseNotificationsFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponseNotificationsFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseNotificationsFieldResponseData = big.NewInt(1 << 3) - payabliApiResponseNotificationsFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseNotificationsFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseNotificationsFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponseNotificationsFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseNotificationsFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseNotificationsFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseNotifications struct { +type PayabliAPIResponseNotifications struct { // If `isSuccess` = true, `responseData` contains the notification identifier. // // If `isSuccess` = false, `responseData` contains the reason for the error. @@ -1552,7 +1552,7 @@ type PayabliApiResponseNotifications struct { PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` // When the request was successful, this contains the notification ID, or `nID` used to manage the notification. - ResponseData *PayabliApiResponseNotificationsResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponseNotificationsResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1562,49 +1562,49 @@ type PayabliApiResponseNotifications struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseNotifications) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseNotifications) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseNotifications) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponseNotifications) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponseNotifications) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponseNotifications) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponseNotifications) GetResponseData() *PayabliApiResponseNotificationsResponseData { +func (p *PayabliAPIResponseNotifications) GetResponseData() *PayabliAPIResponseNotificationsResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseNotifications) GetResponseText() ResponseText { +func (p *PayabliAPIResponseNotifications) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseNotifications) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseNotifications) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseNotifications) require(field *big.Int) { +func (p *PayabliAPIResponseNotifications) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -1613,46 +1613,46 @@ func (p *PayabliApiResponseNotifications) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseNotifications) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseNotifications) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseNotificationsFieldIsSuccess) + p.require(payabliAPIResponseNotificationsFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseNotifications) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponseNotifications) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponseNotificationsFieldPageIdentifier) + p.require(payabliAPIResponseNotificationsFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseNotifications) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponseNotifications) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponseNotificationsFieldResponseCode) + p.require(payabliAPIResponseNotificationsFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseNotifications) SetResponseData(responseData *PayabliApiResponseNotificationsResponseData) { +func (p *PayabliAPIResponseNotifications) SetResponseData(responseData *PayabliAPIResponseNotificationsResponseData) { p.ResponseData = responseData - p.require(payabliApiResponseNotificationsFieldResponseData) + p.require(payabliAPIResponseNotificationsFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseNotifications) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseNotifications) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseNotificationsFieldResponseText) + p.require(payabliAPIResponseNotificationsFieldResponseText) } -func (p *PayabliApiResponseNotifications) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseNotifications +func (p *PayabliAPIResponseNotifications) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseNotifications var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseNotifications(value) + *p = PayabliAPIResponseNotifications(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -1662,8 +1662,8 @@ func (p *PayabliApiResponseNotifications) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseNotifications) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseNotifications +func (p *PayabliAPIResponseNotifications) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseNotifications var marshaler = struct { embed }{ @@ -1673,7 +1673,7 @@ func (p *PayabliApiResponseNotifications) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseNotifications) String() string { +func (p *PayabliAPIResponseNotifications) String() string { if p == nil { return "" } @@ -1690,28 +1690,28 @@ func (p *PayabliApiResponseNotifications) String() string { // When the request was successful, this contains the notification ID, or // `nID` used to manage the notification. -type PayabliApiResponseNotificationsResponseData struct { +type PayabliAPIResponseNotificationsResponseData struct { Integer int String string typ string } -func (p *PayabliApiResponseNotificationsResponseData) GetInteger() int { +func (p *PayabliAPIResponseNotificationsResponseData) GetInteger() int { if p == nil { return 0 } return p.Integer } -func (p *PayabliApiResponseNotificationsResponseData) GetString() string { +func (p *PayabliAPIResponseNotificationsResponseData) GetString() string { if p == nil { return "" } return p.String } -func (p *PayabliApiResponseNotificationsResponseData) UnmarshalJSON(data []byte) error { +func (p *PayabliAPIResponseNotificationsResponseData) UnmarshalJSON(data []byte) error { var valueInteger int if err := json.Unmarshal(data, &valueInteger); err == nil { p.typ = "Integer" @@ -1727,7 +1727,7 @@ func (p *PayabliApiResponseNotificationsResponseData) UnmarshalJSON(data []byte) return fmt.Errorf("%s cannot be deserialized as a %T", data, p) } -func (p PayabliApiResponseNotificationsResponseData) MarshalJSON() ([]byte, error) { +func (p PayabliAPIResponseNotificationsResponseData) MarshalJSON() ([]byte, error) { if p.typ == "Integer" || p.Integer != 0 { return json.Marshal(p.Integer) } @@ -1737,12 +1737,12 @@ func (p PayabliApiResponseNotificationsResponseData) MarshalJSON() ([]byte, erro return nil, fmt.Errorf("type %T does not include a non-empty union type", p) } -type PayabliApiResponseNotificationsResponseDataVisitor interface { +type PayabliAPIResponseNotificationsResponseDataVisitor interface { VisitInteger(int) error VisitString(string) error } -func (p *PayabliApiResponseNotificationsResponseData) Accept(visitor PayabliApiResponseNotificationsResponseDataVisitor) error { +func (p *PayabliAPIResponseNotificationsResponseData) Accept(visitor PayabliAPIResponseNotificationsResponseDataVisitor) error { if p.typ == "Integer" || p.Integer != 0 { return visitor.VisitInteger(p.Integer) } diff --git a/notification/client.go b/notification/client.go index 2e51cb3..82042ca 100644 --- a/notification/client.go +++ b/notification/client.go @@ -37,7 +37,7 @@ func (c *Client) AddNotification( ctx context.Context, request *payabli.AddNotificationRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseNotifications, error) { +) (*payabli.PayabliAPIResponseNotifications, error) { response, err := c.WithRawResponse.AddNotification( ctx, request, @@ -53,12 +53,12 @@ func (c *Client) AddNotification( func (c *Client) DeleteNotification( ctx context.Context, // Notification ID. - nId string, + nID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseNotifications, error) { +) (*payabli.PayabliAPIResponseNotifications, error) { response, err := c.WithRawResponse.DeleteNotification( ctx, - nId, + nID, opts..., ) if err != nil { @@ -71,12 +71,12 @@ func (c *Client) DeleteNotification( func (c *Client) GetNotification( ctx context.Context, // Notification ID. - nId string, + nID string, opts ...option.RequestOption, ) (*payabli.NotificationQueryRecord, error) { response, err := c.WithRawResponse.GetNotification( ctx, - nId, + nID, opts..., ) if err != nil { @@ -89,13 +89,13 @@ func (c *Client) GetNotification( func (c *Client) UpdateNotification( ctx context.Context, // Notification ID. - nId string, + nID string, request *payabli.UpdateNotificationRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseNotifications, error) { +) (*payabli.PayabliAPIResponseNotifications, error) { response, err := c.WithRawResponse.UpdateNotification( ctx, - nId, + nID, request, opts..., ) diff --git a/notification/notification_test/notification_test.go b/notification/notification_test/notification_test.go index 93cfad8..189b059 100644 --- a/notification/notification_test/notification_test.go +++ b/notification/notification_test/notification_test.go @@ -79,7 +79,7 @@ func TestNotificationAddNotificationWithWireMock( }, Frequency: payabli.NotificationStandardRequestFrequencyUntilcancelled, Method: payabli.NotificationStandardRequestMethodWeb, - OwnerId: payabli.Int( + OwnerID: payabli.Int( 236, ), OwnerType: 0, @@ -162,7 +162,7 @@ func TestNotificationUpdateNotificationWithWireMock( }, Frequency: payabli.NotificationStandardRequestFrequencyUntilcancelled, Method: payabli.NotificationStandardRequestMethodEmail, - OwnerId: payabli.Int( + OwnerID: payabli.Int( 136, ), OwnerType: 0, diff --git a/notification/raw_client.go b/notification/raw_client.go index 44e53c7..52baa61 100644 --- a/notification/raw_client.go +++ b/notification/raw_client.go @@ -34,7 +34,7 @@ func (r *RawClient) AddNotification( ctx context.Context, request *payabli.AddNotificationRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseNotifications], error) { +) (*core.Response[*payabli.PayabliAPIResponseNotifications], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -46,7 +46,7 @@ func (r *RawClient) AddNotification( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseNotifications + var response *payabli.PayabliAPIResponseNotifications raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -65,7 +65,7 @@ func (r *RawClient) AddNotification( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseNotifications]{ + return &core.Response[*payabli.PayabliAPIResponseNotifications]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -75,9 +75,9 @@ func (r *RawClient) AddNotification( func (r *RawClient) DeleteNotification( ctx context.Context, // Notification ID. - nId string, + nID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseNotifications], error) { +) (*core.Response[*payabli.PayabliAPIResponseNotifications], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -86,13 +86,13 @@ func (r *RawClient) DeleteNotification( ) endpointURL := internal.EncodeURL( baseURL+"/Notification/%v", - nId, + nID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseNotifications + var response *payabli.PayabliAPIResponseNotifications raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -110,7 +110,7 @@ func (r *RawClient) DeleteNotification( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseNotifications]{ + return &core.Response[*payabli.PayabliAPIResponseNotifications]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -120,7 +120,7 @@ func (r *RawClient) DeleteNotification( func (r *RawClient) GetNotification( ctx context.Context, // Notification ID. - nId string, + nID string, opts ...option.RequestOption, ) (*core.Response[*payabli.NotificationQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -131,7 +131,7 @@ func (r *RawClient) GetNotification( ) endpointURL := internal.EncodeURL( baseURL+"/Notification/%v", - nId, + nID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -165,10 +165,10 @@ func (r *RawClient) GetNotification( func (r *RawClient) UpdateNotification( ctx context.Context, // Notification ID. - nId string, + nID string, request *payabli.UpdateNotificationRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseNotifications], error) { +) (*core.Response[*payabli.PayabliAPIResponseNotifications], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -177,13 +177,13 @@ func (r *RawClient) UpdateNotification( ) endpointURL := internal.EncodeURL( baseURL+"/Notification/%v", - nId, + nID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseNotifications + var response *payabli.PayabliAPIResponseNotifications raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -202,7 +202,7 @@ func (r *RawClient) UpdateNotification( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseNotifications]{ + return &core.Response[*payabli.PayabliAPIResponseNotifications]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/notification_test.go b/notification_test.go index e8d7e3c..e5b4edb 100644 --- a/notification_test.go +++ b/notification_test.go @@ -50,19 +50,19 @@ func TestSettersNotificationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNotificationId", func(t *testing.T) { + t.Run("SetNotificationID", func(t *testing.T) { obj := &NotificationQueryRecord{} - var fernTestValueNotificationId *NotificationId - obj.SetNotificationId(fernTestValueNotificationId) - assert.Equal(t, fernTestValueNotificationId, obj.NotificationId) + var fernTestValueNotificationID *NotificationID + obj.SetNotificationID(fernTestValueNotificationID) + assert.Equal(t, fernTestValueNotificationID, obj.NotificationID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOwnerId", func(t *testing.T) { + t.Run("SetOwnerID", func(t *testing.T) { obj := &NotificationQueryRecord{} - var fernTestValueOwnerId *Ownerid - obj.SetOwnerId(fernTestValueOwnerId) - assert.Equal(t, fernTestValueOwnerId, obj.OwnerId) + var fernTestValueOwnerID *Ownerid + obj.SetOwnerID(fernTestValueOwnerID) + assert.Equal(t, fernTestValueOwnerID, obj.OwnerID) assert.NotNil(t, obj.explicitFields) }) @@ -274,28 +274,28 @@ func TestGettersNotificationQueryRecord(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetNotificationId", func(t *testing.T) { + t.Run("GetNotificationID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} - var expected *NotificationId - obj.NotificationId = expected + var expected *NotificationID + obj.NotificationID = expected // Act & Assert - assert.Equal(t, expected, obj.GetNotificationId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNotificationID(), "getter should return the property value") }) - t.Run("GetNotificationId_NilValue", func(t *testing.T) { + t.Run("GetNotificationID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} - obj.NotificationId = nil + obj.NotificationID = nil // Act & Assert - assert.Nil(t, obj.GetNotificationId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNotificationID(), "getter should return nil when property is nil") }) - t.Run("GetNotificationId_NilReceiver", func(t *testing.T) { + t.Run("GetNotificationID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -304,31 +304,31 @@ func TestGettersNotificationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNotificationId() // Should return zero value + _ = obj.GetNotificationID() // Should return zero value }) - t.Run("GetOwnerId", func(t *testing.T) { + t.Run("GetOwnerID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} var expected *Ownerid - obj.OwnerId = expected + obj.OwnerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOwnerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwnerID(), "getter should return the property value") }) - t.Run("GetOwnerId_NilValue", func(t *testing.T) { + t.Run("GetOwnerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} - obj.OwnerId = nil + obj.OwnerID = nil // Act & Assert - assert.Nil(t, obj.GetOwnerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOwnerID(), "getter should return nil when property is nil") }) - t.Run("GetOwnerId_NilReceiver", func(t *testing.T) { + t.Run("GetOwnerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -337,7 +337,7 @@ func TestGettersNotificationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOwnerId() // Should return zero value + _ = obj.GetOwnerID() // Should return zero value }) t.Run("GetOwnerName", func(t *testing.T) { @@ -663,14 +663,14 @@ func TestSettersMarkExplicitNotificationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNotificationId_MarksExplicit", func(t *testing.T) { + t.Run("SetNotificationID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} - var fernTestValueNotificationId *NotificationId + var fernTestValueNotificationID *NotificationID // Act - obj.SetNotificationId(fernTestValueNotificationId) + obj.SetNotificationID(fernTestValueNotificationID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -694,14 +694,14 @@ func TestSettersMarkExplicitNotificationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOwnerId_MarksExplicit", func(t *testing.T) { + t.Run("SetOwnerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationQueryRecord{} - var fernTestValueOwnerId *Ownerid + var fernTestValueOwnerID *Ownerid // Act - obj.SetOwnerId(fernTestValueOwnerId) + obj.SetOwnerID(fernTestValueOwnerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -907,11 +907,11 @@ func TestSettersNotificationReportRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOwnerId", func(t *testing.T) { + t.Run("SetOwnerID", func(t *testing.T) { obj := &NotificationReportRequest{} - var fernTestValueOwnerId *Ownerid - obj.SetOwnerId(fernTestValueOwnerId) - assert.Equal(t, fernTestValueOwnerId, obj.OwnerId) + var fernTestValueOwnerID *Ownerid + obj.SetOwnerID(fernTestValueOwnerID) + assert.Equal(t, fernTestValueOwnerID, obj.OwnerID) assert.NotNil(t, obj.explicitFields) }) @@ -1021,28 +1021,28 @@ func TestGettersNotificationReportRequest(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetOwnerId", func(t *testing.T) { + t.Run("GetOwnerID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequest{} var expected *Ownerid - obj.OwnerId = expected + obj.OwnerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOwnerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwnerID(), "getter should return the property value") }) - t.Run("GetOwnerId_NilValue", func(t *testing.T) { + t.Run("GetOwnerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequest{} - obj.OwnerId = nil + obj.OwnerID = nil // Act & Assert - assert.Nil(t, obj.GetOwnerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOwnerID(), "getter should return nil when property is nil") }) - t.Run("GetOwnerId_NilReceiver", func(t *testing.T) { + t.Run("GetOwnerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationReportRequest // Should not panic - getters should handle nil receiver gracefully @@ -1051,7 +1051,7 @@ func TestGettersNotificationReportRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOwnerId() // Should return zero value + _ = obj.GetOwnerID() // Should return zero value }) t.Run("GetOwnerType", func(t *testing.T) { @@ -1229,14 +1229,14 @@ func TestSettersMarkExplicitNotificationReportRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOwnerId_MarksExplicit", func(t *testing.T) { + t.Run("SetOwnerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequest{} - var fernTestValueOwnerId *Ownerid + var fernTestValueOwnerID *Ownerid // Act - obj.SetOwnerId(fernTestValueOwnerId) + obj.SetOwnerID(fernTestValueOwnerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1388,11 +1388,11 @@ func TestSettersNotificationReportRequestContent(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &NotificationReportRequestContent{} - var fernTestValueTransactionId *string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID *string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) @@ -1539,28 +1539,28 @@ func TestGettersNotificationReportRequestContent(t *testing.T) { _ = obj.GetTimeZone() // Should return zero value }) - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequestContent{} var expected *string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilValue", func(t *testing.T) { + t.Run("GetTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequestContent{} - obj.TransactionId = nil + obj.TransactionID = nil // Act & Assert - assert.Nil(t, obj.GetTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationReportRequestContent // Should not panic - getters should handle nil receiver gracefully @@ -1569,7 +1569,7 @@ func TestGettersNotificationReportRequestContent(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) t.Run("GetWebHeaderParameters", func(t *testing.T) { @@ -1732,14 +1732,14 @@ func TestSettersMarkExplicitNotificationReportRequestContent(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationReportRequestContent{} - var fernTestValueTransactionId *string + var fernTestValueTransactionID *string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1821,11 +1821,11 @@ func TestSettersNotificationStandardRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOwnerId", func(t *testing.T) { + t.Run("SetOwnerID", func(t *testing.T) { obj := &NotificationStandardRequest{} - var fernTestValueOwnerId *Ownerid - obj.SetOwnerId(fernTestValueOwnerId) - assert.Equal(t, fernTestValueOwnerId, obj.OwnerId) + var fernTestValueOwnerID *Ownerid + obj.SetOwnerID(fernTestValueOwnerID) + assert.Equal(t, fernTestValueOwnerID, obj.OwnerID) assert.NotNil(t, obj.explicitFields) }) @@ -1935,28 +1935,28 @@ func TestGettersNotificationStandardRequest(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetOwnerId", func(t *testing.T) { + t.Run("GetOwnerID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequest{} var expected *Ownerid - obj.OwnerId = expected + obj.OwnerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOwnerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwnerID(), "getter should return the property value") }) - t.Run("GetOwnerId_NilValue", func(t *testing.T) { + t.Run("GetOwnerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequest{} - obj.OwnerId = nil + obj.OwnerID = nil // Act & Assert - assert.Nil(t, obj.GetOwnerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOwnerID(), "getter should return nil when property is nil") }) - t.Run("GetOwnerId_NilReceiver", func(t *testing.T) { + t.Run("GetOwnerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationStandardRequest // Should not panic - getters should handle nil receiver gracefully @@ -1965,7 +1965,7 @@ func TestGettersNotificationStandardRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOwnerId() // Should return zero value + _ = obj.GetOwnerID() // Should return zero value }) t.Run("GetOwnerType", func(t *testing.T) { @@ -2143,14 +2143,14 @@ func TestSettersMarkExplicitNotificationStandardRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOwnerId_MarksExplicit", func(t *testing.T) { + t.Run("SetOwnerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequest{} - var fernTestValueOwnerId *Ownerid + var fernTestValueOwnerID *Ownerid // Act - obj.SetOwnerId(fernTestValueOwnerId) + obj.SetOwnerID(fernTestValueOwnerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2286,11 +2286,11 @@ func TestSettersNotificationStandardRequestContent(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &NotificationStandardRequestContent{} - var fernTestValueTransactionId *string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID *string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) @@ -2371,28 +2371,28 @@ func TestGettersNotificationStandardRequestContent(t *testing.T) { _ = obj.GetInternalData() // Should return zero value }) - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequestContent{} var expected *string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilValue", func(t *testing.T) { + t.Run("GetTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequestContent{} - obj.TransactionId = nil + obj.TransactionID = nil // Act & Assert - assert.Nil(t, obj.GetTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationStandardRequestContent // Should not panic - getters should handle nil receiver gracefully @@ -2401,7 +2401,7 @@ func TestGettersNotificationStandardRequestContent(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) t.Run("GetWebHeaderParameters", func(t *testing.T) { @@ -2502,14 +2502,14 @@ func TestSettersMarkExplicitNotificationStandardRequestContent(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationStandardRequestContent{} - var fernTestValueTransactionId *string + var fernTestValueTransactionID *string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2566,9 +2566,9 @@ func TestSettersMarkExplicitNotificationStandardRequestContent(t *testing.T) { } -func TestSettersPayabliApiResponseNotifications(t *testing.T) { +func TestSettersPayabliAPIResponseNotifications(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2576,7 +2576,7 @@ func TestSettersPayabliApiResponseNotifications(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -2584,7 +2584,7 @@ func TestSettersPayabliApiResponseNotifications(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -2592,15 +2592,15 @@ func TestSettersPayabliApiResponseNotifications(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseNotifications{} - var fernTestValueResponseData *PayabliApiResponseNotificationsResponseData + obj := &PayabliAPIResponseNotifications{} + var fernTestValueResponseData *PayabliAPIResponseNotificationsResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -2609,11 +2609,11 @@ func TestSettersPayabliApiResponseNotifications(t *testing.T) { } -func TestGettersPayabliApiResponseNotifications(t *testing.T) { +func TestGettersPayabliAPIResponseNotifications(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var expected *IsSuccess obj.IsSuccess = expected @@ -2624,7 +2624,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} obj.IsSuccess = nil // Act & Assert @@ -2633,7 +2633,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2646,7 +2646,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -2657,7 +2657,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} obj.PageIdentifier = nil // Act & Assert @@ -2666,7 +2666,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2679,7 +2679,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var expected *Responsecode obj.ResponseCode = expected @@ -2690,7 +2690,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} obj.ResponseCode = nil // Act & Assert @@ -2699,7 +2699,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2712,8 +2712,8 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} - var expected *PayabliApiResponseNotificationsResponseData + obj := &PayabliAPIResponseNotifications{} + var expected *PayabliAPIResponseNotificationsResponseData obj.ResponseData = expected // Act & Assert @@ -2723,7 +2723,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} obj.ResponseData = nil // Act & Assert @@ -2732,7 +2732,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2745,7 +2745,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var expected ResponseText obj.ResponseText = expected @@ -2755,7 +2755,7 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2767,11 +2767,11 @@ func TestGettersPayabliApiResponseNotifications(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseNotifications(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueIsSuccess *IsSuccess // Act @@ -2802,7 +2802,7 @@ func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -2833,7 +2833,7 @@ func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueResponseCode *Responsecode // Act @@ -2864,8 +2864,8 @@ func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} - var fernTestValueResponseData *PayabliApiResponseNotificationsResponseData + obj := &PayabliAPIResponseNotifications{} + var fernTestValueResponseData *PayabliAPIResponseNotificationsResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -2895,7 +2895,7 @@ func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} var fernTestValueResponseText ResponseText // Act @@ -2925,11 +2925,11 @@ func TestSettersMarkExplicitPayabliApiResponseNotifications(t *testing.T) { } -func TestGettersPayabliApiResponseNotificationsResponseData(t *testing.T) { +func TestGettersPayabliAPIResponseNotificationsResponseData(t *testing.T) { t.Run("GetInteger", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotificationsResponseData{} + obj := &PayabliAPIResponseNotificationsResponseData{} var expected int obj.Integer = expected @@ -2939,7 +2939,7 @@ func TestGettersPayabliApiResponseNotificationsResponseData(t *testing.T) { t.Run("GetInteger_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotificationsResponseData + var obj *PayabliAPIResponseNotificationsResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2952,7 +2952,7 @@ func TestGettersPayabliApiResponseNotificationsResponseData(t *testing.T) { t.Run("GetString", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotificationsResponseData{} + obj := &PayabliAPIResponseNotificationsResponseData{} var expected string obj.String = expected @@ -2962,7 +2962,7 @@ func TestGettersPayabliApiResponseNotificationsResponseData(t *testing.T) { t.Run("GetString_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotificationsResponseData + var obj *PayabliAPIResponseNotificationsResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3277,11 +3277,11 @@ func TestJSONMarshalingNotificationStandardRequestContent(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponseNotifications(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseNotifications(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3290,21 +3290,21 @@ func TestJSONMarshalingPayabliApiResponseNotifications(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseNotifications + var unmarshaled PayabliAPIResponseNotifications err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseNotifications + var obj PayabliAPIResponseNotifications err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseNotifications + var obj PayabliAPIResponseNotifications err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -3390,17 +3390,17 @@ func TestStringNotificationStandardRequestContent(t *testing.T) { }) } -func TestStringPayabliApiResponseNotifications(t *testing.T) { +func TestStringPayabliAPIResponseNotifications(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4662,10 +4662,10 @@ func TestExtraPropertiesNotificationStandardRequestContent(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponseNotifications(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseNotifications(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseNotifications{} + obj := &PayabliAPIResponseNotifications{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4679,7 +4679,7 @@ func TestExtraPropertiesPayabliApiResponseNotifications(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseNotifications + var obj *PayabliAPIResponseNotifications extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/notificationlogs.go b/notificationlogs.go index 9290a4e..a107917 100644 --- a/notificationlogs.go +++ b/notificationlogs.go @@ -164,9 +164,9 @@ func (k *KeyValueArray) String() string { } var ( - notificationLogFieldId = big.NewInt(1 << 0) - notificationLogFieldOrgId = big.NewInt(1 << 1) - notificationLogFieldPaypointId = big.NewInt(1 << 2) + notificationLogFieldID = big.NewInt(1 << 0) + notificationLogFieldOrgID = big.NewInt(1 << 1) + notificationLogFieldPaypointID = big.NewInt(1 << 2) notificationLogFieldNotificationEvent = big.NewInt(1 << 3) notificationLogFieldTarget = big.NewInt(1 << 4) notificationLogFieldResponseStatus = big.NewInt(1 << 5) @@ -180,11 +180,11 @@ var ( type NotificationLog struct { // The unique identifier for the notification. - Id uuid.UUID `json:"id" url:"id"` + ID uuid.UUID `json:"id" url:"id"` // The ID of the organization that the notification belongs to. - OrgId *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` // The ID of the paypoint that the notification is related to. - PaypointId *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` // The event that triggered the notification. NotificationEvent *string `json:"notificationEvent,omitempty" url:"notificationEvent,omitempty"` // The target URL for the notification. @@ -211,25 +211,25 @@ type NotificationLog struct { rawJSON json.RawMessage } -func (n *NotificationLog) GetId() uuid.UUID { +func (n *NotificationLog) GetID() uuid.UUID { if n == nil { return uuid.Nil } - return n.Id + return n.ID } -func (n *NotificationLog) GetOrgId() *int64 { +func (n *NotificationLog) GetOrgID() *int64 { if n == nil { return nil } - return n.OrgId + return n.OrgID } -func (n *NotificationLog) GetPaypointId() *int64 { +func (n *NotificationLog) GetPaypointID() *int64 { if n == nil { return nil } - return n.PaypointId + return n.PaypointID } func (n *NotificationLog) GetNotificationEvent() *string { @@ -309,25 +309,25 @@ func (n *NotificationLog) require(field *big.Int) { n.explicitFields.Or(n.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLog) SetId(id uuid.UUID) { - n.Id = id - n.require(notificationLogFieldId) +func (n *NotificationLog) SetID(id uuid.UUID) { + n.ID = id + n.require(notificationLogFieldID) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLog) SetOrgId(orgId *int64) { - n.OrgId = orgId - n.require(notificationLogFieldOrgId) +func (n *NotificationLog) SetOrgID(orgID *int64) { + n.OrgID = orgID + n.require(notificationLogFieldOrgID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLog) SetPaypointId(paypointId *int64) { - n.PaypointId = paypointId - n.require(notificationLogFieldPaypointId) +func (n *NotificationLog) SetPaypointID(paypointID *int64) { + n.PaypointID = paypointID + n.require(notificationLogFieldPaypointID) } // SetNotificationEvent sets the NotificationEvent field and marks it as non-optional; @@ -452,9 +452,9 @@ func (n *NotificationLog) String() string { } var ( - notificationLogDetailFieldId = big.NewInt(1 << 0) - notificationLogDetailFieldOrgId = big.NewInt(1 << 1) - notificationLogDetailFieldPaypointId = big.NewInt(1 << 2) + notificationLogDetailFieldID = big.NewInt(1 << 0) + notificationLogDetailFieldOrgID = big.NewInt(1 << 1) + notificationLogDetailFieldPaypointID = big.NewInt(1 << 2) notificationLogDetailFieldNotificationEvent = big.NewInt(1 << 3) notificationLogDetailFieldTarget = big.NewInt(1 << 4) notificationLogDetailFieldResponseStatus = big.NewInt(1 << 5) @@ -471,11 +471,11 @@ var ( type NotificationLogDetail struct { // The unique identifier for the notification. - Id uuid.UUID `json:"id" url:"id"` + ID uuid.UUID `json:"id" url:"id"` // The ID of the organization that the notification belongs to. - OrgId *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` // The ID of the paypoint that the notification is related to. - PaypointId *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` // The event that triggered the notification. NotificationEvent *string `json:"notificationEvent,omitempty" url:"notificationEvent,omitempty"` // The target URL for the notification. @@ -505,25 +505,25 @@ type NotificationLogDetail struct { rawJSON json.RawMessage } -func (n *NotificationLogDetail) GetId() uuid.UUID { +func (n *NotificationLogDetail) GetID() uuid.UUID { if n == nil { return uuid.Nil } - return n.Id + return n.ID } -func (n *NotificationLogDetail) GetOrgId() *int64 { +func (n *NotificationLogDetail) GetOrgID() *int64 { if n == nil { return nil } - return n.OrgId + return n.OrgID } -func (n *NotificationLogDetail) GetPaypointId() *int64 { +func (n *NotificationLogDetail) GetPaypointID() *int64 { if n == nil { return nil } - return n.PaypointId + return n.PaypointID } func (n *NotificationLogDetail) GetNotificationEvent() *string { @@ -624,25 +624,25 @@ func (n *NotificationLogDetail) require(field *big.Int) { n.explicitFields.Or(n.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLogDetail) SetId(id uuid.UUID) { - n.Id = id - n.require(notificationLogDetailFieldId) +func (n *NotificationLogDetail) SetID(id uuid.UUID) { + n.ID = id + n.require(notificationLogDetailFieldID) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLogDetail) SetOrgId(orgId *int64) { - n.OrgId = orgId - n.require(notificationLogDetailFieldOrgId) +func (n *NotificationLogDetail) SetOrgID(orgID *int64) { + n.OrgID = orgID + n.require(notificationLogDetailFieldOrgID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLogDetail) SetPaypointId(paypointId *int64) { - n.PaypointId = paypointId - n.require(notificationLogDetailFieldPaypointId) +func (n *NotificationLogDetail) SetPaypointID(paypointID *int64) { + n.PaypointID = paypointID + n.require(notificationLogDetailFieldPaypointID) } // SetNotificationEvent sets the NotificationEvent field and marks it as non-optional; @@ -792,8 +792,8 @@ var ( notificationLogSearchRequestFieldEndDate = big.NewInt(1 << 1) notificationLogSearchRequestFieldNotificationEvent = big.NewInt(1 << 2) notificationLogSearchRequestFieldSucceeded = big.NewInt(1 << 3) - notificationLogSearchRequestFieldOrgId = big.NewInt(1 << 4) - notificationLogSearchRequestFieldPaypointId = big.NewInt(1 << 5) + notificationLogSearchRequestFieldOrgID = big.NewInt(1 << 4) + notificationLogSearchRequestFieldPaypointID = big.NewInt(1 << 5) ) type NotificationLogSearchRequest struct { @@ -806,9 +806,9 @@ type NotificationLogSearchRequest struct { // Indicates whether the notification was successful. Succeeded *bool `json:"succeeded,omitempty" url:"succeeded,omitempty"` // The ID of the organization to filter by. - OrgId *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *int64 `json:"orgId,omitempty" url:"orgId,omitempty"` // The ID of the paypoint to filter by. - PaypointId *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int64 `json:"paypointId,omitempty" url:"paypointId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -845,18 +845,18 @@ func (n *NotificationLogSearchRequest) GetSucceeded() *bool { return n.Succeeded } -func (n *NotificationLogSearchRequest) GetOrgId() *int64 { +func (n *NotificationLogSearchRequest) GetOrgID() *int64 { if n == nil { return nil } - return n.OrgId + return n.OrgID } -func (n *NotificationLogSearchRequest) GetPaypointId() *int64 { +func (n *NotificationLogSearchRequest) GetPaypointID() *int64 { if n == nil { return nil } - return n.PaypointId + return n.PaypointID } func (n *NotificationLogSearchRequest) GetExtraProperties() map[string]interface{} { @@ -901,18 +901,18 @@ func (n *NotificationLogSearchRequest) SetSucceeded(succeeded *bool) { n.require(notificationLogSearchRequestFieldSucceeded) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLogSearchRequest) SetOrgId(orgId *int64) { - n.OrgId = orgId - n.require(notificationLogSearchRequestFieldOrgId) +func (n *NotificationLogSearchRequest) SetOrgID(orgID *int64) { + n.OrgID = orgID + n.require(notificationLogSearchRequestFieldOrgID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationLogSearchRequest) SetPaypointId(paypointId *int64) { - n.PaypointId = paypointId - n.require(notificationLogSearchRequestFieldPaypointId) +func (n *NotificationLogSearchRequest) SetPaypointID(paypointID *int64) { + n.PaypointID = paypointID + n.require(notificationLogSearchRequestFieldPaypointID) } func (n *NotificationLogSearchRequest) UnmarshalJSON(data []byte) error { diff --git a/notificationlogs/notificationlogs_test/notificationlogs_test.go b/notificationlogs/notificationlogs_test/notificationlogs_test.go index 4226cb8..f259351 100644 --- a/notificationlogs/notificationlogs_test/notificationlogs_test.go +++ b/notificationlogs/notificationlogs_test/notificationlogs_test.go @@ -84,7 +84,7 @@ func TestNotificationlogsSearchNotificationLogsWithWireMock( EndDate: payabli.MustParseDateTime( "2024-01-31T23:59:59Z", ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(12345), ), NotificationEvent: payabli.String( diff --git a/notificationlogs_test.go b/notificationlogs_test.go index 7827484..8ff1ac4 100644 --- a/notificationlogs_test.go +++ b/notificationlogs_test.go @@ -248,19 +248,19 @@ func TestSettersMarkExplicitKeyValueArray(t *testing.T) { } func TestSettersNotificationLog(t *testing.T) { - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &NotificationLog{} - var fernTestValueOrgId *int64 - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *int64 + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &NotificationLog{} - var fernTestValuePaypointId *int64 - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int64 + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -339,28 +339,28 @@ func TestSettersNotificationLog(t *testing.T) { } func TestGettersNotificationLog(t *testing.T) { - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} var expected *int64 - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLog // Should not panic - getters should handle nil receiver gracefully @@ -369,31 +369,31 @@ func TestGettersNotificationLog(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} var expected *int64 - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLog // Should not panic - getters should handle nil receiver gracefully @@ -402,7 +402,7 @@ func TestGettersNotificationLog(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetNotificationEvent", func(t *testing.T) { @@ -675,14 +675,14 @@ func TestGettersNotificationLog(t *testing.T) { } func TestSettersMarkExplicitNotificationLog(t *testing.T) { - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} - var fernTestValueOrgId *int64 + var fernTestValueOrgID *int64 // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -706,14 +706,14 @@ func TestSettersMarkExplicitNotificationLog(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLog{} - var fernTestValuePaypointId *int64 + var fernTestValuePaypointID *int64 // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1019,19 +1019,19 @@ func TestSettersMarkExplicitNotificationLog(t *testing.T) { } func TestSettersNotificationLogDetail(t *testing.T) { - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &NotificationLogDetail{} - var fernTestValueOrgId *int64 - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *int64 + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &NotificationLogDetail{} - var fernTestValuePaypointId *int64 - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int64 + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -1134,28 +1134,28 @@ func TestSettersNotificationLogDetail(t *testing.T) { } func TestGettersNotificationLogDetail(t *testing.T) { - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} var expected *int64 - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLogDetail // Should not panic - getters should handle nil receiver gracefully @@ -1164,31 +1164,31 @@ func TestGettersNotificationLogDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} var expected *int64 - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLogDetail // Should not panic - getters should handle nil receiver gracefully @@ -1197,7 +1197,7 @@ func TestGettersNotificationLogDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetNotificationEvent", func(t *testing.T) { @@ -1569,14 +1569,14 @@ func TestGettersNotificationLogDetail(t *testing.T) { } func TestSettersMarkExplicitNotificationLogDetail(t *testing.T) { - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} - var fernTestValueOrgId *int64 + var fernTestValueOrgID *int64 // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1600,14 +1600,14 @@ func TestSettersMarkExplicitNotificationLogDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogDetail{} - var fernTestValuePaypointId *int64 + var fernTestValuePaypointID *int64 // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2038,19 +2038,19 @@ func TestSettersNotificationLogSearchRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &NotificationLogSearchRequest{} - var fernTestValueOrgId *int64 - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *int64 + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &NotificationLogSearchRequest{} - var fernTestValuePaypointId *int64 - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int64 + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2169,28 +2169,28 @@ func TestGettersNotificationLogSearchRequest(t *testing.T) { _ = obj.GetSucceeded() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} var expected *int64 - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLogSearchRequest // Should not panic - getters should handle nil receiver gracefully @@ -2199,31 +2199,31 @@ func TestGettersNotificationLogSearchRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} var expected *int64 - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationLogSearchRequest // Should not panic - getters should handle nil receiver gracefully @@ -2232,7 +2232,7 @@ func TestGettersNotificationLogSearchRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) } @@ -2362,14 +2362,14 @@ func TestSettersMarkExplicitNotificationLogSearchRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} - var fernTestValueOrgId *int64 + var fernTestValueOrgID *int64 // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2393,14 +2393,14 @@ func TestSettersMarkExplicitNotificationLogSearchRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationLogSearchRequest{} - var fernTestValuePaypointId *int64 + var fernTestValuePaypointID *int64 // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/ocr.go b/ocr.go index cfca38a..302d18c 100644 --- a/ocr.go +++ b/ocr.go @@ -1153,7 +1153,7 @@ var ( ocrVendorFieldPayeeName1 = big.NewInt(1 << 24) ocrVendorFieldPayeeName2 = big.NewInt(1 << 25) ocrVendorFieldCustomerVendorAccount = big.NewInt(1 << 26) - ocrVendorFieldInternalReferenceId = big.NewInt(1 << 27) + ocrVendorFieldInternalReferenceID = big.NewInt(1 << 27) ocrVendorFieldCustomField1 = big.NewInt(1 << 28) ocrVendorFieldCustomField2 = big.NewInt(1 << 29) ocrVendorFieldAdditionalData = big.NewInt(1 << 30) @@ -1187,7 +1187,7 @@ type OcrVendor struct { PayeeName1 *string `json:"payeeName1,omitempty" url:"payeeName1,omitempty"` PayeeName2 *string `json:"payeeName2,omitempty" url:"payeeName2,omitempty"` CustomerVendorAccount *string `json:"customerVendorAccount,omitempty" url:"customerVendorAccount,omitempty"` - InternalReferenceId *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` + InternalReferenceID *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` CustomField1 *string `json:"customField1,omitempty" url:"customField1,omitempty"` CustomField2 *string `json:"customField2,omitempty" url:"customField2,omitempty"` AdditionalData *OcrVendorAdditionalData `json:"additionalData,omitempty" url:"additionalData,omitempty"` @@ -1388,11 +1388,11 @@ func (o *OcrVendor) GetCustomerVendorAccount() *string { return o.CustomerVendorAccount } -func (o *OcrVendor) GetInternalReferenceId() *int64 { +func (o *OcrVendor) GetInternalReferenceID() *int64 { if o == nil { return nil } - return o.InternalReferenceId + return o.InternalReferenceID } func (o *OcrVendor) GetCustomField1() *string { @@ -1619,11 +1619,11 @@ func (o *OcrVendor) SetCustomerVendorAccount(customerVendorAccount *string) { o.require(ocrVendorFieldCustomerVendorAccount) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OcrVendor) SetInternalReferenceId(internalReferenceId *int64) { - o.InternalReferenceId = internalReferenceId - o.require(ocrVendorFieldInternalReferenceId) +func (o *OcrVendor) SetInternalReferenceID(internalReferenceID *int64) { + o.InternalReferenceID = internalReferenceID + o.require(ocrVendorFieldInternalReferenceID) } // SetCustomField1 sets the CustomField1 field and marks it as non-optional; @@ -1774,7 +1774,7 @@ func (o *OcrVendorAdditionalData) String() string { } var ( - ocrVendorBillingDataFieldId = big.NewInt(1 << 0) + ocrVendorBillingDataFieldID = big.NewInt(1 << 0) ocrVendorBillingDataFieldBankName = big.NewInt(1 << 1) ocrVendorBillingDataFieldRoutingAccount = big.NewInt(1 << 2) ocrVendorBillingDataFieldAccountNumber = big.NewInt(1 << 3) @@ -1785,7 +1785,7 @@ var ( ) type OcrVendorBillingData struct { - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` BankName *string `json:"bankName,omitempty" url:"bankName,omitempty"` RoutingAccount *string `json:"routingAccount,omitempty" url:"routingAccount,omitempty"` AccountNumber *string `json:"accountNumber,omitempty" url:"accountNumber,omitempty"` @@ -1801,11 +1801,11 @@ type OcrVendorBillingData struct { rawJSON json.RawMessage } -func (o *OcrVendorBillingData) GetId() *int { +func (o *OcrVendorBillingData) GetID() *int { if o == nil { return nil } - return o.Id + return o.ID } func (o *OcrVendorBillingData) GetBankName() *string { @@ -1871,11 +1871,11 @@ func (o *OcrVendorBillingData) require(field *big.Int) { o.explicitFields.Or(o.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OcrVendorBillingData) SetId(id *int) { - o.Id = id - o.require(ocrVendorBillingDataFieldId) +func (o *OcrVendorBillingData) SetID(id *int) { + o.ID = id + o.require(ocrVendorBillingDataFieldID) } // SetBankName sets the BankName field and marks it as non-optional; @@ -1970,13 +1970,13 @@ func (o *OcrVendorBillingData) String() string { } var ( - payabliApiResponseOcrFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseOcrFieldResponseText = big.NewInt(1 << 1) - payabliApiResponseOcrFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseOcrFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseOcrFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseOcrFieldResponseText = big.NewInt(1 << 1) + payabliAPIResponseOcrFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseOcrFieldResponseData = big.NewInt(1 << 3) ) -type PayabliApiResponseOcr struct { +type PayabliAPIResponseOcr struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseCode Responsecode `json:"responseCode" url:"responseCode"` @@ -1990,42 +1990,42 @@ type PayabliApiResponseOcr struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseOcr) GetIsSuccess() IsSuccess { +func (p *PayabliAPIResponseOcr) GetIsSuccess() IsSuccess { if p == nil { return false } return p.IsSuccess } -func (p *PayabliApiResponseOcr) GetResponseText() ResponseText { +func (p *PayabliAPIResponseOcr) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseOcr) GetResponseCode() Responsecode { +func (p *PayabliAPIResponseOcr) GetResponseCode() Responsecode { if p == nil { return 0 } return p.ResponseCode } -func (p *PayabliApiResponseOcr) GetResponseData() *OcrResponseData { +func (p *PayabliAPIResponseOcr) GetResponseData() *OcrResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseOcr) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseOcr) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseOcr) require(field *big.Int) { +func (p *PayabliAPIResponseOcr) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -2034,39 +2034,39 @@ func (p *PayabliApiResponseOcr) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseOcr) SetIsSuccess(isSuccess IsSuccess) { +func (p *PayabliAPIResponseOcr) SetIsSuccess(isSuccess IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseOcrFieldIsSuccess) + p.require(payabliAPIResponseOcrFieldIsSuccess) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseOcr) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseOcr) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseOcrFieldResponseText) + p.require(payabliAPIResponseOcrFieldResponseText) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseOcr) SetResponseCode(responseCode Responsecode) { +func (p *PayabliAPIResponseOcr) SetResponseCode(responseCode Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponseOcrFieldResponseCode) + p.require(payabliAPIResponseOcrFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseOcr) SetResponseData(responseData *OcrResponseData) { +func (p *PayabliAPIResponseOcr) SetResponseData(responseData *OcrResponseData) { p.ResponseData = responseData - p.require(payabliApiResponseOcrFieldResponseData) + p.require(payabliAPIResponseOcrFieldResponseData) } -func (p *PayabliApiResponseOcr) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseOcr +func (p *PayabliAPIResponseOcr) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseOcr var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseOcr(value) + *p = PayabliAPIResponseOcr(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -2076,8 +2076,8 @@ func (p *PayabliApiResponseOcr) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseOcr) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseOcr +func (p *PayabliAPIResponseOcr) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseOcr var marshaler = struct { embed }{ @@ -2087,7 +2087,7 @@ func (p *PayabliApiResponseOcr) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseOcr) String() string { +func (p *PayabliAPIResponseOcr) String() string { if p == nil { return "" } diff --git a/ocr/client.go b/ocr/client.go index 20b18da..11897b8 100644 --- a/ocr/client.go +++ b/ocr/client.go @@ -38,7 +38,7 @@ func (c *Client) OcrDocumentForm( typeResult payabli.TypeResult, request *payabli.FileContentImageOnly, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseOcr, error) { +) (*payabli.PayabliAPIResponseOcr, error) { response, err := c.WithRawResponse.OcrDocumentForm( ctx, typeResult, @@ -52,13 +52,13 @@ func (c *Client) OcrDocumentForm( } // Use this endpoint to submit a Base64-encoded image file for OCR processing. The accepted file formats include PDF, JPG, JPEG, PNG, and GIF. Specify the desired type of result (either 'bill' or 'invoice') in the path parameter `typeResult`. The response will contain the OCR processing results, including extracted data such as bill number, vendor information, bill items, and more. -func (c *Client) OcrDocumentJson( +func (c *Client) OcrDocumentJSON( ctx context.Context, typeResult payabli.TypeResult, request *payabli.FileContentImageOnly, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseOcr, error) { - response, err := c.WithRawResponse.OcrDocumentJson( +) (*payabli.PayabliAPIResponseOcr, error) { + response, err := c.WithRawResponse.OcrDocumentJSON( ctx, typeResult, request, diff --git a/ocr/ocr_test/ocr_test.go b/ocr/ocr_test/ocr_test.go index bec548f..d6d7d12 100644 --- a/ocr/ocr_test/ocr_test.go +++ b/ocr/ocr_test/ocr_test.go @@ -86,7 +86,7 @@ func TestOcrOcrDocumentFormWithWireMock( VerifyRequestCount(t, "TestOcrOcrDocumentFormWithWireMock", "POST", "/Import/ocrDocumentForm/typeResult", nil, 1) } -func TestOcrOcrDocumentJsonWithWireMock( +func TestOcrOcrDocumentJSONWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -97,15 +97,15 @@ func TestOcrOcrDocumentJsonWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.FileContentImageOnly{} - _, invocationErr := client.Ocr.OcrDocumentJson( + _, invocationErr := client.Ocr.OcrDocumentJSON( context.TODO(), "typeResult", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestOcrOcrDocumentJsonWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestOcrOcrDocumentJSONWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestOcrOcrDocumentJsonWithWireMock", "POST", "/Import/ocrDocumentJson/typeResult", nil, 1) + VerifyRequestCount(t, "TestOcrOcrDocumentJSONWithWireMock", "POST", "/Import/ocrDocumentJson/typeResult", nil, 1) } diff --git a/ocr/raw_client.go b/ocr/raw_client.go index 1b57161..7e9ced3 100644 --- a/ocr/raw_client.go +++ b/ocr/raw_client.go @@ -35,7 +35,7 @@ func (r *RawClient) OcrDocumentForm( typeResult payabli.TypeResult, request *payabli.FileContentImageOnly, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseOcr], error) { +) (*core.Response[*payabli.PayabliAPIResponseOcr], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -50,7 +50,7 @@ func (r *RawClient) OcrDocumentForm( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseOcr + var response *payabli.PayabliAPIResponseOcr raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -69,19 +69,19 @@ func (r *RawClient) OcrDocumentForm( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseOcr]{ + return &core.Response[*payabli.PayabliAPIResponseOcr]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) OcrDocumentJson( +func (r *RawClient) OcrDocumentJSON( ctx context.Context, typeResult payabli.TypeResult, request *payabli.FileContentImageOnly, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseOcr], error) { +) (*core.Response[*payabli.PayabliAPIResponseOcr], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -96,7 +96,7 @@ func (r *RawClient) OcrDocumentJson( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseOcr + var response *payabli.PayabliAPIResponseOcr raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -114,7 +114,7 @@ func (r *RawClient) OcrDocumentJson( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseOcr]{ + return &core.Response[*payabli.PayabliAPIResponseOcr]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/ocr_test.go b/ocr_test.go index 1a31df2..04dc241 100644 --- a/ocr_test.go +++ b/ocr_test.go @@ -3377,11 +3377,11 @@ func TestSettersOcrVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &OcrVendor{} - var fernTestValueInternalReferenceId *int64 - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int64 + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -4303,28 +4303,28 @@ func TestGettersOcrVendor(t *testing.T) { _ = obj.GetCustomerVendorAccount() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendor{} var expected *int64 - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendor{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OcrVendor // Should not panic - getters should handle nil receiver gracefully @@ -4333,7 +4333,7 @@ func TestGettersOcrVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetCustomField1", func(t *testing.T) { @@ -5275,14 +5275,14 @@ func TestSettersMarkExplicitOcrVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendor{} - var fernTestValueInternalReferenceId *int64 + var fernTestValueInternalReferenceID *int64 // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5483,11 +5483,11 @@ func TestSettersMarkExplicitOcrVendorAdditionalData(t *testing.T) { } func TestSettersOcrVendorBillingData(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &OcrVendorBillingData{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -5550,28 +5550,28 @@ func TestSettersOcrVendorBillingData(t *testing.T) { } func TestGettersOcrVendorBillingData(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendorBillingData{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendorBillingData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OcrVendorBillingData // Should not panic - getters should handle nil receiver gracefully @@ -5580,7 +5580,7 @@ func TestGettersOcrVendorBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetBankName", func(t *testing.T) { @@ -5817,14 +5817,14 @@ func TestGettersOcrVendorBillingData(t *testing.T) { } func TestSettersMarkExplicitOcrVendorBillingData(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OcrVendorBillingData{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6067,9 +6067,9 @@ func TestSettersMarkExplicitOcrVendorBillingData(t *testing.T) { } -func TestSettersPayabliApiResponseOcr(t *testing.T) { +func TestSettersPayabliAPIResponseOcr(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -6077,7 +6077,7 @@ func TestSettersPayabliApiResponseOcr(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -6085,7 +6085,7 @@ func TestSettersPayabliApiResponseOcr(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseCode Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -6093,7 +6093,7 @@ func TestSettersPayabliApiResponseOcr(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseData *OcrResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -6102,11 +6102,11 @@ func TestSettersPayabliApiResponseOcr(t *testing.T) { } -func TestGettersPayabliApiResponseOcr(t *testing.T) { +func TestGettersPayabliAPIResponseOcr(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var expected IsSuccess obj.IsSuccess = expected @@ -6116,7 +6116,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -6129,7 +6129,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var expected ResponseText obj.ResponseText = expected @@ -6139,7 +6139,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -6152,7 +6152,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var expected Responsecode obj.ResponseCode = expected @@ -6162,7 +6162,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -6175,7 +6175,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var expected *OcrResponseData obj.ResponseData = expected @@ -6186,7 +6186,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} obj.ResponseData = nil // Act & Assert @@ -6195,7 +6195,7 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -6207,11 +6207,11 @@ func TestGettersPayabliApiResponseOcr(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseOcr(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseOcr(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueIsSuccess IsSuccess // Act @@ -6242,7 +6242,7 @@ func TestSettersMarkExplicitPayabliApiResponseOcr(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseText ResponseText // Act @@ -6273,7 +6273,7 @@ func TestSettersMarkExplicitPayabliApiResponseOcr(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseCode Responsecode // Act @@ -6304,7 +6304,7 @@ func TestSettersMarkExplicitPayabliApiResponseOcr(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} var fernTestValueResponseData *OcrResponseData // Act @@ -6631,11 +6631,11 @@ func TestJSONMarshalingOcrVendorBillingData(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponseOcr(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseOcr(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -6644,21 +6644,21 @@ func TestJSONMarshalingPayabliApiResponseOcr(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseOcr + var unmarshaled PayabliAPIResponseOcr err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseOcr + var obj PayabliAPIResponseOcr err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseOcr + var obj PayabliAPIResponseOcr err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -6808,17 +6808,17 @@ func TestStringOcrVendorBillingData(t *testing.T) { }) } -func TestStringPayabliApiResponseOcr(t *testing.T) { +func TestStringPayabliAPIResponseOcr(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -7031,10 +7031,10 @@ func TestExtraPropertiesOcrVendorBillingData(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponseOcr(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseOcr(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseOcr{} + obj := &PayabliAPIResponseOcr{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -7048,7 +7048,7 @@ func TestExtraPropertiesPayabliApiResponseOcr(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseOcr + var obj *PayabliAPIResponseOcr extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/option/request_option.go b/option/request_option.go index 1bc253b..865cd45 100644 --- a/option/request_option.go +++ b/option/request_option.go @@ -72,9 +72,9 @@ func WithMaxStreamBufSize(size int) *core.MaxBufSizeOption { } } -// WithApiKey sets the apiKey auth request header. -func WithApiKey(apiKey string) *core.ApiKeyOption { - return &core.ApiKeyOption{ - ApiKey: apiKey, +// WithAPIKey sets the apiKey auth request header. +func WithAPIKey(apiKey string) *core.APIKeyOption { + return &core.APIKeyOption{ + APIKey: apiKey, } } diff --git a/organization.go b/organization.go index 21675e9..667e61d 100644 --- a/organization.go +++ b/organization.go @@ -20,10 +20,10 @@ var ( addOrganizationRequestFieldOrgCity = big.NewInt(1 << 7) addOrganizationRequestFieldOrgCountry = big.NewInt(1 << 8) addOrganizationRequestFieldOrgEntryName = big.NewInt(1 << 9) - addOrganizationRequestFieldOrgId = big.NewInt(1 << 10) + addOrganizationRequestFieldOrgID = big.NewInt(1 << 10) addOrganizationRequestFieldOrgLogo = big.NewInt(1 << 11) addOrganizationRequestFieldOrgName = big.NewInt(1 << 12) - addOrganizationRequestFieldOrgParentId = big.NewInt(1 << 13) + addOrganizationRequestFieldOrgParentID = big.NewInt(1 << 13) addOrganizationRequestFieldOrgState = big.NewInt(1 << 14) addOrganizationRequestFieldOrgTimezone = big.NewInt(1 << 15) addOrganizationRequestFieldOrgType = big.NewInt(1 << 16) @@ -43,10 +43,10 @@ type AddOrganizationRequest struct { OrgCity *Orgcity `json:"orgCity,omitempty" url:"-"` OrgCountry *Orgcountry `json:"orgCountry,omitempty" url:"-"` OrgEntryName *Orgentryname `json:"orgEntryName,omitempty" url:"-"` - OrgId *Orgidstring `json:"orgId,omitempty" url:"-"` + OrgID *Orgidstring `json:"orgId,omitempty" url:"-"` OrgLogo *FileContent `json:"orgLogo,omitempty" url:"-"` OrgName Orgname `json:"orgName" url:"-"` - OrgParentId *OrgParentId `json:"orgParentId,omitempty" url:"-"` + OrgParentID *OrgParentID `json:"orgParentId,omitempty" url:"-"` OrgState *Orgstate `json:"orgState,omitempty" url:"-"` OrgTimezone *Orgtimezone `json:"orgTimezone,omitempty" url:"-"` OrgType Orgtype `json:"orgType" url:"-"` @@ -135,11 +135,11 @@ func (a *AddOrganizationRequest) SetOrgEntryName(orgEntryName *Orgentryname) { a.require(addOrganizationRequestFieldOrgEntryName) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddOrganizationRequest) SetOrgId(orgId *Orgidstring) { - a.OrgId = orgId - a.require(addOrganizationRequestFieldOrgId) +func (a *AddOrganizationRequest) SetOrgID(orgID *Orgidstring) { + a.OrgID = orgID + a.require(addOrganizationRequestFieldOrgID) } // SetOrgLogo sets the OrgLogo field and marks it as non-optional; @@ -156,11 +156,11 @@ func (a *AddOrganizationRequest) SetOrgName(orgName Orgname) { a.require(addOrganizationRequestFieldOrgName) } -// SetOrgParentId sets the OrgParentId field and marks it as non-optional; +// SetOrgParentID sets the OrgParentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddOrganizationRequest) SetOrgParentId(orgParentId *OrgParentId) { - a.OrgParentId = orgParentId - a.require(addOrganizationRequestFieldOrgParentId) +func (a *AddOrganizationRequest) SetOrgParentID(orgParentID *OrgParentID) { + a.OrgParentID = orgParentID + a.require(addOrganizationRequestFieldOrgParentID) } // SetOrgState sets the OrgState field and marks it as non-optional; @@ -236,10 +236,10 @@ var ( organizationDataFieldOrgCity = big.NewInt(1 << 6) organizationDataFieldOrgCountry = big.NewInt(1 << 7) organizationDataFieldOrgEntryName = big.NewInt(1 << 8) - organizationDataFieldOrganizationDataOrgId = big.NewInt(1 << 9) + organizationDataFieldOrganizationDataOrgID = big.NewInt(1 << 9) organizationDataFieldOrgLogo = big.NewInt(1 << 10) organizationDataFieldOrgName = big.NewInt(1 << 11) - organizationDataFieldOrgParentId = big.NewInt(1 << 12) + organizationDataFieldOrgParentID = big.NewInt(1 << 12) organizationDataFieldOrgState = big.NewInt(1 << 13) organizationDataFieldOrgTimezone = big.NewInt(1 << 14) organizationDataFieldOrgType = big.NewInt(1 << 15) @@ -258,10 +258,10 @@ type OrganizationData struct { OrgCity *Orgcity `json:"orgCity,omitempty" url:"-"` OrgCountry *Orgcountry `json:"orgCountry,omitempty" url:"-"` OrgEntryName *Orgentryname `json:"orgEntryName,omitempty" url:"-"` - OrganizationDataOrgId *Orgidstring `json:"orgId,omitempty" url:"-"` + OrganizationDataOrgID *Orgidstring `json:"orgId,omitempty" url:"-"` OrgLogo *FileContent `json:"orgLogo,omitempty" url:"-"` OrgName *Orgname `json:"orgName,omitempty" url:"-"` - OrgParentId *OrgParentId `json:"orgParentId,omitempty" url:"-"` + OrgParentID *OrgParentID `json:"orgParentId,omitempty" url:"-"` OrgState *Orgstate `json:"orgState,omitempty" url:"-"` OrgTimezone *Orgtimezone `json:"orgTimezone,omitempty" url:"-"` OrgType *Orgtype `json:"orgType,omitempty" url:"-"` @@ -343,11 +343,11 @@ func (o *OrganizationData) SetOrgEntryName(orgEntryName *Orgentryname) { o.require(organizationDataFieldOrgEntryName) } -// SetOrganizationDataOrgId sets the OrganizationDataOrgId field and marks it as non-optional; +// SetOrganizationDataOrgID sets the OrganizationDataOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrganizationData) SetOrganizationDataOrgId(organizationDataOrgId *Orgidstring) { - o.OrganizationDataOrgId = organizationDataOrgId - o.require(organizationDataFieldOrganizationDataOrgId) +func (o *OrganizationData) SetOrganizationDataOrgID(organizationDataOrgID *Orgidstring) { + o.OrganizationDataOrgID = organizationDataOrgID + o.require(organizationDataFieldOrganizationDataOrgID) } // SetOrgLogo sets the OrgLogo field and marks it as non-optional; @@ -364,11 +364,11 @@ func (o *OrganizationData) SetOrgName(orgName *Orgname) { o.require(organizationDataFieldOrgName) } -// SetOrgParentId sets the OrgParentId field and marks it as non-optional; +// SetOrgParentID sets the OrgParentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrganizationData) SetOrgParentId(orgParentId *OrgParentId) { - o.OrgParentId = orgParentId - o.require(organizationDataFieldOrgParentId) +func (o *OrganizationData) SetOrgParentID(orgParentID *OrgParentID) { + o.OrgParentID = orgParentID + o.require(organizationDataFieldOrgParentID) } // SetOrgState sets the OrgState field and marks it as non-optional; diff --git a/organization/client.go b/organization/client.go index a2e56e6..821b8dc 100644 --- a/organization/client.go +++ b/organization/client.go @@ -53,12 +53,12 @@ func (c *Client) AddOrganization( func (c *Client) DeleteOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*payabli.DeleteOrganizationResponse, error) { response, err := c.WithRawResponse.DeleteOrganization( ctx, - orgId, + orgID, opts..., ) if err != nil { @@ -71,13 +71,13 @@ func (c *Client) DeleteOrganization( func (c *Client) EditOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.OrganizationData, opts ...option.RequestOption, ) (*payabli.EditOrganizationResponse, error) { response, err := c.WithRawResponse.EditOrganization( ctx, - orgId, + orgID, request, opts..., ) @@ -106,15 +106,15 @@ func (c *Client) GetBasicOrganization( } // Gets an organizations basic details by org ID. -func (c *Client) GetBasicOrganizationById( +func (c *Client) GetBasicOrganizationByID( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*payabli.OrganizationQueryRecord, error) { - response, err := c.WithRawResponse.GetBasicOrganizationById( + response, err := c.WithRawResponse.GetBasicOrganizationByID( ctx, - orgId, + orgID, opts..., ) if err != nil { @@ -127,12 +127,12 @@ func (c *Client) GetBasicOrganizationById( func (c *Client) GetOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*payabli.OrganizationQueryRecord, error) { response, err := c.WithRawResponse.GetOrganization( ctx, - orgId, + orgID, opts..., ) if err != nil { @@ -145,12 +145,12 @@ func (c *Client) GetOrganization( func (c *Client) GetSettingsOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*payabli.SettingsQueryRecord, error) { response, err := c.WithRawResponse.GetSettingsOrganization( ctx, - orgId, + orgID, opts..., ) if err != nil { diff --git a/organization/organization_test/organization_test.go b/organization/organization_test/organization_test.go index eb947a2..70c223e 100644 --- a/organization/organization_test/organization_test.go +++ b/organization/organization_test/organization_test.go @@ -129,7 +129,7 @@ func TestOrganizationAddOrganizationWithWireMock( OrgEntryName: payabli.String( "pilgrim-planner", ), - OrgId: payabli.String( + OrgID: payabli.String( "123", ), OrgLogo: &payabli.FileContent{ @@ -145,7 +145,7 @@ func TestOrganizationAddOrganizationWithWireMock( ), }, OrgName: "Pilgrim Planner", - OrgParentId: payabli.Int64( + OrgParentID: payabli.Int64( int64(236), ), OrgState: payabli.String( @@ -236,7 +236,7 @@ func TestOrganizationEditOrganizationWithWireMock( OrgEntryName: payabli.String( "pilgrim-planner", ), - OrganizationDataOrgId: payabli.String( + OrganizationDataOrgID: payabli.String( "123", ), OrgName: payabli.String( @@ -293,7 +293,7 @@ func TestOrganizationGetBasicOrganizationWithWireMock( VerifyRequestCount(t, "TestOrganizationGetBasicOrganizationWithWireMock", "GET", "/Organization/basic/8cfec329267", nil, 1) } -func TestOrganizationGetBasicOrganizationByIdWithWireMock( +func TestOrganizationGetBasicOrganizationByIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -303,16 +303,16 @@ func TestOrganizationGetBasicOrganizationByIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.Organization.GetBasicOrganizationById( + _, invocationErr := client.Organization.GetBasicOrganizationByID( context.TODO(), 123, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestOrganizationGetBasicOrganizationByIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestOrganizationGetBasicOrganizationByIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestOrganizationGetBasicOrganizationByIdWithWireMock", "GET", "/Organization/basicById/123", nil, 1) + VerifyRequestCount(t, "TestOrganizationGetBasicOrganizationByIDWithWireMock", "GET", "/Organization/basicById/123", nil, 1) } func TestOrganizationGetOrganizationWithWireMock( diff --git a/organization/raw_client.go b/organization/raw_client.go index 37727ae..653a713 100644 --- a/organization/raw_client.go +++ b/organization/raw_client.go @@ -79,7 +79,7 @@ func (r *RawClient) AddOrganization( func (r *RawClient) DeleteOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*core.Response[*payabli.DeleteOrganizationResponse], error) { options := core.NewRequestOptions(opts...) @@ -90,7 +90,7 @@ func (r *RawClient) DeleteOrganization( ) endpointURL := internal.EncodeURL( baseURL+"/Organization/%v", - orgId, + orgID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -124,7 +124,7 @@ func (r *RawClient) DeleteOrganization( func (r *RawClient) EditOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.OrganizationData, opts ...option.RequestOption, ) (*core.Response[*payabli.EditOrganizationResponse], error) { @@ -136,7 +136,7 @@ func (r *RawClient) EditOrganization( ) endpointURL := internal.EncodeURL( baseURL+"/Organization/%v", - orgId, + orgID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -214,10 +214,10 @@ func (r *RawClient) GetBasicOrganization( }, nil } -func (r *RawClient) GetBasicOrganizationById( +func (r *RawClient) GetBasicOrganizationByID( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*core.Response[*payabli.OrganizationQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -228,7 +228,7 @@ func (r *RawClient) GetBasicOrganizationById( ) endpointURL := internal.EncodeURL( baseURL+"/Organization/basicById/%v", - orgId, + orgID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -262,7 +262,7 @@ func (r *RawClient) GetBasicOrganizationById( func (r *RawClient) GetOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*core.Response[*payabli.OrganizationQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -273,7 +273,7 @@ func (r *RawClient) GetOrganization( ) endpointURL := internal.EncodeURL( baseURL+"/Organization/read/%v", - orgId, + orgID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -307,7 +307,7 @@ func (r *RawClient) GetOrganization( func (r *RawClient) GetSettingsOrganization( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, opts ...option.RequestOption, ) (*core.Response[*payabli.SettingsQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -318,7 +318,7 @@ func (r *RawClient) GetSettingsOrganization( ) endpointURL := internal.EncodeURL( baseURL+"/Organization/settings/%v", - orgId, + orgID, ) headers := internal.MergeHeaders( r.options.ToHeader(), diff --git a/organization_test.go b/organization_test.go index 811b975..93a1504 100644 --- a/organization_test.go +++ b/organization_test.go @@ -90,11 +90,11 @@ func TestSettersAddOrganizationRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &AddOrganizationRequest{} - var fernTestValueOrgId *Orgidstring - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgidstring + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -114,11 +114,11 @@ func TestSettersAddOrganizationRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgParentId", func(t *testing.T) { + t.Run("SetOrgParentID", func(t *testing.T) { obj := &AddOrganizationRequest{} - var fernTestValueOrgParentId *OrgParentId - obj.SetOrgParentId(fernTestValueOrgParentId) - assert.Equal(t, fernTestValueOrgParentId, obj.OrgParentId) + var fernTestValueOrgParentID *OrgParentID + obj.SetOrgParentID(fernTestValueOrgParentID) + assert.Equal(t, fernTestValueOrgParentID, obj.OrgParentID) assert.NotNil(t, obj.explicitFields) }) @@ -483,14 +483,14 @@ func TestSettersMarkExplicitAddOrganizationRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddOrganizationRequest{} - var fernTestValueOrgId *Orgidstring + var fernTestValueOrgID *Orgidstring // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -576,14 +576,14 @@ func TestSettersMarkExplicitAddOrganizationRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgParentId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgParentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddOrganizationRequest{} - var fernTestValueOrgParentId *OrgParentId + var fernTestValueOrgParentID *OrgParentID // Act - obj.SetOrgParentId(fernTestValueOrgParentId) + obj.SetOrgParentID(fernTestValueOrgParentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -868,11 +868,11 @@ func TestSettersOrganizationData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrganizationDataOrgId", func(t *testing.T) { + t.Run("SetOrganizationDataOrgID", func(t *testing.T) { obj := &OrganizationData{} - var fernTestValueOrganizationDataOrgId *Orgidstring - obj.SetOrganizationDataOrgId(fernTestValueOrganizationDataOrgId) - assert.Equal(t, fernTestValueOrganizationDataOrgId, obj.OrganizationDataOrgId) + var fernTestValueOrganizationDataOrgID *Orgidstring + obj.SetOrganizationDataOrgID(fernTestValueOrganizationDataOrgID) + assert.Equal(t, fernTestValueOrganizationDataOrgID, obj.OrganizationDataOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -892,11 +892,11 @@ func TestSettersOrganizationData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgParentId", func(t *testing.T) { + t.Run("SetOrgParentID", func(t *testing.T) { obj := &OrganizationData{} - var fernTestValueOrgParentId *OrgParentId - obj.SetOrgParentId(fernTestValueOrgParentId) - assert.Equal(t, fernTestValueOrgParentId, obj.OrgParentId) + var fernTestValueOrgParentID *OrgParentID + obj.SetOrgParentID(fernTestValueOrgParentID) + assert.Equal(t, fernTestValueOrgParentID, obj.OrgParentID) assert.NotNil(t, obj.explicitFields) }) @@ -1230,14 +1230,14 @@ func TestSettersMarkExplicitOrganizationData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrganizationDataOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrganizationDataOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationData{} - var fernTestValueOrganizationDataOrgId *Orgidstring + var fernTestValueOrganizationDataOrgID *Orgidstring // Act - obj.SetOrganizationDataOrgId(fernTestValueOrganizationDataOrgId) + obj.SetOrganizationDataOrgID(fernTestValueOrganizationDataOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1323,14 +1323,14 @@ func TestSettersMarkExplicitOrganizationData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgParentId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgParentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationData{} - var fernTestValueOrgParentId *OrgParentId + var fernTestValueOrgParentID *OrgParentID // Act - obj.SetOrgParentId(fernTestValueOrgParentId) + obj.SetOrgParentID(fernTestValueOrgParentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/payment_link.go b/payment_link.go index 019948e..6c4ba33 100644 --- a/payment_link.go +++ b/payment_link.go @@ -198,10 +198,10 @@ func (p *PayLinkDataInvoice) MarshalJSON() ([]byte, error) { } var ( - refreshPayLinkFromIdRequestFieldAmountFixed = big.NewInt(1 << 0) + refreshPayLinkFromIDRequestFieldAmountFixed = big.NewInt(1 << 0) ) -type RefreshPayLinkFromIdRequest struct { +type RefreshPayLinkFromIDRequest struct { // Indicates whether customer can modify the payment amount. A value of `true` means the amount isn't modifiable, a value `false` means the payor can modify the amount to pay. AmountFixed *bool `json:"-" url:"amountFixed,omitempty"` @@ -209,7 +209,7 @@ type RefreshPayLinkFromIdRequest struct { explicitFields *big.Int `json:"-" url:"-"` } -func (r *RefreshPayLinkFromIdRequest) require(field *big.Int) { +func (r *RefreshPayLinkFromIDRequest) require(field *big.Int) { if r.explicitFields == nil { r.explicitFields = big.NewInt(0) } @@ -218,17 +218,17 @@ func (r *RefreshPayLinkFromIdRequest) require(field *big.Int) { // SetAmountFixed sets the AmountFixed field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RefreshPayLinkFromIdRequest) SetAmountFixed(amountFixed *bool) { +func (r *RefreshPayLinkFromIDRequest) SetAmountFixed(amountFixed *bool) { r.AmountFixed = amountFixed - r.require(refreshPayLinkFromIdRequestFieldAmountFixed) + r.require(refreshPayLinkFromIDRequestFieldAmountFixed) } var ( - sendPayLinkFromIdRequestFieldAttachfile = big.NewInt(1 << 0) - sendPayLinkFromIdRequestFieldMail2 = big.NewInt(1 << 1) + sendPayLinkFromIDRequestFieldAttachfile = big.NewInt(1 << 0) + sendPayLinkFromIDRequestFieldMail2 = big.NewInt(1 << 1) ) -type SendPayLinkFromIdRequest struct { +type SendPayLinkFromIDRequest struct { // When `true`, attaches a PDF version of invoice to the email. Attachfile *bool `json:"-" url:"attachfile,omitempty"` // List of recipient email addresses. When there is more than one, separate them by a semicolon (;). @@ -238,7 +238,7 @@ type SendPayLinkFromIdRequest struct { explicitFields *big.Int `json:"-" url:"-"` } -func (s *SendPayLinkFromIdRequest) require(field *big.Int) { +func (s *SendPayLinkFromIDRequest) require(field *big.Int) { if s.explicitFields == nil { s.explicitFields = big.NewInt(0) } @@ -247,16 +247,16 @@ func (s *SendPayLinkFromIdRequest) require(field *big.Int) { // SetAttachfile sets the Attachfile field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SendPayLinkFromIdRequest) SetAttachfile(attachfile *bool) { +func (s *SendPayLinkFromIDRequest) SetAttachfile(attachfile *bool) { s.Attachfile = attachfile - s.require(sendPayLinkFromIdRequestFieldAttachfile) + s.require(sendPayLinkFromIDRequestFieldAttachfile) } // SetMail2 sets the Mail2 field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SendPayLinkFromIdRequest) SetMail2(mail2 *string) { +func (s *SendPayLinkFromIDRequest) SetMail2(mail2 *string) { s.Mail2 = mail2 - s.require(sendPayLinkFromIdRequestFieldMail2) + s.require(sendPayLinkFromIDRequestFieldMail2) } var ( @@ -265,7 +265,7 @@ var ( pagelinkSettingFieldLanguage = big.NewInt(1 << 2) pagelinkSettingFieldPageLogo = big.NewInt(1 << 3) pagelinkSettingFieldRedirectAfterApprove = big.NewInt(1 << 4) - pagelinkSettingFieldRedirectAfterApproveUrl = big.NewInt(1 << 5) + pagelinkSettingFieldRedirectAfterApproveURL = big.NewInt(1 << 5) ) type PagelinkSetting struct { @@ -280,7 +280,7 @@ type PagelinkSetting struct { // Flag indicating if the capability for redirection in the page will be activated RedirectAfterApprove *bool `json:"redirectAfterApprove,omitempty" url:"redirectAfterApprove,omitempty"` // Complete URL where the page will be redirected after completion - RedirectAfterApproveUrl *string `json:"redirectAfterApproveUrl,omitempty" url:"redirectAfterApproveUrl,omitempty"` + RedirectAfterApproveURL *string `json:"redirectAfterApproveUrl,omitempty" url:"redirectAfterApproveUrl,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -324,11 +324,11 @@ func (p *PagelinkSetting) GetRedirectAfterApprove() *bool { return p.RedirectAfterApprove } -func (p *PagelinkSetting) GetRedirectAfterApproveUrl() *string { +func (p *PagelinkSetting) GetRedirectAfterApproveURL() *string { if p == nil { return nil } - return p.RedirectAfterApproveUrl + return p.RedirectAfterApproveURL } func (p *PagelinkSetting) GetExtraProperties() map[string]interface{} { @@ -380,11 +380,11 @@ func (p *PagelinkSetting) SetRedirectAfterApprove(redirectAfterApprove *bool) { p.require(pagelinkSettingFieldRedirectAfterApprove) } -// SetRedirectAfterApproveUrl sets the RedirectAfterApproveUrl field and marks it as non-optional; +// SetRedirectAfterApproveURL sets the RedirectAfterApproveURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PagelinkSetting) SetRedirectAfterApproveUrl(redirectAfterApproveUrl *string) { - p.RedirectAfterApproveUrl = redirectAfterApproveUrl - p.require(pagelinkSettingFieldRedirectAfterApproveUrl) +func (p *PagelinkSetting) SetRedirectAfterApproveURL(redirectAfterApproveURL *string) { + p.RedirectAfterApproveURL = redirectAfterApproveURL + p.require(pagelinkSettingFieldRedirectAfterApproveURL) } func (p *PagelinkSetting) UnmarshalJSON(data []byte) error { @@ -717,15 +717,15 @@ func (p *PushPayLinkRequestSms) String() string { } var ( - getPayLinkFromIdResponseFieldIsSuccess = big.NewInt(1 << 0) - getPayLinkFromIdResponseFieldResponseText = big.NewInt(1 << 1) - getPayLinkFromIdResponseFieldResponseData = big.NewInt(1 << 2) + getPayLinkFromIDResponseFieldIsSuccess = big.NewInt(1 << 0) + getPayLinkFromIDResponseFieldResponseText = big.NewInt(1 << 1) + getPayLinkFromIDResponseFieldResponseData = big.NewInt(1 << 2) ) -type GetPayLinkFromIdResponse struct { +type GetPayLinkFromIDResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` - ResponseData *GetPayLinkFromIdResponseResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *GetPayLinkFromIDResponseResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -734,35 +734,35 @@ type GetPayLinkFromIdResponse struct { rawJSON json.RawMessage } -func (g *GetPayLinkFromIdResponse) GetIsSuccess() *IsSuccess { +func (g *GetPayLinkFromIDResponse) GetIsSuccess() *IsSuccess { if g == nil { return nil } return g.IsSuccess } -func (g *GetPayLinkFromIdResponse) GetResponseText() ResponseText { +func (g *GetPayLinkFromIDResponse) GetResponseText() ResponseText { if g == nil { return "" } return g.ResponseText } -func (g *GetPayLinkFromIdResponse) GetResponseData() *GetPayLinkFromIdResponseResponseData { +func (g *GetPayLinkFromIDResponse) GetResponseData() *GetPayLinkFromIDResponseResponseData { if g == nil { return nil } return g.ResponseData } -func (g *GetPayLinkFromIdResponse) GetExtraProperties() map[string]interface{} { +func (g *GetPayLinkFromIDResponse) GetExtraProperties() map[string]interface{} { if g == nil { return nil } return g.extraProperties } -func (g *GetPayLinkFromIdResponse) require(field *big.Int) { +func (g *GetPayLinkFromIDResponse) require(field *big.Int) { if g.explicitFields == nil { g.explicitFields = big.NewInt(0) } @@ -771,32 +771,32 @@ func (g *GetPayLinkFromIdResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponse) SetIsSuccess(isSuccess *IsSuccess) { +func (g *GetPayLinkFromIDResponse) SetIsSuccess(isSuccess *IsSuccess) { g.IsSuccess = isSuccess - g.require(getPayLinkFromIdResponseFieldIsSuccess) + g.require(getPayLinkFromIDResponseFieldIsSuccess) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponse) SetResponseText(responseText ResponseText) { +func (g *GetPayLinkFromIDResponse) SetResponseText(responseText ResponseText) { g.ResponseText = responseText - g.require(getPayLinkFromIdResponseFieldResponseText) + g.require(getPayLinkFromIDResponseFieldResponseText) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponse) SetResponseData(responseData *GetPayLinkFromIdResponseResponseData) { +func (g *GetPayLinkFromIDResponse) SetResponseData(responseData *GetPayLinkFromIDResponseResponseData) { g.ResponseData = responseData - g.require(getPayLinkFromIdResponseFieldResponseData) + g.require(getPayLinkFromIDResponseFieldResponseData) } -func (g *GetPayLinkFromIdResponse) UnmarshalJSON(data []byte) error { - type unmarshaler GetPayLinkFromIdResponse +func (g *GetPayLinkFromIDResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetPayLinkFromIDResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *g = GetPayLinkFromIdResponse(value) + *g = GetPayLinkFromIDResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *g) if err != nil { return err @@ -806,8 +806,8 @@ func (g *GetPayLinkFromIdResponse) UnmarshalJSON(data []byte) error { return nil } -func (g *GetPayLinkFromIdResponse) MarshalJSON() ([]byte, error) { - type embed GetPayLinkFromIdResponse +func (g *GetPayLinkFromIDResponse) MarshalJSON() ([]byte, error) { + type embed GetPayLinkFromIDResponse var marshaler = struct { embed }{ @@ -817,7 +817,7 @@ func (g *GetPayLinkFromIdResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (g *GetPayLinkFromIdResponse) String() string { +func (g *GetPayLinkFromIDResponse) String() string { if g == nil { return "" } @@ -833,20 +833,20 @@ func (g *GetPayLinkFromIdResponse) String() string { } var ( - getPayLinkFromIdResponseResponseDataFieldAdditionalData = big.NewInt(1 << 0) - getPayLinkFromIdResponseResponseDataFieldCredentials = big.NewInt(1 << 1) - getPayLinkFromIdResponseResponseDataFieldLastAccess = big.NewInt(1 << 2) - getPayLinkFromIdResponseResponseDataFieldPageContent = big.NewInt(1 << 3) - getPayLinkFromIdResponseResponseDataFieldPageIdentifier = big.NewInt(1 << 4) - getPayLinkFromIdResponseResponseDataFieldPageSettings = big.NewInt(1 << 5) - getPayLinkFromIdResponseResponseDataFieldPublished = big.NewInt(1 << 6) - getPayLinkFromIdResponseResponseDataFieldReceiptContent = big.NewInt(1 << 7) - getPayLinkFromIdResponseResponseDataFieldSubdomain = big.NewInt(1 << 8) - getPayLinkFromIdResponseResponseDataFieldTotalAmount = big.NewInt(1 << 9) - getPayLinkFromIdResponseResponseDataFieldValidationCode = big.NewInt(1 << 10) + getPayLinkFromIDResponseResponseDataFieldAdditionalData = big.NewInt(1 << 0) + getPayLinkFromIDResponseResponseDataFieldCredentials = big.NewInt(1 << 1) + getPayLinkFromIDResponseResponseDataFieldLastAccess = big.NewInt(1 << 2) + getPayLinkFromIDResponseResponseDataFieldPageContent = big.NewInt(1 << 3) + getPayLinkFromIDResponseResponseDataFieldPageIdentifier = big.NewInt(1 << 4) + getPayLinkFromIDResponseResponseDataFieldPageSettings = big.NewInt(1 << 5) + getPayLinkFromIDResponseResponseDataFieldPublished = big.NewInt(1 << 6) + getPayLinkFromIDResponseResponseDataFieldReceiptContent = big.NewInt(1 << 7) + getPayLinkFromIDResponseResponseDataFieldSubdomain = big.NewInt(1 << 8) + getPayLinkFromIDResponseResponseDataFieldTotalAmount = big.NewInt(1 << 9) + getPayLinkFromIDResponseResponseDataFieldValidationCode = big.NewInt(1 << 10) ) -type GetPayLinkFromIdResponseResponseData struct { +type GetPayLinkFromIDResponseResponseData struct { AdditionalData *AdditionalData `json:"AdditionalData,omitempty" url:"AdditionalData,omitempty"` // Array of credential objects with active services for the page Credentials []*PayabliCredentials `json:"credentials,omitempty" url:"credentials,omitempty"` @@ -875,91 +875,91 @@ type GetPayLinkFromIdResponseResponseData struct { rawJSON json.RawMessage } -func (g *GetPayLinkFromIdResponseResponseData) GetAdditionalData() *AdditionalData { +func (g *GetPayLinkFromIDResponseResponseData) GetAdditionalData() *AdditionalData { if g == nil { return nil } return g.AdditionalData } -func (g *GetPayLinkFromIdResponseResponseData) GetCredentials() []*PayabliCredentials { +func (g *GetPayLinkFromIDResponseResponseData) GetCredentials() []*PayabliCredentials { if g == nil { return nil } return g.Credentials } -func (g *GetPayLinkFromIdResponseResponseData) GetLastAccess() *time.Time { +func (g *GetPayLinkFromIDResponseResponseData) GetLastAccess() *time.Time { if g == nil { return nil } return g.LastAccess } -func (g *GetPayLinkFromIdResponseResponseData) GetPageContent() *PageContent { +func (g *GetPayLinkFromIDResponseResponseData) GetPageContent() *PageContent { if g == nil { return nil } return g.PageContent } -func (g *GetPayLinkFromIdResponseResponseData) GetPageIdentifier() *PageIdentifier { +func (g *GetPayLinkFromIDResponseResponseData) GetPageIdentifier() *PageIdentifier { if g == nil { return nil } return g.PageIdentifier } -func (g *GetPayLinkFromIdResponseResponseData) GetPageSettings() *PageSetting { +func (g *GetPayLinkFromIDResponseResponseData) GetPageSettings() *PageSetting { if g == nil { return nil } return g.PageSettings } -func (g *GetPayLinkFromIdResponseResponseData) GetPublished() *int { +func (g *GetPayLinkFromIDResponseResponseData) GetPublished() *int { if g == nil { return nil } return g.Published } -func (g *GetPayLinkFromIdResponseResponseData) GetReceiptContent() *ReceiptContent { +func (g *GetPayLinkFromIDResponseResponseData) GetReceiptContent() *ReceiptContent { if g == nil { return nil } return g.ReceiptContent } -func (g *GetPayLinkFromIdResponseResponseData) GetSubdomain() *Subdomain { +func (g *GetPayLinkFromIDResponseResponseData) GetSubdomain() *Subdomain { if g == nil { return nil } return g.Subdomain } -func (g *GetPayLinkFromIdResponseResponseData) GetTotalAmount() *float64 { +func (g *GetPayLinkFromIDResponseResponseData) GetTotalAmount() *float64 { if g == nil { return nil } return g.TotalAmount } -func (g *GetPayLinkFromIdResponseResponseData) GetValidationCode() *string { +func (g *GetPayLinkFromIDResponseResponseData) GetValidationCode() *string { if g == nil { return nil } return g.ValidationCode } -func (g *GetPayLinkFromIdResponseResponseData) GetExtraProperties() map[string]interface{} { +func (g *GetPayLinkFromIDResponseResponseData) GetExtraProperties() map[string]interface{} { if g == nil { return nil } return g.extraProperties } -func (g *GetPayLinkFromIdResponseResponseData) require(field *big.Int) { +func (g *GetPayLinkFromIDResponseResponseData) require(field *big.Int) { if g.explicitFields == nil { g.explicitFields = big.NewInt(0) } @@ -968,83 +968,83 @@ func (g *GetPayLinkFromIdResponseResponseData) require(field *big.Int) { // SetAdditionalData sets the AdditionalData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetAdditionalData(additionalData *AdditionalData) { +func (g *GetPayLinkFromIDResponseResponseData) SetAdditionalData(additionalData *AdditionalData) { g.AdditionalData = additionalData - g.require(getPayLinkFromIdResponseResponseDataFieldAdditionalData) + g.require(getPayLinkFromIDResponseResponseDataFieldAdditionalData) } // SetCredentials sets the Credentials field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetCredentials(credentials []*PayabliCredentials) { +func (g *GetPayLinkFromIDResponseResponseData) SetCredentials(credentials []*PayabliCredentials) { g.Credentials = credentials - g.require(getPayLinkFromIdResponseResponseDataFieldCredentials) + g.require(getPayLinkFromIDResponseResponseDataFieldCredentials) } // SetLastAccess sets the LastAccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetLastAccess(lastAccess *time.Time) { +func (g *GetPayLinkFromIDResponseResponseData) SetLastAccess(lastAccess *time.Time) { g.LastAccess = lastAccess - g.require(getPayLinkFromIdResponseResponseDataFieldLastAccess) + g.require(getPayLinkFromIDResponseResponseDataFieldLastAccess) } // SetPageContent sets the PageContent field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetPageContent(pageContent *PageContent) { +func (g *GetPayLinkFromIDResponseResponseData) SetPageContent(pageContent *PageContent) { g.PageContent = pageContent - g.require(getPayLinkFromIdResponseResponseDataFieldPageContent) + g.require(getPayLinkFromIDResponseResponseDataFieldPageContent) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (g *GetPayLinkFromIDResponseResponseData) SetPageIdentifier(pageIdentifier *PageIdentifier) { g.PageIdentifier = pageIdentifier - g.require(getPayLinkFromIdResponseResponseDataFieldPageIdentifier) + g.require(getPayLinkFromIDResponseResponseDataFieldPageIdentifier) } // SetPageSettings sets the PageSettings field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetPageSettings(pageSettings *PageSetting) { +func (g *GetPayLinkFromIDResponseResponseData) SetPageSettings(pageSettings *PageSetting) { g.PageSettings = pageSettings - g.require(getPayLinkFromIdResponseResponseDataFieldPageSettings) + g.require(getPayLinkFromIDResponseResponseDataFieldPageSettings) } // SetPublished sets the Published field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetPublished(published *int) { +func (g *GetPayLinkFromIDResponseResponseData) SetPublished(published *int) { g.Published = published - g.require(getPayLinkFromIdResponseResponseDataFieldPublished) + g.require(getPayLinkFromIDResponseResponseDataFieldPublished) } // SetReceiptContent sets the ReceiptContent field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetReceiptContent(receiptContent *ReceiptContent) { +func (g *GetPayLinkFromIDResponseResponseData) SetReceiptContent(receiptContent *ReceiptContent) { g.ReceiptContent = receiptContent - g.require(getPayLinkFromIdResponseResponseDataFieldReceiptContent) + g.require(getPayLinkFromIDResponseResponseDataFieldReceiptContent) } // SetSubdomain sets the Subdomain field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetSubdomain(subdomain *Subdomain) { +func (g *GetPayLinkFromIDResponseResponseData) SetSubdomain(subdomain *Subdomain) { g.Subdomain = subdomain - g.require(getPayLinkFromIdResponseResponseDataFieldSubdomain) + g.require(getPayLinkFromIDResponseResponseDataFieldSubdomain) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetTotalAmount(totalAmount *float64) { +func (g *GetPayLinkFromIDResponseResponseData) SetTotalAmount(totalAmount *float64) { g.TotalAmount = totalAmount - g.require(getPayLinkFromIdResponseResponseDataFieldTotalAmount) + g.require(getPayLinkFromIDResponseResponseDataFieldTotalAmount) } // SetValidationCode sets the ValidationCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetPayLinkFromIdResponseResponseData) SetValidationCode(validationCode *string) { +func (g *GetPayLinkFromIDResponseResponseData) SetValidationCode(validationCode *string) { g.ValidationCode = validationCode - g.require(getPayLinkFromIdResponseResponseDataFieldValidationCode) + g.require(getPayLinkFromIDResponseResponseDataFieldValidationCode) } -func (g *GetPayLinkFromIdResponseResponseData) UnmarshalJSON(data []byte) error { - type embed GetPayLinkFromIdResponseResponseData +func (g *GetPayLinkFromIDResponseResponseData) UnmarshalJSON(data []byte) error { + type embed GetPayLinkFromIDResponseResponseData var unmarshaler = struct { embed LastAccess *internal.DateTime `json:"lastAccess,omitempty"` @@ -1054,7 +1054,7 @@ func (g *GetPayLinkFromIdResponseResponseData) UnmarshalJSON(data []byte) error if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *g = GetPayLinkFromIdResponseResponseData(unmarshaler.embed) + *g = GetPayLinkFromIDResponseResponseData(unmarshaler.embed) g.LastAccess = unmarshaler.LastAccess.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *g) if err != nil { @@ -1065,8 +1065,8 @@ func (g *GetPayLinkFromIdResponseResponseData) UnmarshalJSON(data []byte) error return nil } -func (g *GetPayLinkFromIdResponseResponseData) MarshalJSON() ([]byte, error) { - type embed GetPayLinkFromIdResponseResponseData +func (g *GetPayLinkFromIDResponseResponseData) MarshalJSON() ([]byte, error) { + type embed GetPayLinkFromIDResponseResponseData var marshaler = struct { embed LastAccess *internal.DateTime `json:"lastAccess,omitempty"` @@ -1078,7 +1078,7 @@ func (g *GetPayLinkFromIdResponseResponseData) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (g *GetPayLinkFromIdResponseResponseData) String() string { +func (g *GetPayLinkFromIDResponseResponseData) String() string { if g == nil { return "" } @@ -1214,12 +1214,12 @@ func (p *PatchOutPaymentLinkRequest) String() string { } var ( - payabliApiResponsePaymentLinksFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponsePaymentLinksFieldResponseData = big.NewInt(1 << 1) - payabliApiResponsePaymentLinksFieldResponseText = big.NewInt(1 << 2) + payabliAPIResponsePaymentLinksFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponsePaymentLinksFieldResponseData = big.NewInt(1 << 1) + payabliAPIResponsePaymentLinksFieldResponseText = big.NewInt(1 << 2) ) -type PayabliApiResponsePaymentLinks struct { +type PayabliAPIResponsePaymentLinks struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` // If `isSuccess` = true, this contains the payment link identifier. If `isSuccess` = false, this contains the reason of the error. ResponseData *string `json:"responseData,omitempty" url:"responseData,omitempty"` @@ -1232,35 +1232,35 @@ type PayabliApiResponsePaymentLinks struct { rawJSON json.RawMessage } -func (p *PayabliApiResponsePaymentLinks) GetIsSuccess() IsSuccess { +func (p *PayabliAPIResponsePaymentLinks) GetIsSuccess() IsSuccess { if p == nil { return false } return p.IsSuccess } -func (p *PayabliApiResponsePaymentLinks) GetResponseData() *string { +func (p *PayabliAPIResponsePaymentLinks) GetResponseData() *string { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponsePaymentLinks) GetResponseText() ResponseText { +func (p *PayabliAPIResponsePaymentLinks) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponsePaymentLinks) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponsePaymentLinks) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponsePaymentLinks) require(field *big.Int) { +func (p *PayabliAPIResponsePaymentLinks) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -1269,32 +1269,32 @@ func (p *PayabliApiResponsePaymentLinks) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymentLinks) SetIsSuccess(isSuccess IsSuccess) { +func (p *PayabliAPIResponsePaymentLinks) SetIsSuccess(isSuccess IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponsePaymentLinksFieldIsSuccess) + p.require(payabliAPIResponsePaymentLinksFieldIsSuccess) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymentLinks) SetResponseData(responseData *string) { +func (p *PayabliAPIResponsePaymentLinks) SetResponseData(responseData *string) { p.ResponseData = responseData - p.require(payabliApiResponsePaymentLinksFieldResponseData) + p.require(payabliAPIResponsePaymentLinksFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymentLinks) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponsePaymentLinks) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponsePaymentLinksFieldResponseText) + p.require(payabliAPIResponsePaymentLinksFieldResponseText) } -func (p *PayabliApiResponsePaymentLinks) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponsePaymentLinks +func (p *PayabliAPIResponsePaymentLinks) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponsePaymentLinks var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponsePaymentLinks(value) + *p = PayabliAPIResponsePaymentLinks(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -1304,8 +1304,8 @@ func (p *PayabliApiResponsePaymentLinks) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponsePaymentLinks) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponsePaymentLinks +func (p *PayabliAPIResponsePaymentLinks) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponsePaymentLinks var marshaler = struct { embed }{ @@ -1315,7 +1315,7 @@ func (p *PayabliApiResponsePaymentLinks) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponsePaymentLinks) String() string { +func (p *PayabliAPIResponsePaymentLinks) String() string { if p == nil { return "" } diff --git a/payment_link_test.go b/payment_link_test.go index 4c63b0d..a9e102d 100644 --- a/payment_link_test.go +++ b/payment_link_test.go @@ -418,9 +418,9 @@ func TestSettersMarkExplicitPayLinkDataInvoice(t *testing.T) { } -func TestSettersRefreshPayLinkFromIdRequest(t *testing.T) { +func TestSettersRefreshPayLinkFromIDRequest(t *testing.T) { t.Run("SetAmountFixed", func(t *testing.T) { - obj := &RefreshPayLinkFromIdRequest{} + obj := &RefreshPayLinkFromIDRequest{} var fernTestValueAmountFixed *bool obj.SetAmountFixed(fernTestValueAmountFixed) assert.Equal(t, fernTestValueAmountFixed, obj.AmountFixed) @@ -429,11 +429,11 @@ func TestSettersRefreshPayLinkFromIdRequest(t *testing.T) { } -func TestSettersMarkExplicitRefreshPayLinkFromIdRequest(t *testing.T) { +func TestSettersMarkExplicitRefreshPayLinkFromIDRequest(t *testing.T) { t.Run("SetAmountFixed_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &RefreshPayLinkFromIdRequest{} + obj := &RefreshPayLinkFromIDRequest{} var fernTestValueAmountFixed *bool // Act @@ -463,9 +463,9 @@ func TestSettersMarkExplicitRefreshPayLinkFromIdRequest(t *testing.T) { } -func TestSettersSendPayLinkFromIdRequest(t *testing.T) { +func TestSettersSendPayLinkFromIDRequest(t *testing.T) { t.Run("SetAttachfile", func(t *testing.T) { - obj := &SendPayLinkFromIdRequest{} + obj := &SendPayLinkFromIDRequest{} var fernTestValueAttachfile *bool obj.SetAttachfile(fernTestValueAttachfile) assert.Equal(t, fernTestValueAttachfile, obj.Attachfile) @@ -473,7 +473,7 @@ func TestSettersSendPayLinkFromIdRequest(t *testing.T) { }) t.Run("SetMail2", func(t *testing.T) { - obj := &SendPayLinkFromIdRequest{} + obj := &SendPayLinkFromIDRequest{} var fernTestValueMail2 *string obj.SetMail2(fernTestValueMail2) assert.Equal(t, fernTestValueMail2, obj.Mail2) @@ -482,11 +482,11 @@ func TestSettersSendPayLinkFromIdRequest(t *testing.T) { } -func TestSettersMarkExplicitSendPayLinkFromIdRequest(t *testing.T) { +func TestSettersMarkExplicitSendPayLinkFromIDRequest(t *testing.T) { t.Run("SetAttachfile_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SendPayLinkFromIdRequest{} + obj := &SendPayLinkFromIDRequest{} var fernTestValueAttachfile *bool // Act @@ -517,7 +517,7 @@ func TestSettersMarkExplicitSendPayLinkFromIdRequest(t *testing.T) { t.Run("SetMail2_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &SendPayLinkFromIdRequest{} + obj := &SendPayLinkFromIDRequest{} var fernTestValueMail2 *string // Act @@ -588,11 +588,11 @@ func TestSettersPagelinkSetting(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRedirectAfterApproveUrl", func(t *testing.T) { + t.Run("SetRedirectAfterApproveURL", func(t *testing.T) { obj := &PagelinkSetting{} - var fernTestValueRedirectAfterApproveUrl *string - obj.SetRedirectAfterApproveUrl(fernTestValueRedirectAfterApproveUrl) - assert.Equal(t, fernTestValueRedirectAfterApproveUrl, obj.RedirectAfterApproveUrl) + var fernTestValueRedirectAfterApproveURL *string + obj.SetRedirectAfterApproveURL(fernTestValueRedirectAfterApproveURL) + assert.Equal(t, fernTestValueRedirectAfterApproveURL, obj.RedirectAfterApproveURL) assert.NotNil(t, obj.explicitFields) }) @@ -764,28 +764,28 @@ func TestGettersPagelinkSetting(t *testing.T) { _ = obj.GetRedirectAfterApprove() // Should return zero value }) - t.Run("GetRedirectAfterApproveUrl", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL", func(t *testing.T) { t.Parallel() // Arrange obj := &PagelinkSetting{} var expected *string - obj.RedirectAfterApproveUrl = expected + obj.RedirectAfterApproveURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetRedirectAfterApproveUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedirectAfterApproveURL(), "getter should return the property value") }) - t.Run("GetRedirectAfterApproveUrl_NilValue", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PagelinkSetting{} - obj.RedirectAfterApproveUrl = nil + obj.RedirectAfterApproveURL = nil // Act & Assert - assert.Nil(t, obj.GetRedirectAfterApproveUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRedirectAfterApproveURL(), "getter should return nil when property is nil") }) - t.Run("GetRedirectAfterApproveUrl_NilReceiver", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PagelinkSetting // Should not panic - getters should handle nil receiver gracefully @@ -794,7 +794,7 @@ func TestGettersPagelinkSetting(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRedirectAfterApproveUrl() // Should return zero value + _ = obj.GetRedirectAfterApproveURL() // Should return zero value }) } @@ -955,14 +955,14 @@ func TestSettersMarkExplicitPagelinkSetting(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRedirectAfterApproveUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetRedirectAfterApproveURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PagelinkSetting{} - var fernTestValueRedirectAfterApproveUrl *string + var fernTestValueRedirectAfterApproveURL *string // Act - obj.SetRedirectAfterApproveUrl(fernTestValueRedirectAfterApproveUrl) + obj.SetRedirectAfterApproveURL(fernTestValueRedirectAfterApproveURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1233,9 +1233,9 @@ func TestSettersMarkExplicitPushPayLinkRequestEmail(t *testing.T) { } -func TestSettersGetPayLinkFromIdResponse(t *testing.T) { +func TestSettersGetPayLinkFromIDResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -1243,7 +1243,7 @@ func TestSettersGetPayLinkFromIdResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -1251,8 +1251,8 @@ func TestSettersGetPayLinkFromIdResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &GetPayLinkFromIdResponse{} - var fernTestValueResponseData *GetPayLinkFromIdResponseResponseData + obj := &GetPayLinkFromIDResponse{} + var fernTestValueResponseData *GetPayLinkFromIDResponseResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) @@ -1260,11 +1260,11 @@ func TestSettersGetPayLinkFromIdResponse(t *testing.T) { } -func TestGettersGetPayLinkFromIdResponse(t *testing.T) { +func TestGettersGetPayLinkFromIDResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var expected *IsSuccess obj.IsSuccess = expected @@ -1275,7 +1275,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} obj.IsSuccess = nil // Act & Assert @@ -1284,7 +1284,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponse + var obj *GetPayLinkFromIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1297,7 +1297,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var expected ResponseText obj.ResponseText = expected @@ -1307,7 +1307,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponse + var obj *GetPayLinkFromIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1320,8 +1320,8 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} - var expected *GetPayLinkFromIdResponseResponseData + obj := &GetPayLinkFromIDResponse{} + var expected *GetPayLinkFromIDResponseResponseData obj.ResponseData = expected // Act & Assert @@ -1331,7 +1331,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} obj.ResponseData = nil // Act & Assert @@ -1340,7 +1340,7 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponse + var obj *GetPayLinkFromIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1352,11 +1352,11 @@ func TestGettersGetPayLinkFromIdResponse(t *testing.T) { } -func TestSettersMarkExplicitGetPayLinkFromIdResponse(t *testing.T) { +func TestSettersMarkExplicitGetPayLinkFromIDResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var fernTestValueIsSuccess *IsSuccess // Act @@ -1387,7 +1387,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} var fernTestValueResponseText ResponseText // Act @@ -1418,8 +1418,8 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} - var fernTestValueResponseData *GetPayLinkFromIdResponseResponseData + obj := &GetPayLinkFromIDResponse{} + var fernTestValueResponseData *GetPayLinkFromIDResponseResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -1448,9 +1448,9 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponse(t *testing.T) { } -func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestSettersGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("SetAdditionalData", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueAdditionalData *AdditionalData obj.SetAdditionalData(fernTestValueAdditionalData) assert.Equal(t, fernTestValueAdditionalData, obj.AdditionalData) @@ -1458,7 +1458,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetCredentials", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueCredentials []*PayabliCredentials obj.SetCredentials(fernTestValueCredentials) assert.Equal(t, fernTestValueCredentials, obj.Credentials) @@ -1466,7 +1466,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetLastAccess", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueLastAccess *time.Time obj.SetLastAccess(fernTestValueLastAccess) assert.Equal(t, fernTestValueLastAccess, obj.LastAccess) @@ -1474,7 +1474,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetPageContent", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageContent *PageContent obj.SetPageContent(fernTestValuePageContent) assert.Equal(t, fernTestValuePageContent, obj.PageContent) @@ -1482,7 +1482,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -1490,7 +1490,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetPageSettings", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageSettings *PageSetting obj.SetPageSettings(fernTestValuePageSettings) assert.Equal(t, fernTestValuePageSettings, obj.PageSettings) @@ -1498,7 +1498,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetPublished", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePublished *int obj.SetPublished(fernTestValuePublished) assert.Equal(t, fernTestValuePublished, obj.Published) @@ -1506,7 +1506,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetReceiptContent", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueReceiptContent *ReceiptContent obj.SetReceiptContent(fernTestValueReceiptContent) assert.Equal(t, fernTestValueReceiptContent, obj.ReceiptContent) @@ -1514,7 +1514,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetSubdomain", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueSubdomain *Subdomain obj.SetSubdomain(fernTestValueSubdomain) assert.Equal(t, fernTestValueSubdomain, obj.Subdomain) @@ -1522,7 +1522,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetTotalAmount", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueTotalAmount *float64 obj.SetTotalAmount(fernTestValueTotalAmount) assert.Equal(t, fernTestValueTotalAmount, obj.TotalAmount) @@ -1530,7 +1530,7 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { }) t.Run("SetValidationCode", func(t *testing.T) { - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueValidationCode *string obj.SetValidationCode(fernTestValueValidationCode) assert.Equal(t, fernTestValueValidationCode, obj.ValidationCode) @@ -1539,11 +1539,11 @@ func TestSettersGetPayLinkFromIdResponseResponseData(t *testing.T) { } -func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestGettersGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("GetAdditionalData", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *AdditionalData obj.AdditionalData = expected @@ -1554,7 +1554,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetAdditionalData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.AdditionalData = nil // Act & Assert @@ -1563,7 +1563,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetAdditionalData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1576,7 +1576,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetCredentials", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected []*PayabliCredentials obj.Credentials = expected @@ -1587,7 +1587,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetCredentials_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.Credentials = nil // Act & Assert @@ -1596,7 +1596,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetCredentials_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1609,7 +1609,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetLastAccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *time.Time obj.LastAccess = expected @@ -1620,7 +1620,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetLastAccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.LastAccess = nil // Act & Assert @@ -1629,7 +1629,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetLastAccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1642,7 +1642,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageContent", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *PageContent obj.PageContent = expected @@ -1653,7 +1653,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageContent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.PageContent = nil // Act & Assert @@ -1662,7 +1662,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageContent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1675,7 +1675,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -1686,7 +1686,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.PageIdentifier = nil // Act & Assert @@ -1695,7 +1695,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1708,7 +1708,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageSettings", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *PageSetting obj.PageSettings = expected @@ -1719,7 +1719,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageSettings_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.PageSettings = nil // Act & Assert @@ -1728,7 +1728,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPageSettings_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1741,7 +1741,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPublished", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *int obj.Published = expected @@ -1752,7 +1752,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPublished_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.Published = nil // Act & Assert @@ -1761,7 +1761,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetPublished_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1774,7 +1774,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetReceiptContent", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *ReceiptContent obj.ReceiptContent = expected @@ -1785,7 +1785,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetReceiptContent_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.ReceiptContent = nil // Act & Assert @@ -1794,7 +1794,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetReceiptContent_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1807,7 +1807,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetSubdomain", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *Subdomain obj.Subdomain = expected @@ -1818,7 +1818,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetSubdomain_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.Subdomain = nil // Act & Assert @@ -1827,7 +1827,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetSubdomain_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1840,7 +1840,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetTotalAmount", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *float64 obj.TotalAmount = expected @@ -1851,7 +1851,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetTotalAmount_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.TotalAmount = nil // Act & Assert @@ -1860,7 +1860,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetTotalAmount_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1873,7 +1873,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetValidationCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var expected *string obj.ValidationCode = expected @@ -1884,7 +1884,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetValidationCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} obj.ValidationCode = nil // Act & Assert @@ -1893,7 +1893,7 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetValidationCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1905,11 +1905,11 @@ func TestGettersGetPayLinkFromIdResponseResponseData(t *testing.T) { } -func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestSettersMarkExplicitGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("SetAdditionalData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueAdditionalData *AdditionalData // Act @@ -1940,7 +1940,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetCredentials_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueCredentials []*PayabliCredentials // Act @@ -1971,7 +1971,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetLastAccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueLastAccess *time.Time // Act @@ -2002,7 +2002,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetPageContent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageContent *PageContent // Act @@ -2033,7 +2033,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -2064,7 +2064,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetPageSettings_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePageSettings *PageSetting // Act @@ -2095,7 +2095,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetPublished_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValuePublished *int // Act @@ -2126,7 +2126,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetReceiptContent_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueReceiptContent *ReceiptContent // Act @@ -2157,7 +2157,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetSubdomain_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueSubdomain *Subdomain // Act @@ -2188,7 +2188,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetTotalAmount_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueTotalAmount *float64 // Act @@ -2219,7 +2219,7 @@ func TestSettersMarkExplicitGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("SetValidationCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} var fernTestValueValidationCode *string // Act @@ -2474,9 +2474,9 @@ func TestSettersMarkExplicitPatchOutPaymentLinkRequest(t *testing.T) { } -func TestSettersPayabliApiResponsePaymentLinks(t *testing.T) { +func TestSettersPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2484,7 +2484,7 @@ func TestSettersPayabliApiResponsePaymentLinks(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueResponseData *string obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -2492,7 +2492,7 @@ func TestSettersPayabliApiResponsePaymentLinks(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -2501,11 +2501,11 @@ func TestSettersPayabliApiResponsePaymentLinks(t *testing.T) { } -func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { +func TestGettersPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var expected IsSuccess obj.IsSuccess = expected @@ -2515,7 +2515,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymentLinks + var obj *PayabliAPIResponsePaymentLinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2528,7 +2528,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var expected *string obj.ResponseData = expected @@ -2539,7 +2539,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} obj.ResponseData = nil // Act & Assert @@ -2548,7 +2548,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymentLinks + var obj *PayabliAPIResponsePaymentLinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2561,7 +2561,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var expected ResponseText obj.ResponseText = expected @@ -2571,7 +2571,7 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymentLinks + var obj *PayabliAPIResponsePaymentLinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2583,11 +2583,11 @@ func TestGettersPayabliApiResponsePaymentLinks(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponsePaymentLinks(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueIsSuccess IsSuccess // Act @@ -2618,7 +2618,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueResponseData *string // Act @@ -2649,7 +2649,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} var fernTestValueResponseText ResponseText // Act @@ -4566,11 +4566,11 @@ func TestSettersMarkExplicitPayLinkUpdateData(t *testing.T) { } -func TestJSONMarshalingGetPayLinkFromIdResponse(t *testing.T) { +func TestJSONMarshalingGetPayLinkFromIDResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4579,31 +4579,31 @@ func TestJSONMarshalingGetPayLinkFromIdResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled GetPayLinkFromIdResponse + var unmarshaled GetPayLinkFromIDResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj GetPayLinkFromIdResponse + var obj GetPayLinkFromIDResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj GetPayLinkFromIdResponse + var obj GetPayLinkFromIDResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestJSONMarshalingGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4612,21 +4612,21 @@ func TestJSONMarshalingGetPayLinkFromIdResponseResponseData(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled GetPayLinkFromIdResponseResponseData + var unmarshaled GetPayLinkFromIDResponseResponseData err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj GetPayLinkFromIdResponseResponseData + var obj GetPayLinkFromIDResponseResponseData err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj GetPayLinkFromIdResponseResponseData + var obj GetPayLinkFromIDResponseResponseData err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4698,11 +4698,11 @@ func TestJSONMarshalingPatchOutPaymentLinkRequest(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponsePaymentLinks(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4711,21 +4711,21 @@ func TestJSONMarshalingPayabliApiResponsePaymentLinks(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponsePaymentLinks + var unmarshaled PayabliAPIResponsePaymentLinks err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymentLinks + var obj PayabliAPIResponsePaymentLinks err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymentLinks + var obj PayabliAPIResponsePaymentLinks err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4863,33 +4863,33 @@ func TestJSONMarshalingPushPayLinkRequestSms(t *testing.T) { }) } -func TestStringGetPayLinkFromIdResponse(t *testing.T) { +func TestStringGetPayLinkFromIDResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponse + var obj *GetPayLinkFromIDResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestStringGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4927,17 +4927,17 @@ func TestStringPatchOutPaymentLinkRequest(t *testing.T) { }) } -func TestStringPayabliApiResponsePaymentLinks(t *testing.T) { +func TestStringPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymentLinks + var obj *PayabliAPIResponsePaymentLinks result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -5007,10 +5007,10 @@ func TestStringPushPayLinkRequestSms(t *testing.T) { }) } -func TestExtraPropertiesGetPayLinkFromIdResponse(t *testing.T) { +func TestExtraPropertiesGetPayLinkFromIDResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &GetPayLinkFromIdResponse{} + obj := &GetPayLinkFromIDResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -5024,16 +5024,16 @@ func TestExtraPropertiesGetPayLinkFromIdResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponse + var obj *GetPayLinkFromIDResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesGetPayLinkFromIdResponseResponseData(t *testing.T) { +func TestExtraPropertiesGetPayLinkFromIDResponseResponseData(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &GetPayLinkFromIdResponseResponseData{} + obj := &GetPayLinkFromIDResponseResponseData{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -5047,7 +5047,7 @@ func TestExtraPropertiesGetPayLinkFromIdResponseResponseData(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetPayLinkFromIdResponseResponseData + var obj *GetPayLinkFromIDResponseResponseData extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) @@ -5099,10 +5099,10 @@ func TestExtraPropertiesPatchOutPaymentLinkRequest(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponsePaymentLinks(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponsePaymentLinks(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymentLinks{} + obj := &PayabliAPIResponsePaymentLinks{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -5116,7 +5116,7 @@ func TestExtraPropertiesPayabliApiResponsePaymentLinks(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymentLinks + var obj *PayabliAPIResponsePaymentLinks extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/payment_method_domain.go b/payment_method_domain.go index 38de1c2..1b7ed8f 100644 --- a/payment_method_domain.go +++ b/payment_method_domain.go @@ -14,7 +14,7 @@ var ( addPaymentMethodDomainRequestFieldApplePay = big.NewInt(1 << 0) addPaymentMethodDomainRequestFieldGooglePay = big.NewInt(1 << 1) addPaymentMethodDomainRequestFieldDomainName = big.NewInt(1 << 2) - addPaymentMethodDomainRequestFieldEntityId = big.NewInt(1 << 3) + addPaymentMethodDomainRequestFieldEntityID = big.NewInt(1 << 3) addPaymentMethodDomainRequestFieldEntityType = big.NewInt(1 << 4) ) @@ -24,7 +24,7 @@ type AddPaymentMethodDomainRequest struct { // Google Pay configuration information. GooglePay *AddPaymentMethodDomainRequestGooglePay `json:"googlePay,omitempty" url:"-"` DomainName *DomainName `json:"domainName,omitempty" url:"-"` - EntityId *EntityId `json:"entityId,omitempty" url:"-"` + EntityID *EntityID `json:"entityId,omitempty" url:"-"` EntityType *EntityType `json:"entityType,omitempty" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -59,11 +59,11 @@ func (a *AddPaymentMethodDomainRequest) SetDomainName(domainName *DomainName) { a.require(addPaymentMethodDomainRequestFieldDomainName) } -// SetEntityId sets the EntityId field and marks it as non-optional; +// SetEntityID sets the EntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPaymentMethodDomainRequest) SetEntityId(entityId *EntityId) { - a.EntityId = entityId - a.require(addPaymentMethodDomainRequestFieldEntityId) +func (a *AddPaymentMethodDomainRequest) SetEntityID(entityID *EntityID) { + a.EntityID = entityID + a.require(addPaymentMethodDomainRequestFieldEntityID) } // SetEntityType sets the EntityType field and marks it as non-optional; @@ -95,7 +95,7 @@ func (a *AddPaymentMethodDomainRequest) MarshalJSON() ([]byte, error) { } var ( - listPaymentMethodDomainsRequestFieldEntityId = big.NewInt(1 << 0) + listPaymentMethodDomainsRequestFieldEntityID = big.NewInt(1 << 0) listPaymentMethodDomainsRequestFieldEntityType = big.NewInt(1 << 1) listPaymentMethodDomainsRequestFieldFromRecord = big.NewInt(1 << 2) listPaymentMethodDomainsRequestFieldLimitRecord = big.NewInt(1 << 3) @@ -104,7 +104,7 @@ var ( type ListPaymentMethodDomainsRequest struct { // Identifier for the organization or paypoint. // - For organization, provide the organization ID - For paypoint, provide the paypoint ID - EntityId *int64 `json:"-" url:"entityId,omitempty"` + EntityID *int64 `json:"-" url:"entityId,omitempty"` // The type of entity. Valid values: // - organization // - paypoint @@ -126,11 +126,11 @@ func (l *ListPaymentMethodDomainsRequest) require(field *big.Int) { l.explicitFields.Or(l.explicitFields, field) } -// SetEntityId sets the EntityId field and marks it as non-optional; +// SetEntityID sets the EntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (l *ListPaymentMethodDomainsRequest) SetEntityId(entityId *int64) { - l.EntityId = entityId - l.require(listPaymentMethodDomainsRequestFieldEntityId) +func (l *ListPaymentMethodDomainsRequest) SetEntityID(entityID *int64) { + l.EntityID = entityID + l.require(listPaymentMethodDomainsRequestFieldEntityID) } // SetEntityType sets the EntityType field and marks it as non-optional; @@ -211,16 +211,16 @@ func (u *UpdatePaymentMethodDomainRequest) MarshalJSON() ([]byte, error) { // Response for the add payment method domain operation. var ( - addPaymentMethodDomainApiResponseFieldIsSuccess = big.NewInt(1 << 0) - addPaymentMethodDomainApiResponseFieldPageidentifier = big.NewInt(1 << 1) - addPaymentMethodDomainApiResponseFieldResponseData = big.NewInt(1 << 2) - addPaymentMethodDomainApiResponseFieldResponseText = big.NewInt(1 << 3) + addPaymentMethodDomainAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + addPaymentMethodDomainAPIResponseFieldPageidentifier = big.NewInt(1 << 1) + addPaymentMethodDomainAPIResponseFieldResponseData = big.NewInt(1 << 2) + addPaymentMethodDomainAPIResponseFieldResponseText = big.NewInt(1 << 3) ) -type AddPaymentMethodDomainApiResponse struct { +type AddPaymentMethodDomainAPIResponse struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` Pageidentifier PageIdentifier `json:"pageidentifier" url:"pageidentifier"` - ResponseData *PaymentMethodDomainApiResponse `json:"responseData" url:"responseData"` + ResponseData *PaymentMethodDomainAPIResponse `json:"responseData" url:"responseData"` ResponseText string `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -230,42 +230,42 @@ type AddPaymentMethodDomainApiResponse struct { rawJSON json.RawMessage } -func (a *AddPaymentMethodDomainApiResponse) GetIsSuccess() IsSuccess { +func (a *AddPaymentMethodDomainAPIResponse) GetIsSuccess() IsSuccess { if a == nil { return false } return a.IsSuccess } -func (a *AddPaymentMethodDomainApiResponse) GetPageidentifier() PageIdentifier { +func (a *AddPaymentMethodDomainAPIResponse) GetPageidentifier() PageIdentifier { if a == nil { return "" } return a.Pageidentifier } -func (a *AddPaymentMethodDomainApiResponse) GetResponseData() *PaymentMethodDomainApiResponse { +func (a *AddPaymentMethodDomainAPIResponse) GetResponseData() *PaymentMethodDomainAPIResponse { if a == nil { return nil } return a.ResponseData } -func (a *AddPaymentMethodDomainApiResponse) GetResponseText() string { +func (a *AddPaymentMethodDomainAPIResponse) GetResponseText() string { if a == nil { return "" } return a.ResponseText } -func (a *AddPaymentMethodDomainApiResponse) GetExtraProperties() map[string]interface{} { +func (a *AddPaymentMethodDomainAPIResponse) GetExtraProperties() map[string]interface{} { if a == nil { return nil } return a.extraProperties } -func (a *AddPaymentMethodDomainApiResponse) require(field *big.Int) { +func (a *AddPaymentMethodDomainAPIResponse) require(field *big.Int) { if a.explicitFields == nil { a.explicitFields = big.NewInt(0) } @@ -274,39 +274,39 @@ func (a *AddPaymentMethodDomainApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPaymentMethodDomainApiResponse) SetIsSuccess(isSuccess IsSuccess) { +func (a *AddPaymentMethodDomainAPIResponse) SetIsSuccess(isSuccess IsSuccess) { a.IsSuccess = isSuccess - a.require(addPaymentMethodDomainApiResponseFieldIsSuccess) + a.require(addPaymentMethodDomainAPIResponseFieldIsSuccess) } // SetPageidentifier sets the Pageidentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPaymentMethodDomainApiResponse) SetPageidentifier(pageidentifier PageIdentifier) { +func (a *AddPaymentMethodDomainAPIResponse) SetPageidentifier(pageidentifier PageIdentifier) { a.Pageidentifier = pageidentifier - a.require(addPaymentMethodDomainApiResponseFieldPageidentifier) + a.require(addPaymentMethodDomainAPIResponseFieldPageidentifier) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPaymentMethodDomainApiResponse) SetResponseData(responseData *PaymentMethodDomainApiResponse) { +func (a *AddPaymentMethodDomainAPIResponse) SetResponseData(responseData *PaymentMethodDomainAPIResponse) { a.ResponseData = responseData - a.require(addPaymentMethodDomainApiResponseFieldResponseData) + a.require(addPaymentMethodDomainAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPaymentMethodDomainApiResponse) SetResponseText(responseText string) { +func (a *AddPaymentMethodDomainAPIResponse) SetResponseText(responseText string) { a.ResponseText = responseText - a.require(addPaymentMethodDomainApiResponseFieldResponseText) + a.require(addPaymentMethodDomainAPIResponseFieldResponseText) } -func (a *AddPaymentMethodDomainApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler AddPaymentMethodDomainApiResponse +func (a *AddPaymentMethodDomainAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler AddPaymentMethodDomainAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *a = AddPaymentMethodDomainApiResponse(value) + *a = AddPaymentMethodDomainAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *a) if err != nil { return err @@ -316,8 +316,8 @@ func (a *AddPaymentMethodDomainApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (a *AddPaymentMethodDomainApiResponse) MarshalJSON() ([]byte, error) { - type embed AddPaymentMethodDomainApiResponse +func (a *AddPaymentMethodDomainAPIResponse) MarshalJSON() ([]byte, error) { + type embed AddPaymentMethodDomainAPIResponse var marshaler = struct { embed }{ @@ -327,7 +327,7 @@ func (a *AddPaymentMethodDomainApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (a *AddPaymentMethodDomainApiResponse) String() string { +func (a *AddPaymentMethodDomainAPIResponse) String() string { if a == nil { return "" } @@ -450,7 +450,7 @@ var ( applePayMetadataFieldIsFileAvailable = big.NewInt(1 << 0) applePayMetadataFieldIsFileContentValid = big.NewInt(1 << 1) applePayMetadataFieldRedirectDomainName = big.NewInt(1 << 2) - applePayMetadataFieldRedirectUrl = big.NewInt(1 << 3) + applePayMetadataFieldRedirectURL = big.NewInt(1 << 3) applePayMetadataFieldStatusCode = big.NewInt(1 << 4) ) @@ -463,7 +463,7 @@ type ApplePayMetadata struct { RedirectDomainName *string `json:"redirectDomainName,omitempty" url:"redirectDomainName,omitempty"` // If the domain verification URL is redirected, this is the URL it's redirected to. // For example, www.partner.com could redirect to www.partners-new-home-page.com. In this case, you should add www.partners-new-home-page.com as a domain instead of www.partner.com. - RedirectUrl *string `json:"redirectUrl,omitempty" url:"redirectUrl,omitempty"` + RedirectURL *string `json:"redirectUrl,omitempty" url:"redirectUrl,omitempty"` // The status code return by the domain verification URL. StatusCode *int `json:"statusCode,omitempty" url:"statusCode,omitempty"` @@ -495,11 +495,11 @@ func (a *ApplePayMetadata) GetRedirectDomainName() *string { return a.RedirectDomainName } -func (a *ApplePayMetadata) GetRedirectUrl() *string { +func (a *ApplePayMetadata) GetRedirectURL() *string { if a == nil { return nil } - return a.RedirectUrl + return a.RedirectURL } func (a *ApplePayMetadata) GetStatusCode() *int { @@ -544,11 +544,11 @@ func (a *ApplePayMetadata) SetRedirectDomainName(redirectDomainName *string) { a.require(applePayMetadataFieldRedirectDomainName) } -// SetRedirectUrl sets the RedirectUrl field and marks it as non-optional; +// SetRedirectURL sets the RedirectURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplePayMetadata) SetRedirectUrl(redirectUrl *string) { - a.RedirectUrl = redirectUrl - a.require(applePayMetadataFieldRedirectUrl) +func (a *ApplePayMetadata) SetRedirectURL(redirectURL *string) { + a.RedirectURL = redirectURL + a.require(applePayMetadataFieldRedirectURL) } // SetStatusCode sets the StatusCode field and marks it as non-optional; @@ -706,7 +706,7 @@ func (a *ApplePayStatusData) String() string { var ( cascadeJobDetailsFieldCreatedAt = big.NewInt(1 << 0) cascadeJobDetailsFieldJobErrorMessage = big.NewInt(1 << 1) - cascadeJobDetailsFieldJobId = big.NewInt(1 << 2) + cascadeJobDetailsFieldJobID = big.NewInt(1 << 2) cascadeJobDetailsFieldJobStatus = big.NewInt(1 << 3) cascadeJobDetailsFieldUpdatedAt = big.NewInt(1 << 4) ) @@ -715,7 +715,7 @@ type CascadeJobDetails struct { CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` // Error message for a failed cascade process. JobErrorMessage *string `json:"jobErrorMessage,omitempty" url:"jobErrorMessage,omitempty"` - JobId *JobId `json:"jobId,omitempty" url:"jobId,omitempty"` + JobID *JobID `json:"jobId,omitempty" url:"jobId,omitempty"` JobStatus *JobStatus `json:"jobStatus,omitempty" url:"jobStatus,omitempty"` UpdatedAt *LastModified `json:"updatedAt,omitempty" url:"updatedAt,omitempty"` @@ -740,11 +740,11 @@ func (c *CascadeJobDetails) GetJobErrorMessage() *string { return c.JobErrorMessage } -func (c *CascadeJobDetails) GetJobId() *JobId { +func (c *CascadeJobDetails) GetJobID() *JobID { if c == nil { return nil } - return c.JobId + return c.JobID } func (c *CascadeJobDetails) GetJobStatus() *JobStatus { @@ -789,11 +789,11 @@ func (c *CascadeJobDetails) SetJobErrorMessage(jobErrorMessage *string) { c.require(cascadeJobDetailsFieldJobErrorMessage) } -// SetJobId sets the JobId field and marks it as non-optional; +// SetJobID sets the JobID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CascadeJobDetails) SetJobId(jobId *JobId) { - c.JobId = jobId - c.require(cascadeJobDetailsFieldJobId) +func (c *CascadeJobDetails) SetJobID(jobID *JobID) { + c.JobID = jobID + c.require(cascadeJobDetailsFieldJobID) } // SetJobStatus sets the JobStatus field and marks it as non-optional; @@ -976,7 +976,7 @@ func (g *GooglePayData) String() string { // This metadata appears only when the domain verification check fails. It gives more information about why the check failed. var ( googlePayMetadataFieldStatusCode = big.NewInt(1 << 0) - googlePayMetadataFieldRedirectUrl = big.NewInt(1 << 1) + googlePayMetadataFieldRedirectURL = big.NewInt(1 << 1) googlePayMetadataFieldRedirectDomainName = big.NewInt(1 << 2) ) @@ -984,7 +984,7 @@ type GooglePayMetadata struct { // The status code return by the domain verification URL. StatusCode *int `json:"statusCode,omitempty" url:"statusCode,omitempty"` // If the domain verification URL is redirected, this is the URL it's redirected to. For example, www.partner.com could redirect to www.partners-new-home-page.com. In this case, you should add www.partners-new-home-page.com as a domain instead of www.partner.com. - RedirectUrl *string `json:"redirectUrl,omitempty" url:"redirectUrl,omitempty"` + RedirectURL *string `json:"redirectUrl,omitempty" url:"redirectUrl,omitempty"` // The domain name if the domain verification URL returns a redirect. RedirectDomainName *string `json:"redirectDomainName,omitempty" url:"redirectDomainName,omitempty"` @@ -1002,11 +1002,11 @@ func (g *GooglePayMetadata) GetStatusCode() *int { return g.StatusCode } -func (g *GooglePayMetadata) GetRedirectUrl() *string { +func (g *GooglePayMetadata) GetRedirectURL() *string { if g == nil { return nil } - return g.RedirectUrl + return g.RedirectURL } func (g *GooglePayMetadata) GetRedirectDomainName() *string { @@ -1037,11 +1037,11 @@ func (g *GooglePayMetadata) SetStatusCode(statusCode *int) { g.require(googlePayMetadataFieldStatusCode) } -// SetRedirectUrl sets the RedirectUrl field and marks it as non-optional; +// SetRedirectURL sets the RedirectURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GooglePayMetadata) SetRedirectUrl(redirectUrl *string) { - g.RedirectUrl = redirectUrl - g.require(googlePayMetadataFieldRedirectUrl) +func (g *GooglePayMetadata) SetRedirectURL(redirectURL *string) { + g.RedirectURL = redirectURL + g.require(googlePayMetadataFieldRedirectURL) } // SetRedirectDomainName sets the RedirectDomainName field and marks it as non-optional; @@ -1196,7 +1196,7 @@ func (g *GooglePayStatusData) String() string { } // The domain's owning entity's ID in Payabli. This value might be different than the `entityId`, depending on whether the domain is cascaded and whether it's inherited.` -type OwnerEntityId = int64 +type OwnerEntityID = int64 // The domain's owner's entity type. Available values: // - paypoint @@ -1206,21 +1206,21 @@ type OwnerEntityType = string // Data related to the payment method domain. var ( - paymentMethodDomainApiResponseFieldType = big.NewInt(1 << 0) - paymentMethodDomainApiResponseFieldApplePay = big.NewInt(1 << 1) - paymentMethodDomainApiResponseFieldGooglePay = big.NewInt(1 << 2) - paymentMethodDomainApiResponseFieldCascades = big.NewInt(1 << 3) - paymentMethodDomainApiResponseFieldCreatedAt = big.NewInt(1 << 4) - paymentMethodDomainApiResponseFieldDomainName = big.NewInt(1 << 5) - paymentMethodDomainApiResponseFieldEntityId = big.NewInt(1 << 6) - paymentMethodDomainApiResponseFieldEntityType = big.NewInt(1 << 7) - paymentMethodDomainApiResponseFieldId = big.NewInt(1 << 8) - paymentMethodDomainApiResponseFieldOwnerEntityId = big.NewInt(1 << 9) - paymentMethodDomainApiResponseFieldOwnerEntityType = big.NewInt(1 << 10) - paymentMethodDomainApiResponseFieldUpdatedAt = big.NewInt(1 << 11) + paymentMethodDomainAPIResponseFieldType = big.NewInt(1 << 0) + paymentMethodDomainAPIResponseFieldApplePay = big.NewInt(1 << 1) + paymentMethodDomainAPIResponseFieldGooglePay = big.NewInt(1 << 2) + paymentMethodDomainAPIResponseFieldCascades = big.NewInt(1 << 3) + paymentMethodDomainAPIResponseFieldCreatedAt = big.NewInt(1 << 4) + paymentMethodDomainAPIResponseFieldDomainName = big.NewInt(1 << 5) + paymentMethodDomainAPIResponseFieldEntityID = big.NewInt(1 << 6) + paymentMethodDomainAPIResponseFieldEntityType = big.NewInt(1 << 7) + paymentMethodDomainAPIResponseFieldID = big.NewInt(1 << 8) + paymentMethodDomainAPIResponseFieldOwnerEntityID = big.NewInt(1 << 9) + paymentMethodDomainAPIResponseFieldOwnerEntityType = big.NewInt(1 << 10) + paymentMethodDomainAPIResponseFieldUpdatedAt = big.NewInt(1 << 11) ) -type PaymentMethodDomainApiResponse struct { +type PaymentMethodDomainAPIResponse struct { // The record type. For payment method domains, this is always `PaymentMethodDomain`. Type *string `json:"type,omitempty" url:"type,omitempty"` ApplePay *ApplePayData `json:"applePay" url:"applePay"` @@ -1229,10 +1229,10 @@ type PaymentMethodDomainApiResponse struct { Cascades []*CascadeJobDetails `json:"cascades,omitempty" url:"cascades,omitempty"` CreatedAt CreatedAt `json:"createdAt" url:"createdAt"` DomainName DomainName `json:"domainName" url:"domainName"` - EntityId EntityId `json:"entityId" url:"entityId"` + EntityID EntityID `json:"entityId" url:"entityId"` EntityType EntityType `json:"entityType" url:"entityType"` - Id PaymentMethodDomainId `json:"id" url:"id"` - OwnerEntityId OwnerEntityId `json:"ownerEntityId" url:"ownerEntityId"` + ID PaymentMethodDomainID `json:"id" url:"id"` + OwnerEntityID OwnerEntityID `json:"ownerEntityId" url:"ownerEntityId"` OwnerEntityType OwnerEntityType `json:"ownerEntityType" url:"ownerEntityType"` UpdatedAt *LastModified `json:"updatedAt,omitempty" url:"updatedAt,omitempty"` @@ -1243,98 +1243,98 @@ type PaymentMethodDomainApiResponse struct { rawJSON json.RawMessage } -func (p *PaymentMethodDomainApiResponse) GetType() *string { +func (p *PaymentMethodDomainAPIResponse) GetType() *string { if p == nil { return nil } return p.Type } -func (p *PaymentMethodDomainApiResponse) GetApplePay() *ApplePayData { +func (p *PaymentMethodDomainAPIResponse) GetApplePay() *ApplePayData { if p == nil { return nil } return p.ApplePay } -func (p *PaymentMethodDomainApiResponse) GetGooglePay() *GooglePayData { +func (p *PaymentMethodDomainAPIResponse) GetGooglePay() *GooglePayData { if p == nil { return nil } return p.GooglePay } -func (p *PaymentMethodDomainApiResponse) GetCascades() []*CascadeJobDetails { +func (p *PaymentMethodDomainAPIResponse) GetCascades() []*CascadeJobDetails { if p == nil { return nil } return p.Cascades } -func (p *PaymentMethodDomainApiResponse) GetCreatedAt() CreatedAt { +func (p *PaymentMethodDomainAPIResponse) GetCreatedAt() CreatedAt { if p == nil { return time.Time{} } return p.CreatedAt } -func (p *PaymentMethodDomainApiResponse) GetDomainName() DomainName { +func (p *PaymentMethodDomainAPIResponse) GetDomainName() DomainName { if p == nil { return "" } return p.DomainName } -func (p *PaymentMethodDomainApiResponse) GetEntityId() EntityId { +func (p *PaymentMethodDomainAPIResponse) GetEntityID() EntityID { if p == nil { return 0 } - return p.EntityId + return p.EntityID } -func (p *PaymentMethodDomainApiResponse) GetEntityType() EntityType { +func (p *PaymentMethodDomainAPIResponse) GetEntityType() EntityType { if p == nil { return "" } return p.EntityType } -func (p *PaymentMethodDomainApiResponse) GetId() PaymentMethodDomainId { +func (p *PaymentMethodDomainAPIResponse) GetID() PaymentMethodDomainID { if p == nil { return "" } - return p.Id + return p.ID } -func (p *PaymentMethodDomainApiResponse) GetOwnerEntityId() OwnerEntityId { +func (p *PaymentMethodDomainAPIResponse) GetOwnerEntityID() OwnerEntityID { if p == nil { return 0 } - return p.OwnerEntityId + return p.OwnerEntityID } -func (p *PaymentMethodDomainApiResponse) GetOwnerEntityType() OwnerEntityType { +func (p *PaymentMethodDomainAPIResponse) GetOwnerEntityType() OwnerEntityType { if p == nil { return "" } return p.OwnerEntityType } -func (p *PaymentMethodDomainApiResponse) GetUpdatedAt() *LastModified { +func (p *PaymentMethodDomainAPIResponse) GetUpdatedAt() *LastModified { if p == nil { return nil } return p.UpdatedAt } -func (p *PaymentMethodDomainApiResponse) GetExtraProperties() map[string]interface{} { +func (p *PaymentMethodDomainAPIResponse) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PaymentMethodDomainApiResponse) require(field *big.Int) { +func (p *PaymentMethodDomainAPIResponse) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -1343,90 +1343,90 @@ func (p *PaymentMethodDomainApiResponse) require(field *big.Int) { // SetType sets the Type field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetType(type_ *string) { +func (p *PaymentMethodDomainAPIResponse) SetType(type_ *string) { p.Type = type_ - p.require(paymentMethodDomainApiResponseFieldType) + p.require(paymentMethodDomainAPIResponseFieldType) } // SetApplePay sets the ApplePay field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetApplePay(applePay *ApplePayData) { +func (p *PaymentMethodDomainAPIResponse) SetApplePay(applePay *ApplePayData) { p.ApplePay = applePay - p.require(paymentMethodDomainApiResponseFieldApplePay) + p.require(paymentMethodDomainAPIResponseFieldApplePay) } // SetGooglePay sets the GooglePay field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetGooglePay(googlePay *GooglePayData) { +func (p *PaymentMethodDomainAPIResponse) SetGooglePay(googlePay *GooglePayData) { p.GooglePay = googlePay - p.require(paymentMethodDomainApiResponseFieldGooglePay) + p.require(paymentMethodDomainAPIResponseFieldGooglePay) } // SetCascades sets the Cascades field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetCascades(cascades []*CascadeJobDetails) { +func (p *PaymentMethodDomainAPIResponse) SetCascades(cascades []*CascadeJobDetails) { p.Cascades = cascades - p.require(paymentMethodDomainApiResponseFieldCascades) + p.require(paymentMethodDomainAPIResponseFieldCascades) } // SetCreatedAt sets the CreatedAt field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetCreatedAt(createdAt CreatedAt) { +func (p *PaymentMethodDomainAPIResponse) SetCreatedAt(createdAt CreatedAt) { p.CreatedAt = createdAt - p.require(paymentMethodDomainApiResponseFieldCreatedAt) + p.require(paymentMethodDomainAPIResponseFieldCreatedAt) } // SetDomainName sets the DomainName field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetDomainName(domainName DomainName) { +func (p *PaymentMethodDomainAPIResponse) SetDomainName(domainName DomainName) { p.DomainName = domainName - p.require(paymentMethodDomainApiResponseFieldDomainName) + p.require(paymentMethodDomainAPIResponseFieldDomainName) } -// SetEntityId sets the EntityId field and marks it as non-optional; +// SetEntityID sets the EntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetEntityId(entityId EntityId) { - p.EntityId = entityId - p.require(paymentMethodDomainApiResponseFieldEntityId) +func (p *PaymentMethodDomainAPIResponse) SetEntityID(entityID EntityID) { + p.EntityID = entityID + p.require(paymentMethodDomainAPIResponseFieldEntityID) } // SetEntityType sets the EntityType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetEntityType(entityType EntityType) { +func (p *PaymentMethodDomainAPIResponse) SetEntityType(entityType EntityType) { p.EntityType = entityType - p.require(paymentMethodDomainApiResponseFieldEntityType) + p.require(paymentMethodDomainAPIResponseFieldEntityType) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetId(id PaymentMethodDomainId) { - p.Id = id - p.require(paymentMethodDomainApiResponseFieldId) +func (p *PaymentMethodDomainAPIResponse) SetID(id PaymentMethodDomainID) { + p.ID = id + p.require(paymentMethodDomainAPIResponseFieldID) } -// SetOwnerEntityId sets the OwnerEntityId field and marks it as non-optional; +// SetOwnerEntityID sets the OwnerEntityID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetOwnerEntityId(ownerEntityId OwnerEntityId) { - p.OwnerEntityId = ownerEntityId - p.require(paymentMethodDomainApiResponseFieldOwnerEntityId) +func (p *PaymentMethodDomainAPIResponse) SetOwnerEntityID(ownerEntityID OwnerEntityID) { + p.OwnerEntityID = ownerEntityID + p.require(paymentMethodDomainAPIResponseFieldOwnerEntityID) } // SetOwnerEntityType sets the OwnerEntityType field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetOwnerEntityType(ownerEntityType OwnerEntityType) { +func (p *PaymentMethodDomainAPIResponse) SetOwnerEntityType(ownerEntityType OwnerEntityType) { p.OwnerEntityType = ownerEntityType - p.require(paymentMethodDomainApiResponseFieldOwnerEntityType) + p.require(paymentMethodDomainAPIResponseFieldOwnerEntityType) } // SetUpdatedAt sets the UpdatedAt field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainApiResponse) SetUpdatedAt(updatedAt *LastModified) { +func (p *PaymentMethodDomainAPIResponse) SetUpdatedAt(updatedAt *LastModified) { p.UpdatedAt = updatedAt - p.require(paymentMethodDomainApiResponseFieldUpdatedAt) + p.require(paymentMethodDomainAPIResponseFieldUpdatedAt) } -func (p *PaymentMethodDomainApiResponse) UnmarshalJSON(data []byte) error { - type embed PaymentMethodDomainApiResponse +func (p *PaymentMethodDomainAPIResponse) UnmarshalJSON(data []byte) error { + type embed PaymentMethodDomainAPIResponse var unmarshaler = struct { embed CreatedAt *internal.DateTime `json:"createdAt"` @@ -1437,7 +1437,7 @@ func (p *PaymentMethodDomainApiResponse) UnmarshalJSON(data []byte) error { if err := json.Unmarshal(data, &unmarshaler); err != nil { return err } - *p = PaymentMethodDomainApiResponse(unmarshaler.embed) + *p = PaymentMethodDomainAPIResponse(unmarshaler.embed) p.CreatedAt = unmarshaler.CreatedAt.Time() p.UpdatedAt = unmarshaler.UpdatedAt.TimePtr() extraProperties, err := internal.ExtractExtraProperties(data, *p) @@ -1449,8 +1449,8 @@ func (p *PaymentMethodDomainApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (p *PaymentMethodDomainApiResponse) MarshalJSON() ([]byte, error) { - type embed PaymentMethodDomainApiResponse +func (p *PaymentMethodDomainAPIResponse) MarshalJSON() ([]byte, error) { + type embed PaymentMethodDomainAPIResponse var marshaler = struct { embed CreatedAt *internal.DateTime `json:"createdAt"` @@ -1464,7 +1464,7 @@ func (p *PaymentMethodDomainApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PaymentMethodDomainApiResponse) String() string { +func (p *PaymentMethodDomainAPIResponse) String() string { if p == nil { return "" } @@ -1489,7 +1489,7 @@ var ( type PaymentMethodDomainGeneralResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` - ResponseData *PaymentMethodDomainApiResponse `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PaymentMethodDomainAPIResponse `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText string `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1513,7 +1513,7 @@ func (p *PaymentMethodDomainGeneralResponse) GetPageidentifier() *PageIdentifier return p.Pageidentifier } -func (p *PaymentMethodDomainGeneralResponse) GetResponseData() *PaymentMethodDomainApiResponse { +func (p *PaymentMethodDomainGeneralResponse) GetResponseData() *PaymentMethodDomainAPIResponse { if p == nil { return nil } @@ -1557,7 +1557,7 @@ func (p *PaymentMethodDomainGeneralResponse) SetPageidentifier(pageidentifier *P // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentMethodDomainGeneralResponse) SetResponseData(responseData *PaymentMethodDomainApiResponse) { +func (p *PaymentMethodDomainGeneralResponse) SetResponseData(responseData *PaymentMethodDomainAPIResponse) { p.ResponseData = responseData p.require(paymentMethodDomainGeneralResponseFieldResponseData) } @@ -1612,7 +1612,7 @@ func (p *PaymentMethodDomainGeneralResponse) String() string { } // The payment method domain's ID in Payabli. -type PaymentMethodDomainId = string +type PaymentMethodDomainID = string var ( querySummaryNoAmtFieldPageIdentifier = big.NewInt(1 << 0) @@ -2055,7 +2055,7 @@ var ( ) type ListPaymentMethodDomainsResponse struct { - Records []*PaymentMethodDomainApiResponse `json:"records" url:"records"` + Records []*PaymentMethodDomainAPIResponse `json:"records" url:"records"` Summary *QuerySummaryNoAmt `json:"summary" url:"summary"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -2065,7 +2065,7 @@ type ListPaymentMethodDomainsResponse struct { rawJSON json.RawMessage } -func (l *ListPaymentMethodDomainsResponse) GetRecords() []*PaymentMethodDomainApiResponse { +func (l *ListPaymentMethodDomainsResponse) GetRecords() []*PaymentMethodDomainAPIResponse { if l == nil { return nil } @@ -2095,7 +2095,7 @@ func (l *ListPaymentMethodDomainsResponse) require(field *big.Int) { // SetRecords sets the Records field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (l *ListPaymentMethodDomainsResponse) SetRecords(records []*PaymentMethodDomainApiResponse) { +func (l *ListPaymentMethodDomainsResponse) SetRecords(records []*PaymentMethodDomainAPIResponse) { l.Records = records l.require(listPaymentMethodDomainsResponseFieldRecords) } diff --git a/payment_method_domain_test.go b/payment_method_domain_test.go index dd0c2e6..2b42eb5 100644 --- a/payment_method_domain_test.go +++ b/payment_method_domain_test.go @@ -34,11 +34,11 @@ func TestSettersAddPaymentMethodDomainRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntityId", func(t *testing.T) { + t.Run("SetEntityID", func(t *testing.T) { obj := &AddPaymentMethodDomainRequest{} - var fernTestValueEntityId *EntityId - obj.SetEntityId(fernTestValueEntityId) - assert.Equal(t, fernTestValueEntityId, obj.EntityId) + var fernTestValueEntityID *EntityID + obj.SetEntityID(fernTestValueEntityID) + assert.Equal(t, fernTestValueEntityID, obj.EntityID) assert.NotNil(t, obj.explicitFields) }) @@ -146,14 +146,14 @@ func TestSettersMarkExplicitAddPaymentMethodDomainRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddPaymentMethodDomainRequest{} - var fernTestValueEntityId *EntityId + var fernTestValueEntityID *EntityID // Act - obj.SetEntityId(fernTestValueEntityId) + obj.SetEntityID(fernTestValueEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -211,11 +211,11 @@ func TestSettersMarkExplicitAddPaymentMethodDomainRequest(t *testing.T) { } func TestSettersListPaymentMethodDomainsRequest(t *testing.T) { - t.Run("SetEntityId", func(t *testing.T) { + t.Run("SetEntityID", func(t *testing.T) { obj := &ListPaymentMethodDomainsRequest{} - var fernTestValueEntityId *int64 - obj.SetEntityId(fernTestValueEntityId) - assert.Equal(t, fernTestValueEntityId, obj.EntityId) + var fernTestValueEntityID *int64 + obj.SetEntityID(fernTestValueEntityID) + assert.Equal(t, fernTestValueEntityID, obj.EntityID) assert.NotNil(t, obj.explicitFields) }) @@ -246,14 +246,14 @@ func TestSettersListPaymentMethodDomainsRequest(t *testing.T) { } func TestSettersMarkExplicitListPaymentMethodDomainsRequest(t *testing.T) { - t.Run("SetEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ListPaymentMethodDomainsRequest{} - var fernTestValueEntityId *int64 + var fernTestValueEntityID *int64 // Act - obj.SetEntityId(fernTestValueEntityId) + obj.SetEntityID(fernTestValueEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -456,9 +456,9 @@ func TestSettersMarkExplicitUpdatePaymentMethodDomainRequest(t *testing.T) { } -func TestSettersAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestSettersAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -466,7 +466,7 @@ func TestSettersAddPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetPageidentifier", func(t *testing.T) { - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValuePageidentifier PageIdentifier obj.SetPageidentifier(fernTestValuePageidentifier) assert.Equal(t, fernTestValuePageidentifier, obj.Pageidentifier) @@ -474,15 +474,15 @@ func TestSettersAddPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &AddPaymentMethodDomainApiResponse{} - var fernTestValueResponseData *PaymentMethodDomainApiResponse + obj := &AddPaymentMethodDomainAPIResponse{} + var fernTestValueResponseData *PaymentMethodDomainAPIResponse obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValueResponseText string obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -491,11 +491,11 @@ func TestSettersAddPaymentMethodDomainApiResponse(t *testing.T) { } -func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestGettersAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var expected IsSuccess obj.IsSuccess = expected @@ -505,7 +505,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -518,7 +518,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetPageidentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var expected PageIdentifier obj.Pageidentifier = expected @@ -528,7 +528,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetPageidentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -541,8 +541,8 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} - var expected *PaymentMethodDomainApiResponse + obj := &AddPaymentMethodDomainAPIResponse{} + var expected *PaymentMethodDomainAPIResponse obj.ResponseData = expected // Act & Assert @@ -552,7 +552,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -561,7 +561,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -574,7 +574,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var expected string obj.ResponseText = expected @@ -584,7 +584,7 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -596,11 +596,11 @@ func TestGettersAddPaymentMethodDomainApiResponse(t *testing.T) { } -func TestSettersMarkExplicitAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestSettersMarkExplicitAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValueIsSuccess IsSuccess // Act @@ -631,7 +631,7 @@ func TestSettersMarkExplicitAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetPageidentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValuePageidentifier PageIdentifier // Act @@ -662,8 +662,8 @@ func TestSettersMarkExplicitAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} - var fernTestValueResponseData *PaymentMethodDomainApiResponse + obj := &AddPaymentMethodDomainAPIResponse{} + var fernTestValueResponseData *PaymentMethodDomainAPIResponse // Act obj.SetResponseData(fernTestValueResponseData) @@ -693,7 +693,7 @@ func TestSettersMarkExplicitAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} var fernTestValueResponseText string // Act @@ -901,11 +901,11 @@ func TestSettersApplePayMetadata(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRedirectUrl", func(t *testing.T) { + t.Run("SetRedirectURL", func(t *testing.T) { obj := &ApplePayMetadata{} - var fernTestValueRedirectUrl *string - obj.SetRedirectUrl(fernTestValueRedirectUrl) - assert.Equal(t, fernTestValueRedirectUrl, obj.RedirectUrl) + var fernTestValueRedirectURL *string + obj.SetRedirectURL(fernTestValueRedirectURL) + assert.Equal(t, fernTestValueRedirectURL, obj.RedirectURL) assert.NotNil(t, obj.explicitFields) }) @@ -1019,28 +1019,28 @@ func TestGettersApplePayMetadata(t *testing.T) { _ = obj.GetRedirectDomainName() // Should return zero value }) - t.Run("GetRedirectUrl", func(t *testing.T) { + t.Run("GetRedirectURL", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayMetadata{} var expected *string - obj.RedirectUrl = expected + obj.RedirectURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetRedirectUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedirectURL(), "getter should return the property value") }) - t.Run("GetRedirectUrl_NilValue", func(t *testing.T) { + t.Run("GetRedirectURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayMetadata{} - obj.RedirectUrl = nil + obj.RedirectURL = nil // Act & Assert - assert.Nil(t, obj.GetRedirectUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRedirectURL(), "getter should return nil when property is nil") }) - t.Run("GetRedirectUrl_NilReceiver", func(t *testing.T) { + t.Run("GetRedirectURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplePayMetadata // Should not panic - getters should handle nil receiver gracefully @@ -1049,7 +1049,7 @@ func TestGettersApplePayMetadata(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRedirectUrl() // Should return zero value + _ = obj.GetRedirectURL() // Should return zero value }) t.Run("GetStatusCode", func(t *testing.T) { @@ -1181,14 +1181,14 @@ func TestSettersMarkExplicitApplePayMetadata(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRedirectUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetRedirectURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayMetadata{} - var fernTestValueRedirectUrl *string + var fernTestValueRedirectURL *string // Act - obj.SetRedirectUrl(fernTestValueRedirectUrl) + obj.SetRedirectURL(fernTestValueRedirectURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1415,11 +1415,11 @@ func TestSettersCascadeJobDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetJobId", func(t *testing.T) { + t.Run("SetJobID", func(t *testing.T) { obj := &CascadeJobDetails{} - var fernTestValueJobId *JobId - obj.SetJobId(fernTestValueJobId) - assert.Equal(t, fernTestValueJobId, obj.JobId) + var fernTestValueJobID *JobID + obj.SetJobID(fernTestValueJobID) + assert.Equal(t, fernTestValueJobID, obj.JobID) assert.NotNil(t, obj.explicitFields) }) @@ -1508,28 +1508,28 @@ func TestGettersCascadeJobDetails(t *testing.T) { _ = obj.GetJobErrorMessage() // Should return zero value }) - t.Run("GetJobId", func(t *testing.T) { + t.Run("GetJobID", func(t *testing.T) { t.Parallel() // Arrange obj := &CascadeJobDetails{} - var expected *JobId - obj.JobId = expected + var expected *JobID + obj.JobID = expected // Act & Assert - assert.Equal(t, expected, obj.GetJobId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetJobID(), "getter should return the property value") }) - t.Run("GetJobId_NilValue", func(t *testing.T) { + t.Run("GetJobID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CascadeJobDetails{} - obj.JobId = nil + obj.JobID = nil // Act & Assert - assert.Nil(t, obj.GetJobId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetJobID(), "getter should return nil when property is nil") }) - t.Run("GetJobId_NilReceiver", func(t *testing.T) { + t.Run("GetJobID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CascadeJobDetails // Should not panic - getters should handle nil receiver gracefully @@ -1538,7 +1538,7 @@ func TestGettersCascadeJobDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetJobId() // Should return zero value + _ = obj.GetJobID() // Should return zero value }) t.Run("GetJobStatus", func(t *testing.T) { @@ -1672,14 +1672,14 @@ func TestSettersMarkExplicitCascadeJobDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetJobId_MarksExplicit", func(t *testing.T) { + t.Run("SetJobID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CascadeJobDetails{} - var fernTestValueJobId *JobId + var fernTestValueJobID *JobID // Act - obj.SetJobId(fernTestValueJobId) + obj.SetJobID(fernTestValueJobID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1929,11 +1929,11 @@ func TestSettersGooglePayMetadata(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRedirectUrl", func(t *testing.T) { + t.Run("SetRedirectURL", func(t *testing.T) { obj := &GooglePayMetadata{} - var fernTestValueRedirectUrl *string - obj.SetRedirectUrl(fernTestValueRedirectUrl) - assert.Equal(t, fernTestValueRedirectUrl, obj.RedirectUrl) + var fernTestValueRedirectURL *string + obj.SetRedirectURL(fernTestValueRedirectURL) + assert.Equal(t, fernTestValueRedirectURL, obj.RedirectURL) assert.NotNil(t, obj.explicitFields) }) @@ -1981,28 +1981,28 @@ func TestGettersGooglePayMetadata(t *testing.T) { _ = obj.GetStatusCode() // Should return zero value }) - t.Run("GetRedirectUrl", func(t *testing.T) { + t.Run("GetRedirectURL", func(t *testing.T) { t.Parallel() // Arrange obj := &GooglePayMetadata{} var expected *string - obj.RedirectUrl = expected + obj.RedirectURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetRedirectUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedirectURL(), "getter should return the property value") }) - t.Run("GetRedirectUrl_NilValue", func(t *testing.T) { + t.Run("GetRedirectURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GooglePayMetadata{} - obj.RedirectUrl = nil + obj.RedirectURL = nil // Act & Assert - assert.Nil(t, obj.GetRedirectUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRedirectURL(), "getter should return nil when property is nil") }) - t.Run("GetRedirectUrl_NilReceiver", func(t *testing.T) { + t.Run("GetRedirectURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GooglePayMetadata // Should not panic - getters should handle nil receiver gracefully @@ -2011,7 +2011,7 @@ func TestGettersGooglePayMetadata(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRedirectUrl() // Should return zero value + _ = obj.GetRedirectURL() // Should return zero value }) t.Run("GetRedirectDomainName", func(t *testing.T) { @@ -2081,14 +2081,14 @@ func TestSettersMarkExplicitGooglePayMetadata(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRedirectUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetRedirectURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GooglePayMetadata{} - var fernTestValueRedirectUrl *string + var fernTestValueRedirectURL *string // Act - obj.SetRedirectUrl(fernTestValueRedirectUrl) + obj.SetRedirectURL(fernTestValueRedirectURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2298,9 +2298,9 @@ func TestSettersMarkExplicitGooglePayStatusData(t *testing.T) { } -func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { +func TestSettersPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("SetType", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueType *string obj.SetType(fernTestValueType) assert.Equal(t, fernTestValueType, obj.Type) @@ -2308,7 +2308,7 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetApplePay", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueApplePay *ApplePayData obj.SetApplePay(fernTestValueApplePay) assert.Equal(t, fernTestValueApplePay, obj.ApplePay) @@ -2316,7 +2316,7 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetGooglePay", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueGooglePay *GooglePayData obj.SetGooglePay(fernTestValueGooglePay) assert.Equal(t, fernTestValueGooglePay, obj.GooglePay) @@ -2324,7 +2324,7 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetCascades", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueCascades []*CascadeJobDetails obj.SetCascades(fernTestValueCascades) assert.Equal(t, fernTestValueCascades, obj.Cascades) @@ -2332,7 +2332,7 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetCreatedAt", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueCreatedAt CreatedAt obj.SetCreatedAt(fernTestValueCreatedAt) assert.Equal(t, fernTestValueCreatedAt, obj.CreatedAt) @@ -2340,47 +2340,47 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetDomainName", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueDomainName DomainName obj.SetDomainName(fernTestValueDomainName) assert.Equal(t, fernTestValueDomainName, obj.DomainName) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntityId", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueEntityId EntityId - obj.SetEntityId(fernTestValueEntityId) - assert.Equal(t, fernTestValueEntityId, obj.EntityId) + t.Run("SetEntityID", func(t *testing.T) { + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueEntityID EntityID + obj.SetEntityID(fernTestValueEntityID) + assert.Equal(t, fernTestValueEntityID, obj.EntityID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetEntityType", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueEntityType EntityType obj.SetEntityType(fernTestValueEntityType) assert.Equal(t, fernTestValueEntityType, obj.EntityType) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueId PaymentMethodDomainId - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + t.Run("SetID", func(t *testing.T) { + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueID PaymentMethodDomainID + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOwnerEntityId", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueOwnerEntityId OwnerEntityId - obj.SetOwnerEntityId(fernTestValueOwnerEntityId) - assert.Equal(t, fernTestValueOwnerEntityId, obj.OwnerEntityId) + t.Run("SetOwnerEntityID", func(t *testing.T) { + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueOwnerEntityID OwnerEntityID + obj.SetOwnerEntityID(fernTestValueOwnerEntityID) + assert.Equal(t, fernTestValueOwnerEntityID, obj.OwnerEntityID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetOwnerEntityType", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueOwnerEntityType OwnerEntityType obj.SetOwnerEntityType(fernTestValueOwnerEntityType) assert.Equal(t, fernTestValueOwnerEntityType, obj.OwnerEntityType) @@ -2388,7 +2388,7 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { }) t.Run("SetUpdatedAt", func(t *testing.T) { - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueUpdatedAt *LastModified obj.SetUpdatedAt(fernTestValueUpdatedAt) assert.Equal(t, fernTestValueUpdatedAt, obj.UpdatedAt) @@ -2397,11 +2397,11 @@ func TestSettersPaymentMethodDomainApiResponse(t *testing.T) { } -func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { +func TestGettersPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("GetType", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected *string obj.Type = expected @@ -2412,7 +2412,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetType_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} obj.Type = nil // Act & Assert @@ -2421,7 +2421,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2434,7 +2434,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetApplePay", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected *ApplePayData obj.ApplePay = expected @@ -2445,7 +2445,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetApplePay_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} obj.ApplePay = nil // Act & Assert @@ -2454,7 +2454,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetApplePay_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2467,7 +2467,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetGooglePay", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected *GooglePayData obj.GooglePay = expected @@ -2478,7 +2478,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetGooglePay_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} obj.GooglePay = nil // Act & Assert @@ -2487,7 +2487,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetGooglePay_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2500,7 +2500,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetCascades", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected []*CascadeJobDetails obj.Cascades = expected @@ -2511,7 +2511,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetCascades_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} obj.Cascades = nil // Act & Assert @@ -2520,7 +2520,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetCascades_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2533,7 +2533,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetCreatedAt", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected CreatedAt obj.CreatedAt = expected @@ -2543,7 +2543,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetCreatedAt_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2556,7 +2556,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetDomainName", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected DomainName obj.DomainName = expected @@ -2566,7 +2566,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetDomainName_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2576,33 +2576,33 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { _ = obj.GetDomainName() // Should return zero value }) - t.Run("GetEntityId", func(t *testing.T) { + t.Run("GetEntityID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var expected EntityId - obj.EntityId = expected + obj := &PaymentMethodDomainAPIResponse{} + var expected EntityID + obj.EntityID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntityId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntityID(), "getter should return the property value") }) - t.Run("GetEntityId_NilReceiver", func(t *testing.T) { + t.Run("GetEntityID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntityId() // Should return zero value + _ = obj.GetEntityID() // Should return zero value }) t.Run("GetEntityType", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected EntityType obj.EntityType = expected @@ -2612,7 +2612,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetEntityType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2622,56 +2622,56 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { _ = obj.GetEntityType() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var expected PaymentMethodDomainId - obj.Id = expected + obj := &PaymentMethodDomainAPIResponse{} + var expected PaymentMethodDomainID + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetOwnerEntityId", func(t *testing.T) { + t.Run("GetOwnerEntityID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var expected OwnerEntityId - obj.OwnerEntityId = expected + obj := &PaymentMethodDomainAPIResponse{} + var expected OwnerEntityID + obj.OwnerEntityID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOwnerEntityId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwnerEntityID(), "getter should return the property value") }) - t.Run("GetOwnerEntityId_NilReceiver", func(t *testing.T) { + t.Run("GetOwnerEntityID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOwnerEntityId() // Should return zero value + _ = obj.GetOwnerEntityID() // Should return zero value }) t.Run("GetOwnerEntityType", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected OwnerEntityType obj.OwnerEntityType = expected @@ -2681,7 +2681,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetOwnerEntityType_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2694,7 +2694,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetUpdatedAt", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var expected *LastModified obj.UpdatedAt = expected @@ -2705,7 +2705,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetUpdatedAt_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} obj.UpdatedAt = nil // Act & Assert @@ -2714,7 +2714,7 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetUpdatedAt_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2726,11 +2726,11 @@ func TestGettersPaymentMethodDomainApiResponse(t *testing.T) { } -func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { +func TestSettersMarkExplicitPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("SetType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueType *string // Act @@ -2761,7 +2761,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetApplePay_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueApplePay *ApplePayData // Act @@ -2792,7 +2792,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetGooglePay_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueGooglePay *GooglePayData // Act @@ -2823,7 +2823,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetCascades_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueCascades []*CascadeJobDetails // Act @@ -2854,7 +2854,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetCreatedAt_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueCreatedAt CreatedAt // Act @@ -2885,7 +2885,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetDomainName_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueDomainName DomainName // Act @@ -2913,14 +2913,14 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueEntityId EntityId + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueEntityID EntityID // Act - obj.SetEntityId(fernTestValueEntityId) + obj.SetEntityID(fernTestValueEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2947,7 +2947,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetEntityType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueEntityType EntityType // Act @@ -2975,14 +2975,14 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueId PaymentMethodDomainId + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueID PaymentMethodDomainID // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3006,14 +3006,14 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOwnerEntityId_MarksExplicit", func(t *testing.T) { + t.Run("SetOwnerEntityID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} - var fernTestValueOwnerEntityId OwnerEntityId + obj := &PaymentMethodDomainAPIResponse{} + var fernTestValueOwnerEntityID OwnerEntityID // Act - obj.SetOwnerEntityId(fernTestValueOwnerEntityId) + obj.SetOwnerEntityID(fernTestValueOwnerEntityID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3040,7 +3040,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetOwnerEntityType_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueOwnerEntityType OwnerEntityType // Act @@ -3071,7 +3071,7 @@ func TestSettersMarkExplicitPaymentMethodDomainApiResponse(t *testing.T) { t.Run("SetUpdatedAt_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} var fernTestValueUpdatedAt *LastModified // Act @@ -3120,7 +3120,7 @@ func TestSettersPaymentMethodDomainGeneralResponse(t *testing.T) { t.Run("SetResponseData", func(t *testing.T) { obj := &PaymentMethodDomainGeneralResponse{} - var fernTestValueResponseData *PaymentMethodDomainApiResponse + var fernTestValueResponseData *PaymentMethodDomainAPIResponse obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) @@ -3207,7 +3207,7 @@ func TestGettersPaymentMethodDomainGeneralResponse(t *testing.T) { t.Parallel() // Arrange obj := &PaymentMethodDomainGeneralResponse{} - var expected *PaymentMethodDomainApiResponse + var expected *PaymentMethodDomainAPIResponse obj.ResponseData = expected // Act & Assert @@ -3328,7 +3328,7 @@ func TestSettersMarkExplicitPaymentMethodDomainGeneralResponse(t *testing.T) { t.Parallel() // Arrange obj := &PaymentMethodDomainGeneralResponse{} - var fernTestValueResponseData *PaymentMethodDomainApiResponse + var fernTestValueResponseData *PaymentMethodDomainAPIResponse // Act obj.SetResponseData(fernTestValueResponseData) @@ -4117,7 +4117,7 @@ func TestSettersMarkExplicitDeletePaymentMethodDomainResponse(t *testing.T) { func TestSettersListPaymentMethodDomainsResponse(t *testing.T) { t.Run("SetRecords", func(t *testing.T) { obj := &ListPaymentMethodDomainsResponse{} - var fernTestValueRecords []*PaymentMethodDomainApiResponse + var fernTestValueRecords []*PaymentMethodDomainAPIResponse obj.SetRecords(fernTestValueRecords) assert.Equal(t, fernTestValueRecords, obj.Records) assert.NotNil(t, obj.explicitFields) @@ -4138,7 +4138,7 @@ func TestGettersListPaymentMethodDomainsResponse(t *testing.T) { t.Parallel() // Arrange obj := &ListPaymentMethodDomainsResponse{} - var expected []*PaymentMethodDomainApiResponse + var expected []*PaymentMethodDomainAPIResponse obj.Records = expected // Act & Assert @@ -4207,7 +4207,7 @@ func TestSettersMarkExplicitListPaymentMethodDomainsResponse(t *testing.T) { t.Parallel() // Arrange obj := &ListPaymentMethodDomainsResponse{} - var fernTestValueRecords []*PaymentMethodDomainApiResponse + var fernTestValueRecords []*PaymentMethodDomainAPIResponse // Act obj.SetRecords(fernTestValueRecords) @@ -4348,11 +4348,11 @@ func TestSettersMarkExplicitUpdatePaymentMethodDomainRequestWallet(t *testing.T) } -func TestJSONMarshalingAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestJSONMarshalingAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4361,21 +4361,21 @@ func TestJSONMarshalingAddPaymentMethodDomainApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled AddPaymentMethodDomainApiResponse + var unmarshaled AddPaymentMethodDomainAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj AddPaymentMethodDomainApiResponse + var obj AddPaymentMethodDomainAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj AddPaymentMethodDomainApiResponse + var obj AddPaymentMethodDomainAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4744,11 +4744,11 @@ func TestJSONMarshalingListPaymentMethodDomainsResponse(t *testing.T) { }) } -func TestJSONMarshalingPaymentMethodDomainApiResponse(t *testing.T) { +func TestJSONMarshalingPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4757,21 +4757,21 @@ func TestJSONMarshalingPaymentMethodDomainApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PaymentMethodDomainApiResponse + var unmarshaled PaymentMethodDomainAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PaymentMethodDomainApiResponse + var obj PaymentMethodDomainAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PaymentMethodDomainApiResponse + var obj PaymentMethodDomainAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4876,17 +4876,17 @@ func TestJSONMarshalingUpdatePaymentMethodDomainRequestWallet(t *testing.T) { }) } -func TestStringAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestStringAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -5068,17 +5068,17 @@ func TestStringListPaymentMethodDomainsResponse(t *testing.T) { }) } -func TestStringPaymentMethodDomainApiResponse(t *testing.T) { +func TestStringPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -5132,10 +5132,10 @@ func TestStringUpdatePaymentMethodDomainRequestWallet(t *testing.T) { }) } -func TestExtraPropertiesAddPaymentMethodDomainApiResponse(t *testing.T) { +func TestExtraPropertiesAddPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &AddPaymentMethodDomainApiResponse{} + obj := &AddPaymentMethodDomainAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -5149,7 +5149,7 @@ func TestExtraPropertiesAddPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *AddPaymentMethodDomainApiResponse + var obj *AddPaymentMethodDomainAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) @@ -5408,10 +5408,10 @@ func TestExtraPropertiesListPaymentMethodDomainsResponse(t *testing.T) { }) } -func TestExtraPropertiesPaymentMethodDomainApiResponse(t *testing.T) { +func TestExtraPropertiesPaymentMethodDomainAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PaymentMethodDomainApiResponse{} + obj := &PaymentMethodDomainAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -5425,7 +5425,7 @@ func TestExtraPropertiesPaymentMethodDomainApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PaymentMethodDomainApiResponse + var obj *PaymentMethodDomainAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/paymentlink/client.go b/paymentlink/client.go index 575b1a2..274442c 100644 --- a/paymentlink/client.go +++ b/paymentlink/client.go @@ -39,7 +39,7 @@ func (c *Client) AddPayLinkFromInvoice( idInvoice int, request *payabli.PayLinkDataInvoice, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { +) (*payabli.PayabliAPIResponsePaymentLinks, error) { response, err := c.WithRawResponse.AddPayLinkFromInvoice( ctx, idInvoice, @@ -56,13 +56,13 @@ func (c *Client) AddPayLinkFromInvoice( func (c *Client) AddPayLinkFromBill( ctx context.Context, // The Payabli ID for the bill. - billId int, + billID int, request *payabli.PayLinkDataBill, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { +) (*payabli.PayabliAPIResponsePaymentLinks, error) { response, err := c.WithRawResponse.AddPayLinkFromBill( ctx, - billId, + billID, request, opts..., ) @@ -73,15 +73,15 @@ func (c *Client) AddPayLinkFromBill( } // Deletes a payment link by ID. -func (c *Client) DeletePayLinkFromId( +func (c *Client) DeletePayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.DeletePayLinkFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.DeletePayLinkFromID( ctx, - payLinkId, + payLinkID, opts..., ) if err != nil { @@ -91,15 +91,15 @@ func (c *Client) DeletePayLinkFromId( } // Retrieves a payment link by ID. -func (c *Client) GetPayLinkFromId( +func (c *Client) GetPayLinkFromID( ctx context.Context, // ID for payment link - paylinkId string, + paylinkID string, opts ...option.RequestOption, -) (*payabli.GetPayLinkFromIdResponse, error) { - response, err := c.WithRawResponse.GetPayLinkFromId( +) (*payabli.GetPayLinkFromIDResponse, error) { + response, err := c.WithRawResponse.GetPayLinkFromID( ctx, - paylinkId, + paylinkID, opts..., ) if err != nil { @@ -109,16 +109,16 @@ func (c *Client) GetPayLinkFromId( } // Send a payment link to the specified email addresses or phone numbers. -func (c *Client) PushPayLinkFromId( +func (c *Client) PushPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, request *payabli.PushPayLinkRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.PushPayLinkFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.PushPayLinkFromID( ctx, - payLinkId, + payLinkID, request, opts..., ) @@ -129,16 +129,16 @@ func (c *Client) PushPayLinkFromId( } // Refresh a payment link's content after an update. -func (c *Client) RefreshPayLinkFromId( +func (c *Client) RefreshPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, - request *payabli.RefreshPayLinkFromIdRequest, + payLinkID string, + request *payabli.RefreshPayLinkFromIDRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.RefreshPayLinkFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.RefreshPayLinkFromID( ctx, - payLinkId, + payLinkID, request, opts..., ) @@ -149,16 +149,16 @@ func (c *Client) RefreshPayLinkFromId( } // Sends a payment link to the specified email addresses. -func (c *Client) SendPayLinkFromId( +func (c *Client) SendPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, - request *payabli.SendPayLinkFromIdRequest, + payLinkID string, + request *payabli.SendPayLinkFromIDRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.SendPayLinkFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.SendPayLinkFromID( ctx, - payLinkId, + payLinkID, request, opts..., ) @@ -169,16 +169,16 @@ func (c *Client) SendPayLinkFromId( } // Updates a payment link's details. -func (c *Client) UpdatePayLinkFromId( +func (c *Client) UpdatePayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, request *payabli.PayLinkUpdateData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.UpdatePayLinkFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.UpdatePayLinkFromID( ctx, - payLinkId, + payLinkID, request, opts..., ) @@ -195,7 +195,7 @@ func (c *Client) AddPayLinkFromBillLotNumber( lotNumber string, request *payabli.PayLinkDataOut, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { +) (*payabli.PayabliAPIResponsePaymentLinks, error) { response, err := c.WithRawResponse.AddPayLinkFromBillLotNumber( ctx, lotNumber, @@ -212,13 +212,13 @@ func (c *Client) AddPayLinkFromBillLotNumber( func (c *Client) PatchOutPaymentLink( ctx context.Context, // ID for the payment link. - paylinkId string, + paylinkID string, request *payabli.PatchOutPaymentLinkRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { +) (*payabli.PayabliAPIResponsePaymentLinks, error) { response, err := c.WithRawResponse.PatchOutPaymentLink( ctx, - paylinkId, + paylinkID, request, opts..., ) @@ -229,16 +229,16 @@ func (c *Client) PatchOutPaymentLink( } // Updates the payment page content for a Pay Out payment link. Use this to change the branding, messaging, payment methods offered, or other page configuration. -func (c *Client) UpdatePayLinkOutFromId( +func (c *Client) UpdatePayLinkOutFromID( ctx context.Context, // ID for the payment link. - paylinkId string, + paylinkID string, request *payabli.PaymentPageRequestBodyOut, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymentLinks, error) { - response, err := c.WithRawResponse.UpdatePayLinkOutFromId( +) (*payabli.PayabliAPIResponsePaymentLinks, error) { + response, err := c.WithRawResponse.UpdatePayLinkOutFromID( ctx, - paylinkId, + paylinkID, request, opts..., ) diff --git a/paymentlink/payment_link_test/payment_link_test.go b/paymentlink/payment_link_test/payment_link_test.go index 96bad31..62a89c1 100644 --- a/paymentlink/payment_link_test/payment_link_test.go +++ b/paymentlink/payment_link_test/payment_link_test.go @@ -310,7 +310,7 @@ func TestPaymentLinkAddPayLinkFromInvoiceWithWireMock( RedirectAfterApprove: payabli.Bool( true, ), - RedirectAfterApproveUrl: payabli.String( + RedirectAfterApproveURL: payabli.String( "https://example.com/success", ), }, @@ -493,7 +493,7 @@ func TestPaymentLinkAddPayLinkFromBillWithWireMock( VerifyRequestCount(t, "TestPaymentLinkAddPayLinkFromBillWithWireMock", "POST", "/PaymentLink/bill/23548884", map[string]string{"mail2": "jo@example.com; ceo@example.com"}, 1) } -func TestPaymentLinkDeletePayLinkFromIdWithWireMock( +func TestPaymentLinkDeletePayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -503,19 +503,19 @@ func TestPaymentLinkDeletePayLinkFromIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.PaymentLink.DeletePayLinkFromId( + _, invocationErr := client.PaymentLink.DeletePayLinkFromID( context.TODO(), "2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkDeletePayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkDeletePayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkDeletePayLinkFromIdWithWireMock", "DELETE", "/PaymentLink/2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkDeletePayLinkFromIDWithWireMock", "DELETE", "/PaymentLink/2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", nil, 1) } -func TestPaymentLinkGetPayLinkFromIdWithWireMock( +func TestPaymentLinkGetPayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -525,19 +525,19 @@ func TestPaymentLinkGetPayLinkFromIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.PaymentLink.GetPayLinkFromId( + _, invocationErr := client.PaymentLink.GetPayLinkFromID( context.TODO(), "paylinkId", option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkGetPayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkGetPayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkGetPayLinkFromIdWithWireMock", "GET", "/PaymentLink/load/paylinkId", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkGetPayLinkFromIDWithWireMock", "GET", "/PaymentLink/load/paylinkId", nil, 1) } -func TestPaymentLinkPushPayLinkFromIdWithWireMock( +func TestPaymentLinkPushPayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -550,20 +550,20 @@ func TestPaymentLinkPushPayLinkFromIdWithWireMock( request := &payabli.PushPayLinkRequest{ Sms: &payabli.PushPayLinkRequestSms{}, } - _, invocationErr := client.PaymentLink.PushPayLinkFromId( + _, invocationErr := client.PaymentLink.PushPayLinkFromID( context.TODO(), "payLinkId", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkPushPayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkPushPayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkPushPayLinkFromIdWithWireMock", "POST", "/PaymentLink/push/payLinkId", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkPushPayLinkFromIDWithWireMock", "POST", "/PaymentLink/push/payLinkId", nil, 1) } -func TestPaymentLinkRefreshPayLinkFromIdWithWireMock( +func TestPaymentLinkRefreshPayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -573,21 +573,21 @@ func TestPaymentLinkRefreshPayLinkFromIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - request := &payabli.RefreshPayLinkFromIdRequest{} - _, invocationErr := client.PaymentLink.RefreshPayLinkFromId( + request := &payabli.RefreshPayLinkFromIDRequest{} + _, invocationErr := client.PaymentLink.RefreshPayLinkFromID( context.TODO(), "payLinkId", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkRefreshPayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkRefreshPayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkRefreshPayLinkFromIdWithWireMock", "GET", "/PaymentLink/refresh/payLinkId", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkRefreshPayLinkFromIDWithWireMock", "GET", "/PaymentLink/refresh/payLinkId", nil, 1) } -func TestPaymentLinkSendPayLinkFromIdWithWireMock( +func TestPaymentLinkSendPayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -597,25 +597,25 @@ func TestPaymentLinkSendPayLinkFromIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - request := &payabli.SendPayLinkFromIdRequest{ + request := &payabli.SendPayLinkFromIDRequest{ Mail2: payabli.String( "jo@example.com; ceo@example.com", ), } - _, invocationErr := client.PaymentLink.SendPayLinkFromId( + _, invocationErr := client.PaymentLink.SendPayLinkFromID( context.TODO(), "payLinkId", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkSendPayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkSendPayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkSendPayLinkFromIdWithWireMock", "GET", "/PaymentLink/send/payLinkId", map[string]string{"mail2": "jo@example.com; ceo@example.com"}, 1) + VerifyRequestCount(t, "TestPaymentLinkSendPayLinkFromIDWithWireMock", "GET", "/PaymentLink/send/payLinkId", map[string]string{"mail2": "jo@example.com; ceo@example.com"}, 1) } -func TestPaymentLinkUpdatePayLinkFromIdWithWireMock( +func TestPaymentLinkUpdatePayLinkFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -655,17 +655,17 @@ func TestPaymentLinkUpdatePayLinkFromIdWithWireMock( ), }, } - _, invocationErr := client.PaymentLink.UpdatePayLinkFromId( + _, invocationErr := client.PaymentLink.UpdatePayLinkFromID( context.TODO(), "332-c277b704-1301", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkUpdatePayLinkFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkUpdatePayLinkFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkUpdatePayLinkFromIdWithWireMock", "PUT", "/PaymentLink/update/332-c277b704-1301", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkUpdatePayLinkFromIDWithWireMock", "PUT", "/PaymentLink/update/332-c277b704-1301", nil, 1) } func TestPaymentLinkAddPayLinkFromBillLotNumberWithWireMock( @@ -866,7 +866,7 @@ func TestPaymentLinkPatchOutPaymentLinkWithWireMock( VerifyRequestCount(t, "TestPaymentLinkPatchOutPaymentLinkWithWireMock", "PATCH", "/PaymentLink/out/2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", nil, 1) } -func TestPaymentLinkUpdatePayLinkOutFromIdWithWireMock( +func TestPaymentLinkUpdatePayLinkOutFromIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -1012,15 +1012,15 @@ func TestPaymentLinkUpdatePayLinkOutFromIdWithWireMock( ), }, } - _, invocationErr := client.PaymentLink.UpdatePayLinkOutFromId( + _, invocationErr := client.PaymentLink.UpdatePayLinkOutFromID( context.TODO(), "2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", request, option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaymentLinkUpdatePayLinkOutFromIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaymentLinkUpdatePayLinkOutFromIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaymentLinkUpdatePayLinkOutFromIdWithWireMock", "PATCH", "/PaymentLink/updateOut/2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", nil, 1) + VerifyRequestCount(t, "TestPaymentLinkUpdatePayLinkOutFromIDWithWireMock", "PATCH", "/PaymentLink/updateOut/2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", nil, 1) } diff --git a/paymentlink/raw_client.go b/paymentlink/raw_client.go index b45dc82..ddb09b1 100644 --- a/paymentlink/raw_client.go +++ b/paymentlink/raw_client.go @@ -36,7 +36,7 @@ func (r *RawClient) AddPayLinkFromInvoice( idInvoice int, request *payabli.PayLinkDataInvoice, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -62,7 +62,7 @@ func (r *RawClient) AddPayLinkFromInvoice( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -81,7 +81,7 @@ func (r *RawClient) AddPayLinkFromInvoice( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -91,10 +91,10 @@ func (r *RawClient) AddPayLinkFromInvoice( func (r *RawClient) AddPayLinkFromBill( ctx context.Context, // The Payabli ID for the bill. - billId int, + billID int, request *payabli.PayLinkDataBill, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -103,7 +103,7 @@ func (r *RawClient) AddPayLinkFromBill( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/bill/%v", - billId, + billID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -120,7 +120,7 @@ func (r *RawClient) AddPayLinkFromBill( headers.Add("idempotencyKey", *request.IdempotencyKey) } headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -139,19 +139,19 @@ func (r *RawClient) AddPayLinkFromBill( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) DeletePayLinkFromId( +func (r *RawClient) DeletePayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -160,13 +160,13 @@ func (r *RawClient) DeletePayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/%v", - payLinkId, + payLinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -184,19 +184,19 @@ func (r *RawClient) DeletePayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) GetPayLinkFromId( +func (r *RawClient) GetPayLinkFromID( ctx context.Context, // ID for payment link - paylinkId string, + paylinkID string, opts ...option.RequestOption, -) (*core.Response[*payabli.GetPayLinkFromIdResponse], error) { +) (*core.Response[*payabli.GetPayLinkFromIDResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -205,13 +205,13 @@ func (r *RawClient) GetPayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/load/%v", - paylinkId, + paylinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.GetPayLinkFromIdResponse + var response *payabli.GetPayLinkFromIDResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -229,20 +229,20 @@ func (r *RawClient) GetPayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.GetPayLinkFromIdResponse]{ + return &core.Response[*payabli.GetPayLinkFromIDResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) PushPayLinkFromId( +func (r *RawClient) PushPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, request *payabli.PushPayLinkRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -251,13 +251,13 @@ func (r *RawClient) PushPayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/push/%v", - payLinkId, + payLinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -276,20 +276,20 @@ func (r *RawClient) PushPayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) RefreshPayLinkFromId( +func (r *RawClient) RefreshPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, - request *payabli.RefreshPayLinkFromIdRequest, + payLinkID string, + request *payabli.RefreshPayLinkFromIDRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -298,7 +298,7 @@ func (r *RawClient) RefreshPayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/refresh/%v", - payLinkId, + payLinkID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -311,7 +311,7 @@ func (r *RawClient) RefreshPayLinkFromId( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -329,20 +329,20 @@ func (r *RawClient) RefreshPayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) SendPayLinkFromId( +func (r *RawClient) SendPayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, - request *payabli.SendPayLinkFromIdRequest, + payLinkID string, + request *payabli.SendPayLinkFromIDRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -351,7 +351,7 @@ func (r *RawClient) SendPayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/send/%v", - payLinkId, + payLinkID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -364,7 +364,7 @@ func (r *RawClient) SendPayLinkFromId( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -382,20 +382,20 @@ func (r *RawClient) SendPayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) UpdatePayLinkFromId( +func (r *RawClient) UpdatePayLinkFromID( ctx context.Context, // ID for the payment link. - payLinkId string, + payLinkID string, request *payabli.PayLinkUpdateData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -404,14 +404,14 @@ func (r *RawClient) UpdatePayLinkFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/update/%v", - payLinkId, + payLinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -430,7 +430,7 @@ func (r *RawClient) UpdatePayLinkFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -443,7 +443,7 @@ func (r *RawClient) AddPayLinkFromBillLotNumber( lotNumber string, request *payabli.PayLinkDataOut, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -466,7 +466,7 @@ func (r *RawClient) AddPayLinkFromBillLotNumber( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -484,7 +484,7 @@ func (r *RawClient) AddPayLinkFromBillLotNumber( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -494,10 +494,10 @@ func (r *RawClient) AddPayLinkFromBillLotNumber( func (r *RawClient) PatchOutPaymentLink( ctx context.Context, // ID for the payment link. - paylinkId string, + paylinkID string, request *payabli.PatchOutPaymentLinkRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -506,13 +506,13 @@ func (r *RawClient) PatchOutPaymentLink( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/out/%v", - paylinkId, + paylinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -531,20 +531,20 @@ func (r *RawClient) PatchOutPaymentLink( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, }, nil } -func (r *RawClient) UpdatePayLinkOutFromId( +func (r *RawClient) UpdatePayLinkOutFromID( ctx context.Context, // ID for the payment link. - paylinkId string, + paylinkID string, request *payabli.PaymentPageRequestBodyOut, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymentLinks], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymentLinks], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -553,13 +553,13 @@ func (r *RawClient) UpdatePayLinkOutFromId( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentLink/updateOut/%v", - paylinkId, + paylinkID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymentLinks + var response *payabli.PayabliAPIResponsePaymentLinks raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -578,7 +578,7 @@ func (r *RawClient) UpdatePayLinkOutFromId( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymentLinks]{ + return &core.Response[*payabli.PayabliAPIResponsePaymentLinks]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/paymentmethoddomain/client.go b/paymentmethoddomain/client.go index 623014e..2f67c55 100644 --- a/paymentmethoddomain/client.go +++ b/paymentmethoddomain/client.go @@ -37,7 +37,7 @@ func (c *Client) AddPaymentMethodDomain( ctx context.Context, request *payabli.AddPaymentMethodDomainRequest, opts ...option.RequestOption, -) (*payabli.AddPaymentMethodDomainApiResponse, error) { +) (*payabli.AddPaymentMethodDomainAPIResponse, error) { response, err := c.WithRawResponse.AddPaymentMethodDomain( ctx, request, @@ -53,12 +53,12 @@ func (c *Client) AddPaymentMethodDomain( func (c *Client) CascadePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*payabli.PaymentMethodDomainGeneralResponse, error) { response, err := c.WithRawResponse.CascadePaymentMethodDomain( ctx, - domainId, + domainID, opts..., ) if err != nil { @@ -71,12 +71,12 @@ func (c *Client) CascadePaymentMethodDomain( func (c *Client) DeletePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*payabli.DeletePaymentMethodDomainResponse, error) { response, err := c.WithRawResponse.DeletePaymentMethodDomain( ctx, - domainId, + domainID, opts..., ) if err != nil { @@ -89,12 +89,12 @@ func (c *Client) DeletePaymentMethodDomain( func (c *Client) GetPaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, -) (*payabli.PaymentMethodDomainApiResponse, error) { +) (*payabli.PaymentMethodDomainAPIResponse, error) { response, err := c.WithRawResponse.GetPaymentMethodDomain( ctx, - domainId, + domainID, opts..., ) if err != nil { @@ -124,13 +124,13 @@ func (c *Client) ListPaymentMethodDomains( func (c *Client) UpdatePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, request *payabli.UpdatePaymentMethodDomainRequest, opts ...option.RequestOption, ) (*payabli.PaymentMethodDomainGeneralResponse, error) { response, err := c.WithRawResponse.UpdatePaymentMethodDomain( ctx, - domainId, + domainID, request, opts..., ) @@ -144,12 +144,12 @@ func (c *Client) UpdatePaymentMethodDomain( func (c *Client) VerifyPaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*payabli.PaymentMethodDomainGeneralResponse, error) { response, err := c.WithRawResponse.VerifyPaymentMethodDomain( ctx, - domainId, + domainID, opts..., ) if err != nil { diff --git a/paymentmethoddomain/payment_method_domain_test/payment_method_domain_test.go b/paymentmethoddomain/payment_method_domain_test/payment_method_domain_test.go index 7473cac..ac26b06 100644 --- a/paymentmethoddomain/payment_method_domain_test/payment_method_domain_test.go +++ b/paymentmethoddomain/payment_method_domain_test/payment_method_domain_test.go @@ -76,7 +76,7 @@ func TestPaymentMethodDomainAddPaymentMethodDomainWithWireMock( DomainName: payabli.String( "checkout.example.com", ), - EntityId: payabli.Int64( + EntityID: payabli.Int64( int64(109), ), EntityType: payabli.String( @@ -182,7 +182,7 @@ func TestPaymentMethodDomainListPaymentMethodDomainsWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.ListPaymentMethodDomainsRequest{ - EntityId: payabli.Int64( + EntityID: payabli.Int64( int64(1147), ), EntityType: payabli.String( diff --git a/paymentmethoddomain/raw_client.go b/paymentmethoddomain/raw_client.go index 8d048dd..661d862 100644 --- a/paymentmethoddomain/raw_client.go +++ b/paymentmethoddomain/raw_client.go @@ -34,7 +34,7 @@ func (r *RawClient) AddPaymentMethodDomain( ctx context.Context, request *payabli.AddPaymentMethodDomainRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.AddPaymentMethodDomainApiResponse], error) { +) (*core.Response[*payabli.AddPaymentMethodDomainAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -47,7 +47,7 @@ func (r *RawClient) AddPaymentMethodDomain( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.AddPaymentMethodDomainApiResponse + var response *payabli.AddPaymentMethodDomainAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -66,7 +66,7 @@ func (r *RawClient) AddPaymentMethodDomain( if err != nil { return nil, err } - return &core.Response[*payabli.AddPaymentMethodDomainApiResponse]{ + return &core.Response[*payabli.AddPaymentMethodDomainAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -76,7 +76,7 @@ func (r *RawClient) AddPaymentMethodDomain( func (r *RawClient) CascadePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*core.Response[*payabli.PaymentMethodDomainGeneralResponse], error) { options := core.NewRequestOptions(opts...) @@ -87,7 +87,7 @@ func (r *RawClient) CascadePaymentMethodDomain( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentMethodDomain/%v/cascade", - domainId, + domainID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -121,7 +121,7 @@ func (r *RawClient) CascadePaymentMethodDomain( func (r *RawClient) DeletePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*core.Response[*payabli.DeletePaymentMethodDomainResponse], error) { options := core.NewRequestOptions(opts...) @@ -132,7 +132,7 @@ func (r *RawClient) DeletePaymentMethodDomain( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentMethodDomain/%v", - domainId, + domainID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -166,9 +166,9 @@ func (r *RawClient) DeletePaymentMethodDomain( func (r *RawClient) GetPaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PaymentMethodDomainApiResponse], error) { +) (*core.Response[*payabli.PaymentMethodDomainAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -177,13 +177,13 @@ func (r *RawClient) GetPaymentMethodDomain( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentMethodDomain/%v", - domainId, + domainID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PaymentMethodDomainApiResponse + var response *payabli.PaymentMethodDomainAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -201,7 +201,7 @@ func (r *RawClient) GetPaymentMethodDomain( if err != nil { return nil, err } - return &core.Response[*payabli.PaymentMethodDomainApiResponse]{ + return &core.Response[*payabli.PaymentMethodDomainAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -259,7 +259,7 @@ func (r *RawClient) ListPaymentMethodDomains( func (r *RawClient) UpdatePaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, request *payabli.UpdatePaymentMethodDomainRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.PaymentMethodDomainGeneralResponse], error) { @@ -271,7 +271,7 @@ func (r *RawClient) UpdatePaymentMethodDomain( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentMethodDomain/%v", - domainId, + domainID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -307,7 +307,7 @@ func (r *RawClient) UpdatePaymentMethodDomain( func (r *RawClient) VerifyPaymentMethodDomain( ctx context.Context, // The payment method domain's ID in Payabli. - domainId string, + domainID string, opts ...option.RequestOption, ) (*core.Response[*payabli.PaymentMethodDomainGeneralResponse], error) { options := core.NewRequestOptions(opts...) @@ -318,7 +318,7 @@ func (r *RawClient) VerifyPaymentMethodDomain( ) endpointURL := internal.EncodeURL( baseURL+"/PaymentMethodDomain/%v/verify", - domainId, + domainID, ) headers := internal.MergeHeaders( r.options.ToHeader(), diff --git a/payout_subscription.go b/payout_subscription.go index 46d42cc..8afe09a 100644 --- a/payout_subscription.go +++ b/payout_subscription.go @@ -50,7 +50,7 @@ func (r *RequestPayoutSchedule) MarshalJSON() ([]byte, error) { } var ( - billPayOutDataRequestFieldBillId = big.NewInt(1 << 0) + billPayOutDataRequestFieldBillID = big.NewInt(1 << 0) billPayOutDataRequestFieldComments = big.NewInt(1 << 1) billPayOutDataRequestFieldDueDate = big.NewInt(1 << 2) billPayOutDataRequestFieldInvoiceDate = big.NewInt(1 << 3) @@ -66,7 +66,7 @@ var ( type BillPayOutDataRequest struct { // Bill ID in Payabli. - BillId *int64 `json:"billId,omitempty" url:"billId,omitempty"` + BillID *int64 `json:"billId,omitempty" url:"billId,omitempty"` // Any comments about bill. **For managed payouts, this field has a limit of 100 characters**. Comments *Comments `json:"comments,omitempty" url:"comments,omitempty"` // Bill due date in format YYYY-MM-DD or MM/DD/YYYY. @@ -94,11 +94,11 @@ type BillPayOutDataRequest struct { rawJSON json.RawMessage } -func (b *BillPayOutDataRequest) GetBillId() *int64 { +func (b *BillPayOutDataRequest) GetBillID() *int64 { if b == nil { return nil } - return b.BillId + return b.BillID } func (b *BillPayOutDataRequest) GetComments() *Comments { @@ -192,11 +192,11 @@ func (b *BillPayOutDataRequest) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillPayOutDataRequest) SetBillId(billId *int64) { - b.BillId = billId - b.require(billPayOutDataRequestFieldBillId) +func (b *BillPayOutDataRequest) SetBillID(billID *int64) { + b.BillID = billID + b.require(billPayOutDataRequestFieldBillID) } // SetComments sets the Comments field and marks it as non-optional; @@ -335,7 +335,7 @@ var ( addPayoutSubscriptionResponseFieldIsSuccess = big.NewInt(1 << 0) addPayoutSubscriptionResponseFieldResponseText = big.NewInt(1 << 1) addPayoutSubscriptionResponseFieldResponseData = big.NewInt(1 << 2) - addPayoutSubscriptionResponseFieldCustomerId = big.NewInt(1 << 3) + addPayoutSubscriptionResponseFieldCustomerID = big.NewInt(1 << 3) ) type AddPayoutSubscriptionResponse struct { @@ -344,7 +344,7 @@ type AddPayoutSubscriptionResponse struct { // The identifier of the newly created payout subscription. ResponseData int `json:"responseData" url:"responseData"` // The identifier of the vendor associated with the payout subscription. - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -374,11 +374,11 @@ func (a *AddPayoutSubscriptionResponse) GetResponseData() int { return a.ResponseData } -func (a *AddPayoutSubscriptionResponse) GetCustomerId() *CustomerId { +func (a *AddPayoutSubscriptionResponse) GetCustomerID() *CustomerID { if a == nil { return nil } - return a.CustomerId + return a.CustomerID } func (a *AddPayoutSubscriptionResponse) GetExtraProperties() map[string]interface{} { @@ -416,11 +416,11 @@ func (a *AddPayoutSubscriptionResponse) SetResponseData(responseData int) { a.require(addPayoutSubscriptionResponseFieldResponseData) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddPayoutSubscriptionResponse) SetCustomerId(customerId *CustomerId) { - a.CustomerId = customerId - a.require(addPayoutSubscriptionResponseFieldCustomerId) +func (a *AddPayoutSubscriptionResponse) SetCustomerID(customerID *CustomerID) { + a.CustomerID = customerID + a.require(addPayoutSubscriptionResponseFieldCustomerID) } func (a *AddPayoutSubscriptionResponse) UnmarshalJSON(data []byte) error { @@ -710,13 +710,13 @@ var ( payoutPaymentDetailFieldCurrency = big.NewInt(1 << 2) payoutPaymentDetailFieldCheckNumber = big.NewInt(1 << 3) payoutPaymentDetailFieldOrderDescription = big.NewInt(1 << 4) - payoutPaymentDetailFieldOrderId = big.NewInt(1 << 5) - payoutPaymentDetailFieldOrderIdAlternative = big.NewInt(1 << 6) + payoutPaymentDetailFieldOrderID = big.NewInt(1 << 5) + payoutPaymentDetailFieldOrderIDAlternative = big.NewInt(1 << 6) payoutPaymentDetailFieldPaymentDescription = big.NewInt(1 << 7) payoutPaymentDetailFieldSettlementDescriptor = big.NewInt(1 << 8) payoutPaymentDetailFieldGroupNumber = big.NewInt(1 << 9) payoutPaymentDetailFieldSource = big.NewInt(1 << 10) - payoutPaymentDetailFieldPayabliTransId = big.NewInt(1 << 11) + payoutPaymentDetailFieldPayabliTransID = big.NewInt(1 << 11) payoutPaymentDetailFieldUnbundled = big.NewInt(1 << 12) ) @@ -732,9 +732,9 @@ type PayoutPaymentDetail struct { // Description of the payout order. OrderDescription *string `json:"orderDescription,omitempty" url:"orderDescription,omitempty"` // Order identifier associated with the payout. - OrderId *string `json:"orderId,omitempty" url:"orderId,omitempty"` + OrderID *string `json:"orderId,omitempty" url:"orderId,omitempty"` // Alternative order identifier. - OrderIdAlternative *string `json:"orderIdAlternative,omitempty" url:"orderIdAlternative,omitempty"` + OrderIDAlternative *string `json:"orderIdAlternative,omitempty" url:"orderIdAlternative,omitempty"` // Description of the payment. PaymentDescription *string `json:"paymentDescription,omitempty" url:"paymentDescription,omitempty"` // Settlement descriptor for the payout. @@ -744,7 +744,7 @@ type PayoutPaymentDetail struct { // Source identifier for the payout. Source *string `json:"source,omitempty" url:"source,omitempty"` // Payabli transaction identifier. - PayabliTransId *string `json:"payabliTransId,omitempty" url:"payabliTransId,omitempty"` + PayabliTransID *string `json:"payabliTransId,omitempty" url:"payabliTransId,omitempty"` // When `true`, each bill is processed as a separate payout. When `false` or not provided, multiple bills are paid with a single payout. Unbundled *bool `json:"unbundled,omitempty" url:"unbundled,omitempty"` @@ -790,18 +790,18 @@ func (p *PayoutPaymentDetail) GetOrderDescription() *string { return p.OrderDescription } -func (p *PayoutPaymentDetail) GetOrderId() *string { +func (p *PayoutPaymentDetail) GetOrderID() *string { if p == nil { return nil } - return p.OrderId + return p.OrderID } -func (p *PayoutPaymentDetail) GetOrderIdAlternative() *string { +func (p *PayoutPaymentDetail) GetOrderIDAlternative() *string { if p == nil { return nil } - return p.OrderIdAlternative + return p.OrderIDAlternative } func (p *PayoutPaymentDetail) GetPaymentDescription() *string { @@ -832,11 +832,11 @@ func (p *PayoutPaymentDetail) GetSource() *string { return p.Source } -func (p *PayoutPaymentDetail) GetPayabliTransId() *string { +func (p *PayoutPaymentDetail) GetPayabliTransID() *string { if p == nil { return nil } - return p.PayabliTransId + return p.PayabliTransID } func (p *PayoutPaymentDetail) GetUnbundled() *bool { @@ -895,18 +895,18 @@ func (p *PayoutPaymentDetail) SetOrderDescription(orderDescription *string) { p.require(payoutPaymentDetailFieldOrderDescription) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutPaymentDetail) SetOrderId(orderId *string) { - p.OrderId = orderId - p.require(payoutPaymentDetailFieldOrderId) +func (p *PayoutPaymentDetail) SetOrderID(orderID *string) { + p.OrderID = orderID + p.require(payoutPaymentDetailFieldOrderID) } -// SetOrderIdAlternative sets the OrderIdAlternative field and marks it as non-optional; +// SetOrderIDAlternative sets the OrderIDAlternative field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutPaymentDetail) SetOrderIdAlternative(orderIdAlternative *string) { - p.OrderIdAlternative = orderIdAlternative - p.require(payoutPaymentDetailFieldOrderIdAlternative) +func (p *PayoutPaymentDetail) SetOrderIDAlternative(orderIDAlternative *string) { + p.OrderIDAlternative = orderIDAlternative + p.require(payoutPaymentDetailFieldOrderIDAlternative) } // SetPaymentDescription sets the PaymentDescription field and marks it as non-optional; @@ -937,11 +937,11 @@ func (p *PayoutPaymentDetail) SetSource(source *string) { p.require(payoutPaymentDetailFieldSource) } -// SetPayabliTransId sets the PayabliTransId field and marks it as non-optional; +// SetPayabliTransID sets the PayabliTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutPaymentDetail) SetPayabliTransId(payabliTransId *string) { - p.PayabliTransId = payabliTransId - p.require(payoutPaymentDetailFieldPayabliTransId) +func (p *PayoutPaymentDetail) SetPayabliTransID(payabliTransID *string) { + p.PayabliTransID = payabliTransID + p.require(payoutPaymentDetailFieldPayabliTransID) } // SetUnbundled sets the Unbundled field and marks it as non-optional; @@ -1116,14 +1116,14 @@ func (p *PayoutScheduleDetail) String() string { type PayoutSetPause = bool var ( - payoutSubscriptionQueryRecordFieldIdOutSubscription = big.NewInt(1 << 0) + payoutSubscriptionQueryRecordFieldIDOutSubscription = big.NewInt(1 << 0) payoutSubscriptionQueryRecordFieldStatus = big.NewInt(1 << 1) payoutSubscriptionQueryRecordFieldEvents = big.NewInt(1 << 2) payoutSubscriptionQueryRecordFieldVendor = big.NewInt(1 << 3) payoutSubscriptionQueryRecordFieldBillData = big.NewInt(1 << 4) - payoutSubscriptionQueryRecordFieldExternalPaypointId = big.NewInt(1 << 5) + payoutSubscriptionQueryRecordFieldExternalPaypointID = big.NewInt(1 << 5) payoutSubscriptionQueryRecordFieldMethod = big.NewInt(1 << 6) - payoutSubscriptionQueryRecordFieldPaypointId = big.NewInt(1 << 7) + payoutSubscriptionQueryRecordFieldPaypointID = big.NewInt(1 << 7) payoutSubscriptionQueryRecordFieldTotalAmount = big.NewInt(1 << 8) payoutSubscriptionQueryRecordFieldNetAmount = big.NewInt(1 << 9) payoutSubscriptionQueryRecordFieldFeeAmount = big.NewInt(1 << 10) @@ -1135,7 +1135,7 @@ var ( payoutSubscriptionQueryRecordFieldTotalCycles = big.NewInt(1 << 16) payoutSubscriptionQueryRecordFieldLeftCycles = big.NewInt(1 << 17) payoutSubscriptionQueryRecordFieldLastRun = big.NewInt(1 << 18) - payoutSubscriptionQueryRecordFieldEntrypageId = big.NewInt(1 << 19) + payoutSubscriptionQueryRecordFieldEntrypageID = big.NewInt(1 << 19) payoutSubscriptionQueryRecordFieldUntilCancelled = big.NewInt(1 << 20) payoutSubscriptionQueryRecordFieldLastUpdated = big.NewInt(1 << 21) payoutSubscriptionQueryRecordFieldCreatedAt = big.NewInt(1 << 22) @@ -1143,13 +1143,13 @@ var ( payoutSubscriptionQueryRecordFieldPaypointDbaname = big.NewInt(1 << 24) payoutSubscriptionQueryRecordFieldPaypointEntryname = big.NewInt(1 << 25) payoutSubscriptionQueryRecordFieldParentOrgName = big.NewInt(1 << 26) - payoutSubscriptionQueryRecordFieldParentOrgId = big.NewInt(1 << 27) + payoutSubscriptionQueryRecordFieldParentOrgID = big.NewInt(1 << 27) payoutSubscriptionQueryRecordFieldSource = big.NewInt(1 << 28) ) type PayoutSubscriptionQueryRecord struct { // The payout subscription's ID. - IdOutSubscription *int64 `json:"idOutSubscription,omitempty" url:"idOutSubscription,omitempty"` + IDOutSubscription *int64 `json:"idOutSubscription,omitempty" url:"idOutSubscription,omitempty"` // The payout subscription's status. // - 0: Paused // - 1: Active @@ -1159,10 +1159,10 @@ type PayoutSubscriptionQueryRecord struct { Vendor *VendorQueryRecord `json:"vendor,omitempty" url:"vendor,omitempty"` // Bills associated with the payout subscription. BillData []*BillPayOutData `json:"billData,omitempty" url:"billData,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // The payout subscription's payment method. Method *string `json:"method,omitempty" url:"method,omitempty"` - PaypointId *PaypointId `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *PaypointID `json:"paypointId,omitempty" url:"paypointId,omitempty"` // The payout subscription amount, including any fees. TotalAmount *float64 `json:"totalAmount,omitempty" url:"totalAmount,omitempty"` // The payout subscription amount, minus any fees. @@ -1184,7 +1184,7 @@ type PayoutSubscriptionQueryRecord struct { LeftCycles *int `json:"leftCycles,omitempty" url:"leftCycles,omitempty"` // The last time the payout subscription was processed. LastRun *time.Time `json:"lastRun,omitempty" url:"lastRun,omitempty"` - EntrypageId *EntrypageId `json:"entrypageId,omitempty" url:"entrypageId,omitempty"` + EntrypageID *EntrypageID `json:"entrypageId,omitempty" url:"entrypageId,omitempty"` // When `true`, the payout subscription has no explicit end date and runs until canceled. UntilCancelled *bool `json:"untilCancelled,omitempty" url:"untilCancelled,omitempty"` // The last date and time the payout subscription was updated. @@ -1198,7 +1198,7 @@ type PayoutSubscriptionQueryRecord struct { // The paypoint's entryname. PaypointEntryname *Entrypointfield `json:"paypointEntryname,omitempty" url:"paypointEntryname,omitempty"` ParentOrgName *OrgParentName `json:"parentOrgName,omitempty" url:"parentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` Source *Source `json:"source,omitempty" url:"source,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1208,11 +1208,11 @@ type PayoutSubscriptionQueryRecord struct { rawJSON json.RawMessage } -func (p *PayoutSubscriptionQueryRecord) GetIdOutSubscription() *int64 { +func (p *PayoutSubscriptionQueryRecord) GetIDOutSubscription() *int64 { if p == nil { return nil } - return p.IdOutSubscription + return p.IDOutSubscription } func (p *PayoutSubscriptionQueryRecord) GetStatus() *int { @@ -1243,11 +1243,11 @@ func (p *PayoutSubscriptionQueryRecord) GetBillData() []*BillPayOutData { return p.BillData } -func (p *PayoutSubscriptionQueryRecord) GetExternalPaypointId() *ExternalPaypointId { +func (p *PayoutSubscriptionQueryRecord) GetExternalPaypointID() *ExternalPaypointID { if p == nil { return nil } - return p.ExternalPaypointId + return p.ExternalPaypointID } func (p *PayoutSubscriptionQueryRecord) GetMethod() *string { @@ -1257,11 +1257,11 @@ func (p *PayoutSubscriptionQueryRecord) GetMethod() *string { return p.Method } -func (p *PayoutSubscriptionQueryRecord) GetPaypointId() *PaypointId { +func (p *PayoutSubscriptionQueryRecord) GetPaypointID() *PaypointID { if p == nil { return nil } - return p.PaypointId + return p.PaypointID } func (p *PayoutSubscriptionQueryRecord) GetTotalAmount() *float64 { @@ -1341,11 +1341,11 @@ func (p *PayoutSubscriptionQueryRecord) GetLastRun() *time.Time { return p.LastRun } -func (p *PayoutSubscriptionQueryRecord) GetEntrypageId() *EntrypageId { +func (p *PayoutSubscriptionQueryRecord) GetEntrypageID() *EntrypageID { if p == nil { return nil } - return p.EntrypageId + return p.EntrypageID } func (p *PayoutSubscriptionQueryRecord) GetUntilCancelled() *bool { @@ -1397,11 +1397,11 @@ func (p *PayoutSubscriptionQueryRecord) GetParentOrgName() *OrgParentName { return p.ParentOrgName } -func (p *PayoutSubscriptionQueryRecord) GetParentOrgId() *OrgParentId { +func (p *PayoutSubscriptionQueryRecord) GetParentOrgID() *OrgParentID { if p == nil { return nil } - return p.ParentOrgId + return p.ParentOrgID } func (p *PayoutSubscriptionQueryRecord) GetSource() *Source { @@ -1425,11 +1425,11 @@ func (p *PayoutSubscriptionQueryRecord) require(field *big.Int) { p.explicitFields.Or(p.explicitFields, field) } -// SetIdOutSubscription sets the IdOutSubscription field and marks it as non-optional; +// SetIDOutSubscription sets the IDOutSubscription field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecord) SetIdOutSubscription(idOutSubscription *int64) { - p.IdOutSubscription = idOutSubscription - p.require(payoutSubscriptionQueryRecordFieldIdOutSubscription) +func (p *PayoutSubscriptionQueryRecord) SetIDOutSubscription(idOutSubscription *int64) { + p.IDOutSubscription = idOutSubscription + p.require(payoutSubscriptionQueryRecordFieldIDOutSubscription) } // SetStatus sets the Status field and marks it as non-optional; @@ -1460,11 +1460,11 @@ func (p *PayoutSubscriptionQueryRecord) SetBillData(billData []*BillPayOutData) p.require(payoutSubscriptionQueryRecordFieldBillData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - p.ExternalPaypointId = externalPaypointId - p.require(payoutSubscriptionQueryRecordFieldExternalPaypointId) +func (p *PayoutSubscriptionQueryRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + p.ExternalPaypointID = externalPaypointID + p.require(payoutSubscriptionQueryRecordFieldExternalPaypointID) } // SetMethod sets the Method field and marks it as non-optional; @@ -1474,11 +1474,11 @@ func (p *PayoutSubscriptionQueryRecord) SetMethod(method *string) { p.require(payoutSubscriptionQueryRecordFieldMethod) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecord) SetPaypointId(paypointId *PaypointId) { - p.PaypointId = paypointId - p.require(payoutSubscriptionQueryRecordFieldPaypointId) +func (p *PayoutSubscriptionQueryRecord) SetPaypointID(paypointID *PaypointID) { + p.PaypointID = paypointID + p.require(payoutSubscriptionQueryRecordFieldPaypointID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -1558,11 +1558,11 @@ func (p *PayoutSubscriptionQueryRecord) SetLastRun(lastRun *time.Time) { p.require(payoutSubscriptionQueryRecordFieldLastRun) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecord) SetEntrypageId(entrypageId *EntrypageId) { - p.EntrypageId = entrypageId - p.require(payoutSubscriptionQueryRecordFieldEntrypageId) +func (p *PayoutSubscriptionQueryRecord) SetEntrypageID(entrypageID *EntrypageID) { + p.EntrypageID = entrypageID + p.require(payoutSubscriptionQueryRecordFieldEntrypageID) } // SetUntilCancelled sets the UntilCancelled field and marks it as non-optional; @@ -1614,11 +1614,11 @@ func (p *PayoutSubscriptionQueryRecord) SetParentOrgName(parentOrgName *OrgParen p.require(payoutSubscriptionQueryRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecord) SetParentOrgId(parentOrgId *OrgParentId) { - p.ParentOrgId = parentOrgId - p.require(payoutSubscriptionQueryRecordFieldParentOrgId) +func (p *PayoutSubscriptionQueryRecord) SetParentOrgID(parentOrgID *OrgParentID) { + p.ParentOrgID = parentOrgID + p.require(payoutSubscriptionQueryRecordFieldParentOrgID) } // SetSource sets the Source field and marks it as non-optional; @@ -1699,14 +1699,14 @@ func (p *PayoutSubscriptionQueryRecord) String() string { } var ( - payoutSubscriptionQueryRecordPascalFieldIdOutSubscription = big.NewInt(1 << 0) + payoutSubscriptionQueryRecordPascalFieldIDOutSubscription = big.NewInt(1 << 0) payoutSubscriptionQueryRecordPascalFieldStatus = big.NewInt(1 << 1) payoutSubscriptionQueryRecordPascalFieldEvents = big.NewInt(1 << 2) payoutSubscriptionQueryRecordPascalFieldVendor = big.NewInt(1 << 3) payoutSubscriptionQueryRecordPascalFieldBillData = big.NewInt(1 << 4) - payoutSubscriptionQueryRecordPascalFieldExternalPaypointId = big.NewInt(1 << 5) + payoutSubscriptionQueryRecordPascalFieldExternalPaypointID = big.NewInt(1 << 5) payoutSubscriptionQueryRecordPascalFieldMethod = big.NewInt(1 << 6) - payoutSubscriptionQueryRecordPascalFieldPaypointId = big.NewInt(1 << 7) + payoutSubscriptionQueryRecordPascalFieldPaypointID = big.NewInt(1 << 7) payoutSubscriptionQueryRecordPascalFieldTotalAmount = big.NewInt(1 << 8) payoutSubscriptionQueryRecordPascalFieldNetAmount = big.NewInt(1 << 9) payoutSubscriptionQueryRecordPascalFieldFeeAmount = big.NewInt(1 << 10) @@ -1718,7 +1718,7 @@ var ( payoutSubscriptionQueryRecordPascalFieldTotalCycles = big.NewInt(1 << 16) payoutSubscriptionQueryRecordPascalFieldLeftCycles = big.NewInt(1 << 17) payoutSubscriptionQueryRecordPascalFieldLastRun = big.NewInt(1 << 18) - payoutSubscriptionQueryRecordPascalFieldEntrypageId = big.NewInt(1 << 19) + payoutSubscriptionQueryRecordPascalFieldEntrypageID = big.NewInt(1 << 19) payoutSubscriptionQueryRecordPascalFieldUntilCancelled = big.NewInt(1 << 20) payoutSubscriptionQueryRecordPascalFieldLastUpdated = big.NewInt(1 << 21) payoutSubscriptionQueryRecordPascalFieldCreatedAt = big.NewInt(1 << 22) @@ -1726,13 +1726,13 @@ var ( payoutSubscriptionQueryRecordPascalFieldPaypointDbaname = big.NewInt(1 << 24) payoutSubscriptionQueryRecordPascalFieldPaypointEntryname = big.NewInt(1 << 25) payoutSubscriptionQueryRecordPascalFieldParentOrgName = big.NewInt(1 << 26) - payoutSubscriptionQueryRecordPascalFieldParentOrgId = big.NewInt(1 << 27) + payoutSubscriptionQueryRecordPascalFieldParentOrgID = big.NewInt(1 << 27) payoutSubscriptionQueryRecordPascalFieldSource = big.NewInt(1 << 28) ) type PayoutSubscriptionQueryRecordPascal struct { // The payout subscription's ID. - IdOutSubscription *int64 `json:"IdOutSubscription,omitempty" url:"IdOutSubscription,omitempty"` + IDOutSubscription *int64 `json:"IdOutSubscription,omitempty" url:"IdOutSubscription,omitempty"` // The payout subscription's status. // - 0: Paused // - 1: Active @@ -1742,10 +1742,10 @@ type PayoutSubscriptionQueryRecordPascal struct { Vendor *VendorQueryRecord `json:"Vendor,omitempty" url:"Vendor,omitempty"` // Bills associated with the payout subscription. BillData []*BillPayOutData `json:"BillData,omitempty" url:"BillData,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"ExternalPaypointID,omitempty" url:"ExternalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"ExternalPaypointID,omitempty" url:"ExternalPaypointID,omitempty"` // The payout subscription's payment method. Method *string `json:"Method,omitempty" url:"Method,omitempty"` - PaypointId *PaypointId `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *PaypointID `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // The payout subscription amount, including any fees. TotalAmount *float64 `json:"TotalAmount,omitempty" url:"TotalAmount,omitempty"` // The payout subscription amount, minus any fees. @@ -1767,7 +1767,7 @@ type PayoutSubscriptionQueryRecordPascal struct { LeftCycles *int `json:"LeftCycles,omitempty" url:"LeftCycles,omitempty"` // The last time the payout subscription was processed. LastRun *time.Time `json:"LastRun,omitempty" url:"LastRun,omitempty"` - EntrypageId *EntrypageId `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` + EntrypageID *EntrypageID `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` // When `true`, the payout subscription has no explicit end date and runs until canceled. UntilCancelled *bool `json:"UntilCancelled,omitempty" url:"UntilCancelled,omitempty"` // The last date and time the payout subscription was updated. @@ -1781,7 +1781,7 @@ type PayoutSubscriptionQueryRecordPascal struct { // The paypoint's entryname. PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` Source *Source `json:"Source,omitempty" url:"Source,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -1791,11 +1791,11 @@ type PayoutSubscriptionQueryRecordPascal struct { rawJSON json.RawMessage } -func (p *PayoutSubscriptionQueryRecordPascal) GetIdOutSubscription() *int64 { +func (p *PayoutSubscriptionQueryRecordPascal) GetIDOutSubscription() *int64 { if p == nil { return nil } - return p.IdOutSubscription + return p.IDOutSubscription } func (p *PayoutSubscriptionQueryRecordPascal) GetStatus() *int { @@ -1826,11 +1826,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) GetBillData() []*BillPayOutData { return p.BillData } -func (p *PayoutSubscriptionQueryRecordPascal) GetExternalPaypointId() *ExternalPaypointId { +func (p *PayoutSubscriptionQueryRecordPascal) GetExternalPaypointID() *ExternalPaypointID { if p == nil { return nil } - return p.ExternalPaypointId + return p.ExternalPaypointID } func (p *PayoutSubscriptionQueryRecordPascal) GetMethod() *string { @@ -1840,11 +1840,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) GetMethod() *string { return p.Method } -func (p *PayoutSubscriptionQueryRecordPascal) GetPaypointId() *PaypointId { +func (p *PayoutSubscriptionQueryRecordPascal) GetPaypointID() *PaypointID { if p == nil { return nil } - return p.PaypointId + return p.PaypointID } func (p *PayoutSubscriptionQueryRecordPascal) GetTotalAmount() *float64 { @@ -1924,11 +1924,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) GetLastRun() *time.Time { return p.LastRun } -func (p *PayoutSubscriptionQueryRecordPascal) GetEntrypageId() *EntrypageId { +func (p *PayoutSubscriptionQueryRecordPascal) GetEntrypageID() *EntrypageID { if p == nil { return nil } - return p.EntrypageId + return p.EntrypageID } func (p *PayoutSubscriptionQueryRecordPascal) GetUntilCancelled() *bool { @@ -1980,11 +1980,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) GetParentOrgName() *OrgParentName return p.ParentOrgName } -func (p *PayoutSubscriptionQueryRecordPascal) GetParentOrgId() *OrgParentId { +func (p *PayoutSubscriptionQueryRecordPascal) GetParentOrgID() *OrgParentID { if p == nil { return nil } - return p.ParentOrgId + return p.ParentOrgID } func (p *PayoutSubscriptionQueryRecordPascal) GetSource() *Source { @@ -2008,11 +2008,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) require(field *big.Int) { p.explicitFields.Or(p.explicitFields, field) } -// SetIdOutSubscription sets the IdOutSubscription field and marks it as non-optional; +// SetIDOutSubscription sets the IDOutSubscription field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecordPascal) SetIdOutSubscription(idOutSubscription *int64) { - p.IdOutSubscription = idOutSubscription - p.require(payoutSubscriptionQueryRecordPascalFieldIdOutSubscription) +func (p *PayoutSubscriptionQueryRecordPascal) SetIDOutSubscription(idOutSubscription *int64) { + p.IDOutSubscription = idOutSubscription + p.require(payoutSubscriptionQueryRecordPascalFieldIDOutSubscription) } // SetStatus sets the Status field and marks it as non-optional; @@ -2043,11 +2043,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) SetBillData(billData []*BillPayOut p.require(payoutSubscriptionQueryRecordPascalFieldBillData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecordPascal) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - p.ExternalPaypointId = externalPaypointId - p.require(payoutSubscriptionQueryRecordPascalFieldExternalPaypointId) +func (p *PayoutSubscriptionQueryRecordPascal) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + p.ExternalPaypointID = externalPaypointID + p.require(payoutSubscriptionQueryRecordPascalFieldExternalPaypointID) } // SetMethod sets the Method field and marks it as non-optional; @@ -2057,11 +2057,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) SetMethod(method *string) { p.require(payoutSubscriptionQueryRecordPascalFieldMethod) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecordPascal) SetPaypointId(paypointId *PaypointId) { - p.PaypointId = paypointId - p.require(payoutSubscriptionQueryRecordPascalFieldPaypointId) +func (p *PayoutSubscriptionQueryRecordPascal) SetPaypointID(paypointID *PaypointID) { + p.PaypointID = paypointID + p.require(payoutSubscriptionQueryRecordPascalFieldPaypointID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -2141,11 +2141,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) SetLastRun(lastRun *time.Time) { p.require(payoutSubscriptionQueryRecordPascalFieldLastRun) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecordPascal) SetEntrypageId(entrypageId *EntrypageId) { - p.EntrypageId = entrypageId - p.require(payoutSubscriptionQueryRecordPascalFieldEntrypageId) +func (p *PayoutSubscriptionQueryRecordPascal) SetEntrypageID(entrypageID *EntrypageID) { + p.EntrypageID = entrypageID + p.require(payoutSubscriptionQueryRecordPascalFieldEntrypageID) } // SetUntilCancelled sets the UntilCancelled field and marks it as non-optional; @@ -2197,11 +2197,11 @@ func (p *PayoutSubscriptionQueryRecordPascal) SetParentOrgName(parentOrgName *Or p.require(payoutSubscriptionQueryRecordPascalFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionQueryRecordPascal) SetParentOrgId(parentOrgId *OrgParentId) { - p.ParentOrgId = parentOrgId - p.require(payoutSubscriptionQueryRecordPascalFieldParentOrgId) +func (p *PayoutSubscriptionQueryRecordPascal) SetParentOrgID(parentOrgID *OrgParentID) { + p.ParentOrgID = parentOrgID + p.require(payoutSubscriptionQueryRecordPascalFieldParentOrgID) } // SetSource sets the Source field and marks it as non-optional; @@ -2284,7 +2284,7 @@ func (p *PayoutSubscriptionQueryRecordPascal) String() string { var ( payoutSubscriptionRequestBodyFieldEntryPoint = big.NewInt(1 << 0) payoutSubscriptionRequestBodyFieldSubdomain = big.NewInt(1 << 1) - payoutSubscriptionRequestBodyFieldAccountId = big.NewInt(1 << 2) + payoutSubscriptionRequestBodyFieldAccountID = big.NewInt(1 << 2) payoutSubscriptionRequestBodyFieldSource = big.NewInt(1 << 3) payoutSubscriptionRequestBodyFieldSetPause = big.NewInt(1 << 4) payoutSubscriptionRequestBodyFieldPaymentMethod = big.NewInt(1 << 5) @@ -2297,7 +2297,7 @@ var ( type PayoutSubscriptionRequestBody struct { EntryPoint Entrypointfield `json:"entryPoint" url:"entryPoint"` Subdomain *Subdomain `json:"subdomain,omitempty" url:"subdomain,omitempty"` - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` Source *Source `json:"source,omitempty" url:"source,omitempty"` SetPause *PayoutSetPause `json:"setPause,omitempty" url:"setPause,omitempty"` // Payment method for the payout subscription. Supports `ach`, `vcard`, and `check`. The `managed` method isn't supported for payout subscriptions. @@ -2332,11 +2332,11 @@ func (p *PayoutSubscriptionRequestBody) GetSubdomain() *Subdomain { return p.Subdomain } -func (p *PayoutSubscriptionRequestBody) GetAccountId() *AccountId { +func (p *PayoutSubscriptionRequestBody) GetAccountID() *AccountID { if p == nil { return nil } - return p.AccountId + return p.AccountID } func (p *PayoutSubscriptionRequestBody) GetSource() *Source { @@ -2416,11 +2416,11 @@ func (p *PayoutSubscriptionRequestBody) SetSubdomain(subdomain *Subdomain) { p.require(payoutSubscriptionRequestBodyFieldSubdomain) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutSubscriptionRequestBody) SetAccountId(accountId *AccountId) { - p.AccountId = accountId - p.require(payoutSubscriptionRequestBodyFieldAccountId) +func (p *PayoutSubscriptionRequestBody) SetAccountID(accountID *AccountID) { + p.AccountID = accountID + p.require(payoutSubscriptionRequestBodyFieldAccountID) } // SetSource sets the Source field and marks it as non-optional; @@ -2754,7 +2754,7 @@ var ( updatePayoutSubscriptionResponseFieldIsSuccess = big.NewInt(1 << 0) updatePayoutSubscriptionResponseFieldResponseText = big.NewInt(1 << 1) updatePayoutSubscriptionResponseFieldResponseData = big.NewInt(1 << 2) - updatePayoutSubscriptionResponseFieldCustomerId = big.NewInt(1 << 3) + updatePayoutSubscriptionResponseFieldCustomerID = big.NewInt(1 << 3) ) type UpdatePayoutSubscriptionResponse struct { @@ -2764,7 +2764,7 @@ type UpdatePayoutSubscriptionResponse struct { // // If `isSuccess` = false, this contains the reason for the failure. ResponseData *string `json:"responseData,omitempty" url:"responseData,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -2794,11 +2794,11 @@ func (u *UpdatePayoutSubscriptionResponse) GetResponseData() *string { return u.ResponseData } -func (u *UpdatePayoutSubscriptionResponse) GetCustomerId() *CustomerId { +func (u *UpdatePayoutSubscriptionResponse) GetCustomerID() *CustomerID { if u == nil { return nil } - return u.CustomerId + return u.CustomerID } func (u *UpdatePayoutSubscriptionResponse) GetExtraProperties() map[string]interface{} { @@ -2836,11 +2836,11 @@ func (u *UpdatePayoutSubscriptionResponse) SetResponseData(responseData *string) u.require(updatePayoutSubscriptionResponseFieldResponseData) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UpdatePayoutSubscriptionResponse) SetCustomerId(customerId *CustomerId) { - u.CustomerId = customerId - u.require(updatePayoutSubscriptionResponseFieldCustomerId) +func (u *UpdatePayoutSubscriptionResponse) SetCustomerID(customerID *CustomerID) { + u.CustomerID = customerID + u.require(updatePayoutSubscriptionResponseFieldCustomerID) } func (u *UpdatePayoutSubscriptionResponse) UnmarshalJSON(data []byte) error { diff --git a/payout_subscription_test.go b/payout_subscription_test.go index b00fe10..5a76176 100644 --- a/payout_subscription_test.go +++ b/payout_subscription_test.go @@ -56,11 +56,11 @@ func TestSettersMarkExplicitRequestPayoutSchedule(t *testing.T) { } func TestSettersBillPayOutDataRequest(t *testing.T) { - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &BillPayOutDataRequest{} - var fernTestValueBillId *int64 - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *int64 + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -155,28 +155,28 @@ func TestSettersBillPayOutDataRequest(t *testing.T) { } func TestGettersBillPayOutDataRequest(t *testing.T) { - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutDataRequest{} var expected *int64 - obj.BillId = expected + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutDataRequest{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillPayOutDataRequest // Should not panic - getters should handle nil receiver gracefully @@ -185,7 +185,7 @@ func TestGettersBillPayOutDataRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetComments", func(t *testing.T) { @@ -554,14 +554,14 @@ func TestGettersBillPayOutDataRequest(t *testing.T) { } func TestSettersMarkExplicitBillPayOutDataRequest(t *testing.T) { - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutDataRequest{} - var fernTestValueBillId *int64 + var fernTestValueBillID *int64 // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -953,11 +953,11 @@ func TestSettersAddPayoutSubscriptionResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &AddPayoutSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -1043,28 +1043,28 @@ func TestGettersAddPayoutSubscriptionResponse(t *testing.T) { _ = obj.GetResponseData() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &AddPayoutSubscriptionResponse{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AddPayoutSubscriptionResponse{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AddPayoutSubscriptionResponse // Should not panic - getters should handle nil receiver gracefully @@ -1073,7 +1073,7 @@ func TestGettersAddPayoutSubscriptionResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) } @@ -1172,14 +1172,14 @@ func TestSettersMarkExplicitAddPayoutSubscriptionResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddPayoutSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1676,19 +1676,19 @@ func TestSettersPayoutPaymentDetail(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &PayoutPaymentDetail{} - var fernTestValueOrderId *string - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *string + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderIdAlternative", func(t *testing.T) { + t.Run("SetOrderIDAlternative", func(t *testing.T) { obj := &PayoutPaymentDetail{} - var fernTestValueOrderIdAlternative *string - obj.SetOrderIdAlternative(fernTestValueOrderIdAlternative) - assert.Equal(t, fernTestValueOrderIdAlternative, obj.OrderIdAlternative) + var fernTestValueOrderIDAlternative *string + obj.SetOrderIDAlternative(fernTestValueOrderIDAlternative) + assert.Equal(t, fernTestValueOrderIDAlternative, obj.OrderIDAlternative) assert.NotNil(t, obj.explicitFields) }) @@ -1724,11 +1724,11 @@ func TestSettersPayoutPaymentDetail(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayabliTransId", func(t *testing.T) { + t.Run("SetPayabliTransID", func(t *testing.T) { obj := &PayoutPaymentDetail{} - var fernTestValuePayabliTransId *string - obj.SetPayabliTransId(fernTestValuePayabliTransId) - assert.Equal(t, fernTestValuePayabliTransId, obj.PayabliTransId) + var fernTestValuePayabliTransID *string + obj.SetPayabliTransID(fernTestValuePayabliTransID) + assert.Equal(t, fernTestValuePayabliTransID, obj.PayabliTransID) assert.NotNil(t, obj.explicitFields) }) @@ -1898,28 +1898,28 @@ func TestGettersPayoutPaymentDetail(t *testing.T) { _ = obj.GetOrderDescription() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} var expected *string - obj.OrderId = expected + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutPaymentDetail // Should not panic - getters should handle nil receiver gracefully @@ -1928,31 +1928,31 @@ func TestGettersPayoutPaymentDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) - t.Run("GetOrderIdAlternative", func(t *testing.T) { + t.Run("GetOrderIDAlternative", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} var expected *string - obj.OrderIdAlternative = expected + obj.OrderIDAlternative = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderIdAlternative(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderIDAlternative(), "getter should return the property value") }) - t.Run("GetOrderIdAlternative_NilValue", func(t *testing.T) { + t.Run("GetOrderIDAlternative_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - obj.OrderIdAlternative = nil + obj.OrderIDAlternative = nil // Act & Assert - assert.Nil(t, obj.GetOrderIdAlternative(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderIDAlternative(), "getter should return nil when property is nil") }) - t.Run("GetOrderIdAlternative_NilReceiver", func(t *testing.T) { + t.Run("GetOrderIDAlternative_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutPaymentDetail // Should not panic - getters should handle nil receiver gracefully @@ -1961,7 +1961,7 @@ func TestGettersPayoutPaymentDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderIdAlternative() // Should return zero value + _ = obj.GetOrderIDAlternative() // Should return zero value }) t.Run("GetPaymentDescription", func(t *testing.T) { @@ -2096,28 +2096,28 @@ func TestGettersPayoutPaymentDetail(t *testing.T) { _ = obj.GetSource() // Should return zero value }) - t.Run("GetPayabliTransId", func(t *testing.T) { + t.Run("GetPayabliTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} var expected *string - obj.PayabliTransId = expected + obj.PayabliTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayabliTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayabliTransID(), "getter should return the property value") }) - t.Run("GetPayabliTransId_NilValue", func(t *testing.T) { + t.Run("GetPayabliTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - obj.PayabliTransId = nil + obj.PayabliTransID = nil // Act & Assert - assert.Nil(t, obj.GetPayabliTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPayabliTransID(), "getter should return nil when property is nil") }) - t.Run("GetPayabliTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPayabliTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutPaymentDetail // Should not panic - getters should handle nil receiver gracefully @@ -2126,7 +2126,7 @@ func TestGettersPayoutPaymentDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayabliTransId() // Should return zero value + _ = obj.GetPayabliTransID() // Should return zero value }) t.Run("GetUnbundled", func(t *testing.T) { @@ -2320,14 +2320,14 @@ func TestSettersMarkExplicitPayoutPaymentDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - var fernTestValueOrderId *string + var fernTestValueOrderID *string // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2351,14 +2351,14 @@ func TestSettersMarkExplicitPayoutPaymentDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderIdAlternative_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderIDAlternative_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - var fernTestValueOrderIdAlternative *string + var fernTestValueOrderIDAlternative *string // Act - obj.SetOrderIdAlternative(fernTestValueOrderIdAlternative) + obj.SetOrderIDAlternative(fernTestValueOrderIDAlternative) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2506,14 +2506,14 @@ func TestSettersMarkExplicitPayoutPaymentDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayabliTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayabliTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutPaymentDetail{} - var fernTestValuePayabliTransId *string + var fernTestValuePayabliTransID *string // Act - obj.SetPayabliTransId(fernTestValuePayabliTransId) + obj.SetPayabliTransID(fernTestValuePayabliTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2796,11 +2796,11 @@ func TestSettersMarkExplicitPayoutScheduleDetail(t *testing.T) { } func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { - t.Run("SetIdOutSubscription", func(t *testing.T) { + t.Run("SetIDOutSubscription", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueIdOutSubscription *int64 - obj.SetIdOutSubscription(fernTestValueIdOutSubscription) - assert.Equal(t, fernTestValueIdOutSubscription, obj.IdOutSubscription) + var fernTestValueIDOutSubscription *int64 + obj.SetIDOutSubscription(fernTestValueIDOutSubscription) + assert.Equal(t, fernTestValueIDOutSubscription, obj.IDOutSubscription) assert.NotNil(t, obj.explicitFields) }) @@ -2836,11 +2836,11 @@ func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2852,11 +2852,11 @@ func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecord{} - var fernTestValuePaypointId *PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2948,11 +2948,11 @@ func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) @@ -3012,11 +3012,11 @@ func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -3031,28 +3031,28 @@ func TestSettersPayoutSubscriptionQueryRecord(t *testing.T) { } func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { - t.Run("GetIdOutSubscription", func(t *testing.T) { + t.Run("GetIDOutSubscription", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} var expected *int64 - obj.IdOutSubscription = expected + obj.IDOutSubscription = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOutSubscription(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOutSubscription(), "getter should return the property value") }) - t.Run("GetIdOutSubscription_NilValue", func(t *testing.T) { + t.Run("GetIDOutSubscription_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - obj.IdOutSubscription = nil + obj.IDOutSubscription = nil // Act & Assert - assert.Nil(t, obj.GetIdOutSubscription(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOutSubscription(), "getter should return nil when property is nil") }) - t.Run("GetIdOutSubscription_NilReceiver", func(t *testing.T) { + t.Run("GetIDOutSubscription_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -3061,7 +3061,7 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOutSubscription() // Should return zero value + _ = obj.GetIDOutSubscription() // Should return zero value }) t.Run("GetStatus", func(t *testing.T) { @@ -3196,28 +3196,28 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { _ = obj.GetBillData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -3226,7 +3226,7 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -3262,28 +3262,28 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var expected *PaypointId - obj.PaypointId = expected + var expected *PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -3292,7 +3292,7 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -3658,28 +3658,28 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { _ = obj.GetLastRun() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -3688,7 +3688,7 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) t.Run("GetUntilCancelled", func(t *testing.T) { @@ -3922,28 +3922,28 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -3952,7 +3952,7 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetSource", func(t *testing.T) { @@ -3991,14 +3991,14 @@ func TestGettersPayoutSubscriptionQueryRecord(t *testing.T) { } func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { - t.Run("SetIdOutSubscription_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOutSubscription_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueIdOutSubscription *int64 + var fernTestValueIDOutSubscription *int64 // Act - obj.SetIdOutSubscription(fernTestValueIdOutSubscription) + obj.SetIDOutSubscription(fernTestValueIDOutSubscription) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4146,14 +4146,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4208,14 +4208,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var fernTestValuePaypointId *PaypointId + var fernTestValuePaypointID *PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4580,14 +4580,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4828,14 +4828,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecord{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4893,11 +4893,11 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecord(t *testing.T) { } func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { - t.Run("SetIdOutSubscription", func(t *testing.T) { + t.Run("SetIDOutSubscription", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueIdOutSubscription *int64 - obj.SetIdOutSubscription(fernTestValueIdOutSubscription) - assert.Equal(t, fernTestValueIdOutSubscription, obj.IdOutSubscription) + var fernTestValueIDOutSubscription *int64 + obj.SetIDOutSubscription(fernTestValueIDOutSubscription) + assert.Equal(t, fernTestValueIDOutSubscription, obj.IDOutSubscription) assert.NotNil(t, obj.explicitFields) }) @@ -4933,11 +4933,11 @@ func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -4949,11 +4949,11 @@ func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValuePaypointId *PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -5045,11 +5045,11 @@ func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) @@ -5109,11 +5109,11 @@ func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -5128,28 +5128,28 @@ func TestSettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { } func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { - t.Run("GetIdOutSubscription", func(t *testing.T) { + t.Run("GetIDOutSubscription", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} var expected *int64 - obj.IdOutSubscription = expected + obj.IDOutSubscription = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOutSubscription(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOutSubscription(), "getter should return the property value") }) - t.Run("GetIdOutSubscription_NilValue", func(t *testing.T) { + t.Run("GetIDOutSubscription_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - obj.IdOutSubscription = nil + obj.IDOutSubscription = nil // Act & Assert - assert.Nil(t, obj.GetIdOutSubscription(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOutSubscription(), "getter should return nil when property is nil") }) - t.Run("GetIdOutSubscription_NilReceiver", func(t *testing.T) { + t.Run("GetIDOutSubscription_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecordPascal // Should not panic - getters should handle nil receiver gracefully @@ -5158,7 +5158,7 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOutSubscription() // Should return zero value + _ = obj.GetIDOutSubscription() // Should return zero value }) t.Run("GetStatus", func(t *testing.T) { @@ -5293,28 +5293,28 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { _ = obj.GetBillData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecordPascal // Should not panic - getters should handle nil receiver gracefully @@ -5323,7 +5323,7 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -5359,28 +5359,28 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var expected *PaypointId - obj.PaypointId = expected + var expected *PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecordPascal // Should not panic - getters should handle nil receiver gracefully @@ -5389,7 +5389,7 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -5755,28 +5755,28 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { _ = obj.GetLastRun() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecordPascal // Should not panic - getters should handle nil receiver gracefully @@ -5785,7 +5785,7 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) t.Run("GetUntilCancelled", func(t *testing.T) { @@ -6019,28 +6019,28 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionQueryRecordPascal // Should not panic - getters should handle nil receiver gracefully @@ -6049,7 +6049,7 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetSource", func(t *testing.T) { @@ -6088,14 +6088,14 @@ func TestGettersPayoutSubscriptionQueryRecordPascal(t *testing.T) { } func TestSettersMarkExplicitPayoutSubscriptionQueryRecordPascal(t *testing.T) { - t.Run("SetIdOutSubscription_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOutSubscription_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueIdOutSubscription *int64 + var fernTestValueIDOutSubscription *int64 // Act - obj.SetIdOutSubscription(fernTestValueIdOutSubscription) + obj.SetIDOutSubscription(fernTestValueIDOutSubscription) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6243,14 +6243,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecordPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6305,14 +6305,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecordPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValuePaypointId *PaypointId + var fernTestValuePaypointID *PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6677,14 +6677,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecordPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6925,14 +6925,14 @@ func TestSettersMarkExplicitPayoutSubscriptionQueryRecordPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionQueryRecordPascal{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7006,11 +7006,11 @@ func TestSettersPayoutSubscriptionRequestBody(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &PayoutSubscriptionRequestBody{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -7129,28 +7129,28 @@ func TestGettersPayoutSubscriptionRequestBody(t *testing.T) { _ = obj.GetSubdomain() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionRequestBody{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionRequestBody{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutSubscriptionRequestBody // Should not panic - getters should handle nil receiver gracefully @@ -7159,7 +7159,7 @@ func TestGettersPayoutSubscriptionRequestBody(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetSource", func(t *testing.T) { @@ -7458,14 +7458,14 @@ func TestSettersMarkExplicitPayoutSubscriptionRequestBody(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutSubscriptionRequestBody{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8183,11 +8183,11 @@ func TestSettersUpdatePayoutSubscriptionResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &UpdatePayoutSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -8283,28 +8283,28 @@ func TestGettersUpdatePayoutSubscriptionResponse(t *testing.T) { _ = obj.GetResponseData() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdatePayoutSubscriptionResponse{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdatePayoutSubscriptionResponse{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *UpdatePayoutSubscriptionResponse // Should not panic - getters should handle nil receiver gracefully @@ -8313,7 +8313,7 @@ func TestGettersUpdatePayoutSubscriptionResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) } @@ -8412,14 +8412,14 @@ func TestSettersMarkExplicitUpdatePayoutSubscriptionResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdatePayoutSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/payoutsubscription/payout_subscription_test/payout_subscription_test.go b/payoutsubscription/payout_subscription_test/payout_subscription_test.go index de4dde7..bcba499 100644 --- a/payoutsubscription/payout_subscription_test/payout_subscription_test.go +++ b/payoutsubscription/payout_subscription_test/payout_subscription_test.go @@ -100,7 +100,7 @@ func TestPayoutSubscriptionCreatePayoutSubscriptionWithWireMock( ), }, VendorData: &payabli.RequestOutAuthorizeVendorData{ - VendorId: payabli.Int( + VendorID: payabli.Int( 1501, ), }, diff --git a/paypoint.go b/paypoint.go index d60e6db..e1cef79 100644 --- a/paypoint.go +++ b/paypoint.go @@ -35,14 +35,14 @@ func (g *GetEntryConfigRequest) SetEntrypages(entrypages *string) { } var ( - getBasicEntryByIdResponseFieldIsSuccess = big.NewInt(1 << 0) - getBasicEntryByIdResponseFieldPageIdentifier = big.NewInt(1 << 1) - getBasicEntryByIdResponseFieldResponseCode = big.NewInt(1 << 2) - getBasicEntryByIdResponseFieldResponseData = big.NewInt(1 << 3) - getBasicEntryByIdResponseFieldResponseText = big.NewInt(1 << 4) + getBasicEntryByIDResponseFieldIsSuccess = big.NewInt(1 << 0) + getBasicEntryByIDResponseFieldPageIdentifier = big.NewInt(1 << 1) + getBasicEntryByIDResponseFieldResponseCode = big.NewInt(1 << 2) + getBasicEntryByIDResponseFieldResponseData = big.NewInt(1 << 3) + getBasicEntryByIDResponseFieldResponseText = big.NewInt(1 << 4) ) -type GetBasicEntryByIdResponse struct { +type GetBasicEntryByIDResponse struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` @@ -56,49 +56,49 @@ type GetBasicEntryByIdResponse struct { rawJSON json.RawMessage } -func (g *GetBasicEntryByIdResponse) GetIsSuccess() IsSuccess { +func (g *GetBasicEntryByIDResponse) GetIsSuccess() IsSuccess { if g == nil { return false } return g.IsSuccess } -func (g *GetBasicEntryByIdResponse) GetPageIdentifier() *PageIdentifier { +func (g *GetBasicEntryByIDResponse) GetPageIdentifier() *PageIdentifier { if g == nil { return nil } return g.PageIdentifier } -func (g *GetBasicEntryByIdResponse) GetResponseCode() *Responsecode { +func (g *GetBasicEntryByIDResponse) GetResponseCode() *Responsecode { if g == nil { return nil } return g.ResponseCode } -func (g *GetBasicEntryByIdResponse) GetResponseData() *PaypointEntryConfig { +func (g *GetBasicEntryByIDResponse) GetResponseData() *PaypointEntryConfig { if g == nil { return nil } return g.ResponseData } -func (g *GetBasicEntryByIdResponse) GetResponseText() ResponseText { +func (g *GetBasicEntryByIDResponse) GetResponseText() ResponseText { if g == nil { return "" } return g.ResponseText } -func (g *GetBasicEntryByIdResponse) GetExtraProperties() map[string]interface{} { +func (g *GetBasicEntryByIDResponse) GetExtraProperties() map[string]interface{} { if g == nil { return nil } return g.extraProperties } -func (g *GetBasicEntryByIdResponse) require(field *big.Int) { +func (g *GetBasicEntryByIDResponse) require(field *big.Int) { if g.explicitFields == nil { g.explicitFields = big.NewInt(0) } @@ -107,46 +107,46 @@ func (g *GetBasicEntryByIdResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBasicEntryByIdResponse) SetIsSuccess(isSuccess IsSuccess) { +func (g *GetBasicEntryByIDResponse) SetIsSuccess(isSuccess IsSuccess) { g.IsSuccess = isSuccess - g.require(getBasicEntryByIdResponseFieldIsSuccess) + g.require(getBasicEntryByIDResponseFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBasicEntryByIdResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (g *GetBasicEntryByIDResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { g.PageIdentifier = pageIdentifier - g.require(getBasicEntryByIdResponseFieldPageIdentifier) + g.require(getBasicEntryByIDResponseFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBasicEntryByIdResponse) SetResponseCode(responseCode *Responsecode) { +func (g *GetBasicEntryByIDResponse) SetResponseCode(responseCode *Responsecode) { g.ResponseCode = responseCode - g.require(getBasicEntryByIdResponseFieldResponseCode) + g.require(getBasicEntryByIDResponseFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBasicEntryByIdResponse) SetResponseData(responseData *PaypointEntryConfig) { +func (g *GetBasicEntryByIDResponse) SetResponseData(responseData *PaypointEntryConfig) { g.ResponseData = responseData - g.require(getBasicEntryByIdResponseFieldResponseData) + g.require(getBasicEntryByIDResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetBasicEntryByIdResponse) SetResponseText(responseText ResponseText) { +func (g *GetBasicEntryByIDResponse) SetResponseText(responseText ResponseText) { g.ResponseText = responseText - g.require(getBasicEntryByIdResponseFieldResponseText) + g.require(getBasicEntryByIDResponseFieldResponseText) } -func (g *GetBasicEntryByIdResponse) UnmarshalJSON(data []byte) error { - type unmarshaler GetBasicEntryByIdResponse +func (g *GetBasicEntryByIDResponse) UnmarshalJSON(data []byte) error { + type unmarshaler GetBasicEntryByIDResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *g = GetBasicEntryByIdResponse(value) + *g = GetBasicEntryByIDResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *g) if err != nil { return err @@ -156,8 +156,8 @@ func (g *GetBasicEntryByIdResponse) UnmarshalJSON(data []byte) error { return nil } -func (g *GetBasicEntryByIdResponse) MarshalJSON() ([]byte, error) { - type embed GetBasicEntryByIdResponse +func (g *GetBasicEntryByIDResponse) MarshalJSON() ([]byte, error) { + type embed GetBasicEntryByIDResponse var marshaler = struct { embed }{ @@ -167,7 +167,7 @@ func (g *GetBasicEntryByIdResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (g *GetBasicEntryByIdResponse) String() string { +func (g *GetBasicEntryByIDResponse) String() string { if g == nil { return "" } @@ -595,13 +595,13 @@ func (m *MigratePaypointResponse) String() string { } var ( - notificationRequestFieldNotificationUrl = big.NewInt(1 << 0) + notificationRequestFieldNotificationURL = big.NewInt(1 << 0) notificationRequestFieldWebHeaderParameters = big.NewInt(1 << 1) ) type NotificationRequest struct { // Complete HTTP URL receiving the notification - NotificationUrl string `json:"notificationUrl" url:"notificationUrl"` + NotificationURL string `json:"notificationUrl" url:"notificationUrl"` // A dictionary of key-value pairs to be inserted in the header when the notification request is submitted WebHeaderParameters []*WebHeaderParameter `json:"webHeaderParameters,omitempty" url:"webHeaderParameters,omitempty"` @@ -612,11 +612,11 @@ type NotificationRequest struct { rawJSON json.RawMessage } -func (n *NotificationRequest) GetNotificationUrl() string { +func (n *NotificationRequest) GetNotificationURL() string { if n == nil { return "" } - return n.NotificationUrl + return n.NotificationURL } func (n *NotificationRequest) GetWebHeaderParameters() []*WebHeaderParameter { @@ -640,11 +640,11 @@ func (n *NotificationRequest) require(field *big.Int) { n.explicitFields.Or(n.explicitFields, field) } -// SetNotificationUrl sets the NotificationUrl field and marks it as non-optional; +// SetNotificationURL sets the NotificationURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationRequest) SetNotificationUrl(notificationUrl string) { - n.NotificationUrl = notificationUrl - n.require(notificationRequestFieldNotificationUrl) +func (n *NotificationRequest) SetNotificationURL(notificationURL string) { + n.NotificationURL = notificationURL + n.require(notificationRequestFieldNotificationURL) } // SetWebHeaderParameters sets the WebHeaderParameters field and marks it as non-optional; @@ -698,14 +698,14 @@ func (n *NotificationRequest) String() string { var ( paypointMoveRequestFieldEntryPoint = big.NewInt(1 << 0) - paypointMoveRequestFieldNewParentOrganizationId = big.NewInt(1 << 1) + paypointMoveRequestFieldNewParentOrganizationID = big.NewInt(1 << 1) paypointMoveRequestFieldNotificationRequest = big.NewInt(1 << 2) ) type PaypointMoveRequest struct { EntryPoint Entrypointfield `json:"entryPoint" url:"entryPoint"` // The ID for the paypoint's new parent organization. - NewParentOrganizationId int `json:"newParentOrganizationId" url:"newParentOrganizationId"` + NewParentOrganizationID int `json:"newParentOrganizationId" url:"newParentOrganizationId"` // Optional notification request object for a webhook NotificationRequest *NotificationRequest `json:"notificationRequest,omitempty" url:"notificationRequest,omitempty"` @@ -723,11 +723,11 @@ func (p *PaypointMoveRequest) GetEntryPoint() Entrypointfield { return p.EntryPoint } -func (p *PaypointMoveRequest) GetNewParentOrganizationId() int { +func (p *PaypointMoveRequest) GetNewParentOrganizationID() int { if p == nil { return 0 } - return p.NewParentOrganizationId + return p.NewParentOrganizationID } func (p *PaypointMoveRequest) GetNotificationRequest() *NotificationRequest { @@ -758,11 +758,11 @@ func (p *PaypointMoveRequest) SetEntryPoint(entryPoint Entrypointfield) { p.require(paypointMoveRequestFieldEntryPoint) } -// SetNewParentOrganizationId sets the NewParentOrganizationId field and marks it as non-optional; +// SetNewParentOrganizationID sets the NewParentOrganizationID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaypointMoveRequest) SetNewParentOrganizationId(newParentOrganizationId int) { - p.NewParentOrganizationId = newParentOrganizationId - p.require(paypointMoveRequestFieldNewParentOrganizationId) +func (p *PaypointMoveRequest) SetNewParentOrganizationID(newParentOrganizationID int) { + p.NewParentOrganizationID = newParentOrganizationID + p.require(paypointMoveRequestFieldNewParentOrganizationID) } // SetNotificationRequest sets the NotificationRequest field and marks it as non-optional; diff --git a/paypoint/client.go b/paypoint/client.go index abeae25..5e09b59 100644 --- a/paypoint/client.go +++ b/paypoint/client.go @@ -51,13 +51,13 @@ func (c *Client) GetBasicEntry( } // Retrieves the basic details for a paypoint by ID. -func (c *Client) GetBasicEntryById( +func (c *Client) GetBasicEntryByID( ctx context.Context, // Paypoint ID. You can find this value by querying `/api/Query/paypoints/{orgId}` idPaypoint string, opts ...option.RequestOption, -) (*payabli.GetBasicEntryByIdResponse, error) { - response, err := c.WithRawResponse.GetBasicEntryById( +) (*payabli.GetBasicEntryByIDResponse, error) { + response, err := c.WithRawResponse.GetBasicEntryByID( ctx, idPaypoint, opts..., @@ -117,7 +117,7 @@ func (c *Client) RemovePage( // Payment page identifier. The subdomain value is the last portion of the payment page URL. For example, in`https://paypages-sandbox.payabli.com/513823dc10/pay-your-fees-1`, the subdomain is `pay-your-fees-1`. subdomain string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseGeneric2Part, error) { +) (*payabli.PayabliAPIResponseGeneric2Part, error) { response, err := c.WithRawResponse.RemovePage( ctx, entry, @@ -137,7 +137,7 @@ func (c *Client) SaveLogo( entry string, request *payabli.FileContent, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse00Responsedatanonobject, error) { +) (*payabli.PayabliAPIResponse00Responsedatanonobject, error) { response, err := c.WithRawResponse.SaveLogo( ctx, entry, diff --git a/paypoint/paypoint_test/paypoint_test.go b/paypoint/paypoint_test/paypoint_test.go index 92a1066..ea0068f 100644 --- a/paypoint/paypoint_test/paypoint_test.go +++ b/paypoint/paypoint_test/paypoint_test.go @@ -84,7 +84,7 @@ func TestPaypointGetBasicEntryWithWireMock( VerifyRequestCount(t, "TestPaypointGetBasicEntryWithWireMock", "GET", "/Paypoint/basic/8cfec329267", nil, 1) } -func TestPaypointGetBasicEntryByIdWithWireMock( +func TestPaypointGetBasicEntryByIDWithWireMock( t *testing.T, ) { WireMockBaseURL := os.Getenv("WIREMOCK_URL") @@ -94,16 +94,16 @@ func TestPaypointGetBasicEntryByIdWithWireMock( client := client.NewClient( option.WithBaseURL(WireMockBaseURL), ) - _, invocationErr := client.Paypoint.GetBasicEntryById( + _, invocationErr := client.Paypoint.GetBasicEntryByID( context.TODO(), "198", option.WithHTTPHeader( - http.Header{"X-Test-Id": []string{"TestPaypointGetBasicEntryByIdWithWireMock"}}, + http.Header{"X-Test-Id": []string{"TestPaypointGetBasicEntryByIDWithWireMock"}}, ), ) require.NoError(t, invocationErr, "Client method call should succeed") - VerifyRequestCount(t, "TestPaypointGetBasicEntryByIdWithWireMock", "GET", "/Paypoint/basicById/198", nil, 1) + VerifyRequestCount(t, "TestPaypointGetBasicEntryByIDWithWireMock", "GET", "/Paypoint/basicById/198", nil, 1) } func TestPaypointGetEntryConfigWithWireMock( @@ -234,9 +234,9 @@ func TestPaypointMigrateWithWireMock( ) request := &payabli.PaypointMoveRequest{ EntryPoint: "473abc123def", - NewParentOrganizationId: 123, + NewParentOrganizationID: 123, NotificationRequest: &payabli.NotificationRequest{ - NotificationUrl: "https://webhook-test.yoursie.com", + NotificationURL: "https://webhook-test.yoursie.com", WebHeaderParameters: []*payabli.WebHeaderParameter{ &payabli.WebHeaderParameter{ Key: "testheader", diff --git a/paypoint/raw_client.go b/paypoint/raw_client.go index d806ff0..e495b49 100644 --- a/paypoint/raw_client.go +++ b/paypoint/raw_client.go @@ -75,12 +75,12 @@ func (r *RawClient) GetBasicEntry( }, nil } -func (r *RawClient) GetBasicEntryById( +func (r *RawClient) GetBasicEntryByID( ctx context.Context, // Paypoint ID. You can find this value by querying `/api/Query/paypoints/{orgId}` idPaypoint string, opts ...option.RequestOption, -) (*core.Response[*payabli.GetBasicEntryByIdResponse], error) { +) (*core.Response[*payabli.GetBasicEntryByIDResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -95,7 +95,7 @@ func (r *RawClient) GetBasicEntryById( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.GetBasicEntryByIdResponse + var response *payabli.GetBasicEntryByIDResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -113,7 +113,7 @@ func (r *RawClient) GetBasicEntryById( if err != nil { return nil, err } - return &core.Response[*payabli.GetBasicEntryByIdResponse]{ + return &core.Response[*payabli.GetBasicEntryByIDResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -228,7 +228,7 @@ func (r *RawClient) RemovePage( // Payment page identifier. The subdomain value is the last portion of the payment page URL. For example, in`https://paypages-sandbox.payabli.com/513823dc10/pay-your-fees-1`, the subdomain is `pay-your-fees-1`. subdomain string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseGeneric2Part], error) { +) (*core.Response[*payabli.PayabliAPIResponseGeneric2Part], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -244,7 +244,7 @@ func (r *RawClient) RemovePage( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseGeneric2Part + var response *payabli.PayabliAPIResponseGeneric2Part raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -262,7 +262,7 @@ func (r *RawClient) RemovePage( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseGeneric2Part]{ + return &core.Response[*payabli.PayabliAPIResponseGeneric2Part]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -275,7 +275,7 @@ func (r *RawClient) SaveLogo( entry string, request *payabli.FileContent, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse00Responsedatanonobject], error) { +) (*core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -290,7 +290,7 @@ func (r *RawClient) SaveLogo( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse00Responsedatanonobject + var response *payabli.PayabliAPIResponse00Responsedatanonobject raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -309,7 +309,7 @@ func (r *RawClient) SaveLogo( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse00Responsedatanonobject]{ + return &core.Response[*payabli.PayabliAPIResponse00Responsedatanonobject]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/paypoint_test.go b/paypoint_test.go index 09d3eba..b52f44b 100644 --- a/paypoint_test.go +++ b/paypoint_test.go @@ -54,9 +54,9 @@ func TestSettersMarkExplicitGetEntryConfigRequest(t *testing.T) { } -func TestSettersGetBasicEntryByIdResponse(t *testing.T) { +func TestSettersGetBasicEntryByIDResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -64,7 +64,7 @@ func TestSettersGetBasicEntryByIdResponse(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -72,7 +72,7 @@ func TestSettersGetBasicEntryByIdResponse(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -80,7 +80,7 @@ func TestSettersGetBasicEntryByIdResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseData *PaypointEntryConfig obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -88,7 +88,7 @@ func TestSettersGetBasicEntryByIdResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -97,11 +97,11 @@ func TestSettersGetBasicEntryByIdResponse(t *testing.T) { } -func TestGettersGetBasicEntryByIdResponse(t *testing.T) { +func TestGettersGetBasicEntryByIDResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var expected IsSuccess obj.IsSuccess = expected @@ -111,7 +111,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -124,7 +124,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -135,7 +135,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} obj.PageIdentifier = nil // Act & Assert @@ -144,7 +144,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -157,7 +157,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var expected *Responsecode obj.ResponseCode = expected @@ -168,7 +168,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} obj.ResponseCode = nil // Act & Assert @@ -177,7 +177,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -190,7 +190,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var expected *PaypointEntryConfig obj.ResponseData = expected @@ -201,7 +201,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} obj.ResponseData = nil // Act & Assert @@ -210,7 +210,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -223,7 +223,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var expected ResponseText obj.ResponseText = expected @@ -233,7 +233,7 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -245,11 +245,11 @@ func TestGettersGetBasicEntryByIdResponse(t *testing.T) { } -func TestSettersMarkExplicitGetBasicEntryByIdResponse(t *testing.T) { +func TestSettersMarkExplicitGetBasicEntryByIDResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueIsSuccess IsSuccess // Act @@ -280,7 +280,7 @@ func TestSettersMarkExplicitGetBasicEntryByIdResponse(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -311,7 +311,7 @@ func TestSettersMarkExplicitGetBasicEntryByIdResponse(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseCode *Responsecode // Act @@ -342,7 +342,7 @@ func TestSettersMarkExplicitGetBasicEntryByIdResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseData *PaypointEntryConfig // Act @@ -373,7 +373,7 @@ func TestSettersMarkExplicitGetBasicEntryByIdResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} var fernTestValueResponseText ResponseText // Act @@ -1307,11 +1307,11 @@ func TestSettersMarkExplicitMigratePaypointResponse(t *testing.T) { } func TestSettersNotificationRequest(t *testing.T) { - t.Run("SetNotificationUrl", func(t *testing.T) { + t.Run("SetNotificationURL", func(t *testing.T) { obj := &NotificationRequest{} - var fernTestValueNotificationUrl string - obj.SetNotificationUrl(fernTestValueNotificationUrl) - assert.Equal(t, fernTestValueNotificationUrl, obj.NotificationUrl) + var fernTestValueNotificationURL string + obj.SetNotificationURL(fernTestValueNotificationURL) + assert.Equal(t, fernTestValueNotificationURL, obj.NotificationURL) assert.NotNil(t, obj.explicitFields) }) @@ -1326,18 +1326,18 @@ func TestSettersNotificationRequest(t *testing.T) { } func TestGettersNotificationRequest(t *testing.T) { - t.Run("GetNotificationUrl", func(t *testing.T) { + t.Run("GetNotificationURL", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationRequest{} var expected string - obj.NotificationUrl = expected + obj.NotificationURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetNotificationUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNotificationURL(), "getter should return the property value") }) - t.Run("GetNotificationUrl_NilReceiver", func(t *testing.T) { + t.Run("GetNotificationURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationRequest // Should not panic - getters should handle nil receiver gracefully @@ -1346,7 +1346,7 @@ func TestGettersNotificationRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNotificationUrl() // Should return zero value + _ = obj.GetNotificationURL() // Should return zero value }) t.Run("GetWebHeaderParameters", func(t *testing.T) { @@ -1385,14 +1385,14 @@ func TestGettersNotificationRequest(t *testing.T) { } func TestSettersMarkExplicitNotificationRequest(t *testing.T) { - t.Run("SetNotificationUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetNotificationURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationRequest{} - var fernTestValueNotificationUrl string + var fernTestValueNotificationURL string // Act - obj.SetNotificationUrl(fernTestValueNotificationUrl) + obj.SetNotificationURL(fernTestValueNotificationURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1458,11 +1458,11 @@ func TestSettersPaypointMoveRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNewParentOrganizationId", func(t *testing.T) { + t.Run("SetNewParentOrganizationID", func(t *testing.T) { obj := &PaypointMoveRequest{} - var fernTestValueNewParentOrganizationId int - obj.SetNewParentOrganizationId(fernTestValueNewParentOrganizationId) - assert.Equal(t, fernTestValueNewParentOrganizationId, obj.NewParentOrganizationId) + var fernTestValueNewParentOrganizationID int + obj.SetNewParentOrganizationID(fernTestValueNewParentOrganizationID) + assert.Equal(t, fernTestValueNewParentOrganizationID, obj.NewParentOrganizationID) assert.NotNil(t, obj.explicitFields) }) @@ -1500,18 +1500,18 @@ func TestGettersPaypointMoveRequest(t *testing.T) { _ = obj.GetEntryPoint() // Should return zero value }) - t.Run("GetNewParentOrganizationId", func(t *testing.T) { + t.Run("GetNewParentOrganizationID", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointMoveRequest{} var expected int - obj.NewParentOrganizationId = expected + obj.NewParentOrganizationID = expected // Act & Assert - assert.Equal(t, expected, obj.GetNewParentOrganizationId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNewParentOrganizationID(), "getter should return the property value") }) - t.Run("GetNewParentOrganizationId_NilReceiver", func(t *testing.T) { + t.Run("GetNewParentOrganizationID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaypointMoveRequest // Should not panic - getters should handle nil receiver gracefully @@ -1520,7 +1520,7 @@ func TestGettersPaypointMoveRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNewParentOrganizationId() // Should return zero value + _ = obj.GetNewParentOrganizationID() // Should return zero value }) t.Run("GetNotificationRequest", func(t *testing.T) { @@ -1590,14 +1590,14 @@ func TestSettersMarkExplicitPaypointMoveRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNewParentOrganizationId_MarksExplicit", func(t *testing.T) { + t.Run("SetNewParentOrganizationID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointMoveRequest{} - var fernTestValueNewParentOrganizationId int + var fernTestValueNewParentOrganizationID int // Act - obj.SetNewParentOrganizationId(fernTestValueNewParentOrganizationId) + obj.SetNewParentOrganizationID(fernTestValueNewParentOrganizationID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1787,11 +1787,11 @@ func TestSettersMarkExplicitWebHeaderParameter(t *testing.T) { } -func TestJSONMarshalingGetBasicEntryByIdResponse(t *testing.T) { +func TestJSONMarshalingGetBasicEntryByIDResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -1800,21 +1800,21 @@ func TestJSONMarshalingGetBasicEntryByIdResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled GetBasicEntryByIdResponse + var unmarshaled GetBasicEntryByIDResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj GetBasicEntryByIdResponse + var obj GetBasicEntryByIDResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj GetBasicEntryByIdResponse + var obj GetBasicEntryByIDResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -2018,17 +2018,17 @@ func TestJSONMarshalingWebHeaderParameter(t *testing.T) { }) } -func TestStringGetBasicEntryByIdResponse(t *testing.T) { +func TestStringGetBasicEntryByIDResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -2130,10 +2130,10 @@ func TestStringWebHeaderParameter(t *testing.T) { }) } -func TestExtraPropertiesGetBasicEntryByIdResponse(t *testing.T) { +func TestExtraPropertiesGetBasicEntryByIDResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &GetBasicEntryByIdResponse{} + obj := &GetBasicEntryByIDResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -2147,7 +2147,7 @@ func TestExtraPropertiesGetBasicEntryByIdResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *GetBasicEntryByIdResponse + var obj *GetBasicEntryByIDResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/query.go b/query.go index 1ba3b56..1a22736 100644 --- a/query.go +++ b/query.go @@ -3664,7 +3664,7 @@ func (l *ListTransfersRequest) SetSortBy(sortBy *string) { } var ( - listTransfersRequestOrgFieldOrgId = big.NewInt(1 << 0) + listTransfersRequestOrgFieldOrgID = big.NewInt(1 << 0) listTransfersRequestOrgFieldExportFormat = big.NewInt(1 << 1) listTransfersRequestOrgFieldFromRecord = big.NewInt(1 << 2) listTransfersRequestOrgFieldLimitRecord = big.NewInt(1 << 3) @@ -3673,7 +3673,7 @@ var ( ) type ListTransfersRequestOrg struct { - OrgId Orgid `json:"-" url:"-"` + OrgID Orgid `json:"-" url:"-"` ExportFormat *ExportFormat `json:"-" url:"exportFormat,omitempty"` // The number of records to skip before starting to collect the result set. FromRecord *int `json:"-" url:"fromRecord,omitempty"` @@ -3728,11 +3728,11 @@ func (l *ListTransfersRequestOrg) require(field *big.Int) { l.explicitFields.Or(l.explicitFields, field) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (l *ListTransfersRequestOrg) SetOrgId(orgId Orgid) { - l.OrgId = orgId - l.require(listTransfersRequestOrgFieldOrgId) +func (l *ListTransfersRequestOrg) SetOrgID(orgID Orgid) { + l.OrgID = orgID + l.require(listTransfersRequestOrgFieldOrgID) } // SetExportFormat sets the ExportFormat field and marks it as non-optional; @@ -4621,7 +4621,7 @@ var ( associatedVendorFieldBillingData = big.NewInt(1 << 15) associatedVendorFieldPaymentMethod = big.NewInt(1 << 16) associatedVendorFieldVendorStatus = big.NewInt(1 << 17) - associatedVendorFieldVendorId = big.NewInt(1 << 18) + associatedVendorFieldVendorID = big.NewInt(1 << 18) associatedVendorFieldEnrollmentStatus = big.NewInt(1 << 19) associatedVendorFieldSummary = big.NewInt(1 << 20) associatedVendorFieldPaypointLegalname = big.NewInt(1 << 21) @@ -4641,9 +4641,9 @@ var ( associatedVendorFieldCustomField1 = big.NewInt(1 << 35) associatedVendorFieldCustomField2 = big.NewInt(1 << 36) associatedVendorFieldCustomerVendorAccount = big.NewInt(1 << 37) - associatedVendorFieldInternalReferenceId = big.NewInt(1 << 38) + associatedVendorFieldInternalReferenceID = big.NewInt(1 << 38) associatedVendorFieldAdditionalData = big.NewInt(1 << 39) - associatedVendorFieldExternalPaypointId = big.NewInt(1 << 40) + associatedVendorFieldExternalPaypointID = big.NewInt(1 << 40) ) type AssociatedVendor struct { @@ -4676,7 +4676,7 @@ type AssociatedVendor struct { BillingData *BillingDataResponse `json:"BillingData,omitempty" url:"BillingData,omitempty"` PaymentMethod *string `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` VendorStatus *Vendorstatus `json:"VendorStatus,omitempty" url:"VendorStatus,omitempty"` - VendorId *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` + VendorID *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` EnrollmentStatus *EnrollmentStatus `json:"EnrollmentStatus,omitempty" url:"EnrollmentStatus,omitempty"` Summary *VendorSummary `json:"Summary,omitempty" url:"Summary,omitempty"` // The paypoint's legal name. @@ -4699,9 +4699,9 @@ type AssociatedVendor struct { CustomField1 *string `json:"customField1,omitempty" url:"customField1,omitempty"` CustomField2 *string `json:"customField2,omitempty" url:"customField2,omitempty"` CustomerVendorAccount *string `json:"customerVendorAccount,omitempty" url:"customerVendorAccount,omitempty"` - InternalReferenceId *InternalReferenceId `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` + InternalReferenceID *InternalReferenceID `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` AdditionalData *AdditionalData `json:"additionalData,omitempty" url:"additionalData,omitempty"` - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -4836,11 +4836,11 @@ func (a *AssociatedVendor) GetVendorStatus() *Vendorstatus { return a.VendorStatus } -func (a *AssociatedVendor) GetVendorId() *int { +func (a *AssociatedVendor) GetVendorID() *int { if a == nil { return nil } - return a.VendorId + return a.VendorID } func (a *AssociatedVendor) GetEnrollmentStatus() *EnrollmentStatus { @@ -4976,11 +4976,11 @@ func (a *AssociatedVendor) GetCustomerVendorAccount() *string { return a.CustomerVendorAccount } -func (a *AssociatedVendor) GetInternalReferenceId() *InternalReferenceId { +func (a *AssociatedVendor) GetInternalReferenceID() *InternalReferenceID { if a == nil { return nil } - return a.InternalReferenceId + return a.InternalReferenceID } func (a *AssociatedVendor) GetAdditionalData() *AdditionalData { @@ -4990,11 +4990,11 @@ func (a *AssociatedVendor) GetAdditionalData() *AdditionalData { return a.AdditionalData } -func (a *AssociatedVendor) GetExternalPaypointId() *string { +func (a *AssociatedVendor) GetExternalPaypointID() *string { if a == nil { return nil } - return a.ExternalPaypointId + return a.ExternalPaypointID } func (a *AssociatedVendor) GetExtraProperties() map[string]interface{} { @@ -5137,11 +5137,11 @@ func (a *AssociatedVendor) SetVendorStatus(vendorStatus *Vendorstatus) { a.require(associatedVendorFieldVendorStatus) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AssociatedVendor) SetVendorId(vendorId *int) { - a.VendorId = vendorId - a.require(associatedVendorFieldVendorId) +func (a *AssociatedVendor) SetVendorID(vendorID *int) { + a.VendorID = vendorID + a.require(associatedVendorFieldVendorID) } // SetEnrollmentStatus sets the EnrollmentStatus field and marks it as non-optional; @@ -5277,11 +5277,11 @@ func (a *AssociatedVendor) SetCustomerVendorAccount(customerVendorAccount *strin a.require(associatedVendorFieldCustomerVendorAccount) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AssociatedVendor) SetInternalReferenceId(internalReferenceId *InternalReferenceId) { - a.InternalReferenceId = internalReferenceId - a.require(associatedVendorFieldInternalReferenceId) +func (a *AssociatedVendor) SetInternalReferenceID(internalReferenceID *InternalReferenceID) { + a.InternalReferenceID = internalReferenceID + a.require(associatedVendorFieldInternalReferenceID) } // SetAdditionalData sets the AdditionalData field and marks it as non-optional; @@ -5291,11 +5291,11 @@ func (a *AssociatedVendor) SetAdditionalData(additionalData *AdditionalData) { a.require(associatedVendorFieldAdditionalData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AssociatedVendor) SetExternalPaypointId(externalPaypointId *string) { - a.ExternalPaypointId = externalPaypointId - a.require(associatedVendorFieldExternalPaypointId) +func (a *AssociatedVendor) SetExternalPaypointID(externalPaypointID *string) { + a.ExternalPaypointID = externalPaypointID + a.require(associatedVendorFieldExternalPaypointID) } func (a *AssociatedVendor) UnmarshalJSON(data []byte) error { @@ -5527,7 +5527,7 @@ func (b *BatchSummary) String() string { var ( billingFeeDetailFieldBillableEvent = big.NewInt(1 << 0) billingFeeDetailFieldService = big.NewInt(1 << 1) - billingFeeDetailFieldEventId = big.NewInt(1 << 2) + billingFeeDetailFieldEventID = big.NewInt(1 << 2) billingFeeDetailFieldDescription = big.NewInt(1 << 3) billingFeeDetailFieldCategory = big.NewInt(1 << 4) billingFeeDetailFieldFixPrice = big.NewInt(1 << 5) @@ -5541,7 +5541,7 @@ var ( type BillingFeeDetail struct { BillableEvent *string `json:"billableEvent,omitempty" url:"billableEvent,omitempty"` Service *string `json:"service,omitempty" url:"service,omitempty"` - EventId *string `json:"eventId,omitempty" url:"eventId,omitempty"` + EventID *string `json:"eventId,omitempty" url:"eventId,omitempty"` // Description of the billing fee Description *string `json:"description,omitempty" url:"description,omitempty"` // Category of the billing fee @@ -5578,11 +5578,11 @@ func (b *BillingFeeDetail) GetService() *string { return b.Service } -func (b *BillingFeeDetail) GetEventId() *string { +func (b *BillingFeeDetail) GetEventID() *string { if b == nil { return nil } - return b.EventId + return b.EventID } func (b *BillingFeeDetail) GetDescription() *string { @@ -5669,11 +5669,11 @@ func (b *BillingFeeDetail) SetService(service *string) { b.require(billingFeeDetailFieldService) } -// SetEventId sets the EventId field and marks it as non-optional; +// SetEventID sets the EventID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillingFeeDetail) SetEventId(eventId *string) { - b.EventId = eventId - b.require(billingFeeDetailFieldEventId) +func (b *BillingFeeDetail) SetEventID(eventID *string) { + b.EventID = eventID + b.require(billingFeeDetailFieldEventID) } // SetDescription sets the Description field and marks it as non-optional; @@ -5786,7 +5786,7 @@ type Category = string type DepositDate = time.Time // Identifier of registered cloud device used in the transaction -type DeviceId = Device +type DeviceID = Device // The date the funds are expected to be deposited. type ExpectedDepositDate = time.Time @@ -5797,7 +5797,7 @@ var ( payoutGatewayConnectorFieldMode = big.NewInt(1 << 2) payoutGatewayConnectorFieldBank = big.NewInt(1 << 3) payoutGatewayConnectorFieldDescriptor = big.NewInt(1 << 4) - payoutGatewayConnectorFieldGatewayId = big.NewInt(1 << 5) + payoutGatewayConnectorFieldGatewayID = big.NewInt(1 << 5) payoutGatewayConnectorFieldEnabled = big.NewInt(1 << 6) payoutGatewayConnectorFieldEnableAchValidation = big.NewInt(1 << 7) payoutGatewayConnectorFieldTestMode = big.NewInt(1 << 8) @@ -5809,7 +5809,7 @@ type PayoutGatewayConnector struct { Mode *int `json:"Mode,omitempty" url:"Mode,omitempty"` Bank *string `json:"Bank,omitempty" url:"Bank,omitempty"` Descriptor *string `json:"Descriptor,omitempty" url:"Descriptor,omitempty"` - GatewayId *int `json:"gatewayID,omitempty" url:"gatewayID,omitempty"` + GatewayID *int `json:"gatewayID,omitempty" url:"gatewayID,omitempty"` Enabled *bool `json:"Enabled,omitempty" url:"Enabled,omitempty"` EnableAchValidation *bool `json:"EnableACHValidation,omitempty" url:"EnableACHValidation,omitempty"` TestMode *bool `json:"TestMode,omitempty" url:"TestMode,omitempty"` @@ -5856,11 +5856,11 @@ func (p *PayoutGatewayConnector) GetDescriptor() *string { return p.Descriptor } -func (p *PayoutGatewayConnector) GetGatewayId() *int { +func (p *PayoutGatewayConnector) GetGatewayID() *int { if p == nil { return nil } - return p.GatewayId + return p.GatewayID } func (p *PayoutGatewayConnector) GetEnabled() *bool { @@ -5933,11 +5933,11 @@ func (p *PayoutGatewayConnector) SetDescriptor(descriptor *string) { p.require(payoutGatewayConnectorFieldDescriptor) } -// SetGatewayId sets the GatewayId field and marks it as non-optional; +// SetGatewayID sets the GatewayID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayoutGatewayConnector) SetGatewayId(gatewayId *int) { - p.GatewayId = gatewayId - p.require(payoutGatewayConnectorFieldGatewayId) +func (p *PayoutGatewayConnector) SetGatewayID(gatewayID *int) { + p.GatewayID = gatewayID + p.require(payoutGatewayConnectorFieldGatewayID) } // SetEnabled sets the Enabled field and marks it as non-optional; @@ -6132,11 +6132,11 @@ var ( queryBatchesOutResponseRecordsItemFieldCheckStatus = big.NewInt(1 << 24) queryBatchesOutResponseRecordsItemFieldCheckStatusText = big.NewInt(1 << 25) queryBatchesOutResponseRecordsItemFieldEntryName = big.NewInt(1 << 26) - queryBatchesOutResponseRecordsItemFieldExternalPaypointId = big.NewInt(1 << 27) - queryBatchesOutResponseRecordsItemFieldIdBatch = big.NewInt(1 << 28) + queryBatchesOutResponseRecordsItemFieldExternalPaypointID = big.NewInt(1 << 27) + queryBatchesOutResponseRecordsItemFieldIDBatch = big.NewInt(1 << 28) queryBatchesOutResponseRecordsItemFieldParentOrgName = big.NewInt(1 << 29) queryBatchesOutResponseRecordsItemFieldPaypointDba = big.NewInt(1 << 30) - queryBatchesOutResponseRecordsItemFieldPaypointId = big.NewInt(1 << 31) + queryBatchesOutResponseRecordsItemFieldPaypointID = big.NewInt(1 << 31) queryBatchesOutResponseRecordsItemFieldPaypointName = big.NewInt(1 << 32) queryBatchesOutResponseRecordsItemFieldVcardAmount = big.NewInt(1 << 33) queryBatchesOutResponseRecordsItemFieldVcardRecords = big.NewInt(1 << 34) @@ -6181,15 +6181,15 @@ type QueryBatchesOutResponseRecordsItem struct { CheckStatus *int `json:"CheckStatus,omitempty" url:"CheckStatus,omitempty"` CheckStatusText *string `json:"CheckStatusText,omitempty" url:"CheckStatusText,omitempty"` EntryName *Entrypointfield `json:"EntryName,omitempty" url:"EntryName,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // The batch ID. - IdBatch *int `json:"IdBatch,omitempty" url:"IdBatch,omitempty"` + IDBatch *int `json:"IdBatch,omitempty" url:"IdBatch,omitempty"` // The entrypoint's parent org. ParentOrgName *string `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` // Paypoint DBA name. PaypointDba *string `json:"PaypointDba,omitempty" url:"PaypointDba,omitempty"` // Paypoint ID. - PaypointId *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // Paypoint legal name. PaypointName *string `json:"PaypointName,omitempty" url:"PaypointName,omitempty"` VcardAmount *float64 `json:"VcardAmount,omitempty" url:"VcardAmount,omitempty"` @@ -6397,18 +6397,18 @@ func (q *QueryBatchesOutResponseRecordsItem) GetEntryName() *Entrypointfield { return q.EntryName } -func (q *QueryBatchesOutResponseRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryBatchesOutResponseRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } -func (q *QueryBatchesOutResponseRecordsItem) GetIdBatch() *int { +func (q *QueryBatchesOutResponseRecordsItem) GetIDBatch() *int { if q == nil { return nil } - return q.IdBatch + return q.IDBatch } func (q *QueryBatchesOutResponseRecordsItem) GetParentOrgName() *string { @@ -6425,11 +6425,11 @@ func (q *QueryBatchesOutResponseRecordsItem) GetPaypointDba() *string { return q.PaypointDba } -func (q *QueryBatchesOutResponseRecordsItem) GetPaypointId() *int { +func (q *QueryBatchesOutResponseRecordsItem) GetPaypointID() *int { if q == nil { return nil } - return q.PaypointId + return q.PaypointID } func (q *QueryBatchesOutResponseRecordsItem) GetPaypointName() *string { @@ -6698,18 +6698,18 @@ func (q *QueryBatchesOutResponseRecordsItem) SetEntryName(entryName *Entrypointf q.require(queryBatchesOutResponseRecordsItemFieldEntryName) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesOutResponseRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryBatchesOutResponseRecordsItemFieldExternalPaypointId) +func (q *QueryBatchesOutResponseRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryBatchesOutResponseRecordsItemFieldExternalPaypointID) } -// SetIdBatch sets the IdBatch field and marks it as non-optional; +// SetIDBatch sets the IDBatch field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesOutResponseRecordsItem) SetIdBatch(idBatch *int) { - q.IdBatch = idBatch - q.require(queryBatchesOutResponseRecordsItemFieldIdBatch) +func (q *QueryBatchesOutResponseRecordsItem) SetIDBatch(idBatch *int) { + q.IDBatch = idBatch + q.require(queryBatchesOutResponseRecordsItemFieldIDBatch) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -6726,11 +6726,11 @@ func (q *QueryBatchesOutResponseRecordsItem) SetPaypointDba(paypointDba *string) q.require(queryBatchesOutResponseRecordsItemFieldPaypointDba) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesOutResponseRecordsItem) SetPaypointId(paypointId *int) { - q.PaypointId = paypointId - q.require(queryBatchesOutResponseRecordsItemFieldPaypointId) +func (q *QueryBatchesOutResponseRecordsItem) SetPaypointID(paypointID *int) { + q.PaypointID = paypointID + q.require(queryBatchesOutResponseRecordsItemFieldPaypointID) } // SetPaypointName sets the PaypointName field and marks it as non-optional; @@ -6953,16 +6953,16 @@ var ( queryChargebacksResponseRecordsItemFieldChargebackDate = big.NewInt(1 << 2) queryChargebacksResponseRecordsItemFieldCreatedAt = big.NewInt(1 << 3) queryChargebacksResponseRecordsItemFieldCustomer = big.NewInt(1 << 4) - queryChargebacksResponseRecordsItemFieldExternalPaypointId = big.NewInt(1 << 5) - queryChargebacksResponseRecordsItemFieldId = big.NewInt(1 << 6) + queryChargebacksResponseRecordsItemFieldExternalPaypointID = big.NewInt(1 << 5) + queryChargebacksResponseRecordsItemFieldID = big.NewInt(1 << 6) queryChargebacksResponseRecordsItemFieldLastFour = big.NewInt(1 << 7) queryChargebacksResponseRecordsItemFieldMethod = big.NewInt(1 << 8) queryChargebacksResponseRecordsItemFieldNetAmount = big.NewInt(1 << 9) - queryChargebacksResponseRecordsItemFieldOrderId = big.NewInt(1 << 10) + queryChargebacksResponseRecordsItemFieldOrderID = big.NewInt(1 << 10) queryChargebacksResponseRecordsItemFieldPageidentifier = big.NewInt(1 << 11) queryChargebacksResponseRecordsItemFieldParentOrgName = big.NewInt(1 << 12) queryChargebacksResponseRecordsItemFieldPaymentData = big.NewInt(1 << 13) - queryChargebacksResponseRecordsItemFieldPaymentTransId = big.NewInt(1 << 14) + queryChargebacksResponseRecordsItemFieldPaymentTransID = big.NewInt(1 << 14) queryChargebacksResponseRecordsItemFieldPaypointDbaname = big.NewInt(1 << 15) queryChargebacksResponseRecordsItemFieldPaypointEntryname = big.NewInt(1 << 16) queryChargebacksResponseRecordsItemFieldPaypointLegalname = big.NewInt(1 << 17) @@ -6986,22 +6986,22 @@ type QueryChargebacksResponseRecordsItem struct { ChargebackDate *time.Time `json:"ChargebackDate,omitempty" url:"ChargebackDate,omitempty"` CreatedAt *CreatedAt `json:"CreatedAt,omitempty" url:"CreatedAt,omitempty"` Customer *QueryTransactionPayorData `json:"Customer,omitempty" url:"Customer,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Unique identifier of the record. - Id *int `json:"Id,omitempty" url:"Id,omitempty"` + ID *int `json:"Id,omitempty" url:"Id,omitempty"` // Last four digits of the account number. LastFour *string `json:"LastFour,omitempty" url:"LastFour,omitempty"` // Method of payment. Method *string `json:"Method,omitempty" url:"Method,omitempty"` // Net amount after deductions. NetAmount *float64 `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` - OrderId *OrderId `json:"OrderId,omitempty" url:"OrderId,omitempty"` + OrderID *OrderID `json:"OrderId,omitempty" url:"OrderId,omitempty"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` // Payment data associated with the transaction. PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Transaction ID for the payment. - PaymentTransId *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` + PaymentTransID *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` // The 'Doing Business As' (DBA) name of the paypoint. PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // Entryname for the paypoint. @@ -7066,18 +7066,18 @@ func (q *QueryChargebacksResponseRecordsItem) GetCustomer() *QueryTransactionPay return q.Customer } -func (q *QueryChargebacksResponseRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryChargebacksResponseRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } -func (q *QueryChargebacksResponseRecordsItem) GetId() *int { +func (q *QueryChargebacksResponseRecordsItem) GetID() *int { if q == nil { return nil } - return q.Id + return q.ID } func (q *QueryChargebacksResponseRecordsItem) GetLastFour() *string { @@ -7101,11 +7101,11 @@ func (q *QueryChargebacksResponseRecordsItem) GetNetAmount() *float64 { return q.NetAmount } -func (q *QueryChargebacksResponseRecordsItem) GetOrderId() *OrderId { +func (q *QueryChargebacksResponseRecordsItem) GetOrderID() *OrderID { if q == nil { return nil } - return q.OrderId + return q.OrderID } func (q *QueryChargebacksResponseRecordsItem) GetPageidentifier() *PageIdentifier { @@ -7129,11 +7129,11 @@ func (q *QueryChargebacksResponseRecordsItem) GetPaymentData() *QueryPaymentData return q.PaymentData } -func (q *QueryChargebacksResponseRecordsItem) GetPaymentTransId() *string { +func (q *QueryChargebacksResponseRecordsItem) GetPaymentTransID() *string { if q == nil { return nil } - return q.PaymentTransId + return q.PaymentTransID } func (q *QueryChargebacksResponseRecordsItem) GetPaypointDbaname() *Dbaname { @@ -7269,18 +7269,18 @@ func (q *QueryChargebacksResponseRecordsItem) SetCustomer(customer *QueryTransac q.require(queryChargebacksResponseRecordsItemFieldCustomer) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryChargebacksResponseRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryChargebacksResponseRecordsItemFieldExternalPaypointId) +func (q *QueryChargebacksResponseRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryChargebacksResponseRecordsItemFieldExternalPaypointID) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryChargebacksResponseRecordsItem) SetId(id *int) { - q.Id = id - q.require(queryChargebacksResponseRecordsItemFieldId) +func (q *QueryChargebacksResponseRecordsItem) SetID(id *int) { + q.ID = id + q.require(queryChargebacksResponseRecordsItemFieldID) } // SetLastFour sets the LastFour field and marks it as non-optional; @@ -7304,11 +7304,11 @@ func (q *QueryChargebacksResponseRecordsItem) SetNetAmount(netAmount *float64) { q.require(queryChargebacksResponseRecordsItemFieldNetAmount) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryChargebacksResponseRecordsItem) SetOrderId(orderId *OrderId) { - q.OrderId = orderId - q.require(queryChargebacksResponseRecordsItemFieldOrderId) +func (q *QueryChargebacksResponseRecordsItem) SetOrderID(orderID *OrderID) { + q.OrderID = orderID + q.require(queryChargebacksResponseRecordsItemFieldOrderID) } // SetPageidentifier sets the Pageidentifier field and marks it as non-optional; @@ -7332,11 +7332,11 @@ func (q *QueryChargebacksResponseRecordsItem) SetPaymentData(paymentData *QueryP q.require(queryChargebacksResponseRecordsItemFieldPaymentData) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryChargebacksResponseRecordsItem) SetPaymentTransId(paymentTransId *string) { - q.PaymentTransId = paymentTransId - q.require(queryChargebacksResponseRecordsItemFieldPaymentTransId) +func (q *QueryChargebacksResponseRecordsItem) SetPaymentTransID(paymentTransID *string) { + q.PaymentTransID = paymentTransID + q.require(queryChargebacksResponseRecordsItemFieldPaymentTransID) } // SetPaypointDbaname sets the PaypointDbaname field and marks it as non-optional; @@ -7697,7 +7697,7 @@ var ( queryEntrypointResponseRecordsItemFieldBinPerson = big.NewInt(1 << 8) queryEntrypointResponseRecordsItemFieldBinPhone = big.NewInt(1 << 9) queryEntrypointResponseRecordsItemFieldBinWeb = big.NewInt(1 << 10) - queryEntrypointResponseRecordsItemFieldBoardingId = big.NewInt(1 << 11) + queryEntrypointResponseRecordsItemFieldBoardingID = big.NewInt(1 << 11) queryEntrypointResponseRecordsItemFieldBPhone = big.NewInt(1 << 12) queryEntrypointResponseRecordsItemFieldBStartdate = big.NewInt(1 << 13) queryEntrypointResponseRecordsItemFieldBState = big.NewInt(1 << 14) @@ -7710,10 +7710,10 @@ var ( queryEntrypointResponseRecordsItemFieldDocumentsRef = big.NewInt(1 << 21) queryEntrypointResponseRecordsItemFieldEin = big.NewInt(1 << 22) queryEntrypointResponseRecordsItemFieldEntryPoints = big.NewInt(1 << 23) - queryEntrypointResponseRecordsItemFieldExternalPaypointId = big.NewInt(1 << 24) + queryEntrypointResponseRecordsItemFieldExternalPaypointID = big.NewInt(1 << 24) queryEntrypointResponseRecordsItemFieldExternalProcessorInformation = big.NewInt(1 << 25) queryEntrypointResponseRecordsItemFieldHighTicketAmount = big.NewInt(1 << 26) - queryEntrypointResponseRecordsItemFieldIdPaypoint = big.NewInt(1 << 27) + queryEntrypointResponseRecordsItemFieldIDPaypoint = big.NewInt(1 << 27) queryEntrypointResponseRecordsItemFieldLastModified = big.NewInt(1 << 28) queryEntrypointResponseRecordsItemFieldLegalName = big.NewInt(1 << 29) queryEntrypointResponseRecordsItemFieldLicense = big.NewInt(1 << 30) @@ -7725,7 +7725,7 @@ var ( queryEntrypointResponseRecordsItemFieldMCountry = big.NewInt(1 << 36) queryEntrypointResponseRecordsItemFieldMState = big.NewInt(1 << 37) queryEntrypointResponseRecordsItemFieldMZip = big.NewInt(1 << 38) - queryEntrypointResponseRecordsItemFieldOrgId = big.NewInt(1 << 39) + queryEntrypointResponseRecordsItemFieldOrgID = big.NewInt(1 << 39) queryEntrypointResponseRecordsItemFieldOrgParentName = big.NewInt(1 << 40) queryEntrypointResponseRecordsItemFieldOwnerData = big.NewInt(1 << 41) queryEntrypointResponseRecordsItemFieldOwnType = big.NewInt(1 << 42) @@ -7734,7 +7734,7 @@ var ( queryEntrypointResponseRecordsItemFieldServiceData = big.NewInt(1 << 45) queryEntrypointResponseRecordsItemFieldSummary = big.NewInt(1 << 46) queryEntrypointResponseRecordsItemFieldTaxfillname = big.NewInt(1 << 47) - queryEntrypointResponseRecordsItemFieldTemplateId = big.NewInt(1 << 48) + queryEntrypointResponseRecordsItemFieldTemplateID = big.NewInt(1 << 48) queryEntrypointResponseRecordsItemFieldWebsiteAddress = big.NewInt(1 << 49) queryEntrypointResponseRecordsItemFieldWhencharged = big.NewInt(1 << 50) queryEntrypointResponseRecordsItemFieldWhendelivered = big.NewInt(1 << 51) @@ -7755,7 +7755,7 @@ type QueryEntrypointResponseRecordsItem struct { BinPerson *Binperson `json:"BinPerson,omitempty" url:"BinPerson,omitempty"` BinPhone *Binphone `json:"BinPhone,omitempty" url:"BinPhone,omitempty"` BinWeb *Binweb `json:"BinWeb,omitempty" url:"BinWeb,omitempty"` - BoardingId *BoardingId `json:"BoardingId,omitempty" url:"BoardingId,omitempty"` + BoardingID *BoardingID `json:"BoardingId,omitempty" url:"BoardingId,omitempty"` BPhone *Bphone `json:"BPhone,omitempty" url:"BPhone,omitempty"` BStartdate *Busstartdate `json:"BStartdate,omitempty" url:"BStartdate,omitempty"` BState *Bstate `json:"BState,omitempty" url:"BState,omitempty"` @@ -7768,10 +7768,10 @@ type QueryEntrypointResponseRecordsItem struct { DocumentsRef *string `json:"DocumentsRef,omitempty" url:"DocumentsRef,omitempty"` Ein *Ein `json:"Ein,omitempty" url:"Ein,omitempty"` EntryPoints []*PaypointEntryConfig `json:"EntryPoints,omitempty" url:"EntryPoints,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` ExternalProcessorInformation *ExternalProcessorInformation `json:"ExternalProcessorInformation,omitempty" url:"ExternalProcessorInformation,omitempty"` HighTicketAmount *Highticketamt `json:"HighTicketAmount,omitempty" url:"HighTicketAmount,omitempty"` - IdPaypoint *Idpaypoint `json:"IdPaypoint,omitempty" url:"IdPaypoint,omitempty"` + IDPaypoint *Idpaypoint `json:"IdPaypoint,omitempty" url:"IdPaypoint,omitempty"` LastModified *LastModified `json:"LastModified,omitempty" url:"LastModified,omitempty"` LegalName *Legalname `json:"LegalName,omitempty" url:"LegalName,omitempty"` License *License `json:"License,omitempty" url:"License,omitempty"` @@ -7783,7 +7783,7 @@ type QueryEntrypointResponseRecordsItem struct { MCountry *Mcountry `json:"MCountry,omitempty" url:"MCountry,omitempty"` MState *Mstate `json:"MState,omitempty" url:"MState,omitempty"` MZip *Mzip `json:"MZip,omitempty" url:"MZip,omitempty"` - OrgId *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` + OrgID *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` OrgParentName *OrgParentName `json:"OrgParentName,omitempty" url:"OrgParentName,omitempty"` OwnerData *Ownership `json:"OwnerData,omitempty" url:"OwnerData,omitempty"` OwnType *OwnType `json:"OwnType,omitempty" url:"OwnType,omitempty"` @@ -7792,7 +7792,7 @@ type QueryEntrypointResponseRecordsItem struct { ServiceData *Services `json:"ServiceData,omitempty" url:"ServiceData,omitempty"` Summary *PaypointSummary `json:"summary,omitempty" url:"summary,omitempty"` Taxfillname *Taxfillname `json:"Taxfillname,omitempty" url:"Taxfillname,omitempty"` - TemplateId *TemplateId `json:"TemplateId,omitempty" url:"TemplateId,omitempty"` + TemplateID *TemplateID `json:"TemplateId,omitempty" url:"TemplateId,omitempty"` // Business website. WebsiteAddress *Website `json:"WebsiteAddress,omitempty" url:"WebsiteAddress,omitempty"` Whencharged *Whencharged `json:"Whencharged,omitempty" url:"Whencharged,omitempty"` @@ -7884,11 +7884,11 @@ func (q *QueryEntrypointResponseRecordsItem) GetBinWeb() *Binweb { return q.BinWeb } -func (q *QueryEntrypointResponseRecordsItem) GetBoardingId() *BoardingId { +func (q *QueryEntrypointResponseRecordsItem) GetBoardingID() *BoardingID { if q == nil { return nil } - return q.BoardingId + return q.BoardingID } func (q *QueryEntrypointResponseRecordsItem) GetBPhone() *Bphone { @@ -7975,11 +7975,11 @@ func (q *QueryEntrypointResponseRecordsItem) GetEntryPoints() []*PaypointEntryCo return q.EntryPoints } -func (q *QueryEntrypointResponseRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryEntrypointResponseRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } func (q *QueryEntrypointResponseRecordsItem) GetExternalProcessorInformation() *ExternalProcessorInformation { @@ -7996,11 +7996,11 @@ func (q *QueryEntrypointResponseRecordsItem) GetHighTicketAmount() *Highticketam return q.HighTicketAmount } -func (q *QueryEntrypointResponseRecordsItem) GetIdPaypoint() *Idpaypoint { +func (q *QueryEntrypointResponseRecordsItem) GetIDPaypoint() *Idpaypoint { if q == nil { return nil } - return q.IdPaypoint + return q.IDPaypoint } func (q *QueryEntrypointResponseRecordsItem) GetLastModified() *LastModified { @@ -8080,11 +8080,11 @@ func (q *QueryEntrypointResponseRecordsItem) GetMZip() *Mzip { return q.MZip } -func (q *QueryEntrypointResponseRecordsItem) GetOrgId() *Orgid { +func (q *QueryEntrypointResponseRecordsItem) GetOrgID() *Orgid { if q == nil { return nil } - return q.OrgId + return q.OrgID } func (q *QueryEntrypointResponseRecordsItem) GetOrgParentName() *OrgParentName { @@ -8143,11 +8143,11 @@ func (q *QueryEntrypointResponseRecordsItem) GetTaxfillname() *Taxfillname { return q.Taxfillname } -func (q *QueryEntrypointResponseRecordsItem) GetTemplateId() *TemplateId { +func (q *QueryEntrypointResponseRecordsItem) GetTemplateID() *TemplateID { if q == nil { return nil } - return q.TemplateId + return q.TemplateID } func (q *QueryEntrypointResponseRecordsItem) GetWebsiteAddress() *Website { @@ -8276,11 +8276,11 @@ func (q *QueryEntrypointResponseRecordsItem) SetBinWeb(binWeb *Binweb) { q.require(queryEntrypointResponseRecordsItemFieldBinWeb) } -// SetBoardingId sets the BoardingId field and marks it as non-optional; +// SetBoardingID sets the BoardingID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryEntrypointResponseRecordsItem) SetBoardingId(boardingId *BoardingId) { - q.BoardingId = boardingId - q.require(queryEntrypointResponseRecordsItemFieldBoardingId) +func (q *QueryEntrypointResponseRecordsItem) SetBoardingID(boardingID *BoardingID) { + q.BoardingID = boardingID + q.require(queryEntrypointResponseRecordsItemFieldBoardingID) } // SetBPhone sets the BPhone field and marks it as non-optional; @@ -8367,11 +8367,11 @@ func (q *QueryEntrypointResponseRecordsItem) SetEntryPoints(entryPoints []*Paypo q.require(queryEntrypointResponseRecordsItemFieldEntryPoints) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryEntrypointResponseRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryEntrypointResponseRecordsItemFieldExternalPaypointId) +func (q *QueryEntrypointResponseRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryEntrypointResponseRecordsItemFieldExternalPaypointID) } // SetExternalProcessorInformation sets the ExternalProcessorInformation field and marks it as non-optional; @@ -8388,11 +8388,11 @@ func (q *QueryEntrypointResponseRecordsItem) SetHighTicketAmount(highTicketAmoun q.require(queryEntrypointResponseRecordsItemFieldHighTicketAmount) } -// SetIdPaypoint sets the IdPaypoint field and marks it as non-optional; +// SetIDPaypoint sets the IDPaypoint field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryEntrypointResponseRecordsItem) SetIdPaypoint(idPaypoint *Idpaypoint) { - q.IdPaypoint = idPaypoint - q.require(queryEntrypointResponseRecordsItemFieldIdPaypoint) +func (q *QueryEntrypointResponseRecordsItem) SetIDPaypoint(idPaypoint *Idpaypoint) { + q.IDPaypoint = idPaypoint + q.require(queryEntrypointResponseRecordsItemFieldIDPaypoint) } // SetLastModified sets the LastModified field and marks it as non-optional; @@ -8472,11 +8472,11 @@ func (q *QueryEntrypointResponseRecordsItem) SetMZip(mZip *Mzip) { q.require(queryEntrypointResponseRecordsItemFieldMZip) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryEntrypointResponseRecordsItem) SetOrgId(orgId *Orgid) { - q.OrgId = orgId - q.require(queryEntrypointResponseRecordsItemFieldOrgId) +func (q *QueryEntrypointResponseRecordsItem) SetOrgID(orgID *Orgid) { + q.OrgID = orgID + q.require(queryEntrypointResponseRecordsItemFieldOrgID) } // SetOrgParentName sets the OrgParentName field and marks it as non-optional; @@ -8535,11 +8535,11 @@ func (q *QueryEntrypointResponseRecordsItem) SetTaxfillname(taxfillname *Taxfill q.require(queryEntrypointResponseRecordsItemFieldTaxfillname) } -// SetTemplateId sets the TemplateId field and marks it as non-optional; +// SetTemplateID sets the TemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryEntrypointResponseRecordsItem) SetTemplateId(templateId *TemplateId) { - q.TemplateId = templateId - q.require(queryEntrypointResponseRecordsItemFieldTemplateId) +func (q *QueryEntrypointResponseRecordsItem) SetTemplateID(templateID *TemplateID) { + q.TemplateID = templateID + q.require(queryEntrypointResponseRecordsItemFieldTemplateID) } // SetWebsiteAddress sets the WebsiteAddress field and marks it as non-optional; @@ -8733,7 +8733,7 @@ func (q *QueryPayoutTransaction) String() string { var ( queryPayoutTransactionRecordsItemFieldBatchNumber = big.NewInt(1 << 0) - queryPayoutTransactionRecordsItemFieldBatchId = big.NewInt(1 << 1) + queryPayoutTransactionRecordsItemFieldBatchID = big.NewInt(1 << 1) queryPayoutTransactionRecordsItemFieldBills = big.NewInt(1 << 2) queryPayoutTransactionRecordsItemFieldCardToken = big.NewInt(1 << 3) queryPayoutTransactionRecordsItemFieldCheckData = big.NewInt(1 << 4) @@ -8742,18 +8742,18 @@ var ( queryPayoutTransactionRecordsItemFieldCreatedAt = big.NewInt(1 << 7) queryPayoutTransactionRecordsItemFieldEntryName = big.NewInt(1 << 8) queryPayoutTransactionRecordsItemFieldEvents = big.NewInt(1 << 9) - queryPayoutTransactionRecordsItemFieldExternalPaypointId = big.NewInt(1 << 10) + queryPayoutTransactionRecordsItemFieldExternalPaypointID = big.NewInt(1 << 10) queryPayoutTransactionRecordsItemFieldFeeAmount = big.NewInt(1 << 11) queryPayoutTransactionRecordsItemFieldGateway = big.NewInt(1 << 12) queryPayoutTransactionRecordsItemFieldHasVcardTransactions = big.NewInt(1 << 13) - queryPayoutTransactionRecordsItemFieldIdOut = big.NewInt(1 << 14) + queryPayoutTransactionRecordsItemFieldIDOut = big.NewInt(1 << 14) queryPayoutTransactionRecordsItemFieldIsSameDayAch = big.NewInt(1 << 15) queryPayoutTransactionRecordsItemFieldLastUpdated = big.NewInt(1 << 16) queryPayoutTransactionRecordsItemFieldNetAmount = big.NewInt(1 << 17) queryPayoutTransactionRecordsItemFieldParentOrgName = big.NewInt(1 << 18) - queryPayoutTransactionRecordsItemFieldParentOrgId = big.NewInt(1 << 19) + queryPayoutTransactionRecordsItemFieldParentOrgID = big.NewInt(1 << 19) queryPayoutTransactionRecordsItemFieldPaymentData = big.NewInt(1 << 20) - queryPayoutTransactionRecordsItemFieldPaymentId = big.NewInt(1 << 21) + queryPayoutTransactionRecordsItemFieldPaymentID = big.NewInt(1 << 21) queryPayoutTransactionRecordsItemFieldPaymentMethod = big.NewInt(1 << 22) queryPayoutTransactionRecordsItemFieldPaymentStatus = big.NewInt(1 << 23) queryPayoutTransactionRecordsItemFieldPayoutProgram = big.NewInt(1 << 24) @@ -8765,7 +8765,7 @@ var ( queryPayoutTransactionRecordsItemFieldRiskFlaggedOn = big.NewInt(1 << 30) queryPayoutTransactionRecordsItemFieldRiskReason = big.NewInt(1 << 31) queryPayoutTransactionRecordsItemFieldRiskStatus = big.NewInt(1 << 32) - queryPayoutTransactionRecordsItemFieldScheduleId = big.NewInt(1 << 33) + queryPayoutTransactionRecordsItemFieldScheduleID = big.NewInt(1 << 33) queryPayoutTransactionRecordsItemFieldSettlementStatus = big.NewInt(1 << 34) queryPayoutTransactionRecordsItemFieldSource = big.NewInt(1 << 35) queryPayoutTransactionRecordsItemFieldStatus = big.NewInt(1 << 36) @@ -8776,7 +8776,7 @@ var ( type QueryPayoutTransactionRecordsItem struct { BatchNumber *BatchNumber `json:"BatchNumber,omitempty" url:"BatchNumber,omitempty"` // Identifier of the batch associated with payout transaction. - BatchId *int `json:"BatchId,omitempty" url:"BatchId,omitempty"` + BatchID *int `json:"BatchId,omitempty" url:"BatchId,omitempty"` // Bills associated with this transaction. Bills []*BillPayOutData `json:"Bills,omitempty" url:"Bills,omitempty"` CardToken *string `json:"CardToken,omitempty" url:"CardToken,omitempty"` @@ -8791,21 +8791,21 @@ type QueryPayoutTransactionRecordsItem struct { EntryName *Entrypointfield `json:"EntryName,omitempty" url:"EntryName,omitempty"` // Events associated with this transaction. Events []*QueryTransactionEvents `json:"Events,omitempty" url:"Events,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` FeeAmount *FeeAmount `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` Gateway *Gatewayfield `json:"Gateway,omitempty" url:"Gateway,omitempty"` HasVcardTransactions *HasVcardTransactions `json:"HasVcardTransactions,omitempty" url:"HasVcardTransactions,omitempty"` // Identifier of payout transaction. - IdOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` + IDOut *int64 `json:"IdOut,omitempty" url:"IdOut,omitempty"` IsSameDayAch *IsSameDayAch `json:"IsSameDayACH,omitempty" url:"IsSameDayACH,omitempty"` // Timestamp when payment record was updated. LastUpdated *LastModified `json:"LastUpdated,omitempty" url:"LastUpdated,omitempty"` // Net amount paid. NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` PaymentData *QueryPayoutTransactionRecordsItemPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` - PaymentId *PaymentIdString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *PaymentIDString `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` // The payment method for the transaction. PaymentMethod *string `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` // Status of payout transaction. See [Payout Transaction Statuses](guides/money-out-statuses#payout-transaction-statuses) for a full reference. @@ -8820,7 +8820,7 @@ type QueryPayoutTransactionRecordsItem struct { RiskFlaggedOn *RiskFlaggedOn `json:"RiskFlaggedOn,omitempty" url:"RiskFlaggedOn,omitempty"` RiskReason *RiskReason `json:"RiskReason,omitempty" url:"RiskReason,omitempty"` RiskStatus *RiskStatus `json:"RiskStatus,omitempty" url:"RiskStatus,omitempty"` - ScheduleId *ScheduleId `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` + ScheduleID *ScheduleID `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` SettlementStatus *SettlementStatusPayout `json:"SettlementStatus,omitempty" url:"SettlementStatus,omitempty"` Source *Source `json:"Source,omitempty" url:"Source,omitempty"` // Internal status of transaction. @@ -8844,11 +8844,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetBatchNumber() *BatchNumber { return q.BatchNumber } -func (q *QueryPayoutTransactionRecordsItem) GetBatchId() *int { +func (q *QueryPayoutTransactionRecordsItem) GetBatchID() *int { if q == nil { return nil } - return q.BatchId + return q.BatchID } func (q *QueryPayoutTransactionRecordsItem) GetBills() []*BillPayOutData { @@ -8907,11 +8907,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetEvents() []*QueryTransactionEvent return q.Events } -func (q *QueryPayoutTransactionRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryPayoutTransactionRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } func (q *QueryPayoutTransactionRecordsItem) GetFeeAmount() *FeeAmount { @@ -8935,11 +8935,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetHasVcardTransactions() *HasVcardT return q.HasVcardTransactions } -func (q *QueryPayoutTransactionRecordsItem) GetIdOut() *int64 { +func (q *QueryPayoutTransactionRecordsItem) GetIDOut() *int64 { if q == nil { return nil } - return q.IdOut + return q.IDOut } func (q *QueryPayoutTransactionRecordsItem) GetIsSameDayAch() *IsSameDayAch { @@ -8970,11 +8970,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetParentOrgName() *OrgParentName { return q.ParentOrgName } -func (q *QueryPayoutTransactionRecordsItem) GetParentOrgId() *OrgParentId { +func (q *QueryPayoutTransactionRecordsItem) GetParentOrgID() *OrgParentID { if q == nil { return nil } - return q.ParentOrgId + return q.ParentOrgID } func (q *QueryPayoutTransactionRecordsItem) GetPaymentData() *QueryPayoutTransactionRecordsItemPaymentData { @@ -8984,11 +8984,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetPaymentData() *QueryPayoutTransac return q.PaymentData } -func (q *QueryPayoutTransactionRecordsItem) GetPaymentId() *PaymentIdString { +func (q *QueryPayoutTransactionRecordsItem) GetPaymentID() *PaymentIDString { if q == nil { return nil } - return q.PaymentId + return q.PaymentID } func (q *QueryPayoutTransactionRecordsItem) GetPaymentMethod() *string { @@ -9068,11 +9068,11 @@ func (q *QueryPayoutTransactionRecordsItem) GetRiskStatus() *RiskStatus { return q.RiskStatus } -func (q *QueryPayoutTransactionRecordsItem) GetScheduleId() *ScheduleId { +func (q *QueryPayoutTransactionRecordsItem) GetScheduleID() *ScheduleID { if q == nil { return nil } - return q.ScheduleId + return q.ScheduleID } func (q *QueryPayoutTransactionRecordsItem) GetSettlementStatus() *SettlementStatusPayout { @@ -9131,11 +9131,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetBatchNumber(batchNumber *BatchNum q.require(queryPayoutTransactionRecordsItemFieldBatchNumber) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetBatchId(batchId *int) { - q.BatchId = batchId - q.require(queryPayoutTransactionRecordsItemFieldBatchId) +func (q *QueryPayoutTransactionRecordsItem) SetBatchID(batchID *int) { + q.BatchID = batchID + q.require(queryPayoutTransactionRecordsItemFieldBatchID) } // SetBills sets the Bills field and marks it as non-optional; @@ -9194,11 +9194,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetEvents(events []*QueryTransaction q.require(queryPayoutTransactionRecordsItemFieldEvents) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryPayoutTransactionRecordsItemFieldExternalPaypointId) +func (q *QueryPayoutTransactionRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryPayoutTransactionRecordsItemFieldExternalPaypointID) } // SetFeeAmount sets the FeeAmount field and marks it as non-optional; @@ -9222,11 +9222,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetHasVcardTransactions(hasVcardTran q.require(queryPayoutTransactionRecordsItemFieldHasVcardTransactions) } -// SetIdOut sets the IdOut field and marks it as non-optional; +// SetIDOut sets the IDOut field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetIdOut(idOut *int64) { - q.IdOut = idOut - q.require(queryPayoutTransactionRecordsItemFieldIdOut) +func (q *QueryPayoutTransactionRecordsItem) SetIDOut(idOut *int64) { + q.IDOut = idOut + q.require(queryPayoutTransactionRecordsItemFieldIDOut) } // SetIsSameDayAch sets the IsSameDayAch field and marks it as non-optional; @@ -9257,11 +9257,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetParentOrgName(parentOrgName *OrgP q.require(queryPayoutTransactionRecordsItemFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetParentOrgId(parentOrgId *OrgParentId) { - q.ParentOrgId = parentOrgId - q.require(queryPayoutTransactionRecordsItemFieldParentOrgId) +func (q *QueryPayoutTransactionRecordsItem) SetParentOrgID(parentOrgID *OrgParentID) { + q.ParentOrgID = parentOrgID + q.require(queryPayoutTransactionRecordsItemFieldParentOrgID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -9271,11 +9271,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetPaymentData(paymentData *QueryPay q.require(queryPayoutTransactionRecordsItemFieldPaymentData) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetPaymentId(paymentId *PaymentIdString) { - q.PaymentId = paymentId - q.require(queryPayoutTransactionRecordsItemFieldPaymentId) +func (q *QueryPayoutTransactionRecordsItem) SetPaymentID(paymentID *PaymentIDString) { + q.PaymentID = paymentID + q.require(queryPayoutTransactionRecordsItemFieldPaymentID) } // SetPaymentMethod sets the PaymentMethod field and marks it as non-optional; @@ -9355,11 +9355,11 @@ func (q *QueryPayoutTransactionRecordsItem) SetRiskStatus(riskStatus *RiskStatus q.require(queryPayoutTransactionRecordsItemFieldRiskStatus) } -// SetScheduleId sets the ScheduleId field and marks it as non-optional; +// SetScheduleID sets the ScheduleID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItem) SetScheduleId(scheduleId *ScheduleId) { - q.ScheduleId = scheduleId - q.require(queryPayoutTransactionRecordsItemFieldScheduleId) +func (q *QueryPayoutTransactionRecordsItem) SetScheduleID(scheduleID *ScheduleID) { + q.ScheduleID = scheduleID + q.require(queryPayoutTransactionRecordsItemFieldScheduleID) } // SetSettlementStatus sets the SettlementStatus field and marks it as non-optional; @@ -9457,7 +9457,7 @@ func (q *QueryPayoutTransactionRecordsItem) String() string { var ( queryPayoutTransactionRecordsItemPaymentDataFieldAccountExp = big.NewInt(1 << 0) - queryPayoutTransactionRecordsItemPaymentDataFieldAccountId = big.NewInt(1 << 1) + queryPayoutTransactionRecordsItemPaymentDataFieldAccountID = big.NewInt(1 << 1) queryPayoutTransactionRecordsItemPaymentDataFieldAccountType = big.NewInt(1 << 2) queryPayoutTransactionRecordsItemPaymentDataFieldAccountZip = big.NewInt(1 << 3) queryPayoutTransactionRecordsItemPaymentDataFieldBankAccount = big.NewInt(1 << 4) @@ -9472,13 +9472,13 @@ var ( queryPayoutTransactionRecordsItemPaymentDataFieldPaymentDetails = big.NewInt(1 << 13) queryPayoutTransactionRecordsItemPaymentDataFieldPayorData = big.NewInt(1 << 14) queryPayoutTransactionRecordsItemPaymentDataFieldSequence = big.NewInt(1 << 15) - queryPayoutTransactionRecordsItemPaymentDataFieldStoredId = big.NewInt(1 << 16) + queryPayoutTransactionRecordsItemPaymentDataFieldStoredID = big.NewInt(1 << 16) queryPayoutTransactionRecordsItemPaymentDataFieldStoredMethodUsageType = big.NewInt(1 << 17) ) type QueryPayoutTransactionRecordsItemPaymentData struct { AccountExp *Accountexp `json:"AccountExp,omitempty" url:"AccountExp,omitempty"` - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` AccountType *Accounttype `json:"AccountType,omitempty" url:"AccountType,omitempty"` AccountZip *Accountzip `json:"AccountZip,omitempty" url:"AccountZip,omitempty"` BankAccount *string `json:"bankAccount,omitempty" url:"bankAccount,omitempty"` @@ -9495,7 +9495,7 @@ type QueryPayoutTransactionRecordsItemPaymentData struct { PayorData *string `json:"payorData,omitempty" url:"payorData,omitempty"` Sequence *Sequence `json:"Sequence,omitempty" url:"Sequence,omitempty"` // Identifier of stored payment method used in transaction. - StoredId *Storedmethodid `json:"StoredId,omitempty" url:"StoredId,omitempty"` + StoredID *Storedmethodid `json:"StoredId,omitempty" url:"StoredId,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"StoredMethodUsageType,omitempty" url:"StoredMethodUsageType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -9512,11 +9512,11 @@ func (q *QueryPayoutTransactionRecordsItemPaymentData) GetAccountExp() *Accounte return q.AccountExp } -func (q *QueryPayoutTransactionRecordsItemPaymentData) GetAccountId() *AccountId { +func (q *QueryPayoutTransactionRecordsItemPaymentData) GetAccountID() *AccountID { if q == nil { return nil } - return q.AccountId + return q.AccountID } func (q *QueryPayoutTransactionRecordsItemPaymentData) GetAccountType() *Accounttype { @@ -9617,11 +9617,11 @@ func (q *QueryPayoutTransactionRecordsItemPaymentData) GetSequence() *Sequence { return q.Sequence } -func (q *QueryPayoutTransactionRecordsItemPaymentData) GetStoredId() *Storedmethodid { +func (q *QueryPayoutTransactionRecordsItemPaymentData) GetStoredID() *Storedmethodid { if q == nil { return nil } - return q.StoredId + return q.StoredID } func (q *QueryPayoutTransactionRecordsItemPaymentData) GetStoredMethodUsageType() *StoredMethodUsageType { @@ -9652,11 +9652,11 @@ func (q *QueryPayoutTransactionRecordsItemPaymentData) SetAccountExp(accountExp q.require(queryPayoutTransactionRecordsItemPaymentDataFieldAccountExp) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItemPaymentData) SetAccountId(accountId *AccountId) { - q.AccountId = accountId - q.require(queryPayoutTransactionRecordsItemPaymentDataFieldAccountId) +func (q *QueryPayoutTransactionRecordsItemPaymentData) SetAccountID(accountID *AccountID) { + q.AccountID = accountID + q.require(queryPayoutTransactionRecordsItemPaymentDataFieldAccountID) } // SetAccountType sets the AccountType field and marks it as non-optional; @@ -9757,11 +9757,11 @@ func (q *QueryPayoutTransactionRecordsItemPaymentData) SetSequence(sequence *Seq q.require(queryPayoutTransactionRecordsItemPaymentDataFieldSequence) } -// SetStoredId sets the StoredId field and marks it as non-optional; +// SetStoredID sets the StoredID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPayoutTransactionRecordsItemPaymentData) SetStoredId(storedId *Storedmethodid) { - q.StoredId = storedId - q.require(queryPayoutTransactionRecordsItemPaymentDataFieldStoredId) +func (q *QueryPayoutTransactionRecordsItemPaymentData) SetStoredID(storedID *Storedmethodid) { + q.StoredID = storedID + q.require(queryPayoutTransactionRecordsItemPaymentDataFieldStoredID) } // SetStoredMethodUsageType sets the StoredMethodUsageType field and marks it as non-optional; @@ -10305,7 +10305,7 @@ func (q *QueryResponseNotificationReports) String() string { var ( queryResponseNotificationReportsRecordsItemFieldCreatedAt = big.NewInt(1 << 0) - queryResponseNotificationReportsRecordsItemFieldId = big.NewInt(1 << 1) + queryResponseNotificationReportsRecordsItemFieldID = big.NewInt(1 << 1) queryResponseNotificationReportsRecordsItemFieldIsDownloadable = big.NewInt(1 << 2) queryResponseNotificationReportsRecordsItemFieldReportName = big.NewInt(1 << 3) ) @@ -10313,7 +10313,7 @@ var ( type QueryResponseNotificationReportsRecordsItem struct { CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` // Unique identifier for the report. - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` // Indicator of whether the report can be downloaded. IsDownloadable *bool `json:"isDownloadable,omitempty" url:"isDownloadable,omitempty"` // Name of the report. @@ -10333,11 +10333,11 @@ func (q *QueryResponseNotificationReportsRecordsItem) GetCreatedAt() *CreatedAt return q.CreatedAt } -func (q *QueryResponseNotificationReportsRecordsItem) GetId() *int { +func (q *QueryResponseNotificationReportsRecordsItem) GetID() *int { if q == nil { return nil } - return q.Id + return q.ID } func (q *QueryResponseNotificationReportsRecordsItem) GetIsDownloadable() *bool { @@ -10375,11 +10375,11 @@ func (q *QueryResponseNotificationReportsRecordsItem) SetCreatedAt(createdAt *Cr q.require(queryResponseNotificationReportsRecordsItemFieldCreatedAt) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseNotificationReportsRecordsItem) SetId(id *int) { - q.Id = id - q.require(queryResponseNotificationReportsRecordsItemFieldId) +func (q *QueryResponseNotificationReportsRecordsItem) SetID(id *int) { + q.ID = id + q.require(queryResponseNotificationReportsRecordsItemFieldID) } // SetIsDownloadable sets the IsDownloadable field and marks it as non-optional; @@ -10553,8 +10553,8 @@ var ( queryResponseNotificationsRecordsItemFieldFrequency = big.NewInt(1 << 2) queryResponseNotificationsRecordsItemFieldLastUpdated = big.NewInt(1 << 3) queryResponseNotificationsRecordsItemFieldMethod = big.NewInt(1 << 4) - queryResponseNotificationsRecordsItemFieldNotificationId = big.NewInt(1 << 5) - queryResponseNotificationsRecordsItemFieldOwnerId = big.NewInt(1 << 6) + queryResponseNotificationsRecordsItemFieldNotificationID = big.NewInt(1 << 5) + queryResponseNotificationsRecordsItemFieldOwnerID = big.NewInt(1 << 6) queryResponseNotificationsRecordsItemFieldOwnerName = big.NewInt(1 << 7) queryResponseNotificationsRecordsItemFieldOwnerType = big.NewInt(1 << 8) queryResponseNotificationsRecordsItemFieldSource = big.NewInt(1 << 9) @@ -10571,8 +10571,8 @@ type QueryResponseNotificationsRecordsItem struct { // Timestamp of when notification was last updated, in UTC. LastUpdated *LastModified `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` Method *Methodnotification `json:"method,omitempty" url:"method,omitempty"` - NotificationId *NotificationId `json:"notificationId,omitempty" url:"notificationId,omitempty"` - OwnerId *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` + NotificationID *NotificationID `json:"notificationId,omitempty" url:"notificationId,omitempty"` + OwnerID *Ownerid `json:"ownerId,omitempty" url:"ownerId,omitempty"` // Name of entity owner of notification. OwnerName *string `json:"ownerName,omitempty" url:"ownerName,omitempty"` OwnerType *Ownertype `json:"ownerType,omitempty" url:"ownerType,omitempty"` @@ -10623,18 +10623,18 @@ func (q *QueryResponseNotificationsRecordsItem) GetMethod() *Methodnotification return q.Method } -func (q *QueryResponseNotificationsRecordsItem) GetNotificationId() *NotificationId { +func (q *QueryResponseNotificationsRecordsItem) GetNotificationID() *NotificationID { if q == nil { return nil } - return q.NotificationId + return q.NotificationID } -func (q *QueryResponseNotificationsRecordsItem) GetOwnerId() *Ownerid { +func (q *QueryResponseNotificationsRecordsItem) GetOwnerID() *Ownerid { if q == nil { return nil } - return q.OwnerId + return q.OwnerID } func (q *QueryResponseNotificationsRecordsItem) GetOwnerName() *string { @@ -10721,18 +10721,18 @@ func (q *QueryResponseNotificationsRecordsItem) SetMethod(method *Methodnotifica q.require(queryResponseNotificationsRecordsItemFieldMethod) } -// SetNotificationId sets the NotificationId field and marks it as non-optional; +// SetNotificationID sets the NotificationID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseNotificationsRecordsItem) SetNotificationId(notificationId *NotificationId) { - q.NotificationId = notificationId - q.require(queryResponseNotificationsRecordsItemFieldNotificationId) +func (q *QueryResponseNotificationsRecordsItem) SetNotificationID(notificationID *NotificationID) { + q.NotificationID = notificationID + q.require(queryResponseNotificationsRecordsItemFieldNotificationID) } -// SetOwnerId sets the OwnerId field and marks it as non-optional; +// SetOwnerID sets the OwnerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseNotificationsRecordsItem) SetOwnerId(ownerId *Ownerid) { - q.OwnerId = ownerId - q.require(queryResponseNotificationsRecordsItemFieldOwnerId) +func (q *QueryResponseNotificationsRecordsItem) SetOwnerID(ownerID *Ownerid) { + q.OwnerID = ownerID + q.require(queryResponseNotificationsRecordsItemFieldOwnerID) } // SetOwnerName sets the OwnerName field and marks it as non-optional; @@ -10933,19 +10933,19 @@ var ( queryResponseSettlementsRecordsItemFieldCustomer = big.NewInt(1 << 4) queryResponseSettlementsRecordsItemFieldDepositDate = big.NewInt(1 << 5) queryResponseSettlementsRecordsItemFieldExpectedDepositDate = big.NewInt(1 << 6) - queryResponseSettlementsRecordsItemFieldExternalPaypointId = big.NewInt(1 << 7) - queryResponseSettlementsRecordsItemFieldGatewayTransId = big.NewInt(1 << 8) - queryResponseSettlementsRecordsItemFieldId = big.NewInt(1 << 9) + queryResponseSettlementsRecordsItemFieldExternalPaypointID = big.NewInt(1 << 7) + queryResponseSettlementsRecordsItemFieldGatewayTransID = big.NewInt(1 << 8) + queryResponseSettlementsRecordsItemFieldID = big.NewInt(1 << 9) queryResponseSettlementsRecordsItemFieldInvoiceData = big.NewInt(1 << 10) queryResponseSettlementsRecordsItemFieldIsHold = big.NewInt(1 << 11) queryResponseSettlementsRecordsItemFieldMaskedAccount = big.NewInt(1 << 12) queryResponseSettlementsRecordsItemFieldMethod = big.NewInt(1 << 13) queryResponseSettlementsRecordsItemFieldNetAmount = big.NewInt(1 << 14) queryResponseSettlementsRecordsItemFieldOperation = big.NewInt(1 << 15) - queryResponseSettlementsRecordsItemFieldOrderId = big.NewInt(1 << 16) + queryResponseSettlementsRecordsItemFieldOrderID = big.NewInt(1 << 16) queryResponseSettlementsRecordsItemFieldParentOrgName = big.NewInt(1 << 17) queryResponseSettlementsRecordsItemFieldPaymentData = big.NewInt(1 << 18) - queryResponseSettlementsRecordsItemFieldPaymentTransId = big.NewInt(1 << 19) + queryResponseSettlementsRecordsItemFieldPaymentTransID = big.NewInt(1 << 19) queryResponseSettlementsRecordsItemFieldPaymentTransStatus = big.NewInt(1 << 20) queryResponseSettlementsRecordsItemFieldPaypointDbaname = big.NewInt(1 << 21) queryResponseSettlementsRecordsItemFieldPaypointEntryname = big.NewInt(1 << 22) @@ -10971,10 +10971,10 @@ type QueryResponseSettlementsRecordsItem struct { Customer *QueryTransactionPayorData `json:"Customer,omitempty" url:"Customer,omitempty"` DepositDate *DepositDate `json:"DepositDate,omitempty" url:"DepositDate,omitempty"` ExpectedDepositDate *ExpectedDepositDate `json:"ExpectedDepositDate,omitempty" url:"ExpectedDepositDate,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Internal identifier used for processing. - GatewayTransId *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` - Id *int `json:"Id,omitempty" url:"Id,omitempty"` + GatewayTransID *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` + ID *int `json:"Id,omitempty" url:"Id,omitempty"` InvoiceData *BillData `json:"invoiceData,omitempty" url:"invoiceData,omitempty"` // Describes whether the transaction is being held or not. // @@ -10989,11 +10989,11 @@ type QueryResponseSettlementsRecordsItem struct { NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` // The operation performed. Operation *string `json:"Operation,omitempty" url:"Operation,omitempty"` - OrderId *OrderId `json:"OrderId,omitempty" url:"OrderId,omitempty"` + OrderID *OrderID `json:"OrderId,omitempty" url:"OrderId,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // The transaction ID for the payment. - PaymentTransId *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` + PaymentTransID *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` PaymentTransStatus *TransStatus `json:"PaymentTransStatus,omitempty" url:"PaymentTransStatus,omitempty"` // Paypoint DBA name. PaypointDbaname *string `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` @@ -11074,25 +11074,25 @@ func (q *QueryResponseSettlementsRecordsItem) GetExpectedDepositDate() *Expected return q.ExpectedDepositDate } -func (q *QueryResponseSettlementsRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryResponseSettlementsRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } -func (q *QueryResponseSettlementsRecordsItem) GetGatewayTransId() *string { +func (q *QueryResponseSettlementsRecordsItem) GetGatewayTransID() *string { if q == nil { return nil } - return q.GatewayTransId + return q.GatewayTransID } -func (q *QueryResponseSettlementsRecordsItem) GetId() *int { +func (q *QueryResponseSettlementsRecordsItem) GetID() *int { if q == nil { return nil } - return q.Id + return q.ID } func (q *QueryResponseSettlementsRecordsItem) GetInvoiceData() *BillData { @@ -11137,11 +11137,11 @@ func (q *QueryResponseSettlementsRecordsItem) GetOperation() *string { return q.Operation } -func (q *QueryResponseSettlementsRecordsItem) GetOrderId() *OrderId { +func (q *QueryResponseSettlementsRecordsItem) GetOrderID() *OrderID { if q == nil { return nil } - return q.OrderId + return q.OrderID } func (q *QueryResponseSettlementsRecordsItem) GetParentOrgName() *OrgParentName { @@ -11158,11 +11158,11 @@ func (q *QueryResponseSettlementsRecordsItem) GetPaymentData() *QueryPaymentData return q.PaymentData } -func (q *QueryResponseSettlementsRecordsItem) GetPaymentTransId() *string { +func (q *QueryResponseSettlementsRecordsItem) GetPaymentTransID() *string { if q == nil { return nil } - return q.PaymentTransId + return q.PaymentTransID } func (q *QueryResponseSettlementsRecordsItem) GetPaymentTransStatus() *TransStatus { @@ -11326,25 +11326,25 @@ func (q *QueryResponseSettlementsRecordsItem) SetExpectedDepositDate(expectedDep q.require(queryResponseSettlementsRecordsItemFieldExpectedDepositDate) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseSettlementsRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryResponseSettlementsRecordsItemFieldExternalPaypointId) +func (q *QueryResponseSettlementsRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryResponseSettlementsRecordsItemFieldExternalPaypointID) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseSettlementsRecordsItem) SetGatewayTransId(gatewayTransId *string) { - q.GatewayTransId = gatewayTransId - q.require(queryResponseSettlementsRecordsItemFieldGatewayTransId) +func (q *QueryResponseSettlementsRecordsItem) SetGatewayTransID(gatewayTransID *string) { + q.GatewayTransID = gatewayTransID + q.require(queryResponseSettlementsRecordsItemFieldGatewayTransID) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseSettlementsRecordsItem) SetId(id *int) { - q.Id = id - q.require(queryResponseSettlementsRecordsItemFieldId) +func (q *QueryResponseSettlementsRecordsItem) SetID(id *int) { + q.ID = id + q.require(queryResponseSettlementsRecordsItemFieldID) } // SetInvoiceData sets the InvoiceData field and marks it as non-optional; @@ -11389,11 +11389,11 @@ func (q *QueryResponseSettlementsRecordsItem) SetOperation(operation *string) { q.require(queryResponseSettlementsRecordsItemFieldOperation) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseSettlementsRecordsItem) SetOrderId(orderId *OrderId) { - q.OrderId = orderId - q.require(queryResponseSettlementsRecordsItemFieldOrderId) +func (q *QueryResponseSettlementsRecordsItem) SetOrderID(orderID *OrderID) { + q.OrderID = orderID + q.require(queryResponseSettlementsRecordsItemFieldOrderID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -11410,11 +11410,11 @@ func (q *QueryResponseSettlementsRecordsItem) SetPaymentData(paymentData *QueryP q.require(queryResponseSettlementsRecordsItemFieldPaymentData) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseSettlementsRecordsItem) SetPaymentTransId(paymentTransId *string) { - q.PaymentTransId = paymentTransId - q.require(queryResponseSettlementsRecordsItemFieldPaymentTransId) +func (q *QueryResponseSettlementsRecordsItem) SetPaymentTransID(paymentTransID *string) { + q.PaymentTransID = paymentTransID + q.require(queryResponseSettlementsRecordsItemFieldPaymentTransID) } // SetPaymentTransStatus sets the PaymentTransStatus field and marks it as non-optional; @@ -12222,22 +12222,22 @@ func (q *QueryUserResponse) String() string { } var ( - transferFieldTransferId = big.NewInt(1 << 0) - transferFieldPaypointId = big.NewInt(1 << 1) + transferFieldTransferID = big.NewInt(1 << 0) + transferFieldPaypointID = big.NewInt(1 << 1) transferFieldBatchNumber = big.NewInt(1 << 2) transferFieldBatchCurrency = big.NewInt(1 << 3) transferFieldBatchRecords = big.NewInt(1 << 4) transferFieldTransferIdentifier = big.NewInt(1 << 5) - transferFieldBatchId = big.NewInt(1 << 6) + transferFieldBatchID = big.NewInt(1 << 6) transferFieldPaypointEntryName = big.NewInt(1 << 7) transferFieldPaypointLegalName = big.NewInt(1 << 8) transferFieldPaypointDbaName = big.NewInt(1 << 9) transferFieldPaypointLogo = big.NewInt(1 << 10) transferFieldParentOrgName = big.NewInt(1 << 11) - transferFieldParentOrgId = big.NewInt(1 << 12) + transferFieldParentOrgID = big.NewInt(1 << 12) transferFieldParentOrgEntryName = big.NewInt(1 << 13) transferFieldParentOrgLogo = big.NewInt(1 << 14) - transferFieldExternalPaypointId = big.NewInt(1 << 15) + transferFieldExternalPaypointID = big.NewInt(1 << 15) transferFieldBankAccount = big.NewInt(1 << 16) transferFieldTransferDate = big.NewInt(1 << 17) transferFieldProcessor = big.NewInt(1 << 18) @@ -12258,8 +12258,8 @@ var ( type Transfer struct { // The transfer ID. - TransferId int `json:"transferId" url:"transferId"` - PaypointId PaypointId `json:"paypointId" url:"paypointId"` + TransferID int `json:"transferId" url:"transferId"` + PaypointID PaypointID `json:"paypointId" url:"paypointId"` BatchNumber BatchNumber `json:"batchNumber" url:"batchNumber"` // The currency of the batch, either USD or CAD. BatchCurrency *string `json:"batchCurrency,omitempty" url:"batchCurrency,omitempty"` @@ -12267,7 +12267,7 @@ type Transfer struct { BatchRecords *int `json:"batchRecords,omitempty" url:"batchRecords,omitempty"` TransferIdentifier TransferIdentifier `json:"transferIdentifier" url:"transferIdentifier"` // The ID of the batch the transfer belongs to. - BatchId int `json:"batchId" url:"batchId"` + BatchID int `json:"batchId" url:"batchId"` // The paypoint entryname. PaypointEntryName *string `json:"paypointEntryName,omitempty" url:"paypointEntryName,omitempty"` // The paypoint legal name. @@ -12279,13 +12279,13 @@ type Transfer struct { // The parent organization name. ParentOrgName *string `json:"parentOrgName,omitempty" url:"parentOrgName,omitempty"` // The parent organization ID. - ParentOrgId *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` + ParentOrgID *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` // The parent organization entryname. ParentOrgEntryName *string `json:"parentOrgEntryName,omitempty" url:"parentOrgEntryName,omitempty"` // The parent organization logo URL. ParentOrgLogo *string `json:"parentOrgLogo,omitempty" url:"parentOrgLogo,omitempty"` // The external paypoint ID. - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Bank account information for the transfer. BankAccount *TransferBankAccount `json:"bankAccount,omitempty" url:"bankAccount,omitempty"` // Date when the transfer occurred. @@ -12326,18 +12326,18 @@ type Transfer struct { rawJSON json.RawMessage } -func (t *Transfer) GetTransferId() int { +func (t *Transfer) GetTransferID() int { if t == nil { return 0 } - return t.TransferId + return t.TransferID } -func (t *Transfer) GetPaypointId() PaypointId { +func (t *Transfer) GetPaypointID() PaypointID { if t == nil { return 0 } - return t.PaypointId + return t.PaypointID } func (t *Transfer) GetBatchNumber() BatchNumber { @@ -12368,11 +12368,11 @@ func (t *Transfer) GetTransferIdentifier() TransferIdentifier { return t.TransferIdentifier } -func (t *Transfer) GetBatchId() int { +func (t *Transfer) GetBatchID() int { if t == nil { return 0 } - return t.BatchId + return t.BatchID } func (t *Transfer) GetPaypointEntryName() *string { @@ -12410,11 +12410,11 @@ func (t *Transfer) GetParentOrgName() *string { return t.ParentOrgName } -func (t *Transfer) GetParentOrgId() *int { +func (t *Transfer) GetParentOrgID() *int { if t == nil { return nil } - return t.ParentOrgId + return t.ParentOrgID } func (t *Transfer) GetParentOrgEntryName() *string { @@ -12431,11 +12431,11 @@ func (t *Transfer) GetParentOrgLogo() *string { return t.ParentOrgLogo } -func (t *Transfer) GetExternalPaypointId() *string { +func (t *Transfer) GetExternalPaypointID() *string { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *Transfer) GetBankAccount() *TransferBankAccount { @@ -12564,18 +12564,18 @@ func (t *Transfer) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetTransferId sets the TransferId field and marks it as non-optional; +// SetTransferID sets the TransferID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *Transfer) SetTransferId(transferId int) { - t.TransferId = transferId - t.require(transferFieldTransferId) +func (t *Transfer) SetTransferID(transferID int) { + t.TransferID = transferID + t.require(transferFieldTransferID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *Transfer) SetPaypointId(paypointId PaypointId) { - t.PaypointId = paypointId - t.require(transferFieldPaypointId) +func (t *Transfer) SetPaypointID(paypointID PaypointID) { + t.PaypointID = paypointID + t.require(transferFieldPaypointID) } // SetBatchNumber sets the BatchNumber field and marks it as non-optional; @@ -12606,11 +12606,11 @@ func (t *Transfer) SetTransferIdentifier(transferIdentifier TransferIdentifier) t.require(transferFieldTransferIdentifier) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *Transfer) SetBatchId(batchId int) { - t.BatchId = batchId - t.require(transferFieldBatchId) +func (t *Transfer) SetBatchID(batchID int) { + t.BatchID = batchID + t.require(transferFieldBatchID) } // SetPaypointEntryName sets the PaypointEntryName field and marks it as non-optional; @@ -12648,11 +12648,11 @@ func (t *Transfer) SetParentOrgName(parentOrgName *string) { t.require(transferFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *Transfer) SetParentOrgId(parentOrgId *int) { - t.ParentOrgId = parentOrgId - t.require(transferFieldParentOrgId) +func (t *Transfer) SetParentOrgID(parentOrgID *int) { + t.ParentOrgID = parentOrgID + t.require(transferFieldParentOrgID) } // SetParentOrgEntryName sets the ParentOrgEntryName field and marks it as non-optional; @@ -12669,11 +12669,11 @@ func (t *Transfer) SetParentOrgLogo(parentOrgLogo *string) { t.require(transferFieldParentOrgLogo) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *Transfer) SetExternalPaypointId(externalPaypointId *string) { - t.ExternalPaypointId = externalPaypointId - t.require(transferFieldExternalPaypointId) +func (t *Transfer) SetExternalPaypointID(externalPaypointID *string) { + t.ExternalPaypointID = externalPaypointID + t.require(transferFieldExternalPaypointID) } // SetBankAccount sets the BankAccount field and marks it as non-optional; @@ -12950,9 +12950,9 @@ func (t *TransferBankAccount) String() string { type TransferIdentifier = string var ( - transferMessageFieldId = big.NewInt(1 << 0) - transferMessageFieldRoomId = big.NewInt(1 << 1) - transferMessageFieldUserId = big.NewInt(1 << 2) + transferMessageFieldID = big.NewInt(1 << 0) + transferMessageFieldRoomID = big.NewInt(1 << 1) + transferMessageFieldUserID = big.NewInt(1 << 2) transferMessageFieldUserName = big.NewInt(1 << 3) transferMessageFieldContent = big.NewInt(1 << 4) transferMessageFieldCreatedAt = big.NewInt(1 << 5) @@ -12961,9 +12961,9 @@ var ( ) type TransferMessage struct { - Id *int `json:"Id,omitempty" url:"Id,omitempty"` - RoomId *int `json:"RoomId,omitempty" url:"RoomId,omitempty"` - UserId *int `json:"UserId,omitempty" url:"UserId,omitempty"` + ID *int `json:"Id,omitempty" url:"Id,omitempty"` + RoomID *int `json:"RoomId,omitempty" url:"RoomId,omitempty"` + UserID *int `json:"UserId,omitempty" url:"UserId,omitempty"` UserName *string `json:"UserName,omitempty" url:"UserName,omitempty"` Content *string `json:"Content,omitempty" url:"Content,omitempty"` CreatedAt *string `json:"CreatedAt,omitempty" url:"CreatedAt,omitempty"` @@ -12977,25 +12977,25 @@ type TransferMessage struct { rawJSON json.RawMessage } -func (t *TransferMessage) GetId() *int { +func (t *TransferMessage) GetID() *int { if t == nil { return nil } - return t.Id + return t.ID } -func (t *TransferMessage) GetRoomId() *int { +func (t *TransferMessage) GetRoomID() *int { if t == nil { return nil } - return t.RoomId + return t.RoomID } -func (t *TransferMessage) GetUserId() *int { +func (t *TransferMessage) GetUserID() *int { if t == nil { return nil } - return t.UserId + return t.UserID } func (t *TransferMessage) GetUserName() *string { @@ -13047,25 +13047,25 @@ func (t *TransferMessage) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferMessage) SetId(id *int) { - t.Id = id - t.require(transferMessageFieldId) +func (t *TransferMessage) SetID(id *int) { + t.ID = id + t.require(transferMessageFieldID) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferMessage) SetRoomId(roomId *int) { - t.RoomId = roomId - t.require(transferMessageFieldRoomId) +func (t *TransferMessage) SetRoomID(roomID *int) { + t.RoomID = roomID + t.require(transferMessageFieldRoomID) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferMessage) SetUserId(userId *int) { - t.UserId = userId - t.require(transferMessageFieldUserId) +func (t *TransferMessage) SetUserID(userID *int) { + t.UserID = userID + t.require(transferMessageFieldUserID) } // SetUserName sets the UserName field and marks it as non-optional; @@ -13587,8 +13587,8 @@ var ( vCardRecordFieldPaypointDbaname = big.NewInt(1 << 22) vCardRecordFieldPaypointLegalname = big.NewInt(1 << 23) vCardRecordFieldPaypointEntryname = big.NewInt(1 << 24) - vCardRecordFieldExternalPaypointId = big.NewInt(1 << 25) - vCardRecordFieldPaypointId = big.NewInt(1 << 26) + vCardRecordFieldExternalPaypointID = big.NewInt(1 << 25) + vCardRecordFieldPaypointID = big.NewInt(1 << 26) ) type VCardRecord struct { @@ -13630,9 +13630,9 @@ type VCardRecord struct { PaypointLegalname *Legalname `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` // The paypoint's entry name (entrypoint). PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // The paypoint's unique identifier. - PaypointId *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -13816,18 +13816,18 @@ func (v *VCardRecord) GetPaypointEntryname() *Entrypointfield { return v.PaypointEntryname } -func (v *VCardRecord) GetExternalPaypointId() *ExternalPaypointId { +func (v *VCardRecord) GetExternalPaypointID() *ExternalPaypointID { if v == nil { return nil } - return v.ExternalPaypointId + return v.ExternalPaypointID } -func (v *VCardRecord) GetPaypointId() *int { +func (v *VCardRecord) GetPaypointID() *int { if v == nil { return nil } - return v.PaypointId + return v.PaypointID } func (v *VCardRecord) GetExtraProperties() map[string]interface{} { @@ -14019,18 +14019,18 @@ func (v *VCardRecord) SetPaypointEntryname(paypointEntryname *Entrypointfield) { v.require(vCardRecordFieldPaypointEntryname) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - v.ExternalPaypointId = externalPaypointId - v.require(vCardRecordFieldExternalPaypointId) +func (v *VCardRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + v.ExternalPaypointID = externalPaypointID + v.require(vCardRecordFieldExternalPaypointID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VCardRecord) SetPaypointId(paypointId *int) { - v.PaypointId = paypointId - v.require(vCardRecordFieldPaypointId) +func (v *VCardRecord) SetPaypointID(paypointID *int) { + v.PaypointID = paypointID + v.require(vCardRecordFieldPaypointID) } func (v *VCardRecord) UnmarshalJSON(data []byte) error { diff --git a/query/client.go b/query/client.go index a9ff08a..577603e 100644 --- a/query/client.go +++ b/query/client.go @@ -56,13 +56,13 @@ func (c *Client) ListBatchDetails( func (c *Client) ListBatchDetailsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchDetailsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseSettlements, error) { response, err := c.WithRawResponse.ListBatchDetailsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -95,13 +95,13 @@ func (c *Client) ListBatches( func (c *Client) ListBatchesOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchesOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryBatchesResponse, error) { response, err := c.WithRawResponse.ListBatchesOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -134,13 +134,13 @@ func (c *Client) ListBatchesOut( func (c *Client) ListBatchesOutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchesOutOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryBatchesOutResponse, error) { response, err := c.WithRawResponse.ListBatchesOutOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -173,13 +173,13 @@ func (c *Client) ListChargebacks( func (c *Client) ListChargebacksOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListChargebacksOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryChargebacksResponse, error) { response, err := c.WithRawResponse.ListChargebacksOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -212,13 +212,13 @@ func (c *Client) ListCustomers( func (c *Client) ListCustomersOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListCustomersOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryCustomerResponse, error) { response, err := c.WithRawResponse.ListCustomersOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -251,13 +251,13 @@ func (c *Client) ListNotificationReports( func (c *Client) ListNotificationReportsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListNotificationReportsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseNotificationReports, error) { response, err := c.WithRawResponse.ListNotificationReportsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -290,13 +290,13 @@ func (c *Client) ListNotifications( func (c *Client) ListNotificationsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListNotificationsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseNotifications, error) { response, err := c.WithRawResponse.ListNotificationsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -310,13 +310,13 @@ func (c *Client) ListNotificationsOrg( func (c *Client) ListOrganizations( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListOrganizationsRequest, opts ...option.RequestOption, ) (*payabli.ListOrganizationsResponse, error) { response, err := c.WithRawResponse.ListOrganizations( ctx, - orgId, + orgID, request, opts..., ) @@ -349,13 +349,13 @@ func (c *Client) ListPayout( func (c *Client) ListPayoutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPayoutOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryPayoutTransaction, error) { response, err := c.WithRawResponse.ListPayoutOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -369,13 +369,13 @@ func (c *Client) ListPayoutOrg( func (c *Client) ListPaypoints( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPaypointsRequest, opts ...option.RequestOption, ) (*payabli.QueryEntrypointResponse, error) { response, err := c.WithRawResponse.ListPaypoints( ctx, - orgId, + orgID, request, opts..., ) @@ -408,13 +408,13 @@ func (c *Client) ListSettlements( func (c *Client) ListSettlementsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListSettlementsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseSettlements, error) { response, err := c.WithRawResponse.ListSettlementsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -447,13 +447,13 @@ func (c *Client) ListSubscriptions( func (c *Client) ListSubscriptionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListSubscriptionsOrgRequest, opts ...option.RequestOption, ) (*payabli.QuerySubscriptionResponse, error) { response, err := c.WithRawResponse.ListSubscriptionsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -486,13 +486,13 @@ func (c *Client) ListPayoutSubscriptions( func (c *Client) ListPayoutSubscriptionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPayoutSubscriptionsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryPayoutSubscriptionResponse, error) { response, err := c.WithRawResponse.ListPayoutSubscriptionsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -544,13 +544,13 @@ func (c *Client) ListTransactions( func (c *Client) ListTransactionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTransactionsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseTransactions, error) { response, err := c.WithRawResponse.ListTransactionsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -565,14 +565,14 @@ func (c *Client) ListTransferDetails( ctx context.Context, entry payabli.Entry, // The numeric identifier for the transfer, assigned by Payabli. - transferId int, + transferID int, request *payabli.ListTransfersPaypointRequest, opts ...option.RequestOption, ) (*payabli.QueryTransferDetailResponse, error) { response, err := c.WithRawResponse.ListTransferDetails( ctx, entry, - transferId, + transferID, request, opts..., ) @@ -622,13 +622,13 @@ func (c *Client) ListTransfersOrg( func (c *Client) ListTransfersOutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTransfersOutOrgRequest, opts ...option.RequestOption, ) (*payabli.TransferOutQueryResponse, error) { response, err := c.WithRawResponse.ListTransfersOutOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -662,14 +662,14 @@ func (c *Client) ListTransferDetailsOut( ctx context.Context, entry payabli.Entry, // The numeric identifier for the transfer, assigned by Payabli. - transferId int, + transferID int, request *payabli.ListTransferDetailsOutRequest, opts ...option.RequestOption, ) (*payabli.TransferOutDetailQueryResponse, error) { response, err := c.WithRawResponse.ListTransferDetailsOut( ctx, entry, - transferId, + transferID, request, opts..., ) @@ -683,13 +683,13 @@ func (c *Client) ListTransferDetailsOut( func (c *Client) ListUsersOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListUsersOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryUserResponse, error) { response, err := c.WithRawResponse.ListUsersOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -743,13 +743,13 @@ func (c *Client) ListVendors( func (c *Client) ListVendorsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListVendorsOrgRequest, opts ...option.RequestOption, ) (*payabli.QueryResponseVendors, error) { response, err := c.WithRawResponse.ListVendorsOrg( ctx, - orgId, + orgID, request, opts..., ) @@ -782,13 +782,13 @@ func (c *Client) ListVcards( func (c *Client) ListVcardsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListVcardsOrgRequest, opts ...option.RequestOption, ) (*payabli.VCardQueryResponse, error) { response, err := c.WithRawResponse.ListVcardsOrg( ctx, - orgId, + orgID, request, opts..., ) diff --git a/query/query_test/query_test.go b/query/query_test/query_test.go index 43a9f12..bed10a2 100644 --- a/query/query_test/query_test.go +++ b/query/query_test/query_test.go @@ -1013,7 +1013,7 @@ func TestQueryListTransfersOrgWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.ListTransfersRequestOrg{ - OrgId: int64(123), + OrgID: int64(123), FromRecord: payabli.Int( 0, ), diff --git a/query/raw_client.go b/query/raw_client.go index 7e5b86a..777b03e 100644 --- a/query/raw_client.go +++ b/query/raw_client.go @@ -85,7 +85,7 @@ func (r *RawClient) ListBatchDetails( func (r *RawClient) ListBatchDetailsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchDetailsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseSettlements], error) { @@ -97,7 +97,7 @@ func (r *RawClient) ListBatchDetailsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/batchDetails/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -190,7 +190,7 @@ func (r *RawClient) ListBatches( func (r *RawClient) ListBatchesOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchesOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryBatchesResponse], error) { @@ -202,7 +202,7 @@ func (r *RawClient) ListBatchesOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/batches/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -295,7 +295,7 @@ func (r *RawClient) ListBatchesOut( func (r *RawClient) ListBatchesOutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListBatchesOutOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryBatchesOutResponse], error) { @@ -307,7 +307,7 @@ func (r *RawClient) ListBatchesOutOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/batchesOut/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -400,7 +400,7 @@ func (r *RawClient) ListChargebacks( func (r *RawClient) ListChargebacksOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListChargebacksOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryChargebacksResponse], error) { @@ -412,7 +412,7 @@ func (r *RawClient) ListChargebacksOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/chargebacks/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -505,7 +505,7 @@ func (r *RawClient) ListCustomers( func (r *RawClient) ListCustomersOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListCustomersOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryCustomerResponse], error) { @@ -517,7 +517,7 @@ func (r *RawClient) ListCustomersOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/customers/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -610,7 +610,7 @@ func (r *RawClient) ListNotificationReports( func (r *RawClient) ListNotificationReportsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListNotificationReportsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseNotificationReports], error) { @@ -622,7 +622,7 @@ func (r *RawClient) ListNotificationReportsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/notificationReports/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -715,7 +715,7 @@ func (r *RawClient) ListNotifications( func (r *RawClient) ListNotificationsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListNotificationsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseNotifications], error) { @@ -727,7 +727,7 @@ func (r *RawClient) ListNotificationsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/notifications/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -768,7 +768,7 @@ func (r *RawClient) ListNotificationsOrg( func (r *RawClient) ListOrganizations( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListOrganizationsRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.ListOrganizationsResponse], error) { @@ -780,7 +780,7 @@ func (r *RawClient) ListOrganizations( ) endpointURL := internal.EncodeURL( baseURL+"/Query/organizations/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -873,7 +873,7 @@ func (r *RawClient) ListPayout( func (r *RawClient) ListPayoutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPayoutOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryPayoutTransaction], error) { @@ -885,7 +885,7 @@ func (r *RawClient) ListPayoutOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/payouts/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -926,7 +926,7 @@ func (r *RawClient) ListPayoutOrg( func (r *RawClient) ListPaypoints( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPaypointsRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryEntrypointResponse], error) { @@ -938,7 +938,7 @@ func (r *RawClient) ListPaypoints( ) endpointURL := internal.EncodeURL( baseURL+"/Query/paypoints/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1031,7 +1031,7 @@ func (r *RawClient) ListSettlements( func (r *RawClient) ListSettlementsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListSettlementsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseSettlements], error) { @@ -1043,7 +1043,7 @@ func (r *RawClient) ListSettlementsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/settlements/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1136,7 +1136,7 @@ func (r *RawClient) ListSubscriptions( func (r *RawClient) ListSubscriptionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListSubscriptionsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QuerySubscriptionResponse], error) { @@ -1148,7 +1148,7 @@ func (r *RawClient) ListSubscriptionsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/subscriptions/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1241,7 +1241,7 @@ func (r *RawClient) ListPayoutSubscriptions( func (r *RawClient) ListPayoutSubscriptionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListPayoutSubscriptionsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryPayoutSubscriptionResponse], error) { @@ -1253,7 +1253,7 @@ func (r *RawClient) ListPayoutSubscriptionsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/payoutsubscriptions/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1346,7 +1346,7 @@ func (r *RawClient) ListTransactions( func (r *RawClient) ListTransactionsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTransactionsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseTransactions], error) { @@ -1358,7 +1358,7 @@ func (r *RawClient) ListTransactionsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/transactions/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1400,7 +1400,7 @@ func (r *RawClient) ListTransferDetails( ctx context.Context, entry payabli.Entry, // The numeric identifier for the transfer, assigned by Payabli. - transferId int, + transferID int, request *payabli.ListTransfersPaypointRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryTransferDetailResponse], error) { @@ -1413,7 +1413,7 @@ func (r *RawClient) ListTransferDetails( endpointURL := internal.EncodeURL( baseURL+"/Query/transferDetails/%v/%v", entry, - transferId, + transferID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1516,7 +1516,7 @@ func (r *RawClient) ListTransfersOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/transfers/org/%v", - request.OrgId, + request.OrgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1557,7 +1557,7 @@ func (r *RawClient) ListTransfersOrg( func (r *RawClient) ListTransfersOutOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTransfersOutOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.TransferOutQueryResponse], error) { @@ -1569,7 +1569,7 @@ func (r *RawClient) ListTransfersOutOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/transfersOut/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1663,7 +1663,7 @@ func (r *RawClient) ListTransferDetailsOut( ctx context.Context, entry payabli.Entry, // The numeric identifier for the transfer, assigned by Payabli. - transferId int, + transferID int, request *payabli.ListTransferDetailsOutRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.TransferOutDetailQueryResponse], error) { @@ -1676,7 +1676,7 @@ func (r *RawClient) ListTransferDetailsOut( endpointURL := internal.EncodeURL( baseURL+"/Query/transferDetailsOut/%v/%v", entry, - transferId, + transferID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1717,7 +1717,7 @@ func (r *RawClient) ListTransferDetailsOut( func (r *RawClient) ListUsersOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListUsersOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryUserResponse], error) { @@ -1729,7 +1729,7 @@ func (r *RawClient) ListUsersOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/users/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1876,7 +1876,7 @@ func (r *RawClient) ListVendors( func (r *RawClient) ListVendorsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListVendorsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.QueryResponseVendors], error) { @@ -1888,7 +1888,7 @@ func (r *RawClient) ListVendorsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/vendors/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -1981,7 +1981,7 @@ func (r *RawClient) ListVcards( func (r *RawClient) ListVcardsOrg( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListVcardsOrgRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.VCardQueryResponse], error) { @@ -1993,7 +1993,7 @@ func (r *RawClient) ListVcardsOrg( ) endpointURL := internal.EncodeURL( baseURL+"/Query/vcards/org/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/query_test.go b/query_test.go index 8a83d4e..a2b2827 100644 --- a/query_test.go +++ b/query_test.go @@ -5645,11 +5645,11 @@ func TestSettersMarkExplicitListTransfersRequest(t *testing.T) { } func TestSettersListTransfersRequestOrg(t *testing.T) { - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ListTransfersRequestOrg{} - var fernTestValueOrgId Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -5696,14 +5696,14 @@ func TestSettersListTransfersRequestOrg(t *testing.T) { } func TestSettersMarkExplicitListTransfersRequestOrg(t *testing.T) { - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ListTransfersRequestOrg{} - var fernTestValueOrgId Orgid + var fernTestValueOrgID Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7481,11 +7481,11 @@ func TestSettersAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &AssociatedVendor{} - var fernTestValueVendorId *int - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *int + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -7641,11 +7641,11 @@ func TestSettersAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &AssociatedVendor{} - var fernTestValueInternalReferenceId *InternalReferenceId - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *InternalReferenceID + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -7657,11 +7657,11 @@ func TestSettersAssociatedVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &AssociatedVendor{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -8262,28 +8262,28 @@ func TestGettersAssociatedVendor(t *testing.T) { _ = obj.GetVendorStatus() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} var expected *int - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -8292,7 +8292,7 @@ func TestGettersAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetEnrollmentStatus", func(t *testing.T) { @@ -8922,28 +8922,28 @@ func TestGettersAssociatedVendor(t *testing.T) { _ = obj.GetCustomerVendorAccount() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - var expected *InternalReferenceId - obj.InternalReferenceId = expected + var expected *InternalReferenceID + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -8952,7 +8952,7 @@ func TestGettersAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetAdditionalData", func(t *testing.T) { @@ -8988,28 +8988,28 @@ func TestGettersAssociatedVendor(t *testing.T) { _ = obj.GetAdditionalData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AssociatedVendor // Should not panic - getters should handle nil receiver gracefully @@ -9018,7 +9018,7 @@ func TestGettersAssociatedVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) } @@ -9582,14 +9582,14 @@ func TestSettersMarkExplicitAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - var fernTestValueVendorId *int + var fernTestValueVendorID *int // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10202,14 +10202,14 @@ func TestSettersMarkExplicitAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - var fernTestValueInternalReferenceId *InternalReferenceId + var fernTestValueInternalReferenceID *InternalReferenceID // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10264,14 +10264,14 @@ func TestSettersMarkExplicitAssociatedVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AssociatedVendor{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -10755,11 +10755,11 @@ func TestSettersBillingFeeDetail(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEventId", func(t *testing.T) { + t.Run("SetEventID", func(t *testing.T) { obj := &BillingFeeDetail{} - var fernTestValueEventId *string - obj.SetEventId(fernTestValueEventId) - assert.Equal(t, fernTestValueEventId, obj.EventId) + var fernTestValueEventID *string + obj.SetEventID(fernTestValueEventID) + assert.Equal(t, fernTestValueEventID, obj.EventID) assert.NotNil(t, obj.explicitFields) }) @@ -10896,28 +10896,28 @@ func TestGettersBillingFeeDetail(t *testing.T) { _ = obj.GetService() // Should return zero value }) - t.Run("GetEventId", func(t *testing.T) { + t.Run("GetEventID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingFeeDetail{} var expected *string - obj.EventId = expected + obj.EventID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEventId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEventID(), "getter should return the property value") }) - t.Run("GetEventId_NilValue", func(t *testing.T) { + t.Run("GetEventID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingFeeDetail{} - obj.EventId = nil + obj.EventID = nil // Act & Assert - assert.Nil(t, obj.GetEventId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEventID(), "getter should return nil when property is nil") }) - t.Run("GetEventId_NilReceiver", func(t *testing.T) { + t.Run("GetEventID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillingFeeDetail // Should not panic - getters should handle nil receiver gracefully @@ -10926,7 +10926,7 @@ func TestGettersBillingFeeDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEventId() // Should return zero value + _ = obj.GetEventID() // Should return zero value }) t.Run("GetDescription", func(t *testing.T) { @@ -11258,14 +11258,14 @@ func TestSettersMarkExplicitBillingFeeDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEventId_MarksExplicit", func(t *testing.T) { + t.Run("SetEventID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingFeeDetail{} - var fernTestValueEventId *string + var fernTestValueEventID *string // Act - obj.SetEventId(fernTestValueEventId) + obj.SetEventID(fernTestValueEventID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11580,11 +11580,11 @@ func TestSettersPayoutGatewayConnector(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayId", func(t *testing.T) { + t.Run("SetGatewayID", func(t *testing.T) { obj := &PayoutGatewayConnector{} - var fernTestValueGatewayId *int - obj.SetGatewayId(fernTestValueGatewayId) - assert.Equal(t, fernTestValueGatewayId, obj.GatewayId) + var fernTestValueGatewayID *int + obj.SetGatewayID(fernTestValueGatewayID) + assert.Equal(t, fernTestValueGatewayID, obj.GatewayID) assert.NotNil(t, obj.explicitFields) }) @@ -11780,28 +11780,28 @@ func TestGettersPayoutGatewayConnector(t *testing.T) { _ = obj.GetDescriptor() // Should return zero value }) - t.Run("GetGatewayId", func(t *testing.T) { + t.Run("GetGatewayID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutGatewayConnector{} var expected *int - obj.GatewayId = expected + obj.GatewayID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayID(), "getter should return the property value") }) - t.Run("GetGatewayId_NilValue", func(t *testing.T) { + t.Run("GetGatewayID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutGatewayConnector{} - obj.GatewayId = nil + obj.GatewayID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayoutGatewayConnector // Should not panic - getters should handle nil receiver gracefully @@ -11810,7 +11810,7 @@ func TestGettersPayoutGatewayConnector(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayId() // Should return zero value + _ = obj.GetGatewayID() // Should return zero value }) t.Run("GetEnabled", func(t *testing.T) { @@ -12070,14 +12070,14 @@ func TestSettersMarkExplicitPayoutGatewayConnector(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayoutGatewayConnector{} - var fernTestValueGatewayId *int + var fernTestValueGatewayID *int // Act - obj.SetGatewayId(fernTestValueGatewayId) + obj.SetGatewayID(fernTestValueGatewayID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12566,19 +12566,19 @@ func TestSettersQueryBatchesOutResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdBatch", func(t *testing.T) { + t.Run("SetIDBatch", func(t *testing.T) { obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValueIdBatch *int - obj.SetIdBatch(fernTestValueIdBatch) - assert.Equal(t, fernTestValueIdBatch, obj.IdBatch) + var fernTestValueIDBatch *int + obj.SetIDBatch(fernTestValueIDBatch) + assert.Equal(t, fernTestValueIDBatch, obj.IDBatch) assert.NotNil(t, obj.explicitFields) }) @@ -12598,11 +12598,11 @@ func TestSettersQueryBatchesOutResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -13572,28 +13572,28 @@ func TestGettersQueryBatchesOutResponseRecordsItem(t *testing.T) { _ = obj.GetEntryName() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesOutResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -13602,31 +13602,31 @@ func TestGettersQueryBatchesOutResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetIdBatch", func(t *testing.T) { + t.Run("GetIDBatch", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} var expected *int - obj.IdBatch = expected + obj.IDBatch = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdBatch(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDBatch(), "getter should return the property value") }) - t.Run("GetIdBatch_NilValue", func(t *testing.T) { + t.Run("GetIDBatch_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - obj.IdBatch = nil + obj.IDBatch = nil // Act & Assert - assert.Nil(t, obj.GetIdBatch(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDBatch(), "getter should return nil when property is nil") }) - t.Run("GetIdBatch_NilReceiver", func(t *testing.T) { + t.Run("GetIDBatch_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesOutResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -13635,7 +13635,7 @@ func TestGettersQueryBatchesOutResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdBatch() // Should return zero value + _ = obj.GetIDBatch() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -13704,28 +13704,28 @@ func TestGettersQueryBatchesOutResponseRecordsItem(t *testing.T) { _ = obj.GetPaypointDba() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesOutResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -13734,7 +13734,7 @@ func TestGettersQueryBatchesOutResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointName", func(t *testing.T) { @@ -14874,14 +14874,14 @@ func TestSettersMarkExplicitQueryBatchesOutResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14905,14 +14905,14 @@ func TestSettersMarkExplicitQueryBatchesOutResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdBatch_MarksExplicit", func(t *testing.T) { + t.Run("SetIDBatch_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValueIdBatch *int + var fernTestValueIDBatch *int // Act - obj.SetIdBatch(fernTestValueIdBatch) + obj.SetIDBatch(fernTestValueIDBatch) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14998,14 +14998,14 @@ func TestSettersMarkExplicitQueryBatchesOutResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesOutResponseRecordsItem{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15504,19 +15504,19 @@ func TestSettersQueryChargebacksResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -15544,11 +15544,11 @@ func TestSettersQueryChargebacksResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -15576,11 +15576,11 @@ func TestSettersQueryChargebacksResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValuePaymentTransId *string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID *string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -15848,28 +15848,28 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { _ = obj.GetCustomer() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryChargebacksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -15878,31 +15878,31 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryChargebacksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -15911,7 +15911,7 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetLastFour", func(t *testing.T) { @@ -16013,28 +16013,28 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { _ = obj.GetNetAmount() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryChargebacksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -16043,7 +16043,7 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetPageidentifier", func(t *testing.T) { @@ -16145,28 +16145,28 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { _ = obj.GetPaymentData() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} var expected *string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilValue", func(t *testing.T) { + t.Run("GetPaymentTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - obj.PaymentTransId = nil + obj.PaymentTransID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentTransID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryChargebacksResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -16175,7 +16175,7 @@ func TestGettersQueryChargebacksResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetPaypointDbaname", func(t *testing.T) { @@ -16732,14 +16732,14 @@ func TestSettersMarkExplicitQueryChargebacksResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16763,14 +16763,14 @@ func TestSettersMarkExplicitQueryChargebacksResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16887,14 +16887,14 @@ func TestSettersMarkExplicitQueryChargebacksResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17011,14 +17011,14 @@ func TestSettersMarkExplicitQueryChargebacksResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryChargebacksResponseRecordsItem{} - var fernTestValuePaymentTransId *string + var fernTestValuePaymentTransID *string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17811,11 +17811,11 @@ func TestSettersQueryEntrypointResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingId", func(t *testing.T) { + t.Run("SetBoardingID", func(t *testing.T) { obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueBoardingId *BoardingId - obj.SetBoardingId(fernTestValueBoardingId) - assert.Equal(t, fernTestValueBoardingId, obj.BoardingId) + var fernTestValueBoardingID *BoardingID + obj.SetBoardingID(fernTestValueBoardingID) + assert.Equal(t, fernTestValueBoardingID, obj.BoardingID) assert.NotNil(t, obj.explicitFields) }) @@ -17915,11 +17915,11 @@ func TestSettersQueryEntrypointResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -17939,11 +17939,11 @@ func TestSettersQueryEntrypointResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdPaypoint", func(t *testing.T) { + t.Run("SetIDPaypoint", func(t *testing.T) { obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueIdPaypoint *Idpaypoint - obj.SetIdPaypoint(fernTestValueIdPaypoint) - assert.Equal(t, fernTestValueIdPaypoint, obj.IdPaypoint) + var fernTestValueIDPaypoint *Idpaypoint + obj.SetIDPaypoint(fernTestValueIDPaypoint) + assert.Equal(t, fernTestValueIDPaypoint, obj.IDPaypoint) assert.NotNil(t, obj.explicitFields) }) @@ -18035,11 +18035,11 @@ func TestSettersQueryEntrypointResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -18107,11 +18107,11 @@ func TestSettersQueryEntrypointResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTemplateId", func(t *testing.T) { + t.Run("SetTemplateID", func(t *testing.T) { obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueTemplateId *TemplateId - obj.SetTemplateId(fernTestValueTemplateId) - assert.Equal(t, fernTestValueTemplateId, obj.TemplateId) + var fernTestValueTemplateID *TemplateID + obj.SetTemplateID(fernTestValueTemplateID) + assert.Equal(t, fernTestValueTemplateID, obj.TemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -18521,28 +18521,28 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { _ = obj.GetBinWeb() // Should return zero value }) - t.Run("GetBoardingId", func(t *testing.T) { + t.Run("GetBoardingID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var expected *BoardingId - obj.BoardingId = expected + var expected *BoardingID + obj.BoardingID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingID(), "getter should return the property value") }) - t.Run("GetBoardingId_NilValue", func(t *testing.T) { + t.Run("GetBoardingID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - obj.BoardingId = nil + obj.BoardingID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryEntrypointResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -18551,7 +18551,7 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingId() // Should return zero value + _ = obj.GetBoardingID() // Should return zero value }) t.Run("GetBPhone", func(t *testing.T) { @@ -18950,28 +18950,28 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { _ = obj.GetEntryPoints() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryEntrypointResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -18980,7 +18980,7 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetExternalProcessorInformation", func(t *testing.T) { @@ -19049,28 +19049,28 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { _ = obj.GetHighTicketAmount() // Should return zero value }) - t.Run("GetIdPaypoint", func(t *testing.T) { + t.Run("GetIDPaypoint", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} var expected *Idpaypoint - obj.IdPaypoint = expected + obj.IDPaypoint = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdPaypoint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDPaypoint(), "getter should return the property value") }) - t.Run("GetIdPaypoint_NilValue", func(t *testing.T) { + t.Run("GetIDPaypoint_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - obj.IdPaypoint = nil + obj.IDPaypoint = nil // Act & Assert - assert.Nil(t, obj.GetIdPaypoint(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDPaypoint(), "getter should return nil when property is nil") }) - t.Run("GetIdPaypoint_NilReceiver", func(t *testing.T) { + t.Run("GetIDPaypoint_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryEntrypointResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -19079,7 +19079,7 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdPaypoint() // Should return zero value + _ = obj.GetIDPaypoint() // Should return zero value }) t.Run("GetLastModified", func(t *testing.T) { @@ -19445,28 +19445,28 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { _ = obj.GetMZip() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryEntrypointResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -19475,7 +19475,7 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgParentName", func(t *testing.T) { @@ -19742,28 +19742,28 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { _ = obj.GetTaxfillname() // Should return zero value }) - t.Run("GetTemplateId", func(t *testing.T) { + t.Run("GetTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var expected *TemplateId - obj.TemplateId = expected + var expected *TemplateID + obj.TemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTemplateID(), "getter should return the property value") }) - t.Run("GetTemplateId_NilValue", func(t *testing.T) { + t.Run("GetTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - obj.TemplateId = nil + obj.TemplateID = nil // Act & Assert - assert.Nil(t, obj.GetTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryEntrypointResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -19772,7 +19772,7 @@ func TestGettersQueryEntrypointResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTemplateId() // Should return zero value + _ = obj.GetTemplateID() // Should return zero value }) t.Run("GetWebsiteAddress", func(t *testing.T) { @@ -20284,14 +20284,14 @@ func TestSettersMarkExplicitQueryEntrypointResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueBoardingId *BoardingId + var fernTestValueBoardingID *BoardingID // Act - obj.SetBoardingId(fernTestValueBoardingId) + obj.SetBoardingID(fernTestValueBoardingID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20687,14 +20687,14 @@ func TestSettersMarkExplicitQueryEntrypointResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20780,14 +20780,14 @@ func TestSettersMarkExplicitQueryEntrypointResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdPaypoint_MarksExplicit", func(t *testing.T) { + t.Run("SetIDPaypoint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueIdPaypoint *Idpaypoint + var fernTestValueIDPaypoint *Idpaypoint // Act - obj.SetIdPaypoint(fernTestValueIdPaypoint) + obj.SetIDPaypoint(fernTestValueIDPaypoint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21152,14 +21152,14 @@ func TestSettersMarkExplicitQueryEntrypointResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21431,14 +21431,14 @@ func TestSettersMarkExplicitQueryEntrypointResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryEntrypointResponseRecordsItem{} - var fernTestValueTemplateId *TemplateId + var fernTestValueTemplateID *TemplateID // Act - obj.SetTemplateId(fernTestValueTemplateId) + obj.SetTemplateID(fernTestValueTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21781,11 +21781,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueBatchId *int - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID *int + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -21853,11 +21853,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -21885,11 +21885,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdOut", func(t *testing.T) { + t.Run("SetIDOut", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueIdOut *int64 - obj.SetIdOut(fernTestValueIdOut) - assert.Equal(t, fernTestValueIdOut, obj.IdOut) + var fernTestValueIDOut *int64 + obj.SetIDOut(fernTestValueIDOut) + assert.Equal(t, fernTestValueIDOut, obj.IDOut) assert.NotNil(t, obj.explicitFields) }) @@ -21925,11 +21925,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -21941,11 +21941,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValuePaymentId *PaymentIdString - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *PaymentIDString + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) @@ -22037,11 +22037,11 @@ func TestSettersQueryPayoutTransactionRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScheduleId", func(t *testing.T) { + t.Run("SetScheduleID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueScheduleId *ScheduleId - obj.SetScheduleId(fernTestValueScheduleId) - assert.Equal(t, fernTestValueScheduleId, obj.ScheduleId) + var fernTestValueScheduleID *ScheduleID + obj.SetScheduleID(fernTestValueScheduleID) + assert.Equal(t, fernTestValueScheduleID, obj.ScheduleID) assert.NotNil(t, obj.explicitFields) }) @@ -22121,28 +22121,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetBatchNumber() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} var expected *int - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilValue", func(t *testing.T) { + t.Run("GetBatchID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.BatchId = nil + obj.BatchID = nil // Act & Assert - assert.Nil(t, obj.GetBatchId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBatchID(), "getter should return nil when property is nil") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -22151,7 +22151,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetBills", func(t *testing.T) { @@ -22418,28 +22418,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetEvents() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -22448,7 +22448,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetFeeAmount", func(t *testing.T) { @@ -22550,28 +22550,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetHasVcardTransactions() // Should return zero value }) - t.Run("GetIdOut", func(t *testing.T) { + t.Run("GetIDOut", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} var expected *int64 - obj.IdOut = expected + obj.IDOut = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOut(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOut(), "getter should return the property value") }) - t.Run("GetIdOut_NilValue", func(t *testing.T) { + t.Run("GetIDOut_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.IdOut = nil + obj.IDOut = nil // Act & Assert - assert.Nil(t, obj.GetIdOut(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOut(), "getter should return nil when property is nil") }) - t.Run("GetIdOut_NilReceiver", func(t *testing.T) { + t.Run("GetIDOut_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -22580,7 +22580,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOut() // Should return zero value + _ = obj.GetIDOut() // Should return zero value }) t.Run("GetIsSameDayAch", func(t *testing.T) { @@ -22715,28 +22715,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -22745,7 +22745,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -22781,28 +22781,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetPaymentData() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var expected *PaymentIdString - obj.PaymentId = expected + var expected *PaymentIDString + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -22811,7 +22811,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) t.Run("GetPaymentMethod", func(t *testing.T) { @@ -23177,28 +23177,28 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { _ = obj.GetRiskStatus() // Should return zero value }) - t.Run("GetScheduleId", func(t *testing.T) { + t.Run("GetScheduleID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var expected *ScheduleId - obj.ScheduleId = expected + var expected *ScheduleID + obj.ScheduleID = expected // Act & Assert - assert.Equal(t, expected, obj.GetScheduleId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScheduleID(), "getter should return the property value") }) - t.Run("GetScheduleId_NilValue", func(t *testing.T) { + t.Run("GetScheduleID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - obj.ScheduleId = nil + obj.ScheduleID = nil // Act & Assert - assert.Nil(t, obj.GetScheduleId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScheduleID(), "getter should return nil when property is nil") }) - t.Run("GetScheduleId_NilReceiver", func(t *testing.T) { + t.Run("GetScheduleID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -23207,7 +23207,7 @@ func TestGettersQueryPayoutTransactionRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScheduleId() // Should return zero value + _ = obj.GetScheduleID() // Should return zero value }) t.Run("GetSettlementStatus", func(t *testing.T) { @@ -23409,14 +23409,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueBatchId *int + var fernTestValueBatchID *int // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23688,14 +23688,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23812,14 +23812,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdOut_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOut_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueIdOut *int64 + var fernTestValueIDOut *int64 // Act - obj.SetIdOut(fernTestValueIdOut) + obj.SetIDOut(fernTestValueIDOut) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23967,14 +23967,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24029,14 +24029,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValuePaymentId *PaymentIdString + var fernTestValuePaymentID *PaymentIDString // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24401,14 +24401,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScheduleId_MarksExplicit", func(t *testing.T) { + t.Run("SetScheduleID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItem{} - var fernTestValueScheduleId *ScheduleId + var fernTestValueScheduleID *ScheduleID // Act - obj.SetScheduleId(fernTestValueScheduleId) + obj.SetScheduleID(fernTestValueScheduleID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -24598,11 +24598,11 @@ func TestSettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItemPaymentData{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -24718,11 +24718,11 @@ func TestSettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredId", func(t *testing.T) { + t.Run("SetStoredID", func(t *testing.T) { obj := &QueryPayoutTransactionRecordsItemPaymentData{} - var fernTestValueStoredId *Storedmethodid - obj.SetStoredId(fernTestValueStoredId) - assert.Equal(t, fernTestValueStoredId, obj.StoredId) + var fernTestValueStoredID *Storedmethodid + obj.SetStoredID(fernTestValueStoredID) + assert.Equal(t, fernTestValueStoredID, obj.StoredID) assert.NotNil(t, obj.explicitFields) }) @@ -24770,28 +24770,28 @@ func TestGettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { _ = obj.GetAccountExp() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItemPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -24800,7 +24800,7 @@ func TestGettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetAccountType", func(t *testing.T) { @@ -25265,28 +25265,28 @@ func TestGettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { _ = obj.GetSequence() // Should return zero value }) - t.Run("GetStoredId", func(t *testing.T) { + t.Run("GetStoredID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} var expected *Storedmethodid - obj.StoredId = expected + obj.StoredID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredID(), "getter should return the property value") }) - t.Run("GetStoredId_NilValue", func(t *testing.T) { + t.Run("GetStoredID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} - obj.StoredId = nil + obj.StoredID = nil // Act & Assert - assert.Nil(t, obj.GetStoredId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredID(), "getter should return nil when property is nil") }) - t.Run("GetStoredId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPayoutTransactionRecordsItemPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -25295,7 +25295,7 @@ func TestGettersQueryPayoutTransactionRecordsItemPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredId() // Should return zero value + _ = obj.GetStoredID() // Should return zero value }) t.Run("GetStoredMethodUsageType", func(t *testing.T) { @@ -25365,14 +25365,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItemPaymentData(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25830,14 +25830,14 @@ func TestSettersMarkExplicitQueryPayoutTransactionRecordsItemPaymentData(t *test // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPayoutTransactionRecordsItemPaymentData{} - var fernTestValueStoredId *Storedmethodid + var fernTestValueStoredID *Storedmethodid // Act - obj.SetStoredId(fernTestValueStoredId) + obj.SetStoredID(fernTestValueStoredID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27505,11 +27505,11 @@ func TestSettersQueryResponseNotificationReportsRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &QueryResponseNotificationReportsRecordsItem{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -27565,28 +27565,28 @@ func TestGettersQueryResponseNotificationReportsRecordsItem(t *testing.T) { _ = obj.GetCreatedAt() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationReportsRecordsItem{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationReportsRecordsItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseNotificationReportsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -27595,7 +27595,7 @@ func TestGettersQueryResponseNotificationReportsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetIsDownloadable", func(t *testing.T) { @@ -27698,14 +27698,14 @@ func TestSettersMarkExplicitQueryResponseNotificationReportsRecordsItem(t *testi // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationReportsRecordsItem{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27987,19 +27987,19 @@ func TestSettersQueryResponseNotificationsRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetNotificationId", func(t *testing.T) { + t.Run("SetNotificationID", func(t *testing.T) { obj := &QueryResponseNotificationsRecordsItem{} - var fernTestValueNotificationId *NotificationId - obj.SetNotificationId(fernTestValueNotificationId) - assert.Equal(t, fernTestValueNotificationId, obj.NotificationId) + var fernTestValueNotificationID *NotificationID + obj.SetNotificationID(fernTestValueNotificationID) + assert.Equal(t, fernTestValueNotificationID, obj.NotificationID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOwnerId", func(t *testing.T) { + t.Run("SetOwnerID", func(t *testing.T) { obj := &QueryResponseNotificationsRecordsItem{} - var fernTestValueOwnerId *Ownerid - obj.SetOwnerId(fernTestValueOwnerId) - assert.Equal(t, fernTestValueOwnerId, obj.OwnerId) + var fernTestValueOwnerID *Ownerid + obj.SetOwnerID(fernTestValueOwnerID) + assert.Equal(t, fernTestValueOwnerID, obj.OwnerID) assert.NotNil(t, obj.explicitFields) }) @@ -28211,28 +28211,28 @@ func TestGettersQueryResponseNotificationsRecordsItem(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetNotificationId", func(t *testing.T) { + t.Run("GetNotificationID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} - var expected *NotificationId - obj.NotificationId = expected + var expected *NotificationID + obj.NotificationID = expected // Act & Assert - assert.Equal(t, expected, obj.GetNotificationId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetNotificationID(), "getter should return the property value") }) - t.Run("GetNotificationId_NilValue", func(t *testing.T) { + t.Run("GetNotificationID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} - obj.NotificationId = nil + obj.NotificationID = nil // Act & Assert - assert.Nil(t, obj.GetNotificationId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetNotificationID(), "getter should return nil when property is nil") }) - t.Run("GetNotificationId_NilReceiver", func(t *testing.T) { + t.Run("GetNotificationID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseNotificationsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -28241,31 +28241,31 @@ func TestGettersQueryResponseNotificationsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetNotificationId() // Should return zero value + _ = obj.GetNotificationID() // Should return zero value }) - t.Run("GetOwnerId", func(t *testing.T) { + t.Run("GetOwnerID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} var expected *Ownerid - obj.OwnerId = expected + obj.OwnerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOwnerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOwnerID(), "getter should return the property value") }) - t.Run("GetOwnerId_NilValue", func(t *testing.T) { + t.Run("GetOwnerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} - obj.OwnerId = nil + obj.OwnerID = nil // Act & Assert - assert.Nil(t, obj.GetOwnerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOwnerID(), "getter should return nil when property is nil") }) - t.Run("GetOwnerId_NilReceiver", func(t *testing.T) { + t.Run("GetOwnerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseNotificationsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -28274,7 +28274,7 @@ func TestGettersQueryResponseNotificationsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOwnerId() // Should return zero value + _ = obj.GetOwnerID() // Should return zero value }) t.Run("GetOwnerName", func(t *testing.T) { @@ -28600,14 +28600,14 @@ func TestSettersMarkExplicitQueryResponseNotificationsRecordsItem(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetNotificationId_MarksExplicit", func(t *testing.T) { + t.Run("SetNotificationID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} - var fernTestValueNotificationId *NotificationId + var fernTestValueNotificationID *NotificationID // Act - obj.SetNotificationId(fernTestValueNotificationId) + obj.SetNotificationID(fernTestValueNotificationID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -28631,14 +28631,14 @@ func TestSettersMarkExplicitQueryResponseNotificationsRecordsItem(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOwnerId_MarksExplicit", func(t *testing.T) { + t.Run("SetOwnerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseNotificationsRecordsItem{} - var fernTestValueOwnerId *Ownerid + var fernTestValueOwnerID *Ownerid // Act - obj.SetOwnerId(fernTestValueOwnerId) + obj.SetOwnerID(fernTestValueOwnerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -29029,27 +29029,27 @@ func TestSettersQueryResponseSettlementsRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueGatewayTransId *string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID *string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -29101,11 +29101,11 @@ func TestSettersQueryResponseSettlementsRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -29125,11 +29125,11 @@ func TestSettersQueryResponseSettlementsRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValuePaymentTransId *string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID *string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -29479,28 +29479,28 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { _ = obj.GetExpectedDepositDate() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseSettlementsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -29509,31 +29509,31 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} var expected *string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilValue", func(t *testing.T) { + t.Run("GetGatewayTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - obj.GatewayTransId = nil + obj.GatewayTransID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayTransID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseSettlementsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -29542,31 +29542,31 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseSettlementsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -29575,7 +29575,7 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetInvoiceData", func(t *testing.T) { @@ -29776,28 +29776,28 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { _ = obj.GetOperation() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseSettlementsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -29806,7 +29806,7 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -29875,28 +29875,28 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { _ = obj.GetPaymentData() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} var expected *string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilValue", func(t *testing.T) { + t.Run("GetPaymentTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - obj.PaymentTransId = nil + obj.PaymentTransID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentTransID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryResponseSettlementsRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -29905,7 +29905,7 @@ func TestGettersQueryResponseSettlementsRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetPaymentTransStatus", func(t *testing.T) { @@ -30590,14 +30590,14 @@ func TestSettersMarkExplicitQueryResponseSettlementsRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30621,14 +30621,14 @@ func TestSettersMarkExplicitQueryResponseSettlementsRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueGatewayTransId *string + var fernTestValueGatewayTransID *string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30652,14 +30652,14 @@ func TestSettersMarkExplicitQueryResponseSettlementsRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30869,14 +30869,14 @@ func TestSettersMarkExplicitQueryResponseSettlementsRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30962,14 +30962,14 @@ func TestSettersMarkExplicitQueryResponseSettlementsRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseSettlementsRecordsItem{} - var fernTestValuePaymentTransId *string + var fernTestValuePaymentTransID *string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -32771,19 +32771,19 @@ func TestSettersMarkExplicitQueryUserResponse(t *testing.T) { } func TestSettersTransfer(t *testing.T) { - t.Run("SetTransferId", func(t *testing.T) { + t.Run("SetTransferID", func(t *testing.T) { obj := &Transfer{} - var fernTestValueTransferId int - obj.SetTransferId(fernTestValueTransferId) - assert.Equal(t, fernTestValueTransferId, obj.TransferId) + var fernTestValueTransferID int + obj.SetTransferID(fernTestValueTransferID) + assert.Equal(t, fernTestValueTransferID, obj.TransferID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &Transfer{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -32819,11 +32819,11 @@ func TestSettersTransfer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &Transfer{} - var fernTestValueBatchId int - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID int + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -32867,11 +32867,11 @@ func TestSettersTransfer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &Transfer{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -32891,11 +32891,11 @@ func TestSettersTransfer(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &Transfer{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -33030,18 +33030,18 @@ func TestSettersTransfer(t *testing.T) { } func TestGettersTransfer(t *testing.T) { - t.Run("GetTransferId", func(t *testing.T) { + t.Run("GetTransferID", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} var expected int - obj.TransferId = expected + obj.TransferID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferID(), "getter should return the property value") }) - t.Run("GetTransferId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Transfer // Should not panic - getters should handle nil receiver gracefully @@ -33050,21 +33050,21 @@ func TestGettersTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferId() // Should return zero value + _ = obj.GetTransferID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Transfer // Should not panic - getters should handle nil receiver gracefully @@ -33073,7 +33073,7 @@ func TestGettersTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetBatchNumber", func(t *testing.T) { @@ -33188,18 +33188,18 @@ func TestGettersTransfer(t *testing.T) { _ = obj.GetTransferIdentifier() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} var expected int - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Transfer // Should not panic - getters should handle nil receiver gracefully @@ -33208,7 +33208,7 @@ func TestGettersTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetPaypointEntryName", func(t *testing.T) { @@ -33376,28 +33376,28 @@ func TestGettersTransfer(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Transfer // Should not panic - getters should handle nil receiver gracefully @@ -33406,7 +33406,7 @@ func TestGettersTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgEntryName", func(t *testing.T) { @@ -33475,28 +33475,28 @@ func TestGettersTransfer(t *testing.T) { _ = obj.GetParentOrgLogo() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Transfer // Should not panic - getters should handle nil receiver gracefully @@ -33505,7 +33505,7 @@ func TestGettersTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetBankAccount", func(t *testing.T) { @@ -33919,14 +33919,14 @@ func TestGettersTransfer(t *testing.T) { } func TestSettersMarkExplicitTransfer(t *testing.T) { - t.Run("SetTransferId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var fernTestValueTransferId int + var fernTestValueTransferID int // Act - obj.SetTransferId(fernTestValueTransferId) + obj.SetTransferID(fernTestValueTransferID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -33950,14 +33950,14 @@ func TestSettersMarkExplicitTransfer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -34105,14 +34105,14 @@ func TestSettersMarkExplicitTransfer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var fernTestValueBatchId int + var fernTestValueBatchID int // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -34291,14 +34291,14 @@ func TestSettersMarkExplicitTransfer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -34384,14 +34384,14 @@ func TestSettersMarkExplicitTransfer(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Transfer{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -35109,27 +35109,27 @@ func TestSettersMarkExplicitTransferBankAccount(t *testing.T) { } func TestSettersTransferMessage(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &TransferMessage{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &TransferMessage{} - var fernTestValueRoomId *int - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *int + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &TransferMessage{} - var fernTestValueUserId *int - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID *int + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) @@ -35176,28 +35176,28 @@ func TestSettersTransferMessage(t *testing.T) { } func TestGettersTransferMessage(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferMessage // Should not panic - getters should handle nil receiver gracefully @@ -35206,31 +35206,31 @@ func TestGettersTransferMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} var expected *int - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferMessage // Should not panic - getters should handle nil receiver gracefully @@ -35239,31 +35239,31 @@ func TestGettersTransferMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) - t.Run("GetUserId", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} var expected *int - obj.UserId = expected + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetUserId_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - obj.UserId = nil + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetUserId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetUserId_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferMessage // Should not panic - getters should handle nil receiver gracefully @@ -35272,7 +35272,7 @@ func TestGettersTransferMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserId() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) t.Run("GetUserName", func(t *testing.T) { @@ -35443,14 +35443,14 @@ func TestGettersTransferMessage(t *testing.T) { } func TestSettersMarkExplicitTransferMessage(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -35474,14 +35474,14 @@ func TestSettersMarkExplicitTransferMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - var fernTestValueRoomId *int + var fernTestValueRoomID *int // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -35505,14 +35505,14 @@ func TestSettersMarkExplicitTransferMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferMessage{} - var fernTestValueUserId *int + var fernTestValueUserID *int // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -36548,19 +36548,19 @@ func TestSettersVCardRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &VCardRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &VCardRecord{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -37392,28 +37392,28 @@ func TestGettersVCardRecord(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardRecord // Should not panic - getters should handle nil receiver gracefully @@ -37422,31 +37422,31 @@ func TestGettersVCardRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VCardRecord // Should not panic - getters should handle nil receiver gracefully @@ -37455,7 +37455,7 @@ func TestGettersVCardRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) } @@ -38236,14 +38236,14 @@ func TestSettersMarkExplicitVCardRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -38267,14 +38267,14 @@ func TestSettersMarkExplicitVCardRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VCardRecord{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/query_types.go b/query_types.go index c7ca767..411dcfa 100644 --- a/query_types.go +++ b/query_types.go @@ -11,18 +11,18 @@ import ( ) var ( - batchDetailResponseRecordFieldId = big.NewInt(1 << 0) + batchDetailResponseRecordFieldID = big.NewInt(1 << 0) batchDetailResponseRecordFieldMethod = big.NewInt(1 << 1) batchDetailResponseRecordFieldWalletType = big.NewInt(1 << 2) batchDetailResponseRecordFieldSettledAmount = big.NewInt(1 << 3) batchDetailResponseRecordFieldType = big.NewInt(1 << 4) batchDetailResponseRecordFieldBatchNumber = big.NewInt(1 << 5) batchDetailResponseRecordFieldBatchAmount = big.NewInt(1 << 6) - batchDetailResponseRecordFieldPaymentTransId = big.NewInt(1 << 7) + batchDetailResponseRecordFieldPaymentTransID = big.NewInt(1 << 7) batchDetailResponseRecordFieldPaymentTransStatus = big.NewInt(1 << 8) batchDetailResponseRecordFieldScheduleReference = big.NewInt(1 << 9) - batchDetailResponseRecordFieldGatewayTransId = big.NewInt(1 << 10) - batchDetailResponseRecordFieldOrderId = big.NewInt(1 << 11) + batchDetailResponseRecordFieldGatewayTransID = big.NewInt(1 << 10) + batchDetailResponseRecordFieldOrderID = big.NewInt(1 << 11) batchDetailResponseRecordFieldTransMethod = big.NewInt(1 << 12) batchDetailResponseRecordFieldPaymentData = big.NewInt(1 << 13) batchDetailResponseRecordFieldNetAmount = big.NewInt(1 << 14) @@ -43,44 +43,44 @@ var ( batchDetailResponseRecordFieldResponseData = big.NewInt(1 << 29) batchDetailResponseRecordFieldPaypointDbaname = big.NewInt(1 << 30) batchDetailResponseRecordFieldParentOrgName = big.NewInt(1 << 31) - batchDetailResponseRecordFieldParentOrgId = big.NewInt(1 << 32) + batchDetailResponseRecordFieldParentOrgID = big.NewInt(1 << 32) batchDetailResponseRecordFieldPaypointEntryname = big.NewInt(1 << 33) - batchDetailResponseRecordFieldDeviceId = big.NewInt(1 << 34) - batchDetailResponseRecordFieldRetrievalId = big.NewInt(1 << 35) - batchDetailResponseRecordFieldChargebackId = big.NewInt(1 << 36) + batchDetailResponseRecordFieldDeviceID = big.NewInt(1 << 34) + batchDetailResponseRecordFieldRetrievalID = big.NewInt(1 << 35) + batchDetailResponseRecordFieldChargebackID = big.NewInt(1 << 36) batchDetailResponseRecordFieldAchHolderType = big.NewInt(1 << 37) batchDetailResponseRecordFieldAchSecCode = big.NewInt(1 << 38) batchDetailResponseRecordFieldConnectorName = big.NewInt(1 << 39) - batchDetailResponseRecordFieldEntrypageId = big.NewInt(1 << 40) + batchDetailResponseRecordFieldEntrypageID = big.NewInt(1 << 40) batchDetailResponseRecordFieldFeeAmount = big.NewInt(1 << 41) - batchDetailResponseRecordFieldOrgId = big.NewInt(1 << 42) - batchDetailResponseRecordFieldPayorId = big.NewInt(1 << 43) - batchDetailResponseRecordFieldPaypointId = big.NewInt(1 << 44) + batchDetailResponseRecordFieldOrgID = big.NewInt(1 << 42) + batchDetailResponseRecordFieldPayorID = big.NewInt(1 << 43) + batchDetailResponseRecordFieldPaypointID = big.NewInt(1 << 44) batchDetailResponseRecordFieldPendingFeeAmount = big.NewInt(1 << 45) - batchDetailResponseRecordFieldRefundId = big.NewInt(1 << 46) - batchDetailResponseRecordFieldReturnedId = big.NewInt(1 << 47) + batchDetailResponseRecordFieldRefundID = big.NewInt(1 << 46) + batchDetailResponseRecordFieldReturnedID = big.NewInt(1 << 47) batchDetailResponseRecordFieldSplitFundingInstructions = big.NewInt(1 << 48) batchDetailResponseRecordFieldTotalAmount = big.NewInt(1 << 49) batchDetailResponseRecordFieldCfeeTransactions = big.NewInt(1 << 50) batchDetailResponseRecordFieldInvoiceData = big.NewInt(1 << 51) batchDetailResponseRecordFieldTransactionEvents = big.NewInt(1 << 52) - batchDetailResponseRecordFieldExternalPaypointId = big.NewInt(1 << 53) + batchDetailResponseRecordFieldExternalPaypointID = big.NewInt(1 << 53) batchDetailResponseRecordFieldIsHold = big.NewInt(1 << 54) ) type BatchDetailResponseRecord struct { - Id int `json:"Id" url:"Id"` + ID int `json:"Id" url:"Id"` Method string `json:"Method" url:"Method"` WalletType *string `json:"WalletType,omitempty" url:"WalletType,omitempty"` SettledAmount float64 `json:"SettledAmount" url:"SettledAmount"` Type string `json:"Type" url:"Type"` BatchNumber BatchNumber `json:"BatchNumber" url:"BatchNumber"` BatchAmount float64 `json:"BatchAmount" url:"BatchAmount"` - PaymentTransId string `json:"PaymentTransId" url:"PaymentTransId"` + PaymentTransID string `json:"PaymentTransId" url:"PaymentTransId"` PaymentTransStatus int `json:"PaymentTransStatus" url:"PaymentTransStatus"` ScheduleReference int `json:"ScheduleReference" url:"ScheduleReference"` - GatewayTransId string `json:"GatewayTransId" url:"GatewayTransId"` - OrderId OrderId `json:"OrderId" url:"OrderId"` + GatewayTransID string `json:"GatewayTransId" url:"GatewayTransId"` + OrderID OrderID `json:"OrderId" url:"OrderId"` TransMethod string `json:"TransMethod" url:"TransMethod"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` @@ -101,28 +101,28 @@ type BatchDetailResponseRecord struct { ResponseData *QueryResponseData `json:"ResponseData,omitempty" url:"ResponseData,omitempty"` PaypointDbaname Dbaname `json:"PaypointDbaname" url:"PaypointDbaname"` ParentOrgName OrgParentName `json:"ParentOrgName" url:"ParentOrgName"` - ParentOrgId int `json:"ParentOrgId" url:"ParentOrgId"` + ParentOrgID int `json:"ParentOrgId" url:"ParentOrgId"` PaypointEntryname Entrypointfield `json:"PaypointEntryname" url:"PaypointEntryname"` - DeviceId *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` - RetrievalId RetrievalId `json:"RetrievalId" url:"RetrievalId"` - ChargebackId ChargebackId `json:"ChargebackId" url:"ChargebackId"` + DeviceID *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` + RetrievalID RetrievalID `json:"RetrievalId" url:"RetrievalId"` + ChargebackID ChargebackID `json:"ChargebackId" url:"ChargebackId"` AchHolderType AchHolderType `json:"AchHolderType" url:"AchHolderType"` AchSecCode AchSecCode `json:"AchSecCode" url:"AchSecCode"` ConnectorName string `json:"ConnectorName" url:"ConnectorName"` - EntrypageId EntrypageId `json:"EntrypageId" url:"EntrypageId"` + EntrypageID EntrypageID `json:"EntrypageId" url:"EntrypageId"` FeeAmount FeeAmount `json:"FeeAmount" url:"FeeAmount"` - OrgId Orgid `json:"OrgId" url:"OrgId"` - PayorId PayorId `json:"PayorId" url:"PayorId"` - PaypointId PaypointId `json:"PaypointId" url:"PaypointId"` + OrgID Orgid `json:"OrgId" url:"OrgId"` + PayorID PayorID `json:"PayorId" url:"PayorId"` + PaypointID PaypointID `json:"PaypointId" url:"PaypointId"` PendingFeeAmount *PendingFeeAmount `json:"PendingFeeAmount,omitempty" url:"PendingFeeAmount,omitempty"` - RefundId RefundId `json:"RefundId" url:"RefundId"` - ReturnedId ReturnedId `json:"ReturnedId" url:"ReturnedId"` + RefundID RefundID `json:"RefundId" url:"RefundId"` + ReturnedID ReturnedID `json:"ReturnedId" url:"ReturnedId"` SplitFundingInstructions *SplitFunding `json:"splitFundingInstructions,omitempty" url:"splitFundingInstructions,omitempty"` TotalAmount float64 `json:"TotalAmount" url:"TotalAmount"` CfeeTransactions []*QueryCFeeTransaction `json:"CfeeTransactions" url:"CfeeTransactions"` InvoiceData *BillData `json:"invoiceData,omitempty" url:"invoiceData,omitempty"` TransactionEvents []*QueryTransactionEvents `json:"TransactionEvents" url:"TransactionEvents"` - ExternalPaypointId ExternalPaypointId `json:"externalPaypointID" url:"externalPaypointID"` + ExternalPaypointID ExternalPaypointID `json:"externalPaypointID" url:"externalPaypointID"` IsHold int `json:"isHold" url:"isHold"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -132,11 +132,11 @@ type BatchDetailResponseRecord struct { rawJSON json.RawMessage } -func (b *BatchDetailResponseRecord) GetId() int { +func (b *BatchDetailResponseRecord) GetID() int { if b == nil { return 0 } - return b.Id + return b.ID } func (b *BatchDetailResponseRecord) GetMethod() string { @@ -181,11 +181,11 @@ func (b *BatchDetailResponseRecord) GetBatchAmount() float64 { return b.BatchAmount } -func (b *BatchDetailResponseRecord) GetPaymentTransId() string { +func (b *BatchDetailResponseRecord) GetPaymentTransID() string { if b == nil { return "" } - return b.PaymentTransId + return b.PaymentTransID } func (b *BatchDetailResponseRecord) GetPaymentTransStatus() int { @@ -202,18 +202,18 @@ func (b *BatchDetailResponseRecord) GetScheduleReference() int { return b.ScheduleReference } -func (b *BatchDetailResponseRecord) GetGatewayTransId() string { +func (b *BatchDetailResponseRecord) GetGatewayTransID() string { if b == nil { return "" } - return b.GatewayTransId + return b.GatewayTransID } -func (b *BatchDetailResponseRecord) GetOrderId() OrderId { +func (b *BatchDetailResponseRecord) GetOrderID() OrderID { if b == nil { return "" } - return b.OrderId + return b.OrderID } func (b *BatchDetailResponseRecord) GetTransMethod() string { @@ -356,11 +356,11 @@ func (b *BatchDetailResponseRecord) GetParentOrgName() OrgParentName { return b.ParentOrgName } -func (b *BatchDetailResponseRecord) GetParentOrgId() int { +func (b *BatchDetailResponseRecord) GetParentOrgID() int { if b == nil { return 0 } - return b.ParentOrgId + return b.ParentOrgID } func (b *BatchDetailResponseRecord) GetPaypointEntryname() Entrypointfield { @@ -370,25 +370,25 @@ func (b *BatchDetailResponseRecord) GetPaypointEntryname() Entrypointfield { return b.PaypointEntryname } -func (b *BatchDetailResponseRecord) GetDeviceId() *Device { +func (b *BatchDetailResponseRecord) GetDeviceID() *Device { if b == nil { return nil } - return b.DeviceId + return b.DeviceID } -func (b *BatchDetailResponseRecord) GetRetrievalId() RetrievalId { +func (b *BatchDetailResponseRecord) GetRetrievalID() RetrievalID { if b == nil { return 0 } - return b.RetrievalId + return b.RetrievalID } -func (b *BatchDetailResponseRecord) GetChargebackId() ChargebackId { +func (b *BatchDetailResponseRecord) GetChargebackID() ChargebackID { if b == nil { return 0 } - return b.ChargebackId + return b.ChargebackID } func (b *BatchDetailResponseRecord) GetAchHolderType() AchHolderType { @@ -412,11 +412,11 @@ func (b *BatchDetailResponseRecord) GetConnectorName() string { return b.ConnectorName } -func (b *BatchDetailResponseRecord) GetEntrypageId() EntrypageId { +func (b *BatchDetailResponseRecord) GetEntrypageID() EntrypageID { if b == nil { return 0 } - return b.EntrypageId + return b.EntrypageID } func (b *BatchDetailResponseRecord) GetFeeAmount() FeeAmount { @@ -426,25 +426,25 @@ func (b *BatchDetailResponseRecord) GetFeeAmount() FeeAmount { return b.FeeAmount } -func (b *BatchDetailResponseRecord) GetOrgId() Orgid { +func (b *BatchDetailResponseRecord) GetOrgID() Orgid { if b == nil { return 0 } - return b.OrgId + return b.OrgID } -func (b *BatchDetailResponseRecord) GetPayorId() PayorId { +func (b *BatchDetailResponseRecord) GetPayorID() PayorID { if b == nil { return 0 } - return b.PayorId + return b.PayorID } -func (b *BatchDetailResponseRecord) GetPaypointId() PaypointId { +func (b *BatchDetailResponseRecord) GetPaypointID() PaypointID { if b == nil { return 0 } - return b.PaypointId + return b.PaypointID } func (b *BatchDetailResponseRecord) GetPendingFeeAmount() *PendingFeeAmount { @@ -454,18 +454,18 @@ func (b *BatchDetailResponseRecord) GetPendingFeeAmount() *PendingFeeAmount { return b.PendingFeeAmount } -func (b *BatchDetailResponseRecord) GetRefundId() RefundId { +func (b *BatchDetailResponseRecord) GetRefundID() RefundID { if b == nil { return 0 } - return b.RefundId + return b.RefundID } -func (b *BatchDetailResponseRecord) GetReturnedId() ReturnedId { +func (b *BatchDetailResponseRecord) GetReturnedID() ReturnedID { if b == nil { return 0 } - return b.ReturnedId + return b.ReturnedID } func (b *BatchDetailResponseRecord) GetSplitFundingInstructions() *SplitFunding { @@ -503,11 +503,11 @@ func (b *BatchDetailResponseRecord) GetTransactionEvents() []*QueryTransactionEv return b.TransactionEvents } -func (b *BatchDetailResponseRecord) GetExternalPaypointId() ExternalPaypointId { +func (b *BatchDetailResponseRecord) GetExternalPaypointID() ExternalPaypointID { if b == nil { return "" } - return b.ExternalPaypointId + return b.ExternalPaypointID } func (b *BatchDetailResponseRecord) GetIsHold() int { @@ -531,11 +531,11 @@ func (b *BatchDetailResponseRecord) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetId(id int) { - b.Id = id - b.require(batchDetailResponseRecordFieldId) +func (b *BatchDetailResponseRecord) SetID(id int) { + b.ID = id + b.require(batchDetailResponseRecordFieldID) } // SetMethod sets the Method field and marks it as non-optional; @@ -580,11 +580,11 @@ func (b *BatchDetailResponseRecord) SetBatchAmount(batchAmount float64) { b.require(batchDetailResponseRecordFieldBatchAmount) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetPaymentTransId(paymentTransId string) { - b.PaymentTransId = paymentTransId - b.require(batchDetailResponseRecordFieldPaymentTransId) +func (b *BatchDetailResponseRecord) SetPaymentTransID(paymentTransID string) { + b.PaymentTransID = paymentTransID + b.require(batchDetailResponseRecordFieldPaymentTransID) } // SetPaymentTransStatus sets the PaymentTransStatus field and marks it as non-optional; @@ -601,18 +601,18 @@ func (b *BatchDetailResponseRecord) SetScheduleReference(scheduleReference int) b.require(batchDetailResponseRecordFieldScheduleReference) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetGatewayTransId(gatewayTransId string) { - b.GatewayTransId = gatewayTransId - b.require(batchDetailResponseRecordFieldGatewayTransId) +func (b *BatchDetailResponseRecord) SetGatewayTransID(gatewayTransID string) { + b.GatewayTransID = gatewayTransID + b.require(batchDetailResponseRecordFieldGatewayTransID) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetOrderId(orderId OrderId) { - b.OrderId = orderId - b.require(batchDetailResponseRecordFieldOrderId) +func (b *BatchDetailResponseRecord) SetOrderID(orderID OrderID) { + b.OrderID = orderID + b.require(batchDetailResponseRecordFieldOrderID) } // SetTransMethod sets the TransMethod field and marks it as non-optional; @@ -755,11 +755,11 @@ func (b *BatchDetailResponseRecord) SetParentOrgName(parentOrgName OrgParentName b.require(batchDetailResponseRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetParentOrgId(parentOrgId int) { - b.ParentOrgId = parentOrgId - b.require(batchDetailResponseRecordFieldParentOrgId) +func (b *BatchDetailResponseRecord) SetParentOrgID(parentOrgID int) { + b.ParentOrgID = parentOrgID + b.require(batchDetailResponseRecordFieldParentOrgID) } // SetPaypointEntryname sets the PaypointEntryname field and marks it as non-optional; @@ -769,25 +769,25 @@ func (b *BatchDetailResponseRecord) SetPaypointEntryname(paypointEntryname Entry b.require(batchDetailResponseRecordFieldPaypointEntryname) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetDeviceId(deviceId *Device) { - b.DeviceId = deviceId - b.require(batchDetailResponseRecordFieldDeviceId) +func (b *BatchDetailResponseRecord) SetDeviceID(deviceID *Device) { + b.DeviceID = deviceID + b.require(batchDetailResponseRecordFieldDeviceID) } -// SetRetrievalId sets the RetrievalId field and marks it as non-optional; +// SetRetrievalID sets the RetrievalID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetRetrievalId(retrievalId RetrievalId) { - b.RetrievalId = retrievalId - b.require(batchDetailResponseRecordFieldRetrievalId) +func (b *BatchDetailResponseRecord) SetRetrievalID(retrievalID RetrievalID) { + b.RetrievalID = retrievalID + b.require(batchDetailResponseRecordFieldRetrievalID) } -// SetChargebackId sets the ChargebackId field and marks it as non-optional; +// SetChargebackID sets the ChargebackID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetChargebackId(chargebackId ChargebackId) { - b.ChargebackId = chargebackId - b.require(batchDetailResponseRecordFieldChargebackId) +func (b *BatchDetailResponseRecord) SetChargebackID(chargebackID ChargebackID) { + b.ChargebackID = chargebackID + b.require(batchDetailResponseRecordFieldChargebackID) } // SetAchHolderType sets the AchHolderType field and marks it as non-optional; @@ -811,11 +811,11 @@ func (b *BatchDetailResponseRecord) SetConnectorName(connectorName string) { b.require(batchDetailResponseRecordFieldConnectorName) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetEntrypageId(entrypageId EntrypageId) { - b.EntrypageId = entrypageId - b.require(batchDetailResponseRecordFieldEntrypageId) +func (b *BatchDetailResponseRecord) SetEntrypageID(entrypageID EntrypageID) { + b.EntrypageID = entrypageID + b.require(batchDetailResponseRecordFieldEntrypageID) } // SetFeeAmount sets the FeeAmount field and marks it as non-optional; @@ -825,25 +825,25 @@ func (b *BatchDetailResponseRecord) SetFeeAmount(feeAmount FeeAmount) { b.require(batchDetailResponseRecordFieldFeeAmount) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetOrgId(orgId Orgid) { - b.OrgId = orgId - b.require(batchDetailResponseRecordFieldOrgId) +func (b *BatchDetailResponseRecord) SetOrgID(orgID Orgid) { + b.OrgID = orgID + b.require(batchDetailResponseRecordFieldOrgID) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetPayorId(payorId PayorId) { - b.PayorId = payorId - b.require(batchDetailResponseRecordFieldPayorId) +func (b *BatchDetailResponseRecord) SetPayorID(payorID PayorID) { + b.PayorID = payorID + b.require(batchDetailResponseRecordFieldPayorID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetPaypointId(paypointId PaypointId) { - b.PaypointId = paypointId - b.require(batchDetailResponseRecordFieldPaypointId) +func (b *BatchDetailResponseRecord) SetPaypointID(paypointID PaypointID) { + b.PaypointID = paypointID + b.require(batchDetailResponseRecordFieldPaypointID) } // SetPendingFeeAmount sets the PendingFeeAmount field and marks it as non-optional; @@ -853,18 +853,18 @@ func (b *BatchDetailResponseRecord) SetPendingFeeAmount(pendingFeeAmount *Pendin b.require(batchDetailResponseRecordFieldPendingFeeAmount) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetRefundId(refundId RefundId) { - b.RefundId = refundId - b.require(batchDetailResponseRecordFieldRefundId) +func (b *BatchDetailResponseRecord) SetRefundID(refundID RefundID) { + b.RefundID = refundID + b.require(batchDetailResponseRecordFieldRefundID) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetReturnedId(returnedId ReturnedId) { - b.ReturnedId = returnedId - b.require(batchDetailResponseRecordFieldReturnedId) +func (b *BatchDetailResponseRecord) SetReturnedID(returnedID ReturnedID) { + b.ReturnedID = returnedID + b.require(batchDetailResponseRecordFieldReturnedID) } // SetSplitFundingInstructions sets the SplitFundingInstructions field and marks it as non-optional; @@ -902,11 +902,11 @@ func (b *BatchDetailResponseRecord) SetTransactionEvents(transactionEvents []*Qu b.require(batchDetailResponseRecordFieldTransactionEvents) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BatchDetailResponseRecord) SetExternalPaypointId(externalPaypointId ExternalPaypointId) { - b.ExternalPaypointId = externalPaypointId - b.require(batchDetailResponseRecordFieldExternalPaypointId) +func (b *BatchDetailResponseRecord) SetExternalPaypointID(externalPaypointID ExternalPaypointID) { + b.ExternalPaypointID = externalPaypointID + b.require(batchDetailResponseRecordFieldExternalPaypointID) } // SetIsHold sets the IsHold field and marks it as non-optional; @@ -1513,7 +1513,7 @@ func (q *QueryBatchesResponse) String() string { } var ( - queryBatchesResponseRecordsItemFieldIdBatch = big.NewInt(1 << 0) + queryBatchesResponseRecordsItemFieldIDBatch = big.NewInt(1 << 0) queryBatchesResponseRecordsItemFieldBatchNumber = big.NewInt(1 << 1) queryBatchesResponseRecordsItemFieldTransferIdentifier = big.NewInt(1 << 2) queryBatchesResponseRecordsItemFieldEventsData = big.NewInt(1 << 3) @@ -1529,12 +1529,12 @@ var ( queryBatchesResponseRecordsItemFieldBatchSplitAmount = big.NewInt(1 << 13) queryBatchesResponseRecordsItemFieldBatchStatus = big.NewInt(1 << 14) queryBatchesResponseRecordsItemFieldBatchRecords = big.NewInt(1 << 15) - queryBatchesResponseRecordsItemFieldPaypointId = big.NewInt(1 << 16) + queryBatchesResponseRecordsItemFieldPaypointID = big.NewInt(1 << 16) queryBatchesResponseRecordsItemFieldPaypointName = big.NewInt(1 << 17) queryBatchesResponseRecordsItemFieldPaypointDba = big.NewInt(1 << 18) queryBatchesResponseRecordsItemFieldParentOrgName = big.NewInt(1 << 19) - queryBatchesResponseRecordsItemFieldParentOrgId = big.NewInt(1 << 20) - queryBatchesResponseRecordsItemFieldExternalPaypointId = big.NewInt(1 << 21) + queryBatchesResponseRecordsItemFieldParentOrgID = big.NewInt(1 << 20) + queryBatchesResponseRecordsItemFieldExternalPaypointID = big.NewInt(1 << 21) queryBatchesResponseRecordsItemFieldEntryName = big.NewInt(1 << 22) queryBatchesResponseRecordsItemFieldBankName = big.NewInt(1 << 23) queryBatchesResponseRecordsItemFieldBatchType = big.NewInt(1 << 24) @@ -1547,7 +1547,7 @@ var ( type QueryBatchesResponseRecordsItem struct { // The batch ID. - IdBatch *int `json:"IdBatch,omitempty" url:"IdBatch,omitempty"` + IDBatch *int `json:"IdBatch,omitempty" url:"IdBatch,omitempty"` BatchNumber *BatchNumber `json:"BatchNumber,omitempty" url:"BatchNumber,omitempty"` TransferIdentifier *TransferIdentifier `json:"TransferIdentifier,omitempty" url:"TransferIdentifier,omitempty"` // Events associated with the batch. @@ -1574,14 +1574,14 @@ type QueryBatchesResponseRecordsItem struct { BatchStatus int `json:"BatchStatus" url:"BatchStatus"` // The number of records in the batch. BatchRecords int `json:"BatchRecords" url:"BatchRecords"` - PaypointId *PaypointId `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *PaypointID `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` PaypointName *PaypointName `json:"PaypointName,omitempty" url:"PaypointName,omitempty"` PaypointDba *Dbaname `json:"PaypointDba,omitempty" url:"PaypointDba,omitempty"` // The entrypoint's parent org. ParentOrgName OrgParentName `json:"ParentOrgName" url:"ParentOrgName"` // The parent organization ID. - ParentOrgId int `json:"ParentOrgId" url:"ParentOrgId"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ParentOrgID int `json:"ParentOrgId" url:"ParentOrgId"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` EntryName Entrypointfield `json:"EntryName" url:"EntryName"` // The bank name. BankName *string `json:"BankName,omitempty" url:"BankName,omitempty"` @@ -1603,11 +1603,11 @@ type QueryBatchesResponseRecordsItem struct { rawJSON json.RawMessage } -func (q *QueryBatchesResponseRecordsItem) GetIdBatch() *int { +func (q *QueryBatchesResponseRecordsItem) GetIDBatch() *int { if q == nil { return nil } - return q.IdBatch + return q.IDBatch } func (q *QueryBatchesResponseRecordsItem) GetBatchNumber() *BatchNumber { @@ -1715,11 +1715,11 @@ func (q *QueryBatchesResponseRecordsItem) GetBatchRecords() int { return q.BatchRecords } -func (q *QueryBatchesResponseRecordsItem) GetPaypointId() *PaypointId { +func (q *QueryBatchesResponseRecordsItem) GetPaypointID() *PaypointID { if q == nil { return nil } - return q.PaypointId + return q.PaypointID } func (q *QueryBatchesResponseRecordsItem) GetPaypointName() *PaypointName { @@ -1743,18 +1743,18 @@ func (q *QueryBatchesResponseRecordsItem) GetParentOrgName() OrgParentName { return q.ParentOrgName } -func (q *QueryBatchesResponseRecordsItem) GetParentOrgId() int { +func (q *QueryBatchesResponseRecordsItem) GetParentOrgID() int { if q == nil { return 0 } - return q.ParentOrgId + return q.ParentOrgID } -func (q *QueryBatchesResponseRecordsItem) GetExternalPaypointId() *ExternalPaypointId { +func (q *QueryBatchesResponseRecordsItem) GetExternalPaypointID() *ExternalPaypointID { if q == nil { return nil } - return q.ExternalPaypointId + return q.ExternalPaypointID } func (q *QueryBatchesResponseRecordsItem) GetEntryName() Entrypointfield { @@ -1827,11 +1827,11 @@ func (q *QueryBatchesResponseRecordsItem) require(field *big.Int) { q.explicitFields.Or(q.explicitFields, field) } -// SetIdBatch sets the IdBatch field and marks it as non-optional; +// SetIDBatch sets the IDBatch field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesResponseRecordsItem) SetIdBatch(idBatch *int) { - q.IdBatch = idBatch - q.require(queryBatchesResponseRecordsItemFieldIdBatch) +func (q *QueryBatchesResponseRecordsItem) SetIDBatch(idBatch *int) { + q.IDBatch = idBatch + q.require(queryBatchesResponseRecordsItemFieldIDBatch) } // SetBatchNumber sets the BatchNumber field and marks it as non-optional; @@ -1939,11 +1939,11 @@ func (q *QueryBatchesResponseRecordsItem) SetBatchRecords(batchRecords int) { q.require(queryBatchesResponseRecordsItemFieldBatchRecords) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesResponseRecordsItem) SetPaypointId(paypointId *PaypointId) { - q.PaypointId = paypointId - q.require(queryBatchesResponseRecordsItemFieldPaypointId) +func (q *QueryBatchesResponseRecordsItem) SetPaypointID(paypointID *PaypointID) { + q.PaypointID = paypointID + q.require(queryBatchesResponseRecordsItemFieldPaypointID) } // SetPaypointName sets the PaypointName field and marks it as non-optional; @@ -1967,18 +1967,18 @@ func (q *QueryBatchesResponseRecordsItem) SetParentOrgName(parentOrgName OrgPare q.require(queryBatchesResponseRecordsItemFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesResponseRecordsItem) SetParentOrgId(parentOrgId int) { - q.ParentOrgId = parentOrgId - q.require(queryBatchesResponseRecordsItemFieldParentOrgId) +func (q *QueryBatchesResponseRecordsItem) SetParentOrgID(parentOrgID int) { + q.ParentOrgID = parentOrgID + q.require(queryBatchesResponseRecordsItemFieldParentOrgID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesResponseRecordsItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - q.ExternalPaypointId = externalPaypointId - q.require(queryBatchesResponseRecordsItemFieldExternalPaypointId) +func (q *QueryBatchesResponseRecordsItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + q.ExternalPaypointID = externalPaypointID + q.require(queryBatchesResponseRecordsItemFieldExternalPaypointID) } // SetEntryName sets the EntryName field and marks it as non-optional; @@ -2101,7 +2101,7 @@ func (q *QueryBatchesResponseRecordsItem) String() string { // Transfer details within a batch response. var ( - queryBatchesTransferFieldTransferId = big.NewInt(1 << 0) + queryBatchesTransferFieldTransferID = big.NewInt(1 << 0) queryBatchesTransferFieldTransferDate = big.NewInt(1 << 1) queryBatchesTransferFieldProcessor = big.NewInt(1 << 2) queryBatchesTransferFieldTransferStatus = big.NewInt(1 << 3) @@ -2119,7 +2119,7 @@ var ( type QueryBatchesTransfer struct { // The transfer ID. - TransferId *int `json:"TransferId,omitempty" url:"TransferId,omitempty"` + TransferID *int `json:"TransferId,omitempty" url:"TransferId,omitempty"` // The transfer date. TransferDate *time.Time `json:"TransferDate,omitempty" url:"TransferDate,omitempty"` // The processor used for the transfer. @@ -2154,11 +2154,11 @@ type QueryBatchesTransfer struct { rawJSON json.RawMessage } -func (q *QueryBatchesTransfer) GetTransferId() *int { +func (q *QueryBatchesTransfer) GetTransferID() *int { if q == nil { return nil } - return q.TransferId + return q.TransferID } func (q *QueryBatchesTransfer) GetTransferDate() *time.Time { @@ -2266,11 +2266,11 @@ func (q *QueryBatchesTransfer) require(field *big.Int) { q.explicitFields.Or(q.explicitFields, field) } -// SetTransferId sets the TransferId field and marks it as non-optional; +// SetTransferID sets the TransferID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryBatchesTransfer) SetTransferId(transferId *int) { - q.TransferId = transferId - q.require(queryBatchesTransferFieldTransferId) +func (q *QueryBatchesTransfer) SetTransferID(transferID *int) { + q.TransferID = transferID + q.require(queryBatchesTransferFieldTransferID) } // SetTransferDate sets the TransferDate field and marks it as non-optional; @@ -3028,9 +3028,9 @@ func (q *QueryTransferSummary) String() string { } var ( - transferDetailRecordFieldTransferDetailId = big.NewInt(1 << 0) - transferDetailRecordFieldTransferId = big.NewInt(1 << 1) - transferDetailRecordFieldTransactionId = big.NewInt(1 << 2) + transferDetailRecordFieldTransferDetailID = big.NewInt(1 << 0) + transferDetailRecordFieldTransferID = big.NewInt(1 << 1) + transferDetailRecordFieldTransactionID = big.NewInt(1 << 2) transferDetailRecordFieldTransactionNumber = big.NewInt(1 << 3) transferDetailRecordFieldType = big.NewInt(1 << 4) transferDetailRecordFieldCategory = big.NewInt(1 << 5) @@ -3050,18 +3050,18 @@ var ( transferDetailRecordFieldPaypointDbaname = big.NewInt(1 << 19) transferDetailRecordFieldPaypointLegalname = big.NewInt(1 << 20) transferDetailRecordFieldPaypointEntryname = big.NewInt(1 << 21) - transferDetailRecordFieldPaymentTransId = big.NewInt(1 << 22) + transferDetailRecordFieldPaymentTransID = big.NewInt(1 << 22) transferDetailRecordFieldConnectorName = big.NewInt(1 << 23) transferDetailRecordFieldExternalProcessorInformation = big.NewInt(1 << 24) - transferDetailRecordFieldGatewayTransId = big.NewInt(1 << 25) - transferDetailRecordFieldOrderId = big.NewInt(1 << 26) + transferDetailRecordFieldGatewayTransID = big.NewInt(1 << 25) + transferDetailRecordFieldOrderID = big.NewInt(1 << 26) transferDetailRecordFieldMethod = big.NewInt(1 << 27) transferDetailRecordFieldBatchNumber = big.NewInt(1 << 28) transferDetailRecordFieldBatchAmount = big.NewInt(1 << 29) - transferDetailRecordFieldPayorId = big.NewInt(1 << 30) + transferDetailRecordFieldPayorID = big.NewInt(1 << 30) transferDetailRecordFieldPaymentData = big.NewInt(1 << 31) transferDetailRecordFieldTransStatus = big.NewInt(1 << 32) - transferDetailRecordFieldPaypointId = big.NewInt(1 << 33) + transferDetailRecordFieldPaypointID = big.NewInt(1 << 33) transferDetailRecordFieldTotalAmount = big.NewInt(1 << 34) transferDetailRecordFieldNetAmount = big.NewInt(1 << 35) transferDetailRecordFieldFeeAmount = big.NewInt(1 << 36) @@ -3070,15 +3070,15 @@ var ( transferDetailRecordFieldResponseData = big.NewInt(1 << 39) transferDetailRecordFieldSource = big.NewInt(1 << 40) transferDetailRecordFieldScheduleReference = big.NewInt(1 << 41) - transferDetailRecordFieldOrgId = big.NewInt(1 << 42) - transferDetailRecordFieldRefundId = big.NewInt(1 << 43) - transferDetailRecordFieldReturnedId = big.NewInt(1 << 44) - transferDetailRecordFieldChargebackId = big.NewInt(1 << 45) - transferDetailRecordFieldRetrievalId = big.NewInt(1 << 46) + transferDetailRecordFieldOrgID = big.NewInt(1 << 42) + transferDetailRecordFieldRefundID = big.NewInt(1 << 43) + transferDetailRecordFieldReturnedID = big.NewInt(1 << 44) + transferDetailRecordFieldChargebackID = big.NewInt(1 << 45) + transferDetailRecordFieldRetrievalID = big.NewInt(1 << 46) transferDetailRecordFieldTransAdditionalData = big.NewInt(1 << 47) transferDetailRecordFieldInvoiceData = big.NewInt(1 << 48) - transferDetailRecordFieldEntrypageId = big.NewInt(1 << 49) - transferDetailRecordFieldExternalPaypointId = big.NewInt(1 << 50) + transferDetailRecordFieldEntrypageID = big.NewInt(1 << 49) + transferDetailRecordFieldExternalPaypointID = big.NewInt(1 << 50) transferDetailRecordFieldIsValidatedAch = big.NewInt(1 << 51) transferDetailRecordFieldTransactionTime = big.NewInt(1 << 52) transferDetailRecordFieldCustomer = big.NewInt(1 << 53) @@ -3092,21 +3092,21 @@ var ( transferDetailRecordFieldRiskReason = big.NewInt(1 << 61) transferDetailRecordFieldRiskAction = big.NewInt(1 << 62) transferDetailRecordFieldRiskActionCode = big.NewInt(0).Lsh(big.NewInt(1), 63) - transferDetailRecordFieldDeviceId = big.NewInt(0).Lsh(big.NewInt(1), 64) + transferDetailRecordFieldDeviceID = big.NewInt(0).Lsh(big.NewInt(1), 64) transferDetailRecordFieldAchSecCode = big.NewInt(0).Lsh(big.NewInt(1), 65) transferDetailRecordFieldAchHolderType = big.NewInt(0).Lsh(big.NewInt(1), 66) - transferDetailRecordFieldIpAddress = big.NewInt(0).Lsh(big.NewInt(1), 67) + transferDetailRecordFieldIPAddress = big.NewInt(0).Lsh(big.NewInt(1), 67) transferDetailRecordFieldIsSameDayAch = big.NewInt(0).Lsh(big.NewInt(1), 68) transferDetailRecordFieldWalletType = big.NewInt(0).Lsh(big.NewInt(1), 69) ) type TransferDetailRecord struct { // Unique identifier for the transfer detail record - TransferDetailId *int `json:"transferDetailId,omitempty" url:"transferDetailId,omitempty"` + TransferDetailID *int `json:"transferDetailId,omitempty" url:"transferDetailId,omitempty"` // The ID of the transfer this detail belongs to - TransferId *int `json:"transferId,omitempty" url:"transferId,omitempty"` + TransferID *int `json:"transferId,omitempty" url:"transferId,omitempty"` // The transaction ID in Payabli's system - TransactionId *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` + TransactionID *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` // External transaction reference number TransactionNumber *string `json:"transactionNumber,omitempty" url:"transactionNumber,omitempty"` // The transaction type (credit or debit) @@ -3142,26 +3142,26 @@ type TransferDetailRecord struct { // The paypoint's entryname PaypointEntryname *string `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` // The transaction ID for the payment - PaymentTransId *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` + PaymentTransID *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` // The payment connector used to process the transaction ConnectorName *string `json:"ConnectorName,omitempty" url:"ConnectorName,omitempty"` ExternalProcessorInformation *ExternalProcessorInformation `json:"ExternalProcessorInformation,omitempty" url:"ExternalProcessorInformation,omitempty"` // Internal identifier used for processing - GatewayTransId *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` - OrderId *OrderId `json:"OrderId,omitempty" url:"OrderId,omitempty"` + GatewayTransID *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` + OrderID *OrderID `json:"OrderId,omitempty" url:"OrderId,omitempty"` // Payment method used: card, ach, or wallet Method *string `json:"Method,omitempty" url:"Method,omitempty"` BatchNumber *BatchNumber `json:"BatchNumber,omitempty" url:"BatchNumber,omitempty"` // The amount of the batch BatchAmount *float64 `json:"BatchAmount,omitempty" url:"BatchAmount,omitempty"` // Unique ID for customer linked to the transaction - PayorId *PayorId `json:"PayorId,omitempty" url:"PayorId,omitempty"` + PayorID *PayorID `json:"PayorId,omitempty" url:"PayorId,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Status of transaction. See [the // docs](/developers/references/money-in-statuses#money-in-transaction-status) for a // full reference. TransStatus *int `json:"TransStatus,omitempty" url:"TransStatus,omitempty"` - PaypointId *PaypointId `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *PaypointID `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // Transaction total amount (including service fee or sub-charge) TotalAmount *float64 `json:"TotalAmount,omitempty" url:"TotalAmount,omitempty"` // Net amount paid @@ -3174,17 +3174,17 @@ type TransferDetailRecord struct { Source *Source `json:"Source,omitempty" url:"Source,omitempty"` // Reference to the subscription or schedule that originated the transaction ScheduleReference *int `json:"ScheduleReference,omitempty" url:"ScheduleReference,omitempty"` - OrgId *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` - RefundId *RefundId `json:"RefundId,omitempty" url:"RefundId,omitempty"` - ReturnedId *ReturnedId `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` - ChargebackId *ChargebackId `json:"ChargebackId,omitempty" url:"ChargebackId,omitempty"` - RetrievalId *RetrievalId `json:"RetrievalId,omitempty" url:"RetrievalId,omitempty"` + OrgID *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` + RefundID *RefundID `json:"RefundId,omitempty" url:"RefundId,omitempty"` + ReturnedID *ReturnedID `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` + ChargebackID *ChargebackID `json:"ChargebackId,omitempty" url:"ChargebackId,omitempty"` + RetrievalID *RetrievalID `json:"RetrievalId,omitempty" url:"RetrievalId,omitempty"` // Additional transaction data TransAdditionalData any `json:"TransAdditionalData,omitempty" url:"TransAdditionalData,omitempty"` // Associated invoice data InvoiceData *BillData `json:"invoiceData,omitempty" url:"invoiceData,omitempty"` - EntrypageId *EntrypageId `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + EntrypageID *EntrypageID `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Indicates whether the ACH account has been validated IsValidatedAch *bool `json:"IsValidatedACH,omitempty" url:"IsValidatedACH,omitempty"` // Transaction date and time, in UTC @@ -3200,10 +3200,10 @@ type TransferDetailRecord struct { RiskReason *RiskReason `json:"RiskReason,omitempty" url:"RiskReason,omitempty"` RiskAction *RiskAction `json:"RiskAction,omitempty" url:"RiskAction,omitempty"` RiskActionCode *RiskActionCode `json:"RiskActionCode,omitempty" url:"RiskActionCode,omitempty"` - DeviceId *DeviceId `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` + DeviceID *DeviceID `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` AchSecCode *AchSecCode `json:"AchSecCode,omitempty" url:"AchSecCode,omitempty"` AchHolderType *AchHolderType `json:"AchHolderType,omitempty" url:"AchHolderType,omitempty"` - IpAddress *IpAddress `json:"IpAddress,omitempty" url:"IpAddress,omitempty"` + IPAddress *IPAddress `json:"IpAddress,omitempty" url:"IpAddress,omitempty"` // Indicates if this was a same-day ACH transaction. IsSameDayAch *bool `json:"IsSameDayACH,omitempty" url:"IsSameDayACH,omitempty"` // Type of wallet used for the transaction (if applicable) @@ -3216,25 +3216,25 @@ type TransferDetailRecord struct { rawJSON json.RawMessage } -func (t *TransferDetailRecord) GetTransferDetailId() *int { +func (t *TransferDetailRecord) GetTransferDetailID() *int { if t == nil { return nil } - return t.TransferDetailId + return t.TransferDetailID } -func (t *TransferDetailRecord) GetTransferId() *int { +func (t *TransferDetailRecord) GetTransferID() *int { if t == nil { return nil } - return t.TransferId + return t.TransferID } -func (t *TransferDetailRecord) GetTransactionId() *string { +func (t *TransferDetailRecord) GetTransactionID() *string { if t == nil { return nil } - return t.TransactionId + return t.TransactionID } func (t *TransferDetailRecord) GetTransactionNumber() *string { @@ -3370,11 +3370,11 @@ func (t *TransferDetailRecord) GetPaypointEntryname() *string { return t.PaypointEntryname } -func (t *TransferDetailRecord) GetPaymentTransId() *string { +func (t *TransferDetailRecord) GetPaymentTransID() *string { if t == nil { return nil } - return t.PaymentTransId + return t.PaymentTransID } func (t *TransferDetailRecord) GetConnectorName() *string { @@ -3391,18 +3391,18 @@ func (t *TransferDetailRecord) GetExternalProcessorInformation() *ExternalProces return t.ExternalProcessorInformation } -func (t *TransferDetailRecord) GetGatewayTransId() *string { +func (t *TransferDetailRecord) GetGatewayTransID() *string { if t == nil { return nil } - return t.GatewayTransId + return t.GatewayTransID } -func (t *TransferDetailRecord) GetOrderId() *OrderId { +func (t *TransferDetailRecord) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } func (t *TransferDetailRecord) GetMethod() *string { @@ -3426,11 +3426,11 @@ func (t *TransferDetailRecord) GetBatchAmount() *float64 { return t.BatchAmount } -func (t *TransferDetailRecord) GetPayorId() *PayorId { +func (t *TransferDetailRecord) GetPayorID() *PayorID { if t == nil { return nil } - return t.PayorId + return t.PayorID } func (t *TransferDetailRecord) GetPaymentData() *QueryPaymentData { @@ -3447,11 +3447,11 @@ func (t *TransferDetailRecord) GetTransStatus() *int { return t.TransStatus } -func (t *TransferDetailRecord) GetPaypointId() *PaypointId { +func (t *TransferDetailRecord) GetPaypointID() *PaypointID { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransferDetailRecord) GetTotalAmount() *float64 { @@ -3510,39 +3510,39 @@ func (t *TransferDetailRecord) GetScheduleReference() *int { return t.ScheduleReference } -func (t *TransferDetailRecord) GetOrgId() *Orgid { +func (t *TransferDetailRecord) GetOrgID() *Orgid { if t == nil { return nil } - return t.OrgId + return t.OrgID } -func (t *TransferDetailRecord) GetRefundId() *RefundId { +func (t *TransferDetailRecord) GetRefundID() *RefundID { if t == nil { return nil } - return t.RefundId + return t.RefundID } -func (t *TransferDetailRecord) GetReturnedId() *ReturnedId { +func (t *TransferDetailRecord) GetReturnedID() *ReturnedID { if t == nil { return nil } - return t.ReturnedId + return t.ReturnedID } -func (t *TransferDetailRecord) GetChargebackId() *ChargebackId { +func (t *TransferDetailRecord) GetChargebackID() *ChargebackID { if t == nil { return nil } - return t.ChargebackId + return t.ChargebackID } -func (t *TransferDetailRecord) GetRetrievalId() *RetrievalId { +func (t *TransferDetailRecord) GetRetrievalID() *RetrievalID { if t == nil { return nil } - return t.RetrievalId + return t.RetrievalID } func (t *TransferDetailRecord) GetTransAdditionalData() any { @@ -3559,18 +3559,18 @@ func (t *TransferDetailRecord) GetInvoiceData() *BillData { return t.InvoiceData } -func (t *TransferDetailRecord) GetEntrypageId() *EntrypageId { +func (t *TransferDetailRecord) GetEntrypageID() *EntrypageID { if t == nil { return nil } - return t.EntrypageId + return t.EntrypageID } -func (t *TransferDetailRecord) GetExternalPaypointId() *ExternalPaypointId { +func (t *TransferDetailRecord) GetExternalPaypointID() *ExternalPaypointID { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransferDetailRecord) GetIsValidatedAch() *bool { @@ -3664,11 +3664,11 @@ func (t *TransferDetailRecord) GetRiskActionCode() *RiskActionCode { return t.RiskActionCode } -func (t *TransferDetailRecord) GetDeviceId() *DeviceId { +func (t *TransferDetailRecord) GetDeviceID() *DeviceID { if t == nil { return nil } - return t.DeviceId + return t.DeviceID } func (t *TransferDetailRecord) GetAchSecCode() *AchSecCode { @@ -3685,11 +3685,11 @@ func (t *TransferDetailRecord) GetAchHolderType() *AchHolderType { return t.AchHolderType } -func (t *TransferDetailRecord) GetIpAddress() *IpAddress { +func (t *TransferDetailRecord) GetIPAddress() *IPAddress { if t == nil { return nil } - return t.IpAddress + return t.IPAddress } func (t *TransferDetailRecord) GetIsSameDayAch() *bool { @@ -3720,25 +3720,25 @@ func (t *TransferDetailRecord) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetTransferDetailId sets the TransferDetailId field and marks it as non-optional; +// SetTransferDetailID sets the TransferDetailID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetTransferDetailId(transferDetailId *int) { - t.TransferDetailId = transferDetailId - t.require(transferDetailRecordFieldTransferDetailId) +func (t *TransferDetailRecord) SetTransferDetailID(transferDetailID *int) { + t.TransferDetailID = transferDetailID + t.require(transferDetailRecordFieldTransferDetailID) } -// SetTransferId sets the TransferId field and marks it as non-optional; +// SetTransferID sets the TransferID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetTransferId(transferId *int) { - t.TransferId = transferId - t.require(transferDetailRecordFieldTransferId) +func (t *TransferDetailRecord) SetTransferID(transferID *int) { + t.TransferID = transferID + t.require(transferDetailRecordFieldTransferID) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetTransactionId(transactionId *string) { - t.TransactionId = transactionId - t.require(transferDetailRecordFieldTransactionId) +func (t *TransferDetailRecord) SetTransactionID(transactionID *string) { + t.TransactionID = transactionID + t.require(transferDetailRecordFieldTransactionID) } // SetTransactionNumber sets the TransactionNumber field and marks it as non-optional; @@ -3874,11 +3874,11 @@ func (t *TransferDetailRecord) SetPaypointEntryname(paypointEntryname *string) { t.require(transferDetailRecordFieldPaypointEntryname) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetPaymentTransId(paymentTransId *string) { - t.PaymentTransId = paymentTransId - t.require(transferDetailRecordFieldPaymentTransId) +func (t *TransferDetailRecord) SetPaymentTransID(paymentTransID *string) { + t.PaymentTransID = paymentTransID + t.require(transferDetailRecordFieldPaymentTransID) } // SetConnectorName sets the ConnectorName field and marks it as non-optional; @@ -3895,18 +3895,18 @@ func (t *TransferDetailRecord) SetExternalProcessorInformation(externalProcessor t.require(transferDetailRecordFieldExternalProcessorInformation) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetGatewayTransId(gatewayTransId *string) { - t.GatewayTransId = gatewayTransId - t.require(transferDetailRecordFieldGatewayTransId) +func (t *TransferDetailRecord) SetGatewayTransID(gatewayTransID *string) { + t.GatewayTransID = gatewayTransID + t.require(transferDetailRecordFieldGatewayTransID) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transferDetailRecordFieldOrderId) +func (t *TransferDetailRecord) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transferDetailRecordFieldOrderID) } // SetMethod sets the Method field and marks it as non-optional; @@ -3930,11 +3930,11 @@ func (t *TransferDetailRecord) SetBatchAmount(batchAmount *float64) { t.require(transferDetailRecordFieldBatchAmount) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetPayorId(payorId *PayorId) { - t.PayorId = payorId - t.require(transferDetailRecordFieldPayorId) +func (t *TransferDetailRecord) SetPayorID(payorID *PayorID) { + t.PayorID = payorID + t.require(transferDetailRecordFieldPayorID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -3951,11 +3951,11 @@ func (t *TransferDetailRecord) SetTransStatus(transStatus *int) { t.require(transferDetailRecordFieldTransStatus) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetPaypointId(paypointId *PaypointId) { - t.PaypointId = paypointId - t.require(transferDetailRecordFieldPaypointId) +func (t *TransferDetailRecord) SetPaypointID(paypointID *PaypointID) { + t.PaypointID = paypointID + t.require(transferDetailRecordFieldPaypointID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -4014,39 +4014,39 @@ func (t *TransferDetailRecord) SetScheduleReference(scheduleReference *int) { t.require(transferDetailRecordFieldScheduleReference) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetOrgId(orgId *Orgid) { - t.OrgId = orgId - t.require(transferDetailRecordFieldOrgId) +func (t *TransferDetailRecord) SetOrgID(orgID *Orgid) { + t.OrgID = orgID + t.require(transferDetailRecordFieldOrgID) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetRefundId(refundId *RefundId) { - t.RefundId = refundId - t.require(transferDetailRecordFieldRefundId) +func (t *TransferDetailRecord) SetRefundID(refundID *RefundID) { + t.RefundID = refundID + t.require(transferDetailRecordFieldRefundID) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetReturnedId(returnedId *ReturnedId) { - t.ReturnedId = returnedId - t.require(transferDetailRecordFieldReturnedId) +func (t *TransferDetailRecord) SetReturnedID(returnedID *ReturnedID) { + t.ReturnedID = returnedID + t.require(transferDetailRecordFieldReturnedID) } -// SetChargebackId sets the ChargebackId field and marks it as non-optional; +// SetChargebackID sets the ChargebackID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetChargebackId(chargebackId *ChargebackId) { - t.ChargebackId = chargebackId - t.require(transferDetailRecordFieldChargebackId) +func (t *TransferDetailRecord) SetChargebackID(chargebackID *ChargebackID) { + t.ChargebackID = chargebackID + t.require(transferDetailRecordFieldChargebackID) } -// SetRetrievalId sets the RetrievalId field and marks it as non-optional; +// SetRetrievalID sets the RetrievalID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetRetrievalId(retrievalId *RetrievalId) { - t.RetrievalId = retrievalId - t.require(transferDetailRecordFieldRetrievalId) +func (t *TransferDetailRecord) SetRetrievalID(retrievalID *RetrievalID) { + t.RetrievalID = retrievalID + t.require(transferDetailRecordFieldRetrievalID) } // SetTransAdditionalData sets the TransAdditionalData field and marks it as non-optional; @@ -4063,18 +4063,18 @@ func (t *TransferDetailRecord) SetInvoiceData(invoiceData *BillData) { t.require(transferDetailRecordFieldInvoiceData) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetEntrypageId(entrypageId *EntrypageId) { - t.EntrypageId = entrypageId - t.require(transferDetailRecordFieldEntrypageId) +func (t *TransferDetailRecord) SetEntrypageID(entrypageID *EntrypageID) { + t.EntrypageID = entrypageID + t.require(transferDetailRecordFieldEntrypageID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - t.ExternalPaypointId = externalPaypointId - t.require(transferDetailRecordFieldExternalPaypointId) +func (t *TransferDetailRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + t.ExternalPaypointID = externalPaypointID + t.require(transferDetailRecordFieldExternalPaypointID) } // SetIsValidatedAch sets the IsValidatedAch field and marks it as non-optional; @@ -4168,11 +4168,11 @@ func (t *TransferDetailRecord) SetRiskActionCode(riskActionCode *RiskActionCode) t.require(transferDetailRecordFieldRiskActionCode) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetDeviceId(deviceId *DeviceId) { - t.DeviceId = deviceId - t.require(transferDetailRecordFieldDeviceId) +func (t *TransferDetailRecord) SetDeviceID(deviceID *DeviceID) { + t.DeviceID = deviceID + t.require(transferDetailRecordFieldDeviceID) } // SetAchSecCode sets the AchSecCode field and marks it as non-optional; @@ -4189,11 +4189,11 @@ func (t *TransferDetailRecord) SetAchHolderType(achHolderType *AchHolderType) { t.require(transferDetailRecordFieldAchHolderType) } -// SetIpAddress sets the IpAddress field and marks it as non-optional; +// SetIPAddress sets the IPAddress field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferDetailRecord) SetIpAddress(ipAddress *IpAddress) { - t.IpAddress = ipAddress - t.require(transferDetailRecordFieldIpAddress) +func (t *TransferDetailRecord) SetIPAddress(ipAddress *IPAddress) { + t.IPAddress = ipAddress + t.require(transferDetailRecordFieldIPAddress) } // SetIsSameDayAch sets the IsSameDayAch field and marks it as non-optional; @@ -4386,7 +4386,7 @@ func (t *TransferOutBankAccount) String() string { // Bill information for an outbound transfer detail. var ( - transferOutDetailBillFieldBillId = big.NewInt(1 << 0) + transferOutDetailBillFieldBillID = big.NewInt(1 << 0) transferOutDetailBillFieldLotNumber = big.NewInt(1 << 1) transferOutDetailBillFieldAccountingField1 = big.NewInt(1 << 2) transferOutDetailBillFieldAccountingField2 = big.NewInt(1 << 3) @@ -4405,7 +4405,7 @@ var ( type TransferOutDetailBill struct { // Unique identifier for the bill. - BillId *int `json:"billId,omitempty" url:"billId,omitempty"` + BillID *int `json:"billId,omitempty" url:"billId,omitempty"` // Lot number. LotNumber *string `json:"LotNumber,omitempty" url:"LotNumber,omitempty"` // Accounting field 1. @@ -4442,11 +4442,11 @@ type TransferOutDetailBill struct { rawJSON json.RawMessage } -func (t *TransferOutDetailBill) GetBillId() *int { +func (t *TransferOutDetailBill) GetBillID() *int { if t == nil { return nil } - return t.BillId + return t.BillID } func (t *TransferOutDetailBill) GetLotNumber() *string { @@ -4561,11 +4561,11 @@ func (t *TransferOutDetailBill) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailBill) SetBillId(billId *int) { - t.BillId = billId - t.require(transferOutDetailBillFieldBillId) +func (t *TransferOutDetailBill) SetBillID(billID *int) { + t.BillID = billID + t.require(transferOutDetailBillFieldBillID) } // SetLotNumber sets the LotNumber field and marks it as non-optional; @@ -5092,7 +5092,7 @@ var ( transferOutDetailPaymentDataFieldAccountExp = big.NewInt(1 << 2) transferOutDetailPaymentDataFieldAccountZip = big.NewInt(1 << 3) transferOutDetailPaymentDataFieldHolderName = big.NewInt(1 << 4) - transferOutDetailPaymentDataFieldStoredId = big.NewInt(1 << 5) + transferOutDetailPaymentDataFieldStoredID = big.NewInt(1 << 5) transferOutDetailPaymentDataFieldInitiator = big.NewInt(1 << 6) transferOutDetailPaymentDataFieldStoredMethodUsageType = big.NewInt(1 << 7) transferOutDetailPaymentDataFieldSequence = big.NewInt(1 << 8) @@ -5101,7 +5101,7 @@ var ( transferOutDetailPaymentDataFieldCloudSignatureFormat = big.NewInt(1 << 11) transferOutDetailPaymentDataFieldPaymentDetails = big.NewInt(1 << 12) transferOutDetailPaymentDataFieldPayorData = big.NewInt(1 << 13) - transferOutDetailPaymentDataFieldAccountId = big.NewInt(1 << 14) + transferOutDetailPaymentDataFieldAccountID = big.NewInt(1 << 14) transferOutDetailPaymentDataFieldBankAccount = big.NewInt(1 << 15) transferOutDetailPaymentDataFieldGatewayConnector = big.NewInt(1 << 16) transferOutDetailPaymentDataFieldBinData = big.NewInt(1 << 17) @@ -5119,7 +5119,7 @@ type TransferOutDetailPaymentData struct { // Name of the account holder. HolderName *string `json:"HolderName,omitempty" url:"HolderName,omitempty"` // ID of the stored payment method. - StoredId *string `json:"StoredId,omitempty" url:"StoredId,omitempty"` + StoredID *string `json:"StoredId,omitempty" url:"StoredId,omitempty"` // Initiator of the payment. Initiator *string `json:"Initiator,omitempty" url:"Initiator,omitempty"` // Usage type for stored method. @@ -5137,7 +5137,7 @@ type TransferOutDetailPaymentData struct { // Data about the payor. PayorData *string `json:"payorData,omitempty" url:"payorData,omitempty"` // Account ID. - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` // Bank account information. BankAccount *string `json:"bankAccount,omitempty" url:"bankAccount,omitempty"` // Gateway connector used. @@ -5187,11 +5187,11 @@ func (t *TransferOutDetailPaymentData) GetHolderName() *string { return t.HolderName } -func (t *TransferOutDetailPaymentData) GetStoredId() *string { +func (t *TransferOutDetailPaymentData) GetStoredID() *string { if t == nil { return nil } - return t.StoredId + return t.StoredID } func (t *TransferOutDetailPaymentData) GetInitiator() *string { @@ -5250,11 +5250,11 @@ func (t *TransferOutDetailPaymentData) GetPayorData() *string { return t.PayorData } -func (t *TransferOutDetailPaymentData) GetAccountId() *string { +func (t *TransferOutDetailPaymentData) GetAccountID() *string { if t == nil { return nil } - return t.AccountId + return t.AccountID } func (t *TransferOutDetailPaymentData) GetBankAccount() *string { @@ -5327,11 +5327,11 @@ func (t *TransferOutDetailPaymentData) SetHolderName(holderName *string) { t.require(transferOutDetailPaymentDataFieldHolderName) } -// SetStoredId sets the StoredId field and marks it as non-optional; +// SetStoredID sets the StoredID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailPaymentData) SetStoredId(storedId *string) { - t.StoredId = storedId - t.require(transferOutDetailPaymentDataFieldStoredId) +func (t *TransferOutDetailPaymentData) SetStoredID(storedID *string) { + t.StoredID = storedID + t.require(transferOutDetailPaymentDataFieldStoredID) } // SetInitiator sets the Initiator field and marks it as non-optional; @@ -5390,11 +5390,11 @@ func (t *TransferOutDetailPaymentData) SetPayorData(payorData *string) { t.require(transferOutDetailPaymentDataFieldPayorData) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailPaymentData) SetAccountId(accountId *string) { - t.AccountId = accountId - t.require(transferOutDetailPaymentDataFieldAccountId) +func (t *TransferOutDetailPaymentData) SetAccountID(accountID *string) { + t.AccountID = accountID + t.require(transferOutDetailPaymentDataFieldAccountID) } // SetBankAccount sets the BankAccount field and marks it as non-optional; @@ -5565,10 +5565,10 @@ func (t *TransferOutDetailQueryResponse) String() string { // A record representing an outbound transfer detail. var ( - transferOutDetailRecordFieldTransferDetailId = big.NewInt(1 << 0) - transferOutDetailRecordFieldTransferId = big.NewInt(1 << 1) - transferOutDetailRecordFieldTransactionId = big.NewInt(1 << 2) - transferOutDetailRecordFieldIdOut = big.NewInt(1 << 3) + transferOutDetailRecordFieldTransferDetailID = big.NewInt(1 << 0) + transferOutDetailRecordFieldTransferID = big.NewInt(1 << 1) + transferOutDetailRecordFieldTransactionID = big.NewInt(1 << 2) + transferOutDetailRecordFieldIDOut = big.NewInt(1 << 3) transferOutDetailRecordFieldMethod = big.NewInt(1 << 4) transferOutDetailRecordFieldType = big.NewInt(1 << 5) transferOutDetailRecordFieldCategory = big.NewInt(1 << 6) @@ -5586,10 +5586,10 @@ var ( transferOutDetailRecordFieldVendor = big.NewInt(1 << 18) transferOutDetailRecordFieldPaypointDbaname = big.NewInt(1 << 19) transferOutDetailRecordFieldPaypointLegalname = big.NewInt(1 << 20) - transferOutDetailRecordFieldPaypointId = big.NewInt(1 << 21) + transferOutDetailRecordFieldPaypointID = big.NewInt(1 << 21) transferOutDetailRecordFieldStatus = big.NewInt(1 << 22) - transferOutDetailRecordFieldPaymentId = big.NewInt(1 << 23) - transferOutDetailRecordFieldTransId = big.NewInt(1 << 24) + transferOutDetailRecordFieldPaymentID = big.NewInt(1 << 23) + transferOutDetailRecordFieldTransID = big.NewInt(1 << 24) transferOutDetailRecordFieldTransStatus = big.NewInt(1 << 25) transferOutDetailRecordFieldTransStatusDetail = big.NewInt(1 << 26) transferOutDetailRecordFieldTransStatusName = big.NewInt(1 << 27) @@ -5600,7 +5600,7 @@ var ( transferOutDetailRecordFieldFeeAmount = big.NewInt(1 << 32) transferOutDetailRecordFieldSource = big.NewInt(1 << 33) transferOutDetailRecordFieldParentOrgName = big.NewInt(1 << 34) - transferOutDetailRecordFieldParentOrgId = big.NewInt(1 << 35) + transferOutDetailRecordFieldParentOrgID = big.NewInt(1 << 35) transferOutDetailRecordFieldBatchNumber = big.NewInt(1 << 36) transferOutDetailRecordFieldPaymentStatus = big.NewInt(1 << 37) transferOutDetailRecordFieldPaymentMethod = big.NewInt(1 << 38) @@ -5610,13 +5610,13 @@ var ( transferOutDetailRecordFieldPaymentData = big.NewInt(1 << 42) transferOutDetailRecordFieldBills = big.NewInt(1 << 43) transferOutDetailRecordFieldEvents = big.NewInt(1 << 44) - transferOutDetailRecordFieldExternalPaypointId = big.NewInt(1 << 45) + transferOutDetailRecordFieldExternalPaypointID = big.NewInt(1 << 45) transferOutDetailRecordFieldEntryName = big.NewInt(1 << 46) transferOutDetailRecordFieldGateway = big.NewInt(1 << 47) - transferOutDetailRecordFieldBatchId = big.NewInt(1 << 48) + transferOutDetailRecordFieldBatchID = big.NewInt(1 << 48) transferOutDetailRecordFieldHasVcardTransactions = big.NewInt(1 << 49) transferOutDetailRecordFieldIsSameDayAch = big.NewInt(1 << 50) - transferOutDetailRecordFieldScheduleId = big.NewInt(1 << 51) + transferOutDetailRecordFieldScheduleID = big.NewInt(1 << 51) transferOutDetailRecordFieldSettlementStatus = big.NewInt(1 << 52) transferOutDetailRecordFieldSettlementStatusName = big.NewInt(1 << 53) transferOutDetailRecordFieldSettlementDate = big.NewInt(1 << 54) @@ -5632,13 +5632,13 @@ var ( type TransferOutDetailRecord struct { // Unique identifier for the transfer detail. - TransferDetailId *int `json:"transferDetailId,omitempty" url:"transferDetailId,omitempty"` + TransferDetailID *int `json:"transferDetailId,omitempty" url:"transferDetailId,omitempty"` // The ID of the transfer this detail belongs to. - TransferId *int `json:"transferId,omitempty" url:"transferId,omitempty"` + TransferID *int `json:"transferId,omitempty" url:"transferId,omitempty"` // The transaction ID in Payabli's system. - TransactionId *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` + TransactionID *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` // The outbound transaction ID. - IdOut *int `json:"IdOut,omitempty" url:"IdOut,omitempty"` + IDOut *int `json:"IdOut,omitempty" url:"IdOut,omitempty"` // Payment method used. Method *string `json:"method,omitempty" url:"method,omitempty"` // The transaction type (credit or debit). @@ -5674,13 +5674,13 @@ type TransferOutDetailRecord struct { // Legal name of the paypoint. PaypointLegalname *string `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` // ID of the paypoint. - PaypointId *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // Status of the transfer detail. Status *int `json:"Status,omitempty" url:"Status,omitempty"` // Payment ID. - PaymentId *string `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` + PaymentID *string `json:"PaymentId,omitempty" url:"PaymentId,omitempty"` // Transaction ID. - TransId *string `json:"TransId,omitempty" url:"TransId,omitempty"` + TransID *string `json:"TransId,omitempty" url:"TransId,omitempty"` // Transaction status. TransStatus *int `json:"TransStatus,omitempty" url:"TransStatus,omitempty"` // Detailed transaction status. @@ -5702,7 +5702,7 @@ type TransferOutDetailRecord struct { // Name of the parent organization. ParentOrgName *string `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` // ID of the parent organization. - ParentOrgId *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` // Batch number for the transfer. BatchNumber *string `json:"BatchNumber,omitempty" url:"BatchNumber,omitempty"` // Status of the payment. @@ -5722,19 +5722,19 @@ type TransferOutDetailRecord struct { // Events associated with the transfer. Events []*TransferOutDetailEvent `json:"Events,omitempty" url:"Events,omitempty"` // External paypoint ID. - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Entry name for the paypoint. EntryName *string `json:"EntryName,omitempty" url:"EntryName,omitempty"` // Gateway used for the transaction. Gateway *string `json:"Gateway,omitempty" url:"Gateway,omitempty"` // ID of the batch. - BatchId *int `json:"BatchId,omitempty" url:"BatchId,omitempty"` + BatchID *int `json:"BatchId,omitempty" url:"BatchId,omitempty"` // Whether the transfer has virtual card transactions. HasVcardTransactions *bool `json:"HasVcardTransactions,omitempty" url:"HasVcardTransactions,omitempty"` // Whether this is a same-day ACH transaction. IsSameDayAch *bool `json:"IsSameDayACH,omitempty" url:"IsSameDayACH,omitempty"` // ID of the schedule if applicable. - ScheduleId *int `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` + ScheduleID *int `json:"ScheduleId,omitempty" url:"ScheduleId,omitempty"` // Settlement status. SettlementStatus *string `json:"SettlementStatus,omitempty" url:"SettlementStatus,omitempty"` // Name of the settlement status. @@ -5765,32 +5765,32 @@ type TransferOutDetailRecord struct { rawJSON json.RawMessage } -func (t *TransferOutDetailRecord) GetTransferDetailId() *int { +func (t *TransferOutDetailRecord) GetTransferDetailID() *int { if t == nil { return nil } - return t.TransferDetailId + return t.TransferDetailID } -func (t *TransferOutDetailRecord) GetTransferId() *int { +func (t *TransferOutDetailRecord) GetTransferID() *int { if t == nil { return nil } - return t.TransferId + return t.TransferID } -func (t *TransferOutDetailRecord) GetTransactionId() *string { +func (t *TransferOutDetailRecord) GetTransactionID() *string { if t == nil { return nil } - return t.TransactionId + return t.TransactionID } -func (t *TransferOutDetailRecord) GetIdOut() *int { +func (t *TransferOutDetailRecord) GetIDOut() *int { if t == nil { return nil } - return t.IdOut + return t.IDOut } func (t *TransferOutDetailRecord) GetMethod() *string { @@ -5912,11 +5912,11 @@ func (t *TransferOutDetailRecord) GetPaypointLegalname() *string { return t.PaypointLegalname } -func (t *TransferOutDetailRecord) GetPaypointId() *int { +func (t *TransferOutDetailRecord) GetPaypointID() *int { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransferOutDetailRecord) GetStatus() *int { @@ -5926,18 +5926,18 @@ func (t *TransferOutDetailRecord) GetStatus() *int { return t.Status } -func (t *TransferOutDetailRecord) GetPaymentId() *string { +func (t *TransferOutDetailRecord) GetPaymentID() *string { if t == nil { return nil } - return t.PaymentId + return t.PaymentID } -func (t *TransferOutDetailRecord) GetTransId() *string { +func (t *TransferOutDetailRecord) GetTransID() *string { if t == nil { return nil } - return t.TransId + return t.TransID } func (t *TransferOutDetailRecord) GetTransStatus() *int { @@ -6010,11 +6010,11 @@ func (t *TransferOutDetailRecord) GetParentOrgName() *string { return t.ParentOrgName } -func (t *TransferOutDetailRecord) GetParentOrgId() *int { +func (t *TransferOutDetailRecord) GetParentOrgID() *int { if t == nil { return nil } - return t.ParentOrgId + return t.ParentOrgID } func (t *TransferOutDetailRecord) GetBatchNumber() *string { @@ -6080,11 +6080,11 @@ func (t *TransferOutDetailRecord) GetEvents() []*TransferOutDetailEvent { return t.Events } -func (t *TransferOutDetailRecord) GetExternalPaypointId() *string { +func (t *TransferOutDetailRecord) GetExternalPaypointID() *string { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransferOutDetailRecord) GetEntryName() *string { @@ -6101,11 +6101,11 @@ func (t *TransferOutDetailRecord) GetGateway() *string { return t.Gateway } -func (t *TransferOutDetailRecord) GetBatchId() *int { +func (t *TransferOutDetailRecord) GetBatchID() *int { if t == nil { return nil } - return t.BatchId + return t.BatchID } func (t *TransferOutDetailRecord) GetHasVcardTransactions() *bool { @@ -6122,11 +6122,11 @@ func (t *TransferOutDetailRecord) GetIsSameDayAch() *bool { return t.IsSameDayAch } -func (t *TransferOutDetailRecord) GetScheduleId() *int { +func (t *TransferOutDetailRecord) GetScheduleID() *int { if t == nil { return nil } - return t.ScheduleId + return t.ScheduleID } func (t *TransferOutDetailRecord) GetSettlementStatus() *string { @@ -6220,32 +6220,32 @@ func (t *TransferOutDetailRecord) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetTransferDetailId sets the TransferDetailId field and marks it as non-optional; +// SetTransferDetailID sets the TransferDetailID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetTransferDetailId(transferDetailId *int) { - t.TransferDetailId = transferDetailId - t.require(transferOutDetailRecordFieldTransferDetailId) +func (t *TransferOutDetailRecord) SetTransferDetailID(transferDetailID *int) { + t.TransferDetailID = transferDetailID + t.require(transferOutDetailRecordFieldTransferDetailID) } -// SetTransferId sets the TransferId field and marks it as non-optional; +// SetTransferID sets the TransferID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetTransferId(transferId *int) { - t.TransferId = transferId - t.require(transferOutDetailRecordFieldTransferId) +func (t *TransferOutDetailRecord) SetTransferID(transferID *int) { + t.TransferID = transferID + t.require(transferOutDetailRecordFieldTransferID) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetTransactionId(transactionId *string) { - t.TransactionId = transactionId - t.require(transferOutDetailRecordFieldTransactionId) +func (t *TransferOutDetailRecord) SetTransactionID(transactionID *string) { + t.TransactionID = transactionID + t.require(transferOutDetailRecordFieldTransactionID) } -// SetIdOut sets the IdOut field and marks it as non-optional; +// SetIDOut sets the IDOut field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetIdOut(idOut *int) { - t.IdOut = idOut - t.require(transferOutDetailRecordFieldIdOut) +func (t *TransferOutDetailRecord) SetIDOut(idOut *int) { + t.IDOut = idOut + t.require(transferOutDetailRecordFieldIDOut) } // SetMethod sets the Method field and marks it as non-optional; @@ -6367,11 +6367,11 @@ func (t *TransferOutDetailRecord) SetPaypointLegalname(paypointLegalname *string t.require(transferOutDetailRecordFieldPaypointLegalname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetPaypointId(paypointId *int) { - t.PaypointId = paypointId - t.require(transferOutDetailRecordFieldPaypointId) +func (t *TransferOutDetailRecord) SetPaypointID(paypointID *int) { + t.PaypointID = paypointID + t.require(transferOutDetailRecordFieldPaypointID) } // SetStatus sets the Status field and marks it as non-optional; @@ -6381,18 +6381,18 @@ func (t *TransferOutDetailRecord) SetStatus(status *int) { t.require(transferOutDetailRecordFieldStatus) } -// SetPaymentId sets the PaymentId field and marks it as non-optional; +// SetPaymentID sets the PaymentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetPaymentId(paymentId *string) { - t.PaymentId = paymentId - t.require(transferOutDetailRecordFieldPaymentId) +func (t *TransferOutDetailRecord) SetPaymentID(paymentID *string) { + t.PaymentID = paymentID + t.require(transferOutDetailRecordFieldPaymentID) } -// SetTransId sets the TransId field and marks it as non-optional; +// SetTransID sets the TransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetTransId(transId *string) { - t.TransId = transId - t.require(transferOutDetailRecordFieldTransId) +func (t *TransferOutDetailRecord) SetTransID(transID *string) { + t.TransID = transID + t.require(transferOutDetailRecordFieldTransID) } // SetTransStatus sets the TransStatus field and marks it as non-optional; @@ -6465,11 +6465,11 @@ func (t *TransferOutDetailRecord) SetParentOrgName(parentOrgName *string) { t.require(transferOutDetailRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetParentOrgId(parentOrgId *int) { - t.ParentOrgId = parentOrgId - t.require(transferOutDetailRecordFieldParentOrgId) +func (t *TransferOutDetailRecord) SetParentOrgID(parentOrgID *int) { + t.ParentOrgID = parentOrgID + t.require(transferOutDetailRecordFieldParentOrgID) } // SetBatchNumber sets the BatchNumber field and marks it as non-optional; @@ -6535,11 +6535,11 @@ func (t *TransferOutDetailRecord) SetEvents(events []*TransferOutDetailEvent) { t.require(transferOutDetailRecordFieldEvents) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetExternalPaypointId(externalPaypointId *string) { - t.ExternalPaypointId = externalPaypointId - t.require(transferOutDetailRecordFieldExternalPaypointId) +func (t *TransferOutDetailRecord) SetExternalPaypointID(externalPaypointID *string) { + t.ExternalPaypointID = externalPaypointID + t.require(transferOutDetailRecordFieldExternalPaypointID) } // SetEntryName sets the EntryName field and marks it as non-optional; @@ -6556,11 +6556,11 @@ func (t *TransferOutDetailRecord) SetGateway(gateway *string) { t.require(transferOutDetailRecordFieldGateway) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetBatchId(batchId *int) { - t.BatchId = batchId - t.require(transferOutDetailRecordFieldBatchId) +func (t *TransferOutDetailRecord) SetBatchID(batchID *int) { + t.BatchID = batchID + t.require(transferOutDetailRecordFieldBatchID) } // SetHasVcardTransactions sets the HasVcardTransactions field and marks it as non-optional; @@ -6577,11 +6577,11 @@ func (t *TransferOutDetailRecord) SetIsSameDayAch(isSameDayAch *bool) { t.require(transferOutDetailRecordFieldIsSameDayAch) } -// SetScheduleId sets the ScheduleId field and marks it as non-optional; +// SetScheduleID sets the ScheduleID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailRecord) SetScheduleId(scheduleId *int) { - t.ScheduleId = scheduleId - t.require(transferOutDetailRecordFieldScheduleId) +func (t *TransferOutDetailRecord) SetScheduleID(scheduleID *int) { + t.ScheduleID = scheduleID + t.require(transferOutDetailRecordFieldScheduleID) } // SetSettlementStatus sets the SettlementStatus field and marks it as non-optional; @@ -6724,15 +6724,15 @@ var ( transferOutDetailVendorFieldBillingData = big.NewInt(1 << 16) transferOutDetailVendorFieldPaymentMethod = big.NewInt(1 << 17) transferOutDetailVendorFieldVendorStatus = big.NewInt(1 << 18) - transferOutDetailVendorFieldVendorId = big.NewInt(1 << 19) + transferOutDetailVendorFieldVendorID = big.NewInt(1 << 19) transferOutDetailVendorFieldEnrollmentStatus = big.NewInt(1 << 20) transferOutDetailVendorFieldSummary = big.NewInt(1 << 21) transferOutDetailVendorFieldPaypointLegalname = big.NewInt(1 << 22) - transferOutDetailVendorFieldPaypointId = big.NewInt(1 << 23) + transferOutDetailVendorFieldPaypointID = big.NewInt(1 << 23) transferOutDetailVendorFieldPaypointDbaname = big.NewInt(1 << 24) transferOutDetailVendorFieldPaypointEntryname = big.NewInt(1 << 25) transferOutDetailVendorFieldParentOrgName = big.NewInt(1 << 26) - transferOutDetailVendorFieldParentOrgId = big.NewInt(1 << 27) + transferOutDetailVendorFieldParentOrgID = big.NewInt(1 << 27) transferOutDetailVendorFieldCreatedDate = big.NewInt(1 << 28) transferOutDetailVendorFieldLastUpdated = big.NewInt(1 << 29) transferOutDetailVendorFieldRemitAddress1 = big.NewInt(1 << 30) @@ -6746,9 +6746,9 @@ var ( transferOutDetailVendorFieldCustomField1 = big.NewInt(1 << 38) transferOutDetailVendorFieldCustomField2 = big.NewInt(1 << 39) transferOutDetailVendorFieldCustomerVendorAccount = big.NewInt(1 << 40) - transferOutDetailVendorFieldInternalReferenceId = big.NewInt(1 << 41) + transferOutDetailVendorFieldInternalReferenceID = big.NewInt(1 << 41) transferOutDetailVendorFieldAdditionalData = big.NewInt(1 << 42) - transferOutDetailVendorFieldExternalPaypointId = big.NewInt(1 << 43) + transferOutDetailVendorFieldExternalPaypointID = big.NewInt(1 << 43) transferOutDetailVendorFieldStoredMethods = big.NewInt(1 << 44) ) @@ -6792,7 +6792,7 @@ type TransferOutDetailVendor struct { // Status of the vendor. VendorStatus *int `json:"VendorStatus,omitempty" url:"VendorStatus,omitempty"` // Unique identifier for the vendor. - VendorId *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` + VendorID *int `json:"VendorId,omitempty" url:"VendorId,omitempty"` // Enrollment status of the vendor. EnrollmentStatus *int `json:"EnrollmentStatus,omitempty" url:"EnrollmentStatus,omitempty"` // Summary information about the vendor. @@ -6800,7 +6800,7 @@ type TransferOutDetailVendor struct { // Legal name of the paypoint. PaypointLegalname *string `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` // ID of the paypoint. - PaypointId *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *int `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // DBA name of the paypoint. PaypointDbaname *string `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // Entry name of the paypoint. @@ -6808,7 +6808,7 @@ type TransferOutDetailVendor struct { // Name of the parent organization. ParentOrgName *string `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` // ID of the parent organization. - ParentOrgId *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *int `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` // Date the vendor was created. CreatedDate *string `json:"CreatedDate,omitempty" url:"CreatedDate,omitempty"` // Date the vendor was last updated. @@ -6836,11 +6836,11 @@ type TransferOutDetailVendor struct { // Customer vendor account number. CustomerVendorAccount *string `json:"customerVendorAccount,omitempty" url:"customerVendorAccount,omitempty"` // Internal reference ID. - InternalReferenceId *int `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` + InternalReferenceID *int `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` // Additional data for the vendor. AdditionalData map[string]any `json:"additionalData,omitempty" url:"additionalData,omitempty"` // External paypoint ID. - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Stored payment methods for the vendor. StoredMethods []any `json:"StoredMethods,omitempty" url:"StoredMethods,omitempty"` @@ -6984,11 +6984,11 @@ func (t *TransferOutDetailVendor) GetVendorStatus() *int { return t.VendorStatus } -func (t *TransferOutDetailVendor) GetVendorId() *int { +func (t *TransferOutDetailVendor) GetVendorID() *int { if t == nil { return nil } - return t.VendorId + return t.VendorID } func (t *TransferOutDetailVendor) GetEnrollmentStatus() *int { @@ -7012,11 +7012,11 @@ func (t *TransferOutDetailVendor) GetPaypointLegalname() *string { return t.PaypointLegalname } -func (t *TransferOutDetailVendor) GetPaypointId() *int { +func (t *TransferOutDetailVendor) GetPaypointID() *int { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransferOutDetailVendor) GetPaypointDbaname() *string { @@ -7040,11 +7040,11 @@ func (t *TransferOutDetailVendor) GetParentOrgName() *string { return t.ParentOrgName } -func (t *TransferOutDetailVendor) GetParentOrgId() *int { +func (t *TransferOutDetailVendor) GetParentOrgID() *int { if t == nil { return nil } - return t.ParentOrgId + return t.ParentOrgID } func (t *TransferOutDetailVendor) GetCreatedDate() *string { @@ -7138,11 +7138,11 @@ func (t *TransferOutDetailVendor) GetCustomerVendorAccount() *string { return t.CustomerVendorAccount } -func (t *TransferOutDetailVendor) GetInternalReferenceId() *int { +func (t *TransferOutDetailVendor) GetInternalReferenceID() *int { if t == nil { return nil } - return t.InternalReferenceId + return t.InternalReferenceID } func (t *TransferOutDetailVendor) GetAdditionalData() map[string]any { @@ -7152,11 +7152,11 @@ func (t *TransferOutDetailVendor) GetAdditionalData() map[string]any { return t.AdditionalData } -func (t *TransferOutDetailVendor) GetExternalPaypointId() *string { +func (t *TransferOutDetailVendor) GetExternalPaypointID() *string { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransferOutDetailVendor) GetStoredMethods() []any { @@ -7313,11 +7313,11 @@ func (t *TransferOutDetailVendor) SetVendorStatus(vendorStatus *int) { t.require(transferOutDetailVendorFieldVendorStatus) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendor) SetVendorId(vendorId *int) { - t.VendorId = vendorId - t.require(transferOutDetailVendorFieldVendorId) +func (t *TransferOutDetailVendor) SetVendorID(vendorID *int) { + t.VendorID = vendorID + t.require(transferOutDetailVendorFieldVendorID) } // SetEnrollmentStatus sets the EnrollmentStatus field and marks it as non-optional; @@ -7341,11 +7341,11 @@ func (t *TransferOutDetailVendor) SetPaypointLegalname(paypointLegalname *string t.require(transferOutDetailVendorFieldPaypointLegalname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendor) SetPaypointId(paypointId *int) { - t.PaypointId = paypointId - t.require(transferOutDetailVendorFieldPaypointId) +func (t *TransferOutDetailVendor) SetPaypointID(paypointID *int) { + t.PaypointID = paypointID + t.require(transferOutDetailVendorFieldPaypointID) } // SetPaypointDbaname sets the PaypointDbaname field and marks it as non-optional; @@ -7369,11 +7369,11 @@ func (t *TransferOutDetailVendor) SetParentOrgName(parentOrgName *string) { t.require(transferOutDetailVendorFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendor) SetParentOrgId(parentOrgId *int) { - t.ParentOrgId = parentOrgId - t.require(transferOutDetailVendorFieldParentOrgId) +func (t *TransferOutDetailVendor) SetParentOrgID(parentOrgID *int) { + t.ParentOrgID = parentOrgID + t.require(transferOutDetailVendorFieldParentOrgID) } // SetCreatedDate sets the CreatedDate field and marks it as non-optional; @@ -7467,11 +7467,11 @@ func (t *TransferOutDetailVendor) SetCustomerVendorAccount(customerVendorAccount t.require(transferOutDetailVendorFieldCustomerVendorAccount) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendor) SetInternalReferenceId(internalReferenceId *int) { - t.InternalReferenceId = internalReferenceId - t.require(transferOutDetailVendorFieldInternalReferenceId) +func (t *TransferOutDetailVendor) SetInternalReferenceID(internalReferenceID *int) { + t.InternalReferenceID = internalReferenceID + t.require(transferOutDetailVendorFieldInternalReferenceID) } // SetAdditionalData sets the AdditionalData field and marks it as non-optional; @@ -7481,11 +7481,11 @@ func (t *TransferOutDetailVendor) SetAdditionalData(additionalData map[string]an t.require(transferOutDetailVendorFieldAdditionalData) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendor) SetExternalPaypointId(externalPaypointId *string) { - t.ExternalPaypointId = externalPaypointId - t.require(transferOutDetailVendorFieldExternalPaypointId) +func (t *TransferOutDetailVendor) SetExternalPaypointID(externalPaypointID *string) { + t.ExternalPaypointID = externalPaypointID + t.require(transferOutDetailVendorFieldExternalPaypointID) } // SetStoredMethods sets the StoredMethods field and marks it as non-optional; @@ -7539,8 +7539,8 @@ func (t *TransferOutDetailVendor) String() string { // Billing data for a vendor. var ( - transferOutDetailVendorBillingDataFieldId = big.NewInt(1 << 0) - transferOutDetailVendorBillingDataFieldAccountId = big.NewInt(1 << 1) + transferOutDetailVendorBillingDataFieldID = big.NewInt(1 << 0) + transferOutDetailVendorBillingDataFieldAccountID = big.NewInt(1 << 1) transferOutDetailVendorBillingDataFieldNickname = big.NewInt(1 << 2) transferOutDetailVendorBillingDataFieldBankName = big.NewInt(1 << 3) transferOutDetailVendorBillingDataFieldRoutingAccount = big.NewInt(1 << 4) @@ -7558,9 +7558,9 @@ var ( type TransferOutDetailVendorBillingData struct { // Unique identifier for the billing data. - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` // The account ID. - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` // A nickname for the account. Nickname *string `json:"nickname,omitempty" url:"nickname,omitempty"` // The name of the bank. @@ -7595,18 +7595,18 @@ type TransferOutDetailVendorBillingData struct { rawJSON json.RawMessage } -func (t *TransferOutDetailVendorBillingData) GetId() *int { +func (t *TransferOutDetailVendorBillingData) GetID() *int { if t == nil { return nil } - return t.Id + return t.ID } -func (t *TransferOutDetailVendorBillingData) GetAccountId() *string { +func (t *TransferOutDetailVendorBillingData) GetAccountID() *string { if t == nil { return nil } - return t.AccountId + return t.AccountID } func (t *TransferOutDetailVendorBillingData) GetNickname() *string { @@ -7714,18 +7714,18 @@ func (t *TransferOutDetailVendorBillingData) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendorBillingData) SetId(id *int) { - t.Id = id - t.require(transferOutDetailVendorBillingDataFieldId) +func (t *TransferOutDetailVendorBillingData) SetID(id *int) { + t.ID = id + t.require(transferOutDetailVendorBillingDataFieldID) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutDetailVendorBillingData) SetAccountId(accountId *string) { - t.AccountId = accountId - t.require(transferOutDetailVendorBillingDataFieldAccountId) +func (t *TransferOutDetailVendorBillingData) SetAccountID(accountID *string) { + t.AccountID = accountID + t.require(transferOutDetailVendorBillingDataFieldAccountID) } // SetNickname sets the Nickname field and marks it as non-optional; @@ -8017,9 +8017,9 @@ func (t *TransferOutEventData) String() string { // A message associated with an outbound transfer. var ( - transferOutMessageFieldId = big.NewInt(1 << 0) - transferOutMessageFieldRoomId = big.NewInt(1 << 1) - transferOutMessageFieldUserId = big.NewInt(1 << 2) + transferOutMessageFieldID = big.NewInt(1 << 0) + transferOutMessageFieldRoomID = big.NewInt(1 << 1) + transferOutMessageFieldUserID = big.NewInt(1 << 2) transferOutMessageFieldUserName = big.NewInt(1 << 3) transferOutMessageFieldContent = big.NewInt(1 << 4) transferOutMessageFieldCreatedAt = big.NewInt(1 << 5) @@ -8029,11 +8029,11 @@ var ( type TransferOutMessage struct { // Unique identifier for the message. - Id *int `json:"Id,omitempty" url:"Id,omitempty"` + ID *int `json:"Id,omitempty" url:"Id,omitempty"` // The ID of the room where the message was sent. - RoomId *int `json:"RoomId,omitempty" url:"RoomId,omitempty"` + RoomID *int `json:"RoomId,omitempty" url:"RoomId,omitempty"` // The ID of the user who sent the message. - UserId *int `json:"UserId,omitempty" url:"UserId,omitempty"` + UserID *int `json:"UserId,omitempty" url:"UserId,omitempty"` // The name of the user who sent the message. UserName *string `json:"UserName,omitempty" url:"UserName,omitempty"` // The content of the message. @@ -8052,25 +8052,25 @@ type TransferOutMessage struct { rawJSON json.RawMessage } -func (t *TransferOutMessage) GetId() *int { +func (t *TransferOutMessage) GetID() *int { if t == nil { return nil } - return t.Id + return t.ID } -func (t *TransferOutMessage) GetRoomId() *int { +func (t *TransferOutMessage) GetRoomID() *int { if t == nil { return nil } - return t.RoomId + return t.RoomID } -func (t *TransferOutMessage) GetUserId() *int { +func (t *TransferOutMessage) GetUserID() *int { if t == nil { return nil } - return t.UserId + return t.UserID } func (t *TransferOutMessage) GetUserName() *string { @@ -8122,25 +8122,25 @@ func (t *TransferOutMessage) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutMessage) SetId(id *int) { - t.Id = id - t.require(transferOutMessageFieldId) +func (t *TransferOutMessage) SetID(id *int) { + t.ID = id + t.require(transferOutMessageFieldID) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutMessage) SetRoomId(roomId *int) { - t.RoomId = roomId - t.require(transferOutMessageFieldRoomId) +func (t *TransferOutMessage) SetRoomID(roomID *int) { + t.RoomID = roomID + t.require(transferOutMessageFieldRoomID) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutMessage) SetUserId(userId *int) { - t.UserId = userId - t.require(transferOutMessageFieldUserId) +func (t *TransferOutMessage) SetUserID(userID *int) { + t.UserID = userID + t.require(transferOutMessageFieldUserID) } // SetUserName sets the UserName field and marks it as non-optional; @@ -8428,13 +8428,13 @@ func (t *TransferOutQueryResponse) String() string { // A record representing an outbound transfer. var ( - transferOutRecordFieldTransferId = big.NewInt(1 << 0) - transferOutRecordFieldPaypointId = big.NewInt(1 << 1) + transferOutRecordFieldTransferID = big.NewInt(1 << 0) + transferOutRecordFieldPaypointID = big.NewInt(1 << 1) transferOutRecordFieldBatchNumber = big.NewInt(1 << 2) transferOutRecordFieldBatchCurrency = big.NewInt(1 << 3) transferOutRecordFieldBatchRecords = big.NewInt(1 << 4) transferOutRecordFieldTransferIdentifier = big.NewInt(1 << 5) - transferOutRecordFieldBatchId = big.NewInt(1 << 6) + transferOutRecordFieldBatchID = big.NewInt(1 << 6) transferOutRecordFieldBatchNetAmount = big.NewInt(1 << 7) transferOutRecordFieldBatchStatus = big.NewInt(1 << 8) transferOutRecordFieldPaypointEntryName = big.NewInt(1 << 9) @@ -8442,10 +8442,10 @@ var ( transferOutRecordFieldPaypointDbaName = big.NewInt(1 << 11) transferOutRecordFieldPaypointLogo = big.NewInt(1 << 12) transferOutRecordFieldParentOrgName = big.NewInt(1 << 13) - transferOutRecordFieldParentOrgId = big.NewInt(1 << 14) + transferOutRecordFieldParentOrgID = big.NewInt(1 << 14) transferOutRecordFieldParentOrgLogo = big.NewInt(1 << 15) transferOutRecordFieldParentOrgEntryName = big.NewInt(1 << 16) - transferOutRecordFieldExternalPaypointId = big.NewInt(1 << 17) + transferOutRecordFieldExternalPaypointID = big.NewInt(1 << 17) transferOutRecordFieldBankAccount = big.NewInt(1 << 18) transferOutRecordFieldTransferDate = big.NewInt(1 << 19) transferOutRecordFieldProcessor = big.NewInt(1 << 20) @@ -8466,9 +8466,9 @@ var ( type TransferOutRecord struct { // Unique identifier for the transfer. - TransferId *int `json:"transferId,omitempty" url:"transferId,omitempty"` + TransferID *int `json:"transferId,omitempty" url:"transferId,omitempty"` // The ID of the paypoint associated with the transfer. - PaypointId *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *int `json:"paypointId,omitempty" url:"paypointId,omitempty"` // The batch number for the transfer. BatchNumber *string `json:"batchNumber,omitempty" url:"batchNumber,omitempty"` // The currency of the batch. @@ -8478,7 +8478,7 @@ type TransferOutRecord struct { // An identifier for the transfer. TransferIdentifier *string `json:"transferIdentifier,omitempty" url:"transferIdentifier,omitempty"` // The ID of the batch. - BatchId *int `json:"batchId,omitempty" url:"batchId,omitempty"` + BatchID *int `json:"batchId,omitempty" url:"batchId,omitempty"` // The net amount of the batch. BatchNetAmount *float64 `json:"batchNetAmount,omitempty" url:"batchNetAmount,omitempty"` // The status of the batch. @@ -8494,13 +8494,13 @@ type TransferOutRecord struct { // The name of the parent organization. ParentOrgName *string `json:"parentOrgName,omitempty" url:"parentOrgName,omitempty"` // The ID of the parent organization. - ParentOrgId *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` + ParentOrgID *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` // URL to the parent organization's logo. ParentOrgLogo *string `json:"parentOrgLogo,omitempty" url:"parentOrgLogo,omitempty"` // The entry name for the parent organization. ParentOrgEntryName *string `json:"parentOrgEntryName,omitempty" url:"parentOrgEntryName,omitempty"` // External identifier for the paypoint. - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Bank account information for the transfer. BankAccount *TransferOutBankAccount `json:"bankAccount,omitempty" url:"bankAccount,omitempty"` // The date of the transfer. @@ -8541,18 +8541,18 @@ type TransferOutRecord struct { rawJSON json.RawMessage } -func (t *TransferOutRecord) GetTransferId() *int { +func (t *TransferOutRecord) GetTransferID() *int { if t == nil { return nil } - return t.TransferId + return t.TransferID } -func (t *TransferOutRecord) GetPaypointId() *int { +func (t *TransferOutRecord) GetPaypointID() *int { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransferOutRecord) GetBatchNumber() *string { @@ -8583,11 +8583,11 @@ func (t *TransferOutRecord) GetTransferIdentifier() *string { return t.TransferIdentifier } -func (t *TransferOutRecord) GetBatchId() *int { +func (t *TransferOutRecord) GetBatchID() *int { if t == nil { return nil } - return t.BatchId + return t.BatchID } func (t *TransferOutRecord) GetBatchNetAmount() *float64 { @@ -8639,11 +8639,11 @@ func (t *TransferOutRecord) GetParentOrgName() *string { return t.ParentOrgName } -func (t *TransferOutRecord) GetParentOrgId() *int { +func (t *TransferOutRecord) GetParentOrgID() *int { if t == nil { return nil } - return t.ParentOrgId + return t.ParentOrgID } func (t *TransferOutRecord) GetParentOrgLogo() *string { @@ -8660,11 +8660,11 @@ func (t *TransferOutRecord) GetParentOrgEntryName() *string { return t.ParentOrgEntryName } -func (t *TransferOutRecord) GetExternalPaypointId() *string { +func (t *TransferOutRecord) GetExternalPaypointID() *string { if t == nil { return nil } - return t.ExternalPaypointId + return t.ExternalPaypointID } func (t *TransferOutRecord) GetBankAccount() *TransferOutBankAccount { @@ -8793,18 +8793,18 @@ func (t *TransferOutRecord) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetTransferId sets the TransferId field and marks it as non-optional; +// SetTransferID sets the TransferID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutRecord) SetTransferId(transferId *int) { - t.TransferId = transferId - t.require(transferOutRecordFieldTransferId) +func (t *TransferOutRecord) SetTransferID(transferID *int) { + t.TransferID = transferID + t.require(transferOutRecordFieldTransferID) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutRecord) SetPaypointId(paypointId *int) { - t.PaypointId = paypointId - t.require(transferOutRecordFieldPaypointId) +func (t *TransferOutRecord) SetPaypointID(paypointID *int) { + t.PaypointID = paypointID + t.require(transferOutRecordFieldPaypointID) } // SetBatchNumber sets the BatchNumber field and marks it as non-optional; @@ -8835,11 +8835,11 @@ func (t *TransferOutRecord) SetTransferIdentifier(transferIdentifier *string) { t.require(transferOutRecordFieldTransferIdentifier) } -// SetBatchId sets the BatchId field and marks it as non-optional; +// SetBatchID sets the BatchID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutRecord) SetBatchId(batchId *int) { - t.BatchId = batchId - t.require(transferOutRecordFieldBatchId) +func (t *TransferOutRecord) SetBatchID(batchID *int) { + t.BatchID = batchID + t.require(transferOutRecordFieldBatchID) } // SetBatchNetAmount sets the BatchNetAmount field and marks it as non-optional; @@ -8891,11 +8891,11 @@ func (t *TransferOutRecord) SetParentOrgName(parentOrgName *string) { t.require(transferOutRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutRecord) SetParentOrgId(parentOrgId *int) { - t.ParentOrgId = parentOrgId - t.require(transferOutRecordFieldParentOrgId) +func (t *TransferOutRecord) SetParentOrgID(parentOrgID *int) { + t.ParentOrgID = parentOrgID + t.require(transferOutRecordFieldParentOrgID) } // SetParentOrgLogo sets the ParentOrgLogo field and marks it as non-optional; @@ -8912,11 +8912,11 @@ func (t *TransferOutRecord) SetParentOrgEntryName(parentOrgEntryName *string) { t.require(transferOutRecordFieldParentOrgEntryName) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransferOutRecord) SetExternalPaypointId(externalPaypointId *string) { - t.ExternalPaypointId = externalPaypointId - t.require(transferOutRecordFieldExternalPaypointId) +func (t *TransferOutRecord) SetExternalPaypointID(externalPaypointID *string) { + t.ExternalPaypointID = externalPaypointID + t.require(transferOutRecordFieldExternalPaypointID) } // SetBankAccount sets the BankAccount field and marks it as non-optional; diff --git a/query_types_test.go b/query_types_test.go index d620852..4c165af 100644 --- a/query_types_test.go +++ b/query_types_test.go @@ -11,11 +11,11 @@ import ( ) func TestSettersBatchDetailResponseRecord(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueId int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -67,11 +67,11 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValuePaymentTransId string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -91,19 +91,19 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueGatewayTransId string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueOrderId OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -267,11 +267,11 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueParentOrgId int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -283,27 +283,27 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueDeviceId *Device - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID *Device + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRetrievalId", func(t *testing.T) { + t.Run("SetRetrievalID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueRetrievalId RetrievalId - obj.SetRetrievalId(fernTestValueRetrievalId) - assert.Equal(t, fernTestValueRetrievalId, obj.RetrievalId) + var fernTestValueRetrievalID RetrievalID + obj.SetRetrievalID(fernTestValueRetrievalID) + assert.Equal(t, fernTestValueRetrievalID, obj.RetrievalID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChargebackId", func(t *testing.T) { + t.Run("SetChargebackID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueChargebackId ChargebackId - obj.SetChargebackId(fernTestValueChargebackId) - assert.Equal(t, fernTestValueChargebackId, obj.ChargebackId) + var fernTestValueChargebackID ChargebackID + obj.SetChargebackID(fernTestValueChargebackID) + assert.Equal(t, fernTestValueChargebackID, obj.ChargebackID) assert.NotNil(t, obj.explicitFields) }) @@ -331,11 +331,11 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueEntrypageId EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) @@ -347,27 +347,27 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueOrgId Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValuePayorId PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -379,19 +379,19 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueRefundId RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueReturnedId ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) @@ -435,11 +435,11 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &BatchDetailResponseRecord{} - var fernTestValueExternalPaypointId ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -454,18 +454,18 @@ func TestSettersBatchDetailResponseRecord(t *testing.T) { } func TestGettersBatchDetailResponseRecord(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -474,7 +474,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -625,18 +625,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetBatchAmount() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -645,7 +645,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetPaymentTransStatus", func(t *testing.T) { @@ -694,18 +694,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetScheduleReference() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -714,21 +714,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected OrderId - obj.OrderId = expected + var expected OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -737,7 +737,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetTransMethod", func(t *testing.T) { @@ -1250,18 +1250,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1270,7 +1270,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPaypointEntryname", func(t *testing.T) { @@ -1296,28 +1296,28 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected *Device - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilValue", func(t *testing.T) { + t.Run("GetDeviceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - obj.DeviceId = nil + obj.DeviceID = nil // Act & Assert - assert.Nil(t, obj.GetDeviceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDeviceID(), "getter should return nil when property is nil") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1326,21 +1326,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) - t.Run("GetRetrievalId", func(t *testing.T) { + t.Run("GetRetrievalID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected RetrievalId - obj.RetrievalId = expected + var expected RetrievalID + obj.RetrievalID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRetrievalId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRetrievalID(), "getter should return the property value") }) - t.Run("GetRetrievalId_NilReceiver", func(t *testing.T) { + t.Run("GetRetrievalID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1349,21 +1349,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRetrievalId() // Should return zero value + _ = obj.GetRetrievalID() // Should return zero value }) - t.Run("GetChargebackId", func(t *testing.T) { + t.Run("GetChargebackID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected ChargebackId - obj.ChargebackId = expected + var expected ChargebackID + obj.ChargebackID = expected // Act & Assert - assert.Equal(t, expected, obj.GetChargebackId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetChargebackID(), "getter should return the property value") }) - t.Run("GetChargebackId_NilReceiver", func(t *testing.T) { + t.Run("GetChargebackID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1372,7 +1372,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChargebackId() // Should return zero value + _ = obj.GetChargebackID() // Should return zero value }) t.Run("GetAchHolderType", func(t *testing.T) { @@ -1444,18 +1444,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetConnectorName() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected EntrypageId - obj.EntrypageId = expected + var expected EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1464,7 +1464,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) t.Run("GetFeeAmount", func(t *testing.T) { @@ -1490,18 +1490,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetFeeAmount() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} var expected Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1510,21 +1510,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected PayorId - obj.PayorId = expected + var expected PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1533,21 +1533,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1556,7 +1556,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPendingFeeAmount", func(t *testing.T) { @@ -1592,18 +1592,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetPendingFeeAmount() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected RefundId - obj.RefundId = expected + var expected RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1612,21 +1612,21 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected ReturnedId - obj.ReturnedId = expected + var expected ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1635,7 +1635,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) t.Run("GetSplitFundingInstructions", func(t *testing.T) { @@ -1793,18 +1793,18 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { _ = obj.GetTransactionEvents() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var expected ExternalPaypointId - obj.ExternalPaypointId = expected + var expected ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BatchDetailResponseRecord // Should not panic - getters should handle nil receiver gracefully @@ -1813,7 +1813,7 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetIsHold", func(t *testing.T) { @@ -1842,14 +1842,14 @@ func TestGettersBatchDetailResponseRecord(t *testing.T) { } func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueId int + var fernTestValueID int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2059,14 +2059,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValuePaymentTransId string + var fernTestValuePaymentTransID string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2152,14 +2152,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueGatewayTransId string + var fernTestValueGatewayTransID string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2183,14 +2183,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueOrderId OrderId + var fernTestValueOrderID OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2834,14 +2834,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueParentOrgId int + var fernTestValueParentOrgID int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2896,14 +2896,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueDeviceId *Device + var fernTestValueDeviceID *Device // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2927,14 +2927,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRetrievalId_MarksExplicit", func(t *testing.T) { + t.Run("SetRetrievalID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueRetrievalId RetrievalId + var fernTestValueRetrievalID RetrievalID // Act - obj.SetRetrievalId(fernTestValueRetrievalId) + obj.SetRetrievalID(fernTestValueRetrievalID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2958,14 +2958,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChargebackId_MarksExplicit", func(t *testing.T) { + t.Run("SetChargebackID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueChargebackId ChargebackId + var fernTestValueChargebackID ChargebackID // Act - obj.SetChargebackId(fernTestValueChargebackId) + obj.SetChargebackID(fernTestValueChargebackID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3082,14 +3082,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueEntrypageId EntrypageId + var fernTestValueEntrypageID EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3144,14 +3144,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueOrgId Orgid + var fernTestValueOrgID Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3175,14 +3175,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValuePayorId PayorId + var fernTestValuePayorID PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3206,14 +3206,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3268,14 +3268,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueRefundId RefundId + var fernTestValueRefundID RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3299,14 +3299,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueReturnedId ReturnedId + var fernTestValueReturnedID ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3485,14 +3485,14 @@ func TestSettersMarkExplicitBatchDetailResponseRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BatchDetailResponseRecord{} - var fernTestValueExternalPaypointId ExternalPaypointId + var fernTestValueExternalPaypointID ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4648,11 +4648,11 @@ func TestSettersMarkExplicitQueryBatchesResponse(t *testing.T) { } func TestSettersQueryBatchesResponseRecordsItem(t *testing.T) { - t.Run("SetIdBatch", func(t *testing.T) { + t.Run("SetIDBatch", func(t *testing.T) { obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueIdBatch *int - obj.SetIdBatch(fernTestValueIdBatch) - assert.Equal(t, fernTestValueIdBatch, obj.IdBatch) + var fernTestValueIDBatch *int + obj.SetIDBatch(fernTestValueIDBatch) + assert.Equal(t, fernTestValueIDBatch, obj.IDBatch) assert.NotNil(t, obj.explicitFields) }) @@ -4776,11 +4776,11 @@ func TestSettersQueryBatchesResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &QueryBatchesResponseRecordsItem{} - var fernTestValuePaypointId *PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -4808,19 +4808,19 @@ func TestSettersQueryBatchesResponseRecordsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueParentOrgId int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -4891,28 +4891,28 @@ func TestSettersQueryBatchesResponseRecordsItem(t *testing.T) { } func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { - t.Run("GetIdBatch", func(t *testing.T) { + t.Run("GetIDBatch", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} var expected *int - obj.IdBatch = expected + obj.IDBatch = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdBatch(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDBatch(), "getter should return the property value") }) - t.Run("GetIdBatch_NilValue", func(t *testing.T) { + t.Run("GetIDBatch_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - obj.IdBatch = nil + obj.IDBatch = nil // Act & Assert - assert.Nil(t, obj.GetIdBatch(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDBatch(), "getter should return nil when property is nil") }) - t.Run("GetIdBatch_NilReceiver", func(t *testing.T) { + t.Run("GetIDBatch_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -4921,7 +4921,7 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdBatch() // Should return zero value + _ = obj.GetIDBatch() // Should return zero value }) t.Run("GetBatchNumber", func(t *testing.T) { @@ -5399,28 +5399,28 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { _ = obj.GetBatchRecords() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var expected *PaypointId - obj.PaypointId = expected + var expected *PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -5429,7 +5429,7 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointName", func(t *testing.T) { @@ -5521,18 +5521,18 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} var expected int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -5541,31 +5541,31 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesResponseRecordsItem // Should not panic - getters should handle nil receiver gracefully @@ -5574,7 +5574,7 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetEntryName", func(t *testing.T) { @@ -5834,14 +5834,14 @@ func TestGettersQueryBatchesResponseRecordsItem(t *testing.T) { } func TestSettersMarkExplicitQueryBatchesResponseRecordsItem(t *testing.T) { - t.Run("SetIdBatch_MarksExplicit", func(t *testing.T) { + t.Run("SetIDBatch_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueIdBatch *int + var fernTestValueIDBatch *int // Act - obj.SetIdBatch(fernTestValueIdBatch) + obj.SetIDBatch(fernTestValueIDBatch) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6330,14 +6330,14 @@ func TestSettersMarkExplicitQueryBatchesResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var fernTestValuePaypointId *PaypointId + var fernTestValuePaypointID *PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6454,14 +6454,14 @@ func TestSettersMarkExplicitQueryBatchesResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueParentOrgId int + var fernTestValueParentOrgID int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6485,14 +6485,14 @@ func TestSettersMarkExplicitQueryBatchesResponseRecordsItem(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesResponseRecordsItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6767,11 +6767,11 @@ func TestSettersMarkExplicitQueryBatchesResponseRecordsItem(t *testing.T) { } func TestSettersQueryBatchesTransfer(t *testing.T) { - t.Run("SetTransferId", func(t *testing.T) { + t.Run("SetTransferID", func(t *testing.T) { obj := &QueryBatchesTransfer{} - var fernTestValueTransferId *int - obj.SetTransferId(fernTestValueTransferId) - assert.Equal(t, fernTestValueTransferId, obj.TransferId) + var fernTestValueTransferID *int + obj.SetTransferID(fernTestValueTransferID) + assert.Equal(t, fernTestValueTransferID, obj.TransferID) assert.NotNil(t, obj.explicitFields) }) @@ -6882,28 +6882,28 @@ func TestSettersQueryBatchesTransfer(t *testing.T) { } func TestGettersQueryBatchesTransfer(t *testing.T) { - t.Run("GetTransferId", func(t *testing.T) { + t.Run("GetTransferID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesTransfer{} var expected *int - obj.TransferId = expected + obj.TransferID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferID(), "getter should return the property value") }) - t.Run("GetTransferId_NilValue", func(t *testing.T) { + t.Run("GetTransferID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesTransfer{} - obj.TransferId = nil + obj.TransferID = nil // Act & Assert - assert.Nil(t, obj.GetTransferId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferID(), "getter should return nil when property is nil") }) - t.Run("GetTransferId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryBatchesTransfer // Should not panic - getters should handle nil receiver gracefully @@ -6912,7 +6912,7 @@ func TestGettersQueryBatchesTransfer(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferId() // Should return zero value + _ = obj.GetTransferID() // Should return zero value }) t.Run("GetTransferDate", func(t *testing.T) { @@ -7347,14 +7347,14 @@ func TestGettersQueryBatchesTransfer(t *testing.T) { } func TestSettersMarkExplicitQueryBatchesTransfer(t *testing.T) { - t.Run("SetTransferId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryBatchesTransfer{} - var fernTestValueTransferId *int + var fernTestValueTransferID *int // Act - obj.SetTransferId(fernTestValueTransferId) + obj.SetTransferID(fernTestValueTransferID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9539,27 +9539,27 @@ func TestSettersMarkExplicitQueryTransferSummary(t *testing.T) { } func TestSettersTransferDetailRecord(t *testing.T) { - t.Run("SetTransferDetailId", func(t *testing.T) { + t.Run("SetTransferDetailID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueTransferDetailId *int - obj.SetTransferDetailId(fernTestValueTransferDetailId) - assert.Equal(t, fernTestValueTransferDetailId, obj.TransferDetailId) + var fernTestValueTransferDetailID *int + obj.SetTransferDetailID(fernTestValueTransferDetailID) + assert.Equal(t, fernTestValueTransferDetailID, obj.TransferDetailID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransferId", func(t *testing.T) { + t.Run("SetTransferID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueTransferId *int - obj.SetTransferId(fernTestValueTransferId) - assert.Equal(t, fernTestValueTransferId, obj.TransferId) + var fernTestValueTransferID *int + obj.SetTransferID(fernTestValueTransferID) + assert.Equal(t, fernTestValueTransferID, obj.TransferID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueTransactionId *string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID *string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) @@ -9715,11 +9715,11 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValuePaymentTransId *string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID *string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -9739,19 +9739,19 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueGatewayTransId *string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID *string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -9779,11 +9779,11 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValuePayorId *PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID *PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) @@ -9803,11 +9803,11 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValuePaypointId *PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -9875,43 +9875,43 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueRefundId *RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID *RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueReturnedId *ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID *ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChargebackId", func(t *testing.T) { + t.Run("SetChargebackID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueChargebackId *ChargebackId - obj.SetChargebackId(fernTestValueChargebackId) - assert.Equal(t, fernTestValueChargebackId, obj.ChargebackId) + var fernTestValueChargebackID *ChargebackID + obj.SetChargebackID(fernTestValueChargebackID) + assert.Equal(t, fernTestValueChargebackID, obj.ChargebackID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRetrievalId", func(t *testing.T) { + t.Run("SetRetrievalID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueRetrievalId *RetrievalId - obj.SetRetrievalId(fernTestValueRetrievalId) - assert.Equal(t, fernTestValueRetrievalId, obj.RetrievalId) + var fernTestValueRetrievalID *RetrievalID + obj.SetRetrievalID(fernTestValueRetrievalID) + assert.Equal(t, fernTestValueRetrievalID, obj.RetrievalID) assert.NotNil(t, obj.explicitFields) }) @@ -9931,19 +9931,19 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -10051,11 +10051,11 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueDeviceId *DeviceId - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID *DeviceID + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) @@ -10075,11 +10075,11 @@ func TestSettersTransferDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIpAddress", func(t *testing.T) { + t.Run("SetIPAddress", func(t *testing.T) { obj := &TransferDetailRecord{} - var fernTestValueIpAddress *IpAddress - obj.SetIpAddress(fernTestValueIpAddress) - assert.Equal(t, fernTestValueIpAddress, obj.IpAddress) + var fernTestValueIPAddress *IPAddress + obj.SetIPAddress(fernTestValueIPAddress) + assert.Equal(t, fernTestValueIPAddress, obj.IPAddress) assert.NotNil(t, obj.explicitFields) }) @@ -10102,28 +10102,28 @@ func TestSettersTransferDetailRecord(t *testing.T) { } func TestGettersTransferDetailRecord(t *testing.T) { - t.Run("GetTransferDetailId", func(t *testing.T) { + t.Run("GetTransferDetailID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *int - obj.TransferDetailId = expected + obj.TransferDetailID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferDetailId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferDetailID(), "getter should return the property value") }) - t.Run("GetTransferDetailId_NilValue", func(t *testing.T) { + t.Run("GetTransferDetailID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.TransferDetailId = nil + obj.TransferDetailID = nil // Act & Assert - assert.Nil(t, obj.GetTransferDetailId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferDetailID(), "getter should return nil when property is nil") }) - t.Run("GetTransferDetailId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferDetailID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10132,31 +10132,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferDetailId() // Should return zero value + _ = obj.GetTransferDetailID() // Should return zero value }) - t.Run("GetTransferId", func(t *testing.T) { + t.Run("GetTransferID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *int - obj.TransferId = expected + obj.TransferID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferID(), "getter should return the property value") }) - t.Run("GetTransferId_NilValue", func(t *testing.T) { + t.Run("GetTransferID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.TransferId = nil + obj.TransferID = nil // Act & Assert - assert.Nil(t, obj.GetTransferId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferID(), "getter should return nil when property is nil") }) - t.Run("GetTransferId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10165,31 +10165,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferId() // Should return zero value + _ = obj.GetTransferID() // Should return zero value }) - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilValue", func(t *testing.T) { + t.Run("GetTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.TransactionId = nil + obj.TransactionID = nil // Act & Assert - assert.Nil(t, obj.GetTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10198,7 +10198,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) t.Run("GetTransactionNumber", func(t *testing.T) { @@ -10828,28 +10828,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilValue", func(t *testing.T) { + t.Run("GetPaymentTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.PaymentTransId = nil + obj.PaymentTransID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentTransID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10858,7 +10858,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetConnectorName", func(t *testing.T) { @@ -10927,28 +10927,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetExternalProcessorInformation() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilValue", func(t *testing.T) { + t.Run("GetGatewayTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.GatewayTransId = nil + obj.GatewayTransID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayTransID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10957,31 +10957,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -10990,7 +10990,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -11092,28 +11092,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetBatchAmount() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *PayorId - obj.PayorId = expected + var expected *PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilValue", func(t *testing.T) { + t.Run("GetPayorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.PayorId = nil + obj.PayorID = nil // Act & Assert - assert.Nil(t, obj.GetPayorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPayorID(), "getter should return nil when property is nil") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11122,7 +11122,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -11191,28 +11191,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetTransStatus() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *PaypointId - obj.PaypointId = expected + var expected *PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11221,7 +11221,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -11488,28 +11488,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetScheduleReference() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11518,31 +11518,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *RefundId - obj.RefundId = expected + var expected *RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilValue", func(t *testing.T) { + t.Run("GetRefundID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.RefundId = nil + obj.RefundID = nil // Act & Assert - assert.Nil(t, obj.GetRefundId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRefundID(), "getter should return nil when property is nil") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11551,31 +11551,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *ReturnedId - obj.ReturnedId = expected + var expected *ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilValue", func(t *testing.T) { + t.Run("GetReturnedID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.ReturnedId = nil + obj.ReturnedID = nil // Act & Assert - assert.Nil(t, obj.GetReturnedId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReturnedID(), "getter should return nil when property is nil") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11584,31 +11584,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) - t.Run("GetChargebackId", func(t *testing.T) { + t.Run("GetChargebackID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *ChargebackId - obj.ChargebackId = expected + var expected *ChargebackID + obj.ChargebackID = expected // Act & Assert - assert.Equal(t, expected, obj.GetChargebackId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetChargebackID(), "getter should return the property value") }) - t.Run("GetChargebackId_NilValue", func(t *testing.T) { + t.Run("GetChargebackID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.ChargebackId = nil + obj.ChargebackID = nil // Act & Assert - assert.Nil(t, obj.GetChargebackId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetChargebackID(), "getter should return nil when property is nil") }) - t.Run("GetChargebackId_NilReceiver", func(t *testing.T) { + t.Run("GetChargebackID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11617,31 +11617,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChargebackId() // Should return zero value + _ = obj.GetChargebackID() // Should return zero value }) - t.Run("GetRetrievalId", func(t *testing.T) { + t.Run("GetRetrievalID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *RetrievalId - obj.RetrievalId = expected + var expected *RetrievalID + obj.RetrievalID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRetrievalId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRetrievalID(), "getter should return the property value") }) - t.Run("GetRetrievalId_NilValue", func(t *testing.T) { + t.Run("GetRetrievalID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.RetrievalId = nil + obj.RetrievalID = nil // Act & Assert - assert.Nil(t, obj.GetRetrievalId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRetrievalID(), "getter should return nil when property is nil") }) - t.Run("GetRetrievalId_NilReceiver", func(t *testing.T) { + t.Run("GetRetrievalID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11650,7 +11650,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRetrievalId() // Should return zero value + _ = obj.GetRetrievalID() // Should return zero value }) t.Run("GetTransAdditionalData", func(t *testing.T) { @@ -11709,28 +11709,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetInvoiceData() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11739,31 +11739,31 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -11772,7 +11772,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetIsValidatedAch", func(t *testing.T) { @@ -12204,28 +12204,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetRiskActionCode() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *DeviceId - obj.DeviceId = expected + var expected *DeviceID + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilValue", func(t *testing.T) { + t.Run("GetDeviceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.DeviceId = nil + obj.DeviceID = nil // Act & Assert - assert.Nil(t, obj.GetDeviceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDeviceID(), "getter should return nil when property is nil") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -12234,7 +12234,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) t.Run("GetAchSecCode", func(t *testing.T) { @@ -12303,28 +12303,28 @@ func TestGettersTransferDetailRecord(t *testing.T) { _ = obj.GetAchHolderType() // Should return zero value }) - t.Run("GetIpAddress", func(t *testing.T) { + t.Run("GetIPAddress", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var expected *IpAddress - obj.IpAddress = expected + var expected *IPAddress + obj.IPAddress = expected // Act & Assert - assert.Equal(t, expected, obj.GetIpAddress(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIPAddress(), "getter should return the property value") }) - t.Run("GetIpAddress_NilValue", func(t *testing.T) { + t.Run("GetIPAddress_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - obj.IpAddress = nil + obj.IPAddress = nil // Act & Assert - assert.Nil(t, obj.GetIpAddress(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIPAddress(), "getter should return nil when property is nil") }) - t.Run("GetIpAddress_NilReceiver", func(t *testing.T) { + t.Run("GetIPAddress_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -12333,7 +12333,7 @@ func TestGettersTransferDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIpAddress() // Should return zero value + _ = obj.GetIPAddress() // Should return zero value }) t.Run("GetIsSameDayAch", func(t *testing.T) { @@ -12405,14 +12405,14 @@ func TestGettersTransferDetailRecord(t *testing.T) { } func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { - t.Run("SetTransferDetailId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferDetailID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueTransferDetailId *int + var fernTestValueTransferDetailID *int // Act - obj.SetTransferDetailId(fernTestValueTransferDetailId) + obj.SetTransferDetailID(fernTestValueTransferDetailID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12436,14 +12436,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransferId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueTransferId *int + var fernTestValueTransferID *int // Act - obj.SetTransferId(fernTestValueTransferId) + obj.SetTransferID(fernTestValueTransferID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12467,14 +12467,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueTransactionId *string + var fernTestValueTransactionID *string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13087,14 +13087,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValuePaymentTransId *string + var fernTestValuePaymentTransID *string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13180,14 +13180,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueGatewayTransId *string + var fernTestValueGatewayTransID *string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13211,14 +13211,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13335,14 +13335,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValuePayorId *PayorId + var fernTestValuePayorID *PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13428,14 +13428,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValuePaypointId *PaypointId + var fernTestValuePaypointID *PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13707,14 +13707,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13738,14 +13738,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueRefundId *RefundId + var fernTestValueRefundID *RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13769,14 +13769,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueReturnedId *ReturnedId + var fernTestValueReturnedID *ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13800,14 +13800,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChargebackId_MarksExplicit", func(t *testing.T) { + t.Run("SetChargebackID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueChargebackId *ChargebackId + var fernTestValueChargebackID *ChargebackID // Act - obj.SetChargebackId(fernTestValueChargebackId) + obj.SetChargebackID(fernTestValueChargebackID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13831,14 +13831,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRetrievalId_MarksExplicit", func(t *testing.T) { + t.Run("SetRetrievalID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueRetrievalId *RetrievalId + var fernTestValueRetrievalID *RetrievalID // Act - obj.SetRetrievalId(fernTestValueRetrievalId) + obj.SetRetrievalID(fernTestValueRetrievalID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13924,14 +13924,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -13955,14 +13955,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14389,14 +14389,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueDeviceId *DeviceId + var fernTestValueDeviceID *DeviceID // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14482,14 +14482,14 @@ func TestSettersMarkExplicitTransferDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIpAddress_MarksExplicit", func(t *testing.T) { + t.Run("SetIPAddress_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferDetailRecord{} - var fernTestValueIpAddress *IpAddress + var fernTestValueIPAddress *IPAddress // Act - obj.SetIpAddress(fernTestValueIpAddress) + obj.SetIPAddress(fernTestValueIPAddress) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -14803,11 +14803,11 @@ func TestSettersMarkExplicitTransferOutBankAccount(t *testing.T) { } func TestSettersTransferOutDetailBill(t *testing.T) { - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &TransferOutDetailBill{} - var fernTestValueBillId *int - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *int + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -14926,28 +14926,28 @@ func TestSettersTransferOutDetailBill(t *testing.T) { } func TestGettersTransferOutDetailBill(t *testing.T) { - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailBill{} var expected *int - obj.BillId = expected + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailBill{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailBill // Should not panic - getters should handle nil receiver gracefully @@ -14956,7 +14956,7 @@ func TestGettersTransferOutDetailBill(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetLotNumber", func(t *testing.T) { @@ -15424,14 +15424,14 @@ func TestGettersTransferOutDetailBill(t *testing.T) { } func TestSettersMarkExplicitTransferOutDetailBill(t *testing.T) { - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailBill{} - var fernTestValueBillId *int + var fernTestValueBillID *int // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -16679,11 +16679,11 @@ func TestSettersTransferOutDetailPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredId", func(t *testing.T) { + t.Run("SetStoredID", func(t *testing.T) { obj := &TransferOutDetailPaymentData{} - var fernTestValueStoredId *string - obj.SetStoredId(fernTestValueStoredId) - assert.Equal(t, fernTestValueStoredId, obj.StoredId) + var fernTestValueStoredID *string + obj.SetStoredID(fernTestValueStoredID) + assert.Equal(t, fernTestValueStoredID, obj.StoredID) assert.NotNil(t, obj.explicitFields) }) @@ -16751,11 +16751,11 @@ func TestSettersTransferOutDetailPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &TransferOutDetailPaymentData{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -16951,28 +16951,28 @@ func TestGettersTransferOutDetailPaymentData(t *testing.T) { _ = obj.GetHolderName() // Should return zero value }) - t.Run("GetStoredId", func(t *testing.T) { + t.Run("GetStoredID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} var expected *string - obj.StoredId = expected + obj.StoredID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredID(), "getter should return the property value") }) - t.Run("GetStoredId_NilValue", func(t *testing.T) { + t.Run("GetStoredID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} - obj.StoredId = nil + obj.StoredID = nil // Act & Assert - assert.Nil(t, obj.GetStoredId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredID(), "getter should return nil when property is nil") }) - t.Run("GetStoredId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -16981,7 +16981,7 @@ func TestGettersTransferOutDetailPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredId() // Should return zero value + _ = obj.GetStoredID() // Should return zero value }) t.Run("GetInitiator", func(t *testing.T) { @@ -17238,28 +17238,28 @@ func TestGettersTransferOutDetailPaymentData(t *testing.T) { _ = obj.GetPayorData() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -17268,7 +17268,7 @@ func TestGettersTransferOutDetailPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetBankAccount", func(t *testing.T) { @@ -17518,14 +17518,14 @@ func TestSettersMarkExplicitTransferOutDetailPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} - var fernTestValueStoredId *string + var fernTestValueStoredID *string // Act - obj.SetStoredId(fernTestValueStoredId) + obj.SetStoredID(fernTestValueStoredID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -17797,14 +17797,14 @@ func TestSettersMarkExplicitTransferOutDetailPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailPaymentData{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -18077,35 +18077,35 @@ func TestSettersMarkExplicitTransferOutDetailQueryResponse(t *testing.T) { } func TestSettersTransferOutDetailRecord(t *testing.T) { - t.Run("SetTransferDetailId", func(t *testing.T) { + t.Run("SetTransferDetailID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueTransferDetailId *int - obj.SetTransferDetailId(fernTestValueTransferDetailId) - assert.Equal(t, fernTestValueTransferDetailId, obj.TransferDetailId) + var fernTestValueTransferDetailID *int + obj.SetTransferDetailID(fernTestValueTransferDetailID) + assert.Equal(t, fernTestValueTransferDetailID, obj.TransferDetailID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransferId", func(t *testing.T) { + t.Run("SetTransferID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueTransferId *int - obj.SetTransferId(fernTestValueTransferId) - assert.Equal(t, fernTestValueTransferId, obj.TransferId) + var fernTestValueTransferID *int + obj.SetTransferID(fernTestValueTransferID) + assert.Equal(t, fernTestValueTransferID, obj.TransferID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueTransactionId *string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID *string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdOut", func(t *testing.T) { + t.Run("SetIDOut", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueIdOut *int - obj.SetIdOut(fernTestValueIdOut) - assert.Equal(t, fernTestValueIdOut, obj.IdOut) + var fernTestValueIDOut *int + obj.SetIDOut(fernTestValueIDOut) + assert.Equal(t, fernTestValueIDOut, obj.IDOut) assert.NotNil(t, obj.explicitFields) }) @@ -18245,11 +18245,11 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -18261,19 +18261,19 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentId", func(t *testing.T) { + t.Run("SetPaymentID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValuePaymentId *string - obj.SetPaymentId(fernTestValuePaymentId) - assert.Equal(t, fernTestValuePaymentId, obj.PaymentId) + var fernTestValuePaymentID *string + obj.SetPaymentID(fernTestValuePaymentID) + assert.Equal(t, fernTestValuePaymentID, obj.PaymentID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransId", func(t *testing.T) { + t.Run("SetTransID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueTransId *string - obj.SetTransId(fernTestValueTransId) - assert.Equal(t, fernTestValueTransId, obj.TransId) + var fernTestValueTransID *string + obj.SetTransID(fernTestValueTransID) + assert.Equal(t, fernTestValueTransID, obj.TransID) assert.NotNil(t, obj.explicitFields) }) @@ -18357,11 +18357,11 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -18437,11 +18437,11 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -18461,11 +18461,11 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueBatchId *int - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID *int + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -18485,11 +18485,11 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetScheduleId", func(t *testing.T) { + t.Run("SetScheduleID", func(t *testing.T) { obj := &TransferOutDetailRecord{} - var fernTestValueScheduleId *int - obj.SetScheduleId(fernTestValueScheduleId) - assert.Equal(t, fernTestValueScheduleId, obj.ScheduleId) + var fernTestValueScheduleID *int + obj.SetScheduleID(fernTestValueScheduleID) + assert.Equal(t, fernTestValueScheduleID, obj.ScheduleID) assert.NotNil(t, obj.explicitFields) }) @@ -18584,28 +18584,28 @@ func TestSettersTransferOutDetailRecord(t *testing.T) { } func TestGettersTransferOutDetailRecord(t *testing.T) { - t.Run("GetTransferDetailId", func(t *testing.T) { + t.Run("GetTransferDetailID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.TransferDetailId = expected + obj.TransferDetailID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferDetailId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferDetailID(), "getter should return the property value") }) - t.Run("GetTransferDetailId_NilValue", func(t *testing.T) { + t.Run("GetTransferDetailID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.TransferDetailId = nil + obj.TransferDetailID = nil // Act & Assert - assert.Nil(t, obj.GetTransferDetailId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferDetailID(), "getter should return nil when property is nil") }) - t.Run("GetTransferDetailId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferDetailID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -18614,31 +18614,31 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferDetailId() // Should return zero value + _ = obj.GetTransferDetailID() // Should return zero value }) - t.Run("GetTransferId", func(t *testing.T) { + t.Run("GetTransferID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.TransferId = expected + obj.TransferID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferID(), "getter should return the property value") }) - t.Run("GetTransferId_NilValue", func(t *testing.T) { + t.Run("GetTransferID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.TransferId = nil + obj.TransferID = nil // Act & Assert - assert.Nil(t, obj.GetTransferId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferID(), "getter should return nil when property is nil") }) - t.Run("GetTransferId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -18647,31 +18647,31 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferId() // Should return zero value + _ = obj.GetTransferID() // Should return zero value }) - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilValue", func(t *testing.T) { + t.Run("GetTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.TransactionId = nil + obj.TransactionID = nil // Act & Assert - assert.Nil(t, obj.GetTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -18680,31 +18680,31 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) - t.Run("GetIdOut", func(t *testing.T) { + t.Run("GetIDOut", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.IdOut = expected + obj.IDOut = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOut(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOut(), "getter should return the property value") }) - t.Run("GetIdOut_NilValue", func(t *testing.T) { + t.Run("GetIDOut_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.IdOut = nil + obj.IDOut = nil // Act & Assert - assert.Nil(t, obj.GetIdOut(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOut(), "getter should return nil when property is nil") }) - t.Run("GetIdOut_NilReceiver", func(t *testing.T) { + t.Run("GetIDOut_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -18713,7 +18713,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOut() // Should return zero value + _ = obj.GetIDOut() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -19277,28 +19277,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetPaypointLegalname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -19307,7 +19307,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetStatus", func(t *testing.T) { @@ -19343,28 +19343,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetStatus() // Should return zero value }) - t.Run("GetPaymentId", func(t *testing.T) { + t.Run("GetPaymentID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *string - obj.PaymentId = expected + obj.PaymentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentID(), "getter should return the property value") }) - t.Run("GetPaymentId_NilValue", func(t *testing.T) { + t.Run("GetPaymentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.PaymentId = nil + obj.PaymentID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -19373,31 +19373,31 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentId() // Should return zero value + _ = obj.GetPaymentID() // Should return zero value }) - t.Run("GetTransId", func(t *testing.T) { + t.Run("GetTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *string - obj.TransId = expected + obj.TransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransID(), "getter should return the property value") }) - t.Run("GetTransId_NilValue", func(t *testing.T) { + t.Run("GetTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.TransId = nil + obj.TransID = nil // Act & Assert - assert.Nil(t, obj.GetTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransID(), "getter should return nil when property is nil") }) - t.Run("GetTransId_NilReceiver", func(t *testing.T) { + t.Run("GetTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -19406,7 +19406,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransId() // Should return zero value + _ = obj.GetTransID() // Should return zero value }) t.Run("GetTransStatus", func(t *testing.T) { @@ -19739,28 +19739,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -19769,7 +19769,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetBatchNumber", func(t *testing.T) { @@ -20069,28 +20069,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetEvents() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -20099,7 +20099,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetEntryName", func(t *testing.T) { @@ -20168,28 +20168,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetGateway() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilValue", func(t *testing.T) { + t.Run("GetBatchID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.BatchId = nil + obj.BatchID = nil // Act & Assert - assert.Nil(t, obj.GetBatchId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBatchID(), "getter should return nil when property is nil") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -20198,7 +20198,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetHasVcardTransactions", func(t *testing.T) { @@ -20267,28 +20267,28 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { _ = obj.GetIsSameDayAch() // Should return zero value }) - t.Run("GetScheduleId", func(t *testing.T) { + t.Run("GetScheduleID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} var expected *int - obj.ScheduleId = expected + obj.ScheduleID = expected // Act & Assert - assert.Equal(t, expected, obj.GetScheduleId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetScheduleID(), "getter should return the property value") }) - t.Run("GetScheduleId_NilValue", func(t *testing.T) { + t.Run("GetScheduleID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - obj.ScheduleId = nil + obj.ScheduleID = nil // Act & Assert - assert.Nil(t, obj.GetScheduleId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetScheduleID(), "getter should return nil when property is nil") }) - t.Run("GetScheduleId_NilReceiver", func(t *testing.T) { + t.Run("GetScheduleID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailRecord // Should not panic - getters should handle nil receiver gracefully @@ -20297,7 +20297,7 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetScheduleId() // Should return zero value + _ = obj.GetScheduleID() // Should return zero value }) t.Run("GetSettlementStatus", func(t *testing.T) { @@ -20666,14 +20666,14 @@ func TestGettersTransferOutDetailRecord(t *testing.T) { } func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { - t.Run("SetTransferDetailId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferDetailID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueTransferDetailId *int + var fernTestValueTransferDetailID *int // Act - obj.SetTransferDetailId(fernTestValueTransferDetailId) + obj.SetTransferDetailID(fernTestValueTransferDetailID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20697,14 +20697,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransferId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueTransferId *int + var fernTestValueTransferID *int // Act - obj.SetTransferId(fernTestValueTransferId) + obj.SetTransferID(fernTestValueTransferID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20728,14 +20728,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueTransactionId *string + var fernTestValueTransactionID *string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20759,14 +20759,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdOut_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOut_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueIdOut *int + var fernTestValueIDOut *int // Act - obj.SetIdOut(fernTestValueIdOut) + obj.SetIDOut(fernTestValueIDOut) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21317,14 +21317,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21379,14 +21379,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValuePaymentId *string + var fernTestValuePaymentID *string // Act - obj.SetPaymentId(fernTestValuePaymentId) + obj.SetPaymentID(fernTestValuePaymentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21410,14 +21410,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueTransId *string + var fernTestValueTransID *string // Act - obj.SetTransId(fernTestValueTransId) + obj.SetTransID(fernTestValueTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21751,14 +21751,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22061,14 +22061,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22154,14 +22154,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueBatchId *int + var fernTestValueBatchID *int // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22247,14 +22247,14 @@ func TestSettersMarkExplicitTransferOutDetailRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetScheduleId_MarksExplicit", func(t *testing.T) { + t.Run("SetScheduleID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailRecord{} - var fernTestValueScheduleId *int + var fernTestValueScheduleID *int // Act - obj.SetScheduleId(fernTestValueScheduleId) + obj.SetScheduleID(fernTestValueScheduleID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22774,11 +22774,11 @@ func TestSettersTransferOutDetailVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &TransferOutDetailVendor{} - var fernTestValueVendorId *int - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *int + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -22806,11 +22806,11 @@ func TestSettersTransferOutDetailVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransferOutDetailVendor{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -22838,11 +22838,11 @@ func TestSettersTransferOutDetailVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &TransferOutDetailVendor{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -22950,11 +22950,11 @@ func TestSettersTransferOutDetailVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &TransferOutDetailVendor{} - var fernTestValueInternalReferenceId *int - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -22966,11 +22966,11 @@ func TestSettersTransferOutDetailVendor(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransferOutDetailVendor{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -23612,28 +23612,28 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { _ = obj.GetVendorStatus() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} var expected *int - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendor // Should not panic - getters should handle nil receiver gracefully @@ -23642,7 +23642,7 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetEnrollmentStatus", func(t *testing.T) { @@ -23744,28 +23744,28 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { _ = obj.GetPaypointLegalname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendor // Should not panic - getters should handle nil receiver gracefully @@ -23774,7 +23774,7 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointDbaname", func(t *testing.T) { @@ -23876,28 +23876,28 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendor // Should not panic - getters should handle nil receiver gracefully @@ -23906,7 +23906,7 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetCreatedDate", func(t *testing.T) { @@ -24338,28 +24338,28 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { _ = obj.GetCustomerVendorAccount() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} var expected *int - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendor // Should not panic - getters should handle nil receiver gracefully @@ -24368,7 +24368,7 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetAdditionalData", func(t *testing.T) { @@ -24404,28 +24404,28 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { _ = obj.GetAdditionalData() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendor // Should not panic - getters should handle nil receiver gracefully @@ -24434,7 +24434,7 @@ func TestGettersTransferOutDetailVendor(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetStoredMethods", func(t *testing.T) { @@ -25062,14 +25062,14 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - var fernTestValueVendorId *int + var fernTestValueVendorID *int // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25186,14 +25186,14 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25310,14 +25310,14 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25744,14 +25744,14 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - var fernTestValueInternalReferenceId *int + var fernTestValueInternalReferenceID *int // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25806,14 +25806,14 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendor{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25871,19 +25871,19 @@ func TestSettersMarkExplicitTransferOutDetailVendor(t *testing.T) { } func TestSettersTransferOutDetailVendorBillingData(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &TransferOutDetailVendorBillingData{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &TransferOutDetailVendorBillingData{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -25994,28 +25994,28 @@ func TestSettersTransferOutDetailVendorBillingData(t *testing.T) { } func TestGettersTransferOutDetailVendorBillingData(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendorBillingData // Should not panic - getters should handle nil receiver gracefully @@ -26024,31 +26024,31 @@ func TestGettersTransferOutDetailVendorBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutDetailVendorBillingData // Should not panic - getters should handle nil receiver gracefully @@ -26057,7 +26057,7 @@ func TestGettersTransferOutDetailVendorBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetNickname", func(t *testing.T) { @@ -26492,14 +26492,14 @@ func TestGettersTransferOutDetailVendorBillingData(t *testing.T) { } func TestSettersMarkExplicitTransferOutDetailVendorBillingData(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -26523,14 +26523,14 @@ func TestSettersMarkExplicitTransferOutDetailVendorBillingData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutDetailVendorBillingData{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27319,27 +27319,27 @@ func TestSettersMarkExplicitTransferOutEventData(t *testing.T) { } func TestSettersTransferOutMessage(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &TransferOutMessage{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &TransferOutMessage{} - var fernTestValueRoomId *int - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *int + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &TransferOutMessage{} - var fernTestValueUserId *int - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID *int + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) @@ -27386,28 +27386,28 @@ func TestSettersTransferOutMessage(t *testing.T) { } func TestGettersTransferOutMessage(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutMessage // Should not panic - getters should handle nil receiver gracefully @@ -27416,31 +27416,31 @@ func TestGettersTransferOutMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} var expected *int - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutMessage // Should not panic - getters should handle nil receiver gracefully @@ -27449,31 +27449,31 @@ func TestGettersTransferOutMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) - t.Run("GetUserId", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} var expected *int - obj.UserId = expected + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetUserId_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - obj.UserId = nil + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetUserId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetUserId_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutMessage // Should not panic - getters should handle nil receiver gracefully @@ -27482,7 +27482,7 @@ func TestGettersTransferOutMessage(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserId() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) t.Run("GetUserName", func(t *testing.T) { @@ -27653,14 +27653,14 @@ func TestGettersTransferOutMessage(t *testing.T) { } func TestSettersMarkExplicitTransferOutMessage(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27684,14 +27684,14 @@ func TestSettersMarkExplicitTransferOutMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - var fernTestValueRoomId *int + var fernTestValueRoomID *int // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -27715,14 +27715,14 @@ func TestSettersMarkExplicitTransferOutMessage(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutMessage{} - var fernTestValueUserId *int + var fernTestValueUserID *int // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -28210,19 +28210,19 @@ func TestSettersMarkExplicitTransferOutQueryResponse(t *testing.T) { } func TestSettersTransferOutRecord(t *testing.T) { - t.Run("SetTransferId", func(t *testing.T) { + t.Run("SetTransferID", func(t *testing.T) { obj := &TransferOutRecord{} - var fernTestValueTransferId *int - obj.SetTransferId(fernTestValueTransferId) - assert.Equal(t, fernTestValueTransferId, obj.TransferId) + var fernTestValueTransferID *int + obj.SetTransferID(fernTestValueTransferID) + assert.Equal(t, fernTestValueTransferID, obj.TransferID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransferOutRecord{} - var fernTestValuePaypointId *int - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -28258,11 +28258,11 @@ func TestSettersTransferOutRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBatchId", func(t *testing.T) { + t.Run("SetBatchID", func(t *testing.T) { obj := &TransferOutRecord{} - var fernTestValueBatchId *int - obj.SetBatchId(fernTestValueBatchId) - assert.Equal(t, fernTestValueBatchId, obj.BatchId) + var fernTestValueBatchID *int + obj.SetBatchID(fernTestValueBatchID) + assert.Equal(t, fernTestValueBatchID, obj.BatchID) assert.NotNil(t, obj.explicitFields) }) @@ -28322,11 +28322,11 @@ func TestSettersTransferOutRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &TransferOutRecord{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -28346,11 +28346,11 @@ func TestSettersTransferOutRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &TransferOutRecord{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -28485,28 +28485,28 @@ func TestSettersTransferOutRecord(t *testing.T) { } func TestGettersTransferOutRecord(t *testing.T) { - t.Run("GetTransferId", func(t *testing.T) { + t.Run("GetTransferID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} var expected *int - obj.TransferId = expected + obj.TransferID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransferId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransferID(), "getter should return the property value") }) - t.Run("GetTransferId_NilValue", func(t *testing.T) { + t.Run("GetTransferID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - obj.TransferId = nil + obj.TransferID = nil // Act & Assert - assert.Nil(t, obj.GetTransferId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransferID(), "getter should return nil when property is nil") }) - t.Run("GetTransferId_NilReceiver", func(t *testing.T) { + t.Run("GetTransferID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutRecord // Should not panic - getters should handle nil receiver gracefully @@ -28515,31 +28515,31 @@ func TestGettersTransferOutRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransferId() // Should return zero value + _ = obj.GetTransferID() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} var expected *int - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutRecord // Should not panic - getters should handle nil receiver gracefully @@ -28548,7 +28548,7 @@ func TestGettersTransferOutRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetBatchNumber", func(t *testing.T) { @@ -28683,28 +28683,28 @@ func TestGettersTransferOutRecord(t *testing.T) { _ = obj.GetTransferIdentifier() // Should return zero value }) - t.Run("GetBatchId", func(t *testing.T) { + t.Run("GetBatchID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} var expected *int - obj.BatchId = expected + obj.BatchID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBatchId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBatchID(), "getter should return the property value") }) - t.Run("GetBatchId_NilValue", func(t *testing.T) { + t.Run("GetBatchID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - obj.BatchId = nil + obj.BatchID = nil // Act & Assert - assert.Nil(t, obj.GetBatchId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBatchID(), "getter should return nil when property is nil") }) - t.Run("GetBatchId_NilReceiver", func(t *testing.T) { + t.Run("GetBatchID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutRecord // Should not panic - getters should handle nil receiver gracefully @@ -28713,7 +28713,7 @@ func TestGettersTransferOutRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBatchId() // Should return zero value + _ = obj.GetBatchID() // Should return zero value }) t.Run("GetBatchNetAmount", func(t *testing.T) { @@ -28947,28 +28947,28 @@ func TestGettersTransferOutRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutRecord // Should not panic - getters should handle nil receiver gracefully @@ -28977,7 +28977,7 @@ func TestGettersTransferOutRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgLogo", func(t *testing.T) { @@ -29046,28 +29046,28 @@ func TestGettersTransferOutRecord(t *testing.T) { _ = obj.GetParentOrgEntryName() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransferOutRecord // Should not panic - getters should handle nil receiver gracefully @@ -29076,7 +29076,7 @@ func TestGettersTransferOutRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetBankAccount", func(t *testing.T) { @@ -29610,14 +29610,14 @@ func TestGettersTransferOutRecord(t *testing.T) { } func TestSettersMarkExplicitTransferOutRecord(t *testing.T) { - t.Run("SetTransferId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransferID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - var fernTestValueTransferId *int + var fernTestValueTransferID *int // Act - obj.SetTransferId(fernTestValueTransferId) + obj.SetTransferID(fernTestValueTransferID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -29641,14 +29641,14 @@ func TestSettersMarkExplicitTransferOutRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - var fernTestValuePaypointId *int + var fernTestValuePaypointID *int // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -29796,14 +29796,14 @@ func TestSettersMarkExplicitTransferOutRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBatchId_MarksExplicit", func(t *testing.T) { + t.Run("SetBatchID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - var fernTestValueBatchId *int + var fernTestValueBatchID *int // Act - obj.SetBatchId(fernTestValueBatchId) + obj.SetBatchID(fernTestValueBatchID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30044,14 +30044,14 @@ func TestSettersMarkExplicitTransferOutRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -30137,14 +30137,14 @@ func TestSettersMarkExplicitTransferOutRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransferOutRecord{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/reference.md b/reference.md index 5a04236..99d2ae8 100644 --- a/reference.md +++ b/reference.md @@ -172,7 +172,7 @@ client.Bill.AddBill( -
client.Bill.DeleteAttachedFromBill(IdBill, Filename) -> *payabli.BillResponse +
client.Bill.DeleteAttachedFromBill(IDBill, Filename) -> *payabli.BillResponse
@@ -266,7 +266,7 @@ request to `/api/Invoice/{idInvoice}`. Here, the filename is
-
client.Bill.DeleteBill(IdBill) -> *payabli.BillResponse +
client.Bill.DeleteBill(IDBill) -> *payabli.BillResponse
@@ -324,7 +324,7 @@ client.Bill.DeleteBill(
-
client.Bill.EditBill(IdBill, request) -> *payabli.EditBillResponse +
client.Bill.EditBill(IDBill, request) -> *payabli.EditBillResponse
@@ -401,7 +401,7 @@ client.Bill.EditBill(
-
client.Bill.GetAttachedFromBill(IdBill, Filename) -> *payabli.FileContent +
client.Bill.GetAttachedFromBill(IDBill, Filename) -> *payabli.FileContent
@@ -494,7 +494,7 @@ The filename in Payabli. Filename is `zipName` in response to a request to `/api
-
client.Bill.GetBill(IdBill) -> *payabli.GetBillResponse +
client.Bill.GetBill(IDBill) -> *payabli.GetBillResponse
@@ -706,7 +706,7 @@ Example: `totalAmount(gt)=20` returns all records with a `totalAmount` that's gr
-
client.Bill.ListBillsOrg(OrgId) -> *payabli.BillQueryResponse +
client.Bill.ListBillsOrg(OrgID) -> *payabli.BillQueryResponse
@@ -764,7 +764,7 @@ client.Bill.ListBillsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -860,7 +860,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
-
client.Bill.ModifyApprovalBill(IdBill, request) -> *payabli.ModifyApprovalBillResponse +
client.Bill.ModifyApprovalBill(IDBill, request) -> *payabli.ModifyApprovalBillResponse
@@ -930,7 +930,7 @@ client.Bill.ModifyApprovalBill(
-
client.Bill.SendToApprovalBill(IdBill, request) -> *payabli.BillResponse +
client.Bill.SendToApprovalBill(IDBill, request) -> *payabli.BillResponse
@@ -1021,7 +1021,7 @@ client.Bill.SendToApprovalBill(
-
client.Bill.SetApprovedBill(IdBill, Approved) -> *payabli.SetApprovedBillResponse +
client.Bill.SetApprovedBill(IDBill, Approved) -> *payabli.SetApprovedBillResponse
@@ -1099,7 +1099,7 @@ client.Bill.SetApprovedBill(
## Boarding -
client.Boarding.AddApplication(request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Boarding.AddApplication(request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -1185,7 +1185,7 @@ request := &payabli.AddApplicationRequest{ "123123123", ), TypeAccount: payabli.TypeAccountChecking.Ptr(), - AccountId: payabli.String( + AccountID: payabli.String( "123-456", ), }, @@ -1210,7 +1210,7 @@ request := &payabli.AddApplicationRequest{ "123123123", ), TypeAccount: payabli.TypeAccountChecking.Ptr(), - AccountId: payabli.String( + AccountID: payabli.String( "123-456", ), }, @@ -1301,7 +1301,7 @@ request := &payabli.AddApplicationRequest{ Mzip: payabli.String( "37615", ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(123), ), Ownership: []*payabli.ApplicationDataPayInOwnershipItem{ @@ -1422,7 +1422,7 @@ request := &payabli.AddApplicationRequest{ TaxFillName: payabli.String( "Sunshine LLC", ), - TemplateId: payabli.Int64( + TemplateID: payabli.Int64( int64(22), ), Ticketamt: payabli.Float64( @@ -1468,7 +1468,7 @@ client.Boarding.AddApplication(
-
client.Boarding.DeleteApplication(AppId) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Boarding.DeleteApplication(AppID) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -1514,7 +1514,7 @@ client.Boarding.DeleteApplication(
-**appId:** `int` — Boarding application ID. +**appID:** `int` — Boarding application ID.
@@ -1526,7 +1526,7 @@ client.Boarding.DeleteApplication(
-
client.Boarding.GetApplication(AppId) -> *payabli.ApplicationDetailsRecord +
client.Boarding.GetApplication(AppID) -> *payabli.ApplicationDetailsRecord
@@ -1572,7 +1572,7 @@ client.Boarding.GetApplication(
-**appId:** `int` — Boarding application ID. +**appID:** `int` — Boarding application ID.
@@ -1584,7 +1584,7 @@ client.Boarding.GetApplication(
-
client.Boarding.GetApplicationByAuth(XId, request) -> *payabli.ApplicationQueryRecord +
client.Boarding.GetApplicationByAuth(XID, request) -> *payabli.ApplicationQueryRecord
@@ -1615,7 +1615,7 @@ request := &payabli.RequestAppByAuth{ Email: payabli.String( "admin@email.com", ), - ReferenceId: payabli.String( + ReferenceID: payabli.String( "n6UCd1f1ygG7", ), } @@ -1639,7 +1639,7 @@ client.Boarding.GetApplicationByAuth(
-**xId:** `string` — The application ID in Hex format. Find this at the end of the boarding link URL returned in a call to api/Boarding/applink/{appId}/{mail2}. For example in: `https://boarding-sandbox.payabli.com/boarding/externalapp/load/17E`, the xId is `17E`. +**xID:** `string` — The application ID in Hex format. Find this at the end of the boarding link URL returned in a call to api/Boarding/applink/{appId}/{mail2}. For example in: `https://boarding-sandbox.payabli.com/boarding/externalapp/load/17E`, the xId is `17E`.
@@ -1655,7 +1655,7 @@ client.Boarding.GetApplicationByAuth(
-**referenceId:** `*string` — The referenceId is sent to the applicant via email when they save the application. +**referenceID:** `*string` — The referenceId is sent to the applicant via email when they save the application.
@@ -1667,7 +1667,7 @@ client.Boarding.GetApplicationByAuth(
-
client.Boarding.GetByIdLinkApplication(BoardingLinkId) -> *payabli.BoardingLinkQueryRecord +
client.Boarding.GetByIDLinkApplication(BoardingLinkID) -> *payabli.BoardingLinkQueryRecord
@@ -1694,7 +1694,7 @@ Retrieves details for a boarding link, by ID.
```go -client.Boarding.GetByIdLinkApplication( +client.Boarding.GetByIDLinkApplication( context.TODO(), 91, ) @@ -1713,7 +1713,7 @@ client.Boarding.GetByIdLinkApplication(
-**boardingLinkId:** `int` — The boarding link ID. You can find this at the end of the boarding link reference name. For example `https://boarding.payabli.com/boarding/app/myorgaccountname-00091`. The ID is `91`. +**boardingLinkID:** `int` — The boarding link ID. You can find this at the end of the boarding link reference name. For example `https://boarding.payabli.com/boarding/app/myorgaccountname-00091`. The ID is `91`.
@@ -1725,7 +1725,7 @@ client.Boarding.GetByIdLinkApplication(
-
client.Boarding.GetByTemplateIdLinkApplication(TemplateId) -> *payabli.BoardingLinkQueryRecord +
client.Boarding.GetByTemplateIDLinkApplication(TemplateID) -> *payabli.BoardingLinkQueryRecord
@@ -1752,7 +1752,7 @@ Get details for a boarding link using the boarding template ID. This endpoint re
```go -client.Boarding.GetByTemplateIdLinkApplication( +client.Boarding.GetByTemplateIDLinkApplication( context.TODO(), 80, ) @@ -1771,7 +1771,7 @@ client.Boarding.GetByTemplateIdLinkApplication(
-**templateId:** `float64` — The boarding template ID. You can find this at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. +**templateID:** `float64` — The boarding template ID. You can find this at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
@@ -1783,7 +1783,7 @@ client.Boarding.GetByTemplateIdLinkApplication(
-
client.Boarding.GetExternalApplication(AppId, Mail2) -> *payabli.PayabliApiResponse00 +
client.Boarding.GetExternalApplication(AppID, Mail2) -> *payabli.PayabliAPIResponse00
@@ -1832,7 +1832,7 @@ client.Boarding.GetExternalApplication(
-**appId:** `int` — Boarding application ID. +**appID:** `int` — Boarding application ID.
@@ -1918,7 +1918,7 @@ client.Boarding.GetLinkApplication(
-
client.Boarding.ListApplications(OrgId) -> *payabli.QueryBoardingAppsListResponse +
client.Boarding.ListApplications(OrgID) -> *payabli.QueryBoardingAppsListResponse
@@ -1976,7 +1976,7 @@ client.Boarding.ListApplications(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -2064,7 +2064,7 @@ List of comparison accepted - enclosed between parentheses:
-
client.Boarding.ListBoardingLinks(OrgId) -> *payabli.QueryBoardingLinksResponse +
client.Boarding.ListBoardingLinks(OrgID) -> *payabli.QueryBoardingLinksResponse
@@ -2122,7 +2122,7 @@ client.Boarding.ListBoardingLinks(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -2198,7 +2198,7 @@ Example: templateName(ct)=hoa return all records with template title containing
-
client.Boarding.UpdateApplication(AppId, request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Boarding.UpdateApplication(AppID, request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -2246,7 +2246,7 @@ client.Boarding.UpdateApplication(
-**appId:** `int` — Boarding application ID. +**appID:** `int` — Boarding application ID.
@@ -2267,7 +2267,7 @@ client.Boarding.UpdateApplication(
## ChargeBacks -
client.ChargeBacks.AddResponse(Id, request) -> *payabli.AddResponseResponse +
client.ChargeBacks.AddResponse(ID, request) -> *payabli.AddResponseResponse
@@ -2371,7 +2371,7 @@ client.ChargeBacks.AddResponse(
-
client.ChargeBacks.GetChargeback(Id) -> *payabli.ChargebackQueryRecords +
client.ChargeBacks.GetChargeback(ID) -> *payabli.ChargebackQueryRecords
@@ -2429,7 +2429,7 @@ client.ChargeBacks.GetChargeback(
-
client.ChargeBacks.GetChargebackAttachment(Id, FileName) -> string +
client.ChargeBacks.GetChargebackAttachment(ID, FileName) -> string
@@ -2683,7 +2683,7 @@ The device registration code or serial number, depending on the model.
-
client.Cloud.HistoryDevice(Entry, DeviceId) -> *payabli.CloudQueryApiResponse +
client.Cloud.HistoryDevice(Entry, DeviceID) -> *payabli.CloudQueryAPIResponse
@@ -2738,7 +2738,7 @@ client.Cloud.HistoryDevice(
-**deviceId:** `string` — ID of the cloud device. +**deviceID:** `string` — ID of the cloud device.
@@ -2750,7 +2750,7 @@ client.Cloud.HistoryDevice(
-
client.Cloud.ListDevice(Entry) -> *payabli.CloudQueryApiResponse +
client.Cloud.ListDevice(Entry) -> *payabli.CloudQueryAPIResponse
@@ -2818,7 +2818,7 @@ client.Cloud.ListDevice(
-
client.Cloud.RemoveDevice(Entry, DeviceId) -> *payabli.RemoveDeviceResponse +
client.Cloud.RemoveDevice(Entry, DeviceID) -> *payabli.RemoveDeviceResponse
@@ -2873,7 +2873,7 @@ client.Cloud.RemoveDevice(
-**deviceId:** `string` — ID of the cloud device. +**deviceID:** `string` — ID of the cloud device.
@@ -2886,7 +2886,7 @@ client.Cloud.RemoveDevice(
## Customer -
client.Customer.AddCustomer(Entry, request) -> *payabli.PayabliApiResponseCustomerQuery +
client.Customer.AddCustomer(Entry, request) -> *payabli.PayabliAPIResponseCustomerQuery
@@ -3017,7 +3017,7 @@ client.Customer.AddCustomer(
-
client.Customer.DeleteCustomer(CustomerId) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Customer.DeleteCustomer(CustomerID) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -3063,7 +3063,7 @@ client.Customer.DeleteCustomer(
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -3075,7 +3075,7 @@ client.Customer.DeleteCustomer(
-
client.Customer.GetCustomer(CustomerId) -> *payabli.CustomerQueryRecords +
client.Customer.GetCustomer(CustomerID) -> *payabli.CustomerQueryRecords
@@ -3121,7 +3121,7 @@ client.Customer.GetCustomer(
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -3133,7 +3133,7 @@ client.Customer.GetCustomer(
-
client.Customer.LinkCustomerTransaction(CustomerId, TransId) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Customer.LinkCustomerTransaction(CustomerID, TransID) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -3180,7 +3180,7 @@ client.Customer.LinkCustomerTransaction(
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -3188,7 +3188,7 @@ client.Customer.LinkCustomerTransaction(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -3200,7 +3200,7 @@ client.Customer.LinkCustomerTransaction(
-
client.Customer.RequestConsent(CustomerId) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Customer.RequestConsent(CustomerID) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -3246,7 +3246,7 @@ client.Customer.RequestConsent(
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -3258,7 +3258,7 @@ client.Customer.RequestConsent(
-
client.Customer.UpdateCustomer(CustomerId, request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Customer.UpdateCustomer(CustomerID, request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -3328,7 +3328,7 @@ client.Customer.UpdateCustomer(
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -3349,7 +3349,7 @@ client.Customer.UpdateCustomer(
## Export -
client.Export.ExportApplications(Format, OrgId) -> payabli.File +
client.Export.ExportApplications(Format, OrgID) -> payabli.File
@@ -3416,7 +3416,7 @@ client.Export.ExportApplications(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -3688,7 +3688,7 @@ Example: `amount(gt)=20` return all records with amount greater than 20.00
-
client.Export.ExportBatchDetailsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportBatchDetailsOrg(Format, OrgID) -> payabli.File
@@ -3755,7 +3755,7 @@ client.Export.ExportBatchDetailsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -4028,7 +4028,7 @@ Example: `batchAmount(gt)=20` returns all records with a `batchAmount` greater t
-
client.Export.ExportBatchesOrg(Format, OrgId) -> payabli.File +
client.Export.ExportBatchesOrg(Format, OrgID) -> payabli.File
@@ -4095,7 +4095,7 @@ client.Export.ExportBatchesOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -4336,7 +4336,7 @@ Example: `batchAmount(gt)=20` returns all records with a `batchAmount` greater t
-
client.Export.ExportBatchesOutOrg(Format, OrgId) -> payabli.File +
client.Export.ExportBatchesOutOrg(Format, OrgID) -> payabli.File
@@ -4403,7 +4403,7 @@ client.Export.ExportBatchesOutOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -4644,7 +4644,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20
-
client.Export.ExportBillsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportBillsOrg(Format, OrgID) -> payabli.File
@@ -4711,7 +4711,7 @@ client.Export.ExportBillsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -4991,7 +4991,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Export.ExportChargebacksOrg(Format, OrgId) -> payabli.File +
client.Export.ExportChargebacksOrg(Format, OrgID) -> payabli.File
@@ -5058,7 +5058,7 @@ client.Export.ExportChargebacksOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -5352,7 +5352,7 @@ balance(gt)=20 return all records with balance greater than 20.00
-
client.Export.ExportCustomersOrg(Format, OrgId) -> payabli.File +
client.Export.ExportCustomersOrg(Format, OrgID) -> payabli.File
@@ -5419,7 +5419,7 @@ client.Export.ExportCustomersOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -5716,7 +5716,7 @@ Example: `totalAmount(gt)=20` returns all records with `totalAmount` greater tha
-
client.Export.ExportInvoicesOrg(Format, OrgId) -> payabli.File +
client.Export.ExportInvoicesOrg(Format, OrgID) -> payabli.File
@@ -5783,7 +5783,7 @@ client.Export.ExportInvoicesOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -5903,7 +5903,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20
-
client.Export.ExportOrganizations(Format, OrgId) -> payabli.File +
client.Export.ExportOrganizations(Format, OrgID) -> payabli.File
@@ -5970,7 +5970,7 @@ client.Export.ExportOrganizations(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -6226,7 +6226,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
-
client.Export.ExportPayoutOrg(Format, OrgId) -> payabli.File +
client.Export.ExportPayoutOrg(Format, OrgID) -> payabli.File
@@ -6293,7 +6293,7 @@ client.Export.ExportPayoutOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -6387,7 +6387,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
-
client.Export.ExportPaypoints(Format, OrgId) -> payabli.File +
client.Export.ExportPaypoints(Format, OrgID) -> payabli.File
@@ -6454,7 +6454,7 @@ client.Export.ExportPaypoints(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -6733,7 +6733,7 @@ Example: `settledAmount(gt)=20` returns all records with a `settledAmount` great
-
client.Export.ExportSettlementsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportSettlementsOrg(Format, OrgID) -> payabli.File
@@ -6800,7 +6800,7 @@ client.Export.ExportSettlementsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -7101,7 +7101,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Export.ExportSubscriptionsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportSubscriptionsOrg(Format, OrgID) -> payabli.File
@@ -7168,7 +7168,7 @@ client.Export.ExportSubscriptionsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -7475,7 +7475,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Export.ExportTransactionsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportTransactionsOrg(Format, OrgID) -> payabli.File
@@ -7542,7 +7542,7 @@ client.Export.ExportTransactionsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -7664,7 +7664,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Export.ExportTransferDetails(Format, Entry, TransferId) -> payabli.File +
client.Export.ExportTransferDetails(Format, Entry, TransferID) -> payabli.File
@@ -7743,7 +7743,7 @@ client.Export.ExportTransferDetails(
-**transferId:** `int64` — Transfer identifier. +**transferID:** `int64` — Transfer identifier.
@@ -8160,7 +8160,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Export.ExportVendorsOrg(Format, OrgId) -> payabli.File +
client.Export.ExportVendorsOrg(Format, OrgID) -> payabli.File
@@ -8227,7 +8227,7 @@ client.Export.ExportVendorsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -8360,7 +8360,7 @@ Only one ghost card can exist per vendor per paypoint. To issue a new card to th ```go request := &payabli.CreateGhostCardRequestBody{ - VendorId: int64(42), + VendorID: int64(42), ExpenseLimit: 500, Amount: 500, MaxNumberOfUses: 3, @@ -8412,7 +8412,7 @@ client.GhostCard.CreateGhostCard(
-**vendorId:** `int64` — ID of the vendor who receives the card. The vendor must belong to the paypoint and have an active status. +**vendorID:** `int64` — ID of the vendor who receives the card. The vendor must belong to the paypoint and have an active status.
@@ -8544,7 +8544,7 @@ client.GhostCard.CreateGhostCard(
-
client.GhostCard.UpdateCard(Entry, request) -> *payabli.PayabliApiResponse +
client.GhostCard.UpdateCard(Entry, request) -> *payabli.PayabliAPIResponse
@@ -8691,7 +8691,7 @@ client.HostedPaymentPages.LoadPage(
-
client.HostedPaymentPages.NewPage(Entry, request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.HostedPaymentPages.NewPage(Entry, request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -8774,7 +8774,7 @@ client.HostedPaymentPages.NewPage(
-
client.HostedPaymentPages.SavePage(Entry, Subdomain, request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.HostedPaymentPages.SavePage(Entry, Subdomain, request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -8852,7 +8852,7 @@ client.HostedPaymentPages.SavePage(
## Import -
client.Import.ImportBills(Entry, request) -> *payabli.PayabliApiResponseImport +
client.Import.ImportBills(Entry, request) -> *payabli.PayabliAPIResponseImport
@@ -8916,7 +8916,7 @@ client.Import.ImportBills(
-
client.Import.ImportCustomer(Entry, request) -> *payabli.PayabliApiResponseImport +
client.Import.ImportCustomer(Entry, request) -> *payabli.PayabliAPIResponseImport
@@ -8988,7 +8988,7 @@ client.Import.ImportCustomer(
-
client.Import.ImportVendor(Entry, request) -> *payabli.PayabliApiResponseImport +
client.Import.ImportVendor(Entry, request) -> *payabli.PayabliAPIResponseImport
@@ -9209,7 +9209,7 @@ client.Invoice.AddInvoice(
-
client.Invoice.DeleteAttachedFromInvoice(IdInvoice, Filename) -> *payabli.InvoiceResponseWithoutData +
client.Invoice.DeleteAttachedFromInvoice(IDInvoice, Filename) -> *payabli.InvoiceResponseWithoutData
@@ -9288,7 +9288,7 @@ The filename in Payabli. Filename is `zipName` in response to a request to `/api
-
client.Invoice.DeleteInvoice(IdInvoice) -> *payabli.InvoiceResponseWithoutData +
client.Invoice.DeleteInvoice(IDInvoice) -> *payabli.InvoiceResponseWithoutData
@@ -9346,7 +9346,7 @@ client.Invoice.DeleteInvoice(
-
client.Invoice.EditInvoice(IdInvoice, request) -> *payabli.InvoiceResponseWithoutData +
client.Invoice.EditInvoice(IDInvoice, request) -> *payabli.InvoiceResponseWithoutData
@@ -9452,7 +9452,7 @@ client.Invoice.EditInvoice(
-
client.Invoice.GetAttachedFileFromInvoice(IdInvoice, Filename) -> *payabli.FileContent +
client.Invoice.GetAttachedFileFromInvoice(IDInvoice, Filename) -> *payabli.FileContent
@@ -9543,7 +9543,7 @@ The filename in Payabli. Filename is `zipName` in the response to a request to `
-
client.Invoice.GetInvoice(IdInvoice) -> *payabli.GetInvoiceRecord +
client.Invoice.GetInvoice(IDInvoice) -> *payabli.GetInvoiceRecord
@@ -9833,7 +9833,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
-
client.Invoice.ListInvoicesOrg(OrgId) -> *payabli.QueryInvoiceResponse +
client.Invoice.ListInvoicesOrg(OrgID) -> *payabli.QueryInvoiceResponse
@@ -9891,7 +9891,7 @@ client.Invoice.ListInvoicesOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -10007,7 +10007,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20.
-
client.Invoice.SendInvoice(IdInvoice) -> *payabli.SendInvoiceResponse +
client.Invoice.SendInvoice(IDInvoice) -> *payabli.SendInvoiceResponse
@@ -10090,7 +10090,7 @@ client.Invoice.SendInvoice(
-
client.Invoice.GetInvoicePdf(IdInvoice) -> payabli.File +
client.Invoice.GetInvoicePdf(IDInvoice) -> payabli.File
@@ -10149,7 +10149,7 @@ client.Invoice.GetInvoicePdf(
## LineItem -
client.LineItem.AddItem(Entry, request) -> *payabli.PayabliApiResponse6 +
client.LineItem.AddItem(Entry, request) -> *payabli.PayabliAPIResponse6
@@ -10248,7 +10248,7 @@ client.LineItem.AddItem(
-
client.LineItem.DeleteItem(LineItemId) -> *payabli.DeleteItemResponse +
client.LineItem.DeleteItem(LineItemID) -> *payabli.DeleteItemResponse
@@ -10294,7 +10294,7 @@ client.LineItem.DeleteItem(
-**lineItemId:** `int` — ID for the line item (also known as a product, service, or item). +**lineItemID:** `int` — ID for the line item (also known as a product, service, or item).
@@ -10306,7 +10306,7 @@ client.LineItem.DeleteItem(
-
client.LineItem.GetItem(LineItemId) -> *payabli.LineItemQueryRecord +
client.LineItem.GetItem(LineItemID) -> *payabli.LineItemQueryRecord
@@ -10352,7 +10352,7 @@ client.LineItem.GetItem(
-**lineItemId:** `int` — ID for the line item (also known as a product, service, or item). +**lineItemID:** `int` — ID for the line item (also known as a product, service, or item).
@@ -10522,7 +10522,7 @@ Example: name(ct)=john return all records with name containing john
-
client.LineItem.UpdateItem(LineItemId, request) -> *payabli.PayabliApiResponse6 +
client.LineItem.UpdateItem(LineItemID, request) -> *payabli.PayabliAPIResponse6
@@ -10573,7 +10573,7 @@ client.LineItem.UpdateItem(
-**lineItemId:** `int` — ID for the line item (also known as a product, service, or item). +**lineItemID:** `int` — ID for the line item (also known as a product, service, or item).
@@ -10628,7 +10628,7 @@ Only card transactions can be authorized. This endpoint can't be used for ACH tr request := &payabli.RequestPaymentAuthorize{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -10711,7 +10711,7 @@ client.MoneyIn.Authorize(
-
client.MoneyIn.Capture(TransId, Amount) -> *payabli.CaptureResponse +
client.MoneyIn.Capture(TransID, Amount) -> *payabli.CaptureResponse
@@ -10763,7 +10763,7 @@ client.MoneyIn.Capture(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -10783,7 +10783,7 @@ client.MoneyIn.Capture(
-
client.MoneyIn.CaptureAuth(TransId, request) -> *payabli.CaptureResponse +
client.MoneyIn.CaptureAuth(TransID, request) -> *payabli.CaptureResponse
@@ -10844,7 +10844,7 @@ client.MoneyIn.CaptureAuth(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -10864,7 +10864,7 @@ client.MoneyIn.CaptureAuth(
-
client.MoneyIn.Credit(request) -> *payabli.PayabliApiResponse0 +
client.MoneyIn.Credit(request) -> *payabli.PayabliAPIResponse0
@@ -10962,7 +10962,7 @@ client.MoneyIn.Credit(
-**accountId:** `*payabli.AccountId` +**accountID:** `*payabli.AccountID`
@@ -10994,7 +10994,7 @@ client.MoneyIn.Credit(
-**orderId:** `*payabli.OrderId` +**orderID:** `*payabli.OrderID`
@@ -11038,7 +11038,7 @@ client.MoneyIn.Credit(
-
client.MoneyIn.Details(TransId) -> *payabli.TransactionQueryRecordsCustomer +
client.MoneyIn.Details(TransID) -> *payabli.TransactionQueryRecordsCustomer
@@ -11084,7 +11084,7 @@ client.MoneyIn.Details(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11096,7 +11096,7 @@ client.MoneyIn.Details(
-
client.MoneyIn.Getpaid(request) -> *payabli.PayabliApiResponseGetPaid +
client.MoneyIn.Getpaid(request) -> *payabli.PayabliAPIResponseGetPaid
@@ -11130,7 +11130,7 @@ Make a single transaction. This method authorizes and captures a payment in one request := &payabli.RequestPayment{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -11237,7 +11237,7 @@ client.MoneyIn.Getpaid(
-
client.MoneyIn.Reverse(TransId, Amount) -> *payabli.ReverseResponse +
client.MoneyIn.Reverse(TransID, Amount) -> *payabli.ReverseResponse
@@ -11284,7 +11284,7 @@ client.MoneyIn.Reverse(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11311,7 +11311,7 @@ An amount equal to zero will refunds the total amount authorized minus any servi
-
client.MoneyIn.Refund(TransId, Amount) -> *payabli.RefundResponse +
client.MoneyIn.Refund(TransID, Amount) -> *payabli.RefundResponse
@@ -11362,7 +11362,7 @@ client.MoneyIn.Refund(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11389,7 +11389,7 @@ An amount equal to zero will refund the total amount authorized minus any servic
-
client.MoneyIn.RefundWithInstructions(TransId, request) -> *payabli.RefundWithInstructionsResponse +
client.MoneyIn.RefundWithInstructions(TransID, request) -> *payabli.RefundWithInstructionsResponse
@@ -11435,7 +11435,7 @@ request := &payabli.RequestRefund{ OriginationEntryPoint: payabli.String( "7f1a381696", ), - AccountId: payabli.String( + AccountID: payabli.String( "187-342", ), Description: payabli.String( @@ -11449,7 +11449,7 @@ request := &payabli.RequestRefund{ OriginationEntryPoint: payabli.String( "7f1a381696", ), - AccountId: payabli.String( + AccountID: payabli.String( "187-343", ), Description: payabli.String( @@ -11482,7 +11482,7 @@ client.MoneyIn.RefundWithInstructions(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11513,7 +11513,7 @@ An amount equal to zero will refund the total amount authorized minus any servic
-**ipaddress:** `*payabli.IpAddress` +**ipaddress:** `*payabli.IPAddress`
@@ -11529,7 +11529,7 @@ An amount equal to zero will refund the total amount authorized minus any servic
-**orderId:** `*payabli.OrderId` +**orderID:** `*payabli.OrderID`
@@ -11557,7 +11557,7 @@ An amount equal to zero will refund the total amount authorized minus any servic
-
client.MoneyIn.ReverseCredit(TransId) -> *payabli.PayabliApiResponse +
client.MoneyIn.ReverseCredit(TransID) -> *payabli.PayabliAPIResponse
@@ -11603,7 +11603,7 @@ client.MoneyIn.ReverseCredit(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11615,7 +11615,7 @@ client.MoneyIn.ReverseCredit(
-
client.MoneyIn.SendReceipt2Trans(TransId) -> *payabli.ReceiptResponse +
client.MoneyIn.SendReceipt2Trans(TransID) -> *payabli.ReceiptResponse
@@ -11667,7 +11667,7 @@ client.MoneyIn.SendReceipt2Trans(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11758,7 +11758,7 @@ client.MoneyIn.Validate(
-**accountId:** `*payabli.AccountId` +**accountID:** `*payabli.AccountID`
@@ -11782,7 +11782,7 @@ client.MoneyIn.Validate(
-**orderId:** `*payabli.OrderId` +**orderID:** `*payabli.OrderID`
@@ -11802,7 +11802,7 @@ client.MoneyIn.Validate(
-
client.MoneyIn.Void(TransId) -> *payabli.VoidResponse +
client.MoneyIn.Void(TransID) -> *payabli.VoidResponse
@@ -11852,7 +11852,7 @@ client.MoneyIn.Void(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -11894,7 +11894,7 @@ Make a single transaction. This method authorizes and captures a payment in one request := &payabli.RequestPaymentV2{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -12025,7 +12025,7 @@ Authorize a card transaction. This returns an authorization code and reserves fu request := &payabli.RequestPaymentAuthorizeV2{ Body: &payabli.TransRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -12108,7 +12108,7 @@ client.MoneyIn.Authorizev2(
-
client.MoneyIn.Capturev2(TransId, request) -> *payabli.V2TransactionResponseWrapper +
client.MoneyIn.Capturev2(TransID, request) -> *payabli.V2TransactionResponseWrapper
@@ -12163,7 +12163,7 @@ client.MoneyIn.Capturev2(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -12183,7 +12183,7 @@ client.MoneyIn.Capturev2(
-
client.MoneyIn.Refundv2(TransId) -> *payabli.V2TransactionResponseWrapper +
client.MoneyIn.Refundv2(TransID) -> *payabli.V2TransactionResponseWrapper
@@ -12231,7 +12231,7 @@ client.MoneyIn.Refundv2(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -12243,7 +12243,7 @@ client.MoneyIn.Refundv2(
-
client.MoneyIn.Refundv2Amount(TransId, Amount) -> *payabli.V2TransactionResponseWrapper +
client.MoneyIn.Refundv2Amount(TransID, Amount) -> *payabli.V2TransactionResponseWrapper
@@ -12292,7 +12292,7 @@ client.MoneyIn.Refundv2Amount(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -12312,7 +12312,7 @@ client.MoneyIn.Refundv2Amount(
-
client.MoneyIn.Voidv2(TransId) -> *payabli.V2TransactionResponseWrapper +
client.MoneyIn.Voidv2(TransID) -> *payabli.V2TransactionResponseWrapper
@@ -12358,7 +12358,7 @@ client.MoneyIn.Voidv2(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -12406,7 +12406,7 @@ request := &payabli.MoneyOutTypesRequestOutAuthorize{ ), InvoiceData: []*payabli.RequestOutAuthorizeInvoiceData{ &payabli.RequestOutAuthorizeInvoiceData{ - BillId: payabli.Int64( + BillID: payabli.Int64( int64(54323), ), }, @@ -12558,7 +12558,7 @@ client.MoneyOut.CancelAllOut(
-
client.MoneyOut.CancelOutGet(ReferenceId) -> *payabli.PayabliApiResponse0000 +
client.MoneyOut.CancelOutGet(ReferenceID) -> *payabli.PayabliAPIResponse0000
@@ -12604,7 +12604,7 @@ client.MoneyOut.CancelOutGet(
-**referenceId:** `string` — The ID for the payout transaction. +**referenceID:** `string` — The ID for the payout transaction.
@@ -12616,7 +12616,7 @@ client.MoneyOut.CancelOutGet(
-
client.MoneyOut.CancelOutDelete(ReferenceId) -> *payabli.PayabliApiResponse0000 +
client.MoneyOut.CancelOutDelete(ReferenceID) -> *payabli.PayabliAPIResponse0000
@@ -12662,7 +12662,7 @@ client.MoneyOut.CancelOutDelete(
-**referenceId:** `string` — The ID for the payout transaction. +**referenceID:** `string` — The ID for the payout transaction.
@@ -12747,7 +12747,7 @@ client.MoneyOut.CaptureAllOut(
-
client.MoneyOut.CaptureOut(ReferenceId) -> *payabli.AuthCapturePayoutResponse +
client.MoneyOut.CaptureOut(ReferenceID) -> *payabli.AuthCapturePayoutResponse
@@ -12795,7 +12795,7 @@ client.MoneyOut.CaptureOut(
-**referenceId:** `string` — The ID for the payout transaction. +**referenceID:** `string` — The ID for the payout transaction.
@@ -12815,7 +12815,7 @@ client.MoneyOut.CaptureOut(
-
client.MoneyOut.PayoutDetails(TransId) -> *payabli.BillDetailResponse +
client.MoneyOut.PayoutDetails(TransID) -> *payabli.BillDetailResponse
@@ -12861,7 +12861,7 @@ client.MoneyOut.PayoutDetails(
-**transId:** `string` — ReferenceId for the transaction (PaymentId). +**transID:** `string` — ReferenceId for the transaction (PaymentId).
@@ -12959,7 +12959,7 @@ Sends a virtual card link via email to the vendor associated with the `transId`. ```go request := &payabli.SendVCardLinkRequest{ - TransId: "01K33Z6YQZ6GD5QVKZ856MJBSC", + TransID: "01K33Z6YQZ6GD5QVKZ856MJBSC", } client.MoneyOut.SendVCardLink( context.TODO(), @@ -12980,7 +12980,7 @@ client.MoneyOut.SendVCardLink(
-**transId:** `string` — The transaction ID of the virtual card payout. The ID is returned as `ReferenceId` in the response when you authorize a payout with POST /MoneyOut/authorize. +**transID:** `string` — The transaction ID of the virtual card payout. The ID is returned as `ReferenceId` in the response when you authorize a payout with POST /MoneyOut/authorize.
@@ -13063,7 +13063,7 @@ in the response when you make a GET request to `/MoneyOut/details/{transId}`.
-
client.MoneyOut.UpdateCheckPaymentStatus(TransId, CheckPaymentStatus) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.MoneyOut.UpdateCheckPaymentStatus(TransID, CheckPaymentStatus) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -13121,7 +13121,7 @@ client.MoneyOut.UpdateCheckPaymentStatus(
-**transId:** `string` — The Payabli transaction ID for the check payment. +**transID:** `string` — The Payabli transaction ID for the check payment.
@@ -13173,7 +13173,7 @@ The new transaction goes through the standard authorize-and-capture flow automat ```go request := &payabli.ReissueOutRequest{ - TransId: "129-219", + TransID: "129-219", Body: &payabli.ReissuePayoutBody{ PaymentMethod: &payabli.ReissuePaymentMethod{ Method: "ach", @@ -13212,7 +13212,7 @@ client.MoneyOut.ReissueOut(
-**transId:** `string` — The transaction ID of the payout to reissue. +**transID:** `string` — The transaction ID of the payout to reissue.
@@ -13241,7 +13241,7 @@ client.MoneyOut.ReissueOut(
## Notification -
client.Notification.AddNotification(request) -> *payabli.PayabliApiResponseNotifications +
client.Notification.AddNotification(request) -> *payabli.PayabliAPIResponseNotifications
@@ -13275,7 +13275,7 @@ request := &payabli.AddNotificationRequest{ }, Frequency: payabli.NotificationStandardRequestFrequencyUntilcancelled, Method: payabli.NotificationStandardRequestMethodWeb, - OwnerId: payabli.Int( + OwnerID: payabli.Int( 236, ), OwnerType: 0, @@ -13316,7 +13316,7 @@ client.Notification.AddNotification(
-
client.Notification.DeleteNotification(NId) -> *payabli.PayabliApiResponseNotifications +
client.Notification.DeleteNotification(NID) -> *payabli.PayabliAPIResponseNotifications
@@ -13362,7 +13362,7 @@ client.Notification.DeleteNotification(
-**nId:** `string` — Notification ID. +**nID:** `string` — Notification ID.
@@ -13374,7 +13374,7 @@ client.Notification.DeleteNotification(
-
client.Notification.GetNotification(NId) -> *payabli.NotificationQueryRecord +
client.Notification.GetNotification(NID) -> *payabli.NotificationQueryRecord
@@ -13420,7 +13420,7 @@ client.Notification.GetNotification(
-**nId:** `string` — Notification ID. +**nID:** `string` — Notification ID.
@@ -13432,7 +13432,7 @@ client.Notification.GetNotification(
-
client.Notification.UpdateNotification(NId, request) -> *payabli.PayabliApiResponseNotifications +
client.Notification.UpdateNotification(NID, request) -> *payabli.PayabliAPIResponseNotifications
@@ -13466,7 +13466,7 @@ request := &payabli.UpdateNotificationRequest{ }, Frequency: payabli.NotificationStandardRequestFrequencyUntilcancelled, Method: payabli.NotificationStandardRequestMethodEmail, - OwnerId: payabli.Int( + OwnerID: payabli.Int( 136, ), OwnerType: 0, @@ -13496,7 +13496,7 @@ client.Notification.UpdateNotification(
-**nId:** `string` — Notification ID. +**nID:** `string` — Notification ID.
@@ -13516,7 +13516,7 @@ client.Notification.UpdateNotification(
-
client.Notification.GetReportFile(Id) -> payabli.File +
client.Notification.GetReportFile(ID) -> payabli.File
@@ -13617,7 +13617,7 @@ request := &payabli.SearchNotificationLogsRequest{ EndDate: payabli.MustParseDateTime( "2024-01-31T23:59:59Z", ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(12345), ), NotificationEvent: payabli.String( @@ -13675,7 +13675,7 @@ client.Notificationlogs.SearchNotificationLogs(
-
client.Notificationlogs.GetNotificationLog(Uuid) -> *payabli.NotificationLogDetail +
client.Notificationlogs.GetNotificationLog(UUID) -> *payabli.NotificationLogDetail
@@ -13736,7 +13736,7 @@ client.Notificationlogs.GetNotificationLog(
-
client.Notificationlogs.RetryNotificationLog(Uuid) -> *payabli.NotificationLogDetail +
client.Notificationlogs.RetryNotificationLog(UUID) -> *payabli.NotificationLogDetail
@@ -13871,7 +13871,7 @@ client.Notificationlogs.BulkRetryNotificationLogs(
## Ocr -
client.Ocr.OcrDocumentForm(TypeResult, request) -> *payabli.PayabliApiResponseOcr +
client.Ocr.OcrDocumentForm(TypeResult, request) -> *payabli.PayabliAPIResponseOcr
@@ -13939,7 +13939,7 @@ client.Ocr.OcrDocumentForm(
-
client.Ocr.OcrDocumentJson(TypeResult, request) -> *payabli.PayabliApiResponseOcr +
client.Ocr.OcrDocumentJSON(TypeResult, request) -> *payabli.PayabliAPIResponseOcr
@@ -13967,7 +13967,7 @@ Use this endpoint to submit a Base64-encoded image file for OCR processing. The ```go request := &payabli.FileContentImageOnly{} -client.Ocr.OcrDocumentJson( +client.Ocr.OcrDocumentJSON( context.TODO(), "typeResult", request, @@ -14092,7 +14092,7 @@ request := &payabli.AddOrganizationRequest{ OrgEntryName: payabli.String( "pilgrim-planner", ), - OrgId: payabli.String( + OrgID: payabli.String( "123", ), OrgLogo: &payabli.FileContent{ @@ -14108,7 +14108,7 @@ request := &payabli.AddOrganizationRequest{ ), }, OrgName: "Pilgrim Planner", - OrgParentId: payabli.Int64( + OrgParentID: payabli.Int64( int64(236), ), OrgState: payabli.String( @@ -14225,7 +14225,7 @@ client.Organization.AddOrganization(
-**orgId:** `*payabli.Orgidstring` +**orgID:** `*payabli.Orgidstring`
@@ -14249,7 +14249,7 @@ client.Organization.AddOrganization(
-**orgParentId:** `*payabli.OrgParentId` +**orgParentID:** `*payabli.OrgParentID`
@@ -14309,7 +14309,7 @@ client.Organization.AddOrganization(
-
client.Organization.DeleteOrganization(OrgId) -> *payabli.DeleteOrganizationResponse +
client.Organization.DeleteOrganization(OrgID) -> *payabli.DeleteOrganizationResponse
@@ -14355,7 +14355,7 @@ client.Organization.DeleteOrganization(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -14367,7 +14367,7 @@ client.Organization.DeleteOrganization(
-
client.Organization.EditOrganization(OrgId, request) -> *payabli.EditOrganizationResponse +
client.Organization.EditOrganization(OrgID, request) -> *payabli.EditOrganizationResponse
@@ -14423,7 +14423,7 @@ request := &payabli.OrganizationData{ OrgEntryName: payabli.String( "pilgrim-planner", ), - OrganizationDataOrgId: payabli.String( + OrganizationDataOrgID: payabli.String( "123", ), OrgName: payabli.String( @@ -14465,7 +14465,7 @@ client.Organization.EditOrganization(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -14545,7 +14545,7 @@ client.Organization.EditOrganization(
-**organizationDataOrgId:** `*payabli.Orgidstring` +**organizationDataOrgID:** `*payabli.Orgidstring`
@@ -14569,7 +14569,7 @@ client.Organization.EditOrganization(
-**orgParentId:** `*payabli.OrgParentId` +**orgParentID:** `*payabli.OrgParentID`
@@ -14687,7 +14687,7 @@ client.Organization.GetBasicOrganization(
-
client.Organization.GetBasicOrganizationById(OrgId) -> *payabli.OrganizationQueryRecord +
client.Organization.GetBasicOrganizationByID(OrgID) -> *payabli.OrganizationQueryRecord
@@ -14714,7 +14714,7 @@ Gets an organizations basic details by org ID.
```go -client.Organization.GetBasicOrganizationById( +client.Organization.GetBasicOrganizationByID( context.TODO(), 123, ) @@ -14733,7 +14733,7 @@ client.Organization.GetBasicOrganizationById(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -14745,7 +14745,7 @@ client.Organization.GetBasicOrganizationById(
-
client.Organization.GetOrganization(OrgId) -> *payabli.OrganizationQueryRecord +
client.Organization.GetOrganization(OrgID) -> *payabli.OrganizationQueryRecord
@@ -14791,7 +14791,7 @@ client.Organization.GetOrganization(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -14803,7 +14803,7 @@ client.Organization.GetOrganization(
-
client.Organization.GetSettingsOrganization(OrgId) -> *payabli.SettingsQueryRecord +
client.Organization.GetSettingsOrganization(OrgID) -> *payabli.SettingsQueryRecord
@@ -14849,7 +14849,7 @@ client.Organization.GetSettingsOrganization(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -14862,7 +14862,7 @@ client.Organization.GetSettingsOrganization(
## PaymentLink -
client.PaymentLink.AddPayLinkFromInvoice(IdInvoice, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.AddPayLinkFromInvoice(IDInvoice, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15127,7 +15127,7 @@ request := &payabli.PayLinkDataInvoice{ RedirectAfterApprove: payabli.Bool( true, ), - RedirectAfterApproveUrl: payabli.String( + RedirectAfterApproveURL: payabli.String( "https://example.com/success", ), }, @@ -15197,7 +15197,7 @@ client.PaymentLink.AddPayLinkFromInvoice(
-
client.PaymentLink.AddPayLinkFromBill(BillId, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.AddPayLinkFromBill(BillID, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15385,7 +15385,7 @@ client.PaymentLink.AddPayLinkFromBill(
-**billId:** `int` — The Payabli ID for the bill. +**billID:** `int` — The Payabli ID for the bill.
@@ -15429,7 +15429,7 @@ client.PaymentLink.AddPayLinkFromBill(
-
client.PaymentLink.DeletePayLinkFromId(PayLinkId) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.DeletePayLinkFromID(PayLinkID) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15456,7 +15456,7 @@ Deletes a payment link by ID.
```go -client.PaymentLink.DeletePayLinkFromId( +client.PaymentLink.DeletePayLinkFromID( context.TODO(), "2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", ) @@ -15475,7 +15475,7 @@ client.PaymentLink.DeletePayLinkFromId(
-**payLinkId:** `string` — ID for the payment link. +**payLinkID:** `string` — ID for the payment link.
@@ -15487,7 +15487,7 @@ client.PaymentLink.DeletePayLinkFromId(
-
client.PaymentLink.GetPayLinkFromId(PaylinkId) -> *payabli.GetPayLinkFromIdResponse +
client.PaymentLink.GetPayLinkFromID(PaylinkID) -> *payabli.GetPayLinkFromIDResponse
@@ -15514,7 +15514,7 @@ Retrieves a payment link by ID.
```go -client.PaymentLink.GetPayLinkFromId( +client.PaymentLink.GetPayLinkFromID( context.TODO(), "paylinkId", ) @@ -15533,7 +15533,7 @@ client.PaymentLink.GetPayLinkFromId(
-**paylinkId:** `string` — ID for payment link +**paylinkID:** `string` — ID for payment link
@@ -15545,7 +15545,7 @@ client.PaymentLink.GetPayLinkFromId(
-
client.PaymentLink.PushPayLinkFromId(PayLinkId, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.PushPayLinkFromID(PayLinkID, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15575,7 +15575,7 @@ Send a payment link to the specified email addresses or phone numbers. request := &payabli.PushPayLinkRequest{ Sms: &payabli.PushPayLinkRequestSms{}, } -client.PaymentLink.PushPayLinkFromId( +client.PaymentLink.PushPayLinkFromID( context.TODO(), "payLinkId", request, @@ -15595,7 +15595,7 @@ client.PaymentLink.PushPayLinkFromId(
-**payLinkId:** `string` — ID for the payment link. +**payLinkID:** `string` — ID for the payment link.
@@ -15615,7 +15615,7 @@ client.PaymentLink.PushPayLinkFromId(
-
client.PaymentLink.RefreshPayLinkFromId(PayLinkId) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.RefreshPayLinkFromID(PayLinkID) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15642,8 +15642,8 @@ Refresh a payment link's content after an update.
```go -request := &payabli.RefreshPayLinkFromIdRequest{} -client.PaymentLink.RefreshPayLinkFromId( +request := &payabli.RefreshPayLinkFromIDRequest{} +client.PaymentLink.RefreshPayLinkFromID( context.TODO(), "payLinkId", request, @@ -15663,7 +15663,7 @@ client.PaymentLink.RefreshPayLinkFromId(
-**payLinkId:** `string` — ID for the payment link. +**payLinkID:** `string` — ID for the payment link.
@@ -15683,7 +15683,7 @@ client.PaymentLink.RefreshPayLinkFromId(
-
client.PaymentLink.SendPayLinkFromId(PayLinkId) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.SendPayLinkFromID(PayLinkID) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15710,12 +15710,12 @@ Sends a payment link to the specified email addresses.
```go -request := &payabli.SendPayLinkFromIdRequest{ +request := &payabli.SendPayLinkFromIDRequest{ Mail2: payabli.String( "jo@example.com; ceo@example.com", ), } -client.PaymentLink.SendPayLinkFromId( +client.PaymentLink.SendPayLinkFromID( context.TODO(), "payLinkId", request, @@ -15735,7 +15735,7 @@ client.PaymentLink.SendPayLinkFromId(
-**payLinkId:** `string` — ID for the payment link. +**payLinkID:** `string` — ID for the payment link.
@@ -15763,7 +15763,7 @@ client.PaymentLink.SendPayLinkFromId(
-
client.PaymentLink.UpdatePayLinkFromId(PayLinkId, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.UpdatePayLinkFromID(PayLinkID, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -15820,7 +15820,7 @@ request := &payabli.PayLinkUpdateData{ ), }, } -client.PaymentLink.UpdatePayLinkFromId( +client.PaymentLink.UpdatePayLinkFromID( context.TODO(), "332-c277b704-1301", request, @@ -15840,7 +15840,7 @@ client.PaymentLink.UpdatePayLinkFromId(
-**payLinkId:** `string` — ID for the payment link. +**payLinkID:** `string` — ID for the payment link.
@@ -15924,7 +15924,7 @@ client.PaymentLink.UpdatePayLinkFromId(
-
client.PaymentLink.AddPayLinkFromBillLotNumber(LotNumber, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.AddPayLinkFromBillLotNumber(LotNumber, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -16169,7 +16169,7 @@ client.PaymentLink.AddPayLinkFromBillLotNumber(
-
client.PaymentLink.PatchOutPaymentLink(PaylinkId, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.PatchOutPaymentLink(PaylinkID, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -16222,7 +16222,7 @@ client.PaymentLink.PatchOutPaymentLink(
-**paylinkId:** `string` — ID for the payment link. +**paylinkID:** `string` — ID for the payment link.
@@ -16242,7 +16242,7 @@ client.PaymentLink.PatchOutPaymentLink(
-
client.PaymentLink.UpdatePayLinkOutFromId(PaylinkId, request) -> *payabli.PayabliApiResponsePaymentLinks +
client.PaymentLink.UpdatePayLinkOutFromID(PaylinkID, request) -> *payabli.PayabliAPIResponsePaymentLinks
@@ -16405,7 +16405,7 @@ request := &payabli.PaymentPageRequestBodyOut{ ), }, } -client.PaymentLink.UpdatePayLinkOutFromId( +client.PaymentLink.UpdatePayLinkOutFromID( context.TODO(), "2325-XXXXXXX-90b1-4598-b6c7-44cdcbf495d7-1234", request, @@ -16425,7 +16425,7 @@ client.PaymentLink.UpdatePayLinkOutFromId(
-**paylinkId:** `string` — ID for the payment link. +**paylinkID:** `string` — ID for the payment link.
@@ -16446,7 +16446,7 @@ client.PaymentLink.UpdatePayLinkOutFromId(
## PaymentMethodDomain -
client.PaymentMethodDomain.AddPaymentMethodDomain(request) -> *payabli.AddPaymentMethodDomainApiResponse +
client.PaymentMethodDomain.AddPaymentMethodDomain(request) -> *payabli.AddPaymentMethodDomainAPIResponse
@@ -16477,7 +16477,7 @@ request := &payabli.AddPaymentMethodDomainRequest{ DomainName: payabli.String( "checkout.example.com", ), - EntityId: payabli.Int64( + EntityID: payabli.Int64( int64(109), ), EntityType: payabli.String( @@ -16537,7 +16537,7 @@ client.PaymentMethodDomain.AddPaymentMethodDomain(
-**entityId:** `*payabli.EntityId` +**entityID:** `*payabli.EntityID`
@@ -16557,7 +16557,7 @@ client.PaymentMethodDomain.AddPaymentMethodDomain(
-
client.PaymentMethodDomain.CascadePaymentMethodDomain(DomainId) -> *payabli.PaymentMethodDomainGeneralResponse +
client.PaymentMethodDomain.CascadePaymentMethodDomain(DomainID) -> *payabli.PaymentMethodDomainGeneralResponse
@@ -16603,7 +16603,7 @@ client.PaymentMethodDomain.CascadePaymentMethodDomain(
-**domainId:** `string` — The payment method domain's ID in Payabli. +**domainID:** `string` — The payment method domain's ID in Payabli.
@@ -16615,7 +16615,7 @@ client.PaymentMethodDomain.CascadePaymentMethodDomain(
-
client.PaymentMethodDomain.DeletePaymentMethodDomain(DomainId) -> *payabli.DeletePaymentMethodDomainResponse +
client.PaymentMethodDomain.DeletePaymentMethodDomain(DomainID) -> *payabli.DeletePaymentMethodDomainResponse
@@ -16661,7 +16661,7 @@ client.PaymentMethodDomain.DeletePaymentMethodDomain(
-**domainId:** `string` — The payment method domain's ID in Payabli. +**domainID:** `string` — The payment method domain's ID in Payabli.
@@ -16673,7 +16673,7 @@ client.PaymentMethodDomain.DeletePaymentMethodDomain(
-
client.PaymentMethodDomain.GetPaymentMethodDomain(DomainId) -> *payabli.PaymentMethodDomainApiResponse +
client.PaymentMethodDomain.GetPaymentMethodDomain(DomainID) -> *payabli.PaymentMethodDomainAPIResponse
@@ -16719,7 +16719,7 @@ client.PaymentMethodDomain.GetPaymentMethodDomain(
-**domainId:** `string` — The payment method domain's ID in Payabli. +**domainID:** `string` — The payment method domain's ID in Payabli.
@@ -16759,7 +16759,7 @@ Get a list of payment method domains that belong to a PSP, organization, or payp ```go request := &payabli.ListPaymentMethodDomainsRequest{ - EntityId: payabli.Int64( + EntityID: payabli.Int64( int64(1147), ), EntityType: payabli.String( @@ -16785,7 +16785,7 @@ client.PaymentMethodDomain.ListPaymentMethodDomains(
-**entityId:** `*int64` +**entityID:** `*int64` Identifier for the organization or paypoint. - For organization, provide the organization ID - For paypoint, provide the paypoint ID @@ -16829,7 +16829,7 @@ The type of entity. Valid values:
-
client.PaymentMethodDomain.UpdatePaymentMethodDomain(DomainId, request) -> *payabli.PaymentMethodDomainGeneralResponse +
client.PaymentMethodDomain.UpdatePaymentMethodDomain(DomainID, request) -> *payabli.PaymentMethodDomainGeneralResponse
@@ -16888,7 +16888,7 @@ client.PaymentMethodDomain.UpdatePaymentMethodDomain(
-**domainId:** `string` — The payment method domain's ID in Payabli. +**domainID:** `string` — The payment method domain's ID in Payabli.
@@ -16916,7 +16916,7 @@ client.PaymentMethodDomain.UpdatePaymentMethodDomain(
-
client.PaymentMethodDomain.VerifyPaymentMethodDomain(DomainId) -> *payabli.PaymentMethodDomainGeneralResponse +
client.PaymentMethodDomain.VerifyPaymentMethodDomain(DomainID) -> *payabli.PaymentMethodDomainGeneralResponse
@@ -16962,7 +16962,7 @@ client.PaymentMethodDomain.VerifyPaymentMethodDomain(
-**domainId:** `string` — The payment method domain's ID in Payabli. +**domainID:** `string` — The payment method domain's ID in Payabli.
@@ -17030,7 +17030,7 @@ request := &payabli.RequestPayoutSchedule{ ), }, VendorData: &payabli.RequestOutAuthorizeVendorData{ - VendorId: payabli.Int( + VendorID: payabli.Int( 1501, ), }, @@ -17104,7 +17104,7 @@ client.PayoutSubscription.CreatePayoutSubscription(
-
client.PayoutSubscription.GetPayoutSubscription(Id) -> *payabli.GetPayoutSubscriptionResponse +
client.PayoutSubscription.GetPayoutSubscription(ID) -> *payabli.GetPayoutSubscriptionResponse
@@ -17162,7 +17162,7 @@ client.PayoutSubscription.GetPayoutSubscription(
-
client.PayoutSubscription.UpdatePayoutSubscription(Id, request) -> *payabli.UpdatePayoutSubscriptionResponse +
client.PayoutSubscription.UpdatePayoutSubscription(ID, request) -> *payabli.UpdatePayoutSubscriptionResponse
@@ -17234,7 +17234,7 @@ client.PayoutSubscription.UpdatePayoutSubscription(
-
client.PayoutSubscription.DeletePayoutSubscription(Id) -> *payabli.DeletePayoutSubscriptionResponse +
client.PayoutSubscription.DeletePayoutSubscription(ID) -> *payabli.DeletePayoutSubscriptionResponse
@@ -17351,7 +17351,7 @@ client.Paypoint.GetBasicEntry(
-
client.Paypoint.GetBasicEntryById(IdPaypoint) -> *payabli.GetBasicEntryByIdResponse +
client.Paypoint.GetBasicEntryByID(IDPaypoint) -> *payabli.GetBasicEntryByIDResponse
@@ -17378,7 +17378,7 @@ Retrieves the basic details for a paypoint by ID.
```go -client.Paypoint.GetBasicEntryById( +client.Paypoint.GetBasicEntryByID( context.TODO(), "198", ) @@ -17544,7 +17544,7 @@ client.Paypoint.GetPage(
-
client.Paypoint.RemovePage(Entry, Subdomain) -> *payabli.PayabliApiResponseGeneric2Part +
client.Paypoint.RemovePage(Entry, Subdomain) -> *payabli.PayabliAPIResponseGeneric2Part
@@ -17611,7 +17611,7 @@ client.Paypoint.RemovePage(
-
client.Paypoint.SaveLogo(Entry, request) -> *payabli.PayabliApiResponse00Responsedatanonobject +
client.Paypoint.SaveLogo(Entry, request) -> *payabli.PayabliAPIResponse00Responsedatanonobject
@@ -17766,9 +17766,9 @@ Migrates a paypoint to a new parent organization. ```go request := &payabli.PaypointMoveRequest{ EntryPoint: "473abc123def", - NewParentOrganizationId: 123, + NewParentOrganizationID: 123, NotificationRequest: &payabli.NotificationRequest{ - NotificationUrl: "https://webhook-test.yoursie.com", + NotificationURL: "https://webhook-test.yoursie.com", WebHeaderParameters: []*payabli.WebHeaderParameter{ &payabli.WebHeaderParameter{ Key: "testheader", @@ -17997,7 +17997,7 @@ Example: `settledAmount(gt)=20` returns all records with a `settledAmount` great
-
client.Query.ListBatchDetailsOrg(OrgId) -> *payabli.QueryResponseSettlements +
client.Query.ListBatchDetailsOrg(OrgID) -> *payabli.QueryResponseSettlements
@@ -18055,7 +18055,7 @@ client.Query.ListBatchDetailsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -18348,7 +18348,7 @@ Example: `batchAmount(gt)=20` returns all records with a `batchAmount` greater t
-
client.Query.ListBatchesOrg(OrgId) -> *payabli.QueryBatchesResponse +
client.Query.ListBatchesOrg(OrgID) -> *payabli.QueryBatchesResponse
@@ -18406,7 +18406,7 @@ client.Query.ListBatchesOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -18640,7 +18640,7 @@ Collection of field names, conditions, and values used to filter the query. See
-
client.Query.ListBatchesOutOrg(OrgId) -> *payabli.QueryBatchesOutResponse +
client.Query.ListBatchesOutOrg(OrgID) -> *payabli.QueryBatchesOutResponse
@@ -18698,7 +18698,7 @@ client.Query.ListBatchesOutOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -18964,7 +18964,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Query.ListChargebacksOrg(OrgId) -> *payabli.QueryChargebacksResponse +
client.Query.ListChargebacksOrg(OrgID) -> *payabli.QueryChargebacksResponse
@@ -19022,7 +19022,7 @@ client.Query.ListChargebacksOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -19324,7 +19324,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
-
client.Query.ListCustomersOrg(OrgId) -> *payabli.QueryCustomerResponse +
client.Query.ListCustomersOrg(OrgID) -> *payabli.QueryCustomerResponse
@@ -19382,7 +19382,7 @@ client.Query.ListCustomersOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -19641,7 +19641,7 @@ Example: reportName(ct)=tr return all records containing the string "tr"
-
client.Query.ListNotificationReportsOrg(OrgId) -> *payabli.QueryResponseNotificationReports +
client.Query.ListNotificationReportsOrg(OrgID) -> *payabli.QueryResponseNotificationReports
@@ -19699,7 +19699,7 @@ client.Query.ListNotificationReportsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -19923,7 +19923,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20
-
client.Query.ListNotificationsOrg(OrgId) -> *payabli.QueryResponseNotifications +
client.Query.ListNotificationsOrg(OrgID) -> *payabli.QueryResponseNotifications
@@ -19981,7 +19981,7 @@ client.Query.ListNotificationsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -20066,7 +20066,7 @@ Example: totalAmount(gt)=20 return all records with totalAmount greater than 20
-
client.Query.ListOrganizations(OrgId) -> *payabli.ListOrganizationsResponse +
client.Query.ListOrganizations(OrgID) -> *payabli.ListOrganizationsResponse
@@ -20124,7 +20124,7 @@ client.Query.ListOrganizations(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -20419,7 +20419,7 @@ List of field names accepted:
-
client.Query.ListPayoutOrg(OrgId) -> *payabli.QueryPayoutTransaction +
client.Query.ListPayoutOrg(OrgID) -> *payabli.QueryPayoutTransaction
@@ -20477,7 +20477,7 @@ client.Query.ListPayoutOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -20608,7 +20608,7 @@ List of field names accepted:
-
client.Query.ListPaypoints(OrgId) -> *payabli.QueryEntrypointResponse +
client.Query.ListPaypoints(OrgID) -> *payabli.QueryEntrypointResponse
@@ -20666,7 +20666,7 @@ client.Query.ListPaypoints(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -20963,7 +20963,7 @@ Example: `settledAmount(gt)=20` returns all records with a `settledAmount` great
-
client.Query.ListSettlementsOrg(OrgId) -> *payabli.QueryResponseSettlements +
client.Query.ListSettlementsOrg(OrgID) -> *payabli.QueryResponseSettlements
@@ -21021,7 +21021,7 @@ client.Query.ListSettlementsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -21337,7 +21337,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
-
client.Query.ListSubscriptionsOrg(OrgId) -> *payabli.QuerySubscriptionResponse +
client.Query.ListSubscriptionsOrg(OrgID) -> *payabli.QuerySubscriptionResponse
@@ -21395,7 +21395,7 @@ client.Query.ListSubscriptionsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -21699,7 +21699,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
-
client.Query.ListPayoutSubscriptionsOrg(OrgId) -> *payabli.QueryPayoutSubscriptionResponse +
client.Query.ListPayoutSubscriptionsOrg(OrgID) -> *payabli.QueryPayoutSubscriptionResponse
@@ -21757,7 +21757,7 @@ client.Query.ListPayoutSubscriptionsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -22075,7 +22075,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
-
client.Query.ListTransactionsOrg(OrgId) -> *payabli.QueryResponseTransactions +
client.Query.ListTransactionsOrg(OrgID) -> *payabli.QueryResponseTransactions
@@ -22146,7 +22146,7 @@ client.Query.ListTransactionsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -22282,7 +22282,7 @@ See [Filters and Conditions Reference](/developers/developer-guides/pay-ops-repo
-
client.Query.ListTransferDetails(Entry, TransferId) -> *payabli.QueryTransferDetailResponse +
client.Query.ListTransferDetails(Entry, TransferID) -> *payabli.QueryTransferDetailResponse
@@ -22339,7 +22339,7 @@ client.Query.ListTransferDetails(
-**transferId:** `int` — The numeric identifier for the transfer, assigned by Payabli. +**transferID:** `int` — The numeric identifier for the transfer, assigned by Payabli.
@@ -22573,7 +22573,7 @@ List of field names accepted:
-
client.Query.ListTransfersOrg(OrgId) -> *payabli.TransferQueryResponse +
client.Query.ListTransfersOrg(OrgID) -> *payabli.TransferQueryResponse
@@ -22601,7 +22601,7 @@ Retrieve a list of transfers for an org. Use filters to limit results. Include t ```go request := &payabli.ListTransfersRequestOrg{ - OrgId: int64(123), + OrgID: int64(123), FromRecord: payabli.Int( 0, ), @@ -22628,7 +22628,7 @@ client.Query.ListTransfersOrg(
-**orgId:** `payabli.Orgid` +**orgID:** `payabli.Orgid`
@@ -22713,7 +22713,7 @@ List of field names accepted:
-
client.Query.ListTransfersOutOrg(OrgId) -> *payabli.TransferOutQueryResponse +
client.Query.ListTransfersOutOrg(OrgID) -> *payabli.TransferOutQueryResponse
@@ -22768,7 +22768,7 @@ client.Query.ListTransfersOutOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -22969,7 +22969,7 @@ List of field names accepted:
-
client.Query.ListTransferDetailsOut(Entry, TransferId) -> *payabli.TransferOutDetailQueryResponse +
client.Query.ListTransferDetailsOut(Entry, TransferID) -> *payabli.TransferOutDetailQueryResponse
@@ -23033,7 +23033,7 @@ client.Query.ListTransferDetailsOut(
-**transferId:** `int` — The numeric identifier for the transfer, assigned by Payabli. +**transferID:** `int` — The numeric identifier for the transfer, assigned by Payabli.
@@ -23105,7 +23105,7 @@ List of field names accepted:
-
client.Query.ListUsersOrg(OrgId) -> *payabli.QueryUserResponse +
client.Query.ListUsersOrg(OrgID) -> *payabli.QueryUserResponse
@@ -23163,7 +23163,7 @@ client.Query.ListUsersOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -23560,7 +23560,7 @@ Example: `netAmount(gt)=20` returns all records with a `netAmount` greater than
-
client.Query.ListVendorsOrg(OrgId) -> *payabli.QueryResponseVendors +
client.Query.ListVendorsOrg(OrgID) -> *payabli.QueryResponseVendors
@@ -23618,7 +23618,7 @@ client.Query.ListVendorsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -23882,7 +23882,7 @@ List of comparison accepted - enclosed between parentheses:
-
client.Query.ListVcardsOrg(OrgId) -> *payabli.VCardQueryResponse +
client.Query.ListVcardsOrg(OrgID) -> *payabli.VCardQueryResponse
@@ -23940,7 +23940,7 @@ client.Query.ListVcardsOrg(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -24040,7 +24040,7 @@ List of comparison accepted - enclosed between parentheses:
## Statistic -
client.Statistic.BasicStats(Mode, Freq, Level, EntryId) -> []*payabli.StatBasicExtendedQueryRecord +
client.Statistic.BasicStats(Mode, Freq, Level, EntryID) -> []*payabli.StatBasicExtendedQueryRecord
@@ -24151,7 +24151,7 @@ The entry level for the request:
-**entryId:** `int64` — Identifier in Payabli for the entity. +**entryID:** `int64` — Identifier in Payabli for the entity.
@@ -24201,7 +24201,7 @@ Valid formats:
-
client.Statistic.CustomerBasicStats(Mode, Freq, CustomerId) -> []*payabli.SubscriptionStatsQueryRecord +
client.Statistic.CustomerBasicStats(Mode, Freq, CustomerID) -> []*payabli.SubscriptionStatsQueryRecord
@@ -24290,7 +24290,7 @@ For example, `w` groups the results by week.
-**customerId:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. +**customerID:** `int` — Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub.
@@ -24310,7 +24310,7 @@ For example, `w` groups the results by week.
-
client.Statistic.SubStats(Interval, Level, EntryId) -> []*payabli.StatBasicQueryRecord +
client.Statistic.SubStats(Interval, Level, EntryID) -> []*payabli.StatBasicQueryRecord
@@ -24388,7 +24388,7 @@ The entry level for the request:
-**entryId:** `int64` — Identifier in Payabli for the entity. +**entryID:** `int64` — Identifier in Payabli for the entity.
@@ -24408,7 +24408,7 @@ The entry level for the request:
-
client.Statistic.VendorBasicStats(Mode, Freq, IdVendor) -> []*payabli.StatisticsVendorQueryRecord +
client.Statistic.VendorBasicStats(Mode, Freq, IDVendor) -> []*payabli.StatisticsVendorQueryRecord
@@ -24518,7 +24518,7 @@ For example, `w` groups the results by week.
## Subscription -
client.Subscription.GetSubscription(SubId) -> *payabli.SubscriptionQueryRecords +
client.Subscription.GetSubscription(SubID) -> *payabli.SubscriptionQueryRecords
@@ -24564,7 +24564,7 @@ client.Subscription.GetSubscription(
-**subId:** `int` — The subscription ID. +**subID:** `int` — The subscription ID.
@@ -24606,7 +24606,7 @@ Creates a subscription or scheduled payment to run at a specified time and frequ request := &payabli.RequestSchedule{ Body: &payabli.SubscriptionRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -24642,7 +24642,7 @@ request := &payabli.RequestSchedule{ "03-20-2025", ), Frequency: payabli.FrequencyWeekly.Ptr(), - PlanId: payabli.Int( + PlanID: payabli.Int( 1, ), StartDate: payabli.String( @@ -24698,7 +24698,7 @@ client.Subscription.NewSubscription(
-
client.Subscription.RemoveSubscription(SubId) -> *payabli.RemoveSubscriptionResponse +
client.Subscription.RemoveSubscription(SubID) -> *payabli.RemoveSubscriptionResponse
@@ -24744,7 +24744,7 @@ client.Subscription.RemoveSubscription(
-**subId:** `int` — The subscription ID. +**subID:** `int` — The subscription ID.
@@ -24756,7 +24756,7 @@ client.Subscription.RemoveSubscription(
-
client.Subscription.UpdateSubscription(SubId, request) -> *payabli.UpdateSubscriptionResponse +
client.Subscription.UpdateSubscription(SubID, request) -> *payabli.UpdateSubscriptionResponse
@@ -24808,7 +24808,7 @@ client.Subscription.UpdateSubscription(
-**subId:** `int` — The subscription ID. +**subID:** `int` — The subscription ID.
@@ -24845,7 +24845,7 @@ client.Subscription.UpdateSubscription(
## Templates -
client.Templates.DeleteTemplate(TemplateId) -> *payabli.PayabliApiResponseTemplateId +
client.Templates.DeleteTemplate(TemplateID) -> *payabli.PayabliAPIResponseTemplateID
@@ -24891,7 +24891,7 @@ client.Templates.DeleteTemplate(
-**templateId:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. +**templateID:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
@@ -24903,7 +24903,7 @@ client.Templates.DeleteTemplate(
-
client.Templates.GetlinkTemplate(TemplateId, IgnoreEmpty) -> *payabli.BoardingLinkApiResponse +
client.Templates.GetlinkTemplate(TemplateID, IgnoreEmpty) -> *payabli.BoardingLinkAPIResponse
@@ -24950,7 +24950,7 @@ client.Templates.GetlinkTemplate(
-**templateId:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. +**templateID:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
@@ -24970,7 +24970,7 @@ client.Templates.GetlinkTemplate(
-
client.Templates.GetTemplate(TemplateId) -> *payabli.TemplateQueryRecord +
client.Templates.GetTemplate(TemplateID) -> *payabli.TemplateQueryRecord
@@ -25016,7 +25016,7 @@ client.Templates.GetTemplate(
-**templateId:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. +**templateID:** `float64` — The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`.
@@ -25028,7 +25028,7 @@ client.Templates.GetTemplate(
-
client.Templates.ListTemplates(OrgId) -> *payabli.TemplateQueryResponse +
client.Templates.ListTemplates(OrgID) -> *payabli.TemplateQueryResponse
@@ -25086,7 +25086,7 @@ client.Templates.ListTemplates(
-**orgId:** `int` — The numeric identifier for organization, assigned by Payabli. +**orgID:** `int` — The numeric identifier for organization, assigned by Payabli.
@@ -25206,7 +25206,7 @@ Saves a payment method for reuse. This call exchanges sensitive payment informat request := &payabli.AddMethodRequest{ Body: &payabli.RequestTokenStorage{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -25312,7 +25312,7 @@ client.TokenStorage.AddMethod(
-
client.TokenStorage.GetMethod(MethodId) -> *payabli.GetMethodResponse +
client.TokenStorage.GetMethod(MethodID) -> *payabli.GetMethodResponse
@@ -25367,7 +25367,7 @@ client.TokenStorage.GetMethod(
-**methodId:** `string` — The saved payment method ID. +**methodID:** `string` — The saved payment method ID.
@@ -25405,7 +25405,7 @@ Accepted values:
-
client.TokenStorage.RemoveMethod(MethodId) -> *payabli.PayabliApiResponsePaymethodDelete +
client.TokenStorage.RemoveMethod(MethodID) -> *payabli.PayabliAPIResponsePaymethodDelete
@@ -25451,7 +25451,7 @@ client.TokenStorage.RemoveMethod(
-**methodId:** `string` — The saved payment method ID. +**methodID:** `string` — The saved payment method ID.
@@ -25463,7 +25463,7 @@ client.TokenStorage.RemoveMethod(
-
client.TokenStorage.UpdateMethod(MethodId, request) -> *payabli.PayabliApiResponsePaymethodDelete +
client.TokenStorage.UpdateMethod(MethodID, request) -> *payabli.PayabliAPIResponsePaymethodDelete
@@ -25493,7 +25493,7 @@ Updates a saved payment method. request := &payabli.UpdateMethodRequest{ Body: &payabli.RequestTokenStorage{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -25539,7 +25539,7 @@ client.TokenStorage.UpdateMethod(
-**methodId:** `string` — The saved payment method ID. +**methodID:** `string` — The saved payment method ID.
@@ -25627,7 +25627,7 @@ client.User.AddUser(
-
client.User.AuthRefreshUser() -> *payabli.PayabliApiResponseUserMfa +
client.User.AuthRefreshUser() -> *payabli.PayabliAPIResponseUserMfa
@@ -25744,7 +25744,7 @@ client.User.AuthResetUser(
-
client.User.AuthUser(Provider, request) -> *payabli.PayabliApiResponseMfaBasic +
client.User.AuthUser(Provider, request) -> *payabli.PayabliAPIResponseMfaBasic
@@ -25832,7 +25832,7 @@ client.User.AuthUser(
-**userId:** `*int64` +**userID:** `*int64`
@@ -25840,7 +25840,7 @@ client.User.AuthUser(
-**userTokenId:** `*string` +**userTokenID:** `*string`
@@ -25911,7 +25911,7 @@ client.User.ChangePswUser(
-
client.User.DeleteUser(UserId) -> *payabli.DeleteUserResponse +
client.User.DeleteUser(UserID) -> *payabli.DeleteUserResponse
@@ -25957,7 +25957,7 @@ client.User.DeleteUser(
-**userId:** `int64` — The Payabli-generated `userId` value. +**userID:** `int64` — The Payabli-generated `userId` value.
@@ -25969,7 +25969,7 @@ client.User.DeleteUser(
-
client.User.EditMfaUser(UserId, request) -> *payabli.EditMfaUserResponse +
client.User.EditMfaUser(UserID, request) -> *payabli.EditMfaUserResponse
@@ -26017,7 +26017,7 @@ client.User.EditMfaUser(
-**userId:** `int64` — User Identifier +**userID:** `int64` — User Identifier
@@ -26037,7 +26037,7 @@ client.User.EditMfaUser(
-
client.User.EditUser(UserId, request) -> *payabli.PayabliApiResponse +
client.User.EditUser(UserID, request) -> *payabli.PayabliAPIResponse
@@ -26085,7 +26085,7 @@ client.User.EditUser(
-**userId:** `int64` — User Identifier +**userID:** `int64` — User Identifier
@@ -26105,7 +26105,7 @@ client.User.EditUser(
-
client.User.GetUser(UserId) -> *payabli.UserQueryRecord +
client.User.GetUser(UserID) -> *payabli.UserQueryRecord
@@ -26157,7 +26157,7 @@ client.User.GetUser(
-**userId:** `int64` — The Payabli-generated `userId` value. +**userID:** `int64` — The Payabli-generated `userId` value.
@@ -26227,7 +26227,7 @@ client.User.LogoutUser(
-
client.User.ResendMfaCode(Usrname, Entry, EntryType) -> *payabli.PayabliApiResponseMfaBasic +
client.User.ResendMfaCode(Usrname, Entry, EntryType) -> *payabli.PayabliAPIResponseMfaBasic
@@ -26303,7 +26303,7 @@ client.User.ResendMfaCode(
-
client.User.ValidateMfaUser(request) -> *payabli.PayabliApiResponseUserMfa +
client.User.ValidateMfaUser(request) -> *payabli.PayabliAPIResponseUserMfa
@@ -26371,7 +26371,7 @@ client.User.ValidateMfaUser(
## Vendor -
client.Vendor.AddVendor(Entry, request) -> *payabli.PayabliApiResponseVendors +
client.Vendor.AddVendor(Entry, request) -> *payabli.PayabliAPIResponseVendors
@@ -26458,7 +26458,7 @@ request := &payabli.VendorData{ }, }, BillingData: &payabli.BillingData{ - Id: payabli.Int( + ID: payabli.Int( 123, ), BankName: payabli.String( @@ -26512,7 +26512,7 @@ request := &payabli.VendorData{ CustomerVendorAccount: payabli.String( "A-37622", ), - InternalReferenceId: payabli.Int64( + InternalReferenceID: payabli.Int64( int64(123), ), } @@ -26556,7 +26556,7 @@ client.Vendor.AddVendor(
-
client.Vendor.DeleteVendor(IdVendor) -> *payabli.PayabliApiResponseVendors +
client.Vendor.DeleteVendor(IDVendor) -> *payabli.PayabliAPIResponseVendors
@@ -26614,7 +26614,7 @@ client.Vendor.DeleteVendor(
-
client.Vendor.EditVendor(IdVendor, request) -> *payabli.PayabliApiResponseVendors +
client.Vendor.EditVendor(IDVendor, request) -> *payabli.PayabliAPIResponseVendors
@@ -26686,7 +26686,7 @@ client.Vendor.EditVendor(
-
client.Vendor.GetVendor(IdVendor) -> *payabli.VendorQueryRecord +
client.Vendor.GetVendor(IDVendor) -> *payabli.VendorQueryRecord
@@ -26772,7 +26772,7 @@ Triggers AI-powered vendor enrichment for an existing vendor. Runs one or more e ```go request := &payabli.VendorEnrichRequest{ - VendorId: int64(3890), + VendorID: int64(3890), Scope: []string{ "invoice_scan", }, @@ -26833,7 +26833,7 @@ client.Vendor.EnrichVendor(
## Wallet -
client.Wallet.ConfigureApplePayOrganization(request) -> *payabli.ConfigureApplePayOrganizationApiResponse +
client.Wallet.ConfigureApplePayOrganization(request) -> *payabli.ConfigureApplePayOrganizationAPIResponse
@@ -26867,7 +26867,7 @@ request := &payabli.ConfigureOrganizationRequestApplePay{ IsEnabled: payabli.Bool( true, ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(901), ), } @@ -26906,7 +26906,7 @@ client.Wallet.ConfigureApplePayOrganization(
-**orgId:** `*payabli.OrganizationId` +**orgID:** `*payabli.OrganizationID`
@@ -26918,7 +26918,7 @@ client.Wallet.ConfigureApplePayOrganization(
-
client.Wallet.ConfigureApplePayPaypoint(request) -> *payabli.ConfigureApplePaypointApiResponse +
client.Wallet.ConfigureApplePayPaypoint(request) -> *payabli.ConfigureApplePaypointAPIResponse
@@ -26992,7 +26992,7 @@ client.Wallet.ConfigureApplePayPaypoint(
-
client.Wallet.ConfigureGooglePayOrganization(request) -> *payabli.ConfigureApplePayOrganizationApiResponse +
client.Wallet.ConfigureGooglePayOrganization(request) -> *payabli.ConfigureApplePayOrganizationAPIResponse
@@ -27026,7 +27026,7 @@ request := &payabli.ConfigureOrganizationRequestGooglePay{ IsEnabled: payabli.Bool( true, ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(901), ), } @@ -27065,7 +27065,7 @@ client.Wallet.ConfigureGooglePayOrganization(
-**orgId:** `*payabli.OrganizationId` +**orgID:** `*payabli.OrganizationID`
@@ -27077,7 +27077,7 @@ client.Wallet.ConfigureGooglePayOrganization(
-
client.Wallet.ConfigureGooglePayPaypoint(request) -> *payabli.ConfigureGooglePaypointApiResponse +
client.Wallet.ConfigureGooglePayPaypoint(request) -> *payabli.ConfigureGooglePaypointAPIResponse
diff --git a/statistic/client.go b/statistic/client.go index ff7c416..48409ad 100644 --- a/statistic/client.go +++ b/statistic/client.go @@ -65,7 +65,7 @@ func (c *Client) BasicStats( // - 2 for Paypoint level int, // Identifier in Payabli for the entity. - entryId int64, + entryID int64, request *payabli.BasicStatsRequest, opts ...option.RequestOption, ) ([]*payabli.StatBasicExtendedQueryRecord, error) { @@ -74,7 +74,7 @@ func (c *Client) BasicStats( mode, freq, level, - entryId, + entryID, request, opts..., ) @@ -111,7 +111,7 @@ func (c *Client) CustomerBasicStats( // For example, `w` groups the results by week. freq string, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, request *payabli.CustomerBasicStatsRequest, opts ...option.RequestOption, ) ([]*payabli.SubscriptionStatsQueryRecord, error) { @@ -119,7 +119,7 @@ func (c *Client) CustomerBasicStats( ctx, mode, freq, - customerId, + customerID, request, opts..., ) @@ -145,7 +145,7 @@ func (c *Client) SubStats( // - 2 for Paypoint level int, // Identifier in Payabli for the entity. - entryId int64, + entryID int64, request *payabli.SubStatsRequest, opts ...option.RequestOption, ) ([]*payabli.StatBasicQueryRecord, error) { @@ -153,7 +153,7 @@ func (c *Client) SubStats( ctx, interval, level, - entryId, + entryID, request, opts..., ) diff --git a/statistic/raw_client.go b/statistic/raw_client.go index 873c329..eb500b8 100644 --- a/statistic/raw_client.go +++ b/statistic/raw_client.go @@ -62,7 +62,7 @@ func (r *RawClient) BasicStats( // - 2 for Paypoint level int, // Identifier in Payabli for the entity. - entryId int64, + entryID int64, request *payabli.BasicStatsRequest, opts ...option.RequestOption, ) (*core.Response[[]*payabli.StatBasicExtendedQueryRecord], error) { @@ -77,7 +77,7 @@ func (r *RawClient) BasicStats( mode, freq, level, - entryId, + entryID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -141,7 +141,7 @@ func (r *RawClient) CustomerBasicStats( // For example, `w` groups the results by week. freq string, // Payabli-generated customer ID. Maps to "Customer ID" column in PartnerHub. - customerId int, + customerID int, request *payabli.CustomerBasicStatsRequest, opts ...option.RequestOption, ) (*core.Response[[]*payabli.SubscriptionStatsQueryRecord], error) { @@ -155,7 +155,7 @@ func (r *RawClient) CustomerBasicStats( baseURL+"/Statistic/customerbasic/%v/%v/%v", mode, freq, - customerId, + customerID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -208,7 +208,7 @@ func (r *RawClient) SubStats( // - 2 for Paypoint level int, // Identifier in Payabli for the entity. - entryId int64, + entryID int64, request *payabli.SubStatsRequest, opts ...option.RequestOption, ) (*core.Response[[]*payabli.StatBasicQueryRecord], error) { @@ -222,7 +222,7 @@ func (r *RawClient) SubStats( baseURL+"/Statistic/subscriptions/%v/%v/%v", interval, level, - entryId, + entryID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/subscription.go b/subscription.go index 54a0cfd..bf34d43 100644 --- a/subscription.go +++ b/subscription.go @@ -126,7 +126,7 @@ func (r *RequestUpdateSchedule) MarshalJSON() ([]byte, error) { var ( scheduleDetailFieldEndDate = big.NewInt(1 << 0) scheduleDetailFieldFrequency = big.NewInt(1 << 1) - scheduleDetailFieldPlanId = big.NewInt(1 << 2) + scheduleDetailFieldPlanID = big.NewInt(1 << 2) scheduleDetailFieldStartDate = big.NewInt(1 << 3) ) @@ -136,7 +136,7 @@ type ScheduleDetail struct { // Frequency of the subscription. Frequency *Frequency `json:"frequency,omitempty" url:"frequency,omitempty"` // This field is for future development, leave null. Identifier of subscription plan applied in the scheduled payment/subscription. - PlanId *int `json:"planId,omitempty" url:"planId,omitempty"` + PlanID *int `json:"planId,omitempty" url:"planId,omitempty"` // Subscription start date in any of the accepted formats: YYYY-MM-DD, MM/DD/YYYY. This must be a future date. StartDate *string `json:"startDate,omitempty" url:"startDate,omitempty"` @@ -161,11 +161,11 @@ func (s *ScheduleDetail) GetFrequency() *Frequency { return s.Frequency } -func (s *ScheduleDetail) GetPlanId() *int { +func (s *ScheduleDetail) GetPlanID() *int { if s == nil { return nil } - return s.PlanId + return s.PlanID } func (s *ScheduleDetail) GetStartDate() *string { @@ -203,11 +203,11 @@ func (s *ScheduleDetail) SetFrequency(frequency *Frequency) { s.require(scheduleDetailFieldFrequency) } -// SetPlanId sets the PlanId field and marks it as non-optional; +// SetPlanID sets the PlanID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *ScheduleDetail) SetPlanId(planId *int) { - s.PlanId = planId - s.require(scheduleDetailFieldPlanId) +func (s *ScheduleDetail) SetPlanID(planID *int) { + s.PlanID = planID + s.require(scheduleDetailFieldPlanID) } // SetStartDate sets the StartDate field and marks it as non-optional; @@ -261,14 +261,14 @@ func (s *ScheduleDetail) String() string { // Success response var ( - addSubscriptionResponseFieldCustomerId = big.NewInt(1 << 0) + addSubscriptionResponseFieldCustomerID = big.NewInt(1 << 0) addSubscriptionResponseFieldResponseText = big.NewInt(1 << 1) addSubscriptionResponseFieldIsSuccess = big.NewInt(1 << 2) addSubscriptionResponseFieldResponseData = big.NewInt(1 << 3) ) type AddSubscriptionResponse struct { - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` // The identifier of the newly created subscription. @@ -281,11 +281,11 @@ type AddSubscriptionResponse struct { rawJSON json.RawMessage } -func (a *AddSubscriptionResponse) GetCustomerId() *CustomerId { +func (a *AddSubscriptionResponse) GetCustomerID() *CustomerID { if a == nil { return nil } - return a.CustomerId + return a.CustomerID } func (a *AddSubscriptionResponse) GetResponseText() ResponseText { @@ -323,11 +323,11 @@ func (a *AddSubscriptionResponse) require(field *big.Int) { a.explicitFields.Or(a.explicitFields, field) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddSubscriptionResponse) SetCustomerId(customerId *CustomerId) { - a.CustomerId = customerId - a.require(addSubscriptionResponseFieldCustomerId) +func (a *AddSubscriptionResponse) SetCustomerID(customerID *CustomerID) { + a.CustomerID = customerID + a.require(addSubscriptionResponseFieldCustomerID) } // SetResponseText sets the ResponseText field and marks it as non-optional; @@ -601,14 +601,14 @@ func (r *RequestSchedulePaymentMethod) Accept(visitor RequestSchedulePaymentMeth // The required and recommended fields for a payment made with a stored payment method. var ( requestSchedulePaymentMethodInitiatorFieldInitiator = big.NewInt(1 << 0) - requestSchedulePaymentMethodInitiatorFieldStoredMethodId = big.NewInt(1 << 1) + requestSchedulePaymentMethodInitiatorFieldStoredMethodID = big.NewInt(1 << 1) requestSchedulePaymentMethodInitiatorFieldStoredMethodUsageType = big.NewInt(1 << 2) ) type RequestSchedulePaymentMethodInitiator struct { Initiator *Initiator `json:"initiator,omitempty" url:"initiator,omitempty"` // Payabli identifier of a tokenized payment method. - StoredMethodId *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *Storedmethodid `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"storedMethodUsageType,omitempty" url:"storedMethodUsageType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -625,11 +625,11 @@ func (r *RequestSchedulePaymentMethodInitiator) GetInitiator() *Initiator { return r.Initiator } -func (r *RequestSchedulePaymentMethodInitiator) GetStoredMethodId() *Storedmethodid { +func (r *RequestSchedulePaymentMethodInitiator) GetStoredMethodID() *Storedmethodid { if r == nil { return nil } - return r.StoredMethodId + return r.StoredMethodID } func (r *RequestSchedulePaymentMethodInitiator) GetStoredMethodUsageType() *StoredMethodUsageType { @@ -660,11 +660,11 @@ func (r *RequestSchedulePaymentMethodInitiator) SetInitiator(initiator *Initiato r.require(requestSchedulePaymentMethodInitiatorFieldInitiator) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (r *RequestSchedulePaymentMethodInitiator) SetStoredMethodId(storedMethodId *Storedmethodid) { - r.StoredMethodId = storedMethodId - r.require(requestSchedulePaymentMethodInitiatorFieldStoredMethodId) +func (r *RequestSchedulePaymentMethodInitiator) SetStoredMethodID(storedMethodID *Storedmethodid) { + r.StoredMethodID = storedMethodID + r.require(requestSchedulePaymentMethodInitiatorFieldStoredMethodID) } // SetStoredMethodUsageType sets the StoredMethodUsageType field and marks it as non-optional; @@ -941,7 +941,7 @@ var ( updateSubscriptionResponseFieldIsSuccess = big.NewInt(1 << 0) updateSubscriptionResponseFieldResponseData = big.NewInt(1 << 1) updateSubscriptionResponseFieldResponseText = big.NewInt(1 << 2) - updateSubscriptionResponseFieldCustomerId = big.NewInt(1 << 3) + updateSubscriptionResponseFieldCustomerID = big.NewInt(1 << 3) ) type UpdateSubscriptionResponse struct { @@ -951,7 +951,7 @@ type UpdateSubscriptionResponse struct { // If `isSuccess` = false, this contains the reason for the failure. ResponseData *string `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -981,11 +981,11 @@ func (u *UpdateSubscriptionResponse) GetResponseText() ResponseText { return u.ResponseText } -func (u *UpdateSubscriptionResponse) GetCustomerId() *CustomerId { +func (u *UpdateSubscriptionResponse) GetCustomerID() *CustomerID { if u == nil { return nil } - return u.CustomerId + return u.CustomerID } func (u *UpdateSubscriptionResponse) GetExtraProperties() map[string]interface{} { @@ -1023,11 +1023,11 @@ func (u *UpdateSubscriptionResponse) SetResponseText(responseText ResponseText) u.require(updateSubscriptionResponseFieldResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UpdateSubscriptionResponse) SetCustomerId(customerId *CustomerId) { - u.CustomerId = customerId - u.require(updateSubscriptionResponseFieldCustomerId) +func (u *UpdateSubscriptionResponse) SetCustomerID(customerID *CustomerID) { + u.CustomerID = customerID + u.require(updateSubscriptionResponseFieldCustomerID) } func (u *UpdateSubscriptionResponse) UnmarshalJSON(data []byte) error { diff --git a/subscription/client.go b/subscription/client.go index 6850356..54a91f1 100644 --- a/subscription/client.go +++ b/subscription/client.go @@ -36,12 +36,12 @@ func NewClient(options *core.RequestOptions) *Client { func (c *Client) GetSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, opts ...option.RequestOption, ) (*payabli.SubscriptionQueryRecords, error) { response, err := c.WithRawResponse.GetSubscription( ctx, - subId, + subID, opts..., ) if err != nil { @@ -71,12 +71,12 @@ func (c *Client) NewSubscription( func (c *Client) RemoveSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, opts ...option.RequestOption, ) (*payabli.RemoveSubscriptionResponse, error) { response, err := c.WithRawResponse.RemoveSubscription( ctx, - subId, + subID, opts..., ) if err != nil { @@ -89,13 +89,13 @@ func (c *Client) RemoveSubscription( func (c *Client) UpdateSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, request *payabli.RequestUpdateSchedule, opts ...option.RequestOption, ) (*payabli.UpdateSubscriptionResponse, error) { response, err := c.WithRawResponse.UpdateSubscription( ctx, - subId, + subID, request, opts..., ) diff --git a/subscription/raw_client.go b/subscription/raw_client.go index 2e38d4e..84832d6 100644 --- a/subscription/raw_client.go +++ b/subscription/raw_client.go @@ -33,7 +33,7 @@ func NewRawClient(options *core.RequestOptions) *RawClient { func (r *RawClient) GetSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, opts ...option.RequestOption, ) (*core.Response[*payabli.SubscriptionQueryRecords], error) { options := core.NewRequestOptions(opts...) @@ -44,7 +44,7 @@ func (r *RawClient) GetSubscription( ) endpointURL := internal.EncodeURL( baseURL+"/Subscription/%v", - subId, + subID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -131,7 +131,7 @@ func (r *RawClient) NewSubscription( func (r *RawClient) RemoveSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, opts ...option.RequestOption, ) (*core.Response[*payabli.RemoveSubscriptionResponse], error) { options := core.NewRequestOptions(opts...) @@ -142,7 +142,7 @@ func (r *RawClient) RemoveSubscription( ) endpointURL := internal.EncodeURL( baseURL+"/Subscription/%v", - subId, + subID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -176,7 +176,7 @@ func (r *RawClient) RemoveSubscription( func (r *RawClient) UpdateSubscription( ctx context.Context, // The subscription ID. - subId int, + subID int, request *payabli.RequestUpdateSchedule, opts ...option.RequestOption, ) (*core.Response[*payabli.UpdateSubscriptionResponse], error) { @@ -188,7 +188,7 @@ func (r *RawClient) UpdateSubscription( ) endpointURL := internal.EncodeURL( baseURL+"/Subscription/%v", - subId, + subID, ) headers := internal.MergeHeaders( r.options.ToHeader(), diff --git a/subscription/subscription_test/subscription_test.go b/subscription/subscription_test/subscription_test.go index 1516ef1..2e7e002 100644 --- a/subscription/subscription_test/subscription_test.go +++ b/subscription/subscription_test/subscription_test.go @@ -97,7 +97,7 @@ func TestSubscriptionNewSubscriptionWithWireMock( request := &payabli.RequestSchedule{ Body: &payabli.SubscriptionRequestBody{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -133,7 +133,7 @@ func TestSubscriptionNewSubscriptionWithWireMock( "03-20-2025", ), Frequency: payabli.FrequencyWeekly.Ptr(), - PlanId: payabli.Int( + PlanID: payabli.Int( 1, ), StartDate: payabli.String( diff --git a/subscription_test.go b/subscription_test.go index fda1b86..fef32a3 100644 --- a/subscription_test.go +++ b/subscription_test.go @@ -233,11 +233,11 @@ func TestSettersScheduleDetail(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPlanId", func(t *testing.T) { + t.Run("SetPlanID", func(t *testing.T) { obj := &ScheduleDetail{} - var fernTestValuePlanId *int - obj.SetPlanId(fernTestValuePlanId) - assert.Equal(t, fernTestValuePlanId, obj.PlanId) + var fernTestValuePlanID *int + obj.SetPlanID(fernTestValuePlanID) + assert.Equal(t, fernTestValuePlanID, obj.PlanID) assert.NotNil(t, obj.explicitFields) }) @@ -318,28 +318,28 @@ func TestGettersScheduleDetail(t *testing.T) { _ = obj.GetFrequency() // Should return zero value }) - t.Run("GetPlanId", func(t *testing.T) { + t.Run("GetPlanID", func(t *testing.T) { t.Parallel() // Arrange obj := &ScheduleDetail{} var expected *int - obj.PlanId = expected + obj.PlanID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPlanId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPlanID(), "getter should return the property value") }) - t.Run("GetPlanId_NilValue", func(t *testing.T) { + t.Run("GetPlanID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ScheduleDetail{} - obj.PlanId = nil + obj.PlanID = nil // Act & Assert - assert.Nil(t, obj.GetPlanId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPlanID(), "getter should return nil when property is nil") }) - t.Run("GetPlanId_NilReceiver", func(t *testing.T) { + t.Run("GetPlanID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ScheduleDetail // Should not panic - getters should handle nil receiver gracefully @@ -348,7 +348,7 @@ func TestGettersScheduleDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPlanId() // Should return zero value + _ = obj.GetPlanID() // Should return zero value }) t.Run("GetStartDate", func(t *testing.T) { @@ -449,14 +449,14 @@ func TestSettersMarkExplicitScheduleDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPlanId_MarksExplicit", func(t *testing.T) { + t.Run("SetPlanID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ScheduleDetail{} - var fernTestValuePlanId *int + var fernTestValuePlanID *int // Act - obj.SetPlanId(fernTestValuePlanId) + obj.SetPlanID(fernTestValuePlanID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -514,11 +514,11 @@ func TestSettersMarkExplicitScheduleDetail(t *testing.T) { } func TestSettersAddSubscriptionResponse(t *testing.T) { - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &AddSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -549,28 +549,28 @@ func TestSettersAddSubscriptionResponse(t *testing.T) { } func TestGettersAddSubscriptionResponse(t *testing.T) { - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &AddSubscriptionResponse{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AddSubscriptionResponse{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AddSubscriptionResponse // Should not panic - getters should handle nil receiver gracefully @@ -579,7 +579,7 @@ func TestGettersAddSubscriptionResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetResponseText", func(t *testing.T) { @@ -664,14 +664,14 @@ func TestGettersAddSubscriptionResponse(t *testing.T) { } func TestSettersMarkExplicitAddSubscriptionResponse(t *testing.T) { - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1116,11 +1116,11 @@ func TestSettersRequestSchedulePaymentMethodInitiator(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &RequestSchedulePaymentMethodInitiator{} - var fernTestValueStoredMethodId *Storedmethodid - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *Storedmethodid + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -1168,28 +1168,28 @@ func TestGettersRequestSchedulePaymentMethodInitiator(t *testing.T) { _ = obj.GetInitiator() // Should return zero value }) - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestSchedulePaymentMethodInitiator{} var expected *Storedmethodid - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestSchedulePaymentMethodInitiator{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *RequestSchedulePaymentMethodInitiator // Should not panic - getters should handle nil receiver gracefully @@ -1198,7 +1198,7 @@ func TestGettersRequestSchedulePaymentMethodInitiator(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) t.Run("GetStoredMethodUsageType", func(t *testing.T) { @@ -1268,14 +1268,14 @@ func TestSettersMarkExplicitRequestSchedulePaymentMethodInitiator(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &RequestSchedulePaymentMethodInitiator{} - var fernTestValueStoredMethodId *Storedmethodid + var fernTestValueStoredMethodID *Storedmethodid // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2014,11 +2014,11 @@ func TestSettersUpdateSubscriptionResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &UpdateSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -2114,28 +2114,28 @@ func TestGettersUpdateSubscriptionResponse(t *testing.T) { _ = obj.GetResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdateSubscriptionResponse{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdateSubscriptionResponse{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *UpdateSubscriptionResponse // Should not panic - getters should handle nil receiver gracefully @@ -2144,7 +2144,7 @@ func TestGettersUpdateSubscriptionResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) } @@ -2243,14 +2243,14 @@ func TestSettersMarkExplicitUpdateSubscriptionResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UpdateSubscriptionResponse{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/templates.go b/templates.go index 85b53de..5fae926 100644 --- a/templates.go +++ b/templates.go @@ -793,7 +793,7 @@ var ( achServiceFieldDiscountFrequency = big.NewInt(1 << 9) achServiceFieldFundingRollup = big.NewInt(1 << 10) achServiceFieldGateway = big.NewInt(1 << 11) - achServiceFieldPdfTemplateId = big.NewInt(1 << 12) + achServiceFieldPdfTemplateID = big.NewInt(1 << 12) achServiceFieldPricingPlan = big.NewInt(1 << 13) achServiceFieldPricingType = big.NewInt(1 << 14) achServiceFieldProcessor = big.NewInt(1 << 15) @@ -816,7 +816,7 @@ type AchService struct { DiscountFrequency *TemplateElement `json:"discountFrequency,omitempty" url:"discountFrequency,omitempty"` FundingRollup *TemplateElement `json:"fundingRollup,omitempty" url:"fundingRollup,omitempty"` Gateway *TemplateElement `json:"gateway,omitempty" url:"gateway,omitempty"` - PdfTemplateId *TemplateElement `json:"pdfTemplateId,omitempty" url:"pdfTemplateId,omitempty"` + PdfTemplateID *TemplateElement `json:"pdfTemplateId,omitempty" url:"pdfTemplateId,omitempty"` PricingPlan *int64 `json:"pricingPlan,omitempty" url:"pricingPlan,omitempty"` PricingType *TemplateElement `json:"pricingType,omitempty" url:"pricingType,omitempty"` Processor *TemplateElement `json:"processor,omitempty" url:"processor,omitempty"` @@ -915,11 +915,11 @@ func (a *AchService) GetGateway() *TemplateElement { return a.Gateway } -func (a *AchService) GetPdfTemplateId() *TemplateElement { +func (a *AchService) GetPdfTemplateID() *TemplateElement { if a == nil { return nil } - return a.PdfTemplateId + return a.PdfTemplateID } func (a *AchService) GetPricingPlan() *int64 { @@ -1062,11 +1062,11 @@ func (a *AchService) SetGateway(gateway *TemplateElement) { a.require(achServiceFieldGateway) } -// SetPdfTemplateId sets the PdfTemplateId field and marks it as non-optional; +// SetPdfTemplateID sets the PdfTemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AchService) SetPdfTemplateId(pdfTemplateId *TemplateElement) { - a.PdfTemplateId = pdfTemplateId - a.require(achServiceFieldPdfTemplateId) +func (a *AchService) SetPdfTemplateID(pdfTemplateID *TemplateElement) { + a.PdfTemplateID = pdfTemplateID + a.require(achServiceFieldPdfTemplateID) } // SetPricingPlan sets the PricingPlan field and marks it as non-optional; @@ -1767,11 +1767,11 @@ func (b *BasicTemplateElement) String() string { } var ( - boardingLinkApiResponseFieldResponseData = big.NewInt(1 << 0) - boardingLinkApiResponseFieldResponseText = big.NewInt(1 << 1) + boardingLinkAPIResponseFieldResponseData = big.NewInt(1 << 0) + boardingLinkAPIResponseFieldResponseText = big.NewInt(1 << 1) ) -type BoardingLinkApiResponse struct { +type BoardingLinkAPIResponse struct { // Reference name for boarding link (if responseText = Success) or // List of empty fields separated by comma (if responseText = Fail) ResponseData *string `json:"responseData,omitempty" url:"responseData,omitempty"` @@ -1784,28 +1784,28 @@ type BoardingLinkApiResponse struct { rawJSON json.RawMessage } -func (b *BoardingLinkApiResponse) GetResponseData() *string { +func (b *BoardingLinkAPIResponse) GetResponseData() *string { if b == nil { return nil } return b.ResponseData } -func (b *BoardingLinkApiResponse) GetResponseText() ResponseText { +func (b *BoardingLinkAPIResponse) GetResponseText() ResponseText { if b == nil { return "" } return b.ResponseText } -func (b *BoardingLinkApiResponse) GetExtraProperties() map[string]interface{} { +func (b *BoardingLinkAPIResponse) GetExtraProperties() map[string]interface{} { if b == nil { return nil } return b.extraProperties } -func (b *BoardingLinkApiResponse) require(field *big.Int) { +func (b *BoardingLinkAPIResponse) require(field *big.Int) { if b.explicitFields == nil { b.explicitFields = big.NewInt(0) } @@ -1814,25 +1814,25 @@ func (b *BoardingLinkApiResponse) require(field *big.Int) { // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingLinkApiResponse) SetResponseData(responseData *string) { +func (b *BoardingLinkAPIResponse) SetResponseData(responseData *string) { b.ResponseData = responseData - b.require(boardingLinkApiResponseFieldResponseData) + b.require(boardingLinkAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingLinkApiResponse) SetResponseText(responseText ResponseText) { +func (b *BoardingLinkAPIResponse) SetResponseText(responseText ResponseText) { b.ResponseText = responseText - b.require(boardingLinkApiResponseFieldResponseText) + b.require(boardingLinkAPIResponseFieldResponseText) } -func (b *BoardingLinkApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler BoardingLinkApiResponse +func (b *BoardingLinkAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler BoardingLinkAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *b = BoardingLinkApiResponse(value) + *b = BoardingLinkAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *b) if err != nil { return err @@ -1842,8 +1842,8 @@ func (b *BoardingLinkApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (b *BoardingLinkApiResponse) MarshalJSON() ([]byte, error) { - type embed BoardingLinkApiResponse +func (b *BoardingLinkAPIResponse) MarshalJSON() ([]byte, error) { + type embed BoardingLinkAPIResponse var marshaler = struct { embed }{ @@ -1853,7 +1853,7 @@ func (b *BoardingLinkApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (b *BoardingLinkApiResponse) String() string { +func (b *BoardingLinkAPIResponse) String() string { if b == nil { return "" } @@ -1872,11 +1872,11 @@ var ( boardingQueryLinksFieldAcceptOauth = big.NewInt(1 << 0) boardingQueryLinksFieldAcceptRegister = big.NewInt(1 << 1) boardingQueryLinksFieldEntryAttributes = big.NewInt(1 << 2) - boardingQueryLinksFieldId = big.NewInt(1 << 3) + boardingQueryLinksFieldID = big.NewInt(1 << 3) boardingQueryLinksFieldLastUpdated = big.NewInt(1 << 4) boardingQueryLinksFieldOrgParentName = big.NewInt(1 << 5) boardingQueryLinksFieldReferenceName = big.NewInt(1 << 6) - boardingQueryLinksFieldReferenceTemplateId = big.NewInt(1 << 7) + boardingQueryLinksFieldReferenceTemplateID = big.NewInt(1 << 7) boardingQueryLinksFieldTemplateCode = big.NewInt(1 << 8) boardingQueryLinksFieldTemplateName = big.NewInt(1 << 9) ) @@ -1885,11 +1885,11 @@ type BoardingQueryLinks struct { AcceptOauth *AcceptOauth `json:"acceptOauth,omitempty" url:"acceptOauth,omitempty"` AcceptRegister *AcceptRegister `json:"acceptRegister,omitempty" url:"acceptRegister,omitempty"` EntryAttributes *EntryAttributes `json:"entryAttributes,omitempty" url:"entryAttributes,omitempty"` - Id *BoardingLinkId `json:"id,omitempty" url:"id,omitempty"` + ID *BoardingLinkID `json:"id,omitempty" url:"id,omitempty"` LastUpdated *LastModified `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` OrgParentName *OrgParentName `json:"orgParentName,omitempty" url:"orgParentName,omitempty"` ReferenceName *ReferenceName `json:"referenceName,omitempty" url:"referenceName,omitempty"` - ReferenceTemplateId *ReferenceTemplateId `json:"referenceTemplateId,omitempty" url:"referenceTemplateId,omitempty"` + ReferenceTemplateID *ReferenceTemplateID `json:"referenceTemplateId,omitempty" url:"referenceTemplateId,omitempty"` TemplateCode *TemplateCode `json:"templateCode,omitempty" url:"templateCode,omitempty"` TemplateName *TemplateName `json:"templateName,omitempty" url:"templateName,omitempty"` @@ -1921,11 +1921,11 @@ func (b *BoardingQueryLinks) GetEntryAttributes() *EntryAttributes { return b.EntryAttributes } -func (b *BoardingQueryLinks) GetId() *BoardingLinkId { +func (b *BoardingQueryLinks) GetID() *BoardingLinkID { if b == nil { return nil } - return b.Id + return b.ID } func (b *BoardingQueryLinks) GetLastUpdated() *LastModified { @@ -1949,11 +1949,11 @@ func (b *BoardingQueryLinks) GetReferenceName() *ReferenceName { return b.ReferenceName } -func (b *BoardingQueryLinks) GetReferenceTemplateId() *ReferenceTemplateId { +func (b *BoardingQueryLinks) GetReferenceTemplateID() *ReferenceTemplateID { if b == nil { return nil } - return b.ReferenceTemplateId + return b.ReferenceTemplateID } func (b *BoardingQueryLinks) GetTemplateCode() *TemplateCode { @@ -2005,11 +2005,11 @@ func (b *BoardingQueryLinks) SetEntryAttributes(entryAttributes *EntryAttributes b.require(boardingQueryLinksFieldEntryAttributes) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingQueryLinks) SetId(id *BoardingLinkId) { - b.Id = id - b.require(boardingQueryLinksFieldId) +func (b *BoardingQueryLinks) SetID(id *BoardingLinkID) { + b.ID = id + b.require(boardingQueryLinksFieldID) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -2033,11 +2033,11 @@ func (b *BoardingQueryLinks) SetReferenceName(referenceName *ReferenceName) { b.require(boardingQueryLinksFieldReferenceName) } -// SetReferenceTemplateId sets the ReferenceTemplateId field and marks it as non-optional; +// SetReferenceTemplateID sets the ReferenceTemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BoardingQueryLinks) SetReferenceTemplateId(referenceTemplateId *ReferenceTemplateId) { - b.ReferenceTemplateId = referenceTemplateId - b.require(boardingQueryLinksFieldReferenceTemplateId) +func (b *BoardingQueryLinks) SetReferenceTemplateID(referenceTemplateID *ReferenceTemplateID) { + b.ReferenceTemplateID = referenceTemplateID + b.require(boardingQueryLinksFieldReferenceTemplateID) } // SetTemplateCode sets the TemplateCode field and marks it as non-optional; @@ -3338,7 +3338,7 @@ var ( cardServiceFieldFundingRollup = big.NewInt(1 << 21) cardServiceFieldGateway = big.NewInt(1 << 22) cardServiceFieldPassThroughCost = big.NewInt(1 << 23) - cardServiceFieldPdfTemplateId = big.NewInt(1 << 24) + cardServiceFieldPdfTemplateID = big.NewInt(1 << 24) cardServiceFieldPricingPlan = big.NewInt(1 << 25) cardServiceFieldPricingType = big.NewInt(1 << 26) cardServiceFieldProcessor = big.NewInt(1 << 27) @@ -3373,7 +3373,7 @@ type CardService struct { FundingRollup *TemplateElement `json:"fundingRollup,omitempty" url:"fundingRollup,omitempty"` Gateway *TemplateElement `json:"gateway,omitempty" url:"gateway,omitempty"` PassThroughCost *TemplateElement `json:"passThroughCost,omitempty" url:"passThroughCost,omitempty"` - PdfTemplateId *TemplateElement `json:"pdfTemplateId,omitempty" url:"pdfTemplateId,omitempty"` + PdfTemplateID *TemplateElement `json:"pdfTemplateId,omitempty" url:"pdfTemplateId,omitempty"` PricingPlan *int64 `json:"pricingPlan,omitempty" url:"pricingPlan,omitempty"` PricingType *TemplateElement `json:"pricingType,omitempty" url:"pricingType,omitempty"` Processor *TemplateElement `json:"processor,omitempty" url:"processor,omitempty"` @@ -3556,11 +3556,11 @@ func (c *CardService) GetPassThroughCost() *TemplateElement { return c.PassThroughCost } -func (c *CardService) GetPdfTemplateId() *TemplateElement { +func (c *CardService) GetPdfTemplateID() *TemplateElement { if c == nil { return nil } - return c.PdfTemplateId + return c.PdfTemplateID } func (c *CardService) GetPricingPlan() *int64 { @@ -3787,11 +3787,11 @@ func (c *CardService) SetPassThroughCost(passThroughCost *TemplateElement) { c.require(cardServiceFieldPassThroughCost) } -// SetPdfTemplateId sets the PdfTemplateId field and marks it as non-optional; +// SetPdfTemplateID sets the PdfTemplateID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CardService) SetPdfTemplateId(pdfTemplateId *TemplateElement) { - c.PdfTemplateId = pdfTemplateId - c.require(cardServiceFieldPdfTemplateId) +func (c *CardService) SetPdfTemplateID(pdfTemplateID *TemplateElement) { + c.PdfTemplateID = pdfTemplateID + c.require(cardServiceFieldPdfTemplateID) } // SetPricingPlan sets the PricingPlan field and marks it as non-optional; @@ -5192,14 +5192,14 @@ func (o *OwnersSection) String() string { } var ( - payabliApiResponseTemplateIdFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseTemplateIdFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponseTemplateIdFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseTemplateIdFieldResponseData = big.NewInt(1 << 3) - payabliApiResponseTemplateIdFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseTemplateIDFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseTemplateIDFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponseTemplateIDFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseTemplateIDFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseTemplateIDFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseTemplateId struct { +type PayabliAPIResponseTemplateID struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` @@ -5214,49 +5214,49 @@ type PayabliApiResponseTemplateId struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseTemplateId) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseTemplateID) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseTemplateId) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponseTemplateID) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponseTemplateId) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponseTemplateID) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponseTemplateId) GetResponseData() *Responsedatanonobject { +func (p *PayabliAPIResponseTemplateID) GetResponseData() *Responsedatanonobject { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseTemplateId) GetResponseText() ResponseText { +func (p *PayabliAPIResponseTemplateID) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseTemplateId) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseTemplateID) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseTemplateId) require(field *big.Int) { +func (p *PayabliAPIResponseTemplateID) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -5265,46 +5265,46 @@ func (p *PayabliApiResponseTemplateId) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseTemplateId) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseTemplateID) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseTemplateIdFieldIsSuccess) + p.require(payabliAPIResponseTemplateIDFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseTemplateId) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponseTemplateID) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponseTemplateIdFieldPageIdentifier) + p.require(payabliAPIResponseTemplateIDFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseTemplateId) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponseTemplateID) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponseTemplateIdFieldResponseCode) + p.require(payabliAPIResponseTemplateIDFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseTemplateId) SetResponseData(responseData *Responsedatanonobject) { +func (p *PayabliAPIResponseTemplateID) SetResponseData(responseData *Responsedatanonobject) { p.ResponseData = responseData - p.require(payabliApiResponseTemplateIdFieldResponseData) + p.require(payabliAPIResponseTemplateIDFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseTemplateId) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseTemplateID) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseTemplateIdFieldResponseText) + p.require(payabliAPIResponseTemplateIDFieldResponseText) } -func (p *PayabliApiResponseTemplateId) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseTemplateId +func (p *PayabliAPIResponseTemplateID) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseTemplateID var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseTemplateId(value) + *p = PayabliAPIResponseTemplateID(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -5314,8 +5314,8 @@ func (p *PayabliApiResponseTemplateId) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseTemplateId) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseTemplateId +func (p *PayabliAPIResponseTemplateID) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseTemplateID var marshaler = struct { embed }{ @@ -5325,7 +5325,7 @@ func (p *PayabliApiResponseTemplateId) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseTemplateId) String() string { +func (p *PayabliAPIResponseTemplateID) String() string { if p == nil { return "" } @@ -5341,7 +5341,7 @@ func (p *PayabliApiResponseTemplateId) String() string { } // Used to identify the risk workflow used to review this account. Policy IDs must be created before using automatic underwriting, and is **required** when `method` is `automatic`. -type PolicyId = string +type PolicyID = string // The element's column position. type PosCol = int @@ -6846,7 +6846,7 @@ var ( templateQueryRecordFieldAddPrice = big.NewInt(1 << 0) templateQueryRecordFieldBoardingLinks = big.NewInt(1 << 1) templateQueryRecordFieldCreatedAt = big.NewInt(1 << 2) - templateQueryRecordFieldIdTemplate = big.NewInt(1 << 3) + templateQueryRecordFieldIDTemplate = big.NewInt(1 << 3) templateQueryRecordFieldIsRoot = big.NewInt(1 << 4) templateQueryRecordFieldOrgParentName = big.NewInt(1 << 5) templateQueryRecordFieldRecipientEmailNotification = big.NewInt(1 << 6) @@ -6862,7 +6862,7 @@ type TemplateQueryRecord struct { AddPrice *bool `json:"addPrice,omitempty" url:"addPrice,omitempty"` BoardingLinks []*BoardingQueryLinks `json:"boardingLinks,omitempty" url:"boardingLinks,omitempty"` CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` - IdTemplate *int64 `json:"idTemplate,omitempty" url:"idTemplate,omitempty"` + IDTemplate *int64 `json:"idTemplate,omitempty" url:"idTemplate,omitempty"` IsRoot *IsRoot `json:"isRoot,omitempty" url:"isRoot,omitempty"` OrgParentName *OrgParentName `json:"orgParentName,omitempty" url:"orgParentName,omitempty"` RecipientEmailNotification *RecipientEmailNotification `json:"recipientEmailNotification,omitempty" url:"recipientEmailNotification,omitempty"` @@ -6901,11 +6901,11 @@ func (t *TemplateQueryRecord) GetCreatedAt() *CreatedAt { return t.CreatedAt } -func (t *TemplateQueryRecord) GetIdTemplate() *int64 { +func (t *TemplateQueryRecord) GetIDTemplate() *int64 { if t == nil { return nil } - return t.IdTemplate + return t.IDTemplate } func (t *TemplateQueryRecord) GetIsRoot() *IsRoot { @@ -7006,11 +7006,11 @@ func (t *TemplateQueryRecord) SetCreatedAt(createdAt *CreatedAt) { t.require(templateQueryRecordFieldCreatedAt) } -// SetIdTemplate sets the IdTemplate field and marks it as non-optional; +// SetIDTemplate sets the IDTemplate field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TemplateQueryRecord) SetIdTemplate(idTemplate *int64) { - t.IdTemplate = idTemplate - t.require(templateQueryRecordFieldIdTemplate) +func (t *TemplateQueryRecord) SetIDTemplate(idTemplate *int64) { + t.IDTemplate = idTemplate + t.require(templateQueryRecordFieldIDTemplate) } // SetIsRoot sets the IsRoot field and marks it as non-optional; @@ -7554,12 +7554,12 @@ func (u UnderWritingMethod) Ptr() *UnderWritingMethod { // Underwriting data is used to manage risk orchestration in the boarding application lifecycle. var ( underwritingDataResponseFieldMethod = big.NewInt(1 << 0) - underwritingDataResponseFieldPolicyId = big.NewInt(1 << 1) + underwritingDataResponseFieldPolicyID = big.NewInt(1 << 1) ) type UnderwritingDataResponse struct { Method *UnderWritingMethod `json:"method,omitempty" url:"method,omitempty"` - PolicyId *PolicyId `json:"policyId,omitempty" url:"policyId,omitempty"` + PolicyID *PolicyID `json:"policyId,omitempty" url:"policyId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -7575,11 +7575,11 @@ func (u *UnderwritingDataResponse) GetMethod() *UnderWritingMethod { return u.Method } -func (u *UnderwritingDataResponse) GetPolicyId() *PolicyId { +func (u *UnderwritingDataResponse) GetPolicyID() *PolicyID { if u == nil { return nil } - return u.PolicyId + return u.PolicyID } func (u *UnderwritingDataResponse) GetExtraProperties() map[string]interface{} { @@ -7603,11 +7603,11 @@ func (u *UnderwritingDataResponse) SetMethod(method *UnderWritingMethod) { u.require(underwritingDataResponseFieldMethod) } -// SetPolicyId sets the PolicyId field and marks it as non-optional; +// SetPolicyID sets the PolicyID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UnderwritingDataResponse) SetPolicyId(policyId *PolicyId) { - u.PolicyId = policyId - u.require(underwritingDataResponseFieldPolicyId) +func (u *UnderwritingDataResponse) SetPolicyID(policyID *PolicyID) { + u.PolicyID = policyID + u.require(underwritingDataResponseFieldPolicyID) } func (u *UnderwritingDataResponse) UnmarshalJSON(data []byte) error { diff --git a/templates/client.go b/templates/client.go index 424481b..40c4cd1 100644 --- a/templates/client.go +++ b/templates/client.go @@ -36,12 +36,12 @@ func NewClient(options *core.RequestOptions) *Client { func (c *Client) DeleteTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseTemplateId, error) { +) (*payabli.PayabliAPIResponseTemplateID, error) { response, err := c.WithRawResponse.DeleteTemplate( ctx, - templateId, + templateID, opts..., ) if err != nil { @@ -54,14 +54,14 @@ func (c *Client) DeleteTemplate( func (c *Client) GetlinkTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, // Ignore read-only and empty fields Default is `false`. If `ignoreEmpty` = `false` and any field is empty, then the request returns a failure response. If `ignoreEmpty` = `true`, the request returns the boarding link name regardless of whether fields are empty. ignoreEmpty bool, opts ...option.RequestOption, -) (*payabli.BoardingLinkApiResponse, error) { +) (*payabli.BoardingLinkAPIResponse, error) { response, err := c.WithRawResponse.GetlinkTemplate( ctx, - templateId, + templateID, ignoreEmpty, opts..., ) @@ -75,12 +75,12 @@ func (c *Client) GetlinkTemplate( func (c *Client) GetTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, ) (*payabli.TemplateQueryRecord, error) { response, err := c.WithRawResponse.GetTemplate( ctx, - templateId, + templateID, opts..., ) if err != nil { @@ -93,13 +93,13 @@ func (c *Client) GetTemplate( func (c *Client) ListTemplates( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTemplatesRequest, opts ...option.RequestOption, ) (*payabli.TemplateQueryResponse, error) { response, err := c.WithRawResponse.ListTemplates( ctx, - orgId, + orgID, request, opts..., ) diff --git a/templates/raw_client.go b/templates/raw_client.go index f3863b6..7f7da83 100644 --- a/templates/raw_client.go +++ b/templates/raw_client.go @@ -33,9 +33,9 @@ func NewRawClient(options *core.RequestOptions) *RawClient { func (r *RawClient) DeleteTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseTemplateId], error) { +) (*core.Response[*payabli.PayabliAPIResponseTemplateID], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -44,13 +44,13 @@ func (r *RawClient) DeleteTemplate( ) endpointURL := internal.EncodeURL( baseURL+"/Templates/%v", - templateId, + templateID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseTemplateId + var response *payabli.PayabliAPIResponseTemplateID raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -68,7 +68,7 @@ func (r *RawClient) DeleteTemplate( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseTemplateId]{ + return &core.Response[*payabli.PayabliAPIResponseTemplateID]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -78,11 +78,11 @@ func (r *RawClient) DeleteTemplate( func (r *RawClient) GetlinkTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, // Ignore read-only and empty fields Default is `false`. If `ignoreEmpty` = `false` and any field is empty, then the request returns a failure response. If `ignoreEmpty` = `true`, the request returns the boarding link name regardless of whether fields are empty. ignoreEmpty bool, opts ...option.RequestOption, -) (*core.Response[*payabli.BoardingLinkApiResponse], error) { +) (*core.Response[*payabli.BoardingLinkAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -91,14 +91,14 @@ func (r *RawClient) GetlinkTemplate( ) endpointURL := internal.EncodeURL( baseURL+"/Templates/getlink/%v/%v", - templateId, + templateID, ignoreEmpty, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.BoardingLinkApiResponse + var response *payabli.BoardingLinkAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -116,7 +116,7 @@ func (r *RawClient) GetlinkTemplate( if err != nil { return nil, err } - return &core.Response[*payabli.BoardingLinkApiResponse]{ + return &core.Response[*payabli.BoardingLinkAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -126,7 +126,7 @@ func (r *RawClient) GetlinkTemplate( func (r *RawClient) GetTemplate( ctx context.Context, // The boarding template ID. Can be found at the end of the boarding template URL in PartnerHub. Example: `https://partner-sandbox.payabli.com/myorganization/boarding/edittemplate/80`. Here, the template ID is `80`. - templateId float64, + templateID float64, opts ...option.RequestOption, ) (*core.Response[*payabli.TemplateQueryRecord], error) { options := core.NewRequestOptions(opts...) @@ -137,7 +137,7 @@ func (r *RawClient) GetTemplate( ) endpointURL := internal.EncodeURL( baseURL+"/Templates/get/%v", - templateId, + templateID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -171,7 +171,7 @@ func (r *RawClient) GetTemplate( func (r *RawClient) ListTemplates( ctx context.Context, // The numeric identifier for organization, assigned by Payabli. - orgId int, + orgID int, request *payabli.ListTemplatesRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.TemplateQueryResponse], error) { @@ -183,7 +183,7 @@ func (r *RawClient) ListTemplates( ) endpointURL := internal.EncodeURL( baseURL+"/Query/templates/%v", - orgId, + orgID, ) queryParams, err := internal.QueryValues(request) if err != nil { diff --git a/templates_test.go b/templates_test.go index 82e36df..8f102bd 100644 --- a/templates_test.go +++ b/templates_test.go @@ -2104,11 +2104,11 @@ func TestSettersAchService(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPdfTemplateId", func(t *testing.T) { + t.Run("SetPdfTemplateID", func(t *testing.T) { obj := &AchService{} - var fernTestValuePdfTemplateId *TemplateElement - obj.SetPdfTemplateId(fernTestValuePdfTemplateId) - assert.Equal(t, fernTestValuePdfTemplateId, obj.PdfTemplateId) + var fernTestValuePdfTemplateID *TemplateElement + obj.SetPdfTemplateID(fernTestValuePdfTemplateID) + assert.Equal(t, fernTestValuePdfTemplateID, obj.PdfTemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -2559,28 +2559,28 @@ func TestGettersAchService(t *testing.T) { _ = obj.GetGateway() // Should return zero value }) - t.Run("GetPdfTemplateId", func(t *testing.T) { + t.Run("GetPdfTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &AchService{} var expected *TemplateElement - obj.PdfTemplateId = expected + obj.PdfTemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPdfTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPdfTemplateID(), "getter should return the property value") }) - t.Run("GetPdfTemplateId_NilValue", func(t *testing.T) { + t.Run("GetPdfTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AchService{} - obj.PdfTemplateId = nil + obj.PdfTemplateID = nil // Act & Assert - assert.Nil(t, obj.GetPdfTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPdfTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetPdfTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetPdfTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AchService // Should not panic - getters should handle nil receiver gracefully @@ -2589,7 +2589,7 @@ func TestGettersAchService(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPdfTemplateId() // Should return zero value + _ = obj.GetPdfTemplateID() // Should return zero value }) t.Run("GetPricingPlan", func(t *testing.T) { @@ -3165,14 +3165,14 @@ func TestSettersMarkExplicitAchService(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPdfTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetPdfTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AchService{} - var fernTestValuePdfTemplateId *TemplateElement + var fernTestValuePdfTemplateID *TemplateElement // Act - obj.SetPdfTemplateId(fernTestValuePdfTemplateId) + obj.SetPdfTemplateID(fernTestValuePdfTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4653,9 +4653,9 @@ func TestSettersMarkExplicitBasicTemplateElement(t *testing.T) { } -func TestSettersBoardingLinkApiResponse(t *testing.T) { +func TestSettersBoardingLinkAPIResponse(t *testing.T) { t.Run("SetResponseData", func(t *testing.T) { - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var fernTestValueResponseData *string obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -4663,7 +4663,7 @@ func TestSettersBoardingLinkApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -4672,11 +4672,11 @@ func TestSettersBoardingLinkApiResponse(t *testing.T) { } -func TestGettersBoardingLinkApiResponse(t *testing.T) { +func TestGettersBoardingLinkAPIResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var expected *string obj.ResponseData = expected @@ -4687,7 +4687,7 @@ func TestGettersBoardingLinkApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -4696,7 +4696,7 @@ func TestGettersBoardingLinkApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *BoardingLinkApiResponse + var obj *BoardingLinkAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -4709,7 +4709,7 @@ func TestGettersBoardingLinkApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -4719,7 +4719,7 @@ func TestGettersBoardingLinkApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *BoardingLinkApiResponse + var obj *BoardingLinkAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -4731,11 +4731,11 @@ func TestGettersBoardingLinkApiResponse(t *testing.T) { } -func TestSettersMarkExplicitBoardingLinkApiResponse(t *testing.T) { +func TestSettersMarkExplicitBoardingLinkAPIResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var fernTestValueResponseData *string // Act @@ -4766,7 +4766,7 @@ func TestSettersMarkExplicitBoardingLinkApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -4821,11 +4821,11 @@ func TestSettersBoardingQueryLinks(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BoardingQueryLinks{} - var fernTestValueId *BoardingLinkId - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *BoardingLinkID + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -4853,11 +4853,11 @@ func TestSettersBoardingQueryLinks(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceTemplateId", func(t *testing.T) { + t.Run("SetReferenceTemplateID", func(t *testing.T) { obj := &BoardingQueryLinks{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) - assert.Equal(t, fernTestValueReferenceTemplateId, obj.ReferenceTemplateId) + var fernTestValueReferenceTemplateID *ReferenceTemplateID + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) + assert.Equal(t, fernTestValueReferenceTemplateID, obj.ReferenceTemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -4979,28 +4979,28 @@ func TestGettersBoardingQueryLinks(t *testing.T) { _ = obj.GetEntryAttributes() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - var expected *BoardingLinkId - obj.Id = expected + var expected *BoardingLinkID + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BoardingQueryLinks // Should not panic - getters should handle nil receiver gracefully @@ -5009,7 +5009,7 @@ func TestGettersBoardingQueryLinks(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -5111,28 +5111,28 @@ func TestGettersBoardingQueryLinks(t *testing.T) { _ = obj.GetReferenceName() // Should return zero value }) - t.Run("GetReferenceTemplateId", func(t *testing.T) { + t.Run("GetReferenceTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - var expected *ReferenceTemplateId - obj.ReferenceTemplateId = expected + var expected *ReferenceTemplateID + obj.ReferenceTemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceTemplateID(), "getter should return the property value") }) - t.Run("GetReferenceTemplateId_NilValue", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - obj.ReferenceTemplateId = nil + obj.ReferenceTemplateID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BoardingQueryLinks // Should not panic - getters should handle nil receiver gracefully @@ -5141,7 +5141,7 @@ func TestGettersBoardingQueryLinks(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceTemplateId() // Should return zero value + _ = obj.GetReferenceTemplateID() // Should return zero value }) t.Run("GetTemplateCode", func(t *testing.T) { @@ -5306,14 +5306,14 @@ func TestSettersMarkExplicitBoardingQueryLinks(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - var fernTestValueId *BoardingLinkId + var fernTestValueID *BoardingLinkID // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5430,14 +5430,14 @@ func TestSettersMarkExplicitBoardingQueryLinks(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BoardingQueryLinks{} - var fernTestValueReferenceTemplateId *ReferenceTemplateId + var fernTestValueReferenceTemplateID *ReferenceTemplateID // Act - obj.SetReferenceTemplateId(fernTestValueReferenceTemplateId) + obj.SetReferenceTemplateID(fernTestValueReferenceTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9372,11 +9372,11 @@ func TestSettersCardService(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPdfTemplateId", func(t *testing.T) { + t.Run("SetPdfTemplateID", func(t *testing.T) { obj := &CardService{} - var fernTestValuePdfTemplateId *TemplateElement - obj.SetPdfTemplateId(fernTestValuePdfTemplateId) - assert.Equal(t, fernTestValuePdfTemplateId, obj.PdfTemplateId) + var fernTestValuePdfTemplateID *TemplateElement + obj.SetPdfTemplateID(fernTestValuePdfTemplateID) + assert.Equal(t, fernTestValuePdfTemplateID, obj.PdfTemplateID) assert.NotNil(t, obj.explicitFields) }) @@ -10223,28 +10223,28 @@ func TestGettersCardService(t *testing.T) { _ = obj.GetPassThroughCost() // Should return zero value }) - t.Run("GetPdfTemplateId", func(t *testing.T) { + t.Run("GetPdfTemplateID", func(t *testing.T) { t.Parallel() // Arrange obj := &CardService{} var expected *TemplateElement - obj.PdfTemplateId = expected + obj.PdfTemplateID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPdfTemplateId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPdfTemplateID(), "getter should return the property value") }) - t.Run("GetPdfTemplateId_NilValue", func(t *testing.T) { + t.Run("GetPdfTemplateID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CardService{} - obj.PdfTemplateId = nil + obj.PdfTemplateID = nil // Act & Assert - assert.Nil(t, obj.GetPdfTemplateId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPdfTemplateID(), "getter should return nil when property is nil") }) - t.Run("GetPdfTemplateId_NilReceiver", func(t *testing.T) { + t.Run("GetPdfTemplateID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CardService // Should not panic - getters should handle nil receiver gracefully @@ -10253,7 +10253,7 @@ func TestGettersCardService(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPdfTemplateId() // Should return zero value + _ = obj.GetPdfTemplateID() // Should return zero value }) t.Run("GetPricingPlan", func(t *testing.T) { @@ -11201,14 +11201,14 @@ func TestSettersMarkExplicitCardService(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPdfTemplateId_MarksExplicit", func(t *testing.T) { + t.Run("SetPdfTemplateID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CardService{} - var fernTestValuePdfTemplateId *TemplateElement + var fernTestValuePdfTemplateID *TemplateElement // Act - obj.SetPdfTemplateId(fernTestValuePdfTemplateId) + obj.SetPdfTemplateID(fernTestValuePdfTemplateID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15227,9 +15227,9 @@ func TestSettersMarkExplicitOwnersSection(t *testing.T) { } -func TestSettersPayabliApiResponseTemplateId(t *testing.T) { +func TestSettersPayabliAPIResponseTemplateID(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -15237,7 +15237,7 @@ func TestSettersPayabliApiResponseTemplateId(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -15245,7 +15245,7 @@ func TestSettersPayabliApiResponseTemplateId(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -15253,7 +15253,7 @@ func TestSettersPayabliApiResponseTemplateId(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseData *Responsedatanonobject obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -15261,7 +15261,7 @@ func TestSettersPayabliApiResponseTemplateId(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -15270,11 +15270,11 @@ func TestSettersPayabliApiResponseTemplateId(t *testing.T) { } -func TestGettersPayabliApiResponseTemplateId(t *testing.T) { +func TestGettersPayabliAPIResponseTemplateID(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var expected *IsSuccess obj.IsSuccess = expected @@ -15285,7 +15285,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} obj.IsSuccess = nil // Act & Assert @@ -15294,7 +15294,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -15307,7 +15307,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -15318,7 +15318,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} obj.PageIdentifier = nil // Act & Assert @@ -15327,7 +15327,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -15340,7 +15340,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var expected *Responsecode obj.ResponseCode = expected @@ -15351,7 +15351,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} obj.ResponseCode = nil // Act & Assert @@ -15360,7 +15360,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -15373,7 +15373,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var expected *Responsedatanonobject obj.ResponseData = expected @@ -15384,7 +15384,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} obj.ResponseData = nil // Act & Assert @@ -15393,7 +15393,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -15406,7 +15406,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var expected ResponseText obj.ResponseText = expected @@ -15416,7 +15416,7 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -15428,11 +15428,11 @@ func TestGettersPayabliApiResponseTemplateId(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseTemplateId(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseTemplateID(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueIsSuccess *IsSuccess // Act @@ -15463,7 +15463,7 @@ func TestSettersMarkExplicitPayabliApiResponseTemplateId(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -15494,7 +15494,7 @@ func TestSettersMarkExplicitPayabliApiResponseTemplateId(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseCode *Responsecode // Act @@ -15525,7 +15525,7 @@ func TestSettersMarkExplicitPayabliApiResponseTemplateId(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseData *Responsedatanonobject // Act @@ -15556,7 +15556,7 @@ func TestSettersMarkExplicitPayabliApiResponseTemplateId(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} var fernTestValueResponseText ResponseText // Act @@ -19931,11 +19931,11 @@ func TestSettersTemplateQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdTemplate", func(t *testing.T) { + t.Run("SetIDTemplate", func(t *testing.T) { obj := &TemplateQueryRecord{} - var fernTestValueIdTemplate *int64 - obj.SetIdTemplate(fernTestValueIdTemplate) - assert.Equal(t, fernTestValueIdTemplate, obj.IdTemplate) + var fernTestValueIDTemplate *int64 + obj.SetIDTemplate(fernTestValueIDTemplate) + assert.Equal(t, fernTestValueIDTemplate, obj.IDTemplate) assert.NotNil(t, obj.explicitFields) }) @@ -20113,28 +20113,28 @@ func TestGettersTemplateQueryRecord(t *testing.T) { _ = obj.GetCreatedAt() // Should return zero value }) - t.Run("GetIdTemplate", func(t *testing.T) { + t.Run("GetIDTemplate", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateQueryRecord{} var expected *int64 - obj.IdTemplate = expected + obj.IDTemplate = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdTemplate(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDTemplate(), "getter should return the property value") }) - t.Run("GetIdTemplate_NilValue", func(t *testing.T) { + t.Run("GetIDTemplate_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateQueryRecord{} - obj.IdTemplate = nil + obj.IDTemplate = nil // Act & Assert - assert.Nil(t, obj.GetIdTemplate(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDTemplate(), "getter should return nil when property is nil") }) - t.Run("GetIdTemplate_NilReceiver", func(t *testing.T) { + t.Run("GetIDTemplate_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TemplateQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -20143,7 +20143,7 @@ func TestGettersTemplateQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdTemplate() // Should return zero value + _ = obj.GetIDTemplate() // Should return zero value }) t.Run("GetIsRoot", func(t *testing.T) { @@ -20539,14 +20539,14 @@ func TestSettersMarkExplicitTemplateQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdTemplate_MarksExplicit", func(t *testing.T) { + t.Run("SetIDTemplate_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateQueryRecord{} - var fernTestValueIdTemplate *int64 + var fernTestValueIDTemplate *int64 // Act - obj.SetIdTemplate(fernTestValueIdTemplate) + obj.SetIDTemplate(fernTestValueIDTemplate) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -21751,11 +21751,11 @@ func TestSettersUnderwritingDataResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPolicyId", func(t *testing.T) { + t.Run("SetPolicyID", func(t *testing.T) { obj := &UnderwritingDataResponse{} - var fernTestValuePolicyId *PolicyId - obj.SetPolicyId(fernTestValuePolicyId) - assert.Equal(t, fernTestValuePolicyId, obj.PolicyId) + var fernTestValuePolicyID *PolicyID + obj.SetPolicyID(fernTestValuePolicyID) + assert.Equal(t, fernTestValuePolicyID, obj.PolicyID) assert.NotNil(t, obj.explicitFields) }) @@ -21795,28 +21795,28 @@ func TestGettersUnderwritingDataResponse(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetPolicyId", func(t *testing.T) { + t.Run("GetPolicyID", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingDataResponse{} - var expected *PolicyId - obj.PolicyId = expected + var expected *PolicyID + obj.PolicyID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPolicyId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPolicyID(), "getter should return the property value") }) - t.Run("GetPolicyId_NilValue", func(t *testing.T) { + t.Run("GetPolicyID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingDataResponse{} - obj.PolicyId = nil + obj.PolicyID = nil // Act & Assert - assert.Nil(t, obj.GetPolicyId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPolicyID(), "getter should return nil when property is nil") }) - t.Run("GetPolicyId_NilReceiver", func(t *testing.T) { + t.Run("GetPolicyID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *UnderwritingDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -21825,7 +21825,7 @@ func TestGettersUnderwritingDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPolicyId() // Should return zero value + _ = obj.GetPolicyID() // Should return zero value }) } @@ -21862,14 +21862,14 @@ func TestSettersMarkExplicitUnderwritingDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPolicyId_MarksExplicit", func(t *testing.T) { + t.Run("SetPolicyID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingDataResponse{} - var fernTestValuePolicyId *PolicyId + var fernTestValuePolicyID *PolicyID // Act - obj.SetPolicyId(fernTestValuePolicyId) + obj.SetPolicyID(fernTestValuePolicyID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22225,11 +22225,11 @@ func TestJSONMarshalingBasicTemplateElement(t *testing.T) { }) } -func TestJSONMarshalingBoardingLinkApiResponse(t *testing.T) { +func TestJSONMarshalingBoardingLinkAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -22238,21 +22238,21 @@ func TestJSONMarshalingBoardingLinkApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled BoardingLinkApiResponse + var unmarshaled BoardingLinkAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj BoardingLinkApiResponse + var obj BoardingLinkAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj BoardingLinkApiResponse + var obj BoardingLinkAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -22753,11 +22753,11 @@ func TestJSONMarshalingOwnersSection(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponseTemplateId(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseTemplateID(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -22766,21 +22766,21 @@ func TestJSONMarshalingPayabliApiResponseTemplateId(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseTemplateId + var unmarshaled PayabliAPIResponseTemplateID err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseTemplateId + var obj PayabliAPIResponseTemplateID err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseTemplateId + var obj PayabliAPIResponseTemplateID err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -23375,17 +23375,17 @@ func TestStringBasicTemplateElement(t *testing.T) { }) } -func TestStringBoardingLinkApiResponse(t *testing.T) { +func TestStringBoardingLinkAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *BoardingLinkApiResponse + var obj *BoardingLinkAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -23631,17 +23631,17 @@ func TestStringOwnersSection(t *testing.T) { }) } -func TestStringPayabliApiResponseTemplateId(t *testing.T) { +func TestStringPayabliAPIResponseTemplateID(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -24121,10 +24121,10 @@ func TestExtraPropertiesBasicTemplateElement(t *testing.T) { }) } -func TestExtraPropertiesBoardingLinkApiResponse(t *testing.T) { +func TestExtraPropertiesBoardingLinkAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &BoardingLinkApiResponse{} + obj := &BoardingLinkAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -24138,7 +24138,7 @@ func TestExtraPropertiesBoardingLinkApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *BoardingLinkApiResponse + var obj *BoardingLinkAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) @@ -24489,10 +24489,10 @@ func TestExtraPropertiesOwnersSection(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponseTemplateId(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseTemplateID(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseTemplateId{} + obj := &PayabliAPIResponseTemplateID{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -24506,7 +24506,7 @@ func TestExtraPropertiesPayabliApiResponseTemplateId(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseTemplateId + var obj *PayabliAPIResponseTemplateID extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/token_storage.go b/token_storage.go index 9da1d20..7b61831 100644 --- a/token_storage.go +++ b/token_storage.go @@ -170,14 +170,14 @@ func (u *UpdateMethodRequest) MarshalJSON() ([]byte, error) { // Response body for payment method deletion. var ( - payabliApiResponsePaymethodDeleteFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponsePaymethodDeleteFieldResponseData = big.NewInt(1 << 1) - payabliApiResponsePaymethodDeleteFieldResponseText = big.NewInt(1 << 2) + payabliAPIResponsePaymethodDeleteFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponsePaymethodDeleteFieldResponseData = big.NewInt(1 << 1) + payabliAPIResponsePaymethodDeleteFieldResponseText = big.NewInt(1 << 2) ) -type PayabliApiResponsePaymethodDelete struct { +type PayabliAPIResponsePaymethodDelete struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` - ResponseData *PayabliApiResponsePaymethodDeleteResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponsePaymethodDeleteResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -187,35 +187,35 @@ type PayabliApiResponsePaymethodDelete struct { rawJSON json.RawMessage } -func (p *PayabliApiResponsePaymethodDelete) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponsePaymethodDelete) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponsePaymethodDelete) GetResponseData() *PayabliApiResponsePaymethodDeleteResponseData { +func (p *PayabliAPIResponsePaymethodDelete) GetResponseData() *PayabliAPIResponsePaymethodDeleteResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponsePaymethodDelete) GetResponseText() ResponseText { +func (p *PayabliAPIResponsePaymethodDelete) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponsePaymethodDelete) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponsePaymethodDelete) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponsePaymethodDelete) require(field *big.Int) { +func (p *PayabliAPIResponsePaymethodDelete) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -224,32 +224,32 @@ func (p *PayabliApiResponsePaymethodDelete) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDelete) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponsePaymethodDelete) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponsePaymethodDeleteFieldIsSuccess) + p.require(payabliAPIResponsePaymethodDeleteFieldIsSuccess) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDelete) SetResponseData(responseData *PayabliApiResponsePaymethodDeleteResponseData) { +func (p *PayabliAPIResponsePaymethodDelete) SetResponseData(responseData *PayabliAPIResponsePaymethodDeleteResponseData) { p.ResponseData = responseData - p.require(payabliApiResponsePaymethodDeleteFieldResponseData) + p.require(payabliAPIResponsePaymethodDeleteFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDelete) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponsePaymethodDelete) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponsePaymethodDeleteFieldResponseText) + p.require(payabliAPIResponsePaymethodDeleteFieldResponseText) } -func (p *PayabliApiResponsePaymethodDelete) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponsePaymethodDelete +func (p *PayabliAPIResponsePaymethodDelete) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponsePaymethodDelete var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponsePaymethodDelete(value) + *p = PayabliAPIResponsePaymethodDelete(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -259,8 +259,8 @@ func (p *PayabliApiResponsePaymethodDelete) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponsePaymethodDelete) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponsePaymethodDelete +func (p *PayabliAPIResponsePaymethodDelete) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponsePaymethodDelete var marshaler = struct { embed }{ @@ -270,7 +270,7 @@ func (p *PayabliApiResponsePaymethodDelete) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponsePaymethodDelete) String() string { +func (p *PayabliAPIResponsePaymethodDelete) String() string { if p == nil { return "" } @@ -286,14 +286,14 @@ func (p *PayabliApiResponsePaymethodDelete) String() string { } var ( - payabliApiResponsePaymethodDeleteResponseDataFieldReferenceId = big.NewInt(1 << 0) - payabliApiResponsePaymethodDeleteResponseDataFieldResultCode = big.NewInt(1 << 1) - payabliApiResponsePaymethodDeleteResponseDataFieldResultText = big.NewInt(1 << 2) + payabliAPIResponsePaymethodDeleteResponseDataFieldReferenceID = big.NewInt(1 << 0) + payabliAPIResponsePaymethodDeleteResponseDataFieldResultCode = big.NewInt(1 << 1) + payabliAPIResponsePaymethodDeleteResponseDataFieldResultText = big.NewInt(1 << 2) ) -type PayabliApiResponsePaymethodDeleteResponseData struct { +type PayabliAPIResponsePaymethodDeleteResponseData struct { // The method's reference ID. - ReferenceId *MethodReferenceId `json:"referenceId,omitempty" url:"referenceId,omitempty"` + ReferenceID *MethodReferenceID `json:"referenceId,omitempty" url:"referenceId,omitempty"` ResultCode *ResultCode `json:"resultCode,omitempty" url:"resultCode,omitempty"` ResultText *Resulttext `json:"resultText,omitempty" url:"resultText,omitempty"` @@ -304,69 +304,69 @@ type PayabliApiResponsePaymethodDeleteResponseData struct { rawJSON json.RawMessage } -func (p *PayabliApiResponsePaymethodDeleteResponseData) GetReferenceId() *MethodReferenceId { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) GetReferenceID() *MethodReferenceID { if p == nil { return nil } - return p.ReferenceId + return p.ReferenceID } -func (p *PayabliApiResponsePaymethodDeleteResponseData) GetResultCode() *ResultCode { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) GetResultCode() *ResultCode { if p == nil { return nil } return p.ResultCode } -func (p *PayabliApiResponsePaymethodDeleteResponseData) GetResultText() *Resulttext { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) GetResultText() *Resulttext { if p == nil { return nil } return p.ResultText } -func (p *PayabliApiResponsePaymethodDeleteResponseData) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponsePaymethodDeleteResponseData) require(field *big.Int) { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } p.explicitFields.Or(p.explicitFields, field) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDeleteResponseData) SetReferenceId(referenceId *MethodReferenceId) { - p.ReferenceId = referenceId - p.require(payabliApiResponsePaymethodDeleteResponseDataFieldReferenceId) +func (p *PayabliAPIResponsePaymethodDeleteResponseData) SetReferenceID(referenceID *MethodReferenceID) { + p.ReferenceID = referenceID + p.require(payabliAPIResponsePaymethodDeleteResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDeleteResponseData) SetResultCode(resultCode *ResultCode) { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) SetResultCode(resultCode *ResultCode) { p.ResultCode = resultCode - p.require(payabliApiResponsePaymethodDeleteResponseDataFieldResultCode) + p.require(payabliAPIResponsePaymethodDeleteResponseDataFieldResultCode) } // SetResultText sets the ResultText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaymethodDeleteResponseData) SetResultText(resultText *Resulttext) { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) SetResultText(resultText *Resulttext) { p.ResultText = resultText - p.require(payabliApiResponsePaymethodDeleteResponseDataFieldResultText) + p.require(payabliAPIResponsePaymethodDeleteResponseDataFieldResultText) } -func (p *PayabliApiResponsePaymethodDeleteResponseData) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponsePaymethodDeleteResponseData +func (p *PayabliAPIResponsePaymethodDeleteResponseData) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponsePaymethodDeleteResponseData var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponsePaymethodDeleteResponseData(value) + *p = PayabliAPIResponsePaymethodDeleteResponseData(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -376,8 +376,8 @@ func (p *PayabliApiResponsePaymethodDeleteResponseData) UnmarshalJSON(data []byt return nil } -func (p *PayabliApiResponsePaymethodDeleteResponseData) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponsePaymethodDeleteResponseData +func (p *PayabliAPIResponsePaymethodDeleteResponseData) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponsePaymethodDeleteResponseData var marshaler = struct { embed }{ @@ -387,7 +387,7 @@ func (p *PayabliApiResponsePaymethodDeleteResponseData) MarshalJSON() ([]byte, e return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponsePaymethodDeleteResponseData) String() string { +func (p *PayabliAPIResponsePaymethodDeleteResponseData) String() string { if p == nil { return "" } @@ -519,23 +519,23 @@ func (a *AddMethodResponse) String() string { } var ( - addMethodResponseResponseDataFieldReferenceId = big.NewInt(1 << 0) + addMethodResponseResponseDataFieldReferenceID = big.NewInt(1 << 0) addMethodResponseResponseDataFieldResultCode = big.NewInt(1 << 1) addMethodResponseResponseDataFieldResultText = big.NewInt(1 << 2) - addMethodResponseResponseDataFieldCustomerId = big.NewInt(1 << 3) - addMethodResponseResponseDataFieldMethodReferenceId = big.NewInt(1 << 4) + addMethodResponseResponseDataFieldCustomerID = big.NewInt(1 << 3) + addMethodResponseResponseDataFieldMethodReferenceID = big.NewInt(1 << 4) ) type AddMethodResponseResponseData struct { // Stored method identifier in Payabli platform. This ID is used to manage the stored method. - ReferenceId *MethodReferenceId `json:"referenceId,omitempty" url:"referenceId,omitempty"` + ReferenceID *MethodReferenceID `json:"referenceId,omitempty" url:"referenceId,omitempty"` ResultCode *ResultCode `json:"resultCode,omitempty" url:"resultCode,omitempty"` ResultText *Resulttext `json:"resultText,omitempty" url:"resultText,omitempty"` // Internal unique ID of customer owner of the stored method. // // Returns `0` if the method wasn't assigned to an existing customer or no customer was created." - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -544,11 +544,11 @@ type AddMethodResponseResponseData struct { rawJSON json.RawMessage } -func (a *AddMethodResponseResponseData) GetReferenceId() *MethodReferenceId { +func (a *AddMethodResponseResponseData) GetReferenceID() *MethodReferenceID { if a == nil { return nil } - return a.ReferenceId + return a.ReferenceID } func (a *AddMethodResponseResponseData) GetResultCode() *ResultCode { @@ -565,18 +565,18 @@ func (a *AddMethodResponseResponseData) GetResultText() *Resulttext { return a.ResultText } -func (a *AddMethodResponseResponseData) GetCustomerId() *CustomerId { +func (a *AddMethodResponseResponseData) GetCustomerID() *CustomerID { if a == nil { return nil } - return a.CustomerId + return a.CustomerID } -func (a *AddMethodResponseResponseData) GetMethodReferenceId() *MethodReferenceId { +func (a *AddMethodResponseResponseData) GetMethodReferenceID() *MethodReferenceID { if a == nil { return nil } - return a.MethodReferenceId + return a.MethodReferenceID } func (a *AddMethodResponseResponseData) GetExtraProperties() map[string]interface{} { @@ -593,11 +593,11 @@ func (a *AddMethodResponseResponseData) require(field *big.Int) { a.explicitFields.Or(a.explicitFields, field) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddMethodResponseResponseData) SetReferenceId(referenceId *MethodReferenceId) { - a.ReferenceId = referenceId - a.require(addMethodResponseResponseDataFieldReferenceId) +func (a *AddMethodResponseResponseData) SetReferenceID(referenceID *MethodReferenceID) { + a.ReferenceID = referenceID + a.require(addMethodResponseResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; @@ -614,18 +614,18 @@ func (a *AddMethodResponseResponseData) SetResultText(resultText *Resulttext) { a.require(addMethodResponseResponseDataFieldResultText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddMethodResponseResponseData) SetCustomerId(customerId *CustomerId) { - a.CustomerId = customerId - a.require(addMethodResponseResponseDataFieldCustomerId) +func (a *AddMethodResponseResponseData) SetCustomerID(customerID *CustomerID) { + a.CustomerID = customerID + a.require(addMethodResponseResponseDataFieldCustomerID) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AddMethodResponseResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - a.MethodReferenceId = methodReferenceId - a.require(addMethodResponseResponseDataFieldMethodReferenceId) +func (a *AddMethodResponseResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + a.MethodReferenceID = methodReferenceID + a.require(addMethodResponseResponseDataFieldMethodReferenceID) } func (a *AddMethodResponseResponseData) UnmarshalJSON(data []byte) error { @@ -673,14 +673,14 @@ func (a *AddMethodResponseResponseData) String() string { // Object containing the information needed to convert a temporary token to a permanent token. var ( convertTokenFieldMethod = big.NewInt(1 << 0) - convertTokenFieldTokenId = big.NewInt(1 << 1) + convertTokenFieldTokenID = big.NewInt(1 << 1) ) type ConvertToken struct { // The type of payment method to tokenize. When converting a temp token to a permanent token, this should match the `method` set for the temporary token, either `ach` or `card`. Method string `json:"method" url:"method"` // A temporary stored token ID to be converted to permanent. - TokenId string `json:"tokenId" url:"tokenId"` + TokenID string `json:"tokenId" url:"tokenId"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -696,11 +696,11 @@ func (c *ConvertToken) GetMethod() string { return c.Method } -func (c *ConvertToken) GetTokenId() string { +func (c *ConvertToken) GetTokenID() string { if c == nil { return "" } - return c.TokenId + return c.TokenID } func (c *ConvertToken) GetExtraProperties() map[string]interface{} { @@ -724,11 +724,11 @@ func (c *ConvertToken) SetMethod(method string) { c.require(convertTokenFieldMethod) } -// SetTokenId sets the TokenId field and marks it as non-optional; +// SetTokenID sets the TokenID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConvertToken) SetTokenId(tokenId string) { - c.TokenId = tokenId - c.require(convertTokenFieldTokenId) +func (c *ConvertToken) SetTokenID(tokenID string) { + c.TokenID = tokenID + c.require(convertTokenFieldTokenID) } func (c *ConvertToken) UnmarshalJSON(data []byte) error { @@ -903,7 +903,7 @@ var ( getMethodResponseResponseDataFieldDescriptor = big.NewInt(1 << 7) getMethodResponseResponseDataFieldExpDate = big.NewInt(1 << 8) getMethodResponseResponseDataFieldHolderName = big.NewInt(1 << 9) - getMethodResponseResponseDataFieldIdPmethod = big.NewInt(1 << 10) + getMethodResponseResponseDataFieldIDPmethod = big.NewInt(1 << 10) getMethodResponseResponseDataFieldIsValidatedAch = big.NewInt(1 << 11) getMethodResponseResponseDataFieldLastUpdated = big.NewInt(1 << 12) getMethodResponseResponseDataFieldMaskedAccount = big.NewInt(1 << 13) @@ -930,7 +930,7 @@ type GetMethodResponseResponseData struct { // Account holder name in stored method HolderName *Holdername `json:"holderName,omitempty" url:"holderName,omitempty"` // The stored payment method's identifier in Payabli - IdPmethod *string `json:"idPmethod,omitempty" url:"idPmethod,omitempty"` + IDPmethod *string `json:"idPmethod,omitempty" url:"idPmethod,omitempty"` // Whether the ACH account has been validated IsValidatedAch *bool `json:"isValidatedACH,omitempty" url:"isValidatedACH,omitempty"` // Timestamp for last update of stored method, in UTC @@ -1021,11 +1021,11 @@ func (g *GetMethodResponseResponseData) GetHolderName() *Holdername { return g.HolderName } -func (g *GetMethodResponseResponseData) GetIdPmethod() *string { +func (g *GetMethodResponseResponseData) GetIDPmethod() *string { if g == nil { return nil } - return g.IdPmethod + return g.IDPmethod } func (g *GetMethodResponseResponseData) GetIsValidatedAch() *bool { @@ -1161,11 +1161,11 @@ func (g *GetMethodResponseResponseData) SetHolderName(holderName *Holdername) { g.require(getMethodResponseResponseDataFieldHolderName) } -// SetIdPmethod sets the IdPmethod field and marks it as non-optional; +// SetIDPmethod sets the IDPmethod field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseData) SetIdPmethod(idPmethod *string) { - g.IdPmethod = idPmethod - g.require(getMethodResponseResponseDataFieldIdPmethod) +func (g *GetMethodResponseResponseData) SetIDPmethod(idPmethod *string) { + g.IDPmethod = idPmethod + g.require(getMethodResponseResponseDataFieldIDPmethod) } // SetIsValidatedAch sets the IsValidatedAch field and marks it as non-optional; @@ -1282,7 +1282,7 @@ var ( getMethodResponseResponseDataCustomersItemFieldBillingState = big.NewInt(1 << 7) getMethodResponseResponseDataCustomersItemFieldBillingZip = big.NewInt(1 << 8) getMethodResponseResponseDataCustomersItemFieldCompany = big.NewInt(1 << 9) - getMethodResponseResponseDataCustomersItemFieldCustomerId = big.NewInt(1 << 10) + getMethodResponseResponseDataCustomersItemFieldCustomerID = big.NewInt(1 << 10) getMethodResponseResponseDataCustomersItemFieldCustomerNumber = big.NewInt(1 << 11) getMethodResponseResponseDataCustomersItemFieldFirstName = big.NewInt(1 << 12) getMethodResponseResponseDataCustomersItemFieldIdentifierFields = big.NewInt(1 << 13) @@ -1299,12 +1299,12 @@ var ( getMethodResponseResponseDataCustomersItemFieldCustomerStatus = big.NewInt(1 << 24) getMethodResponseResponseDataCustomersItemFieldCustomerSummary = big.NewInt(1 << 25) getMethodResponseResponseDataCustomersItemFieldCustomerUsername = big.NewInt(1 << 26) - getMethodResponseResponseDataCustomersItemFieldExternalPaypointId = big.NewInt(1 << 27) + getMethodResponseResponseDataCustomersItemFieldExternalPaypointID = big.NewInt(1 << 27) getMethodResponseResponseDataCustomersItemFieldLastUpdated = big.NewInt(1 << 28) getMethodResponseResponseDataCustomersItemFieldMfa = big.NewInt(1 << 29) getMethodResponseResponseDataCustomersItemFieldMfaMode = big.NewInt(1 << 30) getMethodResponseResponseDataCustomersItemFieldPageindentifier = big.NewInt(1 << 31) - getMethodResponseResponseDataCustomersItemFieldParentOrgId = big.NewInt(1 << 32) + getMethodResponseResponseDataCustomersItemFieldParentOrgID = big.NewInt(1 << 32) getMethodResponseResponseDataCustomersItemFieldParentOrgName = big.NewInt(1 << 33) getMethodResponseResponseDataCustomersItemFieldPaypointDbaname = big.NewInt(1 << 34) getMethodResponseResponseDataCustomersItemFieldPaypointEntryname = big.NewInt(1 << 35) @@ -1330,7 +1330,7 @@ type GetMethodResponseResponseDataCustomersItem struct { BillingZip *BillingZip `json:"billingZip,omitempty" url:"billingZip,omitempty"` // Customer's company name. Company *string `json:"company,omitempty" url:"company,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerNumber *CustomerNumberNullable `json:"customerNumber,omitempty" url:"customerNumber,omitempty"` // Customer/Payor first name. FirstName *string `json:"firstName,omitempty" url:"firstName,omitempty"` @@ -1354,7 +1354,7 @@ type GetMethodResponseResponseDataCustomersItem struct { CustomerSummary *CustomerSummaryRecord `json:"customerSummary,omitempty" url:"customerSummary,omitempty"` // Username of the customer CustomerUsername *string `json:"customerUsername,omitempty" url:"customerUsername,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Last update timestamp LastUpdated *time.Time `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` // Multi-factor authentication status @@ -1363,7 +1363,7 @@ type GetMethodResponseResponseDataCustomersItem struct { MfaMode *int `json:"mfaMode,omitempty" url:"mfaMode,omitempty"` Pageindentifier *PageIdentifier `json:"pageindentifier,omitempty" url:"pageindentifier,omitempty"` // Parent organization ID - ParentOrgId *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` + ParentOrgID *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` ParentOrgName *OrgParentName `json:"parentOrgName,omitempty" url:"parentOrgName,omitempty"` PaypointDbaname *Dbaname `json:"paypointDbaname,omitempty" url:"paypointDbaname,omitempty"` // The paypoint entryname the customer is associated with @@ -1459,11 +1459,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) GetCompany() *string { return g.Company } -func (g *GetMethodResponseResponseDataCustomersItem) GetCustomerId() *CustomerId { +func (g *GetMethodResponseResponseDataCustomersItem) GetCustomerID() *CustomerID { if g == nil { return nil } - return g.CustomerId + return g.CustomerID } func (g *GetMethodResponseResponseDataCustomersItem) GetCustomerNumber() *CustomerNumberNullable { @@ -1578,11 +1578,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) GetCustomerUsername() *stri return g.CustomerUsername } -func (g *GetMethodResponseResponseDataCustomersItem) GetExternalPaypointId() *ExternalPaypointId { +func (g *GetMethodResponseResponseDataCustomersItem) GetExternalPaypointID() *ExternalPaypointID { if g == nil { return nil } - return g.ExternalPaypointId + return g.ExternalPaypointID } func (g *GetMethodResponseResponseDataCustomersItem) GetLastUpdated() *time.Time { @@ -1613,11 +1613,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) GetPageindentifier() *PageI return g.Pageindentifier } -func (g *GetMethodResponseResponseDataCustomersItem) GetParentOrgId() *int { +func (g *GetMethodResponseResponseDataCustomersItem) GetParentOrgID() *int { if g == nil { return nil } - return g.ParentOrgId + return g.ParentOrgID } func (g *GetMethodResponseResponseDataCustomersItem) GetParentOrgName() *OrgParentName { @@ -1774,11 +1774,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) SetCompany(company *string) g.require(getMethodResponseResponseDataCustomersItemFieldCompany) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataCustomersItem) SetCustomerId(customerId *CustomerId) { - g.CustomerId = customerId - g.require(getMethodResponseResponseDataCustomersItemFieldCustomerId) +func (g *GetMethodResponseResponseDataCustomersItem) SetCustomerID(customerID *CustomerID) { + g.CustomerID = customerID + g.require(getMethodResponseResponseDataCustomersItemFieldCustomerID) } // SetCustomerNumber sets the CustomerNumber field and marks it as non-optional; @@ -1893,11 +1893,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) SetCustomerUsername(custome g.require(getMethodResponseResponseDataCustomersItemFieldCustomerUsername) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataCustomersItem) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - g.ExternalPaypointId = externalPaypointId - g.require(getMethodResponseResponseDataCustomersItemFieldExternalPaypointId) +func (g *GetMethodResponseResponseDataCustomersItem) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + g.ExternalPaypointID = externalPaypointID + g.require(getMethodResponseResponseDataCustomersItemFieldExternalPaypointID) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -1928,11 +1928,11 @@ func (g *GetMethodResponseResponseDataCustomersItem) SetPageindentifier(pageinde g.require(getMethodResponseResponseDataCustomersItemFieldPageindentifier) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataCustomersItem) SetParentOrgId(parentOrgId *int) { - g.ParentOrgId = parentOrgId - g.require(getMethodResponseResponseDataCustomersItemFieldParentOrgId) +func (g *GetMethodResponseResponseDataCustomersItem) SetParentOrgID(parentOrgID *int) { + g.ParentOrgID = parentOrgID + g.require(getMethodResponseResponseDataCustomersItemFieldParentOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -2074,21 +2074,21 @@ var ( getMethodResponseResponseDataVendorsItemFieldEin = big.NewInt(1 << 11) getMethodResponseResponseDataVendorsItemFieldEmail = big.NewInt(1 << 12) getMethodResponseResponseDataVendorsItemFieldEnrollmentStatus = big.NewInt(1 << 13) - getMethodResponseResponseDataVendorsItemFieldExternalPaypointId = big.NewInt(1 << 14) - getMethodResponseResponseDataVendorsItemFieldInternalReferenceId = big.NewInt(1 << 15) + getMethodResponseResponseDataVendorsItemFieldExternalPaypointID = big.NewInt(1 << 14) + getMethodResponseResponseDataVendorsItemFieldInternalReferenceID = big.NewInt(1 << 15) getMethodResponseResponseDataVendorsItemFieldLastUpdated = big.NewInt(1 << 16) getMethodResponseResponseDataVendorsItemFieldLocationCode = big.NewInt(1 << 17) getMethodResponseResponseDataVendorsItemFieldMcc = big.NewInt(1 << 18) getMethodResponseResponseDataVendorsItemFieldName1 = big.NewInt(1 << 19) getMethodResponseResponseDataVendorsItemFieldName2 = big.NewInt(1 << 20) - getMethodResponseResponseDataVendorsItemFieldParentOrgId = big.NewInt(1 << 21) + getMethodResponseResponseDataVendorsItemFieldParentOrgID = big.NewInt(1 << 21) getMethodResponseResponseDataVendorsItemFieldParentOrgName = big.NewInt(1 << 22) getMethodResponseResponseDataVendorsItemFieldPayeeName1 = big.NewInt(1 << 23) getMethodResponseResponseDataVendorsItemFieldPayeeName2 = big.NewInt(1 << 24) getMethodResponseResponseDataVendorsItemFieldPaymentMethod = big.NewInt(1 << 25) getMethodResponseResponseDataVendorsItemFieldPaypointDbaname = big.NewInt(1 << 26) getMethodResponseResponseDataVendorsItemFieldPaypointEntryname = big.NewInt(1 << 27) - getMethodResponseResponseDataVendorsItemFieldPaypointId = big.NewInt(1 << 28) + getMethodResponseResponseDataVendorsItemFieldPaypointID = big.NewInt(1 << 28) getMethodResponseResponseDataVendorsItemFieldPaypointLegalname = big.NewInt(1 << 29) getMethodResponseResponseDataVendorsItemFieldPhone = big.NewInt(1 << 30) getMethodResponseResponseDataVendorsItemFieldRemitAddress1 = big.NewInt(1 << 31) @@ -2101,7 +2101,7 @@ var ( getMethodResponseResponseDataVendorsItemFieldState = big.NewInt(1 << 38) getMethodResponseResponseDataVendorsItemFieldStoredMethods = big.NewInt(1 << 39) getMethodResponseResponseDataVendorsItemFieldSummary = big.NewInt(1 << 40) - getMethodResponseResponseDataVendorsItemFieldVendorId = big.NewInt(1 << 41) + getMethodResponseResponseDataVendorsItemFieldVendorID = big.NewInt(1 << 41) getMethodResponseResponseDataVendorsItemFieldVendorNumber = big.NewInt(1 << 42) getMethodResponseResponseDataVendorsItemFieldVendorStatus = big.NewInt(1 << 43) getMethodResponseResponseDataVendorsItemFieldZip = big.NewInt(1 << 44) @@ -2137,9 +2137,9 @@ type GetMethodResponseResponseDataVendorsItem struct { // Vendor enrollment status EnrollmentStatus *string `json:"enrollmentStatus,omitempty" url:"enrollmentStatus,omitempty"` // External paypoint identifier - ExternalPaypointId *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *string `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Internal reference ID for vendor - InternalReferenceId *InternalReferenceId `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` + InternalReferenceID *InternalReferenceID `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` // Date when vendor was last updated LastUpdated *time.Time `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` // Location code for vendor @@ -2151,7 +2151,7 @@ type GetMethodResponseResponseDataVendorsItem struct { // Secondary name for vendor Name2 *string `json:"name2,omitempty" url:"name2,omitempty"` // ID of the parent organization - ParentOrgId *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` + ParentOrgID *int `json:"parentOrgId,omitempty" url:"parentOrgId,omitempty"` // Name of the parent organization ParentOrgName *string `json:"parentOrgName,omitempty" url:"parentOrgName,omitempty"` // Primary payee name @@ -2165,7 +2165,7 @@ type GetMethodResponseResponseDataVendorsItem struct { // Entry name of the paypoint PaypointEntryname *string `json:"paypointEntryname,omitempty" url:"paypointEntryname,omitempty"` // Paypoint ID - PaypointId *string `json:"paypointId,omitempty" url:"paypointId,omitempty"` + PaypointID *string `json:"paypointId,omitempty" url:"paypointId,omitempty"` // Legal name of the paypoint PaypointLegalname *string `json:"paypointLegalname,omitempty" url:"paypointLegalname,omitempty"` // Vendor's phone number @@ -2191,7 +2191,7 @@ type GetMethodResponseResponseDataVendorsItem struct { // Vendor bill summary statistics Summary *VendorResponseSummary `json:"summary,omitempty" url:"summary,omitempty"` // The unique numeric ID assigned to the vendor in Payabli - VendorId *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` + VendorID *Vendorid `json:"vendorId,omitempty" url:"vendorId,omitempty"` // Custom vendor number assigned by the business VendorNumber *VendorNumber `json:"vendorNumber,omitempty" url:"vendorNumber,omitempty"` // Status code for the vendor @@ -2304,18 +2304,18 @@ func (g *GetMethodResponseResponseDataVendorsItem) GetEnrollmentStatus() *string return g.EnrollmentStatus } -func (g *GetMethodResponseResponseDataVendorsItem) GetExternalPaypointId() *string { +func (g *GetMethodResponseResponseDataVendorsItem) GetExternalPaypointID() *string { if g == nil { return nil } - return g.ExternalPaypointId + return g.ExternalPaypointID } -func (g *GetMethodResponseResponseDataVendorsItem) GetInternalReferenceId() *InternalReferenceId { +func (g *GetMethodResponseResponseDataVendorsItem) GetInternalReferenceID() *InternalReferenceID { if g == nil { return nil } - return g.InternalReferenceId + return g.InternalReferenceID } func (g *GetMethodResponseResponseDataVendorsItem) GetLastUpdated() *time.Time { @@ -2353,11 +2353,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) GetName2() *string { return g.Name2 } -func (g *GetMethodResponseResponseDataVendorsItem) GetParentOrgId() *int { +func (g *GetMethodResponseResponseDataVendorsItem) GetParentOrgID() *int { if g == nil { return nil } - return g.ParentOrgId + return g.ParentOrgID } func (g *GetMethodResponseResponseDataVendorsItem) GetParentOrgName() *string { @@ -2402,11 +2402,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) GetPaypointEntryname() *strin return g.PaypointEntryname } -func (g *GetMethodResponseResponseDataVendorsItem) GetPaypointId() *string { +func (g *GetMethodResponseResponseDataVendorsItem) GetPaypointID() *string { if g == nil { return nil } - return g.PaypointId + return g.PaypointID } func (g *GetMethodResponseResponseDataVendorsItem) GetPaypointLegalname() *string { @@ -2493,11 +2493,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) GetSummary() *VendorResponseS return g.Summary } -func (g *GetMethodResponseResponseDataVendorsItem) GetVendorId() *Vendorid { +func (g *GetMethodResponseResponseDataVendorsItem) GetVendorID() *Vendorid { if g == nil { return nil } - return g.VendorId + return g.VendorID } func (g *GetMethodResponseResponseDataVendorsItem) GetVendorNumber() *VendorNumber { @@ -2633,18 +2633,18 @@ func (g *GetMethodResponseResponseDataVendorsItem) SetEnrollmentStatus(enrollmen g.require(getMethodResponseResponseDataVendorsItemFieldEnrollmentStatus) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataVendorsItem) SetExternalPaypointId(externalPaypointId *string) { - g.ExternalPaypointId = externalPaypointId - g.require(getMethodResponseResponseDataVendorsItemFieldExternalPaypointId) +func (g *GetMethodResponseResponseDataVendorsItem) SetExternalPaypointID(externalPaypointID *string) { + g.ExternalPaypointID = externalPaypointID + g.require(getMethodResponseResponseDataVendorsItemFieldExternalPaypointID) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataVendorsItem) SetInternalReferenceId(internalReferenceId *InternalReferenceId) { - g.InternalReferenceId = internalReferenceId - g.require(getMethodResponseResponseDataVendorsItemFieldInternalReferenceId) +func (g *GetMethodResponseResponseDataVendorsItem) SetInternalReferenceID(internalReferenceID *InternalReferenceID) { + g.InternalReferenceID = internalReferenceID + g.require(getMethodResponseResponseDataVendorsItemFieldInternalReferenceID) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -2682,11 +2682,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) SetName2(name2 *string) { g.require(getMethodResponseResponseDataVendorsItemFieldName2) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataVendorsItem) SetParentOrgId(parentOrgId *int) { - g.ParentOrgId = parentOrgId - g.require(getMethodResponseResponseDataVendorsItemFieldParentOrgId) +func (g *GetMethodResponseResponseDataVendorsItem) SetParentOrgID(parentOrgID *int) { + g.ParentOrgID = parentOrgID + g.require(getMethodResponseResponseDataVendorsItemFieldParentOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -2731,11 +2731,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) SetPaypointEntryname(paypoint g.require(getMethodResponseResponseDataVendorsItemFieldPaypointEntryname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataVendorsItem) SetPaypointId(paypointId *string) { - g.PaypointId = paypointId - g.require(getMethodResponseResponseDataVendorsItemFieldPaypointId) +func (g *GetMethodResponseResponseDataVendorsItem) SetPaypointID(paypointID *string) { + g.PaypointID = paypointID + g.require(getMethodResponseResponseDataVendorsItemFieldPaypointID) } // SetPaypointLegalname sets the PaypointLegalname field and marks it as non-optional; @@ -2822,11 +2822,11 @@ func (g *GetMethodResponseResponseDataVendorsItem) SetSummary(summary *VendorRes g.require(getMethodResponseResponseDataVendorsItemFieldSummary) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GetMethodResponseResponseDataVendorsItem) SetVendorId(vendorId *Vendorid) { - g.VendorId = vendorId - g.require(getMethodResponseResponseDataVendorsItemFieldVendorId) +func (g *GetMethodResponseResponseDataVendorsItem) SetVendorID(vendorID *Vendorid) { + g.VendorID = vendorID + g.require(getMethodResponseResponseDataVendorsItemFieldVendorID) } // SetVendorNumber sets the VendorNumber field and marks it as non-optional; @@ -3578,13 +3578,13 @@ func (t *TokenizeCard) String() string { // Object describing the vendor owner of payment method. Required when saving an ACH payment method on behalf of a vendor (for Pay Out transactions). var ( - vendorDataRequestFieldVendorId = big.NewInt(1 << 0) + vendorDataRequestFieldVendorID = big.NewInt(1 << 0) vendorDataRequestFieldVendorNumber = big.NewInt(1 << 1) ) type VendorDataRequest struct { // The unique numeric ID assigned to the vendor in Payabli. Either `vendorId` or `vendorNumber` is required. - VendorId *int64 `json:"vendorId,omitempty" url:"vendorId,omitempty"` + VendorID *int64 `json:"vendorId,omitempty" url:"vendorId,omitempty"` // Custom vendor number assigned by the business. Either `vendorId` or `vendorNumber` is required. VendorNumber *string `json:"vendorNumber,omitempty" url:"vendorNumber,omitempty"` @@ -3595,11 +3595,11 @@ type VendorDataRequest struct { rawJSON json.RawMessage } -func (v *VendorDataRequest) GetVendorId() *int64 { +func (v *VendorDataRequest) GetVendorID() *int64 { if v == nil { return nil } - return v.VendorId + return v.VendorID } func (v *VendorDataRequest) GetVendorNumber() *string { @@ -3623,11 +3623,11 @@ func (v *VendorDataRequest) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorDataRequest) SetVendorId(vendorId *int64) { - v.VendorId = vendorId - v.require(vendorDataRequestFieldVendorId) +func (v *VendorDataRequest) SetVendorID(vendorID *int64) { + v.VendorID = vendorID + v.require(vendorDataRequestFieldVendorID) } // SetVendorNumber sets the VendorNumber field and marks it as non-optional; diff --git a/token_storage_test.go b/token_storage_test.go index 82727e7..30db2d9 100644 --- a/token_storage_test.go +++ b/token_storage_test.go @@ -340,9 +340,9 @@ func TestSettersMarkExplicitUpdateMethodRequest(t *testing.T) { } -func TestSettersPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestSettersPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -350,15 +350,15 @@ func TestSettersPayabliApiResponsePaymethodDelete(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDelete{} - var fernTestValueResponseData *PayabliApiResponsePaymethodDeleteResponseData + obj := &PayabliAPIResponsePaymethodDelete{} + var fernTestValueResponseData *PayabliAPIResponsePaymethodDeleteResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -367,11 +367,11 @@ func TestSettersPayabliApiResponsePaymethodDelete(t *testing.T) { } -func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestGettersPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var expected *IsSuccess obj.IsSuccess = expected @@ -382,7 +382,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} obj.IsSuccess = nil // Act & Assert @@ -391,7 +391,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDelete + var obj *PayabliAPIResponsePaymethodDelete // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -404,8 +404,8 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} - var expected *PayabliApiResponsePaymethodDeleteResponseData + obj := &PayabliAPIResponsePaymethodDelete{} + var expected *PayabliAPIResponsePaymethodDeleteResponseData obj.ResponseData = expected // Act & Assert @@ -415,7 +415,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} obj.ResponseData = nil // Act & Assert @@ -424,7 +424,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDelete + var obj *PayabliAPIResponsePaymethodDelete // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -437,7 +437,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var expected ResponseText obj.ResponseText = expected @@ -447,7 +447,7 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDelete + var obj *PayabliAPIResponsePaymethodDelete // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -459,11 +459,11 @@ func TestGettersPayabliApiResponsePaymethodDelete(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var fernTestValueIsSuccess *IsSuccess // Act @@ -494,8 +494,8 @@ func TestSettersMarkExplicitPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} - var fernTestValueResponseData *PayabliApiResponsePaymethodDeleteResponseData + obj := &PayabliAPIResponsePaymethodDelete{} + var fernTestValueResponseData *PayabliAPIResponsePaymethodDeleteResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -525,7 +525,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} var fernTestValueResponseText ResponseText // Act @@ -555,17 +555,17 @@ func TestSettersMarkExplicitPayabliApiResponsePaymethodDelete(t *testing.T) { } -func TestSettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { - t.Run("SetReferenceId", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDeleteResponseData{} - var fernTestValueReferenceId *MethodReferenceId - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) +func TestSettersPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} + var fernTestValueReferenceID *MethodReferenceID + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResultCode", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var fernTestValueResultCode *ResultCode obj.SetResultCode(fernTestValueResultCode) assert.Equal(t, fernTestValueResultCode, obj.ResultCode) @@ -573,7 +573,7 @@ func TestSettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { }) t.Run("SetResultText", func(t *testing.T) { - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var fernTestValueResultText *Resulttext obj.SetResultText(fernTestValueResultText) assert.Equal(t, fernTestValueResultText, obj.ResultText) @@ -582,44 +582,44 @@ func TestSettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { } -func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { - t.Run("GetReferenceId", func(t *testing.T) { +func TestGettersPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} - var expected *MethodReferenceId - obj.ReferenceId = expected + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} + var expected *MethodReferenceID + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} - obj.ReferenceId = nil + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDeleteResponseData + var obj *PayabliAPIResponsePaymethodDeleteResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var expected *ResultCode obj.ResultCode = expected @@ -630,7 +630,7 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetResultCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} obj.ResultCode = nil // Act & Assert @@ -639,7 +639,7 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetResultCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDeleteResponseData + var obj *PayabliAPIResponsePaymethodDeleteResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -652,7 +652,7 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetResultText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var expected *Resulttext obj.ResultText = expected @@ -663,7 +663,7 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetResultText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} obj.ResultText = nil // Act & Assert @@ -672,7 +672,7 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetResultText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDeleteResponseData + var obj *PayabliAPIResponsePaymethodDeleteResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -684,15 +684,15 @@ func TestGettersPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} - var fernTestValueReferenceId *MethodReferenceId + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} + var fernTestValueReferenceID *MethodReferenceID // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -719,7 +719,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaymethodDeleteResponseData(t *tes t.Run("SetResultCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var fernTestValueResultCode *ResultCode // Act @@ -750,7 +750,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaymethodDeleteResponseData(t *tes t.Run("SetResultText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} var fernTestValueResultText *Resulttext // Act @@ -996,11 +996,11 @@ func TestSettersMarkExplicitAddMethodResponse(t *testing.T) { } func TestSettersAddMethodResponseResponseData(t *testing.T) { - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &AddMethodResponseResponseData{} - var fernTestValueReferenceId *MethodReferenceId - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *MethodReferenceID + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -1020,47 +1020,47 @@ func TestSettersAddMethodResponseResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &AddMethodResponseResponseData{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { + t.Run("SetMethodReferenceID", func(t *testing.T) { obj := &AddMethodResponseResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersAddMethodResponseResponseData(t *testing.T) { - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var expected *MethodReferenceId - obj.ReferenceId = expected + var expected *MethodReferenceID + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - obj.ReferenceId = nil + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AddMethodResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -1069,7 +1069,7 @@ func TestGettersAddMethodResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { @@ -1138,28 +1138,28 @@ func TestGettersAddMethodResponseResponseData(t *testing.T) { _ = obj.GetResultText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AddMethodResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -1168,31 +1168,31 @@ func TestGettersAddMethodResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - obj.MethodReferenceId = nil + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AddMethodResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -1201,20 +1201,20 @@ func TestGettersAddMethodResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) } func TestSettersMarkExplicitAddMethodResponseResponseData(t *testing.T) { - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var fernTestValueReferenceId *MethodReferenceId + var fernTestValueReferenceID *MethodReferenceID // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1300,14 +1300,14 @@ func TestSettersMarkExplicitAddMethodResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1331,14 +1331,14 @@ func TestSettersMarkExplicitAddMethodResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AddMethodResponseResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1373,11 +1373,11 @@ func TestSettersConvertToken(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTokenId", func(t *testing.T) { + t.Run("SetTokenID", func(t *testing.T) { obj := &ConvertToken{} - var fernTestValueTokenId string - obj.SetTokenId(fernTestValueTokenId) - assert.Equal(t, fernTestValueTokenId, obj.TokenId) + var fernTestValueTokenID string + obj.SetTokenID(fernTestValueTokenID) + assert.Equal(t, fernTestValueTokenID, obj.TokenID) assert.NotNil(t, obj.explicitFields) }) @@ -1407,18 +1407,18 @@ func TestGettersConvertToken(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetTokenId", func(t *testing.T) { + t.Run("GetTokenID", func(t *testing.T) { t.Parallel() // Arrange obj := &ConvertToken{} var expected string - obj.TokenId = expected + obj.TokenID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTokenId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTokenID(), "getter should return the property value") }) - t.Run("GetTokenId_NilReceiver", func(t *testing.T) { + t.Run("GetTokenID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ConvertToken // Should not panic - getters should handle nil receiver gracefully @@ -1427,7 +1427,7 @@ func TestGettersConvertToken(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTokenId() // Should return zero value + _ = obj.GetTokenID() // Should return zero value }) } @@ -1464,14 +1464,14 @@ func TestSettersMarkExplicitConvertToken(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTokenId_MarksExplicit", func(t *testing.T) { + t.Run("SetTokenID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ConvertToken{} - var fernTestValueTokenId string + var fernTestValueTokenID string // Act - obj.SetTokenId(fernTestValueTokenId) + obj.SetTokenID(fernTestValueTokenID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1793,11 +1793,11 @@ func TestSettersGetMethodResponseResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdPmethod", func(t *testing.T) { + t.Run("SetIDPmethod", func(t *testing.T) { obj := &GetMethodResponseResponseData{} - var fernTestValueIdPmethod *string - obj.SetIdPmethod(fernTestValueIdPmethod) - assert.Equal(t, fernTestValueIdPmethod, obj.IdPmethod) + var fernTestValueIDPmethod *string + obj.SetIDPmethod(fernTestValueIDPmethod) + assert.Equal(t, fernTestValueIDPmethod, obj.IDPmethod) assert.NotNil(t, obj.explicitFields) }) @@ -2190,28 +2190,28 @@ func TestGettersGetMethodResponseResponseData(t *testing.T) { _ = obj.GetHolderName() // Should return zero value }) - t.Run("GetIdPmethod", func(t *testing.T) { + t.Run("GetIDPmethod", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseData{} var expected *string - obj.IdPmethod = expected + obj.IDPmethod = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdPmethod(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDPmethod(), "getter should return the property value") }) - t.Run("GetIdPmethod_NilValue", func(t *testing.T) { + t.Run("GetIDPmethod_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseData{} - obj.IdPmethod = nil + obj.IDPmethod = nil // Act & Assert - assert.Nil(t, obj.GetIdPmethod(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDPmethod(), "getter should return nil when property is nil") }) - t.Run("GetIdPmethod_NilReceiver", func(t *testing.T) { + t.Run("GetIDPmethod_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseData // Should not panic - getters should handle nil receiver gracefully @@ -2220,7 +2220,7 @@ func TestGettersGetMethodResponseResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdPmethod() // Should return zero value + _ = obj.GetIDPmethod() // Should return zero value }) t.Run("GetIsValidatedAch", func(t *testing.T) { @@ -2767,14 +2767,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdPmethod_MarksExplicit", func(t *testing.T) { + t.Run("SetIDPmethod_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseData{} - var fernTestValueIdPmethod *string + var fernTestValueIDPmethod *string // Act - obj.SetIdPmethod(fernTestValueIdPmethod) + obj.SetIDPmethod(fernTestValueIDPmethod) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3098,11 +3098,11 @@ func TestSettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -3234,11 +3234,11 @@ func TestSettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -3274,11 +3274,11 @@ func TestSettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -3695,28 +3695,28 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { _ = obj.GetCompany() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataCustomersItem // Should not panic - getters should handle nil receiver gracefully @@ -3725,7 +3725,7 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerNumber", func(t *testing.T) { @@ -4256,28 +4256,28 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { _ = obj.GetCustomerUsername() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataCustomersItem // Should not panic - getters should handle nil receiver gracefully @@ -4286,7 +4286,7 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -4421,28 +4421,28 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { _ = obj.GetPageindentifier() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataCustomersItem // Should not panic - getters should handle nil receiver gracefully @@ -4451,7 +4451,7 @@ func TestGettersGetMethodResponseResponseDataCustomersItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -5097,14 +5097,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataCustomersItem(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5624,14 +5624,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataCustomersItem(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5779,14 +5779,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataCustomersItem(t *testin // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataCustomersItem{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6235,19 +6235,19 @@ func TestSettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueExternalPaypointId *string - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *string + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueInternalReferenceId *InternalReferenceId - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *InternalReferenceID + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -6291,11 +6291,11 @@ func TestSettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueParentOrgId *int - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *int + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -6347,11 +6347,11 @@ func TestSettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValuePaypointId *string - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *string + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -6451,11 +6451,11 @@ func TestSettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueVendorId *Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -6948,28 +6948,28 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { _ = obj.GetEnrollmentStatus() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} var expected *string - obj.ExternalPaypointId = expected + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataVendorsItem // Should not panic - getters should handle nil receiver gracefully @@ -6978,31 +6978,31 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var expected *InternalReferenceId - obj.InternalReferenceId = expected + var expected *InternalReferenceID + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataVendorsItem // Should not panic - getters should handle nil receiver gracefully @@ -7011,7 +7011,7 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -7179,28 +7179,28 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { _ = obj.GetName2() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} var expected *int - obj.ParentOrgId = expected + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataVendorsItem // Should not panic - getters should handle nil receiver gracefully @@ -7209,7 +7209,7 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -7410,28 +7410,28 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} var expected *string - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataVendorsItem // Should not panic - getters should handle nil receiver gracefully @@ -7440,7 +7440,7 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointLegalname", func(t *testing.T) { @@ -7839,28 +7839,28 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { _ = obj.GetSummary() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} var expected *Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GetMethodResponseResponseDataVendorsItem // Should not panic - getters should handle nil receiver gracefully @@ -7869,7 +7869,7 @@ func TestGettersGetMethodResponseResponseDataVendorsItem(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetVendorNumber", func(t *testing.T) { @@ -8408,14 +8408,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataVendorsItem(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueExternalPaypointId *string + var fernTestValueExternalPaypointID *string // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8439,14 +8439,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataVendorsItem(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueInternalReferenceId *InternalReferenceId + var fernTestValueInternalReferenceID *InternalReferenceID // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8625,14 +8625,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataVendorsItem(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueParentOrgId *int + var fernTestValueParentOrgID *int // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -8842,14 +8842,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataVendorsItem(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValuePaypointId *string + var fernTestValuePaypointID *string // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -9245,14 +9245,14 @@ func TestSettersMarkExplicitGetMethodResponseResponseDataVendorsItem(t *testing. // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GetMethodResponseResponseDataVendorsItem{} - var fernTestValueVendorId *Vendorid + var fernTestValueVendorID *Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11067,11 +11067,11 @@ func TestSettersMarkExplicitTokenizeCard(t *testing.T) { } func TestSettersVendorDataRequest(t *testing.T) { - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VendorDataRequest{} - var fernTestValueVendorId *int64 - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *int64 + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -11086,28 +11086,28 @@ func TestSettersVendorDataRequest(t *testing.T) { } func TestGettersVendorDataRequest(t *testing.T) { - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataRequest{} var expected *int64 - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataRequest{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorDataRequest // Should not panic - getters should handle nil receiver gracefully @@ -11116,7 +11116,7 @@ func TestGettersVendorDataRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetVendorNumber", func(t *testing.T) { @@ -11155,14 +11155,14 @@ func TestGettersVendorDataRequest(t *testing.T) { } func TestSettersMarkExplicitVendorDataRequest(t *testing.T) { - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorDataRequest{} - var fernTestValueVendorId *int64 + var fernTestValueVendorID *int64 // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -11450,11 +11450,11 @@ func TestJSONMarshalingGetMethodResponseResponseDataVendorsItem(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -11463,31 +11463,31 @@ func TestJSONMarshalingPayabliApiResponsePaymethodDelete(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponsePaymethodDelete + var unmarshaled PayabliAPIResponsePaymethodDelete err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymethodDelete + var obj PayabliAPIResponsePaymethodDelete err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymethodDelete + var obj PayabliAPIResponsePaymethodDelete err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -11496,21 +11496,21 @@ func TestJSONMarshalingPayabliApiResponsePaymethodDeleteResponseData(t *testing. assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponsePaymethodDeleteResponseData + var unmarshaled PayabliAPIResponsePaymethodDeleteResponseData err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymethodDeleteResponseData + var obj PayabliAPIResponsePaymethodDeleteResponseData err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaymethodDeleteResponseData + var obj PayabliAPIResponsePaymethodDeleteResponseData err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -11760,33 +11760,33 @@ func TestStringGetMethodResponseResponseDataVendorsItem(t *testing.T) { }) } -func TestStringPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestStringPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDelete + var obj *PayabliAPIResponsePaymethodDelete result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { +func TestStringPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDeleteResponseData + var obj *PayabliAPIResponsePaymethodDeleteResponseData result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -12017,10 +12017,10 @@ func TestExtraPropertiesGetMethodResponseResponseDataVendorsItem(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponsePaymethodDelete(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponsePaymethodDelete(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymethodDelete{} + obj := &PayabliAPIResponsePaymethodDelete{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -12034,16 +12034,16 @@ func TestExtraPropertiesPayabliApiResponsePaymethodDelete(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDelete + var obj *PayabliAPIResponsePaymethodDelete extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponsePaymethodDeleteResponseData(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponsePaymethodDeleteResponseData(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaymethodDeleteResponseData{} + obj := &PayabliAPIResponsePaymethodDeleteResponseData{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -12057,7 +12057,7 @@ func TestExtraPropertiesPayabliApiResponsePaymethodDeleteResponseData(t *testing t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaymethodDeleteResponseData + var obj *PayabliAPIResponsePaymethodDeleteResponseData extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/tokenstorage/client.go b/tokenstorage/client.go index 6775202..db6913b 100644 --- a/tokenstorage/client.go +++ b/tokenstorage/client.go @@ -53,13 +53,13 @@ func (c *Client) AddMethod( func (c *Client) GetMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, request *payabli.GetMethodRequest, opts ...option.RequestOption, ) (*payabli.GetMethodResponse, error) { response, err := c.WithRawResponse.GetMethod( ctx, - methodId, + methodID, request, opts..., ) @@ -73,12 +73,12 @@ func (c *Client) GetMethod( func (c *Client) RemoveMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymethodDelete, error) { +) (*payabli.PayabliAPIResponsePaymethodDelete, error) { response, err := c.WithRawResponse.RemoveMethod( ctx, - methodId, + methodID, opts..., ) if err != nil { @@ -91,13 +91,13 @@ func (c *Client) RemoveMethod( func (c *Client) UpdateMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, request *payabli.UpdateMethodRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponsePaymethodDelete, error) { +) (*payabli.PayabliAPIResponsePaymethodDelete, error) { response, err := c.WithRawResponse.UpdateMethod( ctx, - methodId, + methodID, request, opts..., ) diff --git a/tokenstorage/raw_client.go b/tokenstorage/raw_client.go index 757e5a7..3bfe505 100644 --- a/tokenstorage/raw_client.go +++ b/tokenstorage/raw_client.go @@ -86,7 +86,7 @@ func (r *RawClient) AddMethod( func (r *RawClient) GetMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, request *payabli.GetMethodRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.GetMethodResponse], error) { @@ -98,7 +98,7 @@ func (r *RawClient) GetMethod( ) endpointURL := internal.EncodeURL( baseURL+"/TokenStorage/%v", - methodId, + methodID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -139,9 +139,9 @@ func (r *RawClient) GetMethod( func (r *RawClient) RemoveMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymethodDelete], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymethodDelete], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -150,13 +150,13 @@ func (r *RawClient) RemoveMethod( ) endpointURL := internal.EncodeURL( baseURL+"/TokenStorage/%v", - methodId, + methodID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponsePaymethodDelete + var response *payabli.PayabliAPIResponsePaymethodDelete raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -174,7 +174,7 @@ func (r *RawClient) RemoveMethod( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymethodDelete]{ + return &core.Response[*payabli.PayabliAPIResponsePaymethodDelete]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -184,10 +184,10 @@ func (r *RawClient) RemoveMethod( func (r *RawClient) UpdateMethod( ctx context.Context, // The saved payment method ID. - methodId string, + methodID string, request *payabli.UpdateMethodRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponsePaymethodDelete], error) { +) (*core.Response[*payabli.PayabliAPIResponsePaymethodDelete], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -196,7 +196,7 @@ func (r *RawClient) UpdateMethod( ) endpointURL := internal.EncodeURL( baseURL+"/TokenStorage/%v", - methodId, + methodID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -210,7 +210,7 @@ func (r *RawClient) UpdateMethod( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponsePaymethodDelete + var response *payabli.PayabliAPIResponsePaymethodDelete raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -228,7 +228,7 @@ func (r *RawClient) UpdateMethod( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponsePaymethodDelete]{ + return &core.Response[*payabli.PayabliAPIResponsePaymethodDelete]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/tokenstorage/token_storage_test/token_storage_test.go b/tokenstorage/token_storage_test/token_storage_test.go index 2e5e913..f228aeb 100644 --- a/tokenstorage/token_storage_test/token_storage_test.go +++ b/tokenstorage/token_storage_test/token_storage_test.go @@ -75,7 +75,7 @@ func TestTokenStorageAddMethodWithWireMock( request := &payabli.AddMethodRequest{ Body: &payabli.RequestTokenStorage{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, @@ -188,7 +188,7 @@ func TestTokenStorageUpdateMethodWithWireMock( request := &payabli.UpdateMethodRequest{ Body: &payabli.RequestTokenStorage{ CustomerData: &payabli.PayorDataRequest{ - CustomerId: payabli.Int64( + CustomerID: payabli.Int64( int64(4440), ), }, diff --git a/types.go b/types.go index 01a3240..6922f84 100644 --- a/types.go +++ b/types.go @@ -217,7 +217,7 @@ type AcceptOauth = bool type AcceptRegister = bool // Custom identifier for payment connector. -type AccountId = string +type AccountID = string // Account number for bank account. This value is returned masked in responses. type AccountNumber = string @@ -262,12 +262,12 @@ func (a AchHolderType) Ptr() *AchHolderType { // ACH payment method. var ( - achPaymentMethodFieldStoredMethodId = big.NewInt(1 << 0) + achPaymentMethodFieldStoredMethodID = big.NewInt(1 << 0) ) type AchPaymentMethod struct { // ID of the stored ACH payment method. Required when using a previously saved ACH method when the vendor has more than one saved method. See the [Payouts with saved ACH payment methods](/developers/developer-guides/pay-out-manage-payouts) section for more details. - StoredMethodId *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -277,11 +277,11 @@ type AchPaymentMethod struct { rawJSON json.RawMessage } -func (a *AchPaymentMethod) GetStoredMethodId() *string { +func (a *AchPaymentMethod) GetStoredMethodID() *string { if a == nil { return nil } - return a.StoredMethodId + return a.StoredMethodID } func (a *AchPaymentMethod) Method() string { @@ -302,11 +302,11 @@ func (a *AchPaymentMethod) require(field *big.Int) { a.explicitFields.Or(a.explicitFields, field) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AchPaymentMethod) SetStoredMethodId(storedMethodId *string) { - a.StoredMethodId = storedMethodId - a.require(achPaymentMethodFieldStoredMethodId) +func (a *AchPaymentMethod) SetStoredMethodID(storedMethodID *string) { + a.StoredMethodID = storedMethodID + a.require(achPaymentMethodFieldStoredMethodID) } func (a *AchPaymentMethod) UnmarshalJSON(data []byte) error { @@ -904,8 +904,8 @@ type Baddress2 = string // Object that contains bank account details. var ( - bankFieldId = big.NewInt(1 << 0) - bankFieldAccountId = big.NewInt(1 << 1) + bankFieldID = big.NewInt(1 << 0) + bankFieldAccountID = big.NewInt(1 << 1) bankFieldNickname = big.NewInt(1 << 2) bankFieldBankName = big.NewInt(1 << 3) bankFieldRoutingAccount = big.NewInt(1 << 4) @@ -921,9 +921,9 @@ var ( type Bank struct { // The Payabli-assigned internal identifier for the bank account. - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` // An identifier for the bank account, used to specify which account handles payments when multiple accounts are configured. If not provided during creation or update, the system generates one in the format `acct-{first_digit}xxxxx{last_4_digits}` based on the account number. The mask always uses five `x` characters regardless of account number length. For example, account number `123456789` produces `acct-1xxxxx6789`. If a duplicate exists within the same service at the paypoint, a numeric suffix is appended, such as `acct-1xxxxx6789-2`. This value is also used as the identifier for the bank account's associated payment connector. - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` Nickname *BankNickname `json:"nickname,omitempty" url:"nickname,omitempty"` BankName *BankName `json:"bankName,omitempty" url:"bankName,omitempty"` RoutingAccount *RoutingAccount `json:"routingAccount,omitempty" url:"routingAccount,omitempty"` @@ -946,18 +946,18 @@ type Bank struct { rawJSON json.RawMessage } -func (b *Bank) GetId() *int { +func (b *Bank) GetID() *int { if b == nil { return nil } - return b.Id + return b.ID } -func (b *Bank) GetAccountId() *AccountId { +func (b *Bank) GetAccountID() *AccountID { if b == nil { return nil } - return b.AccountId + return b.AccountID } func (b *Bank) GetNickname() *BankNickname { @@ -1051,18 +1051,18 @@ func (b *Bank) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *Bank) SetId(id *int) { - b.Id = id - b.require(bankFieldId) +func (b *Bank) SetID(id *int) { + b.ID = id + b.require(bankFieldID) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *Bank) SetAccountId(accountId *AccountId) { - b.AccountId = accountId - b.require(bankFieldAccountId) +func (b *Bank) SetAccountID(accountID *AccountID) { + b.AccountID = accountID + b.require(bankFieldAccountID) } // SetNickname sets the Nickname field and marks it as non-optional; @@ -1980,7 +1980,7 @@ func (b BillDataPaymentTerms) Ptr() *BillDataPaymentTerms { type BillEvents = []*GeneralEvents // The bill's ID in Payabli. This value is automatically generated by Payabli when the bill is created. -type BillId = int64 +type BillID = int64 var ( billItemFieldItemCategories = big.NewInt(1 << 0) @@ -2250,7 +2250,7 @@ func (b *BillItem) String() string { } var ( - billPayOutDataFieldBillId = big.NewInt(1 << 0) + billPayOutDataFieldBillID = big.NewInt(1 << 0) billPayOutDataFieldComments = big.NewInt(1 << 1) billPayOutDataFieldDueDate = big.NewInt(1 << 2) billPayOutDataFieldInvoiceDate = big.NewInt(1 << 3) @@ -2266,7 +2266,7 @@ var ( type BillPayOutData struct { // Bill ID in Payabli. - BillId *int64 `json:"billId,omitempty" url:"billId,omitempty"` + BillID *int64 `json:"billId,omitempty" url:"billId,omitempty"` // Any comments about bill. **For managed payouts, this field has a limit of 100 characters**. Comments *Comments `json:"comments,omitempty" url:"comments,omitempty"` // Bill due date in format YYYY-MM-DD or MM/DD/YYYY. @@ -2294,11 +2294,11 @@ type BillPayOutData struct { rawJSON json.RawMessage } -func (b *BillPayOutData) GetBillId() *int64 { +func (b *BillPayOutData) GetBillID() *int64 { if b == nil { return nil } - return b.BillId + return b.BillID } func (b *BillPayOutData) GetComments() *Comments { @@ -2392,11 +2392,11 @@ func (b *BillPayOutData) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillPayOutData) SetBillId(billId *int64) { - b.BillId = billId - b.require(billPayOutDataFieldBillId) +func (b *BillPayOutData) SetBillID(billID *int64) { + b.BillID = billID + b.require(billPayOutDataFieldBillID) } // SetComments sets the Comments field and marks it as non-optional; @@ -2548,7 +2548,7 @@ var ( billingDataFieldBankAccountHolderName = big.NewInt(1 << 2) billingDataFieldBankAccountHolderType = big.NewInt(1 << 3) billingDataFieldBankName = big.NewInt(1 << 4) - billingDataFieldId = big.NewInt(1 << 5) + billingDataFieldID = big.NewInt(1 << 5) billingDataFieldRoutingAccount = big.NewInt(1 << 6) billingDataFieldTypeAccount = big.NewInt(1 << 7) ) @@ -2565,7 +2565,7 @@ type BillingData struct { BankAccountHolderType *BankAccountHolderType `json:"bankAccountHolderType,omitempty" url:"bankAccountHolderType,omitempty"` BankName *BankName `json:"bankName,omitempty" url:"bankName,omitempty"` // The bank's ID in Payabli. - Id *int `json:"id,omitempty" url:"id,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` RoutingAccount *RoutingAccount `json:"routingAccount,omitempty" url:"routingAccount,omitempty"` TypeAccount *TypeAccount `json:"typeAccount,omitempty" url:"typeAccount,omitempty"` @@ -2611,11 +2611,11 @@ func (b *BillingData) GetBankName() *BankName { return b.BankName } -func (b *BillingData) GetId() *int { +func (b *BillingData) GetID() *int { if b == nil { return nil } - return b.Id + return b.ID } func (b *BillingData) GetRoutingAccount() *RoutingAccount { @@ -2681,11 +2681,11 @@ func (b *BillingData) SetBankName(bankName *BankName) { b.require(billingDataFieldBankName) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillingData) SetId(id *int) { - b.Id = id - b.require(billingDataFieldId) +func (b *BillingData) SetID(id *int) { + b.ID = id + b.require(billingDataFieldID) } // SetRoutingAccount sets the RoutingAccount field and marks it as non-optional; @@ -2745,8 +2745,8 @@ func (b *BillingData) String() string { } var ( - billingDataResponseFieldId = big.NewInt(1 << 0) - billingDataResponseFieldAccountId = big.NewInt(1 << 1) + billingDataResponseFieldID = big.NewInt(1 << 0) + billingDataResponseFieldAccountID = big.NewInt(1 << 1) billingDataResponseFieldNickname = big.NewInt(1 << 2) billingDataResponseFieldBankName = big.NewInt(1 << 3) billingDataResponseFieldRoutingAccount = big.NewInt(1 << 4) @@ -2763,9 +2763,9 @@ var ( type BillingDataResponse struct { // The bank's ID in Payabli. - Id int `json:"id" url:"id"` + ID int `json:"id" url:"id"` // An identifier for the bank account. If not provided during creation or update, the system generates one in the format `acct-{first_digit}xxxxx{last_4_digits}` based on the account number. If a duplicate exists within the same service at the paypoint, a numeric suffix is appended, such as `-2`. This value is also used as the identifier for the bank account's associated payment connector. - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` Nickname string `json:"nickname" url:"nickname"` BankName BankName `json:"bankName" url:"bankName"` RoutingAccount RoutingAccount `json:"routingAccount" url:"routingAccount"` @@ -2790,18 +2790,18 @@ type BillingDataResponse struct { rawJSON json.RawMessage } -func (b *BillingDataResponse) GetId() int { +func (b *BillingDataResponse) GetID() int { if b == nil { return 0 } - return b.Id + return b.ID } -func (b *BillingDataResponse) GetAccountId() *AccountId { +func (b *BillingDataResponse) GetAccountID() *AccountID { if b == nil { return nil } - return b.AccountId + return b.AccountID } func (b *BillingDataResponse) GetNickname() string { @@ -2902,18 +2902,18 @@ func (b *BillingDataResponse) require(field *big.Int) { b.explicitFields.Or(b.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillingDataResponse) SetId(id int) { - b.Id = id - b.require(billingDataResponseFieldId) +func (b *BillingDataResponse) SetID(id int) { + b.ID = id + b.require(billingDataResponseFieldID) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (b *BillingDataResponse) SetAccountId(accountId *AccountId) { - b.AccountId = accountId - b.require(billingDataResponseFieldAccountId) +func (b *BillingDataResponse) SetAccountID(accountID *AccountID) { + b.AccountID = accountID + b.require(billingDataResponseFieldAccountID) } // SetNickname sets the Nickname field and marks it as non-optional; @@ -3424,10 +3424,10 @@ func (b *BoardingApplicationAttachments) String() string { } // The Payabli-assigned ID of the boarding application linked to this paypoint. -type BoardingId = int64 +type BoardingID = int64 // The boarding link ID. This is found at the end of the boarding link reference name. For example: `https://boarding.payabli.com/boarding/app/myorgaccountname-00091`. The ID is `91`. -type BoardingLinkId = int +type BoardingLinkID = int // Business phone number. type Bphone = string @@ -3728,7 +3728,7 @@ type Cardnumber = string type Cardzip = string // Identifier of chargeback transaction -type ChargebackId = int64 +type ChargebackID = int64 // The city. type CityNullable = string @@ -4710,13 +4710,13 @@ func (c *CustomerData) String() string { } // The Payabli-generated unique ID for the customer. -type CustomerId = int64 +type CustomerID = int64 // User-provided unique identifier for the customer. This is typically the customer ID from your own system. type CustomerNumberNullable = string var ( - customerQueryRecordsFieldCustomerId = big.NewInt(1 << 0) + customerQueryRecordsFieldCustomerID = big.NewInt(1 << 0) customerQueryRecordsFieldCustomerNumber = big.NewInt(1 << 1) customerQueryRecordsFieldCustomerUsername = big.NewInt(1 << 2) customerQueryRecordsFieldCustomerStatus = big.NewInt(1 << 3) @@ -4754,15 +4754,15 @@ var ( customerQueryRecordsFieldPaypointLegalname = big.NewInt(1 << 35) customerQueryRecordsFieldPaypointDbaname = big.NewInt(1 << 36) customerQueryRecordsFieldParentOrgName = big.NewInt(1 << 37) - customerQueryRecordsFieldParentOrgId = big.NewInt(1 << 38) + customerQueryRecordsFieldParentOrgID = big.NewInt(1 << 38) customerQueryRecordsFieldPaypointEntryname = big.NewInt(1 << 39) customerQueryRecordsFieldPageidentifier = big.NewInt(1 << 40) - customerQueryRecordsFieldExternalPaypointId = big.NewInt(1 << 41) + customerQueryRecordsFieldExternalPaypointID = big.NewInt(1 << 41) customerQueryRecordsFieldCustomerConsent = big.NewInt(1 << 42) ) type CustomerQueryRecords struct { - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerNumber *CustomerNumberNullable `json:"customerNumber,omitempty" url:"customerNumber,omitempty"` // Username for customer. CustomerUsername *string `json:"customerUsername,omitempty" url:"customerUsername,omitempty"` @@ -4831,10 +4831,10 @@ type CustomerQueryRecords struct { // Paypoint DBA name. PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` CustomerConsent *CustomerQueryRecordsCustomerConsent `json:"customerConsent,omitempty" url:"customerConsent,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -4844,11 +4844,11 @@ type CustomerQueryRecords struct { rawJSON json.RawMessage } -func (c *CustomerQueryRecords) GetCustomerId() *CustomerId { +func (c *CustomerQueryRecords) GetCustomerID() *CustomerID { if c == nil { return nil } - return c.CustomerId + return c.CustomerID } func (c *CustomerQueryRecords) GetCustomerNumber() *CustomerNumberNullable { @@ -5110,11 +5110,11 @@ func (c *CustomerQueryRecords) GetParentOrgName() *OrgParentName { return c.ParentOrgName } -func (c *CustomerQueryRecords) GetParentOrgId() *OrgParentId { +func (c *CustomerQueryRecords) GetParentOrgID() *OrgParentID { if c == nil { return nil } - return c.ParentOrgId + return c.ParentOrgID } func (c *CustomerQueryRecords) GetPaypointEntryname() *Entrypointfield { @@ -5131,11 +5131,11 @@ func (c *CustomerQueryRecords) GetPageidentifier() *PageIdentifier { return c.Pageidentifier } -func (c *CustomerQueryRecords) GetExternalPaypointId() *ExternalPaypointId { +func (c *CustomerQueryRecords) GetExternalPaypointID() *ExternalPaypointID { if c == nil { return nil } - return c.ExternalPaypointId + return c.ExternalPaypointID } func (c *CustomerQueryRecords) GetCustomerConsent() *CustomerQueryRecordsCustomerConsent { @@ -5159,11 +5159,11 @@ func (c *CustomerQueryRecords) require(field *big.Int) { c.explicitFields.Or(c.explicitFields, field) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CustomerQueryRecords) SetCustomerId(customerId *CustomerId) { - c.CustomerId = customerId - c.require(customerQueryRecordsFieldCustomerId) +func (c *CustomerQueryRecords) SetCustomerID(customerID *CustomerID) { + c.CustomerID = customerID + c.require(customerQueryRecordsFieldCustomerID) } // SetCustomerNumber sets the CustomerNumber field and marks it as non-optional; @@ -5425,11 +5425,11 @@ func (c *CustomerQueryRecords) SetParentOrgName(parentOrgName *OrgParentName) { c.require(customerQueryRecordsFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CustomerQueryRecords) SetParentOrgId(parentOrgId *OrgParentId) { - c.ParentOrgId = parentOrgId - c.require(customerQueryRecordsFieldParentOrgId) +func (c *CustomerQueryRecords) SetParentOrgID(parentOrgID *OrgParentID) { + c.ParentOrgID = parentOrgID + c.require(customerQueryRecordsFieldParentOrgID) } // SetPaypointEntryname sets the PaypointEntryname field and marks it as non-optional; @@ -5446,11 +5446,11 @@ func (c *CustomerQueryRecords) SetPageidentifier(pageidentifier *PageIdentifier) c.require(customerQueryRecordsFieldPageidentifier) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *CustomerQueryRecords) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - c.ExternalPaypointId = externalPaypointId - c.require(customerQueryRecordsFieldExternalPaypointId) +func (c *CustomerQueryRecords) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + c.ExternalPaypointID = externalPaypointID + c.require(customerQueryRecordsFieldExternalPaypointID) } // SetCustomerConsent sets the CustomerConsent field and marks it as non-optional; @@ -6344,7 +6344,7 @@ type EnrollmentStatus = string // The entity's ID in Payabli. If the entity is a paypoint, this is the // paypoint ID. If the entity is an organization, this is the organization // ID. -type EntityId = int64 +type EntityID = int64 // The entity's entrypoint identifier. [Learn more](/developers/api-reference/api-overview#entrypoint-vs-entry) type Entry = string @@ -6352,7 +6352,7 @@ type Entry = string type EntryAttributes = string // If applicable, the internal reference ID to the payment page capturing the payment. -type EntrypageId = int64 +type EntrypageID = int64 // The entrypoint identifier. type Entrypointfield = string @@ -6383,7 +6383,7 @@ func (e ExportFormat) Ptr() *ExportFormat { } // A custom identifier for the paypoint, if applicable. Like `entrypoint` is the Payabli identifier for the merchant, `externalPaypointId` is a custom field you can use to include the merchant's ID from your own systems. -type ExternalPaypointId = string +type ExternalPaypointID = string // Processor information, used for troubleshooting and reporting. This field contains a value when the API key used to make the request has management permissions. type ExternalProcessorInformation = string @@ -7455,7 +7455,7 @@ func (i *Instrument) String() string { } // Internal identifier for global vendor account. -type InternalReferenceId = int64 +type InternalReferenceID = int64 // Invoice total amount. type InvoiceAmount = float64 @@ -7612,7 +7612,7 @@ type InvoiceType = int type Invoicestatus = int // *Recommended*. The customer's IP address. This field is used to help prevent fraudulent transactions, and Payabli strongly recommends including this data. -type IpAddress = string +type IPAddress = string // When `true`, the service is enabled. type IsEnabled = bool @@ -7643,7 +7643,7 @@ type ItemProductName = string type ItemUnitofMeasure = string // The cascade process ID. -type JobId = string +type JobID = string // The cascade process status. Available values: // - `in_progress` @@ -8622,7 +8622,7 @@ var ( methodQueryRecordsFieldDescriptor = big.NewInt(1 << 2) methodQueryRecordsFieldExpDate = big.NewInt(1 << 3) methodQueryRecordsFieldHolderName = big.NewInt(1 << 4) - methodQueryRecordsFieldIdPmethod = big.NewInt(1 << 5) + methodQueryRecordsFieldIDPmethod = big.NewInt(1 << 5) methodQueryRecordsFieldLastUpdated = big.NewInt(1 << 6) methodQueryRecordsFieldMaskedAccount = big.NewInt(1 << 7) methodQueryRecordsFieldMethod = big.NewInt(1 << 8) @@ -8637,7 +8637,7 @@ type MethodQueryRecords struct { ExpDate *string `json:"expDate,omitempty" url:"expDate,omitempty"` HolderName *Holdername `json:"holderName,omitempty" url:"holderName,omitempty"` // Method internal ID - IdPmethod *string `json:"idPmethod,omitempty" url:"idPmethod,omitempty"` + IDPmethod *string `json:"idPmethod,omitempty" url:"idPmethod,omitempty"` // Date of last update LastUpdated *LastModified `json:"lastUpdated,omitempty" url:"lastUpdated,omitempty"` MaskedAccount *Maskedaccount `json:"maskedAccount,omitempty" url:"maskedAccount,omitempty"` @@ -8686,11 +8686,11 @@ func (m *MethodQueryRecords) GetHolderName() *Holdername { return m.HolderName } -func (m *MethodQueryRecords) GetIdPmethod() *string { +func (m *MethodQueryRecords) GetIDPmethod() *string { if m == nil { return nil } - return m.IdPmethod + return m.IDPmethod } func (m *MethodQueryRecords) GetLastUpdated() *LastModified { @@ -8763,11 +8763,11 @@ func (m *MethodQueryRecords) SetHolderName(holderName *Holdername) { m.require(methodQueryRecordsFieldHolderName) } -// SetIdPmethod sets the IdPmethod field and marks it as non-optional; +// SetIDPmethod sets the IDPmethod field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (m *MethodQueryRecords) SetIdPmethod(idPmethod *string) { - m.IdPmethod = idPmethod - m.require(methodQueryRecordsFieldIdPmethod) +func (m *MethodQueryRecords) SetIDPmethod(idPmethod *string) { + m.IDPmethod = idPmethod + m.require(methodQueryRecordsFieldIDPmethod) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -8842,7 +8842,7 @@ func (m *MethodQueryRecords) String() string { } // The stored method's identifier (sometimes referred to as 'token') in Payabli. When `null`, the method wasn't created, or doesn't exist, depending on the operation performed. -type MethodReferenceId = string +type MethodReferenceID = string // Method to use to send the notification to the target. type Methodnotification string @@ -9242,7 +9242,7 @@ var ( notificationContentFieldInternalData = big.NewInt(1 << 2) notificationContentFieldReportName = big.NewInt(1 << 3) notificationContentFieldTimeZone = big.NewInt(1 << 4) - notificationContentFieldTransactionId = big.NewInt(1 << 5) + notificationContentFieldTransactionID = big.NewInt(1 << 5) notificationContentFieldWebHeaderParameters = big.NewInt(1 << 6) ) @@ -9258,7 +9258,7 @@ type NotificationContent struct { ReportName *NotificationContentReportName `json:"reportName,omitempty" url:"reportName,omitempty"` TimeZone *Timezone `json:"timeZone,omitempty" url:"timeZone,omitempty"` // Used internally to reference the entity or object generating the event. - TransactionId *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` + TransactionID *string `json:"transactionId,omitempty" url:"transactionId,omitempty"` // Array of pairs key:value to insert in header of request to target in **method** = *web* or *report-web*. WebHeaderParameters []*KeyValueDuo `json:"webHeaderParameters,omitempty" url:"webHeaderParameters,omitempty"` @@ -9304,11 +9304,11 @@ func (n *NotificationContent) GetTimeZone() *Timezone { return n.TimeZone } -func (n *NotificationContent) GetTransactionId() *string { +func (n *NotificationContent) GetTransactionID() *string { if n == nil { return nil } - return n.TransactionId + return n.TransactionID } func (n *NotificationContent) GetWebHeaderParameters() []*KeyValueDuo { @@ -9367,11 +9367,11 @@ func (n *NotificationContent) SetTimeZone(timeZone *Timezone) { n.require(notificationContentFieldTimeZone) } -// SetTransactionId sets the TransactionId field and marks it as non-optional; +// SetTransactionID sets the TransactionID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (n *NotificationContent) SetTransactionId(transactionId *string) { - n.TransactionId = transactionId - n.require(notificationContentFieldTransactionId) +func (n *NotificationContent) SetTransactionID(transactionID *string) { + n.TransactionID = transactionID + n.require(notificationContentFieldTransactionID) } // SetWebHeaderParameters sets the WebHeaderParameters field and marks it as non-optional; @@ -9679,7 +9679,7 @@ func (n NotificationContentEventType) Ptr() *NotificationContentEventType { type NotificationContentFileFormat string const ( - NotificationContentFileFormatJson NotificationContentFileFormat = "json" + NotificationContentFileFormatJSON NotificationContentFileFormat = "json" NotificationContentFileFormatCsv NotificationContentFileFormat = "csv" NotificationContentFileFormatXlsx NotificationContentFileFormat = "xlsx" ) @@ -9687,7 +9687,7 @@ const ( func NewNotificationContentFileFormatFromString(s string) (NotificationContentFileFormat, error) { switch s { case "json": - return NotificationContentFileFormatJson, nil + return NotificationContentFileFormatJSON, nil case "csv": return NotificationContentFileFormatCsv, nil case "xlsx": @@ -9731,7 +9731,7 @@ func (n NotificationContentReportName) Ptr() *NotificationContentReportName { } // The notification's Payabli identifier. This is the ID used to manage the notification. -type NotificationId = int64 +type NotificationID = int64 var ( odpSetupFieldAllowAch = big.NewInt(1 << 0) @@ -9739,7 +9739,7 @@ var ( odpSetupFieldAllowVCard = big.NewInt(1 << 2) odpSetupFieldProcessingRegion = big.NewInt(1 << 3) odpSetupFieldProcessor = big.NewInt(1 << 4) - odpSetupFieldIssuerNetworkSettingsId = big.NewInt(1 << 5) + odpSetupFieldIssuerNetworkSettingsID = big.NewInt(1 << 5) ) type OdpSetup struct { @@ -9754,7 +9754,7 @@ type OdpSetup struct { // Payment processor identifier Processor *string `json:"processor,omitempty" url:"processor,omitempty"` // Reference ID for the program enabled for ODP issuance - IssuerNetworkSettingsId *string `json:"issuerNetworkSettingsId,omitempty" url:"issuerNetworkSettingsId,omitempty"` + IssuerNetworkSettingsID *string `json:"issuerNetworkSettingsId,omitempty" url:"issuerNetworkSettingsId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -9798,11 +9798,11 @@ func (o *OdpSetup) GetProcessor() *string { return o.Processor } -func (o *OdpSetup) GetIssuerNetworkSettingsId() *string { +func (o *OdpSetup) GetIssuerNetworkSettingsID() *string { if o == nil { return nil } - return o.IssuerNetworkSettingsId + return o.IssuerNetworkSettingsID } func (o *OdpSetup) GetExtraProperties() map[string]interface{} { @@ -9854,11 +9854,11 @@ func (o *OdpSetup) SetProcessor(processor *string) { o.require(odpSetupFieldProcessor) } -// SetIssuerNetworkSettingsId sets the IssuerNetworkSettingsId field and marks it as non-optional; +// SetIssuerNetworkSettingsID sets the IssuerNetworkSettingsID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OdpSetup) SetIssuerNetworkSettingsId(issuerNetworkSettingsId *string) { - o.IssuerNetworkSettingsId = issuerNetworkSettingsId - o.require(odpSetupFieldIssuerNetworkSettingsId) +func (o *OdpSetup) SetIssuerNetworkSettingsID(issuerNetworkSettingsID *string) { + o.IssuerNetworkSettingsID = issuerNetworkSettingsID + o.require(odpSetupFieldIssuerNetworkSettingsID) } func (o *OdpSetup) UnmarshalJSON(data []byte) error { @@ -9943,13 +9943,13 @@ type OptinStatus = int type Order = int // Custom identifier for the transaction. -type OrderId = string +type OrderID = string // Text description of the transaction. type Orderdescription = string var ( - orgDataFieldIdOrg = big.NewInt(1 << 0) + orgDataFieldIDOrg = big.NewInt(1 << 0) orgDataFieldOrgAddress = big.NewInt(1 << 1) orgDataFieldOrgLogo = big.NewInt(1 << 2) orgDataFieldOrgName = big.NewInt(1 << 3) @@ -9958,7 +9958,7 @@ var ( ) type OrgData struct { - IdOrg *Orgid `json:"idOrg,omitempty" url:"idOrg,omitempty"` + IDOrg *Orgid `json:"idOrg,omitempty" url:"idOrg,omitempty"` OrgAddress *Orgaddress `json:"orgAddress,omitempty" url:"orgAddress,omitempty"` OrgLogo *FileContent `json:"orgLogo,omitempty" url:"orgLogo,omitempty"` OrgName *Orgname `json:"orgName,omitempty" url:"orgName,omitempty"` @@ -9977,11 +9977,11 @@ type OrgData struct { rawJSON json.RawMessage } -func (o *OrgData) GetIdOrg() *Orgid { +func (o *OrgData) GetIDOrg() *Orgid { if o == nil { return nil } - return o.IdOrg + return o.IDOrg } func (o *OrgData) GetOrgAddress() *Orgaddress { @@ -10033,11 +10033,11 @@ func (o *OrgData) require(field *big.Int) { o.explicitFields.Or(o.explicitFields, field) } -// SetIdOrg sets the IdOrg field and marks it as non-optional; +// SetIDOrg sets the IDOrg field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrgData) SetIdOrg(idOrg *Orgid) { - o.IdOrg = idOrg - o.require(orgDataFieldIdOrg) +func (o *OrgData) SetIDOrg(idOrg *Orgid) { + o.IDOrg = idOrg + o.require(orgDataFieldIDOrg) } // SetOrgAddress sets the OrgAddress field and marks it as non-optional; @@ -10118,20 +10118,20 @@ func (o *OrgData) String() string { } // The ID of the org's parent organization. -type OrgParentId = int64 +type OrgParentID = int64 // The name of the parent organization. type OrgParentName = string var ( orgXScopeFieldOrgEntry = big.NewInt(1 << 0) - orgXScopeFieldOrgId = big.NewInt(1 << 1) + orgXScopeFieldOrgID = big.NewInt(1 << 1) orgXScopeFieldOrgType = big.NewInt(1 << 2) ) type OrgXScope struct { OrgEntry *Orgentryname `json:"orgEntry,omitempty" url:"orgEntry,omitempty"` - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` OrgType *Orgtype `json:"orgType,omitempty" url:"orgType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -10148,11 +10148,11 @@ func (o *OrgXScope) GetOrgEntry() *Orgentryname { return o.OrgEntry } -func (o *OrgXScope) GetOrgId() *Orgid { +func (o *OrgXScope) GetOrgID() *Orgid { if o == nil { return nil } - return o.OrgId + return o.OrgID } func (o *OrgXScope) GetOrgType() *Orgtype { @@ -10183,11 +10183,11 @@ func (o *OrgXScope) SetOrgEntry(orgEntry *Orgentryname) { o.require(orgXScopeFieldOrgEntry) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrgXScope) SetOrgId(orgId *Orgid) { - o.OrgId = orgId - o.require(orgXScopeFieldOrgId) +func (o *OrgXScope) SetOrgID(orgID *Orgid) { + o.OrgID = orgID + o.require(orgXScopeFieldOrgID) } // SetOrgType sets the OrgType field and marks it as non-optional; @@ -10249,16 +10249,16 @@ var ( organizationQueryRecordFieldCreatedAt = big.NewInt(1 << 3) organizationQueryRecordFieldHasBilling = big.NewInt(1 << 4) organizationQueryRecordFieldHasResidual = big.NewInt(1 << 5) - organizationQueryRecordFieldIdOrg = big.NewInt(1 << 6) + organizationQueryRecordFieldIDOrg = big.NewInt(1 << 6) organizationQueryRecordFieldIsRoot = big.NewInt(1 << 7) organizationQueryRecordFieldOrgAddress = big.NewInt(1 << 8) organizationQueryRecordFieldOrgCity = big.NewInt(1 << 9) organizationQueryRecordFieldOrgCountry = big.NewInt(1 << 10) organizationQueryRecordFieldOrgEntryName = big.NewInt(1 << 11) - organizationQueryRecordFieldOrgId = big.NewInt(1 << 12) + organizationQueryRecordFieldOrgID = big.NewInt(1 << 12) organizationQueryRecordFieldOrgLogo = big.NewInt(1 << 13) organizationQueryRecordFieldOrgName = big.NewInt(1 << 14) - organizationQueryRecordFieldOrgParentId = big.NewInt(1 << 15) + organizationQueryRecordFieldOrgParentID = big.NewInt(1 << 15) organizationQueryRecordFieldOrgParentName = big.NewInt(1 << 16) organizationQueryRecordFieldOrgState = big.NewInt(1 << 17) organizationQueryRecordFieldOrgTimezone = big.NewInt(1 << 18) @@ -10279,16 +10279,16 @@ type OrganizationQueryRecord struct { CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` HasBilling *bool `json:"hasBilling,omitempty" url:"hasBilling,omitempty"` HasResidual *bool `json:"hasResidual,omitempty" url:"hasResidual,omitempty"` - IdOrg *Orgid `json:"idOrg,omitempty" url:"idOrg,omitempty"` + IDOrg *Orgid `json:"idOrg,omitempty" url:"idOrg,omitempty"` IsRoot *IsRoot `json:"isRoot,omitempty" url:"isRoot,omitempty"` OrgAddress *Orgaddress `json:"orgAddress,omitempty" url:"orgAddress,omitempty"` OrgCity *Orgcity `json:"orgCity,omitempty" url:"orgCity,omitempty"` OrgCountry *Orgcountry `json:"orgCountry,omitempty" url:"orgCountry,omitempty"` OrgEntryName *Orgentryname `json:"orgEntryName,omitempty" url:"orgEntryName,omitempty"` - OrgId *Orgidstring `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgidstring `json:"orgId,omitempty" url:"orgId,omitempty"` OrgLogo *FileContent `json:"orgLogo,omitempty" url:"orgLogo,omitempty"` OrgName *Orgname `json:"orgName,omitempty" url:"orgName,omitempty"` - OrgParentId *OrgParentId `json:"orgParentId,omitempty" url:"orgParentId,omitempty"` + OrgParentID *OrgParentID `json:"orgParentId,omitempty" url:"orgParentId,omitempty"` OrgParentName *OrgParentName `json:"orgParentName,omitempty" url:"orgParentName,omitempty"` OrgState *Orgstate `json:"orgState,omitempty" url:"orgState,omitempty"` OrgTimezone *Orgtimezone `json:"orgTimezone,omitempty" url:"orgTimezone,omitempty"` @@ -10350,11 +10350,11 @@ func (o *OrganizationQueryRecord) GetHasResidual() *bool { return o.HasResidual } -func (o *OrganizationQueryRecord) GetIdOrg() *Orgid { +func (o *OrganizationQueryRecord) GetIDOrg() *Orgid { if o == nil { return nil } - return o.IdOrg + return o.IDOrg } func (o *OrganizationQueryRecord) GetIsRoot() *IsRoot { @@ -10392,11 +10392,11 @@ func (o *OrganizationQueryRecord) GetOrgEntryName() *Orgentryname { return o.OrgEntryName } -func (o *OrganizationQueryRecord) GetOrgId() *Orgidstring { +func (o *OrganizationQueryRecord) GetOrgID() *Orgidstring { if o == nil { return nil } - return o.OrgId + return o.OrgID } func (o *OrganizationQueryRecord) GetOrgLogo() *FileContent { @@ -10413,11 +10413,11 @@ func (o *OrganizationQueryRecord) GetOrgName() *Orgname { return o.OrgName } -func (o *OrganizationQueryRecord) GetOrgParentId() *OrgParentId { +func (o *OrganizationQueryRecord) GetOrgParentID() *OrgParentID { if o == nil { return nil } - return o.OrgParentId + return o.OrgParentID } func (o *OrganizationQueryRecord) GetOrgParentName() *OrgParentName { @@ -10553,11 +10553,11 @@ func (o *OrganizationQueryRecord) SetHasResidual(hasResidual *bool) { o.require(organizationQueryRecordFieldHasResidual) } -// SetIdOrg sets the IdOrg field and marks it as non-optional; +// SetIDOrg sets the IDOrg field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrganizationQueryRecord) SetIdOrg(idOrg *Orgid) { - o.IdOrg = idOrg - o.require(organizationQueryRecordFieldIdOrg) +func (o *OrganizationQueryRecord) SetIDOrg(idOrg *Orgid) { + o.IDOrg = idOrg + o.require(organizationQueryRecordFieldIDOrg) } // SetIsRoot sets the IsRoot field and marks it as non-optional; @@ -10595,11 +10595,11 @@ func (o *OrganizationQueryRecord) SetOrgEntryName(orgEntryName *Orgentryname) { o.require(organizationQueryRecordFieldOrgEntryName) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrganizationQueryRecord) SetOrgId(orgId *Orgidstring) { - o.OrgId = orgId - o.require(organizationQueryRecordFieldOrgId) +func (o *OrganizationQueryRecord) SetOrgID(orgID *Orgidstring) { + o.OrgID = orgID + o.require(organizationQueryRecordFieldOrgID) } // SetOrgLogo sets the OrgLogo field and marks it as non-optional; @@ -10616,11 +10616,11 @@ func (o *OrganizationQueryRecord) SetOrgName(orgName *Orgname) { o.require(organizationQueryRecordFieldOrgName) } -// SetOrgParentId sets the OrgParentId field and marks it as non-optional; +// SetOrgParentID sets the OrgParentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrganizationQueryRecord) SetOrgParentId(orgParentId *OrgParentId) { - o.OrgParentId = orgParentId - o.require(organizationQueryRecordFieldOrgParentId) +func (o *OrganizationQueryRecord) SetOrgParentID(orgParentID *OrgParentID) { + o.OrgParentID = orgParentID + o.require(organizationQueryRecordFieldOrgParentID) } // SetOrgParentName sets the OrgParentName field and marks it as non-optional; @@ -11842,7 +11842,7 @@ var ( pageSettingFieldPageLogo = big.NewInt(1 << 3) pageSettingFieldPaymentButton = big.NewInt(1 << 4) pageSettingFieldRedirectAfterApprove = big.NewInt(1 << 5) - pageSettingFieldRedirectAfterApproveUrl = big.NewInt(1 << 6) + pageSettingFieldRedirectAfterApproveURL = big.NewInt(1 << 6) ) type PageSetting struct { @@ -11858,7 +11858,7 @@ type PageSetting struct { // Flag indicating if the capability for redirection in the page will be activated RedirectAfterApprove *bool `json:"redirectAfterApprove,omitempty" url:"redirectAfterApprove,omitempty"` // Complete URL where the page will be redirected after completion - RedirectAfterApproveUrl *string `json:"redirectAfterApproveUrl,omitempty" url:"redirectAfterApproveUrl,omitempty"` + RedirectAfterApproveURL *string `json:"redirectAfterApproveUrl,omitempty" url:"redirectAfterApproveUrl,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -11909,11 +11909,11 @@ func (p *PageSetting) GetRedirectAfterApprove() *bool { return p.RedirectAfterApprove } -func (p *PageSetting) GetRedirectAfterApproveUrl() *string { +func (p *PageSetting) GetRedirectAfterApproveURL() *string { if p == nil { return nil } - return p.RedirectAfterApproveUrl + return p.RedirectAfterApproveURL } func (p *PageSetting) GetExtraProperties() map[string]interface{} { @@ -11972,11 +11972,11 @@ func (p *PageSetting) SetRedirectAfterApprove(redirectAfterApprove *bool) { p.require(pageSettingFieldRedirectAfterApprove) } -// SetRedirectAfterApproveUrl sets the RedirectAfterApproveUrl field and marks it as non-optional; +// SetRedirectAfterApproveURL sets the RedirectAfterApproveURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PageSetting) SetRedirectAfterApproveUrl(redirectAfterApproveUrl *string) { - p.RedirectAfterApproveUrl = redirectAfterApproveUrl - p.require(pageSettingFieldRedirectAfterApproveUrl) +func (p *PageSetting) SetRedirectAfterApproveURL(redirectAfterApproveURL *string) { + p.RedirectAfterApproveURL = redirectAfterApproveURL + p.require(pageSettingFieldRedirectAfterApproveURL) } func (p *PageSetting) UnmarshalJSON(data []byte) error { @@ -12751,12 +12751,12 @@ func (p *PayMethodCredit) String() string { } var ( - payabliApiResponseFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseFieldResponseData = big.NewInt(1 << 1) - payabliApiResponseFieldResponseText = big.NewInt(1 << 2) + payabliAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseFieldResponseData = big.NewInt(1 << 1) + payabliAPIResponseFieldResponseText = big.NewInt(1 << 2) ) -type PayabliApiResponse struct { +type PayabliAPIResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseData *Responsedata `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` @@ -12768,35 +12768,35 @@ type PayabliApiResponse struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse) GetResponseData() *Responsedata { +func (p *PayabliAPIResponse) GetResponseData() *Responsedata { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse) GetResponseText() ResponseText { +func (p *PayabliAPIResponse) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse) require(field *big.Int) { +func (p *PayabliAPIResponse) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -12805,32 +12805,32 @@ func (p *PayabliApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseFieldIsSuccess) + p.require(payabliAPIResponseFieldIsSuccess) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse) SetResponseData(responseData *Responsedata) { +func (p *PayabliAPIResponse) SetResponseData(responseData *Responsedata) { p.ResponseData = responseData - p.require(payabliApiResponseFieldResponseData) + p.require(payabliAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseFieldResponseText) + p.require(payabliAPIResponseFieldResponseText) } -func (p *PayabliApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse +func (p *PayabliAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse(value) + *p = PayabliAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -12840,8 +12840,8 @@ func (p *PayabliApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse +func (p *PayabliAPIResponse) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse var marshaler = struct { embed }{ @@ -12851,7 +12851,7 @@ func (p *PayabliApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse) String() string { +func (p *PayabliAPIResponse) String() string { if p == nil { return "" } @@ -12867,19 +12867,19 @@ func (p *PayabliApiResponse) String() string { } var ( - payabliApiResponse00ResponsedatanonobjectFieldResponseCode = big.NewInt(1 << 0) - payabliApiResponse00ResponsedatanonobjectFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponse00ResponsedatanonobjectFieldRoomId = big.NewInt(1 << 2) - payabliApiResponse00ResponsedatanonobjectFieldIsSuccess = big.NewInt(1 << 3) - payabliApiResponse00ResponsedatanonobjectFieldResponseText = big.NewInt(1 << 4) - payabliApiResponse00ResponsedatanonobjectFieldResponseData = big.NewInt(1 << 5) + payabliAPIResponse00ResponsedatanonobjectFieldResponseCode = big.NewInt(1 << 0) + payabliAPIResponse00ResponsedatanonobjectFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponse00ResponsedatanonobjectFieldRoomID = big.NewInt(1 << 2) + payabliAPIResponse00ResponsedatanonobjectFieldIsSuccess = big.NewInt(1 << 3) + payabliAPIResponse00ResponsedatanonobjectFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponse00ResponsedatanonobjectFieldResponseData = big.NewInt(1 << 5) ) -type PayabliApiResponse00Responsedatanonobject struct { +type PayabliAPIResponse00Responsedatanonobject struct { ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` // Describes the room ID. Only in use on Boarding endpoints, returns `0` when not applicable. - RoomId *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *Responsedatanonobject `json:"responseData,omitempty" url:"responseData,omitempty"` @@ -12891,56 +12891,56 @@ type PayabliApiResponse00Responsedatanonobject struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse00Responsedatanonobject) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponse00Responsedatanonobject) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponse00Responsedatanonobject) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponse00Responsedatanonobject) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponse00Responsedatanonobject) GetRoomId() *int64 { +func (p *PayabliAPIResponse00Responsedatanonobject) GetRoomID() *int64 { if p == nil { return nil } - return p.RoomId + return p.RoomID } -func (p *PayabliApiResponse00Responsedatanonobject) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponse00Responsedatanonobject) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponse00Responsedatanonobject) GetResponseText() ResponseText { +func (p *PayabliAPIResponse00Responsedatanonobject) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponse00Responsedatanonobject) GetResponseData() *Responsedatanonobject { +func (p *PayabliAPIResponse00Responsedatanonobject) GetResponseData() *Responsedatanonobject { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponse00Responsedatanonobject) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse00Responsedatanonobject) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse00Responsedatanonobject) require(field *big.Int) { +func (p *PayabliAPIResponse00Responsedatanonobject) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -12949,53 +12949,53 @@ func (p *PayabliApiResponse00Responsedatanonobject) require(field *big.Int) { // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponse00Responsedatanonobject) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponse00ResponsedatanonobjectFieldResponseCode) + p.require(payabliAPIResponse00ResponsedatanonobjectFieldResponseCode) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponse00Responsedatanonobject) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponse00ResponsedatanonobjectFieldPageIdentifier) + p.require(payabliAPIResponse00ResponsedatanonobjectFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetRoomId(roomId *int64) { - p.RoomId = roomId - p.require(payabliApiResponse00ResponsedatanonobjectFieldRoomId) +func (p *PayabliAPIResponse00Responsedatanonobject) SetRoomID(roomID *int64) { + p.RoomID = roomID + p.require(payabliAPIResponse00ResponsedatanonobjectFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponse00Responsedatanonobject) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponse00ResponsedatanonobjectFieldIsSuccess) + p.require(payabliAPIResponse00ResponsedatanonobjectFieldIsSuccess) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponse00Responsedatanonobject) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponse00ResponsedatanonobjectFieldResponseText) + p.require(payabliAPIResponse00ResponsedatanonobjectFieldResponseText) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse00Responsedatanonobject) SetResponseData(responseData *Responsedatanonobject) { +func (p *PayabliAPIResponse00Responsedatanonobject) SetResponseData(responseData *Responsedatanonobject) { p.ResponseData = responseData - p.require(payabliApiResponse00ResponsedatanonobjectFieldResponseData) + p.require(payabliAPIResponse00ResponsedatanonobjectFieldResponseData) } -func (p *PayabliApiResponse00Responsedatanonobject) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse00Responsedatanonobject +func (p *PayabliAPIResponse00Responsedatanonobject) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse00Responsedatanonobject var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse00Responsedatanonobject(value) + *p = PayabliAPIResponse00Responsedatanonobject(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13005,8 +13005,8 @@ func (p *PayabliApiResponse00Responsedatanonobject) UnmarshalJSON(data []byte) e return nil } -func (p *PayabliApiResponse00Responsedatanonobject) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse00Responsedatanonobject +func (p *PayabliAPIResponse00Responsedatanonobject) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse00Responsedatanonobject var marshaler = struct { embed }{ @@ -13016,7 +13016,7 @@ func (p *PayabliApiResponse00Responsedatanonobject) MarshalJSON() ([]byte, error return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse00Responsedatanonobject) String() string { +func (p *PayabliAPIResponse00Responsedatanonobject) String() string { if p == nil { return "" } @@ -13032,23 +13032,23 @@ func (p *PayabliApiResponse00Responsedatanonobject) String() string { } var ( - payabliApiResponse0ResponseDataFieldAuthCode = big.NewInt(1 << 0) - payabliApiResponse0ResponseDataFieldAvsResponseText = big.NewInt(1 << 1) - payabliApiResponse0ResponseDataFieldCustomerId = big.NewInt(1 << 2) - payabliApiResponse0ResponseDataFieldCvvResponseText = big.NewInt(1 << 3) - payabliApiResponse0ResponseDataFieldMethodReferenceId = big.NewInt(1 << 4) - payabliApiResponse0ResponseDataFieldReferenceId = big.NewInt(1 << 5) - payabliApiResponse0ResponseDataFieldResultCode = big.NewInt(1 << 6) - payabliApiResponse0ResponseDataFieldResultText = big.NewInt(1 << 7) + payabliAPIResponse0ResponseDataFieldAuthCode = big.NewInt(1 << 0) + payabliAPIResponse0ResponseDataFieldAvsResponseText = big.NewInt(1 << 1) + payabliAPIResponse0ResponseDataFieldCustomerID = big.NewInt(1 << 2) + payabliAPIResponse0ResponseDataFieldCvvResponseText = big.NewInt(1 << 3) + payabliAPIResponse0ResponseDataFieldMethodReferenceID = big.NewInt(1 << 4) + payabliAPIResponse0ResponseDataFieldReferenceID = big.NewInt(1 << 5) + payabliAPIResponse0ResponseDataFieldResultCode = big.NewInt(1 << 6) + payabliAPIResponse0ResponseDataFieldResultText = big.NewInt(1 << 7) ) -type PayabliApiResponse0ResponseData struct { +type PayabliAPIResponse0ResponseData struct { AuthCode *Authcode `json:"AuthCode,omitempty" url:"AuthCode,omitempty"` AvsResponseText *AvsResponseText `json:"avsResponseText,omitempty" url:"avsResponseText,omitempty"` - CustomerId *Customeridtrans `json:"CustomerId,omitempty" url:"CustomerId,omitempty"` + CustomerID *Customeridtrans `json:"CustomerId,omitempty" url:"CustomerId,omitempty"` CvvResponseText *CvvResponseText `json:"cvvResponseText,omitempty" url:"cvvResponseText,omitempty"` - MethodReferenceId *MethodReferenceId `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` - ReferenceId *Referenceidtrans `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` + MethodReferenceID *MethodReferenceID `json:"methodReferenceId,omitempty" url:"methodReferenceId,omitempty"` + ReferenceID *Referenceidtrans `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` ResultCode *ResultCode `json:"ResultCode,omitempty" url:"ResultCode,omitempty"` ResultText *Resulttext `json:"ResultText,omitempty" url:"ResultText,omitempty"` @@ -13059,70 +13059,70 @@ type PayabliApiResponse0ResponseData struct { rawJSON json.RawMessage } -func (p *PayabliApiResponse0ResponseData) GetAuthCode() *Authcode { +func (p *PayabliAPIResponse0ResponseData) GetAuthCode() *Authcode { if p == nil { return nil } return p.AuthCode } -func (p *PayabliApiResponse0ResponseData) GetAvsResponseText() *AvsResponseText { +func (p *PayabliAPIResponse0ResponseData) GetAvsResponseText() *AvsResponseText { if p == nil { return nil } return p.AvsResponseText } -func (p *PayabliApiResponse0ResponseData) GetCustomerId() *Customeridtrans { +func (p *PayabliAPIResponse0ResponseData) GetCustomerID() *Customeridtrans { if p == nil { return nil } - return p.CustomerId + return p.CustomerID } -func (p *PayabliApiResponse0ResponseData) GetCvvResponseText() *CvvResponseText { +func (p *PayabliAPIResponse0ResponseData) GetCvvResponseText() *CvvResponseText { if p == nil { return nil } return p.CvvResponseText } -func (p *PayabliApiResponse0ResponseData) GetMethodReferenceId() *MethodReferenceId { +func (p *PayabliAPIResponse0ResponseData) GetMethodReferenceID() *MethodReferenceID { if p == nil { return nil } - return p.MethodReferenceId + return p.MethodReferenceID } -func (p *PayabliApiResponse0ResponseData) GetReferenceId() *Referenceidtrans { +func (p *PayabliAPIResponse0ResponseData) GetReferenceID() *Referenceidtrans { if p == nil { return nil } - return p.ReferenceId + return p.ReferenceID } -func (p *PayabliApiResponse0ResponseData) GetResultCode() *ResultCode { +func (p *PayabliAPIResponse0ResponseData) GetResultCode() *ResultCode { if p == nil { return nil } return p.ResultCode } -func (p *PayabliApiResponse0ResponseData) GetResultText() *Resulttext { +func (p *PayabliAPIResponse0ResponseData) GetResultText() *Resulttext { if p == nil { return nil } return p.ResultText } -func (p *PayabliApiResponse0ResponseData) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponse0ResponseData) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponse0ResponseData) require(field *big.Int) { +func (p *PayabliAPIResponse0ResponseData) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -13131,67 +13131,67 @@ func (p *PayabliApiResponse0ResponseData) require(field *big.Int) { // SetAuthCode sets the AuthCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetAuthCode(authCode *Authcode) { +func (p *PayabliAPIResponse0ResponseData) SetAuthCode(authCode *Authcode) { p.AuthCode = authCode - p.require(payabliApiResponse0ResponseDataFieldAuthCode) + p.require(payabliAPIResponse0ResponseDataFieldAuthCode) } // SetAvsResponseText sets the AvsResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetAvsResponseText(avsResponseText *AvsResponseText) { +func (p *PayabliAPIResponse0ResponseData) SetAvsResponseText(avsResponseText *AvsResponseText) { p.AvsResponseText = avsResponseText - p.require(payabliApiResponse0ResponseDataFieldAvsResponseText) + p.require(payabliAPIResponse0ResponseDataFieldAvsResponseText) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetCustomerId(customerId *Customeridtrans) { - p.CustomerId = customerId - p.require(payabliApiResponse0ResponseDataFieldCustomerId) +func (p *PayabliAPIResponse0ResponseData) SetCustomerID(customerID *Customeridtrans) { + p.CustomerID = customerID + p.require(payabliAPIResponse0ResponseDataFieldCustomerID) } // SetCvvResponseText sets the CvvResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetCvvResponseText(cvvResponseText *CvvResponseText) { +func (p *PayabliAPIResponse0ResponseData) SetCvvResponseText(cvvResponseText *CvvResponseText) { p.CvvResponseText = cvvResponseText - p.require(payabliApiResponse0ResponseDataFieldCvvResponseText) + p.require(payabliAPIResponse0ResponseDataFieldCvvResponseText) } -// SetMethodReferenceId sets the MethodReferenceId field and marks it as non-optional; +// SetMethodReferenceID sets the MethodReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetMethodReferenceId(methodReferenceId *MethodReferenceId) { - p.MethodReferenceId = methodReferenceId - p.require(payabliApiResponse0ResponseDataFieldMethodReferenceId) +func (p *PayabliAPIResponse0ResponseData) SetMethodReferenceID(methodReferenceID *MethodReferenceID) { + p.MethodReferenceID = methodReferenceID + p.require(payabliAPIResponse0ResponseDataFieldMethodReferenceID) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetReferenceId(referenceId *Referenceidtrans) { - p.ReferenceId = referenceId - p.require(payabliApiResponse0ResponseDataFieldReferenceId) +func (p *PayabliAPIResponse0ResponseData) SetReferenceID(referenceID *Referenceidtrans) { + p.ReferenceID = referenceID + p.require(payabliAPIResponse0ResponseDataFieldReferenceID) } // SetResultCode sets the ResultCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetResultCode(resultCode *ResultCode) { +func (p *PayabliAPIResponse0ResponseData) SetResultCode(resultCode *ResultCode) { p.ResultCode = resultCode - p.require(payabliApiResponse0ResponseDataFieldResultCode) + p.require(payabliAPIResponse0ResponseDataFieldResultCode) } // SetResultText sets the ResultText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponse0ResponseData) SetResultText(resultText *Resulttext) { +func (p *PayabliAPIResponse0ResponseData) SetResultText(resultText *Resulttext) { p.ResultText = resultText - p.require(payabliApiResponse0ResponseDataFieldResultText) + p.require(payabliAPIResponse0ResponseDataFieldResultText) } -func (p *PayabliApiResponse0ResponseData) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponse0ResponseData +func (p *PayabliAPIResponse0ResponseData) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponse0ResponseData var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponse0ResponseData(value) + *p = PayabliAPIResponse0ResponseData(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13201,8 +13201,8 @@ func (p *PayabliApiResponse0ResponseData) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponse0ResponseData) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponse0ResponseData +func (p *PayabliAPIResponse0ResponseData) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponse0ResponseData var marshaler = struct { embed }{ @@ -13212,7 +13212,7 @@ func (p *PayabliApiResponse0ResponseData) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponse0ResponseData) String() string { +func (p *PayabliAPIResponse0ResponseData) String() string { if p == nil { return "" } @@ -13228,21 +13228,21 @@ func (p *PayabliApiResponse0ResponseData) String() string { } var ( - payabliApiResponseError400FieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseError400FieldPageidentifier = big.NewInt(1 << 1) - payabliApiResponseError400FieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseError400FieldResponseData = big.NewInt(1 << 3) - payabliApiResponseError400FieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseError400FieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseError400FieldPageidentifier = big.NewInt(1 << 1) + payabliAPIResponseError400FieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseError400FieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseError400FieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseError400 struct { +type PayabliAPIResponseError400 struct { // Boolean indicating whether the operation was successful. A `true` value indicates success. A `false` value indicates failure. IsSuccess *bool `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` Pageidentifier *PageIdentifier `json:"pageidentifier,omitempty" url:"pageidentifier,omitempty"` // A code that indicates the operation's failure reason. See [API Response Codes](https://docs.payabli.com/api-reference/api-responses) for a full reference. ResponseCode *int `json:"responseCode,omitempty" url:"responseCode,omitempty"` // Describes the reason for a failed operation and how to resolve it. - ResponseData *PayabliApiResponseError400ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` + ResponseData *PayabliAPIResponseError400ResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` // Response text for operation: 'Success' or 'Declined'. ResponseText *string `json:"responseText,omitempty" url:"responseText,omitempty"` @@ -13253,49 +13253,49 @@ type PayabliApiResponseError400 struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseError400) GetIsSuccess() *bool { +func (p *PayabliAPIResponseError400) GetIsSuccess() *bool { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseError400) GetPageidentifier() *PageIdentifier { +func (p *PayabliAPIResponseError400) GetPageidentifier() *PageIdentifier { if p == nil { return nil } return p.Pageidentifier } -func (p *PayabliApiResponseError400) GetResponseCode() *int { +func (p *PayabliAPIResponseError400) GetResponseCode() *int { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponseError400) GetResponseData() *PayabliApiResponseError400ResponseData { +func (p *PayabliAPIResponseError400) GetResponseData() *PayabliAPIResponseError400ResponseData { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseError400) GetResponseText() *string { +func (p *PayabliAPIResponseError400) GetResponseText() *string { if p == nil { return nil } return p.ResponseText } -func (p *PayabliApiResponseError400) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseError400) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseError400) require(field *big.Int) { +func (p *PayabliAPIResponseError400) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -13304,46 +13304,46 @@ func (p *PayabliApiResponseError400) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400) SetIsSuccess(isSuccess *bool) { +func (p *PayabliAPIResponseError400) SetIsSuccess(isSuccess *bool) { p.IsSuccess = isSuccess - p.require(payabliApiResponseError400FieldIsSuccess) + p.require(payabliAPIResponseError400FieldIsSuccess) } // SetPageidentifier sets the Pageidentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400) SetPageidentifier(pageidentifier *PageIdentifier) { +func (p *PayabliAPIResponseError400) SetPageidentifier(pageidentifier *PageIdentifier) { p.Pageidentifier = pageidentifier - p.require(payabliApiResponseError400FieldPageidentifier) + p.require(payabliAPIResponseError400FieldPageidentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400) SetResponseCode(responseCode *int) { +func (p *PayabliAPIResponseError400) SetResponseCode(responseCode *int) { p.ResponseCode = responseCode - p.require(payabliApiResponseError400FieldResponseCode) + p.require(payabliAPIResponseError400FieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400) SetResponseData(responseData *PayabliApiResponseError400ResponseData) { +func (p *PayabliAPIResponseError400) SetResponseData(responseData *PayabliAPIResponseError400ResponseData) { p.ResponseData = responseData - p.require(payabliApiResponseError400FieldResponseData) + p.require(payabliAPIResponseError400FieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400) SetResponseText(responseText *string) { +func (p *PayabliAPIResponseError400) SetResponseText(responseText *string) { p.ResponseText = responseText - p.require(payabliApiResponseError400FieldResponseText) + p.require(payabliAPIResponseError400FieldResponseText) } -func (p *PayabliApiResponseError400) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseError400 +func (p *PayabliAPIResponseError400) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseError400 var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseError400(value) + *p = PayabliAPIResponseError400(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13353,8 +13353,8 @@ func (p *PayabliApiResponseError400) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseError400) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseError400 +func (p *PayabliAPIResponseError400) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseError400 var marshaler = struct { embed }{ @@ -13364,7 +13364,7 @@ func (p *PayabliApiResponseError400) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseError400) String() string { +func (p *PayabliAPIResponseError400) String() string { if p == nil { return "" } @@ -13381,11 +13381,11 @@ func (p *PayabliApiResponseError400) String() string { // Describes the reason for a failed operation and how to resolve it. var ( - payabliApiResponseError400ResponseDataFieldExplanation = big.NewInt(1 << 0) - payabliApiResponseError400ResponseDataFieldTodoAction = big.NewInt(1 << 1) + payabliAPIResponseError400ResponseDataFieldExplanation = big.NewInt(1 << 0) + payabliAPIResponseError400ResponseDataFieldTodoAction = big.NewInt(1 << 1) ) -type PayabliApiResponseError400ResponseData struct { +type PayabliAPIResponseError400ResponseData struct { // Describes the reason the operation failed. Explanation *string `json:"explanation,omitempty" url:"explanation,omitempty"` // Describes how to resolve the error. @@ -13398,28 +13398,28 @@ type PayabliApiResponseError400ResponseData struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseError400ResponseData) GetExplanation() *string { +func (p *PayabliAPIResponseError400ResponseData) GetExplanation() *string { if p == nil { return nil } return p.Explanation } -func (p *PayabliApiResponseError400ResponseData) GetTodoAction() *string { +func (p *PayabliAPIResponseError400ResponseData) GetTodoAction() *string { if p == nil { return nil } return p.TodoAction } -func (p *PayabliApiResponseError400ResponseData) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseError400ResponseData) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseError400ResponseData) require(field *big.Int) { +func (p *PayabliAPIResponseError400ResponseData) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -13428,25 +13428,25 @@ func (p *PayabliApiResponseError400ResponseData) require(field *big.Int) { // SetExplanation sets the Explanation field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400ResponseData) SetExplanation(explanation *string) { +func (p *PayabliAPIResponseError400ResponseData) SetExplanation(explanation *string) { p.Explanation = explanation - p.require(payabliApiResponseError400ResponseDataFieldExplanation) + p.require(payabliAPIResponseError400ResponseDataFieldExplanation) } // SetTodoAction sets the TodoAction field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseError400ResponseData) SetTodoAction(todoAction *string) { +func (p *PayabliAPIResponseError400ResponseData) SetTodoAction(todoAction *string) { p.TodoAction = todoAction - p.require(payabliApiResponseError400ResponseDataFieldTodoAction) + p.require(payabliAPIResponseError400ResponseDataFieldTodoAction) } -func (p *PayabliApiResponseError400ResponseData) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseError400ResponseData +func (p *PayabliAPIResponseError400ResponseData) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseError400ResponseData var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseError400ResponseData(value) + *p = PayabliAPIResponseError400ResponseData(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13456,8 +13456,8 @@ func (p *PayabliApiResponseError400ResponseData) UnmarshalJSON(data []byte) erro return nil } -func (p *PayabliApiResponseError400ResponseData) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseError400ResponseData +func (p *PayabliAPIResponseError400ResponseData) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseError400ResponseData var marshaler = struct { embed }{ @@ -13467,7 +13467,7 @@ func (p *PayabliApiResponseError400ResponseData) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseError400ResponseData) String() string { +func (p *PayabliAPIResponseError400ResponseData) String() string { if p == nil { return "" } @@ -13483,11 +13483,11 @@ func (p *PayabliApiResponseError400ResponseData) String() string { } var ( - payabliApiResponseGeneric2PartFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseGeneric2PartFieldResponseText = big.NewInt(1 << 1) + payabliAPIResponseGeneric2PartFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseGeneric2PartFieldResponseText = big.NewInt(1 << 1) ) -type PayabliApiResponseGeneric2Part struct { +type PayabliAPIResponseGeneric2Part struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` @@ -13498,28 +13498,28 @@ type PayabliApiResponseGeneric2Part struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseGeneric2Part) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseGeneric2Part) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseGeneric2Part) GetResponseText() ResponseText { +func (p *PayabliAPIResponseGeneric2Part) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseGeneric2Part) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseGeneric2Part) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseGeneric2Part) require(field *big.Int) { +func (p *PayabliAPIResponseGeneric2Part) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -13528,25 +13528,25 @@ func (p *PayabliApiResponseGeneric2Part) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGeneric2Part) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseGeneric2Part) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseGeneric2PartFieldIsSuccess) + p.require(payabliAPIResponseGeneric2PartFieldIsSuccess) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseGeneric2Part) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseGeneric2Part) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseGeneric2PartFieldResponseText) + p.require(payabliAPIResponseGeneric2PartFieldResponseText) } -func (p *PayabliApiResponseGeneric2Part) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseGeneric2Part +func (p *PayabliAPIResponseGeneric2Part) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseGeneric2Part var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseGeneric2Part(value) + *p = PayabliAPIResponseGeneric2Part(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13556,8 +13556,8 @@ func (p *PayabliApiResponseGeneric2Part) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseGeneric2Part) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseGeneric2Part +func (p *PayabliAPIResponseGeneric2Part) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseGeneric2Part var marshaler = struct { embed }{ @@ -13567,7 +13567,7 @@ func (p *PayabliApiResponseGeneric2Part) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseGeneric2Part) String() string { +func (p *PayabliAPIResponseGeneric2Part) String() string { if p == nil { return "" } @@ -13583,14 +13583,14 @@ func (p *PayabliApiResponseGeneric2Part) String() string { } var ( - payabliApiResponsePaylinksFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponsePaylinksFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponsePaylinksFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponsePaylinksFieldResponseData = big.NewInt(1 << 3) - payabliApiResponsePaylinksFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponsePaylinksFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponsePaylinksFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponsePaylinksFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponsePaylinksFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponsePaylinksFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponsePaylinks struct { +type PayabliAPIResponsePaylinks struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode Responsecode `json:"responseCode" url:"responseCode"` @@ -13605,49 +13605,49 @@ type PayabliApiResponsePaylinks struct { rawJSON json.RawMessage } -func (p *PayabliApiResponsePaylinks) GetIsSuccess() IsSuccess { +func (p *PayabliAPIResponsePaylinks) GetIsSuccess() IsSuccess { if p == nil { return false } return p.IsSuccess } -func (p *PayabliApiResponsePaylinks) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponsePaylinks) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponsePaylinks) GetResponseCode() Responsecode { +func (p *PayabliAPIResponsePaylinks) GetResponseCode() Responsecode { if p == nil { return 0 } return p.ResponseCode } -func (p *PayabliApiResponsePaylinks) GetResponseData() Responsedata { +func (p *PayabliAPIResponsePaylinks) GetResponseData() Responsedata { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponsePaylinks) GetResponseText() ResponseText { +func (p *PayabliAPIResponsePaylinks) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponsePaylinks) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponsePaylinks) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponsePaylinks) require(field *big.Int) { +func (p *PayabliAPIResponsePaylinks) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -13656,46 +13656,46 @@ func (p *PayabliApiResponsePaylinks) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaylinks) SetIsSuccess(isSuccess IsSuccess) { +func (p *PayabliAPIResponsePaylinks) SetIsSuccess(isSuccess IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponsePaylinksFieldIsSuccess) + p.require(payabliAPIResponsePaylinksFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaylinks) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponsePaylinks) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponsePaylinksFieldPageIdentifier) + p.require(payabliAPIResponsePaylinksFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaylinks) SetResponseCode(responseCode Responsecode) { +func (p *PayabliAPIResponsePaylinks) SetResponseCode(responseCode Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponsePaylinksFieldResponseCode) + p.require(payabliAPIResponsePaylinksFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaylinks) SetResponseData(responseData Responsedata) { +func (p *PayabliAPIResponsePaylinks) SetResponseData(responseData Responsedata) { p.ResponseData = responseData - p.require(payabliApiResponsePaylinksFieldResponseData) + p.require(payabliAPIResponsePaylinksFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponsePaylinks) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponsePaylinks) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponsePaylinksFieldResponseText) + p.require(payabliAPIResponsePaylinksFieldResponseText) } -func (p *PayabliApiResponsePaylinks) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponsePaylinks +func (p *PayabliAPIResponsePaylinks) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponsePaylinks var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponsePaylinks(value) + *p = PayabliAPIResponsePaylinks(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -13705,8 +13705,8 @@ func (p *PayabliApiResponsePaylinks) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponsePaylinks) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponsePaylinks +func (p *PayabliAPIResponsePaylinks) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponsePaylinks var marshaler = struct { embed }{ @@ -13716,7 +13716,7 @@ func (p *PayabliApiResponsePaylinks) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponsePaylinks) String() string { +func (p *PayabliAPIResponsePaylinks) String() string { if p == nil { return "" } @@ -13732,7 +13732,7 @@ func (p *PayabliApiResponsePaylinks) String() string { } var ( - payabliCredentialsFieldAccountId = big.NewInt(1 << 0) + payabliCredentialsFieldAccountID = big.NewInt(1 << 0) payabliCredentialsFieldCfeeFix = big.NewInt(1 << 1) payabliCredentialsFieldCfeeFloat = big.NewInt(1 << 2) payabliCredentialsFieldCfeeMax = big.NewInt(1 << 3) @@ -13740,7 +13740,7 @@ var ( payabliCredentialsFieldMaxticket = big.NewInt(1 << 5) payabliCredentialsFieldMinticket = big.NewInt(1 << 6) payabliCredentialsFieldMode = big.NewInt(1 << 7) - payabliCredentialsFieldReferenceId = big.NewInt(1 << 8) + payabliCredentialsFieldReferenceID = big.NewInt(1 << 8) payabliCredentialsFieldService = big.NewInt(1 << 9) payabliCredentialsFieldGreaterValueAllowed = big.NewInt(1 << 10) payabliCredentialsFieldAbsorbDifference = big.NewInt(1 << 11) @@ -13749,7 +13749,7 @@ var ( type PayabliCredentials struct { // The identifier for the payment connector, matching the `accountId` of the linked bank account. - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` CfeeFix *float64 `json:"cfeeFix,omitempty" url:"cfeeFix,omitempty"` CfeeFloat *float64 `json:"cfeeFloat,omitempty" url:"cfeeFloat,omitempty"` CfeeMax *float64 `json:"cfeeMax,omitempty" url:"cfeeMax,omitempty"` @@ -13758,7 +13758,7 @@ type PayabliCredentials struct { Minticket *float64 `json:"minticket,omitempty" url:"minticket,omitempty"` // The payment mode supported by this service. `0` for one-time payments, `1` for recurring payments, `2` for both. Mode *int `json:"mode,omitempty" url:"mode,omitempty"` - ReferenceId *int64 `json:"referenceId,omitempty" url:"referenceId,omitempty"` + ReferenceID *int64 `json:"referenceId,omitempty" url:"referenceId,omitempty"` // The payment service that this credential applies to. A paypoint can support multiple services, each represented by its own credential object in the array. Possible values are `card` (credit/debit card), `ach` (ACH bank transfer), `check` (paper check), `vcard` (virtual card), `cloud` (card-present), `cash`, `managed` (managed payment service), and `wallet`. Service *string `json:"service,omitempty" url:"service,omitempty"` GreaterValueAllowed *GreaterValueAllowed `json:"greaterValueAllowed,omitempty" url:"greaterValueAllowed,omitempty"` @@ -13772,11 +13772,11 @@ type PayabliCredentials struct { rawJSON json.RawMessage } -func (p *PayabliCredentials) GetAccountId() *AccountId { +func (p *PayabliCredentials) GetAccountID() *AccountID { if p == nil { return nil } - return p.AccountId + return p.AccountID } func (p *PayabliCredentials) GetCfeeFix() *float64 { @@ -13828,11 +13828,11 @@ func (p *PayabliCredentials) GetMode() *int { return p.Mode } -func (p *PayabliCredentials) GetReferenceId() *int64 { +func (p *PayabliCredentials) GetReferenceID() *int64 { if p == nil { return nil } - return p.ReferenceId + return p.ReferenceID } func (p *PayabliCredentials) GetService() *string { @@ -13877,11 +13877,11 @@ func (p *PayabliCredentials) require(field *big.Int) { p.explicitFields.Or(p.explicitFields, field) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliCredentials) SetAccountId(accountId *AccountId) { - p.AccountId = accountId - p.require(payabliCredentialsFieldAccountId) +func (p *PayabliCredentials) SetAccountID(accountID *AccountID) { + p.AccountID = accountID + p.require(payabliCredentialsFieldAccountID) } // SetCfeeFix sets the CfeeFix field and marks it as non-optional; @@ -13933,11 +13933,11 @@ func (p *PayabliCredentials) SetMode(mode *int) { p.require(payabliCredentialsFieldMode) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliCredentials) SetReferenceId(referenceId *int64) { - p.ReferenceId = referenceId - p.require(payabliCredentialsFieldReferenceId) +func (p *PayabliCredentials) SetReferenceID(referenceID *int64) { + p.ReferenceID = referenceID + p.require(payabliCredentialsFieldReferenceID) } // SetService sets the Service field and marks it as non-optional; @@ -14019,8 +14019,8 @@ var ( payabliCredentialsPascalFieldCfeeFloat = big.NewInt(1 << 5) payabliCredentialsPascalFieldCfeeMin = big.NewInt(1 << 6) payabliCredentialsPascalFieldCfeeMax = big.NewInt(1 << 7) - payabliCredentialsPascalFieldAccountId = big.NewInt(1 << 8) - payabliCredentialsPascalFieldReferenceId = big.NewInt(1 << 9) + payabliCredentialsPascalFieldAccountID = big.NewInt(1 << 8) + payabliCredentialsPascalFieldReferenceID = big.NewInt(1 << 9) payabliCredentialsPascalFieldAcceptSameDayAch = big.NewInt(1 << 10) payabliCredentialsPascalFieldCurrency = big.NewInt(1 << 11) payabliCredentialsPascalFieldGreaterValueAllowed = big.NewInt(1 << 12) @@ -14040,8 +14040,8 @@ type PayabliCredentialsPascal struct { CfeeMin *float64 `json:"CfeeMin,omitempty" url:"CfeeMin,omitempty"` CfeeMax *float64 `json:"CfeeMax,omitempty" url:"CfeeMax,omitempty"` // The identifier for the payment connector, matching the `accountId` of the linked bank account. - AccountId *AccountId `json:"AccountId,omitempty" url:"AccountId,omitempty"` - ReferenceId *int64 `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` + AccountID *AccountID `json:"AccountId,omitempty" url:"AccountId,omitempty"` + ReferenceID *int64 `json:"ReferenceId,omitempty" url:"ReferenceId,omitempty"` AcceptSameDayAch *bool `json:"acceptSameDayACH,omitempty" url:"acceptSameDayACH,omitempty"` // The default currency for the paypoint, either `USD` or `CAD`. Currency *string `json:"Currency,omitempty" url:"Currency,omitempty"` @@ -14112,18 +14112,18 @@ func (p *PayabliCredentialsPascal) GetCfeeMax() *float64 { return p.CfeeMax } -func (p *PayabliCredentialsPascal) GetAccountId() *AccountId { +func (p *PayabliCredentialsPascal) GetAccountID() *AccountID { if p == nil { return nil } - return p.AccountId + return p.AccountID } -func (p *PayabliCredentialsPascal) GetReferenceId() *int64 { +func (p *PayabliCredentialsPascal) GetReferenceID() *int64 { if p == nil { return nil } - return p.ReferenceId + return p.ReferenceID } func (p *PayabliCredentialsPascal) GetAcceptSameDayAch() *bool { @@ -14231,18 +14231,18 @@ func (p *PayabliCredentialsPascal) SetCfeeMax(cfeeMax *float64) { p.require(payabliCredentialsPascalFieldCfeeMax) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliCredentialsPascal) SetAccountId(accountId *AccountId) { - p.AccountId = accountId - p.require(payabliCredentialsPascalFieldAccountId) +func (p *PayabliCredentialsPascal) SetAccountID(accountID *AccountID) { + p.AccountID = accountID + p.require(payabliCredentialsPascalFieldAccountID) } -// SetReferenceId sets the ReferenceId field and marks it as non-optional; +// SetReferenceID sets the ReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliCredentialsPascal) SetReferenceId(referenceId *int64) { - p.ReferenceId = referenceId - p.require(payabliCredentialsPascalFieldReferenceId) +func (p *PayabliCredentialsPascal) SetReferenceID(referenceID *int64) { + p.ReferenceID = referenceID + p.require(payabliCredentialsPascalFieldReferenceID) } // SetAcceptSameDayAch sets the AcceptSameDayAch field and marks it as non-optional; @@ -14587,7 +14587,7 @@ func (p *PayabliPages) String() string { type PayeeName = string // Identifier of payment link associated to the invoice or bill. -type PaylinkId = string +type PaylinkID = string var ( paymentCategoriesFieldAmount = big.NewInt(1 << 0) @@ -14733,7 +14733,7 @@ var ( paymentDetailFieldCurrency = big.NewInt(1 << 3) paymentDetailFieldServiceFee = big.NewInt(1 << 4) paymentDetailFieldSplitFunding = big.NewInt(1 << 5) - paymentDetailFieldCheckUniqueId = big.NewInt(1 << 6) + paymentDetailFieldCheckUniqueID = big.NewInt(1 << 6) paymentDetailFieldTotalAmount = big.NewInt(1 << 7) ) @@ -14752,7 +14752,7 @@ type PaymentDetail struct { // Split funding instructions for the transaction. See [Split a Transaction](/developers/developer-guides/money-in-split-funding) for more. SplitFunding *SplitFunding `json:"splitFunding,omitempty" url:"splitFunding,omitempty"` // Unique identifier for a processed check image. Required for RDC (Remote Deposit Capture) transactions where `achCode` is `BOC`. Use the `id` value from the [check processing](/developers/api-reference/moneyin/check-capture) response. - CheckUniqueId *string `json:"checkUniqueId,omitempty" url:"checkUniqueId,omitempty"` + CheckUniqueID *string `json:"checkUniqueId,omitempty" url:"checkUniqueId,omitempty"` // Total amount to be charged. If a service fee is sent, then this amount should include the service fee." TotalAmount float64 `json:"totalAmount" url:"totalAmount"` @@ -14805,11 +14805,11 @@ func (p *PaymentDetail) GetSplitFunding() *SplitFunding { return p.SplitFunding } -func (p *PaymentDetail) GetCheckUniqueId() *string { +func (p *PaymentDetail) GetCheckUniqueID() *string { if p == nil { return nil } - return p.CheckUniqueId + return p.CheckUniqueID } func (p *PaymentDetail) GetTotalAmount() float64 { @@ -14875,11 +14875,11 @@ func (p *PaymentDetail) SetSplitFunding(splitFunding *SplitFunding) { p.require(paymentDetailFieldSplitFunding) } -// SetCheckUniqueId sets the CheckUniqueId field and marks it as non-optional; +// SetCheckUniqueID sets the CheckUniqueID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaymentDetail) SetCheckUniqueId(checkUniqueId *string) { - p.CheckUniqueId = checkUniqueId - p.require(paymentDetailFieldCheckUniqueId) +func (p *PaymentDetail) SetCheckUniqueID(checkUniqueID *string) { + p.CheckUniqueID = checkUniqueID + p.require(paymentDetailFieldCheckUniqueID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -14932,7 +14932,7 @@ func (p *PaymentDetail) String() string { } // The unique transaction ID. This value is a string representation of a long integer. -type PaymentIdString = string +type PaymentIDString = string // Description of the payment transaction status. See [the docs](/developers/references/money-in-statuses#money-in-transaction-status) for a full reference. type PaymentTransStatusDescription = string @@ -14952,7 +14952,7 @@ var ( payorDataRequestFieldBillingState = big.NewInt(1 << 7) payorDataRequestFieldBillingZip = big.NewInt(1 << 8) payorDataRequestFieldCompany = big.NewInt(1 << 9) - payorDataRequestFieldCustomerId = big.NewInt(1 << 10) + payorDataRequestFieldCustomerID = big.NewInt(1 << 10) payorDataRequestFieldCustomerNumber = big.NewInt(1 << 11) payorDataRequestFieldFirstName = big.NewInt(1 << 12) payorDataRequestFieldIdentifierFields = big.NewInt(1 << 13) @@ -14978,7 +14978,7 @@ type PayorDataRequest struct { BillingZip *BillingZip `json:"billingZip,omitempty" url:"billingZip,omitempty"` // Customer's company name. Company *string `json:"company,omitempty" url:"company,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerNumber *CustomerNumberNullable `json:"customerNumber,omitempty" url:"customerNumber,omitempty"` // Customer/Payor first name. FirstName *string `json:"firstName,omitempty" url:"firstName,omitempty"` @@ -15069,11 +15069,11 @@ func (p *PayorDataRequest) GetCompany() *string { return p.Company } -func (p *PayorDataRequest) GetCustomerId() *CustomerId { +func (p *PayorDataRequest) GetCustomerID() *CustomerID { if p == nil { return nil } - return p.CustomerId + return p.CustomerID } func (p *PayorDataRequest) GetCustomerNumber() *CustomerNumberNullable { @@ -15230,11 +15230,11 @@ func (p *PayorDataRequest) SetCompany(company *string) { p.require(payorDataRequestFieldCompany) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayorDataRequest) SetCustomerId(customerId *CustomerId) { - p.CustomerId = customerId - p.require(payorDataRequestFieldCustomerId) +func (p *PayorDataRequest) SetCustomerID(customerID *CustomerID) { + p.CustomerID = customerID + p.require(payorDataRequestFieldCustomerID) } // SetCustomerNumber sets the CustomerNumber field and marks it as non-optional; @@ -15739,7 +15739,7 @@ func (p *PayorFields) String() string { } // Unique ID for the customer linked to the transaction. This is the same value as the `customerId` used when creating or referencing a customer. -type PayorId = int64 +type PayorID = int64 // The payout program associated with the transaction: managed or on-demand. type PayoutProgram = string @@ -15748,15 +15748,15 @@ var ( paypointDataFieldAddress1 = big.NewInt(1 << 0) paypointDataFieldAddress2 = big.NewInt(1 << 1) paypointDataFieldBankData = big.NewInt(1 << 2) - paypointDataFieldBoardingId = big.NewInt(1 << 3) + paypointDataFieldBoardingID = big.NewInt(1 << 3) paypointDataFieldCity = big.NewInt(1 << 4) paypointDataFieldContacts = big.NewInt(1 << 5) paypointDataFieldCountry = big.NewInt(1 << 6) paypointDataFieldCredentials = big.NewInt(1 << 7) paypointDataFieldDbaName = big.NewInt(1 << 8) - paypointDataFieldExternalPaypointId = big.NewInt(1 << 9) + paypointDataFieldExternalPaypointID = big.NewInt(1 << 9) paypointDataFieldFax = big.NewInt(1 << 10) - paypointDataFieldIdPaypoint = big.NewInt(1 << 11) + paypointDataFieldIDPaypoint = big.NewInt(1 << 11) paypointDataFieldLegalName = big.NewInt(1 << 12) paypointDataFieldParentOrg = big.NewInt(1 << 13) paypointDataFieldPaypointStatus = big.NewInt(1 << 14) @@ -15774,16 +15774,16 @@ type PaypointData struct { Address1 *AddressNullable `json:"address1,omitempty" url:"address1,omitempty"` Address2 *AddressAddtlNullable `json:"address2,omitempty" url:"address2,omitempty"` BankData *BankData `json:"bankData,omitempty" url:"bankData,omitempty"` - BoardingId *BoardingId `json:"boardingId,omitempty" url:"boardingId,omitempty"` + BoardingID *BoardingID `json:"boardingId,omitempty" url:"boardingId,omitempty"` City *CityNullable `json:"city,omitempty" url:"city,omitempty"` Contacts *ContactsField `json:"contacts,omitempty" url:"contacts,omitempty"` Country *CountryNullable `json:"country,omitempty" url:"country,omitempty"` Credentials []*PayabliCredentialsPascal `json:"credentials,omitempty" url:"credentials,omitempty"` DbaName *Dbaname `json:"dbaName,omitempty" url:"dbaName,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` // Fax number Fax *PhoneNumber `json:"fax,omitempty" url:"fax,omitempty"` - IdPaypoint *Idpaypoint `json:"idPaypoint,omitempty" url:"idPaypoint,omitempty"` + IDPaypoint *Idpaypoint `json:"idPaypoint,omitempty" url:"idPaypoint,omitempty"` LegalName *Legalname `json:"legalName,omitempty" url:"legalName,omitempty"` ParentOrg *OrgData `json:"parentOrg,omitempty" url:"parentOrg,omitempty"` PaypointStatus *Paypointstatus `json:"paypointStatus,omitempty" url:"paypointStatus,omitempty"` @@ -15825,11 +15825,11 @@ func (p *PaypointData) GetBankData() *BankData { return p.BankData } -func (p *PaypointData) GetBoardingId() *BoardingId { +func (p *PaypointData) GetBoardingID() *BoardingID { if p == nil { return nil } - return p.BoardingId + return p.BoardingID } func (p *PaypointData) GetCity() *CityNullable { @@ -15867,11 +15867,11 @@ func (p *PaypointData) GetDbaName() *Dbaname { return p.DbaName } -func (p *PaypointData) GetExternalPaypointId() *ExternalPaypointId { +func (p *PaypointData) GetExternalPaypointID() *ExternalPaypointID { if p == nil { return nil } - return p.ExternalPaypointId + return p.ExternalPaypointID } func (p *PaypointData) GetFax() *PhoneNumber { @@ -15881,11 +15881,11 @@ func (p *PaypointData) GetFax() *PhoneNumber { return p.Fax } -func (p *PaypointData) GetIdPaypoint() *Idpaypoint { +func (p *PaypointData) GetIDPaypoint() *Idpaypoint { if p == nil { return nil } - return p.IdPaypoint + return p.IDPaypoint } func (p *PaypointData) GetLegalName() *Legalname { @@ -16000,11 +16000,11 @@ func (p *PaypointData) SetBankData(bankData *BankData) { p.require(paypointDataFieldBankData) } -// SetBoardingId sets the BoardingId field and marks it as non-optional; +// SetBoardingID sets the BoardingID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaypointData) SetBoardingId(boardingId *BoardingId) { - p.BoardingId = boardingId - p.require(paypointDataFieldBoardingId) +func (p *PaypointData) SetBoardingID(boardingID *BoardingID) { + p.BoardingID = boardingID + p.require(paypointDataFieldBoardingID) } // SetCity sets the City field and marks it as non-optional; @@ -16042,11 +16042,11 @@ func (p *PaypointData) SetDbaName(dbaName *Dbaname) { p.require(paypointDataFieldDbaName) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaypointData) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - p.ExternalPaypointId = externalPaypointId - p.require(paypointDataFieldExternalPaypointId) +func (p *PaypointData) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + p.ExternalPaypointID = externalPaypointID + p.require(paypointDataFieldExternalPaypointID) } // SetFax sets the Fax field and marks it as non-optional; @@ -16056,11 +16056,11 @@ func (p *PaypointData) SetFax(fax *PhoneNumber) { p.require(paypointDataFieldFax) } -// SetIdPaypoint sets the IdPaypoint field and marks it as non-optional; +// SetIDPaypoint sets the IDPaypoint field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaypointData) SetIdPaypoint(idPaypoint *Idpaypoint) { - p.IdPaypoint = idPaypoint - p.require(paypointDataFieldIdPaypoint) +func (p *PaypointData) SetIDPaypoint(idPaypoint *Idpaypoint) { + p.IDPaypoint = idPaypoint + p.require(paypointDataFieldIDPaypoint) } // SetLegalName sets the LegalName field and marks it as non-optional; @@ -16189,7 +16189,7 @@ var ( paypointEntryConfigFieldEntryPages = big.NewInt(1 << 3) paypointEntryConfigFieldEntrySubtitle = big.NewInt(1 << 4) paypointEntryConfigFieldEntryTitle = big.NewInt(1 << 5) - paypointEntryConfigFieldIdEntry = big.NewInt(1 << 6) + paypointEntryConfigFieldIDEntry = big.NewInt(1 << 6) paypointEntryConfigFieldPaypoint = big.NewInt(1 << 7) ) @@ -16200,7 +16200,7 @@ type PaypointEntryConfig struct { EntryPages []*PayabliPages `json:"EntryPages,omitempty" url:"EntryPages,omitempty"` EntrySubtitle *string `json:"EntrySubtitle,omitempty" url:"EntrySubtitle,omitempty"` EntryTitle *string `json:"EntryTitle,omitempty" url:"EntryTitle,omitempty"` - IdEntry *int64 `json:"IdEntry,omitempty" url:"IdEntry,omitempty"` + IDEntry *int64 `json:"IdEntry,omitempty" url:"IdEntry,omitempty"` Paypoint *PaypointData `json:"Paypoint,omitempty" url:"Paypoint,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -16252,11 +16252,11 @@ func (p *PaypointEntryConfig) GetEntryTitle() *string { return p.EntryTitle } -func (p *PaypointEntryConfig) GetIdEntry() *int64 { +func (p *PaypointEntryConfig) GetIDEntry() *int64 { if p == nil { return nil } - return p.IdEntry + return p.IDEntry } func (p *PaypointEntryConfig) GetPaypoint() *PaypointData { @@ -16322,11 +16322,11 @@ func (p *PaypointEntryConfig) SetEntryTitle(entryTitle *string) { p.require(paypointEntryConfigFieldEntryTitle) } -// SetIdEntry sets the IdEntry field and marks it as non-optional; +// SetIDEntry sets the IDEntry field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PaypointEntryConfig) SetIdEntry(idEntry *int64) { - p.IdEntry = idEntry - p.require(paypointEntryConfigFieldIdEntry) +func (p *PaypointEntryConfig) SetIDEntry(idEntry *int64) { + p.IDEntry = idEntry + p.require(paypointEntryConfigFieldIDEntry) } // SetPaypoint sets the Paypoint field and marks it as non-optional; @@ -16379,7 +16379,7 @@ func (p *PaypointEntryConfig) String() string { } // The paypoint's ID. Note that this is different than the entryname. -type PaypointId = int64 +type PaypointID = int64 // The paypoint name. type PaypointName = string @@ -16554,7 +16554,7 @@ var ( queryCFeeTransactionFieldCFeeTransid = big.NewInt(1 << 0) queryCFeeTransactionFieldFeeAmount = big.NewInt(1 << 1) queryCFeeTransactionFieldOperation = big.NewInt(1 << 2) - queryCFeeTransactionFieldRefundId = big.NewInt(1 << 3) + queryCFeeTransactionFieldRefundID = big.NewInt(1 << 3) queryCFeeTransactionFieldResponseData = big.NewInt(1 << 4) queryCFeeTransactionFieldSettlementStatus = big.NewInt(1 << 5) queryCFeeTransactionFieldTransactionTime = big.NewInt(1 << 6) @@ -16565,7 +16565,7 @@ type QueryCFeeTransaction struct { CFeeTransid *string `json:"cFeeTransid,omitempty" url:"cFeeTransid,omitempty"` FeeAmount *float64 `json:"feeAmount,omitempty" url:"feeAmount,omitempty"` Operation *string `json:"operation,omitempty" url:"operation,omitempty"` - RefundId *int64 `json:"refundId,omitempty" url:"refundId,omitempty"` + RefundID *int64 `json:"refundId,omitempty" url:"refundId,omitempty"` ResponseData map[string]any `json:"responseData,omitempty" url:"responseData,omitempty"` SettlementStatus *int `json:"settlementStatus,omitempty" url:"settlementStatus,omitempty"` TransactionTime *TransactionTime `json:"transactionTime,omitempty" url:"transactionTime,omitempty"` @@ -16599,11 +16599,11 @@ func (q *QueryCFeeTransaction) GetOperation() *string { return q.Operation } -func (q *QueryCFeeTransaction) GetRefundId() *int64 { +func (q *QueryCFeeTransaction) GetRefundID() *int64 { if q == nil { return nil } - return q.RefundId + return q.RefundID } func (q *QueryCFeeTransaction) GetResponseData() map[string]any { @@ -16669,11 +16669,11 @@ func (q *QueryCFeeTransaction) SetOperation(operation *string) { q.require(queryCFeeTransactionFieldOperation) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryCFeeTransaction) SetRefundId(refundId *int64) { - q.RefundId = refundId - q.require(queryCFeeTransactionFieldRefundId) +func (q *QueryCFeeTransaction) SetRefundID(refundID *int64) { + q.RefundID = refundID + q.require(queryCFeeTransactionFieldRefundID) } // SetResponseData sets the ResponseData field and marks it as non-optional; @@ -16756,7 +16756,7 @@ func (q *QueryCFeeTransaction) String() string { var ( queryPaymentDataFieldAccountExp = big.NewInt(1 << 0) - queryPaymentDataFieldAccountId = big.NewInt(1 << 1) + queryPaymentDataFieldAccountID = big.NewInt(1 << 1) queryPaymentDataFieldAccountType = big.NewInt(1 << 2) queryPaymentDataFieldAccountZip = big.NewInt(1 << 3) queryPaymentDataFieldBinData = big.NewInt(1 << 4) @@ -16767,13 +16767,13 @@ var ( queryPaymentDataFieldPaymentDetails = big.NewInt(1 << 9) queryPaymentDataFieldSequence = big.NewInt(1 << 10) queryPaymentDataFieldSignatureData = big.NewInt(1 << 11) - queryPaymentDataFieldStoredId = big.NewInt(1 << 12) + queryPaymentDataFieldStoredID = big.NewInt(1 << 12) queryPaymentDataFieldStoredMethodUsageType = big.NewInt(1 << 13) ) type QueryPaymentData struct { AccountExp *Accountexp `json:"AccountExp,omitempty" url:"AccountExp,omitempty"` - AccountId *AccountId `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *AccountID `json:"accountId,omitempty" url:"accountId,omitempty"` AccountType *Accounttype `json:"AccountType,omitempty" url:"AccountType,omitempty"` AccountZip *Accountzip `json:"AccountZip,omitempty" url:"AccountZip,omitempty"` BinData *BinData `json:"binData,omitempty" url:"binData,omitempty"` @@ -16785,7 +16785,7 @@ type QueryPaymentData struct { Sequence *Sequence `json:"Sequence,omitempty" url:"Sequence,omitempty"` SignatureData *Signaturedata `json:"SignatureData,omitempty" url:"SignatureData,omitempty"` // Identifier of stored payment method used in transaction. - StoredId *Storedmethodid `json:"StoredId,omitempty" url:"StoredId,omitempty"` + StoredID *Storedmethodid `json:"StoredId,omitempty" url:"StoredId,omitempty"` StoredMethodUsageType *StoredMethodUsageType `json:"StoredMethodUsageType,omitempty" url:"StoredMethodUsageType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -16802,11 +16802,11 @@ func (q *QueryPaymentData) GetAccountExp() *Accountexp { return q.AccountExp } -func (q *QueryPaymentData) GetAccountId() *AccountId { +func (q *QueryPaymentData) GetAccountID() *AccountID { if q == nil { return nil } - return q.AccountId + return q.AccountID } func (q *QueryPaymentData) GetAccountType() *Accounttype { @@ -16879,11 +16879,11 @@ func (q *QueryPaymentData) GetSignatureData() *Signaturedata { return q.SignatureData } -func (q *QueryPaymentData) GetStoredId() *Storedmethodid { +func (q *QueryPaymentData) GetStoredID() *Storedmethodid { if q == nil { return nil } - return q.StoredId + return q.StoredID } func (q *QueryPaymentData) GetStoredMethodUsageType() *StoredMethodUsageType { @@ -16914,11 +16914,11 @@ func (q *QueryPaymentData) SetAccountExp(accountExp *Accountexp) { q.require(queryPaymentDataFieldAccountExp) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPaymentData) SetAccountId(accountId *AccountId) { - q.AccountId = accountId - q.require(queryPaymentDataFieldAccountId) +func (q *QueryPaymentData) SetAccountID(accountID *AccountID) { + q.AccountID = accountID + q.require(queryPaymentDataFieldAccountID) } // SetAccountType sets the AccountType field and marks it as non-optional; @@ -16991,11 +16991,11 @@ func (q *QueryPaymentData) SetSignatureData(signatureData *Signaturedata) { q.require(queryPaymentDataFieldSignatureData) } -// SetStoredId sets the StoredId field and marks it as non-optional; +// SetStoredID sets the StoredID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryPaymentData) SetStoredId(storedId *Storedmethodid) { - q.StoredId = storedId - q.require(queryPaymentDataFieldStoredId) +func (q *QueryPaymentData) SetStoredID(storedID *Storedmethodid) { + q.StoredID = storedID + q.require(queryPaymentDataFieldStoredID) } // SetStoredMethodUsageType sets the StoredMethodUsageType field and marks it as non-optional; @@ -17173,7 +17173,7 @@ type QueryResponseData struct { Cvvresponse *CvvResponse `json:"cvvresponse,omitempty" url:"cvvresponse,omitempty"` CvvresponseText *CvvResponseText `json:"cvvresponse_text,omitempty" url:"cvvresponse_text,omitempty"` EmvAuthResponseData *EmvAuthResponseData `json:"emv_auth_response_data,omitempty" url:"emv_auth_response_data,omitempty"` - Orderid *OrderId `json:"orderid,omitempty" url:"orderid,omitempty"` + Orderid *OrderID `json:"orderid,omitempty" url:"orderid,omitempty"` // Response text for operation: 'Success' or 'Declined'. Response *string `json:"response,omitempty" url:"response,omitempty"` // Internal result code processing the transaction. Value 1 indicates successful operation, values 2 and 3 indicate errors. @@ -17238,7 +17238,7 @@ func (q *QueryResponseData) GetEmvAuthResponseData() *EmvAuthResponseData { return q.EmvAuthResponseData } -func (q *QueryResponseData) GetOrderid() *OrderId { +func (q *QueryResponseData) GetOrderid() *OrderID { if q == nil { return nil } @@ -17359,7 +17359,7 @@ func (q *QueryResponseData) SetEmvAuthResponseData(emvAuthResponseData *EmvAuthR // SetOrderid sets the Orderid field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryResponseData) SetOrderid(orderid *OrderId) { +func (q *QueryResponseData) SetOrderid(orderid *OrderID) { q.Orderid = orderid q.require(queryResponseDataFieldOrderid) } @@ -17838,7 +17838,7 @@ var ( queryTransactionPayorDataFieldShippingState = big.NewInt(1 << 16) queryTransactionPayorDataFieldShippingZip = big.NewInt(1 << 17) queryTransactionPayorDataFieldShippingCountry = big.NewInt(1 << 18) - queryTransactionPayorDataFieldCustomerId = big.NewInt(1 << 19) + queryTransactionPayorDataFieldCustomerID = big.NewInt(1 << 19) queryTransactionPayorDataFieldCustomerStatus = big.NewInt(1 << 20) queryTransactionPayorDataFieldAdditionalData = big.NewInt(1 << 21) ) @@ -17875,7 +17875,7 @@ type QueryTransactionPayorData struct { ShippingState *Shippingstate `json:"ShippingState,omitempty" url:"ShippingState,omitempty"` ShippingZip *Shippingzip `json:"ShippingZip,omitempty" url:"ShippingZip,omitempty"` ShippingCountry *Shippingcountry `json:"ShippingCountry,omitempty" url:"ShippingCountry,omitempty"` - CustomerId *CustomerId `json:"customerId,omitempty" url:"customerId,omitempty"` + CustomerID *CustomerID `json:"customerId,omitempty" url:"customerId,omitempty"` CustomerStatus *CustomerStatus `json:"customerStatus,omitempty" url:"customerStatus,omitempty"` AdditionalData *AdditionalDataMap `json:"AdditionalData,omitempty" url:"AdditionalData,omitempty"` @@ -18019,11 +18019,11 @@ func (q *QueryTransactionPayorData) GetShippingCountry() *Shippingcountry { return q.ShippingCountry } -func (q *QueryTransactionPayorData) GetCustomerId() *CustomerId { +func (q *QueryTransactionPayorData) GetCustomerID() *CustomerID { if q == nil { return nil } - return q.CustomerId + return q.CustomerID } func (q *QueryTransactionPayorData) GetCustomerStatus() *CustomerStatus { @@ -18187,11 +18187,11 @@ func (q *QueryTransactionPayorData) SetShippingCountry(shippingCountry *Shipping q.require(queryTransactionPayorDataFieldShippingCountry) } -// SetCustomerId sets the CustomerId field and marks it as non-optional; +// SetCustomerID sets the CustomerID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (q *QueryTransactionPayorData) SetCustomerId(customerId *CustomerId) { - q.CustomerId = customerId - q.require(queryTransactionPayorDataFieldCustomerId) +func (q *QueryTransactionPayorData) SetCustomerID(customerID *CustomerID) { + q.CustomerID = customerID + q.require(queryTransactionPayorDataFieldCustomerID) } // SetCustomerStatus sets the CustomerStatus field and marks it as non-optional; @@ -18480,13 +18480,13 @@ type RecipientEmailNotification = bool type ReferenceName = string -type ReferenceTemplateId = int64 +type ReferenceTemplateID = int64 // The transaction identifier in Payabli. type Referenceidtrans = string // Identifier of refund transaction linked to this payment. -type RefundId = int64 +type RefundID = int64 // Remittance email address. Used for sending virtual cards and other information about payouts. type RemitEmail = string @@ -18608,10 +18608,10 @@ type Resulttext = string type Resumable = bool // Identifier of retrieval request -type RetrievalId = int64 +type RetrievalID = int64 // Identifier of return/chargeback transaction linked to this payment. -type ReturnedId = int64 +type ReturnedID = int64 // Action taken due to risk assessment type RiskAction = string @@ -18632,7 +18632,7 @@ type RiskReason = string type RiskStatus = string // Field not in use on this endpoint. It always returns `0`. -type RoomIdNotInUse = int64 +type RoomIDNotInUse = int64 // Routing number of bank account. type RoutingAccount = string @@ -18643,7 +18643,7 @@ type SalesCode = string type SaveIfSuccess = bool // ID of the recurring payment schedule associated with the transaction. -type ScheduleId = int64 +type ScheduleID = int64 // The order of the transaction for cardholder-initiated transaction (CIT) and merchant-initiated transaction (MIT) purposes. This field is automatically detected and populated by Payabli. // @@ -19126,7 +19126,7 @@ type Source = string type SplitFunding = []*SplitFundingContent var ( - splitFundingContentFieldAccountId = big.NewInt(1 << 0) + splitFundingContentFieldAccountID = big.NewInt(1 << 0) splitFundingContentFieldAmount = big.NewInt(1 << 1) splitFundingContentFieldDescription = big.NewInt(1 << 2) splitFundingContentFieldRecipientEntryPoint = big.NewInt(1 << 3) @@ -19134,7 +19134,7 @@ var ( type SplitFundingContent struct { // The accountId for the account the split should be sent to. - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` // Amount from the transaction to send to this recipient. Amount *float64 `json:"amount,omitempty" url:"amount,omitempty"` // A description for the split. @@ -19149,11 +19149,11 @@ type SplitFundingContent struct { rawJSON json.RawMessage } -func (s *SplitFundingContent) GetAccountId() *string { +func (s *SplitFundingContent) GetAccountID() *string { if s == nil { return nil } - return s.AccountId + return s.AccountID } func (s *SplitFundingContent) GetAmount() *float64 { @@ -19191,11 +19191,11 @@ func (s *SplitFundingContent) require(field *big.Int) { s.explicitFields.Or(s.explicitFields, field) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SplitFundingContent) SetAccountId(accountId *string) { - s.AccountId = accountId - s.require(splitFundingContentFieldAccountId) +func (s *SplitFundingContent) SetAccountID(accountID *string) { + s.AccountID = accountID + s.require(splitFundingContentFieldAccountID) } // SetAmount sets the Amount field and marks it as non-optional; @@ -19391,11 +19391,11 @@ var ( subscriptionQueryRecordsFieldCreatedAt = big.NewInt(1 << 0) subscriptionQueryRecordsFieldCustomer = big.NewInt(1 << 1) subscriptionQueryRecordsFieldEndDate = big.NewInt(1 << 2) - subscriptionQueryRecordsFieldEntrypageId = big.NewInt(1 << 3) - subscriptionQueryRecordsFieldExternalPaypointId = big.NewInt(1 << 4) + subscriptionQueryRecordsFieldEntrypageID = big.NewInt(1 << 3) + subscriptionQueryRecordsFieldExternalPaypointID = big.NewInt(1 << 4) subscriptionQueryRecordsFieldFeeAmount = big.NewInt(1 << 5) subscriptionQueryRecordsFieldFrequency = big.NewInt(1 << 6) - subscriptionQueryRecordsFieldIdSub = big.NewInt(1 << 7) + subscriptionQueryRecordsFieldIDSub = big.NewInt(1 << 7) subscriptionQueryRecordsFieldInvoiceData = big.NewInt(1 << 8) subscriptionQueryRecordsFieldLastRun = big.NewInt(1 << 9) subscriptionQueryRecordsFieldLastUpdated = big.NewInt(1 << 10) @@ -19407,9 +19407,9 @@ var ( subscriptionQueryRecordsFieldPaymentData = big.NewInt(1 << 16) subscriptionQueryRecordsFieldPaypointDbaname = big.NewInt(1 << 17) subscriptionQueryRecordsFieldPaypointEntryname = big.NewInt(1 << 18) - subscriptionQueryRecordsFieldPaypointId = big.NewInt(1 << 19) + subscriptionQueryRecordsFieldPaypointID = big.NewInt(1 << 19) subscriptionQueryRecordsFieldPaypointLegalname = big.NewInt(1 << 20) - subscriptionQueryRecordsFieldPlanId = big.NewInt(1 << 21) + subscriptionQueryRecordsFieldPlanID = big.NewInt(1 << 21) subscriptionQueryRecordsFieldSource = big.NewInt(1 << 22) subscriptionQueryRecordsFieldStartDate = big.NewInt(1 << 23) subscriptionQueryRecordsFieldSubEvents = big.NewInt(1 << 24) @@ -19425,14 +19425,14 @@ type SubscriptionQueryRecords struct { Customer *QueryTransactionPayorData `json:"Customer,omitempty" url:"Customer,omitempty"` // The subscription's end date. EndDate *time.Time `json:"EndDate,omitempty" url:"EndDate,omitempty"` - EntrypageId *EntrypageId `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"ExternalPaypointID,omitempty" url:"ExternalPaypointID,omitempty"` + EntrypageID *EntrypageID `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"ExternalPaypointID,omitempty" url:"ExternalPaypointID,omitempty"` // Fee applied to the subscription. FeeAmount *float64 `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` // The subscription's frequency. Frequency *string `json:"Frequency,omitempty" url:"Frequency,omitempty"` // The subscription's ID. - IdSub *int64 `json:"IdSub,omitempty" url:"IdSub,omitempty"` + IDSub *int64 `json:"IdSub,omitempty" url:"IdSub,omitempty"` InvoiceData *BillData `json:"InvoiceData,omitempty" url:"InvoiceData,omitempty"` // The last time the subscription was processed. LastRun *time.Time `json:"LastRun,omitempty" url:"LastRun,omitempty"` @@ -19452,11 +19452,11 @@ type SubscriptionQueryRecords struct { PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // The paypoint's entryname. PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` - PaypointId *PaypointId `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *PaypointID `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // The paypoint's legal name. PaypointLegalname *Legalname `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` // Payment plan ID. - PlanId *int `json:"PlanId,omitempty" url:"PlanId,omitempty"` + PlanID *int `json:"PlanId,omitempty" url:"PlanId,omitempty"` Source *Source `json:"Source,omitempty" url:"Source,omitempty"` // The subscription start date. StartDate *time.Time `json:"StartDate,omitempty" url:"StartDate,omitempty"` @@ -19501,18 +19501,18 @@ func (s *SubscriptionQueryRecords) GetEndDate() *time.Time { return s.EndDate } -func (s *SubscriptionQueryRecords) GetEntrypageId() *EntrypageId { +func (s *SubscriptionQueryRecords) GetEntrypageID() *EntrypageID { if s == nil { return nil } - return s.EntrypageId + return s.EntrypageID } -func (s *SubscriptionQueryRecords) GetExternalPaypointId() *ExternalPaypointId { +func (s *SubscriptionQueryRecords) GetExternalPaypointID() *ExternalPaypointID { if s == nil { return nil } - return s.ExternalPaypointId + return s.ExternalPaypointID } func (s *SubscriptionQueryRecords) GetFeeAmount() *float64 { @@ -19529,11 +19529,11 @@ func (s *SubscriptionQueryRecords) GetFrequency() *string { return s.Frequency } -func (s *SubscriptionQueryRecords) GetIdSub() *int64 { +func (s *SubscriptionQueryRecords) GetIDSub() *int64 { if s == nil { return nil } - return s.IdSub + return s.IDSub } func (s *SubscriptionQueryRecords) GetInvoiceData() *BillData { @@ -19613,11 +19613,11 @@ func (s *SubscriptionQueryRecords) GetPaypointEntryname() *Entrypointfield { return s.PaypointEntryname } -func (s *SubscriptionQueryRecords) GetPaypointId() *PaypointId { +func (s *SubscriptionQueryRecords) GetPaypointID() *PaypointID { if s == nil { return nil } - return s.PaypointId + return s.PaypointID } func (s *SubscriptionQueryRecords) GetPaypointLegalname() *Legalname { @@ -19627,11 +19627,11 @@ func (s *SubscriptionQueryRecords) GetPaypointLegalname() *Legalname { return s.PaypointLegalname } -func (s *SubscriptionQueryRecords) GetPlanId() *int { +func (s *SubscriptionQueryRecords) GetPlanID() *int { if s == nil { return nil } - return s.PlanId + return s.PlanID } func (s *SubscriptionQueryRecords) GetSource() *Source { @@ -19718,18 +19718,18 @@ func (s *SubscriptionQueryRecords) SetEndDate(endDate *time.Time) { s.require(subscriptionQueryRecordsFieldEndDate) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SubscriptionQueryRecords) SetEntrypageId(entrypageId *EntrypageId) { - s.EntrypageId = entrypageId - s.require(subscriptionQueryRecordsFieldEntrypageId) +func (s *SubscriptionQueryRecords) SetEntrypageID(entrypageID *EntrypageID) { + s.EntrypageID = entrypageID + s.require(subscriptionQueryRecordsFieldEntrypageID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SubscriptionQueryRecords) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - s.ExternalPaypointId = externalPaypointId - s.require(subscriptionQueryRecordsFieldExternalPaypointId) +func (s *SubscriptionQueryRecords) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + s.ExternalPaypointID = externalPaypointID + s.require(subscriptionQueryRecordsFieldExternalPaypointID) } // SetFeeAmount sets the FeeAmount field and marks it as non-optional; @@ -19746,11 +19746,11 @@ func (s *SubscriptionQueryRecords) SetFrequency(frequency *string) { s.require(subscriptionQueryRecordsFieldFrequency) } -// SetIdSub sets the IdSub field and marks it as non-optional; +// SetIDSub sets the IDSub field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SubscriptionQueryRecords) SetIdSub(idSub *int64) { - s.IdSub = idSub - s.require(subscriptionQueryRecordsFieldIdSub) +func (s *SubscriptionQueryRecords) SetIDSub(idSub *int64) { + s.IDSub = idSub + s.require(subscriptionQueryRecordsFieldIDSub) } // SetInvoiceData sets the InvoiceData field and marks it as non-optional; @@ -19830,11 +19830,11 @@ func (s *SubscriptionQueryRecords) SetPaypointEntryname(paypointEntryname *Entry s.require(subscriptionQueryRecordsFieldPaypointEntryname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SubscriptionQueryRecords) SetPaypointId(paypointId *PaypointId) { - s.PaypointId = paypointId - s.require(subscriptionQueryRecordsFieldPaypointId) +func (s *SubscriptionQueryRecords) SetPaypointID(paypointID *PaypointID) { + s.PaypointID = paypointID + s.require(subscriptionQueryRecordsFieldPaypointID) } // SetPaypointLegalname sets the PaypointLegalname field and marks it as non-optional; @@ -19844,11 +19844,11 @@ func (s *SubscriptionQueryRecords) SetPaypointLegalname(paypointLegalname *Legal s.require(subscriptionQueryRecordsFieldPaypointLegalname) } -// SetPlanId sets the PlanId field and marks it as non-optional; +// SetPlanID sets the PlanID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (s *SubscriptionQueryRecords) SetPlanId(planId *int) { - s.PlanId = planId - s.require(subscriptionQueryRecordsFieldPlanId) +func (s *SubscriptionQueryRecords) SetPlanID(planID *int) { + s.PlanID = planID + s.require(subscriptionQueryRecordsFieldPlanID) } // SetSource sets the Source field and marks it as non-optional; @@ -20340,8 +20340,8 @@ func (t *TemplateContent) String() string { // Object containing the template's data. var ( - templateDataFieldOrgId = big.NewInt(1 << 0) - templateDataFieldPricingId = big.NewInt(1 << 1) + templateDataFieldOrgID = big.NewInt(1 << 0) + templateDataFieldPricingID = big.NewInt(1 << 1) templateDataFieldTemplateCode = big.NewInt(1 << 2) templateDataFieldTemplateContent = big.NewInt(1 << 3) templateDataFieldTemplateDescription = big.NewInt(1 << 4) @@ -20350,8 +20350,8 @@ var ( type TemplateData struct { // The ID of the organization the template belongs to. - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` - PricingId *int64 `json:"pricingId,omitempty" url:"pricingId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + PricingID *int64 `json:"pricingId,omitempty" url:"pricingId,omitempty"` TemplateCode *TemplateCode `json:"templateCode,omitempty" url:"templateCode,omitempty"` TemplateContent *TemplateContent `json:"templateContent,omitempty" url:"templateContent,omitempty"` // A description for the template. @@ -20365,18 +20365,18 @@ type TemplateData struct { rawJSON json.RawMessage } -func (t *TemplateData) GetOrgId() *Orgid { +func (t *TemplateData) GetOrgID() *Orgid { if t == nil { return nil } - return t.OrgId + return t.OrgID } -func (t *TemplateData) GetPricingId() *int64 { +func (t *TemplateData) GetPricingID() *int64 { if t == nil { return nil } - return t.PricingId + return t.PricingID } func (t *TemplateData) GetTemplateCode() *TemplateCode { @@ -20421,18 +20421,18 @@ func (t *TemplateData) require(field *big.Int) { t.explicitFields.Or(t.explicitFields, field) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TemplateData) SetOrgId(orgId *Orgid) { - t.OrgId = orgId - t.require(templateDataFieldOrgId) +func (t *TemplateData) SetOrgID(orgID *Orgid) { + t.OrgID = orgID + t.require(templateDataFieldOrgID) } -// SetPricingId sets the PricingId field and marks it as non-optional; +// SetPricingID sets the PricingID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TemplateData) SetPricingId(pricingId *int64) { - t.PricingId = pricingId - t.require(templateDataFieldPricingId) +func (t *TemplateData) SetPricingID(pricingID *int64) { + t.PricingID = pricingID + t.require(templateDataFieldPricingID) } // SetTemplateCode sets the TemplateCode field and marks it as non-optional; @@ -20506,7 +20506,7 @@ func (t *TemplateData) String() string { } // The associated boarding template's ID in Payabli. -type TemplateId = int64 +type TemplateID = int64 // The template name. type TemplateName = string @@ -20581,29 +20581,29 @@ var ( transactionQueryRecordsFieldCfeeTransactions = big.NewInt(1 << 4) transactionQueryRecordsFieldConnectorName = big.NewInt(1 << 5) transactionQueryRecordsFieldCustomer = big.NewInt(1 << 6) - transactionQueryRecordsFieldDeviceId = big.NewInt(1 << 7) - transactionQueryRecordsFieldEntrypageId = big.NewInt(1 << 8) + transactionQueryRecordsFieldDeviceID = big.NewInt(1 << 7) + transactionQueryRecordsFieldEntrypageID = big.NewInt(1 << 8) transactionQueryRecordsFieldExternalProcessorInformation = big.NewInt(1 << 9) transactionQueryRecordsFieldFeeAmount = big.NewInt(1 << 10) - transactionQueryRecordsFieldGatewayTransId = big.NewInt(1 << 11) + transactionQueryRecordsFieldGatewayTransID = big.NewInt(1 << 11) transactionQueryRecordsFieldInvoiceData = big.NewInt(1 << 12) transactionQueryRecordsFieldMethod = big.NewInt(1 << 13) transactionQueryRecordsFieldNetAmount = big.NewInt(1 << 14) transactionQueryRecordsFieldOperation = big.NewInt(1 << 15) - transactionQueryRecordsFieldOrderId = big.NewInt(1 << 16) - transactionQueryRecordsFieldOrgId = big.NewInt(1 << 17) + transactionQueryRecordsFieldOrderID = big.NewInt(1 << 16) + transactionQueryRecordsFieldOrgID = big.NewInt(1 << 17) transactionQueryRecordsFieldParentOrgName = big.NewInt(1 << 18) transactionQueryRecordsFieldPaymentData = big.NewInt(1 << 19) - transactionQueryRecordsFieldPaymentTransId = big.NewInt(1 << 20) - transactionQueryRecordsFieldPayorId = big.NewInt(1 << 21) + transactionQueryRecordsFieldPaymentTransID = big.NewInt(1 << 20) + transactionQueryRecordsFieldPayorID = big.NewInt(1 << 21) transactionQueryRecordsFieldPaypointDbaname = big.NewInt(1 << 22) transactionQueryRecordsFieldPaypointEntryname = big.NewInt(1 << 23) - transactionQueryRecordsFieldPaypointId = big.NewInt(1 << 24) + transactionQueryRecordsFieldPaypointID = big.NewInt(1 << 24) transactionQueryRecordsFieldPaypointLegalname = big.NewInt(1 << 25) transactionQueryRecordsFieldPendingFeeAmount = big.NewInt(1 << 26) - transactionQueryRecordsFieldRefundId = big.NewInt(1 << 27) + transactionQueryRecordsFieldRefundID = big.NewInt(1 << 27) transactionQueryRecordsFieldResponseData = big.NewInt(1 << 28) - transactionQueryRecordsFieldReturnedId = big.NewInt(1 << 29) + transactionQueryRecordsFieldReturnedID = big.NewInt(1 << 29) transactionQueryRecordsFieldScheduleReference = big.NewInt(1 << 30) transactionQueryRecordsFieldSettlementStatus = big.NewInt(1 << 31) transactionQueryRecordsFieldSource = big.NewInt(1 << 32) @@ -20626,38 +20626,38 @@ type TransactionQueryRecords struct { // Connector used for transaction. ConnectorName *string `json:"ConnectorName,omitempty" url:"ConnectorName,omitempty"` Customer *QueryTransactionPayorData `json:"Customer,omitempty" url:"Customer,omitempty"` - DeviceId *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` - EntrypageId *EntrypageId `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` + DeviceID *Device `json:"DeviceId,omitempty" url:"DeviceId,omitempty"` + EntrypageID *EntrypageID `json:"EntrypageId,omitempty" url:"EntrypageId,omitempty"` ExternalProcessorInformation *ExternalProcessorInformation `json:"ExternalProcessorInformation,omitempty" url:"ExternalProcessorInformation,omitempty"` FeeAmount *FeeAmount `json:"FeeAmount,omitempty" url:"FeeAmount,omitempty"` // Internal identifier used for processing. - GatewayTransId *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` + GatewayTransID *string `json:"GatewayTransId,omitempty" url:"GatewayTransId,omitempty"` InvoiceData *BillData `json:"InvoiceData,omitempty" url:"InvoiceData,omitempty"` // Payment method used: card, ach, or wallet. Method *string `json:"Method,omitempty" url:"Method,omitempty"` // Net amount paid. NetAmount *Netamountnullable `json:"NetAmount,omitempty" url:"NetAmount,omitempty"` Operation *Operation `json:"Operation,omitempty" url:"Operation,omitempty"` - OrderId *OrderId `json:"OrderId,omitempty" url:"OrderId,omitempty"` + OrderID *OrderID `json:"OrderId,omitempty" url:"OrderId,omitempty"` // ID of immediate parent organization. - OrgId *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` + OrgID *Orgid `json:"OrgId,omitempty" url:"OrgId,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` PaymentData *QueryPaymentData `json:"PaymentData,omitempty" url:"PaymentData,omitempty"` // Unique Transaction ID. - PaymentTransId *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` - PayorId *PayorId `json:"PayorId,omitempty" url:"PayorId,omitempty"` + PaymentTransID *string `json:"PaymentTransId,omitempty" url:"PaymentTransId,omitempty"` + PayorID *PayorID `json:"PayorId,omitempty" url:"PayorId,omitempty"` // Paypoint's DBA name. PaypointDbaname *Dbaname `json:"PaypointDbaname,omitempty" url:"PaypointDbaname,omitempty"` // Paypoint's entryname. PaypointEntryname *Entrypointfield `json:"PaypointEntryname,omitempty" url:"PaypointEntryname,omitempty"` // InternalId for paypoint. - PaypointId *int64 `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` + PaypointID *int64 `json:"PaypointId,omitempty" url:"PaypointId,omitempty"` // Paypoint's legal name. PaypointLegalname *Legalname `json:"PaypointLegalname,omitempty" url:"PaypointLegalname,omitempty"` PendingFeeAmount *PendingFeeAmount `json:"PendingFeeAmount,omitempty" url:"PendingFeeAmount,omitempty"` - RefundId *RefundId `json:"RefundId,omitempty" url:"RefundId,omitempty"` + RefundID *RefundID `json:"RefundId,omitempty" url:"RefundId,omitempty"` ResponseData *QueryResponseData `json:"ResponseData,omitempty" url:"ResponseData,omitempty"` - ReturnedId *ReturnedId `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` + ReturnedID *ReturnedID `json:"ReturnedId,omitempty" url:"ReturnedId,omitempty"` // Reference to the subscription that originated the transaction. ScheduleReference *int64 `json:"ScheduleReference,omitempty" url:"ScheduleReference,omitempty"` // Settlement status for transaction. See [the docs](/developers/references/money-in-statuses#payment-funding-status) for a full reference. @@ -20730,18 +20730,18 @@ func (t *TransactionQueryRecords) GetCustomer() *QueryTransactionPayorData { return t.Customer } -func (t *TransactionQueryRecords) GetDeviceId() *Device { +func (t *TransactionQueryRecords) GetDeviceID() *Device { if t == nil { return nil } - return t.DeviceId + return t.DeviceID } -func (t *TransactionQueryRecords) GetEntrypageId() *EntrypageId { +func (t *TransactionQueryRecords) GetEntrypageID() *EntrypageID { if t == nil { return nil } - return t.EntrypageId + return t.EntrypageID } func (t *TransactionQueryRecords) GetExternalProcessorInformation() *ExternalProcessorInformation { @@ -20758,11 +20758,11 @@ func (t *TransactionQueryRecords) GetFeeAmount() *FeeAmount { return t.FeeAmount } -func (t *TransactionQueryRecords) GetGatewayTransId() *string { +func (t *TransactionQueryRecords) GetGatewayTransID() *string { if t == nil { return nil } - return t.GatewayTransId + return t.GatewayTransID } func (t *TransactionQueryRecords) GetInvoiceData() *BillData { @@ -20793,18 +20793,18 @@ func (t *TransactionQueryRecords) GetOperation() *Operation { return t.Operation } -func (t *TransactionQueryRecords) GetOrderId() *OrderId { +func (t *TransactionQueryRecords) GetOrderID() *OrderID { if t == nil { return nil } - return t.OrderId + return t.OrderID } -func (t *TransactionQueryRecords) GetOrgId() *Orgid { +func (t *TransactionQueryRecords) GetOrgID() *Orgid { if t == nil { return nil } - return t.OrgId + return t.OrgID } func (t *TransactionQueryRecords) GetParentOrgName() *OrgParentName { @@ -20821,18 +20821,18 @@ func (t *TransactionQueryRecords) GetPaymentData() *QueryPaymentData { return t.PaymentData } -func (t *TransactionQueryRecords) GetPaymentTransId() *string { +func (t *TransactionQueryRecords) GetPaymentTransID() *string { if t == nil { return nil } - return t.PaymentTransId + return t.PaymentTransID } -func (t *TransactionQueryRecords) GetPayorId() *PayorId { +func (t *TransactionQueryRecords) GetPayorID() *PayorID { if t == nil { return nil } - return t.PayorId + return t.PayorID } func (t *TransactionQueryRecords) GetPaypointDbaname() *Dbaname { @@ -20849,11 +20849,11 @@ func (t *TransactionQueryRecords) GetPaypointEntryname() *Entrypointfield { return t.PaypointEntryname } -func (t *TransactionQueryRecords) GetPaypointId() *int64 { +func (t *TransactionQueryRecords) GetPaypointID() *int64 { if t == nil { return nil } - return t.PaypointId + return t.PaypointID } func (t *TransactionQueryRecords) GetPaypointLegalname() *Legalname { @@ -20870,11 +20870,11 @@ func (t *TransactionQueryRecords) GetPendingFeeAmount() *PendingFeeAmount { return t.PendingFeeAmount } -func (t *TransactionQueryRecords) GetRefundId() *RefundId { +func (t *TransactionQueryRecords) GetRefundID() *RefundID { if t == nil { return nil } - return t.RefundId + return t.RefundID } func (t *TransactionQueryRecords) GetResponseData() *QueryResponseData { @@ -20884,11 +20884,11 @@ func (t *TransactionQueryRecords) GetResponseData() *QueryResponseData { return t.ResponseData } -func (t *TransactionQueryRecords) GetReturnedId() *ReturnedId { +func (t *TransactionQueryRecords) GetReturnedID() *ReturnedID { if t == nil { return nil } - return t.ReturnedId + return t.ReturnedID } func (t *TransactionQueryRecords) GetScheduleReference() *int64 { @@ -21017,18 +21017,18 @@ func (t *TransactionQueryRecords) SetCustomer(customer *QueryTransactionPayorDat t.require(transactionQueryRecordsFieldCustomer) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetDeviceId(deviceId *Device) { - t.DeviceId = deviceId - t.require(transactionQueryRecordsFieldDeviceId) +func (t *TransactionQueryRecords) SetDeviceID(deviceID *Device) { + t.DeviceID = deviceID + t.require(transactionQueryRecordsFieldDeviceID) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetEntrypageId(entrypageId *EntrypageId) { - t.EntrypageId = entrypageId - t.require(transactionQueryRecordsFieldEntrypageId) +func (t *TransactionQueryRecords) SetEntrypageID(entrypageID *EntrypageID) { + t.EntrypageID = entrypageID + t.require(transactionQueryRecordsFieldEntrypageID) } // SetExternalProcessorInformation sets the ExternalProcessorInformation field and marks it as non-optional; @@ -21045,11 +21045,11 @@ func (t *TransactionQueryRecords) SetFeeAmount(feeAmount *FeeAmount) { t.require(transactionQueryRecordsFieldFeeAmount) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetGatewayTransId(gatewayTransId *string) { - t.GatewayTransId = gatewayTransId - t.require(transactionQueryRecordsFieldGatewayTransId) +func (t *TransactionQueryRecords) SetGatewayTransID(gatewayTransID *string) { + t.GatewayTransID = gatewayTransID + t.require(transactionQueryRecordsFieldGatewayTransID) } // SetInvoiceData sets the InvoiceData field and marks it as non-optional; @@ -21080,18 +21080,18 @@ func (t *TransactionQueryRecords) SetOperation(operation *Operation) { t.require(transactionQueryRecordsFieldOperation) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetOrderId(orderId *OrderId) { - t.OrderId = orderId - t.require(transactionQueryRecordsFieldOrderId) +func (t *TransactionQueryRecords) SetOrderID(orderID *OrderID) { + t.OrderID = orderID + t.require(transactionQueryRecordsFieldOrderID) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetOrgId(orgId *Orgid) { - t.OrgId = orgId - t.require(transactionQueryRecordsFieldOrgId) +func (t *TransactionQueryRecords) SetOrgID(orgID *Orgid) { + t.OrgID = orgID + t.require(transactionQueryRecordsFieldOrgID) } // SetParentOrgName sets the ParentOrgName field and marks it as non-optional; @@ -21108,18 +21108,18 @@ func (t *TransactionQueryRecords) SetPaymentData(paymentData *QueryPaymentData) t.require(transactionQueryRecordsFieldPaymentData) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetPaymentTransId(paymentTransId *string) { - t.PaymentTransId = paymentTransId - t.require(transactionQueryRecordsFieldPaymentTransId) +func (t *TransactionQueryRecords) SetPaymentTransID(paymentTransID *string) { + t.PaymentTransID = paymentTransID + t.require(transactionQueryRecordsFieldPaymentTransID) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetPayorId(payorId *PayorId) { - t.PayorId = payorId - t.require(transactionQueryRecordsFieldPayorId) +func (t *TransactionQueryRecords) SetPayorID(payorID *PayorID) { + t.PayorID = payorID + t.require(transactionQueryRecordsFieldPayorID) } // SetPaypointDbaname sets the PaypointDbaname field and marks it as non-optional; @@ -21136,11 +21136,11 @@ func (t *TransactionQueryRecords) SetPaypointEntryname(paypointEntryname *Entryp t.require(transactionQueryRecordsFieldPaypointEntryname) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetPaypointId(paypointId *int64) { - t.PaypointId = paypointId - t.require(transactionQueryRecordsFieldPaypointId) +func (t *TransactionQueryRecords) SetPaypointID(paypointID *int64) { + t.PaypointID = paypointID + t.require(transactionQueryRecordsFieldPaypointID) } // SetPaypointLegalname sets the PaypointLegalname field and marks it as non-optional; @@ -21157,11 +21157,11 @@ func (t *TransactionQueryRecords) SetPendingFeeAmount(pendingFeeAmount *PendingF t.require(transactionQueryRecordsFieldPendingFeeAmount) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetRefundId(refundId *RefundId) { - t.RefundId = refundId - t.require(transactionQueryRecordsFieldRefundId) +func (t *TransactionQueryRecords) SetRefundID(refundID *RefundID) { + t.RefundID = refundID + t.require(transactionQueryRecordsFieldRefundID) } // SetResponseData sets the ResponseData field and marks it as non-optional; @@ -21171,11 +21171,11 @@ func (t *TransactionQueryRecords) SetResponseData(responseData *QueryResponseDat t.require(transactionQueryRecordsFieldResponseData) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (t *TransactionQueryRecords) SetReturnedId(returnedId *ReturnedId) { - t.ReturnedId = returnedId - t.require(transactionQueryRecordsFieldReturnedId) +func (t *TransactionQueryRecords) SetReturnedID(returnedID *ReturnedID) { + t.ReturnedID = returnedID + t.require(transactionQueryRecordsFieldReturnedID) } // SetScheduleReference sets the ScheduleReference field and marks it as non-optional; @@ -21320,12 +21320,12 @@ func (t TypeAccount) Ptr() *TypeAccount { // Underwriting data is used to manage risk orchestration in the boarding application lifecycle. var ( underwritingDataFieldMethod = big.NewInt(1 << 0) - underwritingDataFieldPolicyId = big.NewInt(1 << 1) + underwritingDataFieldPolicyID = big.NewInt(1 << 1) ) type UnderwritingData struct { Method UnderWritingMethod `json:"method" url:"method"` - PolicyId *PolicyId `json:"policyId,omitempty" url:"policyId,omitempty"` + PolicyID *PolicyID `json:"policyId,omitempty" url:"policyId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -21341,11 +21341,11 @@ func (u *UnderwritingData) GetMethod() UnderWritingMethod { return u.Method } -func (u *UnderwritingData) GetPolicyId() *PolicyId { +func (u *UnderwritingData) GetPolicyID() *PolicyID { if u == nil { return nil } - return u.PolicyId + return u.PolicyID } func (u *UnderwritingData) GetExtraProperties() map[string]interface{} { @@ -21369,11 +21369,11 @@ func (u *UnderwritingData) SetMethod(method UnderWritingMethod) { u.require(underwritingDataFieldMethod) } -// SetPolicyId sets the PolicyId field and marks it as non-optional; +// SetPolicyID sets the PolicyID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UnderwritingData) SetPolicyId(policyId *PolicyId) { - u.PolicyId = policyId - u.require(underwritingDataFieldPolicyId) +func (u *UnderwritingData) SetPolicyID(policyID *PolicyID) { + u.PolicyID = policyID + u.require(underwritingDataFieldPolicyID) } func (u *UnderwritingData) UnmarshalJSON(data []byte) error { @@ -21432,7 +21432,7 @@ var ( userQueryRecordFieldSnIdentifier = big.NewInt(1 << 10) userQueryRecordFieldSnProvider = big.NewInt(1 << 11) userQueryRecordFieldTimeZone = big.NewInt(1 << 12) - userQueryRecordFieldUserId = big.NewInt(1 << 13) + userQueryRecordFieldUserID = big.NewInt(1 << 13) userQueryRecordFieldUsrMfa = big.NewInt(1 << 14) userQueryRecordFieldUsrMfaMode = big.NewInt(1 << 15) userQueryRecordFieldUsrStatus = big.NewInt(1 << 16) @@ -21460,7 +21460,7 @@ type UserQueryRecord struct { SnProvider *string `json:"snProvider,omitempty" url:"snProvider,omitempty"` TimeZone *Timezone `json:"timeZone,omitempty" url:"timeZone,omitempty"` // The user's ID in Payabli. - UserId *int64 `json:"userId,omitempty" url:"userId,omitempty"` + UserID *int64 `json:"userId,omitempty" url:"userId,omitempty"` UsrMfa *Mfa `json:"UsrMFA,omitempty" url:"UsrMFA,omitempty"` UsrMfaMode *MfaMode `json:"UsrMFAMode,omitempty" url:"UsrMFAMode,omitempty"` UsrStatus *UsrStatus `json:"UsrStatus,omitempty" url:"UsrStatus,omitempty"` @@ -21563,11 +21563,11 @@ func (u *UserQueryRecord) GetTimeZone() *Timezone { return u.TimeZone } -func (u *UserQueryRecord) GetUserId() *int64 { +func (u *UserQueryRecord) GetUserID() *int64 { if u == nil { return nil } - return u.UserId + return u.UserID } func (u *UserQueryRecord) GetUsrMfa() *Mfa { @@ -21696,11 +21696,11 @@ func (u *UserQueryRecord) SetTimeZone(timeZone *Timezone) { u.require(userQueryRecordFieldTimeZone) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UserQueryRecord) SetUserId(userId *int64) { - u.UserId = userId - u.require(userQueryRecordFieldUserId) +func (u *UserQueryRecord) SetUserID(userID *int64) { + u.UserID = userID + u.require(userQueryRecordFieldUserID) } // SetUsrMfa sets the UsrMfa field and marks it as non-optional; @@ -21901,7 +21901,7 @@ var ( vendorDataFieldCustomerVendorAccount = big.NewInt(1 << 10) vendorDataFieldEin = big.NewInt(1 << 11) vendorDataFieldEmail = big.NewInt(1 << 12) - vendorDataFieldInternalReferenceId = big.NewInt(1 << 13) + vendorDataFieldInternalReferenceID = big.NewInt(1 << 13) vendorDataFieldLocationCode = big.NewInt(1 << 14) vendorDataFieldMcc = big.NewInt(1 << 15) vendorDataFieldName1 = big.NewInt(1 << 16) @@ -21920,7 +21920,7 @@ var ( vendorDataFieldState = big.NewInt(1 << 29) vendorDataFieldVendorStatus = big.NewInt(1 << 30) vendorDataFieldZip = big.NewInt(1 << 31) - vendorDataFieldDefaultMethodId = big.NewInt(1 << 32) + vendorDataFieldDefaultMethodID = big.NewInt(1 << 32) vendorDataFieldAttachment = big.NewInt(1 << 33) ) @@ -21949,7 +21949,7 @@ type VendorData struct { // Vendor's email address. Required for vCard. Email *Email `json:"email,omitempty" url:"email,omitempty"` // Internal identifier for global vendor account. - InternalReferenceId *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` + InternalReferenceID *int64 `json:"internalReferenceId,omitempty" url:"internalReferenceId,omitempty"` LocationCode *LocationCode `json:"locationCode,omitempty" url:"locationCode,omitempty"` Mcc *Mcc `json:"mcc,omitempty" url:"mcc,omitempty"` Name1 *VendorName1 `json:"name1,omitempty" url:"name1,omitempty"` @@ -21971,7 +21971,7 @@ type VendorData struct { // Vendor's ZIP or postal code. Required if any address field is provided. For US addresses, use five digits (`12345`) or ZIP+4 format (`12345-6789`). Zip *string `json:"zip,omitempty" url:"zip,omitempty"` // Identifier for the vendor's default stored payment method. - DefaultMethodId *string `json:"defaultMethodId,omitempty" url:"defaultMethodId,omitempty"` + DefaultMethodID *string `json:"defaultMethodId,omitempty" url:"defaultMethodId,omitempty"` // PDF invoice attachment for AI-powered vendor enrichment. // When this feature is enabled and you include an attachment, the invoice is scanned and extracted vendor information is merged into the request. // Fields in the request body take precedence over extracted data. @@ -22079,11 +22079,11 @@ func (v *VendorData) GetEmail() *Email { return v.Email } -func (v *VendorData) GetInternalReferenceId() *int64 { +func (v *VendorData) GetInternalReferenceID() *int64 { if v == nil { return nil } - return v.InternalReferenceId + return v.InternalReferenceID } func (v *VendorData) GetLocationCode() *LocationCode { @@ -22212,11 +22212,11 @@ func (v *VendorData) GetZip() *string { return v.Zip } -func (v *VendorData) GetDefaultMethodId() *string { +func (v *VendorData) GetDefaultMethodID() *string { if v == nil { return nil } - return v.DefaultMethodId + return v.DefaultMethodID } func (v *VendorData) GetAttachment() *FileContent { @@ -22331,11 +22331,11 @@ func (v *VendorData) SetEmail(email *Email) { v.require(vendorDataFieldEmail) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorData) SetInternalReferenceId(internalReferenceId *int64) { - v.InternalReferenceId = internalReferenceId - v.require(vendorDataFieldInternalReferenceId) +func (v *VendorData) SetInternalReferenceID(internalReferenceID *int64) { + v.InternalReferenceID = internalReferenceID + v.require(vendorDataFieldInternalReferenceID) } // SetLocationCode sets the LocationCode field and marks it as non-optional; @@ -22464,11 +22464,11 @@ func (v *VendorData) SetZip(zip *string) { v.require(vendorDataFieldZip) } -// SetDefaultMethodId sets the DefaultMethodId field and marks it as non-optional; +// SetDefaultMethodID sets the DefaultMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorData) SetDefaultMethodId(defaultMethodId *string) { - v.DefaultMethodId = defaultMethodId - v.require(vendorDataFieldDefaultMethodId) +func (v *VendorData) SetDefaultMethodID(defaultMethodID *string) { + v.DefaultMethodID = defaultMethodID + v.require(vendorDataFieldDefaultMethodID) } // SetAttachment sets the Attachment field and marks it as non-optional; @@ -22539,14 +22539,14 @@ type VendorNumber = string // - `{ method: "ach", storedMethodId?: "..." }` - ACH payment method with optional stored method ID var ( vendorPaymentMethodFieldMethod = big.NewInt(1 << 0) - vendorPaymentMethodFieldStoredMethodId = big.NewInt(1 << 1) + vendorPaymentMethodFieldStoredMethodID = big.NewInt(1 << 1) ) type VendorPaymentMethod struct { // Payment method type - "managed", "vcard", "check", or "ach" Method string `json:"method" url:"method"` // ID of the stored ACH payment method. Only applicable when method is "ach". Required when using a previously saved ACH method when the vendor has more than one saved method. See the [Payouts with saved ACH payment methods](/developers/developer-guides/pay-out-manage-payouts) section for more details. - StoredMethodId *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` + StoredMethodID *string `json:"storedMethodId,omitempty" url:"storedMethodId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -22562,11 +22562,11 @@ func (v *VendorPaymentMethod) GetMethod() string { return v.Method } -func (v *VendorPaymentMethod) GetStoredMethodId() *string { +func (v *VendorPaymentMethod) GetStoredMethodID() *string { if v == nil { return nil } - return v.StoredMethodId + return v.StoredMethodID } func (v *VendorPaymentMethod) GetExtraProperties() map[string]interface{} { @@ -22590,11 +22590,11 @@ func (v *VendorPaymentMethod) SetMethod(method string) { v.require(vendorPaymentMethodFieldMethod) } -// SetStoredMethodId sets the StoredMethodId field and marks it as non-optional; +// SetStoredMethodID sets the StoredMethodID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorPaymentMethod) SetStoredMethodId(storedMethodId *string) { - v.StoredMethodId = storedMethodId - v.require(vendorPaymentMethodFieldStoredMethodId) +func (v *VendorPaymentMethod) SetStoredMethodID(storedMethodID *string) { + v.StoredMethodID = storedMethodID + v.require(vendorPaymentMethodFieldStoredMethodID) } func (v *VendorPaymentMethod) UnmarshalJSON(data []byte) error { @@ -22664,15 +22664,15 @@ var ( vendorQueryRecordFieldEin = big.NewInt(1 << 11) vendorQueryRecordFieldEmail = big.NewInt(1 << 12) vendorQueryRecordFieldEnrollmentStatus = big.NewInt(1 << 13) - vendorQueryRecordFieldExternalPaypointId = big.NewInt(1 << 14) - vendorQueryRecordFieldInternalReferenceId = big.NewInt(1 << 15) + vendorQueryRecordFieldExternalPaypointID = big.NewInt(1 << 14) + vendorQueryRecordFieldInternalReferenceID = big.NewInt(1 << 15) vendorQueryRecordFieldLastUpdated = big.NewInt(1 << 16) vendorQueryRecordFieldLocationCode = big.NewInt(1 << 17) vendorQueryRecordFieldMcc = big.NewInt(1 << 18) vendorQueryRecordFieldName1 = big.NewInt(1 << 19) vendorQueryRecordFieldName2 = big.NewInt(1 << 20) vendorQueryRecordFieldParentOrgName = big.NewInt(1 << 21) - vendorQueryRecordFieldParentOrgId = big.NewInt(1 << 22) + vendorQueryRecordFieldParentOrgID = big.NewInt(1 << 22) vendorQueryRecordFieldPayeeName1 = big.NewInt(1 << 23) vendorQueryRecordFieldPayeeName2 = big.NewInt(1 << 24) vendorQueryRecordFieldPaymentMethod = big.NewInt(1 << 25) @@ -22690,17 +22690,17 @@ var ( vendorQueryRecordFieldState = big.NewInt(1 << 37) vendorQueryRecordFieldStoredMethods = big.NewInt(1 << 38) vendorQueryRecordFieldSummary = big.NewInt(1 << 39) - vendorQueryRecordFieldVendorId = big.NewInt(1 << 40) + vendorQueryRecordFieldVendorID = big.NewInt(1 << 40) vendorQueryRecordFieldVendorNumber = big.NewInt(1 << 41) vendorQueryRecordFieldVendorStatus = big.NewInt(1 << 42) vendorQueryRecordFieldZip = big.NewInt(1 << 43) - vendorQueryRecordFieldPaymentPortalUrl = big.NewInt(1 << 44) + vendorQueryRecordFieldPaymentPortalURL = big.NewInt(1 << 44) vendorQueryRecordFieldCardAccepted = big.NewInt(1 << 45) vendorQueryRecordFieldAchAccepted = big.NewInt(1 << 46) vendorQueryRecordFieldEnrichmentStatus = big.NewInt(1 << 47) vendorQueryRecordFieldEnrichedBy = big.NewInt(1 << 48) vendorQueryRecordFieldEnrichedAt = big.NewInt(1 << 49) - vendorQueryRecordFieldEnrichmentId = big.NewInt(1 << 50) + vendorQueryRecordFieldEnrichmentID = big.NewInt(1 << 50) ) type VendorQueryRecord struct { @@ -22718,15 +22718,15 @@ type VendorQueryRecord struct { Ein *Ein `json:"EIN,omitempty" url:"EIN,omitempty"` Email *Email `json:"Email,omitempty" url:"Email,omitempty"` EnrollmentStatus *EnrollmentStatus `json:"EnrollmentStatus,omitempty" url:"EnrollmentStatus,omitempty"` - ExternalPaypointId *ExternalPaypointId `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` - InternalReferenceId *InternalReferenceId `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` + ExternalPaypointID *ExternalPaypointID `json:"externalPaypointID,omitempty" url:"externalPaypointID,omitempty"` + InternalReferenceID *InternalReferenceID `json:"InternalReferenceId,omitempty" url:"InternalReferenceId,omitempty"` LastUpdated *LastModified `json:"LastUpdated,omitempty" url:"LastUpdated,omitempty"` LocationCode *string `json:"LocationCode,omitempty" url:"LocationCode,omitempty"` Mcc *Mcc `json:"Mcc,omitempty" url:"Mcc,omitempty"` Name1 *string `json:"Name1,omitempty" url:"Name1,omitempty"` Name2 *string `json:"Name2,omitempty" url:"Name2,omitempty"` ParentOrgName *OrgParentName `json:"ParentOrgName,omitempty" url:"ParentOrgName,omitempty"` - ParentOrgId *OrgParentId `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` + ParentOrgID *OrgParentID `json:"ParentOrgId,omitempty" url:"ParentOrgId,omitempty"` PayeeName1 *PayeeName `json:"payeeName1,omitempty" url:"payeeName1,omitempty"` PayeeName2 *PayeeName `json:"payeeName2,omitempty" url:"payeeName2,omitempty"` PaymentMethod *VendorPaymentMethodString `json:"PaymentMethod,omitempty" url:"PaymentMethod,omitempty"` @@ -22744,12 +22744,12 @@ type VendorQueryRecord struct { State *StateNullable `json:"State,omitempty" url:"State,omitempty"` StoredMethods []*VendorResponseStoredMethod `json:"StoredMethods,omitempty" url:"StoredMethods,omitempty"` Summary *VendorSummary `json:"Summary,omitempty" url:"Summary,omitempty"` - VendorId *Vendorid `json:"VendorId,omitempty" url:"VendorId,omitempty"` + VendorID *Vendorid `json:"VendorId,omitempty" url:"VendorId,omitempty"` VendorNumber *VendorNumber `json:"VendorNumber,omitempty" url:"VendorNumber,omitempty"` VendorStatus *Vendorstatus `json:"VendorStatus,omitempty" url:"VendorStatus,omitempty"` Zip *Zip `json:"Zip,omitempty" url:"Zip,omitempty"` // URL for the vendor's online payment portal, if known. Populated by the vendor enrichment pipeline. - PaymentPortalUrl *string `json:"PaymentPortalUrl,omitempty" url:"PaymentPortalUrl,omitempty"` + PaymentPortalURL *string `json:"PaymentPortalUrl,omitempty" url:"PaymentPortalUrl,omitempty"` // Whether the vendor accepts card payments. Values are `yes`, `no`, or `unable to determine`. Populated by the vendor enrichment pipeline. CardAccepted *string `json:"CardAccepted,omitempty" url:"CardAccepted,omitempty"` // Whether the vendor accepts ACH payments. Values are `yes`, `no`, or `unable to determine`. Populated by the vendor enrichment pipeline. @@ -22761,7 +22761,7 @@ type VendorQueryRecord struct { // When the vendor was last enriched (UTC). EnrichedAt *time.Time `json:"EnrichedAt,omitempty" url:"EnrichedAt,omitempty"` // Identifier for the enrichment request that last updated this vendor. - EnrichmentId *string `json:"EnrichmentId,omitempty" url:"EnrichmentId,omitempty"` + EnrichmentID *string `json:"EnrichmentId,omitempty" url:"EnrichmentId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -22868,18 +22868,18 @@ func (v *VendorQueryRecord) GetEnrollmentStatus() *EnrollmentStatus { return v.EnrollmentStatus } -func (v *VendorQueryRecord) GetExternalPaypointId() *ExternalPaypointId { +func (v *VendorQueryRecord) GetExternalPaypointID() *ExternalPaypointID { if v == nil { return nil } - return v.ExternalPaypointId + return v.ExternalPaypointID } -func (v *VendorQueryRecord) GetInternalReferenceId() *InternalReferenceId { +func (v *VendorQueryRecord) GetInternalReferenceID() *InternalReferenceID { if v == nil { return nil } - return v.InternalReferenceId + return v.InternalReferenceID } func (v *VendorQueryRecord) GetLastUpdated() *LastModified { @@ -22924,11 +22924,11 @@ func (v *VendorQueryRecord) GetParentOrgName() *OrgParentName { return v.ParentOrgName } -func (v *VendorQueryRecord) GetParentOrgId() *OrgParentId { +func (v *VendorQueryRecord) GetParentOrgID() *OrgParentID { if v == nil { return nil } - return v.ParentOrgId + return v.ParentOrgID } func (v *VendorQueryRecord) GetPayeeName1() *PayeeName { @@ -23050,11 +23050,11 @@ func (v *VendorQueryRecord) GetSummary() *VendorSummary { return v.Summary } -func (v *VendorQueryRecord) GetVendorId() *Vendorid { +func (v *VendorQueryRecord) GetVendorID() *Vendorid { if v == nil { return nil } - return v.VendorId + return v.VendorID } func (v *VendorQueryRecord) GetVendorNumber() *VendorNumber { @@ -23078,11 +23078,11 @@ func (v *VendorQueryRecord) GetZip() *Zip { return v.Zip } -func (v *VendorQueryRecord) GetPaymentPortalUrl() *string { +func (v *VendorQueryRecord) GetPaymentPortalURL() *string { if v == nil { return nil } - return v.PaymentPortalUrl + return v.PaymentPortalURL } func (v *VendorQueryRecord) GetCardAccepted() *string { @@ -23120,11 +23120,11 @@ func (v *VendorQueryRecord) GetEnrichedAt() *time.Time { return v.EnrichedAt } -func (v *VendorQueryRecord) GetEnrichmentId() *string { +func (v *VendorQueryRecord) GetEnrichmentID() *string { if v == nil { return nil } - return v.EnrichmentId + return v.EnrichmentID } func (v *VendorQueryRecord) GetExtraProperties() map[string]interface{} { @@ -23239,18 +23239,18 @@ func (v *VendorQueryRecord) SetEnrollmentStatus(enrollmentStatus *EnrollmentStat v.require(vendorQueryRecordFieldEnrollmentStatus) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetExternalPaypointId(externalPaypointId *ExternalPaypointId) { - v.ExternalPaypointId = externalPaypointId - v.require(vendorQueryRecordFieldExternalPaypointId) +func (v *VendorQueryRecord) SetExternalPaypointID(externalPaypointID *ExternalPaypointID) { + v.ExternalPaypointID = externalPaypointID + v.require(vendorQueryRecordFieldExternalPaypointID) } -// SetInternalReferenceId sets the InternalReferenceId field and marks it as non-optional; +// SetInternalReferenceID sets the InternalReferenceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetInternalReferenceId(internalReferenceId *InternalReferenceId) { - v.InternalReferenceId = internalReferenceId - v.require(vendorQueryRecordFieldInternalReferenceId) +func (v *VendorQueryRecord) SetInternalReferenceID(internalReferenceID *InternalReferenceID) { + v.InternalReferenceID = internalReferenceID + v.require(vendorQueryRecordFieldInternalReferenceID) } // SetLastUpdated sets the LastUpdated field and marks it as non-optional; @@ -23295,11 +23295,11 @@ func (v *VendorQueryRecord) SetParentOrgName(parentOrgName *OrgParentName) { v.require(vendorQueryRecordFieldParentOrgName) } -// SetParentOrgId sets the ParentOrgId field and marks it as non-optional; +// SetParentOrgID sets the ParentOrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetParentOrgId(parentOrgId *OrgParentId) { - v.ParentOrgId = parentOrgId - v.require(vendorQueryRecordFieldParentOrgId) +func (v *VendorQueryRecord) SetParentOrgID(parentOrgID *OrgParentID) { + v.ParentOrgID = parentOrgID + v.require(vendorQueryRecordFieldParentOrgID) } // SetPayeeName1 sets the PayeeName1 field and marks it as non-optional; @@ -23421,11 +23421,11 @@ func (v *VendorQueryRecord) SetSummary(summary *VendorSummary) { v.require(vendorQueryRecordFieldSummary) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetVendorId(vendorId *Vendorid) { - v.VendorId = vendorId - v.require(vendorQueryRecordFieldVendorId) +func (v *VendorQueryRecord) SetVendorID(vendorID *Vendorid) { + v.VendorID = vendorID + v.require(vendorQueryRecordFieldVendorID) } // SetVendorNumber sets the VendorNumber field and marks it as non-optional; @@ -23449,11 +23449,11 @@ func (v *VendorQueryRecord) SetZip(zip *Zip) { v.require(vendorQueryRecordFieldZip) } -// SetPaymentPortalUrl sets the PaymentPortalUrl field and marks it as non-optional; +// SetPaymentPortalURL sets the PaymentPortalURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetPaymentPortalUrl(paymentPortalUrl *string) { - v.PaymentPortalUrl = paymentPortalUrl - v.require(vendorQueryRecordFieldPaymentPortalUrl) +func (v *VendorQueryRecord) SetPaymentPortalURL(paymentPortalURL *string) { + v.PaymentPortalURL = paymentPortalURL + v.require(vendorQueryRecordFieldPaymentPortalURL) } // SetCardAccepted sets the CardAccepted field and marks it as non-optional; @@ -23491,11 +23491,11 @@ func (v *VendorQueryRecord) SetEnrichedAt(enrichedAt *time.Time) { v.require(vendorQueryRecordFieldEnrichedAt) } -// SetEnrichmentId sets the EnrichmentId field and marks it as non-optional; +// SetEnrichmentID sets the EnrichmentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorQueryRecord) SetEnrichmentId(enrichmentId *string) { - v.EnrichmentId = enrichmentId - v.require(vendorQueryRecordFieldEnrichmentId) +func (v *VendorQueryRecord) SetEnrichmentID(enrichmentID *string) { + v.EnrichmentID = enrichmentID + v.require(vendorQueryRecordFieldEnrichmentID) } func (v *VendorQueryRecord) UnmarshalJSON(data []byte) error { @@ -23558,8 +23558,8 @@ func (v *VendorQueryRecord) String() string { // Object containing vendor's bank information var ( - vendorResponseBillingDataFieldId = big.NewInt(1 << 0) - vendorResponseBillingDataFieldAccountId = big.NewInt(1 << 1) + vendorResponseBillingDataFieldID = big.NewInt(1 << 0) + vendorResponseBillingDataFieldAccountID = big.NewInt(1 << 1) vendorResponseBillingDataFieldNickname = big.NewInt(1 << 2) vendorResponseBillingDataFieldBankName = big.NewInt(1 << 3) vendorResponseBillingDataFieldRoutingAccount = big.NewInt(1 << 4) @@ -23575,8 +23575,8 @@ var ( ) type VendorResponseBillingData struct { - Id *int `json:"id,omitempty" url:"id,omitempty"` - AccountId *string `json:"accountId,omitempty" url:"accountId,omitempty"` + ID *int `json:"id,omitempty" url:"id,omitempty"` + AccountID *string `json:"accountId,omitempty" url:"accountId,omitempty"` Nickname *string `json:"nickname,omitempty" url:"nickname,omitempty"` BankName *string `json:"bankName,omitempty" url:"bankName,omitempty"` RoutingAccount *string `json:"routingAccount,omitempty" url:"routingAccount,omitempty"` @@ -23597,18 +23597,18 @@ type VendorResponseBillingData struct { rawJSON json.RawMessage } -func (v *VendorResponseBillingData) GetId() *int { +func (v *VendorResponseBillingData) GetID() *int { if v == nil { return nil } - return v.Id + return v.ID } -func (v *VendorResponseBillingData) GetAccountId() *string { +func (v *VendorResponseBillingData) GetAccountID() *string { if v == nil { return nil } - return v.AccountId + return v.AccountID } func (v *VendorResponseBillingData) GetNickname() *string { @@ -23709,18 +23709,18 @@ func (v *VendorResponseBillingData) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorResponseBillingData) SetId(id *int) { - v.Id = id - v.require(vendorResponseBillingDataFieldId) +func (v *VendorResponseBillingData) SetID(id *int) { + v.ID = id + v.require(vendorResponseBillingDataFieldID) } -// SetAccountId sets the AccountId field and marks it as non-optional; +// SetAccountID sets the AccountID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorResponseBillingData) SetAccountId(accountId *string) { - v.AccountId = accountId - v.require(vendorResponseBillingDataFieldAccountId) +func (v *VendorResponseBillingData) SetAccountID(accountID *string) { + v.AccountID = accountID + v.require(vendorResponseBillingDataFieldAccountID) } // SetNickname sets the Nickname field and marks it as non-optional; @@ -23851,7 +23851,7 @@ func (v *VendorResponseBillingData) String() string { // Stored payment method information var ( - vendorResponseStoredMethodFieldIdPmethod = big.NewInt(1 << 0) + vendorResponseStoredMethodFieldIDPmethod = big.NewInt(1 << 0) vendorResponseStoredMethodFieldMethod = big.NewInt(1 << 1) vendorResponseStoredMethodFieldDescriptor = big.NewInt(1 << 2) vendorResponseStoredMethodFieldMaskedAccount = big.NewInt(1 << 3) @@ -23870,7 +23870,7 @@ var ( ) type VendorResponseStoredMethod struct { - IdPmethod *string `json:"IdPmethod,omitempty" url:"IdPmethod,omitempty"` + IDPmethod *string `json:"IdPmethod,omitempty" url:"IdPmethod,omitempty"` Method *string `json:"Method,omitempty" url:"Method,omitempty"` Descriptor *string `json:"Descriptor,omitempty" url:"Descriptor,omitempty"` MaskedAccount *string `json:"MaskedAccount,omitempty" url:"MaskedAccount,omitempty"` @@ -23894,11 +23894,11 @@ type VendorResponseStoredMethod struct { rawJSON json.RawMessage } -func (v *VendorResponseStoredMethod) GetIdPmethod() *string { +func (v *VendorResponseStoredMethod) GetIDPmethod() *string { if v == nil { return nil } - return v.IdPmethod + return v.IDPmethod } func (v *VendorResponseStoredMethod) GetMethod() *string { @@ -24020,11 +24020,11 @@ func (v *VendorResponseStoredMethod) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetIdPmethod sets the IdPmethod field and marks it as non-optional; +// SetIDPmethod sets the IDPmethod field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorResponseStoredMethod) SetIdPmethod(idPmethod *string) { - v.IdPmethod = idPmethod - v.require(vendorResponseStoredMethodFieldIdPmethod) +func (v *VendorResponseStoredMethod) SetIDPmethod(idPmethod *string) { + v.IDPmethod = idPmethod + v.require(vendorResponseStoredMethodFieldIDPmethod) } // SetMethod sets the Method field and marks it as non-optional; diff --git a/types_test.go b/types_test.go index 46af98d..2ef725e 100644 --- a/types_test.go +++ b/types_test.go @@ -494,39 +494,39 @@ func TestSettersMarkExplicitAch(t *testing.T) { } func TestSettersAchPaymentMethod(t *testing.T) { - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &AchPaymentMethod{} - var fernTestValueStoredMethodId *string - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *string + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersAchPaymentMethod(t *testing.T) { - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &AchPaymentMethod{} var expected *string - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AchPaymentMethod{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AchPaymentMethod // Should not panic - getters should handle nil receiver gracefully @@ -535,20 +535,20 @@ func TestGettersAchPaymentMethod(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) } func TestSettersMarkExplicitAchPaymentMethod(t *testing.T) { - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AchPaymentMethod{} - var fernTestValueStoredMethodId *string + var fernTestValueStoredMethodID *string // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1538,19 +1538,19 @@ func TestSettersMarkExplicitAutoElement(t *testing.T) { } func TestSettersBank(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &Bank{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &Bank{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -1645,28 +1645,28 @@ func TestSettersBank(t *testing.T) { } func TestGettersBank(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Bank // Should not panic - getters should handle nil receiver gracefully @@ -1675,31 +1675,31 @@ func TestGettersBank(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *Bank // Should not panic - getters should handle nil receiver gracefully @@ -1708,7 +1708,7 @@ func TestGettersBank(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetNickname", func(t *testing.T) { @@ -2077,14 +2077,14 @@ func TestGettersBank(t *testing.T) { } func TestSettersMarkExplicitBank(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2108,14 +2108,14 @@ func TestSettersMarkExplicitBank(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &Bank{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5659,11 +5659,11 @@ func TestSettersMarkExplicitBillItem(t *testing.T) { } func TestSettersBillPayOutData(t *testing.T) { - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &BillPayOutData{} - var fernTestValueBillId *int64 - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *int64 + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -5758,28 +5758,28 @@ func TestSettersBillPayOutData(t *testing.T) { } func TestGettersBillPayOutData(t *testing.T) { - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutData{} var expected *int64 - obj.BillId = expected + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutData{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillPayOutData // Should not panic - getters should handle nil receiver gracefully @@ -5788,7 +5788,7 @@ func TestGettersBillPayOutData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetComments", func(t *testing.T) { @@ -6157,14 +6157,14 @@ func TestGettersBillPayOutData(t *testing.T) { } func TestSettersMarkExplicitBillPayOutData(t *testing.T) { - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillPayOutData{} - var fernTestValueBillId *int64 + var fernTestValueBillID *int64 // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -6572,11 +6572,11 @@ func TestSettersBillingData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BillingData{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -6764,28 +6764,28 @@ func TestGettersBillingData(t *testing.T) { _ = obj.GetBankName() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingData{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillingData // Should not panic - getters should handle nil receiver gracefully @@ -6794,7 +6794,7 @@ func TestGettersBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetRoutingAccount", func(t *testing.T) { @@ -7021,14 +7021,14 @@ func TestSettersMarkExplicitBillingData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingData{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7117,19 +7117,19 @@ func TestSettersMarkExplicitBillingData(t *testing.T) { } func TestSettersBillingDataResponse(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &BillingDataResponse{} - var fernTestValueId int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &BillingDataResponse{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -7232,18 +7232,18 @@ func TestSettersBillingDataResponse(t *testing.T) { } func TestGettersBillingDataResponse(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingDataResponse{} var expected int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillingDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -7252,31 +7252,31 @@ func TestGettersBillingDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingDataResponse{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingDataResponse{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *BillingDataResponse // Should not panic - getters should handle nil receiver gracefully @@ -7285,7 +7285,7 @@ func TestGettersBillingDataResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetNickname", func(t *testing.T) { @@ -7577,14 +7577,14 @@ func TestGettersBillingDataResponse(t *testing.T) { } func TestSettersMarkExplicitBillingDataResponse(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingDataResponse{} - var fernTestValueId int + var fernTestValueID int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -7608,14 +7608,14 @@ func TestSettersMarkExplicitBillingDataResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &BillingDataResponse{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -12396,11 +12396,11 @@ func TestSettersMarkExplicitCustomerData(t *testing.T) { } func TestSettersCustomerQueryRecords(t *testing.T) { - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &CustomerQueryRecords{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -12700,11 +12700,11 @@ func TestSettersCustomerQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &CustomerQueryRecords{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -12724,11 +12724,11 @@ func TestSettersCustomerQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &CustomerQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -12743,28 +12743,28 @@ func TestSettersCustomerQueryRecords(t *testing.T) { } func TestGettersCustomerQueryRecords(t *testing.T) { - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CustomerQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -12773,7 +12773,7 @@ func TestGettersCustomerQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerNumber", func(t *testing.T) { @@ -13997,28 +13997,28 @@ func TestGettersCustomerQueryRecords(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CustomerQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -14027,7 +14027,7 @@ func TestGettersCustomerQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPaypointEntryname", func(t *testing.T) { @@ -14096,28 +14096,28 @@ func TestGettersCustomerQueryRecords(t *testing.T) { _ = obj.GetPageidentifier() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *CustomerQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -14126,7 +14126,7 @@ func TestGettersCustomerQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetCustomerConsent", func(t *testing.T) { @@ -14165,14 +14165,14 @@ func TestGettersCustomerQueryRecords(t *testing.T) { } func TestSettersMarkExplicitCustomerQueryRecords(t *testing.T) { - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15343,14 +15343,14 @@ func TestSettersMarkExplicitCustomerQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -15436,14 +15436,14 @@ func TestSettersMarkExplicitCustomerQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &CustomerQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -20525,11 +20525,11 @@ func TestSettersMethodQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdPmethod", func(t *testing.T) { + t.Run("SetIDPmethod", func(t *testing.T) { obj := &MethodQueryRecords{} - var fernTestValueIdPmethod *string - obj.SetIdPmethod(fernTestValueIdPmethod) - assert.Equal(t, fernTestValueIdPmethod, obj.IdPmethod) + var fernTestValueIDPmethod *string + obj.SetIDPmethod(fernTestValueIDPmethod) + assert.Equal(t, fernTestValueIDPmethod, obj.IDPmethod) assert.NotNil(t, obj.explicitFields) }) @@ -20725,28 +20725,28 @@ func TestGettersMethodQueryRecords(t *testing.T) { _ = obj.GetHolderName() // Should return zero value }) - t.Run("GetIdPmethod", func(t *testing.T) { + t.Run("GetIDPmethod", func(t *testing.T) { t.Parallel() // Arrange obj := &MethodQueryRecords{} var expected *string - obj.IdPmethod = expected + obj.IDPmethod = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdPmethod(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDPmethod(), "getter should return the property value") }) - t.Run("GetIdPmethod_NilValue", func(t *testing.T) { + t.Run("GetIDPmethod_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &MethodQueryRecords{} - obj.IdPmethod = nil + obj.IDPmethod = nil // Act & Assert - assert.Nil(t, obj.GetIdPmethod(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDPmethod(), "getter should return nil when property is nil") }) - t.Run("GetIdPmethod_NilReceiver", func(t *testing.T) { + t.Run("GetIDPmethod_NilReceiver", func(t *testing.T) { t.Parallel() var obj *MethodQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -20755,7 +20755,7 @@ func TestGettersMethodQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdPmethod() // Should return zero value + _ = obj.GetIDPmethod() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -21015,14 +21015,14 @@ func TestSettersMarkExplicitMethodQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdPmethod_MarksExplicit", func(t *testing.T) { + t.Run("SetIDPmethod_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &MethodQueryRecords{} - var fernTestValueIdPmethod *string + var fernTestValueIDPmethod *string // Act - obj.SetIdPmethod(fernTestValueIdPmethod) + obj.SetIDPmethod(fernTestValueIDPmethod) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22064,11 +22064,11 @@ func TestSettersNotificationContent(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetTransactionId", func(t *testing.T) { + t.Run("SetTransactionID", func(t *testing.T) { obj := &NotificationContent{} - var fernTestValueTransactionId *string - obj.SetTransactionId(fernTestValueTransactionId) - assert.Equal(t, fernTestValueTransactionId, obj.TransactionId) + var fernTestValueTransactionID *string + obj.SetTransactionID(fernTestValueTransactionID) + assert.Equal(t, fernTestValueTransactionID, obj.TransactionID) assert.NotNil(t, obj.explicitFields) }) @@ -22248,28 +22248,28 @@ func TestGettersNotificationContent(t *testing.T) { _ = obj.GetTimeZone() // Should return zero value }) - t.Run("GetTransactionId", func(t *testing.T) { + t.Run("GetTransactionID", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationContent{} var expected *string - obj.TransactionId = expected + obj.TransactionID = expected // Act & Assert - assert.Equal(t, expected, obj.GetTransactionId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetTransactionID(), "getter should return the property value") }) - t.Run("GetTransactionId_NilValue", func(t *testing.T) { + t.Run("GetTransactionID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationContent{} - obj.TransactionId = nil + obj.TransactionID = nil // Act & Assert - assert.Nil(t, obj.GetTransactionId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetTransactionID(), "getter should return nil when property is nil") }) - t.Run("GetTransactionId_NilReceiver", func(t *testing.T) { + t.Run("GetTransactionID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *NotificationContent // Should not panic - getters should handle nil receiver gracefully @@ -22278,7 +22278,7 @@ func TestGettersNotificationContent(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetTransactionId() // Should return zero value + _ = obj.GetTransactionID() // Should return zero value }) t.Run("GetWebHeaderParameters", func(t *testing.T) { @@ -22472,14 +22472,14 @@ func TestSettersMarkExplicitNotificationContent(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetTransactionId_MarksExplicit", func(t *testing.T) { + t.Run("SetTransactionID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &NotificationContent{} - var fernTestValueTransactionId *string + var fernTestValueTransactionID *string // Act - obj.SetTransactionId(fernTestValueTransactionId) + obj.SetTransactionID(fernTestValueTransactionID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22577,11 +22577,11 @@ func TestSettersOdpSetup(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIssuerNetworkSettingsId", func(t *testing.T) { + t.Run("SetIssuerNetworkSettingsID", func(t *testing.T) { obj := &OdpSetup{} - var fernTestValueIssuerNetworkSettingsId *string - obj.SetIssuerNetworkSettingsId(fernTestValueIssuerNetworkSettingsId) - assert.Equal(t, fernTestValueIssuerNetworkSettingsId, obj.IssuerNetworkSettingsId) + var fernTestValueIssuerNetworkSettingsID *string + obj.SetIssuerNetworkSettingsID(fernTestValueIssuerNetworkSettingsID) + assert.Equal(t, fernTestValueIssuerNetworkSettingsID, obj.IssuerNetworkSettingsID) assert.NotNil(t, obj.explicitFields) }) @@ -22753,28 +22753,28 @@ func TestGettersOdpSetup(t *testing.T) { _ = obj.GetProcessor() // Should return zero value }) - t.Run("GetIssuerNetworkSettingsId", func(t *testing.T) { + t.Run("GetIssuerNetworkSettingsID", func(t *testing.T) { t.Parallel() // Arrange obj := &OdpSetup{} var expected *string - obj.IssuerNetworkSettingsId = expected + obj.IssuerNetworkSettingsID = expected // Act & Assert - assert.Equal(t, expected, obj.GetIssuerNetworkSettingsId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIssuerNetworkSettingsID(), "getter should return the property value") }) - t.Run("GetIssuerNetworkSettingsId_NilValue", func(t *testing.T) { + t.Run("GetIssuerNetworkSettingsID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OdpSetup{} - obj.IssuerNetworkSettingsId = nil + obj.IssuerNetworkSettingsID = nil // Act & Assert - assert.Nil(t, obj.GetIssuerNetworkSettingsId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIssuerNetworkSettingsID(), "getter should return nil when property is nil") }) - t.Run("GetIssuerNetworkSettingsId_NilReceiver", func(t *testing.T) { + t.Run("GetIssuerNetworkSettingsID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OdpSetup // Should not panic - getters should handle nil receiver gracefully @@ -22783,7 +22783,7 @@ func TestGettersOdpSetup(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIssuerNetworkSettingsId() // Should return zero value + _ = obj.GetIssuerNetworkSettingsID() // Should return zero value }) } @@ -22944,14 +22944,14 @@ func TestSettersMarkExplicitOdpSetup(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIssuerNetworkSettingsId_MarksExplicit", func(t *testing.T) { + t.Run("SetIssuerNetworkSettingsID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OdpSetup{} - var fernTestValueIssuerNetworkSettingsId *string + var fernTestValueIssuerNetworkSettingsID *string // Act - obj.SetIssuerNetworkSettingsId(fernTestValueIssuerNetworkSettingsId) + obj.SetIssuerNetworkSettingsID(fernTestValueIssuerNetworkSettingsID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -22978,11 +22978,11 @@ func TestSettersMarkExplicitOdpSetup(t *testing.T) { } func TestSettersOrgData(t *testing.T) { - t.Run("SetIdOrg", func(t *testing.T) { + t.Run("SetIDOrg", func(t *testing.T) { obj := &OrgData{} - var fernTestValueIdOrg *Orgid - obj.SetIdOrg(fernTestValueIdOrg) - assert.Equal(t, fernTestValueIdOrg, obj.IdOrg) + var fernTestValueIDOrg *Orgid + obj.SetIDOrg(fernTestValueIDOrg) + assert.Equal(t, fernTestValueIDOrg, obj.IDOrg) assert.NotNil(t, obj.explicitFields) }) @@ -23029,28 +23029,28 @@ func TestSettersOrgData(t *testing.T) { } func TestGettersOrgData(t *testing.T) { - t.Run("GetIdOrg", func(t *testing.T) { + t.Run("GetIDOrg", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgData{} var expected *Orgid - obj.IdOrg = expected + obj.IDOrg = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOrg(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOrg(), "getter should return the property value") }) - t.Run("GetIdOrg_NilValue", func(t *testing.T) { + t.Run("GetIDOrg_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgData{} - obj.IdOrg = nil + obj.IDOrg = nil // Act & Assert - assert.Nil(t, obj.GetIdOrg(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOrg(), "getter should return nil when property is nil") }) - t.Run("GetIdOrg_NilReceiver", func(t *testing.T) { + t.Run("GetIDOrg_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrgData // Should not panic - getters should handle nil receiver gracefully @@ -23059,7 +23059,7 @@ func TestGettersOrgData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOrg() // Should return zero value + _ = obj.GetIDOrg() // Should return zero value }) t.Run("GetOrgAddress", func(t *testing.T) { @@ -23230,14 +23230,14 @@ func TestGettersOrgData(t *testing.T) { } func TestSettersMarkExplicitOrgData(t *testing.T) { - t.Run("SetIdOrg_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOrg_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgData{} - var fernTestValueIdOrg *Orgid + var fernTestValueIDOrg *Orgid // Act - obj.SetIdOrg(fernTestValueIdOrg) + obj.SetIDOrg(fernTestValueIDOrg) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23427,11 +23427,11 @@ func TestSettersOrgXScope(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &OrgXScope{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -23479,28 +23479,28 @@ func TestGettersOrgXScope(t *testing.T) { _ = obj.GetOrgEntry() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgXScope{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgXScope{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrgXScope // Should not panic - getters should handle nil receiver gracefully @@ -23509,7 +23509,7 @@ func TestGettersOrgXScope(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgType", func(t *testing.T) { @@ -23579,14 +23579,14 @@ func TestSettersMarkExplicitOrgXScope(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgXScope{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -23692,11 +23692,11 @@ func TestSettersOrganizationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdOrg", func(t *testing.T) { + t.Run("SetIDOrg", func(t *testing.T) { obj := &OrganizationQueryRecord{} - var fernTestValueIdOrg *Orgid - obj.SetIdOrg(fernTestValueIdOrg) - assert.Equal(t, fernTestValueIdOrg, obj.IdOrg) + var fernTestValueIDOrg *Orgid + obj.SetIDOrg(fernTestValueIDOrg) + assert.Equal(t, fernTestValueIDOrg, obj.IDOrg) assert.NotNil(t, obj.explicitFields) }) @@ -23740,11 +23740,11 @@ func TestSettersOrganizationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &OrganizationQueryRecord{} - var fernTestValueOrgId *Orgidstring - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgidstring + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -23764,11 +23764,11 @@ func TestSettersOrganizationQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgParentId", func(t *testing.T) { + t.Run("SetOrgParentID", func(t *testing.T) { obj := &OrganizationQueryRecord{} - var fernTestValueOrgParentId *OrgParentId - obj.SetOrgParentId(fernTestValueOrgParentId) - assert.Equal(t, fernTestValueOrgParentId, obj.OrgParentId) + var fernTestValueOrgParentID *OrgParentID + obj.SetOrgParentID(fernTestValueOrgParentID) + assert.Equal(t, fernTestValueOrgParentID, obj.OrgParentID) assert.NotNil(t, obj.explicitFields) }) @@ -24061,28 +24061,28 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { _ = obj.GetHasResidual() // Should return zero value }) - t.Run("GetIdOrg", func(t *testing.T) { + t.Run("GetIDOrg", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} var expected *Orgid - obj.IdOrg = expected + obj.IDOrg = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdOrg(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDOrg(), "getter should return the property value") }) - t.Run("GetIdOrg_NilValue", func(t *testing.T) { + t.Run("GetIDOrg_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - obj.IdOrg = nil + obj.IDOrg = nil // Act & Assert - assert.Nil(t, obj.GetIdOrg(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDOrg(), "getter should return nil when property is nil") }) - t.Run("GetIdOrg_NilReceiver", func(t *testing.T) { + t.Run("GetIDOrg_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrganizationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -24091,7 +24091,7 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdOrg() // Should return zero value + _ = obj.GetIDOrg() // Should return zero value }) t.Run("GetIsRoot", func(t *testing.T) { @@ -24259,28 +24259,28 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { _ = obj.GetOrgEntryName() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} var expected *Orgidstring - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrganizationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -24289,7 +24289,7 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgLogo", func(t *testing.T) { @@ -24358,28 +24358,28 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { _ = obj.GetOrgName() // Should return zero value }) - t.Run("GetOrgParentId", func(t *testing.T) { + t.Run("GetOrgParentID", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - var expected *OrgParentId - obj.OrgParentId = expected + var expected *OrgParentID + obj.OrgParentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgParentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgParentID(), "getter should return the property value") }) - t.Run("GetOrgParentId_NilValue", func(t *testing.T) { + t.Run("GetOrgParentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - obj.OrgParentId = nil + obj.OrgParentID = nil // Act & Assert - assert.Nil(t, obj.GetOrgParentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgParentID(), "getter should return nil when property is nil") }) - t.Run("GetOrgParentId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgParentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrganizationQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -24388,7 +24388,7 @@ func TestGettersOrganizationQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgParentId() // Should return zero value + _ = obj.GetOrgParentID() // Should return zero value }) t.Run("GetOrgParentName", func(t *testing.T) { @@ -24943,14 +24943,14 @@ func TestSettersMarkExplicitOrganizationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdOrg_MarksExplicit", func(t *testing.T) { + t.Run("SetIDOrg_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - var fernTestValueIdOrg *Orgid + var fernTestValueIDOrg *Orgid // Act - obj.SetIdOrg(fernTestValueIdOrg) + obj.SetIDOrg(fernTestValueIDOrg) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25129,14 +25129,14 @@ func TestSettersMarkExplicitOrganizationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - var fernTestValueOrgId *Orgidstring + var fernTestValueOrgID *Orgidstring // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -25222,14 +25222,14 @@ func TestSettersMarkExplicitOrganizationQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgParentId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgParentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrganizationQueryRecord{} - var fernTestValueOrgParentId *OrgParentId + var fernTestValueOrgParentID *OrgParentID // Act - obj.SetOrgParentId(fernTestValueOrgParentId) + obj.SetOrgParentID(fernTestValueOrgParentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -28777,11 +28777,11 @@ func TestSettersPageSetting(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRedirectAfterApproveUrl", func(t *testing.T) { + t.Run("SetRedirectAfterApproveURL", func(t *testing.T) { obj := &PageSetting{} - var fernTestValueRedirectAfterApproveUrl *string - obj.SetRedirectAfterApproveUrl(fernTestValueRedirectAfterApproveUrl) - assert.Equal(t, fernTestValueRedirectAfterApproveUrl, obj.RedirectAfterApproveUrl) + var fernTestValueRedirectAfterApproveURL *string + obj.SetRedirectAfterApproveURL(fernTestValueRedirectAfterApproveURL) + assert.Equal(t, fernTestValueRedirectAfterApproveURL, obj.RedirectAfterApproveURL) assert.NotNil(t, obj.explicitFields) }) @@ -28986,28 +28986,28 @@ func TestGettersPageSetting(t *testing.T) { _ = obj.GetRedirectAfterApprove() // Should return zero value }) - t.Run("GetRedirectAfterApproveUrl", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL", func(t *testing.T) { t.Parallel() // Arrange obj := &PageSetting{} var expected *string - obj.RedirectAfterApproveUrl = expected + obj.RedirectAfterApproveURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetRedirectAfterApproveUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRedirectAfterApproveURL(), "getter should return the property value") }) - t.Run("GetRedirectAfterApproveUrl_NilValue", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PageSetting{} - obj.RedirectAfterApproveUrl = nil + obj.RedirectAfterApproveURL = nil // Act & Assert - assert.Nil(t, obj.GetRedirectAfterApproveUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRedirectAfterApproveURL(), "getter should return nil when property is nil") }) - t.Run("GetRedirectAfterApproveUrl_NilReceiver", func(t *testing.T) { + t.Run("GetRedirectAfterApproveURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PageSetting // Should not panic - getters should handle nil receiver gracefully @@ -29016,7 +29016,7 @@ func TestGettersPageSetting(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRedirectAfterApproveUrl() // Should return zero value + _ = obj.GetRedirectAfterApproveURL() // Should return zero value }) } @@ -29208,14 +29208,14 @@ func TestSettersMarkExplicitPageSetting(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRedirectAfterApproveUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetRedirectAfterApproveURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PageSetting{} - var fernTestValueRedirectAfterApproveUrl *string + var fernTestValueRedirectAfterApproveURL *string // Act - obj.SetRedirectAfterApproveUrl(fernTestValueRedirectAfterApproveUrl) + obj.SetRedirectAfterApproveURL(fernTestValueRedirectAfterApproveURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -31099,9 +31099,9 @@ func TestSettersMarkExplicitPayMethodCredit(t *testing.T) { } -func TestSettersPayabliApiResponse(t *testing.T) { +func TestSettersPayabliAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -31109,7 +31109,7 @@ func TestSettersPayabliApiResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueResponseData *Responsedata obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -31117,7 +31117,7 @@ func TestSettersPayabliApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -31126,11 +31126,11 @@ func TestSettersPayabliApiResponse(t *testing.T) { } -func TestGettersPayabliApiResponse(t *testing.T) { +func TestGettersPayabliAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var expected *IsSuccess obj.IsSuccess = expected @@ -31141,7 +31141,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} obj.IsSuccess = nil // Act & Assert @@ -31150,7 +31150,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse + var obj *PayabliAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31163,7 +31163,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var expected *Responsedata obj.ResponseData = expected @@ -31174,7 +31174,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -31183,7 +31183,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse + var obj *PayabliAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31196,7 +31196,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -31206,7 +31206,7 @@ func TestGettersPayabliApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse + var obj *PayabliAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31218,11 +31218,11 @@ func TestGettersPayabliApiResponse(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueIsSuccess *IsSuccess // Act @@ -31253,7 +31253,7 @@ func TestSettersMarkExplicitPayabliApiResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueResponseData *Responsedata // Act @@ -31284,7 +31284,7 @@ func TestSettersMarkExplicitPayabliApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -31314,9 +31314,9 @@ func TestSettersMarkExplicitPayabliApiResponse(t *testing.T) { } -func TestSettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestSettersPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -31324,23 +31324,23 @@ func TestSettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} - var fernTestValueRoomId *int64 - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + t.Run("SetRoomID", func(t *testing.T) { + obj := &PayabliAPIResponse00Responsedatanonobject{} + var fernTestValueRoomID *int64 + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -31348,7 +31348,7 @@ func TestSettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -31356,7 +31356,7 @@ func TestSettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseData *Responsedatanonobject obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -31365,11 +31365,11 @@ func TestSettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { } -func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestGettersPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected *Responsecode obj.ResponseCode = expected @@ -31380,7 +31380,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} obj.ResponseCode = nil // Act & Assert @@ -31389,7 +31389,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31402,7 +31402,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -31413,7 +31413,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} obj.PageIdentifier = nil // Act & Assert @@ -31422,7 +31422,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31432,43 +31432,43 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected *int64 - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} - obj.RoomId = nil + obj := &PayabliAPIResponse00Responsedatanonobject{} + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected *IsSuccess obj.IsSuccess = expected @@ -31479,7 +31479,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} obj.IsSuccess = nil // Act & Assert @@ -31488,7 +31488,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31501,7 +31501,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected ResponseText obj.ResponseText = expected @@ -31511,7 +31511,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31524,7 +31524,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var expected *Responsedatanonobject obj.ResponseData = expected @@ -31535,7 +31535,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} obj.ResponseData = nil // Act & Assert @@ -31544,7 +31544,7 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31556,11 +31556,11 @@ func TestGettersPayabliApiResponse00Responsedatanonobject(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseCode *Responsecode // Act @@ -31591,7 +31591,7 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -31619,14 +31619,14 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} - var fernTestValueRoomId *int64 + obj := &PayabliAPIResponse00Responsedatanonobject{} + var fernTestValueRoomID *int64 // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -31653,7 +31653,7 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueIsSuccess *IsSuccess // Act @@ -31684,7 +31684,7 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseText ResponseText // Act @@ -31715,7 +31715,7 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} var fernTestValueResponseData *Responsedatanonobject // Act @@ -31745,9 +31745,9 @@ func TestSettersMarkExplicitPayabliApiResponse00Responsedatanonobject(t *testing } -func TestSettersPayabliApiResponse0ResponseData(t *testing.T) { +func TestSettersPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("SetAuthCode", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueAuthCode *Authcode obj.SetAuthCode(fernTestValueAuthCode) assert.Equal(t, fernTestValueAuthCode, obj.AuthCode) @@ -31755,47 +31755,47 @@ func TestSettersPayabliApiResponse0ResponseData(t *testing.T) { }) t.Run("SetAvsResponseText", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueAvsResponseText *AvsResponseText obj.SetAvsResponseText(fernTestValueAvsResponseText) assert.Equal(t, fernTestValueAvsResponseText, obj.AvsResponseText) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueCustomerId *Customeridtrans - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + t.Run("SetCustomerID", func(t *testing.T) { + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueCustomerID *Customeridtrans + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetCvvResponseText", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueCvvResponseText *CvvResponseText obj.SetCvvResponseText(fernTestValueCvvResponseText) assert.Equal(t, fernTestValueCvvResponseText, obj.CvvResponseText) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetMethodReferenceId", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) - assert.Equal(t, fernTestValueMethodReferenceId, obj.MethodReferenceId) + t.Run("SetMethodReferenceID", func(t *testing.T) { + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueMethodReferenceID *MethodReferenceID + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) + assert.Equal(t, fernTestValueMethodReferenceID, obj.MethodReferenceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueReferenceId *Referenceidtrans - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + t.Run("SetReferenceID", func(t *testing.T) { + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueReferenceID *Referenceidtrans + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResultCode", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueResultCode *ResultCode obj.SetResultCode(fernTestValueResultCode) assert.Equal(t, fernTestValueResultCode, obj.ResultCode) @@ -31803,7 +31803,7 @@ func TestSettersPayabliApiResponse0ResponseData(t *testing.T) { }) t.Run("SetResultText", func(t *testing.T) { - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueResultText *Resulttext obj.SetResultText(fernTestValueResultText) assert.Equal(t, fernTestValueResultText, obj.ResultText) @@ -31812,11 +31812,11 @@ func TestSettersPayabliApiResponse0ResponseData(t *testing.T) { } -func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { +func TestGettersPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("GetAuthCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *Authcode obj.AuthCode = expected @@ -31827,7 +31827,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetAuthCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} obj.AuthCode = nil // Act & Assert @@ -31836,7 +31836,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetAuthCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31849,7 +31849,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetAvsResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *AvsResponseText obj.AvsResponseText = expected @@ -31860,7 +31860,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetAvsResponseText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} obj.AvsResponseText = nil // Act & Assert @@ -31869,7 +31869,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetAvsResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31879,43 +31879,43 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { _ = obj.GetAvsResponseText() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *Customeridtrans - obj.CustomerId = expected + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - obj.CustomerId = nil + obj := &PayabliAPIResponse0ResponseData{} + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCvvResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *CvvResponseText obj.CvvResponseText = expected @@ -31926,7 +31926,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetCvvResponseText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} obj.CvvResponseText = nil // Act & Assert @@ -31935,7 +31935,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetCvvResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -31945,76 +31945,76 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { _ = obj.GetCvvResponseText() // Should return zero value }) - t.Run("GetMethodReferenceId", func(t *testing.T) { + t.Run("GetMethodReferenceID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - var expected *MethodReferenceId - obj.MethodReferenceId = expected + obj := &PayabliAPIResponse0ResponseData{} + var expected *MethodReferenceID + obj.MethodReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetMethodReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetMethodReferenceID(), "getter should return the property value") }) - t.Run("GetMethodReferenceId_NilValue", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - obj.MethodReferenceId = nil + obj := &PayabliAPIResponse0ResponseData{} + obj.MethodReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetMethodReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetMethodReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetMethodReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetMethodReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetMethodReferenceId() // Should return zero value + _ = obj.GetMethodReferenceID() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *Referenceidtrans - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - obj.ReferenceId = nil + obj := &PayabliAPIResponse0ResponseData{} + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetResultCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *ResultCode obj.ResultCode = expected @@ -32025,7 +32025,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetResultCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} obj.ResultCode = nil // Act & Assert @@ -32034,7 +32034,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetResultCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32047,7 +32047,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetResultText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var expected *Resulttext obj.ResultText = expected @@ -32058,7 +32058,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetResultText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} obj.ResultText = nil // Act & Assert @@ -32067,7 +32067,7 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetResultText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32079,11 +32079,11 @@ func TestGettersPayabliApiResponse0ResponseData(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("SetAuthCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueAuthCode *Authcode // Act @@ -32114,7 +32114,7 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { t.Run("SetAvsResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueAvsResponseText *AvsResponseText // Act @@ -32142,14 +32142,14 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueCustomerId *Customeridtrans + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueCustomerID *Customeridtrans // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -32176,7 +32176,7 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { t.Run("SetCvvResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueCvvResponseText *CvvResponseText // Act @@ -32204,14 +32204,14 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetMethodReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetMethodReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueMethodReferenceId *MethodReferenceId + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueMethodReferenceID *MethodReferenceID // Act - obj.SetMethodReferenceId(fernTestValueMethodReferenceId) + obj.SetMethodReferenceID(fernTestValueMethodReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -32235,14 +32235,14 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} - var fernTestValueReferenceId *Referenceidtrans + obj := &PayabliAPIResponse0ResponseData{} + var fernTestValueReferenceID *Referenceidtrans // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -32269,7 +32269,7 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { t.Run("SetResultCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueResultCode *ResultCode // Act @@ -32300,7 +32300,7 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { t.Run("SetResultText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} var fernTestValueResultText *Resulttext // Act @@ -32330,9 +32330,9 @@ func TestSettersMarkExplicitPayabliApiResponse0ResponseData(t *testing.T) { } -func TestSettersPayabliApiResponseError400(t *testing.T) { +func TestSettersPayabliAPIResponseError400(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueIsSuccess *bool obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -32340,7 +32340,7 @@ func TestSettersPayabliApiResponseError400(t *testing.T) { }) t.Run("SetPageidentifier", func(t *testing.T) { - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValuePageidentifier *PageIdentifier obj.SetPageidentifier(fernTestValuePageidentifier) assert.Equal(t, fernTestValuePageidentifier, obj.Pageidentifier) @@ -32348,7 +32348,7 @@ func TestSettersPayabliApiResponseError400(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueResponseCode *int obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -32356,15 +32356,15 @@ func TestSettersPayabliApiResponseError400(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseError400{} - var fernTestValueResponseData *PayabliApiResponseError400ResponseData + obj := &PayabliAPIResponseError400{} + var fernTestValueResponseData *PayabliAPIResponseError400ResponseData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) assert.NotNil(t, obj.explicitFields) }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueResponseText *string obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -32373,11 +32373,11 @@ func TestSettersPayabliApiResponseError400(t *testing.T) { } -func TestGettersPayabliApiResponseError400(t *testing.T) { +func TestGettersPayabliAPIResponseError400(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var expected *bool obj.IsSuccess = expected @@ -32388,7 +32388,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} obj.IsSuccess = nil // Act & Assert @@ -32397,7 +32397,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32410,7 +32410,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetPageidentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var expected *PageIdentifier obj.Pageidentifier = expected @@ -32421,7 +32421,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetPageidentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} obj.Pageidentifier = nil // Act & Assert @@ -32430,7 +32430,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetPageidentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32443,7 +32443,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var expected *int obj.ResponseCode = expected @@ -32454,7 +32454,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} obj.ResponseCode = nil // Act & Assert @@ -32463,7 +32463,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32476,8 +32476,8 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} - var expected *PayabliApiResponseError400ResponseData + obj := &PayabliAPIResponseError400{} + var expected *PayabliAPIResponseError400ResponseData obj.ResponseData = expected // Act & Assert @@ -32487,7 +32487,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} obj.ResponseData = nil // Act & Assert @@ -32496,7 +32496,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32509,7 +32509,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var expected *string obj.ResponseText = expected @@ -32520,7 +32520,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseText_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} obj.ResponseText = nil // Act & Assert @@ -32529,7 +32529,7 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32541,11 +32541,11 @@ func TestGettersPayabliApiResponseError400(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseError400(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueIsSuccess *bool // Act @@ -32576,7 +32576,7 @@ func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { t.Run("SetPageidentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValuePageidentifier *PageIdentifier // Act @@ -32607,7 +32607,7 @@ func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueResponseCode *int // Act @@ -32638,8 +32638,8 @@ func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} - var fernTestValueResponseData *PayabliApiResponseError400ResponseData + obj := &PayabliAPIResponseError400{} + var fernTestValueResponseData *PayabliAPIResponseError400ResponseData // Act obj.SetResponseData(fernTestValueResponseData) @@ -32669,7 +32669,7 @@ func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} var fernTestValueResponseText *string // Act @@ -32699,9 +32699,9 @@ func TestSettersMarkExplicitPayabliApiResponseError400(t *testing.T) { } -func TestSettersPayabliApiResponseError400ResponseData(t *testing.T) { +func TestSettersPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("SetExplanation", func(t *testing.T) { - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var fernTestValueExplanation *string obj.SetExplanation(fernTestValueExplanation) assert.Equal(t, fernTestValueExplanation, obj.Explanation) @@ -32709,7 +32709,7 @@ func TestSettersPayabliApiResponseError400ResponseData(t *testing.T) { }) t.Run("SetTodoAction", func(t *testing.T) { - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var fernTestValueTodoAction *string obj.SetTodoAction(fernTestValueTodoAction) assert.Equal(t, fernTestValueTodoAction, obj.TodoAction) @@ -32718,11 +32718,11 @@ func TestSettersPayabliApiResponseError400ResponseData(t *testing.T) { } -func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { +func TestGettersPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("GetExplanation", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var expected *string obj.Explanation = expected @@ -32733,7 +32733,7 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetExplanation_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} obj.Explanation = nil // Act & Assert @@ -32742,7 +32742,7 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetExplanation_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400ResponseData + var obj *PayabliAPIResponseError400ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32755,7 +32755,7 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetTodoAction", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var expected *string obj.TodoAction = expected @@ -32766,7 +32766,7 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetTodoAction_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} obj.TodoAction = nil // Act & Assert @@ -32775,7 +32775,7 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetTodoAction_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400ResponseData + var obj *PayabliAPIResponseError400ResponseData // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32787,11 +32787,11 @@ func TestGettersPayabliApiResponseError400ResponseData(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseError400ResponseData(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("SetExplanation_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var fernTestValueExplanation *string // Act @@ -32822,7 +32822,7 @@ func TestSettersMarkExplicitPayabliApiResponseError400ResponseData(t *testing.T) t.Run("SetTodoAction_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} var fernTestValueTodoAction *string // Act @@ -32852,9 +32852,9 @@ func TestSettersMarkExplicitPayabliApiResponseError400ResponseData(t *testing.T) } -func TestSettersPayabliApiResponseGeneric2Part(t *testing.T) { +func TestSettersPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -32862,7 +32862,7 @@ func TestSettersPayabliApiResponseGeneric2Part(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -32871,11 +32871,11 @@ func TestSettersPayabliApiResponseGeneric2Part(t *testing.T) { } -func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { +func TestGettersPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var expected *IsSuccess obj.IsSuccess = expected @@ -32886,7 +32886,7 @@ func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} obj.IsSuccess = nil // Act & Assert @@ -32895,7 +32895,7 @@ func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGeneric2Part + var obj *PayabliAPIResponseGeneric2Part // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32908,7 +32908,7 @@ func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var expected ResponseText obj.ResponseText = expected @@ -32918,7 +32918,7 @@ func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGeneric2Part + var obj *PayabliAPIResponseGeneric2Part // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -32930,11 +32930,11 @@ func TestGettersPayabliApiResponseGeneric2Part(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseGeneric2Part(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var fernTestValueIsSuccess *IsSuccess // Act @@ -32965,7 +32965,7 @@ func TestSettersMarkExplicitPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} var fernTestValueResponseText ResponseText // Act @@ -32995,9 +32995,9 @@ func TestSettersMarkExplicitPayabliApiResponseGeneric2Part(t *testing.T) { } -func TestSettersPayabliApiResponsePaylinks(t *testing.T) { +func TestSettersPayabliAPIResponsePaylinks(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -33005,7 +33005,7 @@ func TestSettersPayabliApiResponsePaylinks(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -33013,7 +33013,7 @@ func TestSettersPayabliApiResponsePaylinks(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseCode Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -33021,7 +33021,7 @@ func TestSettersPayabliApiResponsePaylinks(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseData Responsedata obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -33029,7 +33029,7 @@ func TestSettersPayabliApiResponsePaylinks(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -33038,11 +33038,11 @@ func TestSettersPayabliApiResponsePaylinks(t *testing.T) { } -func TestGettersPayabliApiResponsePaylinks(t *testing.T) { +func TestGettersPayabliAPIResponsePaylinks(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var expected IsSuccess obj.IsSuccess = expected @@ -33052,7 +33052,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -33065,7 +33065,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -33076,7 +33076,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} obj.PageIdentifier = nil // Act & Assert @@ -33085,7 +33085,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -33098,7 +33098,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var expected Responsecode obj.ResponseCode = expected @@ -33108,7 +33108,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -33121,7 +33121,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var expected Responsedata obj.ResponseData = expected @@ -33131,7 +33131,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -33144,7 +33144,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var expected ResponseText obj.ResponseText = expected @@ -33154,7 +33154,7 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -33166,11 +33166,11 @@ func TestGettersPayabliApiResponsePaylinks(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponsePaylinks(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueIsSuccess IsSuccess // Act @@ -33201,7 +33201,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -33232,7 +33232,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseCode Responsecode // Act @@ -33263,7 +33263,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseData Responsedata // Act @@ -33294,7 +33294,7 @@ func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} var fernTestValueResponseText ResponseText // Act @@ -33325,11 +33325,11 @@ func TestSettersMarkExplicitPayabliApiResponsePaylinks(t *testing.T) { } func TestSettersPayabliCredentials(t *testing.T) { - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &PayabliCredentials{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -33389,11 +33389,11 @@ func TestSettersPayabliCredentials(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &PayabliCredentials{} - var fernTestValueReferenceId *int64 - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *int64 + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -33432,28 +33432,28 @@ func TestSettersPayabliCredentials(t *testing.T) { } func TestGettersPayabliCredentials(t *testing.T) { - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayabliCredentials // Should not panic - getters should handle nil receiver gracefully @@ -33462,7 +33462,7 @@ func TestGettersPayabliCredentials(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetCfeeFix", func(t *testing.T) { @@ -33696,28 +33696,28 @@ func TestGettersPayabliCredentials(t *testing.T) { _ = obj.GetMode() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} var expected *int64 - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} - obj.ReferenceId = nil + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayabliCredentials // Should not panic - getters should handle nil receiver gracefully @@ -33726,7 +33726,7 @@ func TestGettersPayabliCredentials(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetService", func(t *testing.T) { @@ -33864,14 +33864,14 @@ func TestGettersPayabliCredentials(t *testing.T) { } func TestSettersMarkExplicitPayabliCredentials(t *testing.T) { - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -34112,14 +34112,14 @@ func TestSettersMarkExplicitPayabliCredentials(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentials{} - var fernTestValueReferenceId *int64 + var fernTestValueReferenceID *int64 // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -34334,19 +34334,19 @@ func TestSettersPayabliCredentialsPascal(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &PayabliCredentialsPascal{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReferenceId", func(t *testing.T) { + t.Run("SetReferenceID", func(t *testing.T) { obj := &PayabliCredentialsPascal{} - var fernTestValueReferenceId *int64 - obj.SetReferenceId(fernTestValueReferenceId) - assert.Equal(t, fernTestValueReferenceId, obj.ReferenceId) + var fernTestValueReferenceID *int64 + obj.SetReferenceID(fernTestValueReferenceID) + assert.Equal(t, fernTestValueReferenceID, obj.ReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -34657,28 +34657,28 @@ func TestGettersPayabliCredentialsPascal(t *testing.T) { _ = obj.GetCfeeMax() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayabliCredentialsPascal // Should not panic - getters should handle nil receiver gracefully @@ -34687,31 +34687,31 @@ func TestGettersPayabliCredentialsPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) - t.Run("GetReferenceId", func(t *testing.T) { + t.Run("GetReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} var expected *int64 - obj.ReferenceId = expected + obj.ReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReferenceID(), "getter should return the property value") }) - t.Run("GetReferenceId_NilValue", func(t *testing.T) { + t.Run("GetReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} - obj.ReferenceId = nil + obj.ReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayabliCredentialsPascal // Should not panic - getters should handle nil receiver gracefully @@ -34720,7 +34720,7 @@ func TestGettersPayabliCredentialsPascal(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReferenceId() // Should return zero value + _ = obj.GetReferenceID() // Should return zero value }) t.Run("GetAcceptSameDayAch", func(t *testing.T) { @@ -35139,14 +35139,14 @@ func TestSettersMarkExplicitPayabliCredentialsPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -35170,14 +35170,14 @@ func TestSettersMarkExplicitPayabliCredentialsPascal(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayabliCredentialsPascal{} - var fernTestValueReferenceId *int64 + var fernTestValueReferenceID *int64 // Act - obj.SetReferenceId(fernTestValueReferenceId) + obj.SetReferenceID(fernTestValueReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -36485,11 +36485,11 @@ func TestSettersPaymentDetail(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCheckUniqueId", func(t *testing.T) { + t.Run("SetCheckUniqueID", func(t *testing.T) { obj := &PaymentDetail{} - var fernTestValueCheckUniqueId *string - obj.SetCheckUniqueId(fernTestValueCheckUniqueId) - assert.Equal(t, fernTestValueCheckUniqueId, obj.CheckUniqueId) + var fernTestValueCheckUniqueID *string + obj.SetCheckUniqueID(fernTestValueCheckUniqueID) + assert.Equal(t, fernTestValueCheckUniqueID, obj.CheckUniqueID) assert.NotNil(t, obj.explicitFields) }) @@ -36702,28 +36702,28 @@ func TestGettersPaymentDetail(t *testing.T) { _ = obj.GetSplitFunding() // Should return zero value }) - t.Run("GetCheckUniqueId", func(t *testing.T) { + t.Run("GetCheckUniqueID", func(t *testing.T) { t.Parallel() // Arrange obj := &PaymentDetail{} var expected *string - obj.CheckUniqueId = expected + obj.CheckUniqueID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCheckUniqueId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCheckUniqueID(), "getter should return the property value") }) - t.Run("GetCheckUniqueId_NilValue", func(t *testing.T) { + t.Run("GetCheckUniqueID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PaymentDetail{} - obj.CheckUniqueId = nil + obj.CheckUniqueID = nil // Act & Assert - assert.Nil(t, obj.GetCheckUniqueId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCheckUniqueID(), "getter should return nil when property is nil") }) - t.Run("GetCheckUniqueId_NilReceiver", func(t *testing.T) { + t.Run("GetCheckUniqueID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaymentDetail // Should not panic - getters should handle nil receiver gracefully @@ -36732,7 +36732,7 @@ func TestGettersPaymentDetail(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCheckUniqueId() // Should return zero value + _ = obj.GetCheckUniqueID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -36947,14 +36947,14 @@ func TestSettersMarkExplicitPaymentDetail(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCheckUniqueId_MarksExplicit", func(t *testing.T) { + t.Run("SetCheckUniqueID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaymentDetail{} - var fernTestValueCheckUniqueId *string + var fernTestValueCheckUniqueID *string // Act - obj.SetCheckUniqueId(fernTestValueCheckUniqueId) + obj.SetCheckUniqueID(fernTestValueCheckUniqueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -37092,11 +37092,11 @@ func TestSettersPayorDataRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &PayorDataRequest{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -37513,28 +37513,28 @@ func TestGettersPayorDataRequest(t *testing.T) { _ = obj.GetCompany() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataRequest{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataRequest{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PayorDataRequest // Should not panic - getters should handle nil receiver gracefully @@ -37543,7 +37543,7 @@ func TestGettersPayorDataRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerNumber", func(t *testing.T) { @@ -38189,14 +38189,14 @@ func TestSettersMarkExplicitPayorDataRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PayorDataRequest{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -39583,11 +39583,11 @@ func TestSettersPaypointData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBoardingId", func(t *testing.T) { + t.Run("SetBoardingID", func(t *testing.T) { obj := &PaypointData{} - var fernTestValueBoardingId *BoardingId - obj.SetBoardingId(fernTestValueBoardingId) - assert.Equal(t, fernTestValueBoardingId, obj.BoardingId) + var fernTestValueBoardingID *BoardingID + obj.SetBoardingID(fernTestValueBoardingID) + assert.Equal(t, fernTestValueBoardingID, obj.BoardingID) assert.NotNil(t, obj.explicitFields) }) @@ -39631,11 +39631,11 @@ func TestSettersPaypointData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &PaypointData{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -39647,11 +39647,11 @@ func TestSettersPaypointData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdPaypoint", func(t *testing.T) { + t.Run("SetIDPaypoint", func(t *testing.T) { obj := &PaypointData{} - var fernTestValueIdPaypoint *Idpaypoint - obj.SetIdPaypoint(fernTestValueIdPaypoint) - assert.Equal(t, fernTestValueIdPaypoint, obj.IdPaypoint) + var fernTestValueIDPaypoint *Idpaypoint + obj.SetIDPaypoint(fernTestValueIDPaypoint) + assert.Equal(t, fernTestValueIDPaypoint, obj.IDPaypoint) assert.NotNil(t, obj.explicitFields) }) @@ -39845,28 +39845,28 @@ func TestGettersPaypointData(t *testing.T) { _ = obj.GetBankData() // Should return zero value }) - t.Run("GetBoardingId", func(t *testing.T) { + t.Run("GetBoardingID", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - var expected *BoardingId - obj.BoardingId = expected + var expected *BoardingID + obj.BoardingID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBoardingId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBoardingID(), "getter should return the property value") }) - t.Run("GetBoardingId_NilValue", func(t *testing.T) { + t.Run("GetBoardingID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - obj.BoardingId = nil + obj.BoardingID = nil // Act & Assert - assert.Nil(t, obj.GetBoardingId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBoardingID(), "getter should return nil when property is nil") }) - t.Run("GetBoardingId_NilReceiver", func(t *testing.T) { + t.Run("GetBoardingID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaypointData // Should not panic - getters should handle nil receiver gracefully @@ -39875,7 +39875,7 @@ func TestGettersPaypointData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBoardingId() // Should return zero value + _ = obj.GetBoardingID() // Should return zero value }) t.Run("GetCity", func(t *testing.T) { @@ -40043,28 +40043,28 @@ func TestGettersPaypointData(t *testing.T) { _ = obj.GetDbaName() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaypointData // Should not panic - getters should handle nil receiver gracefully @@ -40073,7 +40073,7 @@ func TestGettersPaypointData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetFax", func(t *testing.T) { @@ -40109,28 +40109,28 @@ func TestGettersPaypointData(t *testing.T) { _ = obj.GetFax() // Should return zero value }) - t.Run("GetIdPaypoint", func(t *testing.T) { + t.Run("GetIDPaypoint", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} var expected *Idpaypoint - obj.IdPaypoint = expected + obj.IDPaypoint = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdPaypoint(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDPaypoint(), "getter should return the property value") }) - t.Run("GetIdPaypoint_NilValue", func(t *testing.T) { + t.Run("GetIDPaypoint_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - obj.IdPaypoint = nil + obj.IDPaypoint = nil // Act & Assert - assert.Nil(t, obj.GetIdPaypoint(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDPaypoint(), "getter should return nil when property is nil") }) - t.Run("GetIdPaypoint_NilReceiver", func(t *testing.T) { + t.Run("GetIDPaypoint_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaypointData // Should not panic - getters should handle nil receiver gracefully @@ -40139,7 +40139,7 @@ func TestGettersPaypointData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdPaypoint() // Should return zero value + _ = obj.GetIDPaypoint() // Should return zero value }) t.Run("GetLegalName", func(t *testing.T) { @@ -40601,14 +40601,14 @@ func TestSettersMarkExplicitPaypointData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBoardingId_MarksExplicit", func(t *testing.T) { + t.Run("SetBoardingID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - var fernTestValueBoardingId *BoardingId + var fernTestValueBoardingID *BoardingID // Act - obj.SetBoardingId(fernTestValueBoardingId) + obj.SetBoardingID(fernTestValueBoardingID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -40787,14 +40787,14 @@ func TestSettersMarkExplicitPaypointData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -40849,14 +40849,14 @@ func TestSettersMarkExplicitPaypointData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdPaypoint_MarksExplicit", func(t *testing.T) { + t.Run("SetIDPaypoint_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointData{} - var fernTestValueIdPaypoint *Idpaypoint + var fernTestValueIDPaypoint *Idpaypoint // Act - obj.SetIdPaypoint(fernTestValueIdPaypoint) + obj.SetIDPaypoint(fernTestValueIDPaypoint) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -41272,11 +41272,11 @@ func TestSettersPaypointEntryConfig(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdEntry", func(t *testing.T) { + t.Run("SetIDEntry", func(t *testing.T) { obj := &PaypointEntryConfig{} - var fernTestValueIdEntry *int64 - obj.SetIdEntry(fernTestValueIdEntry) - assert.Equal(t, fernTestValueIdEntry, obj.IdEntry) + var fernTestValueIDEntry *int64 + obj.SetIDEntry(fernTestValueIDEntry) + assert.Equal(t, fernTestValueIDEntry, obj.IDEntry) assert.NotNil(t, obj.explicitFields) }) @@ -41489,28 +41489,28 @@ func TestGettersPaypointEntryConfig(t *testing.T) { _ = obj.GetEntryTitle() // Should return zero value }) - t.Run("GetIdEntry", func(t *testing.T) { + t.Run("GetIDEntry", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointEntryConfig{} var expected *int64 - obj.IdEntry = expected + obj.IDEntry = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdEntry(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDEntry(), "getter should return the property value") }) - t.Run("GetIdEntry_NilValue", func(t *testing.T) { + t.Run("GetIDEntry_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointEntryConfig{} - obj.IdEntry = nil + obj.IDEntry = nil // Act & Assert - assert.Nil(t, obj.GetIdEntry(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDEntry(), "getter should return nil when property is nil") }) - t.Run("GetIdEntry_NilReceiver", func(t *testing.T) { + t.Run("GetIDEntry_NilReceiver", func(t *testing.T) { t.Parallel() var obj *PaypointEntryConfig // Should not panic - getters should handle nil receiver gracefully @@ -41519,7 +41519,7 @@ func TestGettersPaypointEntryConfig(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdEntry() // Should return zero value + _ = obj.GetIDEntry() // Should return zero value }) t.Run("GetPaypoint", func(t *testing.T) { @@ -41744,14 +41744,14 @@ func TestSettersMarkExplicitPaypointEntryConfig(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdEntry_MarksExplicit", func(t *testing.T) { + t.Run("SetIDEntry_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &PaypointEntryConfig{} - var fernTestValueIdEntry *int64 + var fernTestValueIDEntry *int64 // Act - obj.SetIdEntry(fernTestValueIdEntry) + obj.SetIDEntry(fernTestValueIDEntry) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42202,11 +42202,11 @@ func TestSettersQueryCFeeTransaction(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &QueryCFeeTransaction{} - var fernTestValueRefundId *int64 - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID *int64 + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) @@ -42344,28 +42344,28 @@ func TestGettersQueryCFeeTransaction(t *testing.T) { _ = obj.GetOperation() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryCFeeTransaction{} var expected *int64 - obj.RefundId = expected + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilValue", func(t *testing.T) { + t.Run("GetRefundID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryCFeeTransaction{} - obj.RefundId = nil + obj.RefundID = nil // Act & Assert - assert.Nil(t, obj.GetRefundId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRefundID(), "getter should return nil when property is nil") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryCFeeTransaction // Should not panic - getters should handle nil receiver gracefully @@ -42374,7 +42374,7 @@ func TestGettersQueryCFeeTransaction(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) t.Run("GetResponseData", func(t *testing.T) { @@ -42605,14 +42605,14 @@ func TestSettersMarkExplicitQueryCFeeTransaction(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryCFeeTransaction{} - var fernTestValueRefundId *int64 + var fernTestValueRefundID *int64 // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -42771,11 +42771,11 @@ func TestSettersQueryPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &QueryPaymentData{} - var fernTestValueAccountId *AccountId - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *AccountID + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -42859,11 +42859,11 @@ func TestSettersQueryPaymentData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredId", func(t *testing.T) { + t.Run("SetStoredID", func(t *testing.T) { obj := &QueryPaymentData{} - var fernTestValueStoredId *Storedmethodid - obj.SetStoredId(fernTestValueStoredId) - assert.Equal(t, fernTestValueStoredId, obj.StoredId) + var fernTestValueStoredID *Storedmethodid + obj.SetStoredID(fernTestValueStoredID) + assert.Equal(t, fernTestValueStoredID, obj.StoredID) assert.NotNil(t, obj.explicitFields) }) @@ -42911,28 +42911,28 @@ func TestGettersQueryPaymentData(t *testing.T) { _ = obj.GetAccountExp() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} - var expected *AccountId - obj.AccountId = expected + var expected *AccountID + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -42941,7 +42941,7 @@ func TestGettersQueryPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetAccountType", func(t *testing.T) { @@ -43274,28 +43274,28 @@ func TestGettersQueryPaymentData(t *testing.T) { _ = obj.GetSignatureData() // Should return zero value }) - t.Run("GetStoredId", func(t *testing.T) { + t.Run("GetStoredID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} var expected *Storedmethodid - obj.StoredId = expected + obj.StoredID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredID(), "getter should return the property value") }) - t.Run("GetStoredId_NilValue", func(t *testing.T) { + t.Run("GetStoredID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} - obj.StoredId = nil + obj.StoredID = nil // Act & Assert - assert.Nil(t, obj.GetStoredId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredID(), "getter should return nil when property is nil") }) - t.Run("GetStoredId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryPaymentData // Should not panic - getters should handle nil receiver gracefully @@ -43304,7 +43304,7 @@ func TestGettersQueryPaymentData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredId() // Should return zero value + _ = obj.GetStoredID() // Should return zero value }) t.Run("GetStoredMethodUsageType", func(t *testing.T) { @@ -43374,14 +43374,14 @@ func TestSettersMarkExplicitQueryPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} - var fernTestValueAccountId *AccountId + var fernTestValueAccountID *AccountID // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43715,14 +43715,14 @@ func TestSettersMarkExplicitQueryPaymentData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryPaymentData{} - var fernTestValueStoredId *Storedmethodid + var fernTestValueStoredID *Storedmethodid // Act - obj.SetStoredId(fernTestValueStoredId) + obj.SetStoredID(fernTestValueStoredID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -43983,7 +43983,7 @@ func TestSettersQueryResponseData(t *testing.T) { t.Run("SetOrderid", func(t *testing.T) { obj := &QueryResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID obj.SetOrderid(fernTestValueOrderid) assert.Equal(t, fernTestValueOrderid, obj.Orderid) assert.NotNil(t, obj.explicitFields) @@ -44258,7 +44258,7 @@ func TestGettersQueryResponseData(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseData{} - var expected *OrderId + var expected *OrderID obj.Orderid = expected // Act & Assert @@ -44744,7 +44744,7 @@ func TestSettersMarkExplicitQueryResponseData(t *testing.T) { t.Parallel() // Arrange obj := &QueryResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID // Act obj.SetOrderid(fernTestValueOrderid) @@ -45899,11 +45899,11 @@ func TestSettersQueryTransactionPayorData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerId", func(t *testing.T) { + t.Run("SetCustomerID", func(t *testing.T) { obj := &QueryTransactionPayorData{} - var fernTestValueCustomerId *CustomerId - obj.SetCustomerId(fernTestValueCustomerId) - assert.Equal(t, fernTestValueCustomerId, obj.CustomerId) + var fernTestValueCustomerID *CustomerID + obj.SetCustomerID(fernTestValueCustomerID) + assert.Equal(t, fernTestValueCustomerID, obj.CustomerID) assert.NotNil(t, obj.explicitFields) }) @@ -46553,28 +46553,28 @@ func TestGettersQueryTransactionPayorData(t *testing.T) { _ = obj.GetShippingCountry() // Should return zero value }) - t.Run("GetCustomerId", func(t *testing.T) { + t.Run("GetCustomerID", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorData{} - var expected *CustomerId - obj.CustomerId = expected + var expected *CustomerID + obj.CustomerID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerID(), "getter should return the property value") }) - t.Run("GetCustomerId_NilValue", func(t *testing.T) { + t.Run("GetCustomerID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorData{} - obj.CustomerId = nil + obj.CustomerID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *QueryTransactionPayorData // Should not panic - getters should handle nil receiver gracefully @@ -46583,7 +46583,7 @@ func TestGettersQueryTransactionPayorData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerId() // Should return zero value + _ = obj.GetCustomerID() // Should return zero value }) t.Run("GetCustomerStatus", func(t *testing.T) { @@ -47244,14 +47244,14 @@ func TestSettersMarkExplicitQueryTransactionPayorData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &QueryTransactionPayorData{} - var fernTestValueCustomerId *CustomerId + var fernTestValueCustomerID *CustomerID // Act - obj.SetCustomerId(fernTestValueCustomerId) + obj.SetCustomerID(fernTestValueCustomerID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49081,11 +49081,11 @@ func TestSettersMarkExplicitSettingsQueryRecord(t *testing.T) { } func TestSettersSplitFundingContent(t *testing.T) { - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &SplitFundingContent{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -49116,28 +49116,28 @@ func TestSettersSplitFundingContent(t *testing.T) { } func TestGettersSplitFundingContent(t *testing.T) { - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingContent{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingContent{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SplitFundingContent // Should not panic - getters should handle nil receiver gracefully @@ -49146,7 +49146,7 @@ func TestGettersSplitFundingContent(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetAmount", func(t *testing.T) { @@ -49251,14 +49251,14 @@ func TestGettersSplitFundingContent(t *testing.T) { } func TestSettersMarkExplicitSplitFundingContent(t *testing.T) { - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SplitFundingContent{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -49555,19 +49555,19 @@ func TestSettersSubscriptionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &SubscriptionQueryRecords{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &SubscriptionQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -49587,11 +49587,11 @@ func TestSettersSubscriptionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIdSub", func(t *testing.T) { + t.Run("SetIDSub", func(t *testing.T) { obj := &SubscriptionQueryRecords{} - var fernTestValueIdSub *int64 - obj.SetIdSub(fernTestValueIdSub) - assert.Equal(t, fernTestValueIdSub, obj.IdSub) + var fernTestValueIDSub *int64 + obj.SetIDSub(fernTestValueIDSub) + assert.Equal(t, fernTestValueIDSub, obj.IDSub) assert.NotNil(t, obj.explicitFields) }) @@ -49683,11 +49683,11 @@ func TestSettersSubscriptionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &SubscriptionQueryRecords{} - var fernTestValuePaypointId *PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -49699,11 +49699,11 @@ func TestSettersSubscriptionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPlanId", func(t *testing.T) { + t.Run("SetPlanID", func(t *testing.T) { obj := &SubscriptionQueryRecords{} - var fernTestValuePlanId *int - obj.SetPlanId(fernTestValuePlanId) - assert.Equal(t, fernTestValuePlanId, obj.PlanId) + var fernTestValuePlanID *int + obj.SetPlanID(fernTestValuePlanID) + assert.Equal(t, fernTestValuePlanID, obj.PlanID) assert.NotNil(t, obj.explicitFields) }) @@ -49865,28 +49865,28 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { _ = obj.GetEndDate() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SubscriptionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -49895,31 +49895,31 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SubscriptionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -49928,7 +49928,7 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetFeeAmount", func(t *testing.T) { @@ -49997,28 +49997,28 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { _ = obj.GetFrequency() // Should return zero value }) - t.Run("GetIdSub", func(t *testing.T) { + t.Run("GetIDSub", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} var expected *int64 - obj.IdSub = expected + obj.IDSub = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdSub(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDSub(), "getter should return the property value") }) - t.Run("GetIdSub_NilValue", func(t *testing.T) { + t.Run("GetIDSub_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - obj.IdSub = nil + obj.IDSub = nil // Act & Assert - assert.Nil(t, obj.GetIdSub(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDSub(), "getter should return nil when property is nil") }) - t.Run("GetIdSub_NilReceiver", func(t *testing.T) { + t.Run("GetIDSub_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SubscriptionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -50027,7 +50027,7 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdSub() // Should return zero value + _ = obj.GetIDSub() // Should return zero value }) t.Run("GetInvoiceData", func(t *testing.T) { @@ -50393,28 +50393,28 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var expected *PaypointId - obj.PaypointId = expected + var expected *PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SubscriptionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -50423,7 +50423,7 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointLegalname", func(t *testing.T) { @@ -50459,28 +50459,28 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { _ = obj.GetPaypointLegalname() // Should return zero value }) - t.Run("GetPlanId", func(t *testing.T) { + t.Run("GetPlanID", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} var expected *int - obj.PlanId = expected + obj.PlanID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPlanId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPlanID(), "getter should return the property value") }) - t.Run("GetPlanId_NilValue", func(t *testing.T) { + t.Run("GetPlanID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - obj.PlanId = nil + obj.PlanID = nil // Act & Assert - assert.Nil(t, obj.GetPlanId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPlanID(), "getter should return nil when property is nil") }) - t.Run("GetPlanId_NilReceiver", func(t *testing.T) { + t.Run("GetPlanID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *SubscriptionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -50489,7 +50489,7 @@ func TestGettersSubscriptionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPlanId() // Should return zero value + _ = obj.GetPlanID() // Should return zero value }) t.Run("GetSource", func(t *testing.T) { @@ -50819,14 +50819,14 @@ func TestSettersMarkExplicitSubscriptionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50850,14 +50850,14 @@ func TestSettersMarkExplicitSubscriptionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -50943,14 +50943,14 @@ func TestSettersMarkExplicitSubscriptionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIdSub_MarksExplicit", func(t *testing.T) { + t.Run("SetIDSub_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var fernTestValueIdSub *int64 + var fernTestValueIDSub *int64 // Act - obj.SetIdSub(fernTestValueIdSub) + obj.SetIDSub(fernTestValueIDSub) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51315,14 +51315,14 @@ func TestSettersMarkExplicitSubscriptionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var fernTestValuePaypointId *PaypointId + var fernTestValuePaypointID *PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -51377,14 +51377,14 @@ func TestSettersMarkExplicitSubscriptionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPlanId_MarksExplicit", func(t *testing.T) { + t.Run("SetPlanID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &SubscriptionQueryRecords{} - var fernTestValuePlanId *int + var fernTestValuePlanID *int // Act - obj.SetPlanId(fernTestValuePlanId) + obj.SetPlanID(fernTestValuePlanID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -52582,19 +52582,19 @@ func TestSettersMarkExplicitTemplateContent(t *testing.T) { } func TestSettersTemplateData(t *testing.T) { - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &TemplateData{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPricingId", func(t *testing.T) { + t.Run("SetPricingID", func(t *testing.T) { obj := &TemplateData{} - var fernTestValuePricingId *int64 - obj.SetPricingId(fernTestValuePricingId) - assert.Equal(t, fernTestValuePricingId, obj.PricingId) + var fernTestValuePricingID *int64 + obj.SetPricingID(fernTestValuePricingID) + assert.Equal(t, fernTestValuePricingID, obj.PricingID) assert.NotNil(t, obj.explicitFields) }) @@ -52633,28 +52633,28 @@ func TestSettersTemplateData(t *testing.T) { } func TestGettersTemplateData(t *testing.T) { - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TemplateData // Should not panic - getters should handle nil receiver gracefully @@ -52663,31 +52663,31 @@ func TestGettersTemplateData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetPricingId", func(t *testing.T) { + t.Run("GetPricingID", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} var expected *int64 - obj.PricingId = expected + obj.PricingID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPricingId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPricingID(), "getter should return the property value") }) - t.Run("GetPricingId_NilValue", func(t *testing.T) { + t.Run("GetPricingID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} - obj.PricingId = nil + obj.PricingID = nil // Act & Assert - assert.Nil(t, obj.GetPricingId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPricingID(), "getter should return nil when property is nil") }) - t.Run("GetPricingId_NilReceiver", func(t *testing.T) { + t.Run("GetPricingID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TemplateData // Should not panic - getters should handle nil receiver gracefully @@ -52696,7 +52696,7 @@ func TestGettersTemplateData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPricingId() // Should return zero value + _ = obj.GetPricingID() // Should return zero value }) t.Run("GetTemplateCode", func(t *testing.T) { @@ -52834,14 +52834,14 @@ func TestGettersTemplateData(t *testing.T) { } func TestSettersMarkExplicitTemplateData(t *testing.T) { - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -52865,14 +52865,14 @@ func TestSettersMarkExplicitTemplateData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPricingId_MarksExplicit", func(t *testing.T) { + t.Run("SetPricingID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TemplateData{} - var fernTestValuePricingId *int64 + var fernTestValuePricingID *int64 // Act - obj.SetPricingId(fernTestValuePricingId) + obj.SetPricingID(fernTestValuePricingID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -53079,19 +53079,19 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueDeviceId *Device - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID *Device + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueEntrypageId *EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID *EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) @@ -53111,11 +53111,11 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueGatewayTransId *string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID *string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) @@ -53151,19 +53151,19 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -53183,19 +53183,19 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValuePaymentTransId *string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID *string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValuePayorId *PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID *PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) @@ -53215,11 +53215,11 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValuePaypointId *int64 - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID *int64 + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -53239,11 +53239,11 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueRefundId *RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID *RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) @@ -53255,11 +53255,11 @@ func TestSettersTransactionQueryRecords(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &TransactionQueryRecords{} - var fernTestValueReturnedId *ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID *ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) @@ -53569,28 +53569,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetCustomer() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} var expected *Device - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilValue", func(t *testing.T) { + t.Run("GetDeviceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.DeviceId = nil + obj.DeviceID = nil // Act & Assert - assert.Nil(t, obj.GetDeviceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDeviceID(), "getter should return nil when property is nil") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -53599,31 +53599,31 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var expected *EntrypageId - obj.EntrypageId = expected + var expected *EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilValue", func(t *testing.T) { + t.Run("GetEntrypageID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.EntrypageId = nil + obj.EntrypageID = nil // Act & Assert - assert.Nil(t, obj.GetEntrypageId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEntrypageID(), "getter should return nil when property is nil") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -53632,7 +53632,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) t.Run("GetExternalProcessorInformation", func(t *testing.T) { @@ -53701,28 +53701,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetFeeAmount() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} var expected *string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilValue", func(t *testing.T) { + t.Run("GetGatewayTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.GatewayTransId = nil + obj.GatewayTransID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayTransID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -53731,7 +53731,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) t.Run("GetInvoiceData", func(t *testing.T) { @@ -53866,28 +53866,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetOperation() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -53896,31 +53896,31 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -53929,7 +53929,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetParentOrgName", func(t *testing.T) { @@ -53998,28 +53998,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetPaymentData() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} var expected *string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilValue", func(t *testing.T) { + t.Run("GetPaymentTransID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.PaymentTransId = nil + obj.PaymentTransID = nil // Act & Assert - assert.Nil(t, obj.GetPaymentTransId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentTransID(), "getter should return nil when property is nil") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -54028,31 +54028,31 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var expected *PayorId - obj.PayorId = expected + var expected *PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilValue", func(t *testing.T) { + t.Run("GetPayorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.PayorId = nil + obj.PayorID = nil // Act & Assert - assert.Nil(t, obj.GetPayorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPayorID(), "getter should return nil when property is nil") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -54061,7 +54061,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) t.Run("GetPaypointDbaname", func(t *testing.T) { @@ -54130,28 +54130,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} var expected *int64 - obj.PaypointId = expected + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilValue", func(t *testing.T) { + t.Run("GetPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.PaypointId = nil + obj.PaypointID = nil // Act & Assert - assert.Nil(t, obj.GetPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -54160,7 +54160,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetPaypointLegalname", func(t *testing.T) { @@ -54229,28 +54229,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetPendingFeeAmount() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var expected *RefundId - obj.RefundId = expected + var expected *RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilValue", func(t *testing.T) { + t.Run("GetRefundID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.RefundId = nil + obj.RefundID = nil // Act & Assert - assert.Nil(t, obj.GetRefundId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRefundID(), "getter should return nil when property is nil") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -54259,7 +54259,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) t.Run("GetResponseData", func(t *testing.T) { @@ -54295,28 +54295,28 @@ func TestGettersTransactionQueryRecords(t *testing.T) { _ = obj.GetResponseData() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var expected *ReturnedId - obj.ReturnedId = expected + var expected *ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilValue", func(t *testing.T) { + t.Run("GetReturnedID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - obj.ReturnedId = nil + obj.ReturnedID = nil // Act & Assert - assert.Nil(t, obj.GetReturnedId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetReturnedID(), "getter should return nil when property is nil") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *TransactionQueryRecords // Should not panic - getters should handle nil receiver gracefully @@ -54325,7 +54325,7 @@ func TestGettersTransactionQueryRecords(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) t.Run("GetScheduleReference", func(t *testing.T) { @@ -54835,14 +54835,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueDeviceId *Device + var fernTestValueDeviceID *Device // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54866,14 +54866,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueEntrypageId *EntrypageId + var fernTestValueEntrypageID *EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -54959,14 +54959,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueGatewayTransId *string + var fernTestValueGatewayTransID *string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55114,14 +55114,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55145,14 +55145,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55238,14 +55238,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValuePaymentTransId *string + var fernTestValuePaymentTransID *string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55269,14 +55269,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValuePayorId *PayorId + var fernTestValuePayorID *PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55362,14 +55362,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValuePaypointId *int64 + var fernTestValuePaypointID *int64 // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55455,14 +55455,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueRefundId *RefundId + var fernTestValueRefundID *RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55517,14 +55517,14 @@ func TestSettersMarkExplicitTransactionQueryRecords(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &TransactionQueryRecords{} - var fernTestValueReturnedId *ReturnedId + var fernTestValueReturnedID *ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -55838,11 +55838,11 @@ func TestSettersUnderwritingData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPolicyId", func(t *testing.T) { + t.Run("SetPolicyID", func(t *testing.T) { obj := &UnderwritingData{} - var fernTestValuePolicyId *PolicyId - obj.SetPolicyId(fernTestValuePolicyId) - assert.Equal(t, fernTestValuePolicyId, obj.PolicyId) + var fernTestValuePolicyID *PolicyID + obj.SetPolicyID(fernTestValuePolicyID) + assert.Equal(t, fernTestValuePolicyID, obj.PolicyID) assert.NotNil(t, obj.explicitFields) }) @@ -55872,28 +55872,28 @@ func TestGettersUnderwritingData(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetPolicyId", func(t *testing.T) { + t.Run("GetPolicyID", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingData{} - var expected *PolicyId - obj.PolicyId = expected + var expected *PolicyID + obj.PolicyID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPolicyId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPolicyID(), "getter should return the property value") }) - t.Run("GetPolicyId_NilValue", func(t *testing.T) { + t.Run("GetPolicyID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingData{} - obj.PolicyId = nil + obj.PolicyID = nil // Act & Assert - assert.Nil(t, obj.GetPolicyId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPolicyID(), "getter should return nil when property is nil") }) - t.Run("GetPolicyId_NilReceiver", func(t *testing.T) { + t.Run("GetPolicyID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *UnderwritingData // Should not panic - getters should handle nil receiver gracefully @@ -55902,7 +55902,7 @@ func TestGettersUnderwritingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPolicyId() // Should return zero value + _ = obj.GetPolicyID() // Should return zero value }) } @@ -55939,14 +55939,14 @@ func TestSettersMarkExplicitUnderwritingData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPolicyId_MarksExplicit", func(t *testing.T) { + t.Run("SetPolicyID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UnderwritingData{} - var fernTestValuePolicyId *PolicyId + var fernTestValuePolicyID *PolicyID // Act - obj.SetPolicyId(fernTestValuePolicyId) + obj.SetPolicyID(fernTestValuePolicyID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -56077,11 +56077,11 @@ func TestSettersUserQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &UserQueryRecord{} - var fernTestValueUserId *int64 - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID *int64 + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) @@ -56541,28 +56541,28 @@ func TestGettersUserQueryRecord(t *testing.T) { _ = obj.GetTimeZone() // Should return zero value }) - t.Run("GetUserId", func(t *testing.T) { + t.Run("GetUserID", func(t *testing.T) { t.Parallel() // Arrange obj := &UserQueryRecord{} var expected *int64 - obj.UserId = expected + obj.UserID = expected // Act & Assert - assert.Equal(t, expected, obj.GetUserId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetUserID(), "getter should return the property value") }) - t.Run("GetUserId_NilValue", func(t *testing.T) { + t.Run("GetUserID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &UserQueryRecord{} - obj.UserId = nil + obj.UserID = nil // Act & Assert - assert.Nil(t, obj.GetUserId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetUserID(), "getter should return nil when property is nil") }) - t.Run("GetUserId_NilReceiver", func(t *testing.T) { + t.Run("GetUserID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *UserQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -56571,7 +56571,7 @@ func TestGettersUserQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetUserId() // Should return zero value + _ = obj.GetUserID() // Should return zero value }) t.Run("GetUsrMfa", func(t *testing.T) { @@ -57079,14 +57079,14 @@ func TestSettersMarkExplicitUserQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UserQueryRecord{} - var fernTestValueUserId *int64 + var fernTestValueUserID *int64 // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -57463,11 +57463,11 @@ func TestSettersVendorData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &VendorData{} - var fernTestValueInternalReferenceId *int64 - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *int64 + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -57615,11 +57615,11 @@ func TestSettersVendorData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDefaultMethodId", func(t *testing.T) { + t.Run("SetDefaultMethodID", func(t *testing.T) { obj := &VendorData{} - var fernTestValueDefaultMethodId *string - obj.SetDefaultMethodId(fernTestValueDefaultMethodId) - assert.Equal(t, fernTestValueDefaultMethodId, obj.DefaultMethodId) + var fernTestValueDefaultMethodID *string + obj.SetDefaultMethodID(fernTestValueDefaultMethodID) + assert.Equal(t, fernTestValueDefaultMethodID, obj.DefaultMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -58063,28 +58063,28 @@ func TestGettersVendorData(t *testing.T) { _ = obj.GetEmail() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} var expected *int64 - obj.InternalReferenceId = expected + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorData // Should not panic - getters should handle nil receiver gracefully @@ -58093,7 +58093,7 @@ func TestGettersVendorData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLocationCode", func(t *testing.T) { @@ -58690,28 +58690,28 @@ func TestGettersVendorData(t *testing.T) { _ = obj.GetZip() // Should return zero value }) - t.Run("GetDefaultMethodId", func(t *testing.T) { + t.Run("GetDefaultMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} var expected *string - obj.DefaultMethodId = expected + obj.DefaultMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDefaultMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDefaultMethodID(), "getter should return the property value") }) - t.Run("GetDefaultMethodId_NilValue", func(t *testing.T) { + t.Run("GetDefaultMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} - obj.DefaultMethodId = nil + obj.DefaultMethodID = nil // Act & Assert - assert.Nil(t, obj.GetDefaultMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetDefaultMethodID(), "getter should return nil when property is nil") }) - t.Run("GetDefaultMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetDefaultMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorData // Should not panic - getters should handle nil receiver gracefully @@ -58720,7 +58720,7 @@ func TestGettersVendorData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDefaultMethodId() // Should return zero value + _ = obj.GetDefaultMethodID() // Should return zero value }) t.Run("GetAttachment", func(t *testing.T) { @@ -59162,14 +59162,14 @@ func TestSettersMarkExplicitVendorData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} - var fernTestValueInternalReferenceId *int64 + var fernTestValueInternalReferenceID *int64 // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -59751,14 +59751,14 @@ func TestSettersMarkExplicitVendorData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDefaultMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetDefaultMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorData{} - var fernTestValueDefaultMethodId *string + var fernTestValueDefaultMethodID *string // Act - obj.SetDefaultMethodId(fernTestValueDefaultMethodId) + obj.SetDefaultMethodID(fernTestValueDefaultMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -59824,11 +59824,11 @@ func TestSettersVendorPaymentMethod(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetStoredMethodId", func(t *testing.T) { + t.Run("SetStoredMethodID", func(t *testing.T) { obj := &VendorPaymentMethod{} - var fernTestValueStoredMethodId *string - obj.SetStoredMethodId(fernTestValueStoredMethodId) - assert.Equal(t, fernTestValueStoredMethodId, obj.StoredMethodId) + var fernTestValueStoredMethodID *string + obj.SetStoredMethodID(fernTestValueStoredMethodID) + assert.Equal(t, fernTestValueStoredMethodID, obj.StoredMethodID) assert.NotNil(t, obj.explicitFields) }) @@ -59858,28 +59858,28 @@ func TestGettersVendorPaymentMethod(t *testing.T) { _ = obj.GetMethod() // Should return zero value }) - t.Run("GetStoredMethodId", func(t *testing.T) { + t.Run("GetStoredMethodID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorPaymentMethod{} var expected *string - obj.StoredMethodId = expected + obj.StoredMethodID = expected // Act & Assert - assert.Equal(t, expected, obj.GetStoredMethodId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetStoredMethodID(), "getter should return the property value") }) - t.Run("GetStoredMethodId_NilValue", func(t *testing.T) { + t.Run("GetStoredMethodID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorPaymentMethod{} - obj.StoredMethodId = nil + obj.StoredMethodID = nil // Act & Assert - assert.Nil(t, obj.GetStoredMethodId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetStoredMethodID(), "getter should return nil when property is nil") }) - t.Run("GetStoredMethodId_NilReceiver", func(t *testing.T) { + t.Run("GetStoredMethodID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorPaymentMethod // Should not panic - getters should handle nil receiver gracefully @@ -59888,7 +59888,7 @@ func TestGettersVendorPaymentMethod(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetStoredMethodId() // Should return zero value + _ = obj.GetStoredMethodID() // Should return zero value }) } @@ -59925,14 +59925,14 @@ func TestSettersMarkExplicitVendorPaymentMethod(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetStoredMethodId_MarksExplicit", func(t *testing.T) { + t.Run("SetStoredMethodID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorPaymentMethod{} - var fernTestValueStoredMethodId *string + var fernTestValueStoredMethodID *string // Act - obj.SetStoredMethodId(fernTestValueStoredMethodId) + obj.SetStoredMethodID(fernTestValueStoredMethodID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -60071,19 +60071,19 @@ func TestSettersVendorQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID *ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetInternalReferenceId", func(t *testing.T) { + t.Run("SetInternalReferenceID", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValueInternalReferenceId *InternalReferenceId - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) - assert.Equal(t, fernTestValueInternalReferenceId, obj.InternalReferenceId) + var fernTestValueInternalReferenceID *InternalReferenceID + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) + assert.Equal(t, fernTestValueInternalReferenceID, obj.InternalReferenceID) assert.NotNil(t, obj.explicitFields) }) @@ -60135,11 +60135,11 @@ func TestSettersVendorQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetParentOrgId", func(t *testing.T) { + t.Run("SetParentOrgID", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValueParentOrgId *OrgParentId - obj.SetParentOrgId(fernTestValueParentOrgId) - assert.Equal(t, fernTestValueParentOrgId, obj.ParentOrgId) + var fernTestValueParentOrgID *OrgParentID + obj.SetParentOrgID(fernTestValueParentOrgID) + assert.Equal(t, fernTestValueParentOrgID, obj.ParentOrgID) assert.NotNil(t, obj.explicitFields) }) @@ -60279,11 +60279,11 @@ func TestSettersVendorQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValueVendorId *Vendorid - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID *Vendorid + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -60311,11 +60311,11 @@ func TestSettersVendorQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentPortalUrl", func(t *testing.T) { + t.Run("SetPaymentPortalURL", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValuePaymentPortalUrl *string - obj.SetPaymentPortalUrl(fernTestValuePaymentPortalUrl) - assert.Equal(t, fernTestValuePaymentPortalUrl, obj.PaymentPortalUrl) + var fernTestValuePaymentPortalURL *string + obj.SetPaymentPortalURL(fernTestValuePaymentPortalURL) + assert.Equal(t, fernTestValuePaymentPortalURL, obj.PaymentPortalURL) assert.NotNil(t, obj.explicitFields) }) @@ -60359,11 +60359,11 @@ func TestSettersVendorQueryRecord(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEnrichmentId", func(t *testing.T) { + t.Run("SetEnrichmentID", func(t *testing.T) { obj := &VendorQueryRecord{} - var fernTestValueEnrichmentId *string - obj.SetEnrichmentId(fernTestValueEnrichmentId) - assert.Equal(t, fernTestValueEnrichmentId, obj.EnrichmentId) + var fernTestValueEnrichmentID *string + obj.SetEnrichmentID(fernTestValueEnrichmentID) + assert.Equal(t, fernTestValueEnrichmentID, obj.EnrichmentID) assert.NotNil(t, obj.explicitFields) }) @@ -60832,28 +60832,28 @@ func TestGettersVendorQueryRecord(t *testing.T) { _ = obj.GetEnrollmentStatus() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var expected *ExternalPaypointId - obj.ExternalPaypointId = expected + var expected *ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilValue", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.ExternalPaypointId = nil + obj.ExternalPaypointID = nil // Act & Assert - assert.Nil(t, obj.GetExternalPaypointId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetExternalPaypointID(), "getter should return nil when property is nil") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -60862,31 +60862,31 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) - t.Run("GetInternalReferenceId", func(t *testing.T) { + t.Run("GetInternalReferenceID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var expected *InternalReferenceId - obj.InternalReferenceId = expected + var expected *InternalReferenceID + obj.InternalReferenceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetInternalReferenceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetInternalReferenceID(), "getter should return the property value") }) - t.Run("GetInternalReferenceId_NilValue", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.InternalReferenceId = nil + obj.InternalReferenceID = nil // Act & Assert - assert.Nil(t, obj.GetInternalReferenceId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetInternalReferenceID(), "getter should return nil when property is nil") }) - t.Run("GetInternalReferenceId_NilReceiver", func(t *testing.T) { + t.Run("GetInternalReferenceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -60895,7 +60895,7 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetInternalReferenceId() // Should return zero value + _ = obj.GetInternalReferenceID() // Should return zero value }) t.Run("GetLastUpdated", func(t *testing.T) { @@ -61096,28 +61096,28 @@ func TestGettersVendorQueryRecord(t *testing.T) { _ = obj.GetParentOrgName() // Should return zero value }) - t.Run("GetParentOrgId", func(t *testing.T) { + t.Run("GetParentOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var expected *OrgParentId - obj.ParentOrgId = expected + var expected *OrgParentID + obj.ParentOrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetParentOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetParentOrgID(), "getter should return the property value") }) - t.Run("GetParentOrgId_NilValue", func(t *testing.T) { + t.Run("GetParentOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.ParentOrgId = nil + obj.ParentOrgID = nil // Act & Assert - assert.Nil(t, obj.GetParentOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetParentOrgID(), "getter should return nil when property is nil") }) - t.Run("GetParentOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetParentOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -61126,7 +61126,7 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetParentOrgId() // Should return zero value + _ = obj.GetParentOrgID() // Should return zero value }) t.Run("GetPayeeName1", func(t *testing.T) { @@ -61690,28 +61690,28 @@ func TestGettersVendorQueryRecord(t *testing.T) { _ = obj.GetSummary() // Should return zero value }) - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} var expected *Vendorid - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilValue", func(t *testing.T) { + t.Run("GetVendorID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.VendorId = nil + obj.VendorID = nil // Act & Assert - assert.Nil(t, obj.GetVendorId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetVendorID(), "getter should return nil when property is nil") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -61720,7 +61720,7 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetVendorNumber", func(t *testing.T) { @@ -61822,28 +61822,28 @@ func TestGettersVendorQueryRecord(t *testing.T) { _ = obj.GetZip() // Should return zero value }) - t.Run("GetPaymentPortalUrl", func(t *testing.T) { + t.Run("GetPaymentPortalURL", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} var expected *string - obj.PaymentPortalUrl = expected + obj.PaymentPortalURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentPortalUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentPortalURL(), "getter should return the property value") }) - t.Run("GetPaymentPortalUrl_NilValue", func(t *testing.T) { + t.Run("GetPaymentPortalURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.PaymentPortalUrl = nil + obj.PaymentPortalURL = nil // Act & Assert - assert.Nil(t, obj.GetPaymentPortalUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaymentPortalURL(), "getter should return nil when property is nil") }) - t.Run("GetPaymentPortalUrl_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentPortalURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -61852,7 +61852,7 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentPortalUrl() // Should return zero value + _ = obj.GetPaymentPortalURL() // Should return zero value }) t.Run("GetCardAccepted", func(t *testing.T) { @@ -62020,28 +62020,28 @@ func TestGettersVendorQueryRecord(t *testing.T) { _ = obj.GetEnrichedAt() // Should return zero value }) - t.Run("GetEnrichmentId", func(t *testing.T) { + t.Run("GetEnrichmentID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} var expected *string - obj.EnrichmentId = expected + obj.EnrichmentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnrichmentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEnrichmentID(), "getter should return the property value") }) - t.Run("GetEnrichmentId_NilValue", func(t *testing.T) { + t.Run("GetEnrichmentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - obj.EnrichmentId = nil + obj.EnrichmentID = nil // Act & Assert - assert.Nil(t, obj.GetEnrichmentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEnrichmentID(), "getter should return nil when property is nil") }) - t.Run("GetEnrichmentId_NilReceiver", func(t *testing.T) { + t.Run("GetEnrichmentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorQueryRecord // Should not panic - getters should handle nil receiver gracefully @@ -62050,7 +62050,7 @@ func TestGettersVendorQueryRecord(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnrichmentId() // Should return zero value + _ = obj.GetEnrichmentID() // Should return zero value }) } @@ -62490,14 +62490,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValueExternalPaypointId *ExternalPaypointId + var fernTestValueExternalPaypointID *ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -62521,14 +62521,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetInternalReferenceId_MarksExplicit", func(t *testing.T) { + t.Run("SetInternalReferenceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValueInternalReferenceId *InternalReferenceId + var fernTestValueInternalReferenceID *InternalReferenceID // Act - obj.SetInternalReferenceId(fernTestValueInternalReferenceId) + obj.SetInternalReferenceID(fernTestValueInternalReferenceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -62738,14 +62738,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetParentOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetParentOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValueParentOrgId *OrgParentId + var fernTestValueParentOrgID *OrgParentID // Act - obj.SetParentOrgId(fernTestValueParentOrgId) + obj.SetParentOrgID(fernTestValueParentOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63296,14 +63296,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValueVendorId *Vendorid + var fernTestValueVendorID *Vendorid // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63420,14 +63420,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentPortalUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentPortalURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValuePaymentPortalUrl *string + var fernTestValuePaymentPortalURL *string // Act - obj.SetPaymentPortalUrl(fernTestValuePaymentPortalUrl) + obj.SetPaymentPortalURL(fernTestValuePaymentPortalURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63606,14 +63606,14 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEnrichmentId_MarksExplicit", func(t *testing.T) { + t.Run("SetEnrichmentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorQueryRecord{} - var fernTestValueEnrichmentId *string + var fernTestValueEnrichmentID *string // Act - obj.SetEnrichmentId(fernTestValueEnrichmentId) + obj.SetEnrichmentID(fernTestValueEnrichmentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -63640,19 +63640,19 @@ func TestSettersMarkExplicitVendorQueryRecord(t *testing.T) { } func TestSettersVendorResponseBillingData(t *testing.T) { - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &VendorResponseBillingData{} - var fernTestValueId *int - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *int + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetAccountId", func(t *testing.T) { + t.Run("SetAccountID", func(t *testing.T) { obj := &VendorResponseBillingData{} - var fernTestValueAccountId *string - obj.SetAccountId(fernTestValueAccountId) - assert.Equal(t, fernTestValueAccountId, obj.AccountId) + var fernTestValueAccountID *string + obj.SetAccountID(fernTestValueAccountID) + assert.Equal(t, fernTestValueAccountID, obj.AccountID) assert.NotNil(t, obj.explicitFields) }) @@ -63755,28 +63755,28 @@ func TestSettersVendorResponseBillingData(t *testing.T) { } func TestGettersVendorResponseBillingData(t *testing.T) { - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} var expected *int - obj.Id = expected + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorResponseBillingData // Should not panic - getters should handle nil receiver gracefully @@ -63785,31 +63785,31 @@ func TestGettersVendorResponseBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetAccountId", func(t *testing.T) { + t.Run("GetAccountID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} var expected *string - obj.AccountId = expected + obj.AccountID = expected // Act & Assert - assert.Equal(t, expected, obj.GetAccountId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetAccountID(), "getter should return the property value") }) - t.Run("GetAccountId_NilValue", func(t *testing.T) { + t.Run("GetAccountID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} - obj.AccountId = nil + obj.AccountID = nil // Act & Assert - assert.Nil(t, obj.GetAccountId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetAccountID(), "getter should return nil when property is nil") }) - t.Run("GetAccountId_NilReceiver", func(t *testing.T) { + t.Run("GetAccountID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorResponseBillingData // Should not panic - getters should handle nil receiver gracefully @@ -63818,7 +63818,7 @@ func TestGettersVendorResponseBillingData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetAccountId() // Should return zero value + _ = obj.GetAccountID() // Should return zero value }) t.Run("GetNickname", func(t *testing.T) { @@ -64220,14 +64220,14 @@ func TestGettersVendorResponseBillingData(t *testing.T) { } func TestSettersMarkExplicitVendorResponseBillingData(t *testing.T) { - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} - var fernTestValueId *int + var fernTestValueID *int // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64251,14 +64251,14 @@ func TestSettersMarkExplicitVendorResponseBillingData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetAccountId_MarksExplicit", func(t *testing.T) { + t.Run("SetAccountID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseBillingData{} - var fernTestValueAccountId *string + var fernTestValueAccountID *string // Act - obj.SetAccountId(fernTestValueAccountId) + obj.SetAccountID(fernTestValueAccountID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -64657,11 +64657,11 @@ func TestSettersMarkExplicitVendorResponseBillingData(t *testing.T) { } func TestSettersVendorResponseStoredMethod(t *testing.T) { - t.Run("SetIdPmethod", func(t *testing.T) { + t.Run("SetIDPmethod", func(t *testing.T) { obj := &VendorResponseStoredMethod{} - var fernTestValueIdPmethod *string - obj.SetIdPmethod(fernTestValueIdPmethod) - assert.Equal(t, fernTestValueIdPmethod, obj.IdPmethod) + var fernTestValueIDPmethod *string + obj.SetIDPmethod(fernTestValueIDPmethod) + assert.Equal(t, fernTestValueIDPmethod, obj.IDPmethod) assert.NotNil(t, obj.explicitFields) }) @@ -64788,28 +64788,28 @@ func TestSettersVendorResponseStoredMethod(t *testing.T) { } func TestGettersVendorResponseStoredMethod(t *testing.T) { - t.Run("GetIdPmethod", func(t *testing.T) { + t.Run("GetIDPmethod", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseStoredMethod{} var expected *string - obj.IdPmethod = expected + obj.IDPmethod = expected // Act & Assert - assert.Equal(t, expected, obj.GetIdPmethod(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIDPmethod(), "getter should return the property value") }) - t.Run("GetIdPmethod_NilValue", func(t *testing.T) { + t.Run("GetIDPmethod_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseStoredMethod{} - obj.IdPmethod = nil + obj.IDPmethod = nil // Act & Assert - assert.Nil(t, obj.GetIdPmethod(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetIDPmethod(), "getter should return nil when property is nil") }) - t.Run("GetIdPmethod_NilReceiver", func(t *testing.T) { + t.Run("GetIDPmethod_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorResponseStoredMethod // Should not panic - getters should handle nil receiver gracefully @@ -64818,7 +64818,7 @@ func TestGettersVendorResponseStoredMethod(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIdPmethod() // Should return zero value + _ = obj.GetIDPmethod() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -65319,14 +65319,14 @@ func TestGettersVendorResponseStoredMethod(t *testing.T) { } func TestSettersMarkExplicitVendorResponseStoredMethod(t *testing.T) { - t.Run("SetIdPmethod_MarksExplicit", func(t *testing.T) { + t.Run("SetIDPmethod_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorResponseStoredMethod{} - var fernTestValueIdPmethod *string + var fernTestValueIDPmethod *string // Act - obj.SetIdPmethod(fernTestValueIdPmethod) + obj.SetIDPmethod(fernTestValueIDPmethod) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -69996,11 +69996,11 @@ func TestJSONMarshalingPayMethodCredit(t *testing.T) { } -func TestJSONMarshalingPayabliApiResponse(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70009,31 +70009,31 @@ func TestJSONMarshalingPayabliApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse + var unmarshaled PayabliAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse + var obj PayabliAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse + var obj PayabliAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70042,31 +70042,31 @@ func TestJSONMarshalingPayabliApiResponse00Responsedatanonobject(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse00Responsedatanonobject + var unmarshaled PayabliAPIResponse00Responsedatanonobject err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse00Responsedatanonobject + var obj PayabliAPIResponse00Responsedatanonobject err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse00Responsedatanonobject + var obj PayabliAPIResponse00Responsedatanonobject err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponse0ResponseData(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70075,31 +70075,31 @@ func TestJSONMarshalingPayabliApiResponse0ResponseData(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponse0ResponseData + var unmarshaled PayabliAPIResponse0ResponseData err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0ResponseData + var obj PayabliAPIResponse0ResponseData err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponse0ResponseData + var obj PayabliAPIResponse0ResponseData err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseError400(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseError400(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70108,31 +70108,31 @@ func TestJSONMarshalingPayabliApiResponseError400(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseError400 + var unmarshaled PayabliAPIResponseError400 err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseError400 + var obj PayabliAPIResponseError400 err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseError400 + var obj PayabliAPIResponseError400 err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseError400ResponseData(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70141,31 +70141,31 @@ func TestJSONMarshalingPayabliApiResponseError400ResponseData(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseError400ResponseData + var unmarshaled PayabliAPIResponseError400ResponseData err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseError400ResponseData + var obj PayabliAPIResponseError400ResponseData err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseError400ResponseData + var obj PayabliAPIResponseError400ResponseData err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseGeneric2Part(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70174,31 +70174,31 @@ func TestJSONMarshalingPayabliApiResponseGeneric2Part(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseGeneric2Part + var unmarshaled PayabliAPIResponseGeneric2Part err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseGeneric2Part + var obj PayabliAPIResponseGeneric2Part err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseGeneric2Part + var obj PayabliAPIResponseGeneric2Part err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponsePaylinks(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponsePaylinks(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -70207,21 +70207,21 @@ func TestJSONMarshalingPayabliApiResponsePaylinks(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponsePaylinks + var unmarshaled PayabliAPIResponsePaylinks err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaylinks + var obj PayabliAPIResponsePaylinks err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponsePaylinks + var obj PayabliAPIResponsePaylinks err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -72426,113 +72426,113 @@ func TestStringPayMethodCredit(t *testing.T) { }) } -func TestStringPayabliApiResponse(t *testing.T) { +func TestStringPayabliAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse + var obj *PayabliAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestStringPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponse0ResponseData(t *testing.T) { +func TestStringPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseError400(t *testing.T) { +func TestStringPayabliAPIResponseError400(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseError400ResponseData(t *testing.T) { +func TestStringPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400ResponseData + var obj *PayabliAPIResponseError400ResponseData result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseGeneric2Part(t *testing.T) { +func TestStringPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGeneric2Part + var obj *PayabliAPIResponseGeneric2Part result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponsePaylinks(t *testing.T) { +func TestStringPayabliAPIResponsePaylinks(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -76400,10 +76400,10 @@ func TestExtraPropertiesPayMethodCredit(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponse(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse{} + obj := &PayabliAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76417,16 +76417,16 @@ func TestExtraPropertiesPayabliApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse + var obj *PayabliAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponse00Responsedatanonobject(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse00Responsedatanonobject(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse00Responsedatanonobject{} + obj := &PayabliAPIResponse00Responsedatanonobject{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76440,16 +76440,16 @@ func TestExtraPropertiesPayabliApiResponse00Responsedatanonobject(t *testing.T) t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse00Responsedatanonobject + var obj *PayabliAPIResponse00Responsedatanonobject extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponse0ResponseData(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponse0ResponseData(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponse0ResponseData{} + obj := &PayabliAPIResponse0ResponseData{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76463,16 +76463,16 @@ func TestExtraPropertiesPayabliApiResponse0ResponseData(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponse0ResponseData + var obj *PayabliAPIResponse0ResponseData extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseError400(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseError400(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseError400{} + obj := &PayabliAPIResponseError400{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76486,16 +76486,16 @@ func TestExtraPropertiesPayabliApiResponseError400(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400 + var obj *PayabliAPIResponseError400 extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseError400ResponseData(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseError400ResponseData(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseError400ResponseData{} + obj := &PayabliAPIResponseError400ResponseData{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76509,16 +76509,16 @@ func TestExtraPropertiesPayabliApiResponseError400ResponseData(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseError400ResponseData + var obj *PayabliAPIResponseError400ResponseData extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseGeneric2Part(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseGeneric2Part(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseGeneric2Part{} + obj := &PayabliAPIResponseGeneric2Part{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76532,16 +76532,16 @@ func TestExtraPropertiesPayabliApiResponseGeneric2Part(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseGeneric2Part + var obj *PayabliAPIResponseGeneric2Part extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponsePaylinks(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponsePaylinks(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponsePaylinks{} + obj := &PayabliAPIResponsePaylinks{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -76555,7 +76555,7 @@ func TestExtraPropertiesPayabliApiResponsePaylinks(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponsePaylinks + var obj *PayabliAPIResponsePaylinks extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/user.go b/user.go index 1cd2021..5ff9679 100644 --- a/user.go +++ b/user.go @@ -81,8 +81,8 @@ var ( userAuthRequestFieldEntry = big.NewInt(1 << 1) userAuthRequestFieldEntryType = big.NewInt(1 << 2) userAuthRequestFieldPsw = big.NewInt(1 << 3) - userAuthRequestFieldUserId = big.NewInt(1 << 4) - userAuthRequestFieldUserTokenId = big.NewInt(1 << 5) + userAuthRequestFieldUserID = big.NewInt(1 << 4) + userAuthRequestFieldUserTokenID = big.NewInt(1 << 5) ) type UserAuthRequest struct { @@ -92,8 +92,8 @@ type UserAuthRequest struct { // Type of entry identifier: 0 - partner, 2 - paypoint. This is used by front-end apps, required if an Entry is indicated. EntryType *int `json:"entryType,omitempty" url:"-"` Psw *string `json:"psw,omitempty" url:"-"` - UserId *int64 `json:"userId,omitempty" url:"-"` - UserTokenId *string `json:"userTokenId,omitempty" url:"-"` + UserID *int64 `json:"userId,omitempty" url:"-"` + UserTokenID *string `json:"userTokenId,omitempty" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -134,18 +134,18 @@ func (u *UserAuthRequest) SetPsw(psw *string) { u.require(userAuthRequestFieldPsw) } -// SetUserId sets the UserId field and marks it as non-optional; +// SetUserID sets the UserID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UserAuthRequest) SetUserId(userId *int64) { - u.UserId = userId - u.require(userAuthRequestFieldUserId) +func (u *UserAuthRequest) SetUserID(userID *int64) { + u.UserID = userID + u.require(userAuthRequestFieldUserID) } -// SetUserTokenId sets the UserTokenId field and marks it as non-optional; +// SetUserTokenID sets the UserTokenID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (u *UserAuthRequest) SetUserTokenId(userTokenId *string) { - u.UserTokenId = userTokenId - u.require(userAuthRequestFieldUserTokenId) +func (u *UserAuthRequest) SetUserTokenID(userTokenID *string) { + u.UserTokenID = userTokenID + u.require(userAuthRequestFieldUserTokenID) } func (u *UserAuthRequest) UnmarshalJSON(data []byte) error { @@ -411,12 +411,12 @@ func (m *MfaData) String() string { type MfaValidationCode = string var ( - orgScopeFieldOrgId = big.NewInt(1 << 0) + orgScopeFieldOrgID = big.NewInt(1 << 0) orgScopeFieldOrgType = big.NewInt(1 << 1) ) type OrgScope struct { - OrgId *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` + OrgID *Orgid `json:"orgId,omitempty" url:"orgId,omitempty"` OrgType *Orgtype `json:"orgType,omitempty" url:"orgType,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -426,11 +426,11 @@ type OrgScope struct { rawJSON json.RawMessage } -func (o *OrgScope) GetOrgId() *Orgid { +func (o *OrgScope) GetOrgID() *Orgid { if o == nil { return nil } - return o.OrgId + return o.OrgID } func (o *OrgScope) GetOrgType() *Orgtype { @@ -454,11 +454,11 @@ func (o *OrgScope) require(field *big.Int) { o.explicitFields.Or(o.explicitFields, field) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (o *OrgScope) SetOrgId(orgId *Orgid) { - o.OrgId = orgId - o.require(orgScopeFieldOrgId) +func (o *OrgScope) SetOrgID(orgID *Orgid) { + o.OrgID = orgID + o.require(orgScopeFieldOrgID) } // SetOrgType sets the OrgType field and marks it as non-optional; @@ -511,15 +511,15 @@ func (o *OrgScope) String() string { } var ( - payabliApiResponseMfaBasicFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseMfaBasicFieldMfa = big.NewInt(1 << 1) - payabliApiResponseMfaBasicFieldMfaMode = big.NewInt(1 << 2) - payabliApiResponseMfaBasicFieldMfaValidationCode = big.NewInt(1 << 3) - payabliApiResponseMfaBasicFieldResponseData = big.NewInt(1 << 4) - payabliApiResponseMfaBasicFieldResponseText = big.NewInt(1 << 5) + payabliAPIResponseMfaBasicFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseMfaBasicFieldMfa = big.NewInt(1 << 1) + payabliAPIResponseMfaBasicFieldMfaMode = big.NewInt(1 << 2) + payabliAPIResponseMfaBasicFieldMfaValidationCode = big.NewInt(1 << 3) + payabliAPIResponseMfaBasicFieldResponseData = big.NewInt(1 << 4) + payabliAPIResponseMfaBasicFieldResponseText = big.NewInt(1 << 5) ) -type PayabliApiResponseMfaBasic struct { +type PayabliAPIResponseMfaBasic struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` Mfa *Mfa `json:"mfa,omitempty" url:"mfa,omitempty"` // The mode of multi-factor authentication used. @@ -536,56 +536,56 @@ type PayabliApiResponseMfaBasic struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseMfaBasic) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseMfaBasic) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseMfaBasic) GetMfa() *Mfa { +func (p *PayabliAPIResponseMfaBasic) GetMfa() *Mfa { if p == nil { return nil } return p.Mfa } -func (p *PayabliApiResponseMfaBasic) GetMfaMode() *string { +func (p *PayabliAPIResponseMfaBasic) GetMfaMode() *string { if p == nil { return nil } return p.MfaMode } -func (p *PayabliApiResponseMfaBasic) GetMfaValidationCode() *MfaValidationCode { +func (p *PayabliAPIResponseMfaBasic) GetMfaValidationCode() *MfaValidationCode { if p == nil { return nil } return p.MfaValidationCode } -func (p *PayabliApiResponseMfaBasic) GetResponseData() *string { +func (p *PayabliAPIResponseMfaBasic) GetResponseData() *string { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseMfaBasic) GetResponseText() ResponseText { +func (p *PayabliAPIResponseMfaBasic) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseMfaBasic) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseMfaBasic) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseMfaBasic) require(field *big.Int) { +func (p *PayabliAPIResponseMfaBasic) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -594,53 +594,53 @@ func (p *PayabliApiResponseMfaBasic) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseMfaBasic) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseMfaBasicFieldIsSuccess) + p.require(payabliAPIResponseMfaBasicFieldIsSuccess) } // SetMfa sets the Mfa field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetMfa(mfa *Mfa) { +func (p *PayabliAPIResponseMfaBasic) SetMfa(mfa *Mfa) { p.Mfa = mfa - p.require(payabliApiResponseMfaBasicFieldMfa) + p.require(payabliAPIResponseMfaBasicFieldMfa) } // SetMfaMode sets the MfaMode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetMfaMode(mfaMode *string) { +func (p *PayabliAPIResponseMfaBasic) SetMfaMode(mfaMode *string) { p.MfaMode = mfaMode - p.require(payabliApiResponseMfaBasicFieldMfaMode) + p.require(payabliAPIResponseMfaBasicFieldMfaMode) } // SetMfaValidationCode sets the MfaValidationCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetMfaValidationCode(mfaValidationCode *MfaValidationCode) { +func (p *PayabliAPIResponseMfaBasic) SetMfaValidationCode(mfaValidationCode *MfaValidationCode) { p.MfaValidationCode = mfaValidationCode - p.require(payabliApiResponseMfaBasicFieldMfaValidationCode) + p.require(payabliAPIResponseMfaBasicFieldMfaValidationCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetResponseData(responseData *string) { +func (p *PayabliAPIResponseMfaBasic) SetResponseData(responseData *string) { p.ResponseData = responseData - p.require(payabliApiResponseMfaBasicFieldResponseData) + p.require(payabliAPIResponseMfaBasicFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseMfaBasic) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseMfaBasic) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseMfaBasicFieldResponseText) + p.require(payabliAPIResponseMfaBasicFieldResponseText) } -func (p *PayabliApiResponseMfaBasic) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseMfaBasic +func (p *PayabliAPIResponseMfaBasic) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseMfaBasic var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseMfaBasic(value) + *p = PayabliAPIResponseMfaBasic(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -650,8 +650,8 @@ func (p *PayabliApiResponseMfaBasic) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseMfaBasic) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseMfaBasic +func (p *PayabliAPIResponseMfaBasic) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseMfaBasic var marshaler = struct { embed }{ @@ -661,7 +661,7 @@ func (p *PayabliApiResponseMfaBasic) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseMfaBasic) String() string { +func (p *PayabliAPIResponseMfaBasic) String() string { if p == nil { return "" } @@ -677,14 +677,14 @@ func (p *PayabliApiResponseMfaBasic) String() string { } var ( - payabliApiResponseUserMfaFieldInactiveTokenTime = big.NewInt(1 << 0) - payabliApiResponseUserMfaFieldIsSuccess = big.NewInt(1 << 1) - payabliApiResponseUserMfaFieldRemaining = big.NewInt(1 << 2) - payabliApiResponseUserMfaFieldResponseData = big.NewInt(1 << 3) - payabliApiResponseUserMfaFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseUserMfaFieldInactiveTokenTime = big.NewInt(1 << 0) + payabliAPIResponseUserMfaFieldIsSuccess = big.NewInt(1 << 1) + payabliAPIResponseUserMfaFieldRemaining = big.NewInt(1 << 2) + payabliAPIResponseUserMfaFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseUserMfaFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseUserMfa struct { +type PayabliAPIResponseUserMfa struct { InactiveTokenTime *int `json:"inactiveTokenTime,omitempty" url:"inactiveTokenTime,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` Remaining *int `json:"remaining,omitempty" url:"remaining,omitempty"` @@ -698,49 +698,49 @@ type PayabliApiResponseUserMfa struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseUserMfa) GetInactiveTokenTime() *int { +func (p *PayabliAPIResponseUserMfa) GetInactiveTokenTime() *int { if p == nil { return nil } return p.InactiveTokenTime } -func (p *PayabliApiResponseUserMfa) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseUserMfa) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseUserMfa) GetRemaining() *int { +func (p *PayabliAPIResponseUserMfa) GetRemaining() *int { if p == nil { return nil } return p.Remaining } -func (p *PayabliApiResponseUserMfa) GetResponseData() *Responsedatanonobject { +func (p *PayabliAPIResponseUserMfa) GetResponseData() *Responsedatanonobject { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseUserMfa) GetResponseText() ResponseText { +func (p *PayabliAPIResponseUserMfa) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseUserMfa) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseUserMfa) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseUserMfa) require(field *big.Int) { +func (p *PayabliAPIResponseUserMfa) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -749,46 +749,46 @@ func (p *PayabliApiResponseUserMfa) require(field *big.Int) { // SetInactiveTokenTime sets the InactiveTokenTime field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseUserMfa) SetInactiveTokenTime(inactiveTokenTime *int) { +func (p *PayabliAPIResponseUserMfa) SetInactiveTokenTime(inactiveTokenTime *int) { p.InactiveTokenTime = inactiveTokenTime - p.require(payabliApiResponseUserMfaFieldInactiveTokenTime) + p.require(payabliAPIResponseUserMfaFieldInactiveTokenTime) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseUserMfa) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseUserMfa) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseUserMfaFieldIsSuccess) + p.require(payabliAPIResponseUserMfaFieldIsSuccess) } // SetRemaining sets the Remaining field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseUserMfa) SetRemaining(remaining *int) { +func (p *PayabliAPIResponseUserMfa) SetRemaining(remaining *int) { p.Remaining = remaining - p.require(payabliApiResponseUserMfaFieldRemaining) + p.require(payabliAPIResponseUserMfaFieldRemaining) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseUserMfa) SetResponseData(responseData *Responsedatanonobject) { +func (p *PayabliAPIResponseUserMfa) SetResponseData(responseData *Responsedatanonobject) { p.ResponseData = responseData - p.require(payabliApiResponseUserMfaFieldResponseData) + p.require(payabliAPIResponseUserMfaFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseUserMfa) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseUserMfa) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseUserMfaFieldResponseText) + p.require(payabliAPIResponseUserMfaFieldResponseText) } -func (p *PayabliApiResponseUserMfa) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseUserMfa +func (p *PayabliAPIResponseUserMfa) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseUserMfa var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseUserMfa(value) + *p = PayabliAPIResponseUserMfa(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -798,8 +798,8 @@ func (p *PayabliApiResponseUserMfa) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseUserMfa) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseUserMfa +func (p *PayabliAPIResponseUserMfa) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseUserMfa var marshaler = struct { embed }{ @@ -809,7 +809,7 @@ func (p *PayabliApiResponseUserMfa) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseUserMfa) String() string { +func (p *PayabliAPIResponseUserMfa) String() string { if p == nil { return "" } diff --git a/user/client.go b/user/client.go index 108a68c..aae4c18 100644 --- a/user/client.go +++ b/user/client.go @@ -53,7 +53,7 @@ func (c *Client) AddUser( func (c *Client) AuthRefreshUser( ctx context.Context, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseUserMfa, error) { +) (*payabli.PayabliAPIResponseUserMfa, error) { response, err := c.WithRawResponse.AuthRefreshUser( ctx, opts..., @@ -88,7 +88,7 @@ func (c *Client) AuthUser( provider string, request *payabli.UserAuthRequest, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseMfaBasic, error) { +) (*payabli.PayabliAPIResponseMfaBasic, error) { response, err := c.WithRawResponse.AuthUser( ctx, provider, @@ -122,12 +122,12 @@ func (c *Client) ChangePswUser( func (c *Client) DeleteUser( ctx context.Context, // The Payabli-generated `userId` value. - userId int64, + userID int64, opts ...option.RequestOption, ) (*payabli.DeleteUserResponse, error) { response, err := c.WithRawResponse.DeleteUser( ctx, - userId, + userID, opts..., ) if err != nil { @@ -140,13 +140,13 @@ func (c *Client) DeleteUser( func (c *Client) EditMfaUser( ctx context.Context, // User Identifier - userId int64, + userID int64, request *payabli.MfaData, opts ...option.RequestOption, ) (*payabli.EditMfaUserResponse, error) { response, err := c.WithRawResponse.EditMfaUser( ctx, - userId, + userID, request, opts..., ) @@ -160,13 +160,13 @@ func (c *Client) EditMfaUser( func (c *Client) EditUser( ctx context.Context, // User Identifier - userId int64, + userID int64, request *payabli.UserData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponse, error) { +) (*payabli.PayabliAPIResponse, error) { response, err := c.WithRawResponse.EditUser( ctx, - userId, + userID, request, opts..., ) @@ -180,13 +180,13 @@ func (c *Client) EditUser( func (c *Client) GetUser( ctx context.Context, // The Payabli-generated `userId` value. - userId int64, + userID int64, request *payabli.GetUserRequest, opts ...option.RequestOption, ) (*payabli.UserQueryRecord, error) { response, err := c.WithRawResponse.GetUser( ctx, - userId, + userID, request, opts..., ) @@ -221,7 +221,7 @@ func (c *Client) ResendMfaCode( // entryType int, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseMfaBasic, error) { +) (*payabli.PayabliAPIResponseMfaBasic, error) { response, err := c.WithRawResponse.ResendMfaCode( ctx, usrname, @@ -240,7 +240,7 @@ func (c *Client) ValidateMfaUser( ctx context.Context, request *payabli.MfaValidationData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseUserMfa, error) { +) (*payabli.PayabliAPIResponseUserMfa, error) { response, err := c.WithRawResponse.ValidateMfaUser( ctx, request, diff --git a/user/raw_client.go b/user/raw_client.go index 4028d00..b6d7e10 100644 --- a/user/raw_client.go +++ b/user/raw_client.go @@ -75,7 +75,7 @@ func (r *RawClient) AddUser( func (r *RawClient) AuthRefreshUser( ctx context.Context, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseUserMfa], error) { +) (*core.Response[*payabli.PayabliAPIResponseUserMfa], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -87,7 +87,7 @@ func (r *RawClient) AuthRefreshUser( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseUserMfa + var response *payabli.PayabliAPIResponseUserMfa raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -105,7 +105,7 @@ func (r *RawClient) AuthRefreshUser( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseUserMfa]{ + return &core.Response[*payabli.PayabliAPIResponseUserMfa]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -161,7 +161,7 @@ func (r *RawClient) AuthUser( provider string, request *payabli.UserAuthRequest, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseMfaBasic], error) { +) (*core.Response[*payabli.PayabliAPIResponseMfaBasic], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -177,7 +177,7 @@ func (r *RawClient) AuthUser( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponseMfaBasic + var response *payabli.PayabliAPIResponseMfaBasic raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -196,7 +196,7 @@ func (r *RawClient) AuthUser( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseMfaBasic]{ + return &core.Response[*payabli.PayabliAPIResponseMfaBasic]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -249,7 +249,7 @@ func (r *RawClient) ChangePswUser( func (r *RawClient) DeleteUser( ctx context.Context, // The Payabli-generated `userId` value. - userId int64, + userID int64, opts ...option.RequestOption, ) (*core.Response[*payabli.DeleteUserResponse], error) { options := core.NewRequestOptions(opts...) @@ -260,7 +260,7 @@ func (r *RawClient) DeleteUser( ) endpointURL := internal.EncodeURL( baseURL+"/User/%v", - userId, + userID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -294,7 +294,7 @@ func (r *RawClient) DeleteUser( func (r *RawClient) EditMfaUser( ctx context.Context, // User Identifier - userId int64, + userID int64, request *payabli.MfaData, opts ...option.RequestOption, ) (*core.Response[*payabli.EditMfaUserResponse], error) { @@ -306,7 +306,7 @@ func (r *RawClient) EditMfaUser( ) endpointURL := internal.EncodeURL( baseURL+"/User/mfa/%v", - userId, + userID, ) headers := internal.MergeHeaders( r.options.ToHeader(), @@ -341,10 +341,10 @@ func (r *RawClient) EditMfaUser( func (r *RawClient) EditUser( ctx context.Context, // User Identifier - userId int64, + userID int64, request *payabli.UserData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponse], error) { +) (*core.Response[*payabli.PayabliAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -353,13 +353,13 @@ func (r *RawClient) EditUser( ) endpointURL := internal.EncodeURL( baseURL+"/User/%v", - userId, + userID, ) headers := internal.MergeHeaders( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponse + var response *payabli.PayabliAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -378,7 +378,7 @@ func (r *RawClient) EditUser( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponse]{ + return &core.Response[*payabli.PayabliAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -388,7 +388,7 @@ func (r *RawClient) EditUser( func (r *RawClient) GetUser( ctx context.Context, // The Payabli-generated `userId` value. - userId int64, + userID int64, request *payabli.GetUserRequest, opts ...option.RequestOption, ) (*core.Response[*payabli.UserQueryRecord], error) { @@ -400,7 +400,7 @@ func (r *RawClient) GetUser( ) endpointURL := internal.EncodeURL( baseURL+"/User/%v", - userId, + userID, ) queryParams, err := internal.QueryValues(request) if err != nil { @@ -487,7 +487,7 @@ func (r *RawClient) ResendMfaCode( // entryType int, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseMfaBasic], error) { +) (*core.Response[*payabli.PayabliAPIResponseMfaBasic], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -504,7 +504,7 @@ func (r *RawClient) ResendMfaCode( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseMfaBasic + var response *payabli.PayabliAPIResponseMfaBasic raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -522,7 +522,7 @@ func (r *RawClient) ResendMfaCode( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseMfaBasic]{ + return &core.Response[*payabli.PayabliAPIResponseMfaBasic]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -533,7 +533,7 @@ func (r *RawClient) ValidateMfaUser( ctx context.Context, request *payabli.MfaValidationData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseUserMfa], error) { +) (*core.Response[*payabli.PayabliAPIResponseUserMfa], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -546,7 +546,7 @@ func (r *RawClient) ValidateMfaUser( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.PayabliApiResponseUserMfa + var response *payabli.PayabliAPIResponseUserMfa raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -564,7 +564,7 @@ func (r *RawClient) ValidateMfaUser( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseUserMfa]{ + return &core.Response[*payabli.PayabliAPIResponseUserMfa]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/user_test.go b/user_test.go index 5d7cdd9..3ca26bc 100644 --- a/user_test.go +++ b/user_test.go @@ -165,19 +165,19 @@ func TestSettersUserAuthRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserId", func(t *testing.T) { + t.Run("SetUserID", func(t *testing.T) { obj := &UserAuthRequest{} - var fernTestValueUserId *int64 - obj.SetUserId(fernTestValueUserId) - assert.Equal(t, fernTestValueUserId, obj.UserId) + var fernTestValueUserID *int64 + obj.SetUserID(fernTestValueUserID) + assert.Equal(t, fernTestValueUserID, obj.UserID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetUserTokenId", func(t *testing.T) { + t.Run("SetUserTokenID", func(t *testing.T) { obj := &UserAuthRequest{} - var fernTestValueUserTokenId *string - obj.SetUserTokenId(fernTestValueUserTokenId) - assert.Equal(t, fernTestValueUserTokenId, obj.UserTokenId) + var fernTestValueUserTokenID *string + obj.SetUserTokenID(fernTestValueUserTokenID) + assert.Equal(t, fernTestValueUserTokenID, obj.UserTokenID) assert.NotNil(t, obj.explicitFields) }) @@ -308,14 +308,14 @@ func TestSettersMarkExplicitUserAuthRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UserAuthRequest{} - var fernTestValueUserId *int64 + var fernTestValueUserID *int64 // Act - obj.SetUserId(fernTestValueUserId) + obj.SetUserID(fernTestValueUserID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -339,14 +339,14 @@ func TestSettersMarkExplicitUserAuthRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetUserTokenId_MarksExplicit", func(t *testing.T) { + t.Run("SetUserTokenID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &UserAuthRequest{} - var fernTestValueUserTokenId *string + var fernTestValueUserTokenID *string // Act - obj.SetUserTokenId(fernTestValueUserTokenId) + obj.SetUserTokenID(fernTestValueUserTokenID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -739,11 +739,11 @@ func TestSettersMarkExplicitMfaData(t *testing.T) { } func TestSettersOrgScope(t *testing.T) { - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &OrgScope{} - var fernTestValueOrgId *Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -758,28 +758,28 @@ func TestSettersOrgScope(t *testing.T) { } func TestGettersOrgScope(t *testing.T) { - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgScope{} var expected *Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilValue", func(t *testing.T) { + t.Run("GetOrgID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgScope{} - obj.OrgId = nil + obj.OrgID = nil // Act & Assert - assert.Nil(t, obj.GetOrgId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrgID(), "getter should return nil when property is nil") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *OrgScope // Should not panic - getters should handle nil receiver gracefully @@ -788,7 +788,7 @@ func TestGettersOrgScope(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) t.Run("GetOrgType", func(t *testing.T) { @@ -827,14 +827,14 @@ func TestGettersOrgScope(t *testing.T) { } func TestSettersMarkExplicitOrgScope(t *testing.T) { - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &OrgScope{} - var fernTestValueOrgId *Orgid + var fernTestValueOrgID *Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -891,9 +891,9 @@ func TestSettersMarkExplicitOrgScope(t *testing.T) { } -func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { +func TestSettersPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -901,7 +901,7 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { }) t.Run("SetMfa", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfa *Mfa obj.SetMfa(fernTestValueMfa) assert.Equal(t, fernTestValueMfa, obj.Mfa) @@ -909,7 +909,7 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { }) t.Run("SetMfaMode", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfaMode *string obj.SetMfaMode(fernTestValueMfaMode) assert.Equal(t, fernTestValueMfaMode, obj.MfaMode) @@ -917,7 +917,7 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { }) t.Run("SetMfaValidationCode", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfaValidationCode *MfaValidationCode obj.SetMfaValidationCode(fernTestValueMfaValidationCode) assert.Equal(t, fernTestValueMfaValidationCode, obj.MfaValidationCode) @@ -925,7 +925,7 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueResponseData *string obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -933,7 +933,7 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -942,11 +942,11 @@ func TestSettersPayabliApiResponseMfaBasic(t *testing.T) { } -func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { +func TestGettersPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected *IsSuccess obj.IsSuccess = expected @@ -957,7 +957,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} obj.IsSuccess = nil // Act & Assert @@ -966,7 +966,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -979,7 +979,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfa", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected *Mfa obj.Mfa = expected @@ -990,7 +990,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfa_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} obj.Mfa = nil // Act & Assert @@ -999,7 +999,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfa_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1012,7 +1012,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaMode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected *string obj.MfaMode = expected @@ -1023,7 +1023,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaMode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} obj.MfaMode = nil // Act & Assert @@ -1032,7 +1032,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaMode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1045,7 +1045,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaValidationCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected *MfaValidationCode obj.MfaValidationCode = expected @@ -1056,7 +1056,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaValidationCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} obj.MfaValidationCode = nil // Act & Assert @@ -1065,7 +1065,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetMfaValidationCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1078,7 +1078,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected *string obj.ResponseData = expected @@ -1089,7 +1089,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} obj.ResponseData = nil // Act & Assert @@ -1098,7 +1098,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1111,7 +1111,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var expected ResponseText obj.ResponseText = expected @@ -1121,7 +1121,7 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1133,11 +1133,11 @@ func TestGettersPayabliApiResponseMfaBasic(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueIsSuccess *IsSuccess // Act @@ -1168,7 +1168,7 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { t.Run("SetMfa_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfa *Mfa // Act @@ -1199,7 +1199,7 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { t.Run("SetMfaMode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfaMode *string // Act @@ -1230,7 +1230,7 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { t.Run("SetMfaValidationCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueMfaValidationCode *MfaValidationCode // Act @@ -1261,7 +1261,7 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueResponseData *string // Act @@ -1292,7 +1292,7 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} var fernTestValueResponseText ResponseText // Act @@ -1322,9 +1322,9 @@ func TestSettersMarkExplicitPayabliApiResponseMfaBasic(t *testing.T) { } -func TestSettersPayabliApiResponseUserMfa(t *testing.T) { +func TestSettersPayabliAPIResponseUserMfa(t *testing.T) { t.Run("SetInactiveTokenTime", func(t *testing.T) { - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueInactiveTokenTime *int obj.SetInactiveTokenTime(fernTestValueInactiveTokenTime) assert.Equal(t, fernTestValueInactiveTokenTime, obj.InactiveTokenTime) @@ -1332,7 +1332,7 @@ func TestSettersPayabliApiResponseUserMfa(t *testing.T) { }) t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -1340,7 +1340,7 @@ func TestSettersPayabliApiResponseUserMfa(t *testing.T) { }) t.Run("SetRemaining", func(t *testing.T) { - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueRemaining *int obj.SetRemaining(fernTestValueRemaining) assert.Equal(t, fernTestValueRemaining, obj.Remaining) @@ -1348,7 +1348,7 @@ func TestSettersPayabliApiResponseUserMfa(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueResponseData *Responsedatanonobject obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -1356,7 +1356,7 @@ func TestSettersPayabliApiResponseUserMfa(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -1365,11 +1365,11 @@ func TestSettersPayabliApiResponseUserMfa(t *testing.T) { } -func TestGettersPayabliApiResponseUserMfa(t *testing.T) { +func TestGettersPayabliAPIResponseUserMfa(t *testing.T) { t.Run("GetInactiveTokenTime", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var expected *int obj.InactiveTokenTime = expected @@ -1380,7 +1380,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetInactiveTokenTime_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} obj.InactiveTokenTime = nil // Act & Assert @@ -1389,7 +1389,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetInactiveTokenTime_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1402,7 +1402,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var expected *IsSuccess obj.IsSuccess = expected @@ -1413,7 +1413,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} obj.IsSuccess = nil // Act & Assert @@ -1422,7 +1422,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1435,7 +1435,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetRemaining", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var expected *int obj.Remaining = expected @@ -1446,7 +1446,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetRemaining_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} obj.Remaining = nil // Act & Assert @@ -1455,7 +1455,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetRemaining_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1468,7 +1468,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var expected *Responsedatanonobject obj.ResponseData = expected @@ -1479,7 +1479,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} obj.ResponseData = nil // Act & Assert @@ -1488,7 +1488,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1501,7 +1501,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var expected ResponseText obj.ResponseText = expected @@ -1511,7 +1511,7 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -1523,11 +1523,11 @@ func TestGettersPayabliApiResponseUserMfa(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseUserMfa(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseUserMfa(t *testing.T) { t.Run("SetInactiveTokenTime_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueInactiveTokenTime *int // Act @@ -1558,7 +1558,7 @@ func TestSettersMarkExplicitPayabliApiResponseUserMfa(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueIsSuccess *IsSuccess // Act @@ -1589,7 +1589,7 @@ func TestSettersMarkExplicitPayabliApiResponseUserMfa(t *testing.T) { t.Run("SetRemaining_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueRemaining *int // Act @@ -1620,7 +1620,7 @@ func TestSettersMarkExplicitPayabliApiResponseUserMfa(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueResponseData *Responsedatanonobject // Act @@ -1651,7 +1651,7 @@ func TestSettersMarkExplicitPayabliApiResponseUserMfa(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} var fernTestValueResponseText ResponseText // Act @@ -3604,11 +3604,11 @@ func TestJSONMarshalingOrgScope(t *testing.T) { }) } -func TestJSONMarshalingPayabliApiResponseMfaBasic(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3617,31 +3617,31 @@ func TestJSONMarshalingPayabliApiResponseMfaBasic(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseMfaBasic + var unmarshaled PayabliAPIResponseMfaBasic err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseMfaBasic + var obj PayabliAPIResponseMfaBasic err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseMfaBasic + var obj PayabliAPIResponseMfaBasic err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingPayabliApiResponseUserMfa(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseUserMfa(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3650,21 +3650,21 @@ func TestJSONMarshalingPayabliApiResponseUserMfa(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseUserMfa + var unmarshaled PayabliAPIResponseUserMfa err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseUserMfa + var obj PayabliAPIResponseUserMfa err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseUserMfa + var obj PayabliAPIResponseUserMfa err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -3831,33 +3831,33 @@ func TestStringOrgScope(t *testing.T) { }) } -func TestStringPayabliApiResponseMfaBasic(t *testing.T) { +func TestStringPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringPayabliApiResponseUserMfa(t *testing.T) { +func TestStringPayabliAPIResponseUserMfa(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4063,10 +4063,10 @@ func TestExtraPropertiesOrgScope(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponseMfaBasic(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseMfaBasic(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseMfaBasic{} + obj := &PayabliAPIResponseMfaBasic{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4080,16 +4080,16 @@ func TestExtraPropertiesPayabliApiResponseMfaBasic(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseMfaBasic + var obj *PayabliAPIResponseMfaBasic extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesPayabliApiResponseUserMfa(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseUserMfa(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseUserMfa{} + obj := &PayabliAPIResponseUserMfa{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4103,7 +4103,7 @@ func TestExtraPropertiesPayabliApiResponseUserMfa(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseUserMfa + var obj *PayabliAPIResponseUserMfa extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/v_2_money_in_types.go b/v2money_in_types.go similarity index 91% rename from v_2_money_in_types.go rename to v2money_in_types.go index 9ac55ca..39dbbe4 100644 --- a/v_2_money_in_types.go +++ b/v2money_in_types.go @@ -648,7 +648,7 @@ var ( v2TransactionDetailResponseDataFieldType = big.NewInt(1 << 11) v2TransactionDetailResponseDataFieldResponseCode = big.NewInt(1 << 12) v2TransactionDetailResponseDataFieldResponseCodeText = big.NewInt(1 << 13) - v2TransactionDetailResponseDataFieldCustomerVaultId = big.NewInt(1 << 14) + v2TransactionDetailResponseDataFieldCustomerVaultID = big.NewInt(1 << 14) v2TransactionDetailResponseDataFieldEmvAuthResponseData = big.NewInt(1 << 15) ) @@ -664,13 +664,13 @@ type V2TransactionDetailResponseData struct { AvsresponseText *AvsResponseText `json:"avsresponse_text,omitempty" url:"avsresponse_text,omitempty"` Cvvresponse *CvvResponse `json:"cvvresponse,omitempty" url:"cvvresponse,omitempty"` CvvresponseText *CvvResponseText `json:"cvvresponse_text,omitempty" url:"cvvresponse_text,omitempty"` - Orderid *OrderId `json:"orderid,omitempty" url:"orderid,omitempty"` + Orderid *OrderID `json:"orderid,omitempty" url:"orderid,omitempty"` Type *string `json:"type,omitempty" url:"type,omitempty"` // Processor-specific response code. ResponseCode string `json:"response_code" url:"response_code"` // Description of the response code. ResponseCodeText string `json:"response_code_text" url:"response_code_text"` - CustomerVaultId *CustomerVaultId `json:"customer_vault_id,omitempty" url:"customer_vault_id,omitempty"` + CustomerVaultID *CustomerVaultID `json:"customer_vault_id,omitempty" url:"customer_vault_id,omitempty"` EmvAuthResponseData *EmvAuthResponseData `json:"emv_auth_response_data,omitempty" url:"emv_auth_response_data,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted @@ -750,7 +750,7 @@ func (v *V2TransactionDetailResponseData) GetCvvresponseText() *CvvResponseText return v.CvvresponseText } -func (v *V2TransactionDetailResponseData) GetOrderid() *OrderId { +func (v *V2TransactionDetailResponseData) GetOrderid() *OrderID { if v == nil { return nil } @@ -778,11 +778,11 @@ func (v *V2TransactionDetailResponseData) GetResponseCodeText() string { return v.ResponseCodeText } -func (v *V2TransactionDetailResponseData) GetCustomerVaultId() *CustomerVaultId { +func (v *V2TransactionDetailResponseData) GetCustomerVaultID() *CustomerVaultID { if v == nil { return nil } - return v.CustomerVaultId + return v.CustomerVaultID } func (v *V2TransactionDetailResponseData) GetEmvAuthResponseData() *EmvAuthResponseData { @@ -878,7 +878,7 @@ func (v *V2TransactionDetailResponseData) SetCvvresponseText(cvvresponseText *Cv // SetOrderid sets the Orderid field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetailResponseData) SetOrderid(orderid *OrderId) { +func (v *V2TransactionDetailResponseData) SetOrderid(orderid *OrderID) { v.Orderid = orderid v.require(v2TransactionDetailResponseDataFieldOrderid) } @@ -904,11 +904,11 @@ func (v *V2TransactionDetailResponseData) SetResponseCodeText(responseCodeText s v.require(v2TransactionDetailResponseDataFieldResponseCodeText) } -// SetCustomerVaultId sets the CustomerVaultId field and marks it as non-optional; +// SetCustomerVaultID sets the CustomerVaultID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetailResponseData) SetCustomerVaultId(customerVaultId *CustomerVaultId) { - v.CustomerVaultId = customerVaultId - v.require(v2TransactionDetailResponseDataFieldCustomerVaultId) +func (v *V2TransactionDetailResponseData) SetCustomerVaultID(customerVaultID *CustomerVaultID) { + v.CustomerVaultID = customerVaultID + v.require(v2TransactionDetailResponseDataFieldCustomerVaultID) } // SetEmvAuthResponseData sets the EmvAuthResponseData field and marks it as non-optional; @@ -966,18 +966,18 @@ var ( v2TransactionDetailsFieldPaypointDbaname = big.NewInt(1 << 1) v2TransactionDetailsFieldPaypointLegalname = big.NewInt(1 << 2) v2TransactionDetailsFieldPaypointEntryname = big.NewInt(1 << 3) - v2TransactionDetailsFieldPaymentTransId = big.NewInt(1 << 4) + v2TransactionDetailsFieldPaymentTransID = big.NewInt(1 << 4) v2TransactionDetailsFieldConnectorName = big.NewInt(1 << 5) v2TransactionDetailsFieldExternalProcessorInformation = big.NewInt(1 << 6) - v2TransactionDetailsFieldGatewayTransId = big.NewInt(1 << 7) - v2TransactionDetailsFieldOrderId = big.NewInt(1 << 8) + v2TransactionDetailsFieldGatewayTransID = big.NewInt(1 << 7) + v2TransactionDetailsFieldOrderID = big.NewInt(1 << 8) v2TransactionDetailsFieldMethod = big.NewInt(1 << 9) v2TransactionDetailsFieldBatchNumber = big.NewInt(1 << 10) v2TransactionDetailsFieldBatchAmount = big.NewInt(1 << 11) - v2TransactionDetailsFieldPayorId = big.NewInt(1 << 12) + v2TransactionDetailsFieldPayorID = big.NewInt(1 << 12) v2TransactionDetailsFieldPaymentData = big.NewInt(1 << 13) v2TransactionDetailsFieldTransStatus = big.NewInt(1 << 14) - v2TransactionDetailsFieldPaypointId = big.NewInt(1 << 15) + v2TransactionDetailsFieldPaypointID = big.NewInt(1 << 15) v2TransactionDetailsFieldTotalAmount = big.NewInt(1 << 16) v2TransactionDetailsFieldNetAmount = big.NewInt(1 << 17) v2TransactionDetailsFieldFeeAmount = big.NewInt(1 << 18) @@ -986,15 +986,15 @@ var ( v2TransactionDetailsFieldResponseData = big.NewInt(1 << 21) v2TransactionDetailsFieldSource = big.NewInt(1 << 22) v2TransactionDetailsFieldScheduleReference = big.NewInt(1 << 23) - v2TransactionDetailsFieldOrgId = big.NewInt(1 << 24) - v2TransactionDetailsFieldRefundId = big.NewInt(1 << 25) - v2TransactionDetailsFieldReturnedId = big.NewInt(1 << 26) - v2TransactionDetailsFieldChargebackId = big.NewInt(1 << 27) - v2TransactionDetailsFieldRetrievalId = big.NewInt(1 << 28) + v2TransactionDetailsFieldOrgID = big.NewInt(1 << 24) + v2TransactionDetailsFieldRefundID = big.NewInt(1 << 25) + v2TransactionDetailsFieldReturnedID = big.NewInt(1 << 26) + v2TransactionDetailsFieldChargebackID = big.NewInt(1 << 27) + v2TransactionDetailsFieldRetrievalID = big.NewInt(1 << 28) v2TransactionDetailsFieldTransAdditionalData = big.NewInt(1 << 29) v2TransactionDetailsFieldInvoiceData = big.NewInt(1 << 30) - v2TransactionDetailsFieldEntrypageId = big.NewInt(1 << 31) - v2TransactionDetailsFieldExternalPaypointId = big.NewInt(1 << 32) + v2TransactionDetailsFieldEntrypageID = big.NewInt(1 << 31) + v2TransactionDetailsFieldExternalPaypointID = big.NewInt(1 << 32) v2TransactionDetailsFieldIsValidatedAch = big.NewInt(1 << 33) v2TransactionDetailsFieldTransactionTime = big.NewInt(1 << 34) v2TransactionDetailsFieldCustomer = big.NewInt(1 << 35) @@ -1008,10 +1008,10 @@ var ( v2TransactionDetailsFieldRiskReason = big.NewInt(1 << 43) v2TransactionDetailsFieldRiskAction = big.NewInt(1 << 44) v2TransactionDetailsFieldRiskActionCode = big.NewInt(1 << 45) - v2TransactionDetailsFieldDeviceId = big.NewInt(1 << 46) + v2TransactionDetailsFieldDeviceID = big.NewInt(1 << 46) v2TransactionDetailsFieldAchSecCode = big.NewInt(1 << 47) v2TransactionDetailsFieldAchHolderType = big.NewInt(1 << 48) - v2TransactionDetailsFieldIpAddress = big.NewInt(1 << 49) + v2TransactionDetailsFieldIPAddress = big.NewInt(1 << 49) v2TransactionDetailsFieldIsSameDayAch = big.NewInt(1 << 50) v2TransactionDetailsFieldWalletType = big.NewInt(1 << 51) ) @@ -1022,22 +1022,22 @@ type V2TransactionDetails struct { PaypointLegalname Legalname `json:"paypointLegalname" url:"paypointLegalname"` PaypointEntryname Entrypointfield `json:"paypointEntryname" url:"paypointEntryname"` // Unique transaction identifier. - PaymentTransId string `json:"paymentTransId" url:"paymentTransId"` + PaymentTransID string `json:"paymentTransId" url:"paymentTransId"` // Name of the payment connector used. ConnectorName string `json:"connectorName" url:"connectorName"` ExternalProcessorInformation ExternalProcessorInformation `json:"externalProcessorInformation" url:"externalProcessorInformation"` // Gateway transaction identifier. - GatewayTransId string `json:"gatewayTransId" url:"gatewayTransId"` - OrderId *OrderId `json:"orderId,omitempty" url:"orderId,omitempty"` + GatewayTransID string `json:"gatewayTransId" url:"gatewayTransId"` + OrderID *OrderID `json:"orderId,omitempty" url:"orderId,omitempty"` // Payment method used for the transaction. Method string `json:"method" url:"method"` BatchNumber BatchNumber `json:"batchNumber" url:"batchNumber"` // Total amount in the batch. BatchAmount float64 `json:"batchAmount" url:"batchAmount"` - PayorId PayorId `json:"payorId" url:"payorId"` + PayorID PayorID `json:"payorId" url:"payorId"` PaymentData *TransactionDetailPaymentData `json:"paymentData" url:"paymentData"` TransStatus TransStatus `json:"transStatus" url:"transStatus"` - PaypointId PaypointId `json:"paypointId" url:"paypointId"` + PaypointID PaypointID `json:"paypointId" url:"paypointId"` // Total transaction amount including fees. TotalAmount float64 `json:"totalAmount" url:"totalAmount"` // Net transaction amount excluding fees. @@ -1049,15 +1049,15 @@ type V2TransactionDetails struct { Source Source `json:"source" url:"source"` // Reference to associated payment schedule if applicable. ScheduleReference int64 `json:"scheduleReference" url:"scheduleReference"` - OrgId Orgid `json:"orgId" url:"orgId"` - RefundId RefundId `json:"refundId" url:"refundId"` - ReturnedId ReturnedId `json:"returnedId" url:"returnedId"` - ChargebackId ChargebackId `json:"chargebackId" url:"chargebackId"` - RetrievalId RetrievalId `json:"retrievalId" url:"retrievalId"` + OrgID Orgid `json:"orgId" url:"orgId"` + RefundID RefundID `json:"refundId" url:"refundId"` + ReturnedID ReturnedID `json:"returnedId" url:"returnedId"` + ChargebackID ChargebackID `json:"chargebackId" url:"chargebackId"` + RetrievalID RetrievalID `json:"retrievalId" url:"retrievalId"` TransAdditionalData any `json:"transAdditionalData,omitempty" url:"transAdditionalData,omitempty"` InvoiceData *TransactionDetailInvoiceData `json:"invoiceData" url:"invoiceData"` - EntrypageId EntrypageId `json:"entrypageId" url:"entrypageId"` - ExternalPaypointId ExternalPaypointId `json:"externalPaypointID" url:"externalPaypointID"` + EntrypageID EntrypageID `json:"entrypageId" url:"entrypageId"` + ExternalPaypointID ExternalPaypointID `json:"externalPaypointID" url:"externalPaypointID"` // Indicates if ACH account was validated in real-time. IsValidatedAch bool `json:"isValidatedACH" url:"isValidatedACH"` // Timestamp when transaction was created. @@ -1073,10 +1073,10 @@ type V2TransactionDetails struct { RiskReason RiskReason `json:"riskReason" url:"riskReason"` RiskAction RiskAction `json:"riskAction" url:"riskAction"` RiskActionCode *RiskActionCode `json:"riskActionCode,omitempty" url:"riskActionCode,omitempty"` - DeviceId Device `json:"deviceId" url:"deviceId"` + DeviceID Device `json:"deviceId" url:"deviceId"` AchSecCode AchSecCode `json:"achSecCode" url:"achSecCode"` AchHolderType AchHolderType `json:"achHolderType" url:"achHolderType"` - IpAddress IpAddress `json:"ipAddress" url:"ipAddress"` + IPAddress IPAddress `json:"ipAddress" url:"ipAddress"` // Indicates if ACH transaction uses same-day processing. IsSameDayAch bool `json:"isSameDayACH" url:"isSameDayACH"` // Digital wallet type if applicable. @@ -1117,11 +1117,11 @@ func (v *V2TransactionDetails) GetPaypointEntryname() Entrypointfield { return v.PaypointEntryname } -func (v *V2TransactionDetails) GetPaymentTransId() string { +func (v *V2TransactionDetails) GetPaymentTransID() string { if v == nil { return "" } - return v.PaymentTransId + return v.PaymentTransID } func (v *V2TransactionDetails) GetConnectorName() string { @@ -1138,18 +1138,18 @@ func (v *V2TransactionDetails) GetExternalProcessorInformation() ExternalProcess return v.ExternalProcessorInformation } -func (v *V2TransactionDetails) GetGatewayTransId() string { +func (v *V2TransactionDetails) GetGatewayTransID() string { if v == nil { return "" } - return v.GatewayTransId + return v.GatewayTransID } -func (v *V2TransactionDetails) GetOrderId() *OrderId { +func (v *V2TransactionDetails) GetOrderID() *OrderID { if v == nil { return nil } - return v.OrderId + return v.OrderID } func (v *V2TransactionDetails) GetMethod() string { @@ -1173,11 +1173,11 @@ func (v *V2TransactionDetails) GetBatchAmount() float64 { return v.BatchAmount } -func (v *V2TransactionDetails) GetPayorId() PayorId { +func (v *V2TransactionDetails) GetPayorID() PayorID { if v == nil { return 0 } - return v.PayorId + return v.PayorID } func (v *V2TransactionDetails) GetPaymentData() *TransactionDetailPaymentData { @@ -1194,11 +1194,11 @@ func (v *V2TransactionDetails) GetTransStatus() TransStatus { return v.TransStatus } -func (v *V2TransactionDetails) GetPaypointId() PaypointId { +func (v *V2TransactionDetails) GetPaypointID() PaypointID { if v == nil { return 0 } - return v.PaypointId + return v.PaypointID } func (v *V2TransactionDetails) GetTotalAmount() float64 { @@ -1257,39 +1257,39 @@ func (v *V2TransactionDetails) GetScheduleReference() int64 { return v.ScheduleReference } -func (v *V2TransactionDetails) GetOrgId() Orgid { +func (v *V2TransactionDetails) GetOrgID() Orgid { if v == nil { return 0 } - return v.OrgId + return v.OrgID } -func (v *V2TransactionDetails) GetRefundId() RefundId { +func (v *V2TransactionDetails) GetRefundID() RefundID { if v == nil { return 0 } - return v.RefundId + return v.RefundID } -func (v *V2TransactionDetails) GetReturnedId() ReturnedId { +func (v *V2TransactionDetails) GetReturnedID() ReturnedID { if v == nil { return 0 } - return v.ReturnedId + return v.ReturnedID } -func (v *V2TransactionDetails) GetChargebackId() ChargebackId { +func (v *V2TransactionDetails) GetChargebackID() ChargebackID { if v == nil { return 0 } - return v.ChargebackId + return v.ChargebackID } -func (v *V2TransactionDetails) GetRetrievalId() RetrievalId { +func (v *V2TransactionDetails) GetRetrievalID() RetrievalID { if v == nil { return 0 } - return v.RetrievalId + return v.RetrievalID } func (v *V2TransactionDetails) GetTransAdditionalData() any { @@ -1306,18 +1306,18 @@ func (v *V2TransactionDetails) GetInvoiceData() *TransactionDetailInvoiceData { return v.InvoiceData } -func (v *V2TransactionDetails) GetEntrypageId() EntrypageId { +func (v *V2TransactionDetails) GetEntrypageID() EntrypageID { if v == nil { return 0 } - return v.EntrypageId + return v.EntrypageID } -func (v *V2TransactionDetails) GetExternalPaypointId() ExternalPaypointId { +func (v *V2TransactionDetails) GetExternalPaypointID() ExternalPaypointID { if v == nil { return "" } - return v.ExternalPaypointId + return v.ExternalPaypointID } func (v *V2TransactionDetails) GetIsValidatedAch() bool { @@ -1411,11 +1411,11 @@ func (v *V2TransactionDetails) GetRiskActionCode() *RiskActionCode { return v.RiskActionCode } -func (v *V2TransactionDetails) GetDeviceId() Device { +func (v *V2TransactionDetails) GetDeviceID() Device { if v == nil { return "" } - return v.DeviceId + return v.DeviceID } func (v *V2TransactionDetails) GetAchSecCode() AchSecCode { @@ -1432,11 +1432,11 @@ func (v *V2TransactionDetails) GetAchHolderType() AchHolderType { return v.AchHolderType } -func (v *V2TransactionDetails) GetIpAddress() IpAddress { +func (v *V2TransactionDetails) GetIPAddress() IPAddress { if v == nil { return "" } - return v.IpAddress + return v.IPAddress } func (v *V2TransactionDetails) GetIsSameDayAch() bool { @@ -1495,11 +1495,11 @@ func (v *V2TransactionDetails) SetPaypointEntryname(paypointEntryname Entrypoint v.require(v2TransactionDetailsFieldPaypointEntryname) } -// SetPaymentTransId sets the PaymentTransId field and marks it as non-optional; +// SetPaymentTransID sets the PaymentTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetPaymentTransId(paymentTransId string) { - v.PaymentTransId = paymentTransId - v.require(v2TransactionDetailsFieldPaymentTransId) +func (v *V2TransactionDetails) SetPaymentTransID(paymentTransID string) { + v.PaymentTransID = paymentTransID + v.require(v2TransactionDetailsFieldPaymentTransID) } // SetConnectorName sets the ConnectorName field and marks it as non-optional; @@ -1516,18 +1516,18 @@ func (v *V2TransactionDetails) SetExternalProcessorInformation(externalProcessor v.require(v2TransactionDetailsFieldExternalProcessorInformation) } -// SetGatewayTransId sets the GatewayTransId field and marks it as non-optional; +// SetGatewayTransID sets the GatewayTransID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetGatewayTransId(gatewayTransId string) { - v.GatewayTransId = gatewayTransId - v.require(v2TransactionDetailsFieldGatewayTransId) +func (v *V2TransactionDetails) SetGatewayTransID(gatewayTransID string) { + v.GatewayTransID = gatewayTransID + v.require(v2TransactionDetailsFieldGatewayTransID) } -// SetOrderId sets the OrderId field and marks it as non-optional; +// SetOrderID sets the OrderID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetOrderId(orderId *OrderId) { - v.OrderId = orderId - v.require(v2TransactionDetailsFieldOrderId) +func (v *V2TransactionDetails) SetOrderID(orderID *OrderID) { + v.OrderID = orderID + v.require(v2TransactionDetailsFieldOrderID) } // SetMethod sets the Method field and marks it as non-optional; @@ -1551,11 +1551,11 @@ func (v *V2TransactionDetails) SetBatchAmount(batchAmount float64) { v.require(v2TransactionDetailsFieldBatchAmount) } -// SetPayorId sets the PayorId field and marks it as non-optional; +// SetPayorID sets the PayorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetPayorId(payorId PayorId) { - v.PayorId = payorId - v.require(v2TransactionDetailsFieldPayorId) +func (v *V2TransactionDetails) SetPayorID(payorID PayorID) { + v.PayorID = payorID + v.require(v2TransactionDetailsFieldPayorID) } // SetPaymentData sets the PaymentData field and marks it as non-optional; @@ -1572,11 +1572,11 @@ func (v *V2TransactionDetails) SetTransStatus(transStatus TransStatus) { v.require(v2TransactionDetailsFieldTransStatus) } -// SetPaypointId sets the PaypointId field and marks it as non-optional; +// SetPaypointID sets the PaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetPaypointId(paypointId PaypointId) { - v.PaypointId = paypointId - v.require(v2TransactionDetailsFieldPaypointId) +func (v *V2TransactionDetails) SetPaypointID(paypointID PaypointID) { + v.PaypointID = paypointID + v.require(v2TransactionDetailsFieldPaypointID) } // SetTotalAmount sets the TotalAmount field and marks it as non-optional; @@ -1635,39 +1635,39 @@ func (v *V2TransactionDetails) SetScheduleReference(scheduleReference int64) { v.require(v2TransactionDetailsFieldScheduleReference) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetOrgId(orgId Orgid) { - v.OrgId = orgId - v.require(v2TransactionDetailsFieldOrgId) +func (v *V2TransactionDetails) SetOrgID(orgID Orgid) { + v.OrgID = orgID + v.require(v2TransactionDetailsFieldOrgID) } -// SetRefundId sets the RefundId field and marks it as non-optional; +// SetRefundID sets the RefundID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetRefundId(refundId RefundId) { - v.RefundId = refundId - v.require(v2TransactionDetailsFieldRefundId) +func (v *V2TransactionDetails) SetRefundID(refundID RefundID) { + v.RefundID = refundID + v.require(v2TransactionDetailsFieldRefundID) } -// SetReturnedId sets the ReturnedId field and marks it as non-optional; +// SetReturnedID sets the ReturnedID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetReturnedId(returnedId ReturnedId) { - v.ReturnedId = returnedId - v.require(v2TransactionDetailsFieldReturnedId) +func (v *V2TransactionDetails) SetReturnedID(returnedID ReturnedID) { + v.ReturnedID = returnedID + v.require(v2TransactionDetailsFieldReturnedID) } -// SetChargebackId sets the ChargebackId field and marks it as non-optional; +// SetChargebackID sets the ChargebackID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetChargebackId(chargebackId ChargebackId) { - v.ChargebackId = chargebackId - v.require(v2TransactionDetailsFieldChargebackId) +func (v *V2TransactionDetails) SetChargebackID(chargebackID ChargebackID) { + v.ChargebackID = chargebackID + v.require(v2TransactionDetailsFieldChargebackID) } -// SetRetrievalId sets the RetrievalId field and marks it as non-optional; +// SetRetrievalID sets the RetrievalID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetRetrievalId(retrievalId RetrievalId) { - v.RetrievalId = retrievalId - v.require(v2TransactionDetailsFieldRetrievalId) +func (v *V2TransactionDetails) SetRetrievalID(retrievalID RetrievalID) { + v.RetrievalID = retrievalID + v.require(v2TransactionDetailsFieldRetrievalID) } // SetTransAdditionalData sets the TransAdditionalData field and marks it as non-optional; @@ -1684,18 +1684,18 @@ func (v *V2TransactionDetails) SetInvoiceData(invoiceData *TransactionDetailInvo v.require(v2TransactionDetailsFieldInvoiceData) } -// SetEntrypageId sets the EntrypageId field and marks it as non-optional; +// SetEntrypageID sets the EntrypageID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetEntrypageId(entrypageId EntrypageId) { - v.EntrypageId = entrypageId - v.require(v2TransactionDetailsFieldEntrypageId) +func (v *V2TransactionDetails) SetEntrypageID(entrypageID EntrypageID) { + v.EntrypageID = entrypageID + v.require(v2TransactionDetailsFieldEntrypageID) } -// SetExternalPaypointId sets the ExternalPaypointId field and marks it as non-optional; +// SetExternalPaypointID sets the ExternalPaypointID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetExternalPaypointId(externalPaypointId ExternalPaypointId) { - v.ExternalPaypointId = externalPaypointId - v.require(v2TransactionDetailsFieldExternalPaypointId) +func (v *V2TransactionDetails) SetExternalPaypointID(externalPaypointID ExternalPaypointID) { + v.ExternalPaypointID = externalPaypointID + v.require(v2TransactionDetailsFieldExternalPaypointID) } // SetIsValidatedAch sets the IsValidatedAch field and marks it as non-optional; @@ -1789,11 +1789,11 @@ func (v *V2TransactionDetails) SetRiskActionCode(riskActionCode *RiskActionCode) v.require(v2TransactionDetailsFieldRiskActionCode) } -// SetDeviceId sets the DeviceId field and marks it as non-optional; +// SetDeviceID sets the DeviceID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetDeviceId(deviceId Device) { - v.DeviceId = deviceId - v.require(v2TransactionDetailsFieldDeviceId) +func (v *V2TransactionDetails) SetDeviceID(deviceID Device) { + v.DeviceID = deviceID + v.require(v2TransactionDetailsFieldDeviceID) } // SetAchSecCode sets the AchSecCode field and marks it as non-optional; @@ -1810,11 +1810,11 @@ func (v *V2TransactionDetails) SetAchHolderType(achHolderType AchHolderType) { v.require(v2TransactionDetailsFieldAchHolderType) } -// SetIpAddress sets the IpAddress field and marks it as non-optional; +// SetIPAddress sets the IPAddress field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *V2TransactionDetails) SetIpAddress(ipAddress IpAddress) { - v.IpAddress = ipAddress - v.require(v2TransactionDetailsFieldIpAddress) +func (v *V2TransactionDetails) SetIPAddress(ipAddress IPAddress) { + v.IPAddress = ipAddress + v.require(v2TransactionDetailsFieldIPAddress) } // SetIsSameDayAch sets the IsSameDayAch field and marks it as non-optional; diff --git a/v_2_money_in_types_test.go b/v2money_in_types_test.go similarity index 95% rename from v_2_money_in_types_test.go rename to v2money_in_types_test.go index 3e69b5b..ed5a3b6 100644 --- a/v_2_money_in_types_test.go +++ b/v2money_in_types_test.go @@ -1408,7 +1408,7 @@ func TestSettersV2TransactionDetailResponseData(t *testing.T) { t.Run("SetOrderid", func(t *testing.T) { obj := &V2TransactionDetailResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID obj.SetOrderid(fernTestValueOrderid) assert.Equal(t, fernTestValueOrderid, obj.Orderid) assert.NotNil(t, obj.explicitFields) @@ -1438,11 +1438,11 @@ func TestSettersV2TransactionDetailResponseData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetCustomerVaultId", func(t *testing.T) { + t.Run("SetCustomerVaultID", func(t *testing.T) { obj := &V2TransactionDetailResponseData{} - var fernTestValueCustomerVaultId *CustomerVaultId - obj.SetCustomerVaultId(fernTestValueCustomerVaultId) - assert.Equal(t, fernTestValueCustomerVaultId, obj.CustomerVaultId) + var fernTestValueCustomerVaultID *CustomerVaultID + obj.SetCustomerVaultID(fernTestValueCustomerVaultID) + assert.Equal(t, fernTestValueCustomerVaultID, obj.CustomerVaultID) assert.NotNil(t, obj.explicitFields) }) @@ -1751,7 +1751,7 @@ func TestGettersV2TransactionDetailResponseData(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetailResponseData{} - var expected *OrderId + var expected *OrderID obj.Orderid = expected // Act & Assert @@ -1859,28 +1859,28 @@ func TestGettersV2TransactionDetailResponseData(t *testing.T) { _ = obj.GetResponseCodeText() // Should return zero value }) - t.Run("GetCustomerVaultId", func(t *testing.T) { + t.Run("GetCustomerVaultID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetailResponseData{} - var expected *CustomerVaultId - obj.CustomerVaultId = expected + var expected *CustomerVaultID + obj.CustomerVaultID = expected // Act & Assert - assert.Equal(t, expected, obj.GetCustomerVaultId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetCustomerVaultID(), "getter should return the property value") }) - t.Run("GetCustomerVaultId_NilValue", func(t *testing.T) { + t.Run("GetCustomerVaultID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetailResponseData{} - obj.CustomerVaultId = nil + obj.CustomerVaultID = nil // Act & Assert - assert.Nil(t, obj.GetCustomerVaultId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetCustomerVaultID(), "getter should return nil when property is nil") }) - t.Run("GetCustomerVaultId_NilReceiver", func(t *testing.T) { + t.Run("GetCustomerVaultID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetailResponseData // Should not panic - getters should handle nil receiver gracefully @@ -1889,7 +1889,7 @@ func TestGettersV2TransactionDetailResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetCustomerVaultId() // Should return zero value + _ = obj.GetCustomerVaultID() // Should return zero value }) t.Run("GetEmvAuthResponseData", func(t *testing.T) { @@ -2242,7 +2242,7 @@ func TestSettersMarkExplicitV2TransactionDetailResponseData(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetailResponseData{} - var fernTestValueOrderid *OrderId + var fernTestValueOrderid *OrderID // Act obj.SetOrderid(fernTestValueOrderid) @@ -2362,14 +2362,14 @@ func TestSettersMarkExplicitV2TransactionDetailResponseData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetCustomerVaultId_MarksExplicit", func(t *testing.T) { + t.Run("SetCustomerVaultID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetailResponseData{} - var fernTestValueCustomerVaultId *CustomerVaultId + var fernTestValueCustomerVaultID *CustomerVaultID // Act - obj.SetCustomerVaultId(fernTestValueCustomerVaultId) + obj.SetCustomerVaultID(fernTestValueCustomerVaultID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2459,11 +2459,11 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaymentTransId", func(t *testing.T) { + t.Run("SetPaymentTransID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValuePaymentTransId string - obj.SetPaymentTransId(fernTestValuePaymentTransId) - assert.Equal(t, fernTestValuePaymentTransId, obj.PaymentTransId) + var fernTestValuePaymentTransID string + obj.SetPaymentTransID(fernTestValuePaymentTransID) + assert.Equal(t, fernTestValuePaymentTransID, obj.PaymentTransID) assert.NotNil(t, obj.explicitFields) }) @@ -2483,19 +2483,19 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayTransId", func(t *testing.T) { + t.Run("SetGatewayTransID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueGatewayTransId string - obj.SetGatewayTransId(fernTestValueGatewayTransId) - assert.Equal(t, fernTestValueGatewayTransId, obj.GatewayTransId) + var fernTestValueGatewayTransID string + obj.SetGatewayTransID(fernTestValueGatewayTransID) + assert.Equal(t, fernTestValueGatewayTransID, obj.GatewayTransID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrderId", func(t *testing.T) { + t.Run("SetOrderID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueOrderId *OrderId - obj.SetOrderId(fernTestValueOrderId) - assert.Equal(t, fernTestValueOrderId, obj.OrderId) + var fernTestValueOrderID *OrderID + obj.SetOrderID(fernTestValueOrderID) + assert.Equal(t, fernTestValueOrderID, obj.OrderID) assert.NotNil(t, obj.explicitFields) }) @@ -2523,11 +2523,11 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPayorId", func(t *testing.T) { + t.Run("SetPayorID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValuePayorId PayorId - obj.SetPayorId(fernTestValuePayorId) - assert.Equal(t, fernTestValuePayorId, obj.PayorId) + var fernTestValuePayorID PayorID + obj.SetPayorID(fernTestValuePayorID) + assert.Equal(t, fernTestValuePayorID, obj.PayorID) assert.NotNil(t, obj.explicitFields) }) @@ -2547,11 +2547,11 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointId", func(t *testing.T) { + t.Run("SetPaypointID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValuePaypointId PaypointId - obj.SetPaypointId(fernTestValuePaypointId) - assert.Equal(t, fernTestValuePaypointId, obj.PaypointId) + var fernTestValuePaypointID PaypointID + obj.SetPaypointID(fernTestValuePaypointID) + assert.Equal(t, fernTestValuePaypointID, obj.PaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2619,43 +2619,43 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueOrgId Orgid - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID Orgid + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRefundId", func(t *testing.T) { + t.Run("SetRefundID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueRefundId RefundId - obj.SetRefundId(fernTestValueRefundId) - assert.Equal(t, fernTestValueRefundId, obj.RefundId) + var fernTestValueRefundID RefundID + obj.SetRefundID(fernTestValueRefundID) + assert.Equal(t, fernTestValueRefundID, obj.RefundID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetReturnedId", func(t *testing.T) { + t.Run("SetReturnedID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueReturnedId ReturnedId - obj.SetReturnedId(fernTestValueReturnedId) - assert.Equal(t, fernTestValueReturnedId, obj.ReturnedId) + var fernTestValueReturnedID ReturnedID + obj.SetReturnedID(fernTestValueReturnedID) + assert.Equal(t, fernTestValueReturnedID, obj.ReturnedID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetChargebackId", func(t *testing.T) { + t.Run("SetChargebackID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueChargebackId ChargebackId - obj.SetChargebackId(fernTestValueChargebackId) - assert.Equal(t, fernTestValueChargebackId, obj.ChargebackId) + var fernTestValueChargebackID ChargebackID + obj.SetChargebackID(fernTestValueChargebackID) + assert.Equal(t, fernTestValueChargebackID, obj.ChargebackID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRetrievalId", func(t *testing.T) { + t.Run("SetRetrievalID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueRetrievalId RetrievalId - obj.SetRetrievalId(fernTestValueRetrievalId) - assert.Equal(t, fernTestValueRetrievalId, obj.RetrievalId) + var fernTestValueRetrievalID RetrievalID + obj.SetRetrievalID(fernTestValueRetrievalID) + assert.Equal(t, fernTestValueRetrievalID, obj.RetrievalID) assert.NotNil(t, obj.explicitFields) }) @@ -2675,19 +2675,19 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetEntrypageId", func(t *testing.T) { + t.Run("SetEntrypageID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueEntrypageId EntrypageId - obj.SetEntrypageId(fernTestValueEntrypageId) - assert.Equal(t, fernTestValueEntrypageId, obj.EntrypageId) + var fernTestValueEntrypageID EntrypageID + obj.SetEntrypageID(fernTestValueEntrypageID) + assert.Equal(t, fernTestValueEntrypageID, obj.EntrypageID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetExternalPaypointId", func(t *testing.T) { + t.Run("SetExternalPaypointID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueExternalPaypointId ExternalPaypointId - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) - assert.Equal(t, fernTestValueExternalPaypointId, obj.ExternalPaypointId) + var fernTestValueExternalPaypointID ExternalPaypointID + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) + assert.Equal(t, fernTestValueExternalPaypointID, obj.ExternalPaypointID) assert.NotNil(t, obj.explicitFields) }) @@ -2795,11 +2795,11 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetDeviceId", func(t *testing.T) { + t.Run("SetDeviceID", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueDeviceId Device - obj.SetDeviceId(fernTestValueDeviceId) - assert.Equal(t, fernTestValueDeviceId, obj.DeviceId) + var fernTestValueDeviceID Device + obj.SetDeviceID(fernTestValueDeviceID) + assert.Equal(t, fernTestValueDeviceID, obj.DeviceID) assert.NotNil(t, obj.explicitFields) }) @@ -2819,11 +2819,11 @@ func TestSettersV2TransactionDetails(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetIpAddress", func(t *testing.T) { + t.Run("SetIPAddress", func(t *testing.T) { obj := &V2TransactionDetails{} - var fernTestValueIpAddress IpAddress - obj.SetIpAddress(fernTestValueIpAddress) - assert.Equal(t, fernTestValueIpAddress, obj.IpAddress) + var fernTestValueIPAddress IPAddress + obj.SetIPAddress(fernTestValueIPAddress) + assert.Equal(t, fernTestValueIPAddress, obj.IPAddress) assert.NotNil(t, obj.explicitFields) }) @@ -2938,18 +2938,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetPaypointEntryname() // Should return zero value }) - t.Run("GetPaymentTransId", func(t *testing.T) { + t.Run("GetPaymentTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} var expected string - obj.PaymentTransId = expected + obj.PaymentTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaymentTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaymentTransID(), "getter should return the property value") }) - t.Run("GetPaymentTransId_NilReceiver", func(t *testing.T) { + t.Run("GetPaymentTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -2958,7 +2958,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaymentTransId() // Should return zero value + _ = obj.GetPaymentTransID() // Should return zero value }) t.Run("GetConnectorName", func(t *testing.T) { @@ -3007,18 +3007,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetExternalProcessorInformation() // Should return zero value }) - t.Run("GetGatewayTransId", func(t *testing.T) { + t.Run("GetGatewayTransID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} var expected string - obj.GatewayTransId = expected + obj.GatewayTransID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayTransId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayTransID(), "getter should return the property value") }) - t.Run("GetGatewayTransId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayTransID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3027,31 +3027,31 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayTransId() // Should return zero value + _ = obj.GetGatewayTransID() // Should return zero value }) - t.Run("GetOrderId", func(t *testing.T) { + t.Run("GetOrderID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected *OrderId - obj.OrderId = expected + var expected *OrderID + obj.OrderID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrderId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrderID(), "getter should return the property value") }) - t.Run("GetOrderId_NilValue", func(t *testing.T) { + t.Run("GetOrderID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - obj.OrderId = nil + obj.OrderID = nil // Act & Assert - assert.Nil(t, obj.GetOrderId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrderID(), "getter should return nil when property is nil") }) - t.Run("GetOrderId_NilReceiver", func(t *testing.T) { + t.Run("GetOrderID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3060,7 +3060,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrderId() // Should return zero value + _ = obj.GetOrderID() // Should return zero value }) t.Run("GetMethod", func(t *testing.T) { @@ -3132,18 +3132,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetBatchAmount() // Should return zero value }) - t.Run("GetPayorId", func(t *testing.T) { + t.Run("GetPayorID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected PayorId - obj.PayorId = expected + var expected PayorID + obj.PayorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPayorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPayorID(), "getter should return the property value") }) - t.Run("GetPayorId_NilReceiver", func(t *testing.T) { + t.Run("GetPayorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3152,7 +3152,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPayorId() // Should return zero value + _ = obj.GetPayorID() // Should return zero value }) t.Run("GetPaymentData", func(t *testing.T) { @@ -3211,18 +3211,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetTransStatus() // Should return zero value }) - t.Run("GetPaypointId", func(t *testing.T) { + t.Run("GetPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected PaypointId - obj.PaypointId = expected + var expected PaypointID + obj.PaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointID(), "getter should return the property value") }) - t.Run("GetPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3231,7 +3231,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointId() // Should return zero value + _ = obj.GetPaypointID() // Should return zero value }) t.Run("GetTotalAmount", func(t *testing.T) { @@ -3428,18 +3428,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetScheduleReference() // Should return zero value }) - t.Run("GetOrgId", func(t *testing.T) { + t.Run("GetOrgID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} var expected Orgid - obj.OrgId = expected + obj.OrgID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrgId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrgID(), "getter should return the property value") }) - t.Run("GetOrgId_NilReceiver", func(t *testing.T) { + t.Run("GetOrgID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3448,21 +3448,21 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrgId() // Should return zero value + _ = obj.GetOrgID() // Should return zero value }) - t.Run("GetRefundId", func(t *testing.T) { + t.Run("GetRefundID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected RefundId - obj.RefundId = expected + var expected RefundID + obj.RefundID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRefundId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRefundID(), "getter should return the property value") }) - t.Run("GetRefundId_NilReceiver", func(t *testing.T) { + t.Run("GetRefundID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3471,21 +3471,21 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRefundId() // Should return zero value + _ = obj.GetRefundID() // Should return zero value }) - t.Run("GetReturnedId", func(t *testing.T) { + t.Run("GetReturnedID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected ReturnedId - obj.ReturnedId = expected + var expected ReturnedID + obj.ReturnedID = expected // Act & Assert - assert.Equal(t, expected, obj.GetReturnedId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetReturnedID(), "getter should return the property value") }) - t.Run("GetReturnedId_NilReceiver", func(t *testing.T) { + t.Run("GetReturnedID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3494,21 +3494,21 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetReturnedId() // Should return zero value + _ = obj.GetReturnedID() // Should return zero value }) - t.Run("GetChargebackId", func(t *testing.T) { + t.Run("GetChargebackID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected ChargebackId - obj.ChargebackId = expected + var expected ChargebackID + obj.ChargebackID = expected // Act & Assert - assert.Equal(t, expected, obj.GetChargebackId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetChargebackID(), "getter should return the property value") }) - t.Run("GetChargebackId_NilReceiver", func(t *testing.T) { + t.Run("GetChargebackID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3517,21 +3517,21 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetChargebackId() // Should return zero value + _ = obj.GetChargebackID() // Should return zero value }) - t.Run("GetRetrievalId", func(t *testing.T) { + t.Run("GetRetrievalID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected RetrievalId - obj.RetrievalId = expected + var expected RetrievalID + obj.RetrievalID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRetrievalId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRetrievalID(), "getter should return the property value") }) - t.Run("GetRetrievalId_NilReceiver", func(t *testing.T) { + t.Run("GetRetrievalID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3540,7 +3540,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRetrievalId() // Should return zero value + _ = obj.GetRetrievalID() // Should return zero value }) t.Run("GetTransAdditionalData", func(t *testing.T) { @@ -3599,18 +3599,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetInvoiceData() // Should return zero value }) - t.Run("GetEntrypageId", func(t *testing.T) { + t.Run("GetEntrypageID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected EntrypageId - obj.EntrypageId = expected + var expected EntrypageID + obj.EntrypageID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEntrypageId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEntrypageID(), "getter should return the property value") }) - t.Run("GetEntrypageId_NilReceiver", func(t *testing.T) { + t.Run("GetEntrypageID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3619,21 +3619,21 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEntrypageId() // Should return zero value + _ = obj.GetEntrypageID() // Should return zero value }) - t.Run("GetExternalPaypointId", func(t *testing.T) { + t.Run("GetExternalPaypointID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected ExternalPaypointId - obj.ExternalPaypointId = expected + var expected ExternalPaypointID + obj.ExternalPaypointID = expected // Act & Assert - assert.Equal(t, expected, obj.GetExternalPaypointId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetExternalPaypointID(), "getter should return the property value") }) - t.Run("GetExternalPaypointId_NilReceiver", func(t *testing.T) { + t.Run("GetExternalPaypointID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -3642,7 +3642,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetExternalPaypointId() // Should return zero value + _ = obj.GetExternalPaypointID() // Should return zero value }) t.Run("GetIsValidatedAch", func(t *testing.T) { @@ -4024,18 +4024,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetRiskActionCode() // Should return zero value }) - t.Run("GetDeviceId", func(t *testing.T) { + t.Run("GetDeviceID", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} var expected Device - obj.DeviceId = expected + obj.DeviceID = expected // Act & Assert - assert.Equal(t, expected, obj.GetDeviceId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetDeviceID(), "getter should return the property value") }) - t.Run("GetDeviceId_NilReceiver", func(t *testing.T) { + t.Run("GetDeviceID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -4044,7 +4044,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetDeviceId() // Should return zero value + _ = obj.GetDeviceID() // Should return zero value }) t.Run("GetAchSecCode", func(t *testing.T) { @@ -4093,18 +4093,18 @@ func TestGettersV2TransactionDetails(t *testing.T) { _ = obj.GetAchHolderType() // Should return zero value }) - t.Run("GetIpAddress", func(t *testing.T) { + t.Run("GetIPAddress", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var expected IpAddress - obj.IpAddress = expected + var expected IPAddress + obj.IPAddress = expected // Act & Assert - assert.Equal(t, expected, obj.GetIpAddress(), "getter should return the property value") + assert.Equal(t, expected, obj.GetIPAddress(), "getter should return the property value") }) - t.Run("GetIpAddress_NilReceiver", func(t *testing.T) { + t.Run("GetIPAddress_NilReceiver", func(t *testing.T) { t.Parallel() var obj *V2TransactionDetails // Should not panic - getters should handle nil receiver gracefully @@ -4113,7 +4113,7 @@ func TestGettersV2TransactionDetails(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetIpAddress() // Should return zero value + _ = obj.GetIPAddress() // Should return zero value }) t.Run("GetIsSameDayAch", func(t *testing.T) { @@ -4299,14 +4299,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaymentTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaymentTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValuePaymentTransId string + var fernTestValuePaymentTransID string // Act - obj.SetPaymentTransId(fernTestValuePaymentTransId) + obj.SetPaymentTransID(fernTestValuePaymentTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4392,14 +4392,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayTransId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayTransID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueGatewayTransId string + var fernTestValueGatewayTransID string // Act - obj.SetGatewayTransId(fernTestValueGatewayTransId) + obj.SetGatewayTransID(fernTestValueGatewayTransID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4423,14 +4423,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrderId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrderID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueOrderId *OrderId + var fernTestValueOrderID *OrderID // Act - obj.SetOrderId(fernTestValueOrderId) + obj.SetOrderID(fernTestValueOrderID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4547,14 +4547,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPayorId_MarksExplicit", func(t *testing.T) { + t.Run("SetPayorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValuePayorId PayorId + var fernTestValuePayorID PayorID // Act - obj.SetPayorId(fernTestValuePayorId) + obj.SetPayorID(fernTestValuePayorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4640,14 +4640,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValuePaypointId PaypointId + var fernTestValuePaypointID PaypointID // Act - obj.SetPaypointId(fernTestValuePaypointId) + obj.SetPaypointID(fernTestValuePaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4919,14 +4919,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueOrgId Orgid + var fernTestValueOrgID Orgid // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4950,14 +4950,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRefundId_MarksExplicit", func(t *testing.T) { + t.Run("SetRefundID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueRefundId RefundId + var fernTestValueRefundID RefundID // Act - obj.SetRefundId(fernTestValueRefundId) + obj.SetRefundID(fernTestValueRefundID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4981,14 +4981,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetReturnedId_MarksExplicit", func(t *testing.T) { + t.Run("SetReturnedID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueReturnedId ReturnedId + var fernTestValueReturnedID ReturnedID // Act - obj.SetReturnedId(fernTestValueReturnedId) + obj.SetReturnedID(fernTestValueReturnedID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5012,14 +5012,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetChargebackId_MarksExplicit", func(t *testing.T) { + t.Run("SetChargebackID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueChargebackId ChargebackId + var fernTestValueChargebackID ChargebackID // Act - obj.SetChargebackId(fernTestValueChargebackId) + obj.SetChargebackID(fernTestValueChargebackID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5043,14 +5043,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRetrievalId_MarksExplicit", func(t *testing.T) { + t.Run("SetRetrievalID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueRetrievalId RetrievalId + var fernTestValueRetrievalID RetrievalID // Act - obj.SetRetrievalId(fernTestValueRetrievalId) + obj.SetRetrievalID(fernTestValueRetrievalID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5136,14 +5136,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetEntrypageId_MarksExplicit", func(t *testing.T) { + t.Run("SetEntrypageID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueEntrypageId EntrypageId + var fernTestValueEntrypageID EntrypageID // Act - obj.SetEntrypageId(fernTestValueEntrypageId) + obj.SetEntrypageID(fernTestValueEntrypageID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5167,14 +5167,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetExternalPaypointId_MarksExplicit", func(t *testing.T) { + t.Run("SetExternalPaypointID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueExternalPaypointId ExternalPaypointId + var fernTestValueExternalPaypointID ExternalPaypointID // Act - obj.SetExternalPaypointId(fernTestValueExternalPaypointId) + obj.SetExternalPaypointID(fernTestValueExternalPaypointID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5601,14 +5601,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetDeviceId_MarksExplicit", func(t *testing.T) { + t.Run("SetDeviceID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueDeviceId Device + var fernTestValueDeviceID Device // Act - obj.SetDeviceId(fernTestValueDeviceId) + obj.SetDeviceID(fernTestValueDeviceID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -5694,14 +5694,14 @@ func TestSettersMarkExplicitV2TransactionDetails(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetIpAddress_MarksExplicit", func(t *testing.T) { + t.Run("SetIPAddress_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &V2TransactionDetails{} - var fernTestValueIpAddress IpAddress + var fernTestValueIPAddress IPAddress // Act - obj.SetIpAddress(fernTestValueIpAddress) + obj.SetIPAddress(fernTestValueIPAddress) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) diff --git a/vendor.go b/vendor.go index 1b78712..c20c858 100644 --- a/vendor.go +++ b/vendor.go @@ -10,14 +10,14 @@ import ( ) var ( - payabliApiResponseVendorsFieldIsSuccess = big.NewInt(1 << 0) - payabliApiResponseVendorsFieldPageIdentifier = big.NewInt(1 << 1) - payabliApiResponseVendorsFieldResponseCode = big.NewInt(1 << 2) - payabliApiResponseVendorsFieldResponseData = big.NewInt(1 << 3) - payabliApiResponseVendorsFieldResponseText = big.NewInt(1 << 4) + payabliAPIResponseVendorsFieldIsSuccess = big.NewInt(1 << 0) + payabliAPIResponseVendorsFieldPageIdentifier = big.NewInt(1 << 1) + payabliAPIResponseVendorsFieldResponseCode = big.NewInt(1 << 2) + payabliAPIResponseVendorsFieldResponseData = big.NewInt(1 << 3) + payabliAPIResponseVendorsFieldResponseText = big.NewInt(1 << 4) ) -type PayabliApiResponseVendors struct { +type PayabliAPIResponseVendors struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` @@ -32,49 +32,49 @@ type PayabliApiResponseVendors struct { rawJSON json.RawMessage } -func (p *PayabliApiResponseVendors) GetIsSuccess() *IsSuccess { +func (p *PayabliAPIResponseVendors) GetIsSuccess() *IsSuccess { if p == nil { return nil } return p.IsSuccess } -func (p *PayabliApiResponseVendors) GetPageIdentifier() *PageIdentifier { +func (p *PayabliAPIResponseVendors) GetPageIdentifier() *PageIdentifier { if p == nil { return nil } return p.PageIdentifier } -func (p *PayabliApiResponseVendors) GetResponseCode() *Responsecode { +func (p *PayabliAPIResponseVendors) GetResponseCode() *Responsecode { if p == nil { return nil } return p.ResponseCode } -func (p *PayabliApiResponseVendors) GetResponseData() *int { +func (p *PayabliAPIResponseVendors) GetResponseData() *int { if p == nil { return nil } return p.ResponseData } -func (p *PayabliApiResponseVendors) GetResponseText() ResponseText { +func (p *PayabliAPIResponseVendors) GetResponseText() ResponseText { if p == nil { return "" } return p.ResponseText } -func (p *PayabliApiResponseVendors) GetExtraProperties() map[string]interface{} { +func (p *PayabliAPIResponseVendors) GetExtraProperties() map[string]interface{} { if p == nil { return nil } return p.extraProperties } -func (p *PayabliApiResponseVendors) require(field *big.Int) { +func (p *PayabliAPIResponseVendors) require(field *big.Int) { if p.explicitFields == nil { p.explicitFields = big.NewInt(0) } @@ -83,46 +83,46 @@ func (p *PayabliApiResponseVendors) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseVendors) SetIsSuccess(isSuccess *IsSuccess) { +func (p *PayabliAPIResponseVendors) SetIsSuccess(isSuccess *IsSuccess) { p.IsSuccess = isSuccess - p.require(payabliApiResponseVendorsFieldIsSuccess) + p.require(payabliAPIResponseVendorsFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseVendors) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (p *PayabliAPIResponseVendors) SetPageIdentifier(pageIdentifier *PageIdentifier) { p.PageIdentifier = pageIdentifier - p.require(payabliApiResponseVendorsFieldPageIdentifier) + p.require(payabliAPIResponseVendorsFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseVendors) SetResponseCode(responseCode *Responsecode) { +func (p *PayabliAPIResponseVendors) SetResponseCode(responseCode *Responsecode) { p.ResponseCode = responseCode - p.require(payabliApiResponseVendorsFieldResponseCode) + p.require(payabliAPIResponseVendorsFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseVendors) SetResponseData(responseData *int) { +func (p *PayabliAPIResponseVendors) SetResponseData(responseData *int) { p.ResponseData = responseData - p.require(payabliApiResponseVendorsFieldResponseData) + p.require(payabliAPIResponseVendorsFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (p *PayabliApiResponseVendors) SetResponseText(responseText ResponseText) { +func (p *PayabliAPIResponseVendors) SetResponseText(responseText ResponseText) { p.ResponseText = responseText - p.require(payabliApiResponseVendorsFieldResponseText) + p.require(payabliAPIResponseVendorsFieldResponseText) } -func (p *PayabliApiResponseVendors) UnmarshalJSON(data []byte) error { - type unmarshaler PayabliApiResponseVendors +func (p *PayabliAPIResponseVendors) UnmarshalJSON(data []byte) error { + type unmarshaler PayabliAPIResponseVendors var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *p = PayabliApiResponseVendors(value) + *p = PayabliAPIResponseVendors(value) extraProperties, err := internal.ExtractExtraProperties(data, *p) if err != nil { return err @@ -132,8 +132,8 @@ func (p *PayabliApiResponseVendors) UnmarshalJSON(data []byte) error { return nil } -func (p *PayabliApiResponseVendors) MarshalJSON() ([]byte, error) { - type embed PayabliApiResponseVendors +func (p *PayabliAPIResponseVendors) MarshalJSON() ([]byte, error) { + type embed PayabliAPIResponseVendors var marshaler = struct { embed }{ @@ -143,7 +143,7 @@ func (p *PayabliApiResponseVendors) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (p *PayabliApiResponseVendors) String() string { +func (p *PayabliAPIResponseVendors) String() string { if p == nil { return "" } @@ -160,18 +160,18 @@ func (p *PayabliApiResponseVendors) String() string { // Request body for the vendor enrichment endpoint. var ( - vendorEnrichRequestFieldVendorId = big.NewInt(1 << 0) + vendorEnrichRequestFieldVendorID = big.NewInt(1 << 0) vendorEnrichRequestFieldScope = big.NewInt(1 << 1) vendorEnrichRequestFieldApplyEnrichmentData = big.NewInt(1 << 2) vendorEnrichRequestFieldScheduleCallIfNeeded = big.NewInt(1 << 3) vendorEnrichRequestFieldInvoiceFile = big.NewInt(1 << 4) - vendorEnrichRequestFieldBillId = big.NewInt(1 << 5) + vendorEnrichRequestFieldBillID = big.NewInt(1 << 5) vendorEnrichRequestFieldFallbackMethod = big.NewInt(1 << 6) ) type VendorEnrichRequest struct { // ID of the vendor to enrich. Must be active and belong to the given entrypoint. - VendorId int64 `json:"vendorId" url:"vendorId"` + VendorID int64 `json:"vendorId" url:"vendorId"` // Enrichment stages to run. Valid values are `invoice_scan` and `web_search`. Stages run in order: invoice scan first, then web search. If the vendor becomes payout-ready after invoice scan, web search is skipped. Scope []string `json:"scope,omitempty" url:"scope,omitempty"` // When `true` (the default), extracted data is automatically written to the vendor record. Only empty fields are populated, existing values are never overwritten. When `false`, the vendor record isn't modified. In both cases, `enrichmentData` in the response contains the extracted results. Use `false` for UI flows where users review and confirm changes before applying them with the update vendor endpoint. @@ -181,7 +181,7 @@ type VendorEnrichRequest struct { // PDF invoice file, Base64-encoded. Required when `scope` includes `invoice_scan`. InvoiceFile *FileContent `json:"invoiceFile,omitempty" url:"invoiceFile,omitempty"` // Bill ID to associate with this enrichment request. - BillId *int64 `json:"billId,omitempty" url:"billId,omitempty"` + BillID *int64 `json:"billId,omitempty" url:"billId,omitempty"` // Payment method to apply if enrichment can't find payment details. Values are `check`, `ach`, or `card`. FallbackMethod *string `json:"fallbackMethod,omitempty" url:"fallbackMethod,omitempty"` @@ -192,11 +192,11 @@ type VendorEnrichRequest struct { rawJSON json.RawMessage } -func (v *VendorEnrichRequest) GetVendorId() int64 { +func (v *VendorEnrichRequest) GetVendorID() int64 { if v == nil { return 0 } - return v.VendorId + return v.VendorID } func (v *VendorEnrichRequest) GetScope() []string { @@ -227,11 +227,11 @@ func (v *VendorEnrichRequest) GetInvoiceFile() *FileContent { return v.InvoiceFile } -func (v *VendorEnrichRequest) GetBillId() *int64 { +func (v *VendorEnrichRequest) GetBillID() *int64 { if v == nil { return nil } - return v.BillId + return v.BillID } func (v *VendorEnrichRequest) GetFallbackMethod() *string { @@ -255,11 +255,11 @@ func (v *VendorEnrichRequest) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetVendorId sets the VendorId field and marks it as non-optional; +// SetVendorID sets the VendorID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorEnrichRequest) SetVendorId(vendorId int64) { - v.VendorId = vendorId - v.require(vendorEnrichRequestFieldVendorId) +func (v *VendorEnrichRequest) SetVendorID(vendorID int64) { + v.VendorID = vendorID + v.require(vendorEnrichRequestFieldVendorID) } // SetScope sets the Scope field and marks it as non-optional; @@ -290,11 +290,11 @@ func (v *VendorEnrichRequest) SetInvoiceFile(invoiceFile *FileContent) { v.require(vendorEnrichRequestFieldInvoiceFile) } -// SetBillId sets the BillId field and marks it as non-optional; +// SetBillID sets the BillID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorEnrichRequest) SetBillId(billId *int64) { - v.BillId = billId - v.require(vendorEnrichRequestFieldBillId) +func (v *VendorEnrichRequest) SetBillID(billID *int64) { + v.BillID = billID + v.require(vendorEnrichRequestFieldBillID) } // SetFallbackMethod sets the FallbackMethod field and marks it as non-optional; @@ -350,7 +350,7 @@ func (v *VendorEnrichRequest) String() string { var ( vendorEnrichResponseFieldResponseCode = big.NewInt(1 << 0) vendorEnrichResponseFieldPageIdentifier = big.NewInt(1 << 1) - vendorEnrichResponseFieldRoomId = big.NewInt(1 << 2) + vendorEnrichResponseFieldRoomID = big.NewInt(1 << 2) vendorEnrichResponseFieldIsSuccess = big.NewInt(1 << 3) vendorEnrichResponseFieldResponseText = big.NewInt(1 << 4) vendorEnrichResponseFieldResponseData = big.NewInt(1 << 5) @@ -359,7 +359,7 @@ var ( type VendorEnrichResponse struct { ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` - RoomId *RoomIdNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *RoomIDNotInUse `json:"roomId,omitempty" url:"roomId,omitempty"` IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` ResponseData *VendorEnrichResponseData `json:"responseData,omitempty" url:"responseData,omitempty"` @@ -385,11 +385,11 @@ func (v *VendorEnrichResponse) GetPageIdentifier() *PageIdentifier { return v.PageIdentifier } -func (v *VendorEnrichResponse) GetRoomId() *RoomIdNotInUse { +func (v *VendorEnrichResponse) GetRoomID() *RoomIDNotInUse { if v == nil { return nil } - return v.RoomId + return v.RoomID } func (v *VendorEnrichResponse) GetIsSuccess() *IsSuccess { @@ -441,11 +441,11 @@ func (v *VendorEnrichResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) v.require(vendorEnrichResponseFieldPageIdentifier) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorEnrichResponse) SetRoomId(roomId *RoomIdNotInUse) { - v.RoomId = roomId - v.require(vendorEnrichResponseFieldRoomId) +func (v *VendorEnrichResponse) SetRoomID(roomID *RoomIDNotInUse) { + v.RoomID = roomID + v.require(vendorEnrichResponseFieldRoomID) } // SetIsSuccess sets the IsSuccess field and marks it as non-optional; @@ -513,7 +513,7 @@ func (v *VendorEnrichResponse) String() string { // Enrichment result details. var ( - vendorEnrichResponseDataFieldEnrichmentId = big.NewInt(1 << 0) + vendorEnrichResponseDataFieldEnrichmentID = big.NewInt(1 << 0) vendorEnrichResponseDataFieldStatus = big.NewInt(1 << 1) vendorEnrichResponseDataFieldStagesTriggered = big.NewInt(1 << 2) vendorEnrichResponseDataFieldVendorPayoutReady = big.NewInt(1 << 3) @@ -522,7 +522,7 @@ var ( type VendorEnrichResponseData struct { // Unique identifier for this enrichment run. Format: `enrich-{vendorId}-{8-char hex}`. - EnrichmentId *string `json:"enrichmentId,omitempty" url:"enrichmentId,omitempty"` + EnrichmentID *string `json:"enrichmentId,omitempty" url:"enrichmentId,omitempty"` // Final enrichment status. Values are `completed` (vendor is payout-ready), `completed_from_network` (vendor was already enriched in the Payabli vendor network, no AI processing needed), or `insufficient` (all stages ran but the vendor still lacks sufficient payment data). Status *string `json:"status,omitempty" url:"status,omitempty"` // Stages that ran successfully. A stage is only listed here if it returned a successful response. Failed stages are excluded. @@ -539,11 +539,11 @@ type VendorEnrichResponseData struct { rawJSON json.RawMessage } -func (v *VendorEnrichResponseData) GetEnrichmentId() *string { +func (v *VendorEnrichResponseData) GetEnrichmentID() *string { if v == nil { return nil } - return v.EnrichmentId + return v.EnrichmentID } func (v *VendorEnrichResponseData) GetStatus() *string { @@ -588,11 +588,11 @@ func (v *VendorEnrichResponseData) require(field *big.Int) { v.explicitFields.Or(v.explicitFields, field) } -// SetEnrichmentId sets the EnrichmentId field and marks it as non-optional; +// SetEnrichmentID sets the EnrichmentID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (v *VendorEnrichResponseData) SetEnrichmentId(enrichmentId *string) { - v.EnrichmentId = enrichmentId - v.require(vendorEnrichResponseDataFieldEnrichmentId) +func (v *VendorEnrichResponseData) SetEnrichmentID(enrichmentID *string) { + v.EnrichmentID = enrichmentID + v.require(vendorEnrichResponseDataFieldEnrichmentID) } // SetStatus sets the Status field and marks it as non-optional; diff --git a/vendor_/client.go b/vendor_/client.go index 837907f..91a9e3c 100644 --- a/vendor_/client.go +++ b/vendor_/client.go @@ -39,7 +39,7 @@ func (c *Client) AddVendor( entry string, request *payabli.VendorData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseVendors, error) { +) (*payabli.PayabliAPIResponseVendors, error) { response, err := c.WithRawResponse.AddVendor( ctx, entry, @@ -58,7 +58,7 @@ func (c *Client) DeleteVendor( // Vendor ID. idVendor int, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseVendors, error) { +) (*payabli.PayabliAPIResponseVendors, error) { response, err := c.WithRawResponse.DeleteVendor( ctx, idVendor, @@ -77,7 +77,7 @@ func (c *Client) EditVendor( idVendor int, request *payabli.VendorData, opts ...option.RequestOption, -) (*payabli.PayabliApiResponseVendors, error) { +) (*payabli.PayabliAPIResponseVendors, error) { response, err := c.WithRawResponse.EditVendor( ctx, idVendor, diff --git a/vendor_/raw_client.go b/vendor_/raw_client.go index eca31b4..d2ce696 100644 --- a/vendor_/raw_client.go +++ b/vendor_/raw_client.go @@ -36,7 +36,7 @@ func (r *RawClient) AddVendor( entry string, request *payabli.VendorData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseVendors], error) { +) (*core.Response[*payabli.PayabliAPIResponseVendors], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -51,7 +51,7 @@ func (r *RawClient) AddVendor( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseVendors + var response *payabli.PayabliAPIResponseVendors raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -70,7 +70,7 @@ func (r *RawClient) AddVendor( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseVendors]{ + return &core.Response[*payabli.PayabliAPIResponseVendors]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -82,7 +82,7 @@ func (r *RawClient) DeleteVendor( // Vendor ID. idVendor int, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseVendors], error) { +) (*core.Response[*payabli.PayabliAPIResponseVendors], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -97,7 +97,7 @@ func (r *RawClient) DeleteVendor( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseVendors + var response *payabli.PayabliAPIResponseVendors raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -115,7 +115,7 @@ func (r *RawClient) DeleteVendor( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseVendors]{ + return &core.Response[*payabli.PayabliAPIResponseVendors]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -128,7 +128,7 @@ func (r *RawClient) EditVendor( idVendor int, request *payabli.VendorData, opts ...option.RequestOption, -) (*core.Response[*payabli.PayabliApiResponseVendors], error) { +) (*core.Response[*payabli.PayabliAPIResponseVendors], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -143,7 +143,7 @@ func (r *RawClient) EditVendor( r.options.ToHeader(), options.ToHeader(), ) - var response *payabli.PayabliApiResponseVendors + var response *payabli.PayabliAPIResponseVendors raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -162,7 +162,7 @@ func (r *RawClient) EditVendor( if err != nil { return nil, err } - return &core.Response[*payabli.PayabliApiResponseVendors]{ + return &core.Response[*payabli.PayabliAPIResponseVendors]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/vendor_/vendor__test/vendor__test.go b/vendor_/vendor__test/vendor__test.go index 32327a8..50aecae 100644 --- a/vendor_/vendor__test/vendor__test.go +++ b/vendor_/vendor__test/vendor__test.go @@ -132,7 +132,7 @@ func TestVendorAddVendorWithWireMock( }, }, BillingData: &payabli.BillingData{ - Id: payabli.Int( + ID: payabli.Int( 123, ), BankName: payabli.String( @@ -186,7 +186,7 @@ func TestVendorAddVendorWithWireMock( CustomerVendorAccount: payabli.String( "A-37622", ), - InternalReferenceId: payabli.Int64( + InternalReferenceID: payabli.Int64( int64(123), ), } @@ -286,7 +286,7 @@ func TestVendorEnrichVendorWithWireMock( option.WithBaseURL(WireMockBaseURL), ) request := &payabli.VendorEnrichRequest{ - VendorId: int64(3890), + VendorID: int64(3890), Scope: []string{ "invoice_scan", }, diff --git a/vendor_test.go b/vendor_test.go index 11dafe6..e597c13 100644 --- a/vendor_test.go +++ b/vendor_test.go @@ -9,9 +9,9 @@ import ( testing "testing" ) -func TestSettersPayabliApiResponseVendors(t *testing.T) { +func TestSettersPayabliAPIResponseVendors(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -19,7 +19,7 @@ func TestSettersPayabliApiResponseVendors(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -27,7 +27,7 @@ func TestSettersPayabliApiResponseVendors(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -35,7 +35,7 @@ func TestSettersPayabliApiResponseVendors(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseData *int obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -43,7 +43,7 @@ func TestSettersPayabliApiResponseVendors(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -52,11 +52,11 @@ func TestSettersPayabliApiResponseVendors(t *testing.T) { } -func TestGettersPayabliApiResponseVendors(t *testing.T) { +func TestGettersPayabliAPIResponseVendors(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var expected *IsSuccess obj.IsSuccess = expected @@ -67,7 +67,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} obj.IsSuccess = nil // Act & Assert @@ -76,7 +76,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -89,7 +89,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -100,7 +100,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} obj.PageIdentifier = nil // Act & Assert @@ -109,7 +109,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -122,7 +122,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var expected *Responsecode obj.ResponseCode = expected @@ -133,7 +133,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} obj.ResponseCode = nil // Act & Assert @@ -142,7 +142,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -155,7 +155,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var expected *int obj.ResponseData = expected @@ -166,7 +166,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} obj.ResponseData = nil // Act & Assert @@ -175,7 +175,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -188,7 +188,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var expected ResponseText obj.ResponseText = expected @@ -198,7 +198,7 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -210,11 +210,11 @@ func TestGettersPayabliApiResponseVendors(t *testing.T) { } -func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { +func TestSettersMarkExplicitPayabliAPIResponseVendors(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueIsSuccess *IsSuccess // Act @@ -245,7 +245,7 @@ func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -276,7 +276,7 @@ func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseCode *Responsecode // Act @@ -307,7 +307,7 @@ func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseData *int // Act @@ -338,7 +338,7 @@ func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} var fernTestValueResponseText ResponseText // Act @@ -369,11 +369,11 @@ func TestSettersMarkExplicitPayabliApiResponseVendors(t *testing.T) { } func TestSettersVendorEnrichRequest(t *testing.T) { - t.Run("SetVendorId", func(t *testing.T) { + t.Run("SetVendorID", func(t *testing.T) { obj := &VendorEnrichRequest{} - var fernTestValueVendorId int64 - obj.SetVendorId(fernTestValueVendorId) - assert.Equal(t, fernTestValueVendorId, obj.VendorId) + var fernTestValueVendorID int64 + obj.SetVendorID(fernTestValueVendorID) + assert.Equal(t, fernTestValueVendorID, obj.VendorID) assert.NotNil(t, obj.explicitFields) }) @@ -409,11 +409,11 @@ func TestSettersVendorEnrichRequest(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetBillId", func(t *testing.T) { + t.Run("SetBillID", func(t *testing.T) { obj := &VendorEnrichRequest{} - var fernTestValueBillId *int64 - obj.SetBillId(fernTestValueBillId) - assert.Equal(t, fernTestValueBillId, obj.BillId) + var fernTestValueBillID *int64 + obj.SetBillID(fernTestValueBillID) + assert.Equal(t, fernTestValueBillID, obj.BillID) assert.NotNil(t, obj.explicitFields) }) @@ -428,18 +428,18 @@ func TestSettersVendorEnrichRequest(t *testing.T) { } func TestGettersVendorEnrichRequest(t *testing.T) { - t.Run("GetVendorId", func(t *testing.T) { + t.Run("GetVendorID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichRequest{} var expected int64 - obj.VendorId = expected + obj.VendorID = expected // Act & Assert - assert.Equal(t, expected, obj.GetVendorId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetVendorID(), "getter should return the property value") }) - t.Run("GetVendorId_NilReceiver", func(t *testing.T) { + t.Run("GetVendorID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorEnrichRequest // Should not panic - getters should handle nil receiver gracefully @@ -448,7 +448,7 @@ func TestGettersVendorEnrichRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetVendorId() // Should return zero value + _ = obj.GetVendorID() // Should return zero value }) t.Run("GetScope", func(t *testing.T) { @@ -583,28 +583,28 @@ func TestGettersVendorEnrichRequest(t *testing.T) { _ = obj.GetInvoiceFile() // Should return zero value }) - t.Run("GetBillId", func(t *testing.T) { + t.Run("GetBillID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichRequest{} var expected *int64 - obj.BillId = expected + obj.BillID = expected // Act & Assert - assert.Equal(t, expected, obj.GetBillId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetBillID(), "getter should return the property value") }) - t.Run("GetBillId_NilValue", func(t *testing.T) { + t.Run("GetBillID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichRequest{} - obj.BillId = nil + obj.BillID = nil // Act & Assert - assert.Nil(t, obj.GetBillId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetBillID(), "getter should return nil when property is nil") }) - t.Run("GetBillId_NilReceiver", func(t *testing.T) { + t.Run("GetBillID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorEnrichRequest // Should not panic - getters should handle nil receiver gracefully @@ -613,7 +613,7 @@ func TestGettersVendorEnrichRequest(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetBillId() // Should return zero value + _ = obj.GetBillID() // Should return zero value }) t.Run("GetFallbackMethod", func(t *testing.T) { @@ -652,14 +652,14 @@ func TestGettersVendorEnrichRequest(t *testing.T) { } func TestSettersMarkExplicitVendorEnrichRequest(t *testing.T) { - t.Run("SetVendorId_MarksExplicit", func(t *testing.T) { + t.Run("SetVendorID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichRequest{} - var fernTestValueVendorId int64 + var fernTestValueVendorID int64 // Act - obj.SetVendorId(fernTestValueVendorId) + obj.SetVendorID(fernTestValueVendorID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -807,14 +807,14 @@ func TestSettersMarkExplicitVendorEnrichRequest(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetBillId_MarksExplicit", func(t *testing.T) { + t.Run("SetBillID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichRequest{} - var fernTestValueBillId *int64 + var fernTestValueBillID *int64 // Act - obj.SetBillId(fernTestValueBillId) + obj.SetBillID(fernTestValueBillID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -888,11 +888,11 @@ func TestSettersVendorEnrichResponse(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { + t.Run("SetRoomID", func(t *testing.T) { obj := &VendorEnrichResponse{} - var fernTestValueRoomId *RoomIdNotInUse - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + var fernTestValueRoomID *RoomIDNotInUse + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) @@ -989,28 +989,28 @@ func TestGettersVendorEnrichResponse(t *testing.T) { _ = obj.GetPageIdentifier() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponse{} - var expected *RoomIdNotInUse - obj.RoomId = expected + var expected *RoomIDNotInUse + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponse{} - obj.RoomId = nil + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorEnrichResponse // Should not panic - getters should handle nil receiver gracefully @@ -1019,7 +1019,7 @@ func TestGettersVendorEnrichResponse(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) t.Run("GetIsSuccess", func(t *testing.T) { @@ -1176,14 +1176,14 @@ func TestSettersMarkExplicitVendorEnrichResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponse{} - var fernTestValueRoomId *RoomIdNotInUse + var fernTestValueRoomID *RoomIDNotInUse // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1303,11 +1303,11 @@ func TestSettersMarkExplicitVendorEnrichResponse(t *testing.T) { } func TestSettersVendorEnrichResponseData(t *testing.T) { - t.Run("SetEnrichmentId", func(t *testing.T) { + t.Run("SetEnrichmentID", func(t *testing.T) { obj := &VendorEnrichResponseData{} - var fernTestValueEnrichmentId *string - obj.SetEnrichmentId(fernTestValueEnrichmentId) - assert.Equal(t, fernTestValueEnrichmentId, obj.EnrichmentId) + var fernTestValueEnrichmentID *string + obj.SetEnrichmentID(fernTestValueEnrichmentID) + assert.Equal(t, fernTestValueEnrichmentID, obj.EnrichmentID) assert.NotNil(t, obj.explicitFields) }) @@ -1346,28 +1346,28 @@ func TestSettersVendorEnrichResponseData(t *testing.T) { } func TestGettersVendorEnrichResponseData(t *testing.T) { - t.Run("GetEnrichmentId", func(t *testing.T) { + t.Run("GetEnrichmentID", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponseData{} var expected *string - obj.EnrichmentId = expected + obj.EnrichmentID = expected // Act & Assert - assert.Equal(t, expected, obj.GetEnrichmentId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetEnrichmentID(), "getter should return the property value") }) - t.Run("GetEnrichmentId_NilValue", func(t *testing.T) { + t.Run("GetEnrichmentID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponseData{} - obj.EnrichmentId = nil + obj.EnrichmentID = nil // Act & Assert - assert.Nil(t, obj.GetEnrichmentId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetEnrichmentID(), "getter should return nil when property is nil") }) - t.Run("GetEnrichmentId_NilReceiver", func(t *testing.T) { + t.Run("GetEnrichmentID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *VendorEnrichResponseData // Should not panic - getters should handle nil receiver gracefully @@ -1376,7 +1376,7 @@ func TestGettersVendorEnrichResponseData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetEnrichmentId() // Should return zero value + _ = obj.GetEnrichmentID() // Should return zero value }) t.Run("GetStatus", func(t *testing.T) { @@ -1514,14 +1514,14 @@ func TestGettersVendorEnrichResponseData(t *testing.T) { } func TestSettersMarkExplicitVendorEnrichResponseData(t *testing.T) { - t.Run("SetEnrichmentId_MarksExplicit", func(t *testing.T) { + t.Run("SetEnrichmentID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &VendorEnrichResponseData{} - var fernTestValueEnrichmentId *string + var fernTestValueEnrichmentID *string // Act - obj.SetEnrichmentId(fernTestValueEnrichmentId) + obj.SetEnrichmentID(fernTestValueEnrichmentID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -4002,11 +4002,11 @@ func TestSettersMarkExplicitVendorEnrichmentWebSearch(t *testing.T) { } -func TestJSONMarshalingPayabliApiResponseVendors(t *testing.T) { +func TestJSONMarshalingPayabliAPIResponseVendors(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4015,21 +4015,21 @@ func TestJSONMarshalingPayabliApiResponseVendors(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled PayabliApiResponseVendors + var unmarshaled PayabliAPIResponseVendors err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseVendors + var obj PayabliAPIResponseVendors err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj PayabliApiResponseVendors + var obj PayabliAPIResponseVendors err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4233,17 +4233,17 @@ func TestJSONMarshalingVendorEnrichmentWebSearch(t *testing.T) { }) } -func TestStringPayabliApiResponseVendors(t *testing.T) { +func TestStringPayabliAPIResponseVendors(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4345,10 +4345,10 @@ func TestStringVendorEnrichmentWebSearch(t *testing.T) { }) } -func TestExtraPropertiesPayabliApiResponseVendors(t *testing.T) { +func TestExtraPropertiesPayabliAPIResponseVendors(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &PayabliApiResponseVendors{} + obj := &PayabliAPIResponseVendors{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4362,7 +4362,7 @@ func TestExtraPropertiesPayabliApiResponseVendors(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *PayabliApiResponseVendors + var obj *PayabliAPIResponseVendors extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) diff --git a/wallet.go b/wallet.go index 6c7bcc0..98b6c09 100644 --- a/wallet.go +++ b/wallet.go @@ -13,13 +13,13 @@ import ( var ( configureOrganizationRequestApplePayFieldCascade = big.NewInt(1 << 0) configureOrganizationRequestApplePayFieldIsEnabled = big.NewInt(1 << 1) - configureOrganizationRequestApplePayFieldOrgId = big.NewInt(1 << 2) + configureOrganizationRequestApplePayFieldOrgID = big.NewInt(1 << 2) ) type ConfigureOrganizationRequestApplePay struct { Cascade *Cascade `json:"cascade,omitempty" url:"-"` IsEnabled *IsEnabled `json:"isEnabled,omitempty" url:"-"` - OrgId *OrganizationId `json:"orgId,omitempty" url:"-"` + OrgID *OrganizationID `json:"orgId,omitempty" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -46,11 +46,11 @@ func (c *ConfigureOrganizationRequestApplePay) SetIsEnabled(isEnabled *IsEnabled c.require(configureOrganizationRequestApplePayFieldIsEnabled) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureOrganizationRequestApplePay) SetOrgId(orgId *OrganizationId) { - c.OrgId = orgId - c.require(configureOrganizationRequestApplePayFieldOrgId) +func (c *ConfigureOrganizationRequestApplePay) SetOrgID(orgID *OrganizationID) { + c.OrgID = orgID + c.require(configureOrganizationRequestApplePayFieldOrgID) } func (c *ConfigureOrganizationRequestApplePay) UnmarshalJSON(data []byte) error { @@ -133,13 +133,13 @@ func (c *ConfigurePaypointRequestApplePay) MarshalJSON() ([]byte, error) { var ( configureOrganizationRequestGooglePayFieldCascade = big.NewInt(1 << 0) configureOrganizationRequestGooglePayFieldIsEnabled = big.NewInt(1 << 1) - configureOrganizationRequestGooglePayFieldOrgId = big.NewInt(1 << 2) + configureOrganizationRequestGooglePayFieldOrgID = big.NewInt(1 << 2) ) type ConfigureOrganizationRequestGooglePay struct { Cascade *Cascade `json:"cascade,omitempty" url:"-"` IsEnabled *IsEnabled `json:"isEnabled,omitempty" url:"-"` - OrgId *OrganizationId `json:"orgId,omitempty" url:"-"` + OrgID *OrganizationID `json:"orgId,omitempty" url:"-"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -166,11 +166,11 @@ func (c *ConfigureOrganizationRequestGooglePay) SetIsEnabled(isEnabled *IsEnable c.require(configureOrganizationRequestGooglePayFieldIsEnabled) } -// SetOrgId sets the OrgId field and marks it as non-optional; +// SetOrgID sets the OrgID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureOrganizationRequestGooglePay) SetOrgId(orgId *OrganizationId) { - c.OrgId = orgId - c.require(configureOrganizationRequestGooglePayFieldOrgId) +func (c *ConfigureOrganizationRequestGooglePay) SetOrgID(orgID *OrganizationID) { + c.OrgID = orgID + c.require(configureOrganizationRequestGooglePayFieldOrgID) } func (c *ConfigureOrganizationRequestGooglePay) UnmarshalJSON(data []byte) error { @@ -251,14 +251,14 @@ func (c *ConfigurePaypointRequestGooglePay) MarshalJSON() ([]byte, error) { } // The internal identifier for Apple Pay-related information. -type ApplePayId = string +type ApplePayID = string var ( applePayOrganizationUpdateDataFieldCreatedAt = big.NewInt(1 << 0) - applePayOrganizationUpdateDataFieldId = big.NewInt(1 << 1) - applePayOrganizationUpdateDataFieldJobId = big.NewInt(1 << 2) + applePayOrganizationUpdateDataFieldID = big.NewInt(1 << 1) + applePayOrganizationUpdateDataFieldJobID = big.NewInt(1 << 2) applePayOrganizationUpdateDataFieldJobStatus = big.NewInt(1 << 3) - applePayOrganizationUpdateDataFieldOrganizationId = big.NewInt(1 << 4) + applePayOrganizationUpdateDataFieldOrganizationID = big.NewInt(1 << 4) applePayOrganizationUpdateDataFieldType = big.NewInt(1 << 5) applePayOrganizationUpdateDataFieldUpdatedAt = big.NewInt(1 << 6) applePayOrganizationUpdateDataFieldUpdates = big.NewInt(1 << 7) @@ -267,10 +267,10 @@ var ( type ApplePayOrganizationUpdateData struct { CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` // Internal ID for the Apple Pay organization update. - Id *ApplePayId `json:"id,omitempty" url:"id,omitempty"` - JobId *JobId `json:"jobId,omitempty" url:"jobId,omitempty"` + ID *ApplePayID `json:"id,omitempty" url:"id,omitempty"` + JobID *JobID `json:"jobId,omitempty" url:"jobId,omitempty"` JobStatus *JobStatus `json:"jobStatus,omitempty" url:"jobStatus,omitempty"` - OrganizationId *OrganizationId `json:"organizationId,omitempty" url:"organizationId,omitempty"` + OrganizationID *OrganizationID `json:"organizationId,omitempty" url:"organizationId,omitempty"` // The record type, in this context it will always be `ApplePayOrganizationUpdate`. Type *ApplePayType `json:"type,omitempty" url:"type,omitempty"` UpdatedAt *LastModified `json:"updatedAt,omitempty" url:"updatedAt,omitempty"` @@ -290,18 +290,18 @@ func (a *ApplePayOrganizationUpdateData) GetCreatedAt() *CreatedAt { return a.CreatedAt } -func (a *ApplePayOrganizationUpdateData) GetId() *ApplePayId { +func (a *ApplePayOrganizationUpdateData) GetID() *ApplePayID { if a == nil { return nil } - return a.Id + return a.ID } -func (a *ApplePayOrganizationUpdateData) GetJobId() *JobId { +func (a *ApplePayOrganizationUpdateData) GetJobID() *JobID { if a == nil { return nil } - return a.JobId + return a.JobID } func (a *ApplePayOrganizationUpdateData) GetJobStatus() *JobStatus { @@ -311,11 +311,11 @@ func (a *ApplePayOrganizationUpdateData) GetJobStatus() *JobStatus { return a.JobStatus } -func (a *ApplePayOrganizationUpdateData) GetOrganizationId() *OrganizationId { +func (a *ApplePayOrganizationUpdateData) GetOrganizationID() *OrganizationID { if a == nil { return nil } - return a.OrganizationId + return a.OrganizationID } func (a *ApplePayOrganizationUpdateData) GetType() *ApplePayType { @@ -360,18 +360,18 @@ func (a *ApplePayOrganizationUpdateData) SetCreatedAt(createdAt *CreatedAt) { a.require(applePayOrganizationUpdateDataFieldCreatedAt) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplePayOrganizationUpdateData) SetId(id *ApplePayId) { - a.Id = id - a.require(applePayOrganizationUpdateDataFieldId) +func (a *ApplePayOrganizationUpdateData) SetID(id *ApplePayID) { + a.ID = id + a.require(applePayOrganizationUpdateDataFieldID) } -// SetJobId sets the JobId field and marks it as non-optional; +// SetJobID sets the JobID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplePayOrganizationUpdateData) SetJobId(jobId *JobId) { - a.JobId = jobId - a.require(applePayOrganizationUpdateDataFieldJobId) +func (a *ApplePayOrganizationUpdateData) SetJobID(jobID *JobID) { + a.JobID = jobID + a.require(applePayOrganizationUpdateDataFieldJobID) } // SetJobStatus sets the JobStatus field and marks it as non-optional; @@ -381,11 +381,11 @@ func (a *ApplePayOrganizationUpdateData) SetJobStatus(jobStatus *JobStatus) { a.require(applePayOrganizationUpdateDataFieldJobStatus) } -// SetOrganizationId sets the OrganizationId field and marks it as non-optional; +// SetOrganizationID sets the OrganizationID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *ApplePayOrganizationUpdateData) SetOrganizationId(organizationId *OrganizationId) { - a.OrganizationId = organizationId - a.require(applePayOrganizationUpdateDataFieldOrganizationId) +func (a *ApplePayOrganizationUpdateData) SetOrganizationID(organizationID *OrganizationID) { + a.OrganizationID = organizationID + a.require(applePayOrganizationUpdateDataFieldOrganizationID) } // SetType sets the Type field and marks it as non-optional; @@ -602,32 +602,32 @@ type ApplePayType = string // The wallet data. var ( appleWalletDataFieldEntry = big.NewInt(1 << 0) - appleWalletDataFieldApplePayMerchantId = big.NewInt(1 << 1) + appleWalletDataFieldApplePayMerchantID = big.NewInt(1 << 1) appleWalletDataFieldDomainNames = big.NewInt(1 << 2) appleWalletDataFieldPaypointName = big.NewInt(1 << 3) - appleWalletDataFieldPaypointUrl = big.NewInt(1 << 4) + appleWalletDataFieldPaypointURL = big.NewInt(1 << 4) appleWalletDataFieldMarkedForDeletionAt = big.NewInt(1 << 5) appleWalletDataFieldCreatedAt = big.NewInt(1 << 6) appleWalletDataFieldUpdatedAt = big.NewInt(1 << 7) - appleWalletDataFieldId = big.NewInt(1 << 8) + appleWalletDataFieldID = big.NewInt(1 << 8) appleWalletDataFieldType = big.NewInt(1 << 9) ) type AppleWalletData struct { Entry *Entry `json:"entry,omitempty" url:"entry,omitempty"` // The Apple Pay merchant identifier. - ApplePayMerchantId *string `json:"applePayMerchantId,omitempty" url:"applePayMerchantId,omitempty"` + ApplePayMerchantID *string `json:"applePayMerchantId,omitempty" url:"applePayMerchantId,omitempty"` // A list of domain names that are enabled for this paypoint. DomainNames []DomainName `json:"domainNames,omitempty" url:"domainNames,omitempty"` PaypointName *PaypointName `json:"paypointName,omitempty" url:"paypointName,omitempty"` // The paypoint URL. - PaypointUrl *string `json:"paypointUrl,omitempty" url:"paypointUrl,omitempty"` + PaypointURL *string `json:"paypointUrl,omitempty" url:"paypointUrl,omitempty"` // The date and time a paypoint's Apple Pay registration was scheduled for deletion. The paypoint will be unregistered from Apple Pay permanently 30 days from this value. MarkedForDeletionAt *time.Time `json:"markedForDeletionAt,omitempty" url:"markedForDeletionAt,omitempty"` CreatedAt *CreatedAt `json:"createdAt,omitempty" url:"createdAt,omitempty"` UpdatedAt *LastModified `json:"updatedAt,omitempty" url:"updatedAt,omitempty"` // Internal ID for the Apple Pay paypoint registration update. - Id *ApplePayId `json:"id,omitempty" url:"id,omitempty"` + ID *ApplePayID `json:"id,omitempty" url:"id,omitempty"` // The record type, in this context it will always be `ApplePayRegistration`. Type *ApplePayType `json:"type,omitempty" url:"type,omitempty"` @@ -645,11 +645,11 @@ func (a *AppleWalletData) GetEntry() *Entry { return a.Entry } -func (a *AppleWalletData) GetApplePayMerchantId() *string { +func (a *AppleWalletData) GetApplePayMerchantID() *string { if a == nil { return nil } - return a.ApplePayMerchantId + return a.ApplePayMerchantID } func (a *AppleWalletData) GetDomainNames() []DomainName { @@ -666,11 +666,11 @@ func (a *AppleWalletData) GetPaypointName() *PaypointName { return a.PaypointName } -func (a *AppleWalletData) GetPaypointUrl() *string { +func (a *AppleWalletData) GetPaypointURL() *string { if a == nil { return nil } - return a.PaypointUrl + return a.PaypointURL } func (a *AppleWalletData) GetMarkedForDeletionAt() *time.Time { @@ -694,11 +694,11 @@ func (a *AppleWalletData) GetUpdatedAt() *LastModified { return a.UpdatedAt } -func (a *AppleWalletData) GetId() *ApplePayId { +func (a *AppleWalletData) GetID() *ApplePayID { if a == nil { return nil } - return a.Id + return a.ID } func (a *AppleWalletData) GetType() *ApplePayType { @@ -729,11 +729,11 @@ func (a *AppleWalletData) SetEntry(entry *Entry) { a.require(appleWalletDataFieldEntry) } -// SetApplePayMerchantId sets the ApplePayMerchantId field and marks it as non-optional; +// SetApplePayMerchantID sets the ApplePayMerchantID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AppleWalletData) SetApplePayMerchantId(applePayMerchantId *string) { - a.ApplePayMerchantId = applePayMerchantId - a.require(appleWalletDataFieldApplePayMerchantId) +func (a *AppleWalletData) SetApplePayMerchantID(applePayMerchantID *string) { + a.ApplePayMerchantID = applePayMerchantID + a.require(appleWalletDataFieldApplePayMerchantID) } // SetDomainNames sets the DomainNames field and marks it as non-optional; @@ -750,11 +750,11 @@ func (a *AppleWalletData) SetPaypointName(paypointName *PaypointName) { a.require(appleWalletDataFieldPaypointName) } -// SetPaypointUrl sets the PaypointUrl field and marks it as non-optional; +// SetPaypointURL sets the PaypointURL field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AppleWalletData) SetPaypointUrl(paypointUrl *string) { - a.PaypointUrl = paypointUrl - a.require(appleWalletDataFieldPaypointUrl) +func (a *AppleWalletData) SetPaypointURL(paypointURL *string) { + a.PaypointURL = paypointURL + a.require(appleWalletDataFieldPaypointURL) } // SetMarkedForDeletionAt sets the MarkedForDeletionAt field and marks it as non-optional; @@ -778,11 +778,11 @@ func (a *AppleWalletData) SetUpdatedAt(updatedAt *LastModified) { a.require(appleWalletDataFieldUpdatedAt) } -// SetId sets the Id field and marks it as non-optional; +// SetID sets the ID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (a *AppleWalletData) SetId(id *ApplePayId) { - a.Id = id - a.require(appleWalletDataFieldId) +func (a *AppleWalletData) SetID(id *ApplePayID) { + a.ID = id + a.require(appleWalletDataFieldID) } // SetType sets the Type field and marks it as non-optional; @@ -854,14 +854,14 @@ func (a *AppleWalletData) String() string { type Cascade = bool var ( - configureApplePayOrganizationApiResponseFieldIsSuccess = big.NewInt(1 << 0) - configureApplePayOrganizationApiResponseFieldPageIdentifier = big.NewInt(1 << 1) - configureApplePayOrganizationApiResponseFieldResponseCode = big.NewInt(1 << 2) - configureApplePayOrganizationApiResponseFieldResponseData = big.NewInt(1 << 3) - configureApplePayOrganizationApiResponseFieldResponseText = big.NewInt(1 << 4) + configureApplePayOrganizationAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + configureApplePayOrganizationAPIResponseFieldPageIdentifier = big.NewInt(1 << 1) + configureApplePayOrganizationAPIResponseFieldResponseCode = big.NewInt(1 << 2) + configureApplePayOrganizationAPIResponseFieldResponseData = big.NewInt(1 << 3) + configureApplePayOrganizationAPIResponseFieldResponseText = big.NewInt(1 << 4) ) -type ConfigureApplePayOrganizationApiResponse struct { +type ConfigureApplePayOrganizationAPIResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` @@ -875,49 +875,49 @@ type ConfigureApplePayOrganizationApiResponse struct { rawJSON json.RawMessage } -func (c *ConfigureApplePayOrganizationApiResponse) GetIsSuccess() *IsSuccess { +func (c *ConfigureApplePayOrganizationAPIResponse) GetIsSuccess() *IsSuccess { if c == nil { return nil } return c.IsSuccess } -func (c *ConfigureApplePayOrganizationApiResponse) GetPageIdentifier() *PageIdentifier { +func (c *ConfigureApplePayOrganizationAPIResponse) GetPageIdentifier() *PageIdentifier { if c == nil { return nil } return c.PageIdentifier } -func (c *ConfigureApplePayOrganizationApiResponse) GetResponseCode() *Responsecode { +func (c *ConfigureApplePayOrganizationAPIResponse) GetResponseCode() *Responsecode { if c == nil { return nil } return c.ResponseCode } -func (c *ConfigureApplePayOrganizationApiResponse) GetResponseData() *ApplePayOrganizationUpdateData { +func (c *ConfigureApplePayOrganizationAPIResponse) GetResponseData() *ApplePayOrganizationUpdateData { if c == nil { return nil } return c.ResponseData } -func (c *ConfigureApplePayOrganizationApiResponse) GetResponseText() ResponseText { +func (c *ConfigureApplePayOrganizationAPIResponse) GetResponseText() ResponseText { if c == nil { return "" } return c.ResponseText } -func (c *ConfigureApplePayOrganizationApiResponse) GetExtraProperties() map[string]interface{} { +func (c *ConfigureApplePayOrganizationAPIResponse) GetExtraProperties() map[string]interface{} { if c == nil { return nil } return c.extraProperties } -func (c *ConfigureApplePayOrganizationApiResponse) require(field *big.Int) { +func (c *ConfigureApplePayOrganizationAPIResponse) require(field *big.Int) { if c.explicitFields == nil { c.explicitFields = big.NewInt(0) } @@ -926,46 +926,46 @@ func (c *ConfigureApplePayOrganizationApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePayOrganizationApiResponse) SetIsSuccess(isSuccess *IsSuccess) { +func (c *ConfigureApplePayOrganizationAPIResponse) SetIsSuccess(isSuccess *IsSuccess) { c.IsSuccess = isSuccess - c.require(configureApplePayOrganizationApiResponseFieldIsSuccess) + c.require(configureApplePayOrganizationAPIResponseFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePayOrganizationApiResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (c *ConfigureApplePayOrganizationAPIResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { c.PageIdentifier = pageIdentifier - c.require(configureApplePayOrganizationApiResponseFieldPageIdentifier) + c.require(configureApplePayOrganizationAPIResponseFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePayOrganizationApiResponse) SetResponseCode(responseCode *Responsecode) { +func (c *ConfigureApplePayOrganizationAPIResponse) SetResponseCode(responseCode *Responsecode) { c.ResponseCode = responseCode - c.require(configureApplePayOrganizationApiResponseFieldResponseCode) + c.require(configureApplePayOrganizationAPIResponseFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePayOrganizationApiResponse) SetResponseData(responseData *ApplePayOrganizationUpdateData) { +func (c *ConfigureApplePayOrganizationAPIResponse) SetResponseData(responseData *ApplePayOrganizationUpdateData) { c.ResponseData = responseData - c.require(configureApplePayOrganizationApiResponseFieldResponseData) + c.require(configureApplePayOrganizationAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePayOrganizationApiResponse) SetResponseText(responseText ResponseText) { +func (c *ConfigureApplePayOrganizationAPIResponse) SetResponseText(responseText ResponseText) { c.ResponseText = responseText - c.require(configureApplePayOrganizationApiResponseFieldResponseText) + c.require(configureApplePayOrganizationAPIResponseFieldResponseText) } -func (c *ConfigureApplePayOrganizationApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ConfigureApplePayOrganizationApiResponse +func (c *ConfigureApplePayOrganizationAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ConfigureApplePayOrganizationAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *c = ConfigureApplePayOrganizationApiResponse(value) + *c = ConfigureApplePayOrganizationAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *c) if err != nil { return err @@ -975,8 +975,8 @@ func (c *ConfigureApplePayOrganizationApiResponse) UnmarshalJSON(data []byte) er return nil } -func (c *ConfigureApplePayOrganizationApiResponse) MarshalJSON() ([]byte, error) { - type embed ConfigureApplePayOrganizationApiResponse +func (c *ConfigureApplePayOrganizationAPIResponse) MarshalJSON() ([]byte, error) { + type embed ConfigureApplePayOrganizationAPIResponse var marshaler = struct { embed }{ @@ -986,7 +986,7 @@ func (c *ConfigureApplePayOrganizationApiResponse) MarshalJSON() ([]byte, error) return json.Marshal(explicitMarshaler) } -func (c *ConfigureApplePayOrganizationApiResponse) String() string { +func (c *ConfigureApplePayOrganizationAPIResponse) String() string { if c == nil { return "" } @@ -1002,22 +1002,22 @@ func (c *ConfigureApplePayOrganizationApiResponse) String() string { } var ( - configureApplePaypointApiResponseFieldIsSuccess = big.NewInt(1 << 0) - configureApplePaypointApiResponseFieldPageIdentifier = big.NewInt(1 << 1) - configureApplePaypointApiResponseFieldResponseCode = big.NewInt(1 << 2) - configureApplePaypointApiResponseFieldResponseData = big.NewInt(1 << 3) - configureApplePaypointApiResponseFieldResponseText = big.NewInt(1 << 4) - configureApplePaypointApiResponseFieldRoomId = big.NewInt(1 << 5) + configureApplePaypointAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + configureApplePaypointAPIResponseFieldPageIdentifier = big.NewInt(1 << 1) + configureApplePaypointAPIResponseFieldResponseCode = big.NewInt(1 << 2) + configureApplePaypointAPIResponseFieldResponseData = big.NewInt(1 << 3) + configureApplePaypointAPIResponseFieldResponseText = big.NewInt(1 << 4) + configureApplePaypointAPIResponseFieldRoomID = big.NewInt(1 << 5) ) -type ConfigureApplePaypointApiResponse struct { +type ConfigureApplePaypointAPIResponse struct { IsSuccess *IsSuccess `json:"isSuccess,omitempty" url:"isSuccess,omitempty"` PageIdentifier *PageIdentifier `json:"pageIdentifier,omitempty" url:"pageIdentifier,omitempty"` ResponseCode *Responsecode `json:"responseCode,omitempty" url:"responseCode,omitempty"` ResponseData *ApplePayPaypointRegistrationData `json:"responseData,omitempty" url:"responseData,omitempty"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Field not in use on this endpoint - RoomId *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1026,56 +1026,56 @@ type ConfigureApplePaypointApiResponse struct { rawJSON json.RawMessage } -func (c *ConfigureApplePaypointApiResponse) GetIsSuccess() *IsSuccess { +func (c *ConfigureApplePaypointAPIResponse) GetIsSuccess() *IsSuccess { if c == nil { return nil } return c.IsSuccess } -func (c *ConfigureApplePaypointApiResponse) GetPageIdentifier() *PageIdentifier { +func (c *ConfigureApplePaypointAPIResponse) GetPageIdentifier() *PageIdentifier { if c == nil { return nil } return c.PageIdentifier } -func (c *ConfigureApplePaypointApiResponse) GetResponseCode() *Responsecode { +func (c *ConfigureApplePaypointAPIResponse) GetResponseCode() *Responsecode { if c == nil { return nil } return c.ResponseCode } -func (c *ConfigureApplePaypointApiResponse) GetResponseData() *ApplePayPaypointRegistrationData { +func (c *ConfigureApplePaypointAPIResponse) GetResponseData() *ApplePayPaypointRegistrationData { if c == nil { return nil } return c.ResponseData } -func (c *ConfigureApplePaypointApiResponse) GetResponseText() ResponseText { +func (c *ConfigureApplePaypointAPIResponse) GetResponseText() ResponseText { if c == nil { return "" } return c.ResponseText } -func (c *ConfigureApplePaypointApiResponse) GetRoomId() *int64 { +func (c *ConfigureApplePaypointAPIResponse) GetRoomID() *int64 { if c == nil { return nil } - return c.RoomId + return c.RoomID } -func (c *ConfigureApplePaypointApiResponse) GetExtraProperties() map[string]interface{} { +func (c *ConfigureApplePaypointAPIResponse) GetExtraProperties() map[string]interface{} { if c == nil { return nil } return c.extraProperties } -func (c *ConfigureApplePaypointApiResponse) require(field *big.Int) { +func (c *ConfigureApplePaypointAPIResponse) require(field *big.Int) { if c.explicitFields == nil { c.explicitFields = big.NewInt(0) } @@ -1084,53 +1084,53 @@ func (c *ConfigureApplePaypointApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetIsSuccess(isSuccess *IsSuccess) { +func (c *ConfigureApplePaypointAPIResponse) SetIsSuccess(isSuccess *IsSuccess) { c.IsSuccess = isSuccess - c.require(configureApplePaypointApiResponseFieldIsSuccess) + c.require(configureApplePaypointAPIResponseFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { +func (c *ConfigureApplePaypointAPIResponse) SetPageIdentifier(pageIdentifier *PageIdentifier) { c.PageIdentifier = pageIdentifier - c.require(configureApplePaypointApiResponseFieldPageIdentifier) + c.require(configureApplePaypointAPIResponseFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetResponseCode(responseCode *Responsecode) { +func (c *ConfigureApplePaypointAPIResponse) SetResponseCode(responseCode *Responsecode) { c.ResponseCode = responseCode - c.require(configureApplePaypointApiResponseFieldResponseCode) + c.require(configureApplePaypointAPIResponseFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetResponseData(responseData *ApplePayPaypointRegistrationData) { +func (c *ConfigureApplePaypointAPIResponse) SetResponseData(responseData *ApplePayPaypointRegistrationData) { c.ResponseData = responseData - c.require(configureApplePaypointApiResponseFieldResponseData) + c.require(configureApplePaypointAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetResponseText(responseText ResponseText) { +func (c *ConfigureApplePaypointAPIResponse) SetResponseText(responseText ResponseText) { c.ResponseText = responseText - c.require(configureApplePaypointApiResponseFieldResponseText) + c.require(configureApplePaypointAPIResponseFieldResponseText) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureApplePaypointApiResponse) SetRoomId(roomId *int64) { - c.RoomId = roomId - c.require(configureApplePaypointApiResponseFieldRoomId) +func (c *ConfigureApplePaypointAPIResponse) SetRoomID(roomID *int64) { + c.RoomID = roomID + c.require(configureApplePaypointAPIResponseFieldRoomID) } -func (c *ConfigureApplePaypointApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ConfigureApplePaypointApiResponse +func (c *ConfigureApplePaypointAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ConfigureApplePaypointAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *c = ConfigureApplePaypointApiResponse(value) + *c = ConfigureApplePaypointAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *c) if err != nil { return err @@ -1140,8 +1140,8 @@ func (c *ConfigureApplePaypointApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (c *ConfigureApplePaypointApiResponse) MarshalJSON() ([]byte, error) { - type embed ConfigureApplePaypointApiResponse +func (c *ConfigureApplePaypointAPIResponse) MarshalJSON() ([]byte, error) { + type embed ConfigureApplePaypointAPIResponse var marshaler = struct { embed }{ @@ -1151,7 +1151,7 @@ func (c *ConfigureApplePaypointApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (c *ConfigureApplePaypointApiResponse) String() string { +func (c *ConfigureApplePaypointAPIResponse) String() string { if c == nil { return "" } @@ -1167,22 +1167,22 @@ func (c *ConfigureApplePaypointApiResponse) String() string { } var ( - configureGooglePaypointApiResponseFieldIsSuccess = big.NewInt(1 << 0) - configureGooglePaypointApiResponseFieldPageIdentifier = big.NewInt(1 << 1) - configureGooglePaypointApiResponseFieldResponseCode = big.NewInt(1 << 2) - configureGooglePaypointApiResponseFieldResponseData = big.NewInt(1 << 3) - configureGooglePaypointApiResponseFieldResponseText = big.NewInt(1 << 4) - configureGooglePaypointApiResponseFieldRoomId = big.NewInt(1 << 5) + configureGooglePaypointAPIResponseFieldIsSuccess = big.NewInt(1 << 0) + configureGooglePaypointAPIResponseFieldPageIdentifier = big.NewInt(1 << 1) + configureGooglePaypointAPIResponseFieldResponseCode = big.NewInt(1 << 2) + configureGooglePaypointAPIResponseFieldResponseData = big.NewInt(1 << 3) + configureGooglePaypointAPIResponseFieldResponseText = big.NewInt(1 << 4) + configureGooglePaypointAPIResponseFieldRoomID = big.NewInt(1 << 5) ) -type ConfigureGooglePaypointApiResponse struct { +type ConfigureGooglePaypointAPIResponse struct { IsSuccess IsSuccess `json:"isSuccess" url:"isSuccess"` PageIdentifier PageIdentifier `json:"pageIdentifier" url:"pageIdentifier"` ResponseCode Responsecode `json:"responseCode" url:"responseCode"` ResponseData *GooglePayPaypointRegistrationData `json:"responseData" url:"responseData"` ResponseText ResponseText `json:"responseText" url:"responseText"` // Field not in use on this endpoint - RoomId *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` + RoomID *int64 `json:"roomId,omitempty" url:"roomId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1191,56 +1191,56 @@ type ConfigureGooglePaypointApiResponse struct { rawJSON json.RawMessage } -func (c *ConfigureGooglePaypointApiResponse) GetIsSuccess() IsSuccess { +func (c *ConfigureGooglePaypointAPIResponse) GetIsSuccess() IsSuccess { if c == nil { return false } return c.IsSuccess } -func (c *ConfigureGooglePaypointApiResponse) GetPageIdentifier() PageIdentifier { +func (c *ConfigureGooglePaypointAPIResponse) GetPageIdentifier() PageIdentifier { if c == nil { return "" } return c.PageIdentifier } -func (c *ConfigureGooglePaypointApiResponse) GetResponseCode() Responsecode { +func (c *ConfigureGooglePaypointAPIResponse) GetResponseCode() Responsecode { if c == nil { return 0 } return c.ResponseCode } -func (c *ConfigureGooglePaypointApiResponse) GetResponseData() *GooglePayPaypointRegistrationData { +func (c *ConfigureGooglePaypointAPIResponse) GetResponseData() *GooglePayPaypointRegistrationData { if c == nil { return nil } return c.ResponseData } -func (c *ConfigureGooglePaypointApiResponse) GetResponseText() ResponseText { +func (c *ConfigureGooglePaypointAPIResponse) GetResponseText() ResponseText { if c == nil { return "" } return c.ResponseText } -func (c *ConfigureGooglePaypointApiResponse) GetRoomId() *int64 { +func (c *ConfigureGooglePaypointAPIResponse) GetRoomID() *int64 { if c == nil { return nil } - return c.RoomId + return c.RoomID } -func (c *ConfigureGooglePaypointApiResponse) GetExtraProperties() map[string]interface{} { +func (c *ConfigureGooglePaypointAPIResponse) GetExtraProperties() map[string]interface{} { if c == nil { return nil } return c.extraProperties } -func (c *ConfigureGooglePaypointApiResponse) require(field *big.Int) { +func (c *ConfigureGooglePaypointAPIResponse) require(field *big.Int) { if c.explicitFields == nil { c.explicitFields = big.NewInt(0) } @@ -1249,53 +1249,53 @@ func (c *ConfigureGooglePaypointApiResponse) require(field *big.Int) { // SetIsSuccess sets the IsSuccess field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetIsSuccess(isSuccess IsSuccess) { +func (c *ConfigureGooglePaypointAPIResponse) SetIsSuccess(isSuccess IsSuccess) { c.IsSuccess = isSuccess - c.require(configureGooglePaypointApiResponseFieldIsSuccess) + c.require(configureGooglePaypointAPIResponseFieldIsSuccess) } // SetPageIdentifier sets the PageIdentifier field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetPageIdentifier(pageIdentifier PageIdentifier) { +func (c *ConfigureGooglePaypointAPIResponse) SetPageIdentifier(pageIdentifier PageIdentifier) { c.PageIdentifier = pageIdentifier - c.require(configureGooglePaypointApiResponseFieldPageIdentifier) + c.require(configureGooglePaypointAPIResponseFieldPageIdentifier) } // SetResponseCode sets the ResponseCode field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetResponseCode(responseCode Responsecode) { +func (c *ConfigureGooglePaypointAPIResponse) SetResponseCode(responseCode Responsecode) { c.ResponseCode = responseCode - c.require(configureGooglePaypointApiResponseFieldResponseCode) + c.require(configureGooglePaypointAPIResponseFieldResponseCode) } // SetResponseData sets the ResponseData field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetResponseData(responseData *GooglePayPaypointRegistrationData) { +func (c *ConfigureGooglePaypointAPIResponse) SetResponseData(responseData *GooglePayPaypointRegistrationData) { c.ResponseData = responseData - c.require(configureGooglePaypointApiResponseFieldResponseData) + c.require(configureGooglePaypointAPIResponseFieldResponseData) } // SetResponseText sets the ResponseText field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetResponseText(responseText ResponseText) { +func (c *ConfigureGooglePaypointAPIResponse) SetResponseText(responseText ResponseText) { c.ResponseText = responseText - c.require(configureGooglePaypointApiResponseFieldResponseText) + c.require(configureGooglePaypointAPIResponseFieldResponseText) } -// SetRoomId sets the RoomId field and marks it as non-optional; +// SetRoomID sets the RoomID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (c *ConfigureGooglePaypointApiResponse) SetRoomId(roomId *int64) { - c.RoomId = roomId - c.require(configureGooglePaypointApiResponseFieldRoomId) +func (c *ConfigureGooglePaypointAPIResponse) SetRoomID(roomID *int64) { + c.RoomID = roomID + c.require(configureGooglePaypointAPIResponseFieldRoomID) } -func (c *ConfigureGooglePaypointApiResponse) UnmarshalJSON(data []byte) error { - type unmarshaler ConfigureGooglePaypointApiResponse +func (c *ConfigureGooglePaypointAPIResponse) UnmarshalJSON(data []byte) error { + type unmarshaler ConfigureGooglePaypointAPIResponse var value unmarshaler if err := json.Unmarshal(data, &value); err != nil { return err } - *c = ConfigureGooglePaypointApiResponse(value) + *c = ConfigureGooglePaypointAPIResponse(value) extraProperties, err := internal.ExtractExtraProperties(data, *c) if err != nil { return err @@ -1305,8 +1305,8 @@ func (c *ConfigureGooglePaypointApiResponse) UnmarshalJSON(data []byte) error { return nil } -func (c *ConfigureGooglePaypointApiResponse) MarshalJSON() ([]byte, error) { - type embed ConfigureGooglePaypointApiResponse +func (c *ConfigureGooglePaypointAPIResponse) MarshalJSON() ([]byte, error) { + type embed ConfigureGooglePaypointAPIResponse var marshaler = struct { embed }{ @@ -1316,7 +1316,7 @@ func (c *ConfigureGooglePaypointApiResponse) MarshalJSON() ([]byte, error) { return json.Marshal(explicitMarshaler) } -func (c *ConfigureGooglePaypointApiResponse) String() string { +func (c *ConfigureGooglePaypointAPIResponse) String() string { if c == nil { return "" } @@ -1466,15 +1466,15 @@ func (g *GooglePayPaypointRegistrationData) String() string { // The wallet data. var ( - googleWalletDataFieldGatewayMerchantId = big.NewInt(1 << 0) - googleWalletDataFieldGatewayId = big.NewInt(1 << 1) + googleWalletDataFieldGatewayMerchantID = big.NewInt(1 << 0) + googleWalletDataFieldGatewayID = big.NewInt(1 << 1) ) type GoogleWalletData struct { // The Google Pay merchant identifier. - GatewayMerchantId *string `json:"gatewayMerchantId,omitempty" url:"gatewayMerchantId,omitempty"` + GatewayMerchantID *string `json:"gatewayMerchantId,omitempty" url:"gatewayMerchantId,omitempty"` // The Google Pay gateway identifier. - GatewayId *string `json:"gatewayId,omitempty" url:"gatewayId,omitempty"` + GatewayID *string `json:"gatewayId,omitempty" url:"gatewayId,omitempty"` // Private bitmask of fields set to an explicit value and therefore not to be omitted explicitFields *big.Int `json:"-" url:"-"` @@ -1483,18 +1483,18 @@ type GoogleWalletData struct { rawJSON json.RawMessage } -func (g *GoogleWalletData) GetGatewayMerchantId() *string { +func (g *GoogleWalletData) GetGatewayMerchantID() *string { if g == nil { return nil } - return g.GatewayMerchantId + return g.GatewayMerchantID } -func (g *GoogleWalletData) GetGatewayId() *string { +func (g *GoogleWalletData) GetGatewayID() *string { if g == nil { return nil } - return g.GatewayId + return g.GatewayID } func (g *GoogleWalletData) GetExtraProperties() map[string]interface{} { @@ -1511,18 +1511,18 @@ func (g *GoogleWalletData) require(field *big.Int) { g.explicitFields.Or(g.explicitFields, field) } -// SetGatewayMerchantId sets the GatewayMerchantId field and marks it as non-optional; +// SetGatewayMerchantID sets the GatewayMerchantID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GoogleWalletData) SetGatewayMerchantId(gatewayMerchantId *string) { - g.GatewayMerchantId = gatewayMerchantId - g.require(googleWalletDataFieldGatewayMerchantId) +func (g *GoogleWalletData) SetGatewayMerchantID(gatewayMerchantID *string) { + g.GatewayMerchantID = gatewayMerchantID + g.require(googleWalletDataFieldGatewayMerchantID) } -// SetGatewayId sets the GatewayId field and marks it as non-optional; +// SetGatewayID sets the GatewayID field and marks it as non-optional; // this prevents an empty or null value for this field from being omitted during serialization. -func (g *GoogleWalletData) SetGatewayId(gatewayId *string) { - g.GatewayId = gatewayId - g.require(googleWalletDataFieldGatewayId) +func (g *GoogleWalletData) SetGatewayID(gatewayID *string) { + g.GatewayID = gatewayID + g.require(googleWalletDataFieldGatewayID) } func (g *GoogleWalletData) UnmarshalJSON(data []byte) error { @@ -1568,7 +1568,7 @@ func (g *GoogleWalletData) String() string { } // Organization ID for the target organization. -type OrganizationId = int64 +type OrganizationID = int64 var ( organizationUpdatesFieldCascade = big.NewInt(1 << 0) diff --git a/wallet/client.go b/wallet/client.go index 69cc449..0ad7718 100644 --- a/wallet/client.go +++ b/wallet/client.go @@ -37,7 +37,7 @@ func (c *Client) ConfigureApplePayOrganization( ctx context.Context, request *payabli.ConfigureOrganizationRequestApplePay, opts ...option.RequestOption, -) (*payabli.ConfigureApplePayOrganizationApiResponse, error) { +) (*payabli.ConfigureApplePayOrganizationAPIResponse, error) { response, err := c.WithRawResponse.ConfigureApplePayOrganization( ctx, request, @@ -54,7 +54,7 @@ func (c *Client) ConfigureApplePayPaypoint( ctx context.Context, request *payabli.ConfigurePaypointRequestApplePay, opts ...option.RequestOption, -) (*payabli.ConfigureApplePaypointApiResponse, error) { +) (*payabli.ConfigureApplePaypointAPIResponse, error) { response, err := c.WithRawResponse.ConfigureApplePayPaypoint( ctx, request, @@ -71,7 +71,7 @@ func (c *Client) ConfigureGooglePayOrganization( ctx context.Context, request *payabli.ConfigureOrganizationRequestGooglePay, opts ...option.RequestOption, -) (*payabli.ConfigureApplePayOrganizationApiResponse, error) { +) (*payabli.ConfigureApplePayOrganizationAPIResponse, error) { response, err := c.WithRawResponse.ConfigureGooglePayOrganization( ctx, request, @@ -88,7 +88,7 @@ func (c *Client) ConfigureGooglePayPaypoint( ctx context.Context, request *payabli.ConfigurePaypointRequestGooglePay, opts ...option.RequestOption, -) (*payabli.ConfigureGooglePaypointApiResponse, error) { +) (*payabli.ConfigureGooglePaypointAPIResponse, error) { response, err := c.WithRawResponse.ConfigureGooglePayPaypoint( ctx, request, diff --git a/wallet/raw_client.go b/wallet/raw_client.go index ec1838b..e5ca43f 100644 --- a/wallet/raw_client.go +++ b/wallet/raw_client.go @@ -34,7 +34,7 @@ func (r *RawClient) ConfigureApplePayOrganization( ctx context.Context, request *payabli.ConfigureOrganizationRequestApplePay, opts ...option.RequestOption, -) (*core.Response[*payabli.ConfigureApplePayOrganizationApiResponse], error) { +) (*core.Response[*payabli.ConfigureApplePayOrganizationAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -47,7 +47,7 @@ func (r *RawClient) ConfigureApplePayOrganization( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.ConfigureApplePayOrganizationApiResponse + var response *payabli.ConfigureApplePayOrganizationAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -66,7 +66,7 @@ func (r *RawClient) ConfigureApplePayOrganization( if err != nil { return nil, err } - return &core.Response[*payabli.ConfigureApplePayOrganizationApiResponse]{ + return &core.Response[*payabli.ConfigureApplePayOrganizationAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -77,7 +77,7 @@ func (r *RawClient) ConfigureApplePayPaypoint( ctx context.Context, request *payabli.ConfigurePaypointRequestApplePay, opts ...option.RequestOption, -) (*core.Response[*payabli.ConfigureApplePaypointApiResponse], error) { +) (*core.Response[*payabli.ConfigureApplePaypointAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -90,7 +90,7 @@ func (r *RawClient) ConfigureApplePayPaypoint( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.ConfigureApplePaypointApiResponse + var response *payabli.ConfigureApplePaypointAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -109,7 +109,7 @@ func (r *RawClient) ConfigureApplePayPaypoint( if err != nil { return nil, err } - return &core.Response[*payabli.ConfigureApplePaypointApiResponse]{ + return &core.Response[*payabli.ConfigureApplePaypointAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -120,7 +120,7 @@ func (r *RawClient) ConfigureGooglePayOrganization( ctx context.Context, request *payabli.ConfigureOrganizationRequestGooglePay, opts ...option.RequestOption, -) (*core.Response[*payabli.ConfigureApplePayOrganizationApiResponse], error) { +) (*core.Response[*payabli.ConfigureApplePayOrganizationAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -133,7 +133,7 @@ func (r *RawClient) ConfigureGooglePayOrganization( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.ConfigureApplePayOrganizationApiResponse + var response *payabli.ConfigureApplePayOrganizationAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -152,7 +152,7 @@ func (r *RawClient) ConfigureGooglePayOrganization( if err != nil { return nil, err } - return &core.Response[*payabli.ConfigureApplePayOrganizationApiResponse]{ + return &core.Response[*payabli.ConfigureApplePayOrganizationAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, @@ -163,7 +163,7 @@ func (r *RawClient) ConfigureGooglePayPaypoint( ctx context.Context, request *payabli.ConfigurePaypointRequestGooglePay, opts ...option.RequestOption, -) (*core.Response[*payabli.ConfigureGooglePaypointApiResponse], error) { +) (*core.Response[*payabli.ConfigureGooglePaypointAPIResponse], error) { options := core.NewRequestOptions(opts...) baseURL := internal.ResolveBaseURL( options.BaseURL, @@ -176,7 +176,7 @@ func (r *RawClient) ConfigureGooglePayPaypoint( options.ToHeader(), ) headers.Add("Content-Type", "application/json") - var response *payabli.ConfigureGooglePaypointApiResponse + var response *payabli.ConfigureGooglePaypointAPIResponse raw, err := r.caller.Call( ctx, &internal.CallParams{ @@ -194,7 +194,7 @@ func (r *RawClient) ConfigureGooglePayPaypoint( if err != nil { return nil, err } - return &core.Response[*payabli.ConfigureGooglePaypointApiResponse]{ + return &core.Response[*payabli.ConfigureGooglePaypointAPIResponse]{ StatusCode: raw.StatusCode, Header: raw.Header, Body: response, diff --git a/wallet/wallet_test/wallet_test.go b/wallet/wallet_test/wallet_test.go index 3bd7599..cf3dcdf 100644 --- a/wallet/wallet_test/wallet_test.go +++ b/wallet/wallet_test/wallet_test.go @@ -79,7 +79,7 @@ func TestWalletConfigureApplePayOrganizationWithWireMock( IsEnabled: payabli.Bool( true, ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(901), ), } @@ -142,7 +142,7 @@ func TestWalletConfigureGooglePayOrganizationWithWireMock( IsEnabled: payabli.Bool( true, ), - OrgId: payabli.Int64( + OrgID: payabli.Int64( int64(901), ), } diff --git a/wallet_test.go b/wallet_test.go index 11530ce..4636be5 100644 --- a/wallet_test.go +++ b/wallet_test.go @@ -27,11 +27,11 @@ func TestSettersConfigureOrganizationRequestApplePay(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ConfigureOrganizationRequestApplePay{} - var fernTestValueOrgId *OrganizationId - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *OrganizationID + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -100,14 +100,14 @@ func TestSettersMarkExplicitConfigureOrganizationRequestApplePay(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ConfigureOrganizationRequestApplePay{} - var fernTestValueOrgId *OrganizationId + var fernTestValueOrgID *OrganizationID // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -234,11 +234,11 @@ func TestSettersConfigureOrganizationRequestGooglePay(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrgId", func(t *testing.T) { + t.Run("SetOrgID", func(t *testing.T) { obj := &ConfigureOrganizationRequestGooglePay{} - var fernTestValueOrgId *OrganizationId - obj.SetOrgId(fernTestValueOrgId) - assert.Equal(t, fernTestValueOrgId, obj.OrgId) + var fernTestValueOrgID *OrganizationID + obj.SetOrgID(fernTestValueOrgID) + assert.Equal(t, fernTestValueOrgID, obj.OrgID) assert.NotNil(t, obj.explicitFields) }) @@ -307,14 +307,14 @@ func TestSettersMarkExplicitConfigureOrganizationRequestGooglePay(t *testing.T) // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrgId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrgID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ConfigureOrganizationRequestGooglePay{} - var fernTestValueOrgId *OrganizationId + var fernTestValueOrgID *OrganizationID // Act - obj.SetOrgId(fernTestValueOrgId) + obj.SetOrgID(fernTestValueOrgID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -433,19 +433,19 @@ func TestSettersApplePayOrganizationUpdateData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &ApplePayOrganizationUpdateData{} - var fernTestValueId *ApplePayId - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *ApplePayID + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetJobId", func(t *testing.T) { + t.Run("SetJobID", func(t *testing.T) { obj := &ApplePayOrganizationUpdateData{} - var fernTestValueJobId *JobId - obj.SetJobId(fernTestValueJobId) - assert.Equal(t, fernTestValueJobId, obj.JobId) + var fernTestValueJobID *JobID + obj.SetJobID(fernTestValueJobID) + assert.Equal(t, fernTestValueJobID, obj.JobID) assert.NotNil(t, obj.explicitFields) }) @@ -457,11 +457,11 @@ func TestSettersApplePayOrganizationUpdateData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetOrganizationId", func(t *testing.T) { + t.Run("SetOrganizationID", func(t *testing.T) { obj := &ApplePayOrganizationUpdateData{} - var fernTestValueOrganizationId *OrganizationId - obj.SetOrganizationId(fernTestValueOrganizationId) - assert.Equal(t, fernTestValueOrganizationId, obj.OrganizationId) + var fernTestValueOrganizationID *OrganizationID + obj.SetOrganizationID(fernTestValueOrganizationID) + assert.Equal(t, fernTestValueOrganizationID, obj.OrganizationID) assert.NotNil(t, obj.explicitFields) }) @@ -525,28 +525,28 @@ func TestGettersApplePayOrganizationUpdateData(t *testing.T) { _ = obj.GetCreatedAt() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var expected *ApplePayId - obj.Id = expected + var expected *ApplePayID + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplePayOrganizationUpdateData // Should not panic - getters should handle nil receiver gracefully @@ -555,31 +555,31 @@ func TestGettersApplePayOrganizationUpdateData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) - t.Run("GetJobId", func(t *testing.T) { + t.Run("GetJobID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var expected *JobId - obj.JobId = expected + var expected *JobID + obj.JobID = expected // Act & Assert - assert.Equal(t, expected, obj.GetJobId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetJobID(), "getter should return the property value") }) - t.Run("GetJobId_NilValue", func(t *testing.T) { + t.Run("GetJobID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - obj.JobId = nil + obj.JobID = nil // Act & Assert - assert.Nil(t, obj.GetJobId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetJobID(), "getter should return nil when property is nil") }) - t.Run("GetJobId_NilReceiver", func(t *testing.T) { + t.Run("GetJobID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplePayOrganizationUpdateData // Should not panic - getters should handle nil receiver gracefully @@ -588,7 +588,7 @@ func TestGettersApplePayOrganizationUpdateData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetJobId() // Should return zero value + _ = obj.GetJobID() // Should return zero value }) t.Run("GetJobStatus", func(t *testing.T) { @@ -624,28 +624,28 @@ func TestGettersApplePayOrganizationUpdateData(t *testing.T) { _ = obj.GetJobStatus() // Should return zero value }) - t.Run("GetOrganizationId", func(t *testing.T) { + t.Run("GetOrganizationID", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var expected *OrganizationId - obj.OrganizationId = expected + var expected *OrganizationID + obj.OrganizationID = expected // Act & Assert - assert.Equal(t, expected, obj.GetOrganizationId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetOrganizationID(), "getter should return the property value") }) - t.Run("GetOrganizationId_NilValue", func(t *testing.T) { + t.Run("GetOrganizationID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - obj.OrganizationId = nil + obj.OrganizationID = nil // Act & Assert - assert.Nil(t, obj.GetOrganizationId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetOrganizationID(), "getter should return nil when property is nil") }) - t.Run("GetOrganizationId_NilReceiver", func(t *testing.T) { + t.Run("GetOrganizationID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *ApplePayOrganizationUpdateData // Should not panic - getters should handle nil receiver gracefully @@ -654,7 +654,7 @@ func TestGettersApplePayOrganizationUpdateData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetOrganizationId() // Should return zero value + _ = obj.GetOrganizationID() // Should return zero value }) t.Run("GetType", func(t *testing.T) { @@ -790,14 +790,14 @@ func TestSettersMarkExplicitApplePayOrganizationUpdateData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var fernTestValueId *ApplePayId + var fernTestValueID *ApplePayID // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -821,14 +821,14 @@ func TestSettersMarkExplicitApplePayOrganizationUpdateData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetJobId_MarksExplicit", func(t *testing.T) { + t.Run("SetJobID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var fernTestValueJobId *JobId + var fernTestValueJobID *JobID // Act - obj.SetJobId(fernTestValueJobId) + obj.SetJobID(fernTestValueJobID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -883,14 +883,14 @@ func TestSettersMarkExplicitApplePayOrganizationUpdateData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetOrganizationId_MarksExplicit", func(t *testing.T) { + t.Run("SetOrganizationID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &ApplePayOrganizationUpdateData{} - var fernTestValueOrganizationId *OrganizationId + var fernTestValueOrganizationID *OrganizationID // Act - obj.SetOrganizationId(fernTestValueOrganizationId) + obj.SetOrganizationID(fernTestValueOrganizationID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1315,11 +1315,11 @@ func TestSettersAppleWalletData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetApplePayMerchantId", func(t *testing.T) { + t.Run("SetApplePayMerchantID", func(t *testing.T) { obj := &AppleWalletData{} - var fernTestValueApplePayMerchantId *string - obj.SetApplePayMerchantId(fernTestValueApplePayMerchantId) - assert.Equal(t, fernTestValueApplePayMerchantId, obj.ApplePayMerchantId) + var fernTestValueApplePayMerchantID *string + obj.SetApplePayMerchantID(fernTestValueApplePayMerchantID) + assert.Equal(t, fernTestValueApplePayMerchantID, obj.ApplePayMerchantID) assert.NotNil(t, obj.explicitFields) }) @@ -1339,11 +1339,11 @@ func TestSettersAppleWalletData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetPaypointUrl", func(t *testing.T) { + t.Run("SetPaypointURL", func(t *testing.T) { obj := &AppleWalletData{} - var fernTestValuePaypointUrl *string - obj.SetPaypointUrl(fernTestValuePaypointUrl) - assert.Equal(t, fernTestValuePaypointUrl, obj.PaypointUrl) + var fernTestValuePaypointURL *string + obj.SetPaypointURL(fernTestValuePaypointURL) + assert.Equal(t, fernTestValuePaypointURL, obj.PaypointURL) assert.NotNil(t, obj.explicitFields) }) @@ -1371,11 +1371,11 @@ func TestSettersAppleWalletData(t *testing.T) { assert.NotNil(t, obj.explicitFields) }) - t.Run("SetId", func(t *testing.T) { + t.Run("SetID", func(t *testing.T) { obj := &AppleWalletData{} - var fernTestValueId *ApplePayId - obj.SetId(fernTestValueId) - assert.Equal(t, fernTestValueId, obj.Id) + var fernTestValueID *ApplePayID + obj.SetID(fernTestValueID) + assert.Equal(t, fernTestValueID, obj.ID) assert.NotNil(t, obj.explicitFields) }) @@ -1423,28 +1423,28 @@ func TestGettersAppleWalletData(t *testing.T) { _ = obj.GetEntry() // Should return zero value }) - t.Run("GetApplePayMerchantId", func(t *testing.T) { + t.Run("GetApplePayMerchantID", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} var expected *string - obj.ApplePayMerchantId = expected + obj.ApplePayMerchantID = expected // Act & Assert - assert.Equal(t, expected, obj.GetApplePayMerchantId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetApplePayMerchantID(), "getter should return the property value") }) - t.Run("GetApplePayMerchantId_NilValue", func(t *testing.T) { + t.Run("GetApplePayMerchantID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - obj.ApplePayMerchantId = nil + obj.ApplePayMerchantID = nil // Act & Assert - assert.Nil(t, obj.GetApplePayMerchantId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetApplePayMerchantID(), "getter should return nil when property is nil") }) - t.Run("GetApplePayMerchantId_NilReceiver", func(t *testing.T) { + t.Run("GetApplePayMerchantID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AppleWalletData // Should not panic - getters should handle nil receiver gracefully @@ -1453,7 +1453,7 @@ func TestGettersAppleWalletData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetApplePayMerchantId() // Should return zero value + _ = obj.GetApplePayMerchantID() // Should return zero value }) t.Run("GetDomainNames", func(t *testing.T) { @@ -1522,28 +1522,28 @@ func TestGettersAppleWalletData(t *testing.T) { _ = obj.GetPaypointName() // Should return zero value }) - t.Run("GetPaypointUrl", func(t *testing.T) { + t.Run("GetPaypointURL", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} var expected *string - obj.PaypointUrl = expected + obj.PaypointURL = expected // Act & Assert - assert.Equal(t, expected, obj.GetPaypointUrl(), "getter should return the property value") + assert.Equal(t, expected, obj.GetPaypointURL(), "getter should return the property value") }) - t.Run("GetPaypointUrl_NilValue", func(t *testing.T) { + t.Run("GetPaypointURL_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - obj.PaypointUrl = nil + obj.PaypointURL = nil // Act & Assert - assert.Nil(t, obj.GetPaypointUrl(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetPaypointURL(), "getter should return nil when property is nil") }) - t.Run("GetPaypointUrl_NilReceiver", func(t *testing.T) { + t.Run("GetPaypointURL_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AppleWalletData // Should not panic - getters should handle nil receiver gracefully @@ -1552,7 +1552,7 @@ func TestGettersAppleWalletData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetPaypointUrl() // Should return zero value + _ = obj.GetPaypointURL() // Should return zero value }) t.Run("GetMarkedForDeletionAt", func(t *testing.T) { @@ -1654,28 +1654,28 @@ func TestGettersAppleWalletData(t *testing.T) { _ = obj.GetUpdatedAt() // Should return zero value }) - t.Run("GetId", func(t *testing.T) { + t.Run("GetID", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - var expected *ApplePayId - obj.Id = expected + var expected *ApplePayID + obj.ID = expected // Act & Assert - assert.Equal(t, expected, obj.GetId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetID(), "getter should return the property value") }) - t.Run("GetId_NilValue", func(t *testing.T) { + t.Run("GetID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - obj.Id = nil + obj.ID = nil // Act & Assert - assert.Nil(t, obj.GetId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetID(), "getter should return nil when property is nil") }) - t.Run("GetId_NilReceiver", func(t *testing.T) { + t.Run("GetID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *AppleWalletData // Should not panic - getters should handle nil receiver gracefully @@ -1684,7 +1684,7 @@ func TestGettersAppleWalletData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetId() // Should return zero value + _ = obj.GetID() // Should return zero value }) t.Run("GetType", func(t *testing.T) { @@ -1754,14 +1754,14 @@ func TestSettersMarkExplicitAppleWalletData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetApplePayMerchantId_MarksExplicit", func(t *testing.T) { + t.Run("SetApplePayMerchantID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - var fernTestValueApplePayMerchantId *string + var fernTestValueApplePayMerchantID *string // Act - obj.SetApplePayMerchantId(fernTestValueApplePayMerchantId) + obj.SetApplePayMerchantID(fernTestValueApplePayMerchantID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1847,14 +1847,14 @@ func TestSettersMarkExplicitAppleWalletData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetPaypointUrl_MarksExplicit", func(t *testing.T) { + t.Run("SetPaypointURL_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - var fernTestValuePaypointUrl *string + var fernTestValuePaypointURL *string // Act - obj.SetPaypointUrl(fernTestValuePaypointUrl) + obj.SetPaypointURL(fernTestValuePaypointURL) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -1971,14 +1971,14 @@ func TestSettersMarkExplicitAppleWalletData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetId_MarksExplicit", func(t *testing.T) { + t.Run("SetID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &AppleWalletData{} - var fernTestValueId *ApplePayId + var fernTestValueID *ApplePayID // Act - obj.SetId(fernTestValueId) + obj.SetID(fernTestValueID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2035,9 +2035,9 @@ func TestSettersMarkExplicitAppleWalletData(t *testing.T) { } -func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestSettersConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2045,7 +2045,7 @@ func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -2053,7 +2053,7 @@ func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -2061,7 +2061,7 @@ func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseData *ApplePayOrganizationUpdateData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -2069,7 +2069,7 @@ func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) @@ -2078,11 +2078,11 @@ func TestSettersConfigureApplePayOrganizationApiResponse(t *testing.T) { } -func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestGettersConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var expected *IsSuccess obj.IsSuccess = expected @@ -2093,7 +2093,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} obj.IsSuccess = nil // Act & Assert @@ -2102,7 +2102,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2115,7 +2115,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -2126,7 +2126,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} obj.PageIdentifier = nil // Act & Assert @@ -2135,7 +2135,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2148,7 +2148,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var expected *Responsecode obj.ResponseCode = expected @@ -2159,7 +2159,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} obj.ResponseCode = nil // Act & Assert @@ -2168,7 +2168,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2181,7 +2181,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var expected *ApplePayOrganizationUpdateData obj.ResponseData = expected @@ -2192,7 +2192,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -2201,7 +2201,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2214,7 +2214,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -2224,7 +2224,7 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2236,11 +2236,11 @@ func TestGettersConfigureApplePayOrganizationApiResponse(t *testing.T) { } -func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestSettersMarkExplicitConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueIsSuccess *IsSuccess // Act @@ -2271,7 +2271,7 @@ func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing. t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -2302,7 +2302,7 @@ func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing. t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseCode *Responsecode // Act @@ -2333,7 +2333,7 @@ func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing. t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseData *ApplePayOrganizationUpdateData // Act @@ -2364,7 +2364,7 @@ func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing. t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -2394,9 +2394,9 @@ func TestSettersMarkExplicitConfigureApplePayOrganizationApiResponse(t *testing. } -func TestSettersConfigureApplePaypointApiResponse(t *testing.T) { +func TestSettersConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueIsSuccess *IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2404,7 +2404,7 @@ func TestSettersConfigureApplePaypointApiResponse(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValuePageIdentifier *PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -2412,7 +2412,7 @@ func TestSettersConfigureApplePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseCode *Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -2420,7 +2420,7 @@ func TestSettersConfigureApplePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseData *ApplePayPaypointRegistrationData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -2428,28 +2428,28 @@ func TestSettersConfigureApplePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { - obj := &ConfigureApplePaypointApiResponse{} - var fernTestValueRoomId *int64 - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + t.Run("SetRoomID", func(t *testing.T) { + obj := &ConfigureApplePaypointAPIResponse{} + var fernTestValueRoomID *int64 + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { +func TestGettersConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected *IsSuccess obj.IsSuccess = expected @@ -2460,7 +2460,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} obj.IsSuccess = nil // Act & Assert @@ -2469,7 +2469,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2482,7 +2482,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected *PageIdentifier obj.PageIdentifier = expected @@ -2493,7 +2493,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetPageIdentifier_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} obj.PageIdentifier = nil // Act & Assert @@ -2502,7 +2502,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2515,7 +2515,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected *Responsecode obj.ResponseCode = expected @@ -2526,7 +2526,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseCode_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} obj.ResponseCode = nil // Act & Assert @@ -2535,7 +2535,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2548,7 +2548,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected *ApplePayPaypointRegistrationData obj.ResponseData = expected @@ -2559,7 +2559,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -2568,7 +2568,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2581,7 +2581,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -2591,7 +2591,7 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2601,46 +2601,46 @@ func TestGettersConfigureApplePaypointApiResponse(t *testing.T) { _ = obj.GetResponseText() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var expected *int64 - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} - obj.RoomId = nil + obj := &ConfigureApplePaypointAPIResponse{} + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) } -func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { +func TestSettersMarkExplicitConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueIsSuccess *IsSuccess // Act @@ -2671,7 +2671,7 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValuePageIdentifier *PageIdentifier // Act @@ -2702,7 +2702,7 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseCode *Responsecode // Act @@ -2733,7 +2733,7 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseData *ApplePayPaypointRegistrationData // Act @@ -2764,7 +2764,7 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -2792,14 +2792,14 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} - var fernTestValueRoomId *int64 + obj := &ConfigureApplePaypointAPIResponse{} + var fernTestValueRoomID *int64 // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -2825,9 +2825,9 @@ func TestSettersMarkExplicitConfigureApplePaypointApiResponse(t *testing.T) { } -func TestSettersConfigureGooglePaypointApiResponse(t *testing.T) { +func TestSettersConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("SetIsSuccess", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueIsSuccess IsSuccess obj.SetIsSuccess(fernTestValueIsSuccess) assert.Equal(t, fernTestValueIsSuccess, obj.IsSuccess) @@ -2835,7 +2835,7 @@ func TestSettersConfigureGooglePaypointApiResponse(t *testing.T) { }) t.Run("SetPageIdentifier", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValuePageIdentifier PageIdentifier obj.SetPageIdentifier(fernTestValuePageIdentifier) assert.Equal(t, fernTestValuePageIdentifier, obj.PageIdentifier) @@ -2843,7 +2843,7 @@ func TestSettersConfigureGooglePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseCode", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseCode Responsecode obj.SetResponseCode(fernTestValueResponseCode) assert.Equal(t, fernTestValueResponseCode, obj.ResponseCode) @@ -2851,7 +2851,7 @@ func TestSettersConfigureGooglePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseData", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseData *GooglePayPaypointRegistrationData obj.SetResponseData(fernTestValueResponseData) assert.Equal(t, fernTestValueResponseData, obj.ResponseData) @@ -2859,28 +2859,28 @@ func TestSettersConfigureGooglePaypointApiResponse(t *testing.T) { }) t.Run("SetResponseText", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseText ResponseText obj.SetResponseText(fernTestValueResponseText) assert.Equal(t, fernTestValueResponseText, obj.ResponseText) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetRoomId", func(t *testing.T) { - obj := &ConfigureGooglePaypointApiResponse{} - var fernTestValueRoomId *int64 - obj.SetRoomId(fernTestValueRoomId) - assert.Equal(t, fernTestValueRoomId, obj.RoomId) + t.Run("SetRoomID", func(t *testing.T) { + obj := &ConfigureGooglePaypointAPIResponse{} + var fernTestValueRoomID *int64 + obj.SetRoomID(fernTestValueRoomID) + assert.Equal(t, fernTestValueRoomID, obj.RoomID) assert.NotNil(t, obj.explicitFields) }) } -func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { +func TestGettersConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("GetIsSuccess", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected IsSuccess obj.IsSuccess = expected @@ -2890,7 +2890,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetIsSuccess_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2903,7 +2903,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetPageIdentifier", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected PageIdentifier obj.PageIdentifier = expected @@ -2913,7 +2913,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetPageIdentifier_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2926,7 +2926,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseCode", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected Responsecode obj.ResponseCode = expected @@ -2936,7 +2936,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseCode_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2949,7 +2949,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseData", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected *GooglePayPaypointRegistrationData obj.ResponseData = expected @@ -2960,7 +2960,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseData_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} obj.ResponseData = nil // Act & Assert @@ -2969,7 +2969,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseData_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -2982,7 +2982,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseText", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected ResponseText obj.ResponseText = expected @@ -2992,7 +2992,7 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetResponseText_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { @@ -3002,46 +3002,46 @@ func TestGettersConfigureGooglePaypointApiResponse(t *testing.T) { _ = obj.GetResponseText() // Should return zero value }) - t.Run("GetRoomId", func(t *testing.T) { + t.Run("GetRoomID", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var expected *int64 - obj.RoomId = expected + obj.RoomID = expected // Act & Assert - assert.Equal(t, expected, obj.GetRoomId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetRoomID(), "getter should return the property value") }) - t.Run("GetRoomId_NilValue", func(t *testing.T) { + t.Run("GetRoomID_NilValue", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} - obj.RoomId = nil + obj := &ConfigureGooglePaypointAPIResponse{} + obj.RoomID = nil // Act & Assert - assert.Nil(t, obj.GetRoomId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetRoomID(), "getter should return nil when property is nil") }) - t.Run("GetRoomId_NilReceiver", func(t *testing.T) { + t.Run("GetRoomID_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse // Should not panic - getters should handle nil receiver gracefully defer func() { if r := recover(); r != nil { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetRoomId() // Should return zero value + _ = obj.GetRoomID() // Should return zero value }) } -func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { +func TestSettersMarkExplicitConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("SetIsSuccess_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueIsSuccess IsSuccess // Act @@ -3072,7 +3072,7 @@ func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("SetPageIdentifier_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValuePageIdentifier PageIdentifier // Act @@ -3103,7 +3103,7 @@ func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("SetResponseCode_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseCode Responsecode // Act @@ -3134,7 +3134,7 @@ func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("SetResponseData_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseData *GooglePayPaypointRegistrationData // Act @@ -3165,7 +3165,7 @@ func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("SetResponseText_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} var fernTestValueResponseText ResponseText // Act @@ -3193,14 +3193,14 @@ func TestSettersMarkExplicitConfigureGooglePaypointApiResponse(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetRoomId_MarksExplicit", func(t *testing.T) { + t.Run("SetRoomID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} - var fernTestValueRoomId *int64 + obj := &ConfigureGooglePaypointAPIResponse{} + var fernTestValueRoomID *int64 // Act - obj.SetRoomId(fernTestValueRoomId) + obj.SetRoomID(fernTestValueRoomID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3524,47 +3524,47 @@ func TestSettersMarkExplicitGooglePayPaypointRegistrationData(t *testing.T) { } func TestSettersGoogleWalletData(t *testing.T) { - t.Run("SetGatewayMerchantId", func(t *testing.T) { + t.Run("SetGatewayMerchantID", func(t *testing.T) { obj := &GoogleWalletData{} - var fernTestValueGatewayMerchantId *string - obj.SetGatewayMerchantId(fernTestValueGatewayMerchantId) - assert.Equal(t, fernTestValueGatewayMerchantId, obj.GatewayMerchantId) + var fernTestValueGatewayMerchantID *string + obj.SetGatewayMerchantID(fernTestValueGatewayMerchantID) + assert.Equal(t, fernTestValueGatewayMerchantID, obj.GatewayMerchantID) assert.NotNil(t, obj.explicitFields) }) - t.Run("SetGatewayId", func(t *testing.T) { + t.Run("SetGatewayID", func(t *testing.T) { obj := &GoogleWalletData{} - var fernTestValueGatewayId *string - obj.SetGatewayId(fernTestValueGatewayId) - assert.Equal(t, fernTestValueGatewayId, obj.GatewayId) + var fernTestValueGatewayID *string + obj.SetGatewayID(fernTestValueGatewayID) + assert.Equal(t, fernTestValueGatewayID, obj.GatewayID) assert.NotNil(t, obj.explicitFields) }) } func TestGettersGoogleWalletData(t *testing.T) { - t.Run("GetGatewayMerchantId", func(t *testing.T) { + t.Run("GetGatewayMerchantID", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} var expected *string - obj.GatewayMerchantId = expected + obj.GatewayMerchantID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayMerchantId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayMerchantID(), "getter should return the property value") }) - t.Run("GetGatewayMerchantId_NilValue", func(t *testing.T) { + t.Run("GetGatewayMerchantID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} - obj.GatewayMerchantId = nil + obj.GatewayMerchantID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayMerchantId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayMerchantID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayMerchantId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayMerchantID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GoogleWalletData // Should not panic - getters should handle nil receiver gracefully @@ -3573,31 +3573,31 @@ func TestGettersGoogleWalletData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayMerchantId() // Should return zero value + _ = obj.GetGatewayMerchantID() // Should return zero value }) - t.Run("GetGatewayId", func(t *testing.T) { + t.Run("GetGatewayID", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} var expected *string - obj.GatewayId = expected + obj.GatewayID = expected // Act & Assert - assert.Equal(t, expected, obj.GetGatewayId(), "getter should return the property value") + assert.Equal(t, expected, obj.GetGatewayID(), "getter should return the property value") }) - t.Run("GetGatewayId_NilValue", func(t *testing.T) { + t.Run("GetGatewayID_NilValue", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} - obj.GatewayId = nil + obj.GatewayID = nil // Act & Assert - assert.Nil(t, obj.GetGatewayId(), "getter should return nil when property is nil") + assert.Nil(t, obj.GetGatewayID(), "getter should return nil when property is nil") }) - t.Run("GetGatewayId_NilReceiver", func(t *testing.T) { + t.Run("GetGatewayID_NilReceiver", func(t *testing.T) { t.Parallel() var obj *GoogleWalletData // Should not panic - getters should handle nil receiver gracefully @@ -3606,20 +3606,20 @@ func TestGettersGoogleWalletData(t *testing.T) { t.Errorf("Getter panicked on nil receiver: %v", r) } }() - _ = obj.GetGatewayId() // Should return zero value + _ = obj.GetGatewayID() // Should return zero value }) } func TestSettersMarkExplicitGoogleWalletData(t *testing.T) { - t.Run("SetGatewayMerchantId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayMerchantID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} - var fernTestValueGatewayMerchantId *string + var fernTestValueGatewayMerchantID *string // Act - obj.SetGatewayMerchantId(fernTestValueGatewayMerchantId) + obj.SetGatewayMerchantID(fernTestValueGatewayMerchantID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3643,14 +3643,14 @@ func TestSettersMarkExplicitGoogleWalletData(t *testing.T) { // It verifies that setting a field via setter allows successful JSON round-trip }) - t.Run("SetGatewayId_MarksExplicit", func(t *testing.T) { + t.Run("SetGatewayID_MarksExplicit", func(t *testing.T) { t.Parallel() // Arrange obj := &GoogleWalletData{} - var fernTestValueGatewayId *string + var fernTestValueGatewayID *string // Act - obj.SetGatewayId(fernTestValueGatewayId) + obj.SetGatewayID(fernTestValueGatewayID) // Assert - object with explicitly set field can be marshaled/unmarshaled bytes, err := json.Marshal(obj) @@ -3928,11 +3928,11 @@ func TestJSONMarshalingAppleWalletData(t *testing.T) { }) } -func TestJSONMarshalingConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestJSONMarshalingConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3941,31 +3941,31 @@ func TestJSONMarshalingConfigureApplePayOrganizationApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled ConfigureApplePayOrganizationApiResponse + var unmarshaled ConfigureApplePayOrganizationAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj ConfigureApplePayOrganizationApiResponse + var obj ConfigureApplePayOrganizationAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj ConfigureApplePayOrganizationApiResponse + var obj ConfigureApplePayOrganizationAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingConfigureApplePaypointApiResponse(t *testing.T) { +func TestJSONMarshalingConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -3974,31 +3974,31 @@ func TestJSONMarshalingConfigureApplePaypointApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled ConfigureApplePaypointApiResponse + var unmarshaled ConfigureApplePaypointAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj ConfigureApplePaypointApiResponse + var obj ConfigureApplePaypointAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj ConfigureApplePaypointApiResponse + var obj ConfigureApplePaypointAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) } -func TestJSONMarshalingConfigureGooglePaypointApiResponse(t *testing.T) { +func TestJSONMarshalingConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("MarshalUnmarshal", func(t *testing.T) { t.Parallel() // Arrange - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} // Act - Marshal to JSON data, err := json.Marshal(obj) @@ -4007,21 +4007,21 @@ func TestJSONMarshalingConfigureGooglePaypointApiResponse(t *testing.T) { assert.NotEmpty(t, data, "marshaled data should not be empty") // Unmarshal back and verify round-trip - var unmarshaled ConfigureGooglePaypointApiResponse + var unmarshaled ConfigureGooglePaypointAPIResponse err = json.Unmarshal(data, &unmarshaled) assert.NoError(t, err, "round-trip unmarshal should succeed") }) t.Run("UnmarshalInvalidJSON", func(t *testing.T) { t.Parallel() - var obj ConfigureGooglePaypointApiResponse + var obj ConfigureGooglePaypointAPIResponse err := json.Unmarshal([]byte(`{invalid json}`), &obj) assert.Error(t, err, "unmarshaling invalid JSON should return an error") }) t.Run("UnmarshalEmptyObject", func(t *testing.T) { t.Parallel() - var obj ConfigureGooglePaypointApiResponse + var obj ConfigureGooglePaypointAPIResponse err := json.Unmarshal([]byte(`{}`), &obj) assert.NoError(t, err, "unmarshaling empty object should succeed") }) @@ -4174,49 +4174,49 @@ func TestStringAppleWalletData(t *testing.T) { }) } -func TestStringConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestStringConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringConfigureApplePaypointApiResponse(t *testing.T) { +func TestStringConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) } -func TestStringConfigureGooglePaypointApiResponse(t *testing.T) { +func TestStringConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("StringMethod", func(t *testing.T) { t.Parallel() - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} result := obj.String() assert.NotEmpty(t, result, "String() should return a non-empty representation") }) t.Run("StringMethod_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse result := obj.String() assert.Equal(t, "", result, "String() should return for nil receiver") }) @@ -4339,10 +4339,10 @@ func TestExtraPropertiesAppleWalletData(t *testing.T) { }) } -func TestExtraPropertiesConfigureApplePayOrganizationApiResponse(t *testing.T) { +func TestExtraPropertiesConfigureApplePayOrganizationAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &ConfigureApplePayOrganizationApiResponse{} + obj := &ConfigureApplePayOrganizationAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4356,16 +4356,16 @@ func TestExtraPropertiesConfigureApplePayOrganizationApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePayOrganizationApiResponse + var obj *ConfigureApplePayOrganizationAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesConfigureApplePaypointApiResponse(t *testing.T) { +func TestExtraPropertiesConfigureApplePaypointAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &ConfigureApplePaypointApiResponse{} + obj := &ConfigureApplePaypointAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4379,16 +4379,16 @@ func TestExtraPropertiesConfigureApplePaypointApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureApplePaypointApiResponse + var obj *ConfigureApplePaypointAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") }) } -func TestExtraPropertiesConfigureGooglePaypointApiResponse(t *testing.T) { +func TestExtraPropertiesConfigureGooglePaypointAPIResponse(t *testing.T) { t.Run("GetExtraProperties", func(t *testing.T) { t.Parallel() - obj := &ConfigureGooglePaypointApiResponse{} + obj := &ConfigureGooglePaypointAPIResponse{} // Should not panic when calling GetExtraProperties() defer func() { if r := recover(); r != nil { @@ -4402,7 +4402,7 @@ func TestExtraPropertiesConfigureGooglePaypointApiResponse(t *testing.T) { t.Run("GetExtraProperties_NilReceiver", func(t *testing.T) { t.Parallel() - var obj *ConfigureGooglePaypointApiResponse + var obj *ConfigureGooglePaypointAPIResponse extraProps := obj.GetExtraProperties() assert.Nil(t, extraProps, "nil receiver should return nil without panicking") })