Skip to content

Commit

Permalink
feat: add use type for necessary resources
Browse files Browse the repository at this point in the history
  • Loading branch information
BennyKitchell committed Jan 16, 2023
1 parent 7493cd9 commit 2e5dcd9
Show file tree
Hide file tree
Showing 43 changed files with 6,829 additions and 247 deletions.
3 changes: 2 additions & 1 deletion __tests__/Check_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -48,8 +48,9 @@ func (suite *CheckTestSuite) SetupTest() {
suite.mockVerify = *lob.NewBankAccountVerify(verifyAmounts)
suite.apiClient.BankAccountsApi.Verify(suite.ctx, suite.mockAccount.Id).BankAccountVerify(suite.mockVerify).Execute()

useType := *lob.NewNullableChkUseType(lob.CHKUSETYPE_MARKETING.Ptr())
suite.addressEditableList = CreateAddressesEditableList()
suite.checkEditable = *lob.NewCheckEditable(suite.addressEditableList[0], suite.addressEditableList[1], *lob.NewNullableString(&suite.mockAccount.Id), 100)
suite.checkEditable = *lob.NewCheckEditable(suite.addressEditableList[0], suite.addressEditableList[1], *lob.NewNullableString(&suite.mockAccount.Id), 100, useType)
}

func (suite *CheckTestSuite) TestCheckCreate() {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/Letter_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@ func (suite *LetterTestSuite) SetupTest() {
suite.apiClient.BankAccountsApi.Verify(suite.ctx, suite.mockAccount.Id).BankAccountVerify(suite.mockVerify).Execute()

suite.addressEditableList = CreateAddressesEditableList()
suite.letterEditable = *lob.NewLetterEditable(false, suite.addressEditableList[0], suite.addressEditableList[1], GetFileLocation8x11())
useType := *lob.NewNullableLtrUseType(lob.LTRUSETYPE_MARKETING.Ptr())
suite.letterEditable = *lob.NewLetterEditable(false, suite.addressEditableList[0], suite.addressEditableList[1], GetFileLocation8x11(), useType)
}

func (suite *LetterTestSuite) TestLetterCreate() {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/Postcards_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func (suite *PostcardsTestSuite) SetupTest() {

suite.addressEditableList = CreateAddressesEditableList() // AddressEditable

suite.postcardEditable = *lob.NewPostcardEditable(suite.addressEditableList[0], GetFileLocation4x6(), GetFileLocation4x6())
useType := *lob.NewNullablePscUseType(lob.PSCUSETYPE_MARKETING.Ptr())
suite.postcardEditable = *lob.NewPostcardEditable(suite.addressEditableList[0], GetFileLocation4x6(), GetFileLocation4x6(), useType)
}

func (suite *PostcardsTestSuite) TestPostcardsCreate() {
Expand Down
3 changes: 2 additions & 1 deletion __tests__/Self_Mailers_spec_test.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,8 @@ func (suite *SelfMailersTestSuite) SetupTest() {

suite.addressEditableList = CreateAddressesEditableList() // AddressEditable

suite.selfMailerEditable = *lob.NewSelfMailerEditable(suite.addressEditableList[0], GetFileLocation6x18(), GetFileLocation6x18())
useType := *lob.NewNullableSfmUseType(lob.SFMUSETYPE_MARKETING.Ptr())
suite.selfMailerEditable = *lob.NewSelfMailerEditable(suite.addressEditableList[0], GetFileLocation6x18(), GetFileLocation6x18(), useType)
}

func (suite *SelfMailersTestSuite) TestSelfMailersCreate() {
Expand Down
276 changes: 276 additions & 0 deletions api_buckslip_orders.go

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 2e5dcd9

Please sign in to comment.