コード例 #1
0
        public IssuingDisputeServiceTest()
        {
            this.service = new DisputeService();

            this.createOptions = new DisputeCreateOptions()
            {
                DisputedTransactionId = "ipi_123",
                Evidence = new EvidenceOptions
                {
                    Fraudulent = new EvidenceDetailsOptions
                    {
                        DisputeExplanation = "Explanation",
                        UncategorizedFile  = "file_123",
                    }
                },
                Reason = "fraudulent",
            };

            this.updateOptions = new DisputeUpdateOptions()
            {
                Metadata = new Dictionary <string, string>()
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new DisputeListOptions()
            {
                Limit = 1,
            };
        }
コード例 #2
0
        public IssuingDisputeServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new DisputeService(this.StripeClient);

            this.createOptions = new DisputeCreateOptions
            {
                DisputedTransaction = "ipi_123",
                Evidence            = new EvidenceOptions
                {
                    Fraudulent = new EvidenceDetailsOptions
                    {
                        DisputeExplanation = "Explanation",
                        UncategorizedFile  = "file_123",
                    },
                },
                Reason = "fraudulent",
            };

            this.updateOptions = new DisputeUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new DisputeListOptions
            {
                Limit = 1,
            };
        }
コード例 #3
0
        public IssuingDisputeServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new DisputeService(this.StripeClient);

            this.createOptions = new DisputeCreateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.updateOptions = new DisputeUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new DisputeListOptions
            {
                Limit = 1,
            };
        }
コード例 #4
0
        public IssuingDisputeServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new DisputeService(this.StripeClient);

            this.createOptions = new DisputeCreateOptions
            {
                Evidence = new DisputeEvidenceOptions
                {
                    NotReceived = new DisputeEvidenceNotReceivedOptions
                    {
                        AdditionalDocumentation = "file_123",
                        ExpectedAt         = DateTime.Now,
                        Explanation        = "Dispute explanation",
                        ProductDescription = "Product description",
                        ProductType        = "merchandise",
                    },
                    Reason = "not_received",
                },
                Transaction = "ipi_123",
            };

            this.submitOptions = new DisputeSubmitOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.updateOptions = new DisputeUpdateOptions
            {
                Metadata = new Dictionary <string, string>
                {
                    { "key", "value" },
                },
            };

            this.listOptions = new DisputeListOptions
            {
                Limit = 1,
            };
        }
コード例 #5
0
        public IssuingDisputeServiceTest(
            StripeMockFixture stripeMockFixture,
            MockHttpClientFixture mockHttpClientFixture)
            : base(stripeMockFixture, mockHttpClientFixture)
        {
            this.service = new DisputeService(this.StripeClient);

            this.createOptions = new DisputeCreateOptions
            {
            };

            this.updateOptions = new DisputeUpdateOptions
            {
            };

            this.listOptions = new DisputeListOptions
            {
                Limit = 1,
            };
        }