public CardholderServiceTest() { this.service = new CardholderService(); this.createOptions = new CardholderCreateOptions() { Billing = new BillingOptions { Address = new AddressOptions { City = "city", Country = "US", Line1 = "line1", PostalCode = "90210", State = "CA", }, Name = "Billing Name", }, Name = "John Doe", Type = "individual", }; this.updateOptions = new CardholderUpdateOptions() { Metadata = new Dictionary <string, string>() { { "key", "value" }, }, }; this.listOptions = new CardholderListOptions() { Limit = 1, }; }
public CardholderServiceTest( StripeMockFixture stripeMockFixture, MockHttpClientFixture mockHttpClientFixture) : base(stripeMockFixture, mockHttpClientFixture) { this.service = new CardholderService(this.StripeClient); this.createOptions = new CardholderCreateOptions { Billing = new BillingOptions { Address = new AddressOptions { City = "city", Country = "US", Line1 = "line1", PostalCode = "90210", State = "CA", }, }, Company = new CardholderCompanyOptions { TaxId = "123", }, Individual = new CardholderIndividualOptions { Dob = new CardholderIndividualDobOptions { Day = 1, Month = 1, Year = 1980, }, FirstName = "John", LastName = "Doe", Verification = new CardholderIndividualVerificationOptions { Document = new CardholderIndividualVerificationDocumentOptions { Back = "file_123", Front = "file_234", }, }, }, Name = "John Doe", Type = "individual", }; this.updateOptions = new CardholderUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new CardholderListOptions { Limit = 1, }; }
public CardholderServiceTest( StripeMockFixture stripeMockFixture, MockHttpClientFixture mockHttpClientFixture) : base(stripeMockFixture, mockHttpClientFixture) { this.service = new CardholderService(this.StripeClient); this.createOptions = new CardholderCreateOptions { Billing = new BillingOptions { Address = new AddressOptions { City = "city", Country = "US", Line1 = "line1", PostalCode = "90210", State = "CA", }, Name = "Billing Name", }, Name = "John Doe", Type = "individual", }; this.updateOptions = new CardholderUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new CardholderListOptions { Limit = 1, }; }
public CardholderServiceTest( StripeMockFixture stripeMockFixture, MockHttpClientFixture mockHttpClientFixture) : base(stripeMockFixture, mockHttpClientFixture) { this.service = new CardholderService(this.StripeClient); this.createOptions = new CardholderCreateOptions { Billing = new CardholderBillingOptions { Address = new AddressOptions { City = "city", Country = "US", Line1 = "line1", PostalCode = "90210", State = "CA", }, }, Individual = new CardholderIndividualOptions { Dob = new CardholderIndividualDobOptions { Day = 1, Month = 1, Year = 1980, }, FirstName = "John", LastName = "Doe", Verification = new CardholderIndividualVerificationOptions { Document = new CardholderIndividualVerificationDocumentOptions { Back = "file_123", Front = "file_234", }, }, }, Name = "John Doe", SpendingControls = new CardholderSpendingControlsOptions { SpendingLimits = new List <CardholderSpendingControlsSpendingLimitOptions> { new CardholderSpendingControlsSpendingLimitOptions { Amount = 1000, Categories = new List <string> { "financial_institutions", }, Interval = "all_time", }, }, }, Type = "individual", }; this.updateOptions = new CardholderUpdateOptions { Metadata = new Dictionary <string, string> { { "key", "value" }, }, }; this.listOptions = new CardholderListOptions { Limit = 1, }; }